1 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3 * ui-out.h (uiout): Rename to ...
4 (current_uiout): ... this.
5 * ui-out.c (uiout): Rename to ...
6 (current_uiout): ... this.
7 * ada-lang.c (print_it_exception, print_one_exception)
8 (print_mention_exception): Adjust.
9 * breakpoint.c (watchpoint_check): Adjust.
10 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
11 (default_collect_info, watchpoints_info, print_one_catch_fork)
12 (print_one_catch_vfork, print_one_catch_syscall)
13 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
14 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
15 (print_it_watchpoint, print_mention_watchpoint)
16 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
17 (print_it_exception_catchpoint, print_one_exception_catchpoint)
18 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
19 (bkpt_print_mention, momentary_bkpt_print_it)
20 (tracepoint_print_mention, update_static_tracepoint)
21 (tracepoints_info, save_breakpoints): Adjust.
22 * cli-out.c (field_separator): Adjust.
23 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
24 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
25 * frame.c (get_current_frame): Adjust.
26 * infcmd.c (run_command_1, print_return_value): Adjust.
27 * inferior.c (inferior_command, info_inferiors_command): Adjust.
28 * infrun.c (print_end_stepping_range_reason): Adjust.
29 (print_signal_exited_reason, print_exited_reason): Adjust.
30 (print_signal_received_reason, print_no_history_reason): Adjust.
31 * interps.c (interp_set): Adjust.
32 * osdata.c (info_osdata_command): Adjust.
33 * progspace.c (maintenance_info_program_spaces_command): Adjust.
34 * remote-fileio.c (remote_fileio_request): Adjust.
35 * remote.c (show_remote_cmd): Adjust.
36 * solib.c (info_sharedlibrary_command): Adjust.
37 * source.c (print_source_lines_base): Adjust.
38 * stack.c (print_stack_frame): Adjust.
39 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
40 * symfile-mem.c (add_vsyscall_page): Adjust.
41 * symfile.c (load_progress, generic_load)
42 (print_transfer_performance): Adjust.
43 * thread.c (info_threads_command, restore_selected_frame)
44 (thread_command): Adjust.
45 * top.c (make_cleanup_restore_ui_file): Adjust.
46 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
47 (print_one_static_tracepoint_marker): Adjust.
48 * cli/cli-cmds.c (print_disassembly): Adjust.
49 * cli/cli-decode.c (print_doc_line): Adjust.
50 * cli/cli-interp.c (safe_execute_command): Adjust.
51 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
52 (handle_redirections): Adjust.
53 * cli/cli-script.c (show_user_1): Adjust.
54 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
55 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
56 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
57 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
58 (mi_cmd_env_dir): Adjust.
59 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
60 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
61 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
62 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
63 (list_args_or_locals): Adjust.
64 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
65 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
66 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
67 (mi_cmd_var_list_children, mi_cmd_var_info_type)
68 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
69 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
70 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
71 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
72 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
73 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
74 (list_available_thread_groups, mi_cmd_list_thread_groups)
75 (mi_cmd_data_list_register_names)
76 (mi_cmd_data_list_changed_registers)
77 (mi_cmd_data_list_register_values, get_register)
78 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
79 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
80 (mi_cmd_list_target_features, mi_cmd_add_inferior)
81 (mi_execute_command, mi_load_progress): Adjust.
82 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
83 * python/py-auto-load.c (print_script, info_auto_load_scripts):
85 * python/py-breakpoint.c (bppy_get_commands): Adjust.
86 * tui/tui-interp.c (tui_command_loop): Adjust.
87 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
89 2011-08-04 Pedro Alves <pedro@codesourcery.com>
91 * exceptions.c (struct catcher): Remove saved_uiout field.
92 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
93 no longer save/resvore the global ui_out builder.
94 (catch_exceptions_with_msg): Save/override/restore the global
95 ui_out builder manually instead of relying on TRY_CATCH to do it.
96 (catch_errors): Save/restore the global ui_out builder manually
97 instead of relying on TRY_CATCH to do it.
98 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
101 * cli/cli-interp.c (safe_execute_command): Save/override/restore
102 the global ui_out builder manually instead of relying on TRY_CATCH
105 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
107 * breakpoint.c (update_global_location_list): Ensure
108 invariant 'first loc marked not duplicated and inserted,
109 following locs marked duplicated/not inserted' is respected
110 for multiple locations at the same address.
111 (unduplicated_should_be_inserted) New function.
112 (swap_insertion) New function.
114 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
116 * stack.c (print_frame_arguments_choices): Comment typo fix.
118 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
121 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
122 * breakpoint.c (insert_bp_location): Remove disabled_breaks
123 argument. Update callers.
125 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
128 * doublest.c (convert_doublest_to_floatformat): Pass correct
129 mantissa length to put_field.
131 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
133 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
134 exception_print code path.
135 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
136 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
137 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
139 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
142 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
143 Remove, merge them into ...
144 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
145 variable args and its initialization.
146 (struct print_args_args, print_args_stub): Remove, merge them into
148 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
150 (do_gdb_disassembly): ... here. Remove variable args and its
152 (print_frame): Remove variable args and its initialization, new
153 variable gdbarch and numargs (from print_args_stub), inline here
154 print_args_stub with a TRY_CATCH.
155 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
157 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
158 New variable e, remove variable btargs and its initialization.
160 2011-08-01 Tristan Gingold <gingold@adacore.com>
162 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
164 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
166 * breakpoint.c (insert_bp_location): Document return value.
167 (insert_breakpoint_locations): Fix documentation.
168 (remove_breakpoints): Add documentation.
170 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
172 * breakpoint.c (insert_bp_location): Remove disabled_breaks
173 argument. Update callers.
175 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
177 * stack.c (print_frame_info): Comment typo fix.
179 2011-07-29 Sterling Augustine <saugustine@google.com>
181 * MAINTAINERS (Write After Approval): Add myself to the list.
183 2011-07-29 Tom Tromey <tromey@redhat.com>
185 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
186 (library_list_start_segment): Update.
187 (library_list_start_section): Update.
189 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
191 * varobj.c (value_get_print_value): Move hint check later into the
192 function. Comment function. Free thevalue before reusing it.
194 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
195 Pedro Alves <pedro@codesourcery.com>
197 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
199 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
200 Assert the result kind.
201 * value.h (value_one): Remove parameter lv.
203 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
205 Fix crash on lval_computed values.
206 * valops.c (value_zero): Use not_lval for lval_computed.
208 2011-07-27 Tom Tromey <tromey@redhat.com>
210 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
211 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
213 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
215 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
216 "ptype" by their typedefs difference.
218 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
220 * dwarf2expr.c (ctx_no_read_reg): New function.
221 * dwarf2expr.h (ctx_no_read_reg): New declaration.
222 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
223 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
224 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
226 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
228 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
229 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
231 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
232 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
233 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
234 (ctx_no_get_base_type): Move the functions here.
235 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
236 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
237 (ctx_no_get_base_type): New declarations.
239 2011-07-27 Tom Tromey <tromey@redhat.com>
241 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
243 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
244 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
246 2011-07-26 Sterling Augustine <saugustine@google.com>
248 * cli/cli-dump.c (dump_binary_file): Change parameter type to
250 (dump_bfd_file): Likewise.
252 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
254 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
255 (remote_hw_watchpoint_length_limit): New variable.
256 (_initialize_remote) add set,show cmds for this new variable.
257 * gdb.texinfo: document these new commands.
258 * NEWS: Mention these new commands.
260 2011-07-26 Pedro Alves <pedro@codesourcery.com>
262 * breakpoint.c (works_in_software_mode_watchpoint): Also return
263 true for software watchpoints.
265 2011-07-26 Joel Brobecker <brobecker@adacore.com>
269 2011-07-26 Tom Tromey <tromey@redhat.com>
271 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
272 * dwarf2read.c (read_indirect_string_at_offset): New function.
273 (read_indirect_string): Use it.
274 (dwarf_decode_macro_bytes): New function, taken from
275 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
276 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
277 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
279 (struct dwarf2_per_objfile) <macro>: New field.
280 (dwarf2_elf_names): Add .debug_macro.
281 (dwarf2_macros_too_long_complaint): Add 'section' argument.
282 (dwarf2_locate_sections): Handle new section.
283 (read_file_scope): Handle DW_AT_GNU_macros.
284 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
286 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
288 * NEWS: Mention dcache configuration.
289 * dcache.c (dcache_set_list, dcache_show_list): New variables.
290 (dcache_size, dcache_line_size): New variables.
291 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
292 (struct dcache_block): Make it expandable.
293 (struct dcache_struct): New field.
294 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
295 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
296 (dcache_poke_byte, dcache_print_line): Adjust.
297 (set_dcache_size, set_dcache_line_size): New functions.
298 (set_dcache_command, show_dcache_command): New functions.
299 (_initialize_dcache): Add new commands.
301 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
303 * progspace.h (struct program_space): Add solib_add_generation.
304 * infcmd.c (post_create_inferior): Only call solib_add if not
306 * solib.c (solib_add): Increment solib_add_generation.
308 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
310 Fix implicit pointer offsets.
311 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
314 2011-07-25 Tom Tromey <tromey@redhat.com>
316 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
318 (ada_exception_sal): Make 'ops' const.
319 (ada_decode_exception_location): Likewise.
320 (ada_decode_assert_location): Likewise.
321 (catch_assert_command): Update.
322 (catch_ada_exception_command): Update.
323 (create_ada_exception_catchpoint): Make 'ops' const.
324 * breakpoint.c (set_raw_breakpoint_without_location)
325 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
327 (create_internal_breakpoint): Update.
328 (init_raw_breakpoint_without_location): Make 'ops' const.
329 (init_raw_breakpoint, init_catchpoint)
330 (create_fork_vfork_event_catchpoint)
331 (create_syscall_event_catchpoint, init_breakpoint_sal)
332 (create_breakpoint_sal, create_breakpoints_sal)
333 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
334 * breakpoint.h (struct breakpoint) <ops>: Now const.
335 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
338 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
340 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
342 2011-07-25 Pedro Alves <pedro@codesourcery.com>
344 * breakpoint.h (print_recreate_thread): Declare.
345 (struct breakpoint): Move step_count, pass_count,
346 number_on_target, static_trace_marker_id,
347 static_trace_marker_id_idx ...
348 (struct tracepoint): ... to this new struct.
349 (get_tracepoint, get_tracepoint_by_number_on_target)
350 (get_tracepoint_by_number): Change return type to struct
352 * breakpoint.c (is_tracepoint_type): New, factored out from
354 (is_tracepoint): Adjust.
355 (print_one_breakpoint_location): Cast to struct tracepoint as
356 necessary, and adjust.
357 (print_recreate_catch_fork, print_recreate_catch_vfork)
358 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
359 print_recreate_thread.
360 (init_breakpoint_sal): New, factored out from
361 create_breakpoint_sal.
362 (create_breakpoint_sal): Reimplement.
363 (create_breakpoint): Allocate a struct tracecepoint if the caller
364 wanted a tracepoint. Use init_breakpoint_sal and
366 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
367 (print_recreate_masked_watchpoint)
368 (print_recreate_exception_catchpoint): Call print_recreate_thread.
369 (tracepoint_print_one_detail): Adjust.
370 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
371 Dump the pass count here.
372 (update_static_tracepoint): Adjust.
373 (addr_string_to_sals): Adjust.
374 (create_tracepoint_from_upload): Adjust. Change return type to
375 struct tracepoint pointer.
376 (trace_pass_set_count): Change parameter type to struct tracepoint
378 (trace_pass_command): Adjust.
379 (get_tracepoint, get_tracepoint_by_number_on_target)
380 (get_tracepoint_by_number): Change return type to struct
381 tracepoint pointer, and adjust.
382 (print_recreate_thread): New, factored out from save_breakpoints.
383 (save_breakpoints): Don't print thread and task and passcount
385 * remote.c (remote_download_tracepoint): Adjust.
386 * tracepoint.c (trace_actions_command, validate_actionline)
387 (start_tracing, tfind_1, trace_find_tracepoint_command)
388 (trace_dump_command): Adjust.
389 (find_matching_tracepoint): Change return type to struct
390 tracepoint pointer, and adjust.
391 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
392 (tfile_trace_find, tfile_fetch_registers): Adjust.
393 * tracepoint.h (create_tracepoint_from_upload): Change return type
394 to struct tracepoint pointer.
395 * ada-lang.c (print_recreate_exception): Call
396 print_recreate_thread.
397 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
399 2011-07-25 Pedro Alves <pedro@codesourcery.com>
401 * breakpoint.h (struct breakpoint): Move ops as first field. Move
402 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
403 cond_exp_valid_block, val, val_valid, watchpoint_frame,
404 watchpoint_thread, watchpoint_triggered ...
405 (struct watchpoint): ... to this new struct.
406 (is_watchpoint): Declare.
407 (install_breakpoint): Add new `internal' parameter.
408 * breakpoint.c (is_watchpoint): Delete declaration.
409 (set_breakpoint_condition): Handle watchpoints.
410 (is_watchpoint): Make public.
411 (watchpoint_in_thread_scope): Change parameter type to struct
413 (watchpoint_del_at_next_stop): Change parameter type to struct
414 watchpoint. Remove assertion. Adjust.
415 (update_watchpoint): Ditto.
416 (insert_breakpoints, breakpoint_init_inferior)
417 (watchpoints_triggered, watchpoint_check)
418 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
419 (bpstat_stop_status, print_one_breakpoint_location)
420 (print_one_breakpoint_location, watchpoint_locations_match): Cast
421 to struct watchpoint as necessary, and adjust.
422 (install_breakpoint): Add `internal' argument. If true, don't
423 mention the new breakpoint. Use set_breakpoint_number.
424 (create_fork_vfork_event_catchpoint)
425 (create_syscall_event_catchpoint): Adjust.
426 (dtor_watchpoint): New.
427 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
428 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
429 (print_it_watchpoint, print_mention_watchpoint)
430 (print_recreate_watchpoint, insert_masked_watchpoint)
431 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
432 (print_one_detail_masked_watchpoint)
433 (print_mention_masked_watchpoint)
434 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
435 necessary, and adjust.
436 (watch_command_1): Allocate and initialize a struct watchpoint
437 instead of a struct breakpoint. Use install_breakpoint.
438 (catch_exec_command_1): Adjust.
439 (base_breakpoint_dtor): Delete accesses to watchpoint specific
441 (delete_breakpoint, enable_breakpoint_disp)
442 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
443 as necessary, and adjust.
444 (initialize_breakpoint_ops): Install dtor_watchpoint as
445 watchpoints' dtor method.
446 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
447 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
448 to struct watchpoint as necessary, and adjust.
450 2011-07-25 Pedro Alves <pedro@codesourcery.com>
452 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
453 the the base class ops table.
454 (catch_exception_breakpoint_ops)
455 (catch_exception_unhandled_breakpoint_ops)
456 (catch_assert_breakpoint_ops): Don't statically initialize.
457 (initialize_ada_catchpoint_ops): New.
458 (_initialize_ada_language): Call it.
459 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
460 (bkpt_breakpoint_ops): Forward declare.
461 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
462 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
463 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
464 (masked_watchpoint_breakpoint_ops)
465 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
466 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
467 base class ops table.
468 (null_re_set, null_check_status, null_works_in_software_mode)
469 (null_resources_needed, null_print_one_detail): Delete.
470 (bkpt_dtor): Rename to ...
471 (base_breakpoint_dtor): ... this. Make static.
472 (bkpt_allocate_location): Rename to ...
473 (base_breakpoint_allocate_location): ... this. Make static.
474 (base_breakpoint_re_set): New.
475 (internal_error_pure_virtual_called): New.
476 (base_breakpoint_insert_location, base_breakpoint_remove_location)
477 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
478 (base_breakpoint_works_in_software_mode)
479 (base_breakpoint_resources_needed, base_breakpoint_print_it)
480 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
481 (base_breakpoint_print_recreate): New functions.
482 (base_breakpoint_ops): New global.
483 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
484 (bkpt_breakpoint_hit): Make static.
485 (bkpt_check_status): Delete.
486 (bkpt_resources_needed): Make static.
487 (bkpt_works_in_software_mode): Delete.
488 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
490 (bkpt_breakpoint_ops, internal_breakpoint_ops)
491 (momentary_breakpoint_ops): Don't statically initialize.
492 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
494 (tracepoint_insert_location, tracepoint_remove_location)
495 (tracepoint_check_status, tracepoint_works_in_software_mode)
496 (tracepoint_print_it): Delete.
497 (tracepoint_breakpoint_ops): Don't statically initialize.
498 (initialize_breakpoint_ops): New.
499 (_initialize_breakpoint): Call it.
500 * breakpoint.h (null_re_set, null_works_in_software_mode)
501 (null_resources_needed, null_check_status, null_print_one_detail):
502 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
503 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
504 (bkpt_check_status, bkpt_resources_needed)
505 (bkpt_works_in_software_mode, bkpt_print_it)
506 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
508 (initialize_breakpoint_ops): Declare.
510 2011-07-25 Pedro Alves <pedro@codesourcery.com>
512 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
513 (momentary_bkpt_print_it): Simplify.
515 2011-07-25 Pedro Alves <pedro@codesourcery.com>
517 Split internal, momentary and user breakpoints breakpoint_ops
520 * breakpoint.c (internal_breakpoint_ops)
521 (momentary_breakpoint_ops): Forward declare.
522 (create_internal_breakpoint): Add new breakpoint_ops parameter.
523 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
524 (create_overlay_event_breakpoint)
525 (create_std_terminate_master_breakpoint)
526 (create_exception_master_breakpoint): Create breakpoints with
527 internal_breakpoint_ops vtable.
528 (set_longjmp_breakpoint): Create momentary breakpoints with
529 momentary_breakpoint_ops vtable, using
530 momentary_breakpoint_from_master.
531 (create_thread_event_breakpoint, create_jit_event_breakpoint)
532 (create_solib_event_breakpoint): Create breakpoints with
533 internal_breakpoint_ops vtable.
534 (set_momentary_breakpoint): Create breakpoints with
535 momentary_breakpoint_ops vtable.
536 (momentary_breakpoint_from_master): New, factored out from
537 clone_momentary_breakpoint.
538 (clone_momentary_breakpoint): Adjust.
539 (watch_command_1): Create scope breakpoints with
540 momentary_breakpoint_ops vtable.
541 (bkpt_re_set): Remove handling of internal and momentary
543 (bkpt_print_mention, bkpt_print_recreate): New.
544 (bkpt_breakpoint_ops): Adjust.
545 (internal_bkpt_re_set, internal_bkpt_check_status)
546 (internal_bkpt_print_it, internal_bkpt_print_mention)
547 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
548 (momentary_bkpt_re_set, momentary_bkpt_check_status)
549 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
550 (momentary_bkpt_print_recreate): New.
551 (momentary_breakpoint_ops): New.
553 2011-07-25 Pedro Alves <pedro@codesourcery.com>
555 Implement most breakpoint_ops methods for all breakpoint types,
556 and move the default handlings to the proper callbacks.
558 * breakpoint.c (update_watchpoint): Always call the breakpoint's
559 works_in_software_mode method.
560 (insert_bp_location): Go through breakpoint_ops->insert_location
561 for software and hardware watchpoints.
562 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
564 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
565 for software and hardware watchpoints.
566 (print_it_typical): Delete.
567 (print_bp_stop_message): Always call the breakpoint_ops->print_it
569 (watchpoint_check): Adjust comment.
570 (bpstat_check_location): Simply always call the breakpoint's
571 breakpoint_hit method.
572 (bpstat_stop_status): Always call the breakpoint's check_status
573 method. Remove special cases for watchpoints and internal event
574 breakpoints from here (moved to the check_status implementations).
575 (print_one_breakpoint_location): Assume b->ops is never NULL.
576 Remove static tracepoint marker id printing from here (moved to
577 the print_one_detail callback implementation of tracepoints).
578 (init_bp_location): Assert OPS is never NULL.
579 (allocate_bp_location): Always call the breakpoint's
580 allocate_location method, and remove the default code from here.
581 (free_bp_location): Always call the location's dtor method, and
582 remove the default code from here.
583 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
584 (set_raw_breakpoint_without_location): Add new breakpoint_ops
585 parameter. Pass it down.
586 (set_raw_breakpoint): Ditto.
587 (print_it_catch_fork): Adjust to take a bpstat as argument.
588 (catch_fork_breakpoint_ops): Install methods.
589 (print_it_catch_vfork): Adjust to take a bpstat as argument.
590 (catch_vfork_breakpoint_ops): Install methods.
591 (dtor_catch_syscall): Call the base dtor.
592 (print_it_catch_syscall): Adjust to take a bpstat as argument.
593 (catch_syscall_breakpoint_ops): Install methods.
594 (dtor_catch_exec): Call the base dtor.
595 (print_it_catch_exec): Adjust to take a bpstat as argument.
596 (catch_exec_breakpoint_ops): Install methods.
597 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
598 the breakpoint's resources_needed method, and remove the default
600 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
602 (clone_momentary_breakpoint): Clone the original's ops.
603 (mention): Always call the breakpoint's print_mention method, and
604 remove the default code from here.
605 (create_breakpoint_sal): Adjust to pass the ops to
606 set_raw_breakpoint rather than setting it manually.
607 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
608 ops to set_raw_breakpoint_without_location rather than setting it
610 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
611 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
612 (ranged_breakpoint_ops): Install methods.
613 (break_range_command): Adjust to pass the ops to
614 set_raw_breakpoint rather than setting it manually.
615 (re_set_watchpoint, breakpoint_hit_watchpoint)
616 (check_status_watchpoint, resources_needed_watchpoint)
617 (works_in_software_mode_watchpoint, print_it_watchpoint)
618 (print_mention_watchpoint, print_recreate_watchpoint): New
620 (watchpoint_breakpoint_ops): Install new methods.
621 (print_it_masked_watchpoint): New function.
622 (masked_watchpoint_breakpoint_ops): Install new methods.
623 (watch_command_1): Adjust to pass the right breakpoint_ops to
624 set_raw_breakpoint_without_location rather than setting it
625 manually later. Record the current pspace.
626 (print_it_exception_catchpoint): Adjust to take a bpstat as
628 (gnu_v3_exception_catchpoint_ops): Install new methods.
629 (say_where): New function.
630 (null_re_set, null_check_status, null_works_in_software_mode)
631 (null_resources_needed, null_print_one_detail, bp_location_dtor):
633 (bp_location_ops): New global.
634 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
635 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
636 (bkpt_check_status, bkpt_resources_needed)
637 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
638 (bkpt_print_recreate): New functions.
639 (bkpt_breakpoint_ops): New global.
640 (tracepoint_re_set, tracepoint_insert_location)
641 (tracepoint_remove_location, tracepoint_breakpoint_hit)
642 (tracepoint_check_status, tracepoint_works_in_software_mode)
643 (tracepoint_print_it, tracepoint_print_one_detail)
644 (tracepoint_print_mention, tracepoint_print_recreate): New
646 (tracepoint_breakpoint_ops): New global.
647 (delete_breakpoint): Always call the breakpoint's dtor method, and
648 remove the default handling from here.
649 (breakpoint_re_set_default): Make static.
650 (breakpoint_re_set_one): Always call the breakpoints re_set
651 method, and remove the default handling from here.
652 (trace_command, ftrace_command, strace_command)
653 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
654 to create_breakpoint.
655 (save_breakpoints): Always call the breakpoint's print_recreate
656 method, and remove the default handling from here.
658 * ada-lang.c (dtor_exception): Call the base dtor.
659 (re_set_exception): Call the base method.
660 (print_it_exception, print_it_catch_exception): Adjust to take a
662 (catch_exception_breakpoint_ops): Install methods.
663 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
665 (catch_exception_unhandled_breakpoint_ops): Install methods.
666 (print_it_catch_assert): Adjust to take a bpstat as argument.
667 (catch_assert_breakpoint_ops): Install methods.
669 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
670 to take a bpstat as argument.
671 (enum print_stop_action): Add describing comments to each enum
673 (breakpoint_re_set_default): Delete declaration.
674 (null_re_set, null_works_in_software_mode, null_resources_needed)
675 (null_check_status, null_print_one_detail): Declare.
676 (bkpt_breakpoint_ops): Declare.
677 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
678 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
679 (bkpt_check_status, bkpt_resources_needed)
680 (bkpt_works_in_software_mode, bkpt_print_it)
681 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
684 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
686 * python/py-breakpoint.c (bppy_init): Ditto.
688 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
690 * MAINTAINERS (Write After Approval): Add myself to the list.
692 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
694 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
696 2011-07-22 Pedro Alves <pedro@codesourcery.com>
698 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
699 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
700 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
702 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
703 (struct i386_debug_reg_state): New.
704 (i386_init_dregs): New.
706 (i386_cleanup_dregs): Use i386_init_dregs.
707 (i386_show_dr): Add state parameter and adjust.
708 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
710 (i386_remove_aligned_watchpoint): Likewise.
711 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
712 (i386_update_inferior_debug_regs): New.
713 (i386_insert_watchpoint): Work on a local mirror of the debug
714 registers, and only update the inferior on success.
715 (i386_remove_watchpoint): Ditto.
716 (i386_region_ok_for_watchpoint): Adjust.
717 (i386_stopped_data_address): Adjust.
718 (i386_insert_hw_breakpoint): Adjust.
719 (i386_remove_hw_breakpoint): Adjust.
721 2011-07-22 Tom Tromey <tromey@redhat.com>
723 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
724 from amd64_pseudo_register_read. Change arguments. Call
725 mark_value_bytes_unavailable when needed.
726 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
727 set_gdbarch_pseudo_register_read.
728 * sentinel-frame.c (sentinel_frame_prev_register): Use
729 regcache_cooked_read_value.
730 * regcache.h (regcache_cooked_read_value): Declare.
731 * regcache.c (regcache_cooked_read_value): New function.
732 (regcache_cooked_read): Call
733 gdbarch_pseudo_register_read_value if available.
734 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
735 (i386_pseudo_register_read): Remove.
736 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
737 i386_pseudo_register_read. Change arguments. Call
738 mark_value_bytes_unavailable when needed.
739 (i386_pseudo_register_read_value): New function.
740 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
741 not set_gdbarch_pseudo_register_read.
742 * gdbarch.sh (pseudo_register_read_value): New method.
743 * gdbarch.c, gdbarch.h: Rebuild.
744 * findvar.c (value_from_register): Call get_frame_register_value.
746 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
748 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
750 (display_gdb_prompt): Likewise.
751 (change_annotation_level): Likewise.
752 (push_prompt): Likewise.
753 (pop_prompt): Likewise.
754 (handle_stop_sig): Use get_prompt with a level.
755 * top.c (command_loop): Use get_prompt with a level.
756 (set_async_annotation_level): Use set_prompt with a level.
757 (get_prefix): New function.
761 (get_prompt): Accept a level argument.
762 (set_prompt): Accept a level argument. Free old prompts. Set
763 new_async_prompt if level is 0.
764 (init_main): Use set_prompt with a level. Do not set
766 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
767 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
768 Modify set_prompt, get_prompt to account for levels.
769 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
771 * python/python.c (before_prompt_hook): Use set_prompt.
773 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
775 * defs.h: Add guard against inclusion in gdbserver.
776 (struct ptid, ptid_t): Move to common/ptid.h.
777 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
778 xsnprintf, internal_error): Move to common/common-utils.h.
780 * gdb_assert.h: Move into common/ sub-directory.
781 * gdb_locale.h: Ditto.
782 * gdb_dirent.h: Ditto.
783 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
784 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
785 Move into common/ptid.h.
786 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
787 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
788 Change nomem to malloc_failure.
789 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
790 * utils.c (nomem): Rename to malloc_failure.
791 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
792 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
793 (gdb_buildargv): Change nomem to malloc_failure.
794 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
795 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
796 ptid_is_pid): Move into common/ptid.c.
797 (initialize_infrun): Delete initialization of null_ptid and
799 * linux-nat.c (linux_nat_xfer_osdata): Defer to
800 linux_common_xfer_osdata.
801 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
802 common/ptid.c and common/buffer.c.
803 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
804 common/ptid.h, common/buffer.h and common/linux-osdata.h.
805 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
806 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
808 * common/gdb_assert.h: New.
809 * common/gdb_dirent.h: New.
810 * common/gdb_locale.h: New.
811 * common/buffer.c: New.
812 * common/buffer.h: New.
813 * common/ptid.c: New.
814 * common/ptid.h: New.
815 * common/xml-utils.c: New.
816 * common/xml-utils.h: New.
817 * common/common-utils.c: New.
818 * common/common-utils.h: New.
819 * common/linux-osdata.c: New.
820 * common/linux-osdata.h: New.
821 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
822 * config/arm/linux.mh (NATDEPFILES): Ditto.
823 * config/i386/linux.mh (NATDEPFILES): Ditto.
824 * config/i386/linux64.mh (NATDEPFILES): Ditto.
825 * config/ia64/linux.mh (NATDEPFILES): Ditto.
826 * config/m32r/linux.mh (NATDEPFILES): Ditto.
827 * config/m68k/linux.mh (NATDEPFILES): Ditto.
828 * config/mips/linux.mh (NATDEPFILES): Ditto.
829 * config/pa/linux.mh (NATDEPFILES): Ditto.
830 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
831 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
832 * config/s390/s390.mh (NATDEPFILES): Ditto.
833 * config/sparc/linux.mh (NATDEPFILES): Ditto.
834 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
835 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
837 2011-07-21 Matt Rice <ratmice@gmail.com>
839 * NEWS: Add info macros and info definitions commands.
841 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
843 * NEWS: Document Python prompt substitution hook.
845 2011-07-18 Matt Rice <ratmice@gmail.com>
848 * macrotab.h (macro_callback_fn): Add new arguments to callback.
849 * macrotab.c (foreach_macro): Ditto.
850 (foreach_macro_in_scope): Ditto.
851 * macrocmd.c (print_macro_callback): New function.
852 (info_macro_command): Move some code to print_macro_definition.
853 (print_macro_definition): New function.
854 (print_one_macro): Add new arguments to callback.
855 (info_definitions_command): New function.
856 (info_macros_command): Ditto.
857 (_initialize_macrocmd): Add info macros and info definitions commands.
858 * symtab.c (add_macro_name): Add new arguments to callback.
860 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
861 Tom Tromey <tromey@redhat.com>
863 * top.c (set_prompt): Rewrite to free previous prompt, free
864 asynch_new_prompt and set both on new prompts.
865 * event-top.c (display_gdb_prompt): Add prompt substitution
867 * python/python.c (before_prompt_hook): New function.
869 2011-07-20 Matt Rice <ratmice@gmail.com>
871 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
872 arguments to store_unsigned_integer.
874 2011-07-20 Tom Tromey <tromey@redhat.com>
876 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
877 in some declaration-only cases.
879 2011-07-18 Tom Tromey <tromey@redhat.com>
882 * dwarf2read.c (dwarf2_section_info_def): New typedef.
883 (struct dwarf2_per_objfile) <types>: Change to a VEC.
884 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
885 <debug_type_section>: New field.
886 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
887 (load_cu): Use appropriate section.
888 (create_signatured_type_table_from_index): Add 'section'
890 (dwarf2_read_index): Only allow a single .debug_types section.
891 (dw2_get_file_names): Use appropriate section.
892 (read_type_comp_unit_head): Add 'section' argument.
893 (create_debug_types_hash_table): Loop over all .debug_types
895 (init_cu_die_reader): Use appropriate section.
896 (process_psymtab_comp_unit, load_partial_comp_unit)
897 (load_full_comp_unit, read_die_and_children, find_partial_die)
898 (lookup_die_type, determine_prefix, follow_die_offset): Update.
899 (lookup_signatured_type_at_offset): Add 'section' argument.
900 (read_signatured_type_at_offset): Add 'sect' argument.
901 (read_signatured_type): Use appropriate section.
902 (set_die_type, get_die_type_at_offset): Update.
903 (dwarf2_per_objfile_free): Free all .debug_types sections, and
905 (write_psymtabs_to_index): Don't allow index with more than one
906 .debug_types section.
908 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
910 Fix crash if referenced CU is aged out.
911 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
913 (indirect_pieced_value): New variable back_to, use to for xfree of
915 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
917 * dwarf2read.c (dwarf2_find_base_address): New prototype.
918 (load_cu): New function from ...
919 (dw2_do_instantiate_symtab): ... the code here ...
920 (process_full_comp_unit): ... and here.
921 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
924 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
926 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
929 2011-07-19 Gary Benson <gbenson@redhat.com>
931 * infrun.c (struct execution_control_state): New member
933 (clear_stop_func, fill_in_stop_func): New functions.
934 (handle_inferior_event): Call clear_stop_func rather than
935 manipulating the execution control state directly.
936 Call fill_in_stop_func lazily as required rather than
937 directly calling find_pc_partial_function in all cases.
939 2011-07-18 Tom Tromey <tromey@redhat.com>
941 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
942 checking for variable-sized array.
944 2011-07-18 Jean-Charles Delay <delay@adacore.com>
946 * varobj.h (varobj_languages): Add vlang_ada definition to the list
947 of supported languages.
948 * varobj.c: Add top definitions and basic implementation of the
949 following callbacks: ada_number_of_children, ada_name_of_variable,
950 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
951 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
952 (languages): Register Ada-specific callbacks.
953 (variable_language): Add the Ada case in the language setter switch.
955 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
957 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
959 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
962 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
963 (execute_stack_op): Use dwarf2_frame_ctx_funcs
964 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
965 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
966 get_frame_cfa, get_tls_address and dwarf_call via funcs.
967 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
968 (struct dwarf_expr_context_funcs): New, move here methods from ...
969 (struct dwarf_expr_context): ... here. New fields funcs.
970 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
971 (dwarf_expr_ctx_funcs): New.
972 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
973 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
974 (needs_frame_ctx_funcs): New.
975 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
977 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
979 * MAINTAINERS (Write After Approval): Add myself to the list.
981 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
983 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
984 that CIE pointer of an FDE really points to a CIE .
986 2011-07-15 Hui Zhu <teawater@gmail.com>
988 * remote.c (remote_get_trace_status): Add comments.
990 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
992 Code cleanup - constify struct lval_funcs.
993 * dwarf2loc.c (pieced_value_funcs): Make it const.
994 * infrun.c (siginfo_value_funcs): Likewise.
995 * opencl-lang.c (opencl_value_funcs): Likewise.
996 * valops.c (value_assign, value_ind): Make the funcs variable const.
997 * value.c (struct value): Make location.computed.funcs target const.
998 Rearrange the comments.
999 (allocate_computed_value): Make the funcs parameter target const.
1000 (value_computed_funcs): Return the funcs target const.
1001 (value_free, value_copy, set_value_component_location): Make the funcs
1003 * value.h (allocate_computed_value): Make the funcs parameter target
1005 (value_computed_funcs): Return the funcs target const.
1006 * windows-tdep.c (tlb_value_funcs): Make it const.
1008 2011-07-14 Hui Zhu <teawater@gmail.com>
1010 * remote.c (remote_get_trace_status): Initialize p.
1012 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1015 * remote.c (remote_get_trace_status): New variable ex. Put
1016 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1018 2011-07-13 Tom Tromey <tromey@redhat.com>
1020 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1021 value_from_contents for final conversion.
1023 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1026 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1027 Indent prototypes so they do not get into tags.
1029 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1031 Code cleanup making also optimized out values lazy.
1032 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1033 allocate_optimized_out_value. Twice.
1034 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1035 * findvar.c (read_var_value): Likewise.
1036 * value.c (allocate_optimized_out_value): New function.
1037 * value.h (allocate_optimized_out_value): New declaration.
1039 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1041 Fix occasional crash of CTRL-C during DWARF read in.
1042 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1044 2011-07-11 Tom Tromey <tromey@redhat.com>
1046 * regcache.c (struct regcache_descr): Fix typo.
1047 * i387-tdep.c (i387_supply_xsave): Fix typo.
1049 2011-07-11 Tom Tromey <tromey@redhat.com>
1051 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1052 (read_file_scope, read_type_unit_scope): Use it.
1054 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1056 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1059 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1062 * python/python.c: Set gdbpy_should_print_stack default to off.
1063 (set_python): Deprecate maint set python print-stack to
1065 (_initialize_python): Deprecate maint set/show python print-stack.
1066 Add new prefix command, python. Add new setting, print-backtrace.
1067 * NEWS: Document set python print-stack. Document default change.
1069 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1071 * python/py-inferior.c (infpy_dealloc): New function.
1072 (inferior_to_inferior_object): Return a new object, or a
1073 new reference to the existing object.
1074 (find_thread_object): Cleanup references to inferior.
1075 (delete_thread_object): Ditto.
1076 * python/py-infthread.c (create_thread_object): Do not increment
1077 inferior reference count.
1079 2011-07-08 Tom Tromey <tromey@redhat.com>
1081 * dwarf2loc.c (locexpr_regname): New function.
1082 (locexpr_describe_location_piece): Use it.
1083 (disassemble_dwarf_expression): Add per_cu argument. Use
1085 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1086 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1088 (locexpr_describe_location_1): Add per_cu argument.
1089 (locexpr_describe_location): Update.
1090 (loclist_describe_location): Update.
1092 2011-07-08 Tom Tromey <tromey@redhat.com>
1094 * dwarf2expr.c (execute_stack_op): Add QUIT.
1096 2011-07-07 Hui Zhu <teawater@gmail.com>
1099 2011-07-06 Hui Zhu <teawater@gmail.com>
1100 * remote.c (remote_start_remote): Add TRY_CATCH for
1101 remote_get_trace_status.
1102 * tracepoint.c (disconnect_tracing): Ditto.
1104 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1106 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1107 variables as signed, not unsigned.
1109 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1111 * jit.c (jit_inferior_init): Reformat forward declaration.
1113 2011-07-06 Matt Rice <ratmice@gmail.com>
1115 * MAINTAINERS (Write After Approval): Add myself to the list.
1117 2011-07-06 Hui Zhu <teawater@gmail.com>
1119 * remote.c (remote_start_remote): Add TRY_CATCH for
1120 remote_get_trace_status.
1121 * tracepoint.c (disconnect_tracing): Ditto.
1123 2011-07-05 Tom Tromey <tromey@redhat.com>
1125 * symtab.c (operator_chars): Now static.
1126 * linespec.c (operator_chars): Don't declare.
1128 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1130 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1132 2011-07-05 Tom Tromey <tromey@redhat.com>
1134 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1135 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1136 (TYPE_CPLUS_REALLY_JAVA): New macro.
1137 * dwarf2read.c (process_structure_scope): Set
1138 TYPE_CPLUS_REALLY_JAVA.
1140 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1142 * ada-lang.c: Fix typos.
1143 * amd64-tdep.c: Likewise.
1144 * breakpoint.c: Likewise.
1145 * cli/cli-decode.c: Likewise.
1146 * findcmd.c: Likewise.
1147 * inline-frame.c: Likewise.
1148 * mi/mi-main.c: Likewise.
1149 * minsyms.c: Likewise.
1150 * monitor.c: Likewise.
1151 * monitor.h: Likewise.
1152 * prologue-value.c: Likewise.
1153 * reverse.c: Likewise.
1154 * s390-tdep.c: Likewise.
1156 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1158 * jit.c (jit_inferior_init): Forward declare.
1159 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1161 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1163 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1165 2011-07-04 Tristan Gingold <gingold@adacore.com>
1167 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1168 (tcb_fieldno): Add activation_link field.
1169 (get_known_tasks_addr): Moved and rewritten.
1170 (get_tcb_types_info): Set activation_link field.
1171 (read_known_tasks_array): Add parameter. Rewritten.
1172 (read_known_tasks_list): New function.
1173 (read_known_tasks): New function.
1174 (ada_build_task_list): Call read_known_tasks instead of
1175 read_known_tasks_array.
1176 * ravenscar-thread.c: Add first_task_name constant.
1177 (has_ravenscar_runtime): Check for task list too.
1179 2011-07-04 Tristan Gingold <gingold@adacore.com>
1181 * ada-tasks.c: Renames fieldno to actb_fieldno.
1182 (ada_get_task_number): Indentation.
1183 (get_tcb_types_info): Remove all parameters. Write directly
1185 (ptid_from_atcb_common): Adjust.
1186 (read_atcb): Adjust.
1188 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1190 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1192 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1194 * ui-out.c (ui_out_field_core_addr): Mention that the function
1195 description is in the header file.
1196 * ui-out.h (ui_out_field_core_addr): Document function.
1198 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1200 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1201 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1203 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1205 * symtab.c (expand_line_sal): Remove empty line.
1207 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1209 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1210 same way as ELFOSABI_NONE.
1211 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1213 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1215 * breakpoint.c: Fix typos in comments.
1216 * linespec.c: Likewise.
1217 * symtab.c: Likewise.
1219 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1221 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1222 section in separate object files.
1224 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1226 Fix false GCC warning.
1227 * linespec.c (decode_line_1): Initialize values.
1229 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1231 * linespec.c (find_method): Accept the function type automatically only
1232 if it was specified with parameter types.
1234 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1236 Stop on first linespec terminator instead of eating what we can.
1237 * linespec.c (is_linespec_boundary): New function.
1238 (name_end): Remove function.
1239 (keep_name_info): New parameter on_boundary, replace the body.
1240 (decode_line_1): Provide the parameter to keep_name_info.
1241 (decode_compound): Likewise. Drop the trailing java return type
1244 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1246 Fall back linespec to minimal symbols.
1247 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1248 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1249 (find_method, symbol_found): Change error to cplusplus_error.
1251 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1253 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1255 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1256 Tom Tromey <tromey@redhat.com>
1258 * dwarf2read.c (check_physname): New variable.
1259 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1260 (show_check_physname): New function.
1261 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1263 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1265 * machoread.c (macho_symfile_read): Delete OBE comment.
1267 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1269 * machoread.c (struct macho_oso_data): Delete.
1270 (current_oso): Delete.
1271 (macho_relocate_common_syms): New function, mostly extracted
1273 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1274 Remove code that sets and unset current_oso.
1275 (macho_symfile_relocate): Delete handling of common symbols,
1276 now moved to macho_relocate_common_syms.
1278 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1280 * darwin-nat.c (darwin_ptrace): Add documentation.
1281 Set errno to zero before calling ptrace. If ptrace returns
1282 -1 and errno is zero, then change then return zero.
1283 (darwin_kill_inferior): Issue a warning instead of triggering
1284 a failed assertion when the PT_KILL ptrace operations returned
1287 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1289 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1290 only when inf->private->no_ptrace.
1292 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1294 * ada-lang.c (print_it_exception): Print temporary catchpoints
1295 as "Temporary catchpoint".
1296 (print_mention_exception): Likewise.
1298 2011-07-01 Tom Tromey <tromey@redhat.com>
1300 * jv-lang.c (java_language_defn): Use java_printchar,
1302 (java_get_encoding): New function.
1303 (java_emit_char): Use generic_emit_char.
1304 (java_printchar): New function.
1305 (java_printstr): Likewise.
1307 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1309 * ada-typeprint.c (print_record_type): If unable to decode
1310 the name of the parent type, use the encoded name.
1312 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1314 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1315 pointer to constrained packed array type output.
1316 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1317 packed array output.
1319 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1321 * ada-typeprint.c (print_array_type): removed if condition on show
1322 being negative for bounds printing.
1324 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1326 * ada-lang.c (ada_identical_enum_types_p): New function.
1327 (symbols_are_identical_enums): New function.
1328 (remove_extra_symbols): Do nothing if NSYMS < 2.
1329 Use symbols_are_identical_enums.
1331 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1333 * ada-valprint.c (ada_value_print): Handle typedefs.
1335 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1337 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1339 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1341 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1342 (decode_constrained_packed_array): Likewise.
1343 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1345 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1347 * ada-exp.y (convert_char_literal): Handle typedef types.
1349 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1351 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1353 2011-06-30 Tom Tromey <tromey@redhat.com>
1355 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1356 * valops.c (find_overload_match): Call do_cleanups on early exit
1358 * solib.c (solib_find): Call do_cleanups on early exit path.
1360 2011-06-30 Tom Tromey <tromey@redhat.com>
1362 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1363 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1364 return paths. Defer final do_cleanups until last return.
1365 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1368 2011-06-30 Tom Tromey <tromey@redhat.com>
1370 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1372 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1374 * MAINTAINERS (Write After Approval): Add myself to the list.
1376 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1378 Disable epilogue unwinders on recent GCCs.
1379 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1380 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1381 * dwarf2read.c (process_full_comp_unit): Initialize
1382 EPILOGUE_UNWIND_VALID.
1383 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1384 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1385 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1387 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1389 Code cleanup - reformatting.
1390 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1391 (producer_is_gcc_ge_4): ... here, change the return value.
1392 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1395 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1397 Fix non-only rename list for Fortran modules import.
1398 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1399 cp_add_using_directive caller.
1400 (cp_add_using_directive): New parameter excludes, describe it. New
1401 variables ix and param. Compare if also excludes match. Allocate NEW
1402 with variable size, initialize EXCLUDES there.
1403 (cp_lookup_symbol_imports): New variable excludep, test
1404 current->EXCLUDES with it.
1405 * cp-support.h: Include vec.h.
1406 (struct using_direct): New field excludes, describe it.
1407 (DEF_VEC_P (const_char_ptr)): New.
1408 (cp_add_using_directive): New parameter excludes.
1409 * defs.h (const_char_ptr): New typedef.
1410 * dwarf2read.c (read_import_statement): New variables child_die,
1411 excludes and cleanups, read in excludes.
1412 (read_namespace): Adjust the cp_add_using_directive caller.
1414 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1417 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1418 negative comparisons.
1420 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1422 * mi/mi-main.c (mi_cmd_list_features): Emit
1423 breakpoint-notifications.
1425 2011-06-29 Tom Tromey <tromey@redhat.com>
1428 * valprint.h (generic_emit_char, generic_printstr): Declare.
1429 * valprint.c (wchar_printable, append_string_as_wide)
1430 (print_wchar): Move from c-lang.c.
1431 (generic_emit_char): New function; mostly taken from c_emit_char.
1432 (generic_printstr): New function; mostly taken from c_printstr.
1433 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1434 represented as arrays.
1435 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1437 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1438 identically to TYPE_CODE_INT.
1439 * f-lang.c (f_get_encoding): New function.
1440 (f_emit_char): Use generic_emit_char.
1441 (f_printchar): Replace comment.
1442 (f_printstr): Use generic_printstr.
1443 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1444 "character" types specially.
1445 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1447 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1449 (c_emit_char): Call generic_emit_char.
1450 (c_printstr): Call generic_printstr.
1452 2011-06-29 Gary Benson <gbenson@redhat.com>
1454 * breakpoint.c (bpstat_what): Removed duplicated case.
1456 2011-06-28 Tom Tromey <tromey@redhat.com>
1458 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1460 2011-06-27 Tom Tromey <tromey@redhat.com>
1462 * valops.c (find_overload_match): Call do_cleanups before early
1464 * top.c (execute_command): Call do_cleanups before early return.
1465 (command_loop): Likewise.
1466 * stack.c (backtrace_command): Make a null cleanup early. Don't
1467 conditionally call do_cleanups.
1468 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1470 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1471 so cleanups are always run.
1472 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1473 * findcmd.c (parse_find_args): Call do_cleanups on early return
1475 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1476 Don't conditionally call do_cleanups.
1477 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1480 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1482 * MAINTAINERS (Write After Approval): Use default email address.
1484 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1486 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1488 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1490 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1491 saved_regs_mask and copied_regs_mask fields.
1492 (sparc_record_save_insn): New prototype.
1493 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1494 (sparc_record_save_insn): New function.
1495 (sparc_analyze_prologue): Add head comment. Recognize store insns
1496 of call-saved registers. Use OFFSET consistently. Recognize flat
1497 frames and cache their settings.
1498 (sparc32_skip_prologue): Handle flat frames.
1499 (sparc_frame_cache): Add frame_offset to the base address.
1500 (sparc32_frame_cache): Adjust to new frame description.
1501 (sparc32_frame_prev_register): Likewise.
1502 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1503 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1504 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1505 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1506 frame by calling sparc_record_save_insn.
1507 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1508 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1509 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1511 2011-06-27 Tristan Gingold <gingold@adacore.com>
1513 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1514 field by map_addr and map_len.
1515 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1516 (munmap_section_buffer): Likewise.
1518 2011-06-24 Tom Tromey <tromey@redhat.com>
1520 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1521 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1522 * python/python.c (gdbpy_parameter): Make 'arg' const.
1523 (execute_gdb_command): Likewise.
1524 (gdbpy_decode_line): Likewise. Copy it.
1525 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1526 (gdbpy_write): Make 'arg' const.
1527 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1529 (gdbpy_lookup_type): Likewise.
1530 * python/py-prettyprint.c (print_children): Make 'name' const.
1531 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1532 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1534 * python/py-function.c (fnpy_init): Make 'name' const.
1535 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1536 (gdbpy_string_to_argv): Make 'input' const.
1537 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1539 * gdbtypes.h (lookup_typename): Update.
1540 * gdbtypes.c (lookup_typename): Make 'name' const.
1541 (lookup_struct): Likewise.
1542 (lookup_union): Likewise.
1543 (lookup_enum): Likewise.
1545 2011-06-24 Tom Tromey <tromey@redhat.com>
1547 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1548 gdb_thread_db.h. Move all common/ entries to be together.
1549 (TAGS): Don't depend on DEPFILES.
1551 2011-06-23 Yao Qi <yao@codesourcery.com>
1553 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1554 * remote.c (remote_start_remote): ... here.
1555 * monitor.c (monitor_open): ... here.
1557 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
1559 * gdbtypes.c (append_composite_type_field_aligned): Fix
1560 calculation of bit position based on alignment.
1562 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1564 * breakpoint.c (bpstat_stop_status): Call the check_status
1565 breakpoint_ops method.
1566 (print_one_breakpoint_location): Also print the condition for Ada
1567 exception catchpoints.
1568 (allocate_bp_location): New, factored out from
1569 allocate_bp_location.
1570 (allocate_bp_location): Adjust. Call the owner breakpoint's
1571 allocate_location method, if there is one.
1572 (free_bp_location): Call the locations's dtor method, if there is
1574 (init_raw_breakpoint_without_location): New breakpoint_ops
1576 (set_raw_breakpoint_without_location): Adjust.
1577 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1578 (set_raw_breakpoint): Adjust.
1579 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1580 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1581 re_set and check_status methods.
1582 (init_catchpoint): Don't memset, initialize thread, addr_string
1583 and enable_state. Pass the ops down to init_raw_breakpoint.
1584 (install_catchpoint): Rename to ...
1585 (install_breakpoint): ... this, and make extern.
1586 (create_fork_vfork_event_catchpoint): Adjust.
1587 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1588 re_set and check_status methods.
1589 (create_syscall_event_catchpoint): Adjust.
1590 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1591 (masked_watchpoint_breakpoint_ops): Install NULL
1592 allocate_location, re_set and check_status methods.
1593 (catch_exec_command_1): Adjust.
1594 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1595 re_set and check_status methods.
1596 (create_ada_exception_breakpoint): Rename to ...
1597 (init_ada_exception_breakpoint): ... this. Add a struct
1598 breakpoint parameter, and delete the exp_string, cond_string and
1599 cond parameters. Use init_raw_breakpoint, and don't install or
1600 mention the breakpoint yet. Don't clear breakpoint fields that
1601 init_raw_breakpoint already clears.
1602 (re_set_breakpoint): Delete, split into ...
1603 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1605 (breakpoint_re_set_one): Call the breakpoint's
1606 breakpoint_ops->re_set implementation, if there's one. Adjust.
1607 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1608 (struct bp_location_ops): New type.
1609 (struct bp_location): New field `ops'.
1610 (struct breakpoint_ops): New `allocate_location', `re_set' and
1611 `check_status' fields. Make `breakpoint_hit''s description match
1613 (init_bp_location): Declare.
1614 (breakpoint_re_set_default): Declare.
1615 (create_ada_exception_breakpoint): Rename to ...
1616 (init_ada_exception_breakpoint): ... this. Add a struct
1617 breakpoint parameter, and delete the exp_string, cond_string and
1619 (install_breakpoint): Declare.
1620 * ada-lang.c: Include exceptions.h.
1621 <Ada exceptions description>: Update.
1622 (struct ada_catchpoint_location): New type.
1623 (ada_catchpoint_location_dtor): New function.
1624 (ada_catchpoint_location_ops): New global.
1625 (ada_catchpoint): New type.
1626 (create_excep_cond_exprs): New function.
1627 (dtor_exception, allocate_location_exception, re_set_exception)
1628 (should_stop_exception, check_status_exception): New functions.
1629 (print_one_exception, print_mention_exception)
1630 (print_recreate_exception): Adjust.
1631 (dtor_catch_exception, allocate_location_catch_exception)
1632 (re_set_catch_exception, check_status_catch_exception): New
1634 (catch_exception_breakpoint_ops): Install them.
1635 (dtor_catch_exception_unhandled)
1636 (allocate_location_catch_exception_unhandled)
1637 (re_set_catch_exception_unhandled)
1638 (check_status_catch_exception_unhandled): New functions.
1639 (catch_exception_unhandled_breakpoint_ops): Install them.
1640 (dtor_catch_assert, allocate_location_catch_assert)
1641 (re_set_catch_assert, check_status_catch_assert): New functions.
1642 (catch_assert_breakpoint_ops): Install them.
1643 (ada_exception_catchpoint_p): Delete.
1644 (catch_ada_exception_command_split)
1645 (ada_exception_catchpoint_cond_string): Rename exp_string
1646 parameter to excep_string. Adjust.
1647 (ada_parse_catchpoint_condition): Delete.
1648 (ada_exception_sal): Rename the exp_string parameter to
1649 excep_string. Delete the cond_string and cond parameters.
1651 (ada_decode_exception_location): Rename the exp_string parameter
1652 to excep_string. Delete the cond_string and cond parameters.
1654 (create_ada_exception_catchpoint): New function.
1655 (catch_ada_exception_command, ada_decode_assert_location)
1656 (catch_assert_command): Adjust.
1657 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
1659 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1661 * ada-lang.c: Include arch-utils.h.
1662 (ada_decode_exception_location): Make static.
1663 (catch_ada_exception_command): Moved here from breakpoint.c.
1664 (ada_decode_assert_location): Make static.
1665 (catch_assert_command): Moved here from breakpoint.c.
1666 (_initialize_ada_lang): Install the exception and assert
1667 catchpoint commands here.
1668 * ada-lang.h (ada_decode_exception_location)
1669 (ada_decode_assert_location): Delete declarations.
1670 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
1672 (create_ada_exception_breakpoint): Make extern.
1673 (catch_ada_exception_command, catch_assert_command): Moved to
1675 (add_catch_command): Make extern.
1676 (_initilize_breakpoint): Don't install the exception and assert
1677 catchpoint commands here.
1678 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
1680 (add_catch_command, create_ada_exception_breakpoint): Declare.
1682 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1684 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
1685 the breakpoint to the breakpoint chain here.
1686 (set_raw_breakpoint_without_location): Add the breakpoint to the
1687 breakpoint chain here.
1688 (init_raw_breakpoint): Adjust comments.
1689 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1691 (init_catchpoint): Don't set the catchpoint's breakpoint number
1693 (install_catchpoint): New function.
1694 (create_fork_vfork_event_catchpoint)
1695 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1696 use install_catchpoint.
1698 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1700 * breakpoint.c (create_catchpoint_without_mention)
1701 (create_catchpoint): Delete.
1703 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1705 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1706 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1707 reference to exec_pathname.
1708 (struct exec_catchpoint): New type.
1709 (dtor_catch_exec): New function.
1710 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1711 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1712 (catch_exec_command_1): Adjust to use init_catchpoint.
1713 (delete_breakpoint): Remove reference to exec_pathname.
1715 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1717 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1718 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1719 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1720 reference to syscalls_to_be_caught.
1721 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1723 (struct syscall_catchpoint): New type.
1724 (dtor_catch_syscall): New function.
1725 (insert_catch_syscall, remove_catch_syscall)
1726 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1727 (print_recreate_catch_syscall): Adjust.
1728 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1729 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1730 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1731 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1732 (masked_watchpoint_breakpoint_ops)
1733 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1734 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1735 there is one. Remove references to syscalls_to_be_caught.
1736 (catching_syscall_number): Adjust.
1737 * ada-lang.c (catch_exception_breakpoint_ops)
1738 (catch_exception_unhandled_breakpoint_ops)
1739 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1741 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1743 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1745 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1746 reference to forked_inferior_pid.
1747 (struct fork_catchpoint): New type.
1748 (breakpoint_hit_catch_fork, print_it_catch_fork)
1749 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1750 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1751 (create_fork_vfork_event_catchpoint): Adjust to use
1754 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1756 * breakpoint.c (add_to_breakpoint_chain)
1757 (init_raw_breakpoint_without_location): New functions, factored
1759 (set_raw_breakpoint_without_location): ... this one.
1760 (init_raw_breakpoint): New function, factored out from
1761 set_raw_breakpoint and adjusted to use
1762 init_raw_breakpoint_without_location.
1763 (set_raw_breakpoint): Adjust.
1764 (init_catchpoint): New function, factored out from
1765 create_catchpoint_without_mention and adjusted to use
1766 init_raw_breakpoint.
1767 (create_catchpoint_without_mention): Adjust.
1769 2011-06-22 Tom Tromey <tromey@redhat.com>
1771 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1772 argument of 0 specially.
1774 2011-06-22 Yao Qi <yao@codesourcery.com>
1776 * infrun.c (handle_inferior_event): Remove write-only local variable
1777 `sw_single_step_trap_p'.
1779 2011-06-20 Tom Tromey <tromey@redhat.com>
1781 * symtab.c (lookup_language_this): End loop if block is NULL.
1783 2011-06-17 Tom Tromey <tromey@redhat.com>
1785 * valops.c (value_of_this): Use lookup_language_this.
1786 * symtab.h (lookup_language_this): Declare.
1787 * symtab.c (lookup_language_this): New function.
1788 (lookup_symbol_aux): Use lookup_language_this.
1789 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1791 2011-06-17 Tom Tromey <tromey@redhat.com>
1793 * value.h (value_of_this): Update.
1794 (value_of_local): Remove.
1795 * valops.c (value_of_this): Rename from value_of_local. Change
1797 * p-exp.y (exp): Update.
1798 (variable): Likewise.
1799 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1801 2011-06-17 Tom Tromey <tromey@redhat.com>
1803 * valops.c (value_of_local): Complain if NAME is NULL.
1804 * std-operator.def (OP_OBJC_SELF): Remove.
1805 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1806 * objc-exp.y (name_not_typename): Use OP_THIS.
1807 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1809 <OP_OBJC_SELF>: Remove.
1810 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1812 2011-06-16 Tristan Gingold <gingold@adacore.com>
1814 * python/py-events.h (gdb_py_events): Make it extern.
1815 * python/py-evtregistry.c (gdb_py_events): Declare.
1817 2011-06-16 Hui Zhu <teawater@gmail.com>
1819 * remote.c (remote_trace_set_readonly_regions): Add check for
1820 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1823 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1825 * arm-linux-tdep.c: Include "auxv.h".
1827 (ARM_LINUX_SIZEOF_VFP): Define.
1828 (arm_linux_supply_vfp): New function.
1829 (arm_linux_collect_vfp): Likewise.
1830 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1831 (arm_linux_fpa_regset_sections): New variable.
1832 (arm_linux_vfp_regset_sections): Likewise.
1833 (arm_linux_core_read_description): New function.
1834 (arm_linux_init_abi): Install arm_linux_core_read_description and
1835 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1836 appropriate for the architecture.
1837 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1838 (tdesc_arm_with_m): Declare.
1839 (tdesc_arm_with_iwmmxt): Likewise.
1840 (tdesc_arm_with_vfpv2): Likewise.
1841 (tdesc_arm_with_vfpv3): Likewise.
1842 (tdesc_arm_with_neon): Likewise.
1843 * arm-linux-nat.c: Move features/*.c includes ...
1844 * arm-tdep.c: ... here.
1845 * arm-linux-nat.c (arm_linux_read_description): Move initializing
1846 target description data structures ...
1847 * arm-tdep.c (_initialize_arm_tdep): ... here.
1848 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
1849 HWCAP_VFPv3D16): Move definitions ...
1850 * arm-linux-tdep.h: ... here.
1852 2011-06-15 Hui Zhu <teawater@gmail.com>
1854 * remote.c (remote_trace_set_readonly_regions): Add a check for
1857 2011-06-14 Tom Tromey <tromey@redhat.com>
1859 * coffread.c (coffread_objfile): Rename from current_objfile.
1860 * dbxread.c (dbxread_objfile): Rename from current_objfile.
1861 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
1863 2011-06-14 Tom Tromey <tromey@redhat.com>
1865 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
1866 (class_symtab): Remove.
1867 (jv_dynamics_progspace_key): New global.
1868 (jv_per_objfile_free): Reset program space data. Update assert.
1869 Don't clear globals.
1870 (get_dynamics_objfile): Use and set program space data.
1871 (get_java_class_symtab): Use get_dynamics_objfile.
1872 (add_class_symbol): Likewise.
1873 (java_link_class_type): Likewise.
1874 (java_object_type, jv_clear_object_type, set_java_object_type):
1876 (get_java_object_type): Update. Don't cache result.
1877 (is_object_type): Don't call set_java_object_type.
1878 (_initialize_java_language): Don't set jv_type_objfile_data_key;
1879 initialize jv_dynamics_progspace_key.
1881 2011-06-14 Tom Tromey <tromey@redhat.com>
1883 * symtab.h (current_objfile): Don't declare.
1884 * objfiles.h (current_objfile): Don't declare.
1885 * objfiles.c (current_objfile): Remove.
1886 * mdebugread.c (current_objfile): New file-scope global.
1887 * dbxread.c (current_objfile): New file-scope global.
1888 * coffread.c (current_objfile): New file-scope global.
1890 2011-06-13 Pedro Alves <pedro@codesourcery.com>
1892 * top.h (line): Rename to ...
1893 (saved_command_line): ... this.
1894 (linesize): Rename to ...
1895 (saved_command_line_size): ... this.
1896 * top.c (line): Rename to ...
1897 (saved_command_line): ... this.
1898 (linesize): Rename to ...
1899 (saved_command_line_size): ... this.
1900 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
1901 * event-top.c (command_line_handler): Adjust.
1902 * main.c (captured_main): Adjust.
1904 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1906 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
1907 get_frame_func instead of get_frame_pc to determine the code
1908 address used to construct the frame ID.
1909 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
1910 (i386_epilogue_frame_this_id): Likewise.
1911 (i386_epilogue_frame_prev_register): New function.
1912 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
1913 (i386_stack_tramp_frame_sniffer): Fix coding style.
1914 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
1915 (i386_gdbarch_init): Fix comments.
1917 2011-06-12 Mark Kettenis <kettenis@gnu.org>
1919 * i386-tdep.c (i386_match_insn_block): Use length of the proper
1920 instruction when walking back through the instruction stream.
1922 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1924 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1925 fullname parameters order.
1927 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1930 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1932 * psymtab.c (map_symbol_filenames_psymtab)
1933 (map_partial_symbol_filenames): Likewise.
1934 * psymtab.h: Include symfile.h.
1935 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1936 * symfile.h (symbol_filename_ftype): New.
1937 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1938 map_symbol_filenames, clarify more the naming in comment.
1940 2011-06-07 Doug Evans <dje@google.com>
1942 * cc-with-index.sh: Fix typos in comment.
1943 Look for ../../gdb, for fullname.exp.
1945 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1946 Pedro Alves <pedro@codesourcery.com>
1948 * cli/cli-cmds.c (shell_escape): Use waitpid.
1949 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1951 2011-06-07 Tristan Gingold <gingold@adacore.com>
1953 * xcoffread.c (dwarf2_xcoff_names): New variable.
1954 (aix_process_linenos): Add a guard.
1955 (xcoff_symfile_finish): Free dwarf2.
1956 (xcoff_initial_scan): Add dwarf2 support.
1958 2011-06-06 Pedro Alves <pedro@codesourcery.com>
1960 * infcall.c (run_inferior_call): Don't mask async. Instead force
1961 a synchronous wait, if the target can async.
1963 * target.h (struct target_ops): Delete to_async_mask.
1964 (target_async_mask): Delete.
1965 * target.c (update_current_target): Delete references to to_async_mask.
1966 * linux-nat.c (linux_nat_async_mask_value): Delete.
1967 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1968 to linux_nat_async_mask_value.
1969 (linux_nat_async_mask): Delete.
1970 (linux_nat_async, linux_nat_close): Remove references to
1971 linux_nat_async_mask_value.
1972 * record.c (record_async_mask_value): Delete.
1973 (record_async): Remove references to record_async_mask_value.
1974 (record_async_mask): Delete.
1975 (record_can_async_p, record_is_async_p): Remove references to
1976 record_async_mask_value.
1977 (init_record_ops, init_record_core_ops): Remove references to
1979 * remote.c (remote_async_mask_value): Delete.
1980 (init_remote_ops): Remove reference to remote_async_mask.
1981 (remote_can_async_p, remote_is_async_p): Remove references to
1982 remote_async_mask_value.
1983 (remote_async): Remove references to remote_async_mask_value.
1984 (remote_async_mask): Delete.
1986 * infrun.c (fetch_inferior_event): Don't claim registers changed
1987 if the current thread is already not executing.
1989 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
1991 From Stephen Kitt <steve@sk2.org>
1992 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
1993 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
1995 2011-06-03 Joel Brobecker <brobecker@adacore.com>
1997 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
1998 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2000 2011-06-03 Tom Tromey <tromey@redhat.com>
2002 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2004 * python/py-exitedevent.c (create_exited_event_object): Change
2005 type of 'exit_code'. Optionally add exit_code attribute.
2006 (emit_exited_event): Change type of 'exit_code'.
2007 * python/py-event.h (emit_exited_event): Update.
2008 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2009 * infrun.c (handle_inferior_event): Set exit code fields on
2011 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2013 * inferior.c (exit_inferior_1): Initialize new fields.
2015 2011-06-03 Tom Tromey <tromey@redhat.com>
2017 * dwarf2expr.c (get_signed_type): New function.
2018 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2020 2011-06-02 Keith Seitz <keiths@redhat.com>
2022 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2024 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2026 * top.h (simplified_command_loop): Delete declaration.
2028 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2030 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2031 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2033 2011-06-01 Yao Qi <yao@codesourcery.com>
2035 * objfiles.h (obj_section_addr): Update reference to objfile from
2037 (obj_section_endaddr): Likewise.
2039 2011-06-01 Daniel Jacobowitz <drow@false.org>
2041 * MAINTAINERS: Update my email address and affiliation. Also
2042 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2044 2010-05-31 Keith Seitz <keiths@redhat.com>
2047 * linespec.c (get_search_block): New function.
2048 (find_methods): Add FILE_SYMTATB parameter and use it and
2049 get_search_block to pass an appropriate block to
2050 lookup_symbol_in_namespace.
2051 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2052 Check if *ARGPTR starts with a filename first.
2053 If it does, call locate_first_half again to locate the next
2054 "first half" of the linespec.
2055 Pass FILE_SYMTATB to decode_objc and decode_compound.
2056 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2057 (locate_first_half): Stop on the first colon seen.
2058 (decode_compound): Add FILE_SYMTAB parameter.
2059 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2060 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2061 get_search_block with lookup_symbol.
2062 (find_method): Add FILE_SYMTAB parameter and pass it to
2064 (decode_objc): Use get_search_block.
2066 2010-05-31 Keith Seitz <keiths@redhat.com>
2069 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2070 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2071 and CP_ANONYMOUS_NAMESPACE_LEN.
2072 (cp_is_anonymous): Likewise.
2073 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2074 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2075 * dwarf2read.c (namespace_name): Likewise.
2076 (fixup_partial_die): Likewise.
2077 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2078 seen in the input, keep it.
2080 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2082 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2083 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2084 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2085 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2086 * remote.c (_initialize_remote): Register
2087 async_remote_interrupt_twice directly as
2088 sigint_remote_twice_token event.
2090 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2092 * target.h (enum inferior_event_type): Delete INF_ERROR.
2093 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2095 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2097 * interps.c (interp_set): Don't cancel continuations.
2099 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2101 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2103 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2105 * continuations.h (continuation_ftype): Add `err' parameter.
2106 Document parameters.
2107 (do_all_continuations, do_all_continuations_thread)
2108 (do_all_intermediate_continuations)
2109 (do_all_intermediate_continuations_thread)
2110 (do_all_inferior_continuations): Add `err' parameter.
2111 * continuations.c (do_my_continuations_1, do_my_continuations)
2112 (do_all_inferior_continuations, do_all_continuations_ptid)
2113 (do_all_continuations_thread_callback)
2114 (do_all_continuations_thread, do_all_continuations)
2115 (do_all_intermediate_continuations_thread_callback)
2116 (do_all_intermediate_continuations_thread)
2117 (do_all_intermediate_continuations): Add `err' parameter, and pass
2118 it down all the way to the continuations proper.
2119 * inf-loop.c (inferior_event_handler): If fetching an inferior
2120 event throws an error, don't pop the target, and still call the
2121 continuations, but with `err' set. Adjust all other continuation
2123 * breakpoint.c (until_break_command_continuation): Add `err'
2125 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2126 issue another step if `err' is set.
2127 (struct until_next_continuation_args): New.
2128 (until_next_continuation): Add `err' parameter. Adjust.
2129 (until_next_command): Adjust.
2130 (struct finish_command_continuation_args): Add `thread' field.
2131 (finish_command_continuation): Add `err' parameter. Handle it.
2132 (finish_forward): Adjust.
2133 (attach_command_continuation): Add `err' parameter. Handle it.
2134 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2135 cancel the continuations.
2136 * interps.c (interp_set): Adjust to cancel the continuations.
2137 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2138 continuations rather than discarding.
2139 (free_thread): Don't clear thread inferior resources here.
2140 (delete_thread_1): Do it here instead. And do it before removing
2141 the thread from the threads list. Tag the thread as exited before
2142 clearing thread inferior resources.
2144 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2146 * infcall.c (call_function_by_hand): Rephrase error message.
2148 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2150 * defs.h (struct thread_info, struct inferior): Delete forward
2152 * breakpoint.h (struct thread_info): New forward declaration.
2153 * observer.sh (struct inferior): New forward declaration.
2154 * python/python-internal.h (struct inferior): New forward
2157 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2159 * defs.h (struct continuation, continuation_ftype)
2160 (continuation_free_arg_ftype, add_continuation)
2161 (do_all_continuations, do_all_continuations_thread)
2162 (discard_all_continuations, discard_all_continuations_thread)
2163 (add_intermediate_continuation, do_all_intermediate_continuations)
2164 (do_all_intermediate_continuations_thread)
2165 (discard_all_intermediate_continuations)
2166 (discard_all_intermediate_continuations_thread)
2167 (add_inferior_continuation, do_all_inferior_continuations)
2168 (discard_all_inferior_continuations): Move to ...
2169 * continuations.h: ... this new file.
2170 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2171 infcmd.c, inferior.c, infrun.c, interps.c: Include
2174 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2175 Doug Evans <dje@google.com>
2177 Fix PR 10970, PR 12702.
2178 * linux-nat.c (linux_lwp_is_zombie): New function.
2179 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2180 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2182 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2184 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2186 (add_continuation, add_intermediate_continuation)
2187 (add_inferior_continuation): Use them.
2188 * continuations.c (struct continuation): Use them.
2189 (make_continuation_ftype): Delete.
2190 (make_continuation, add_inferior_continuation, add_continuation)
2191 (add_intermediate_continuation): Use continuation_ftype and
2192 continuation_free_arg_ftype. Rename parameters to shorter names.
2194 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2196 * continuations.c (make_continuation): Make it return void.
2197 (do_my_continuations): Rename to ...
2198 (do_my_continuations_1): ... this. Remove old_chain parameter and
2200 (do_my_continuations): New.
2201 (discard_my_continuations): Rename to ...
2202 (discard_my_continuations_1): ... this. Remove old_chain
2203 parameter and adjust.
2204 (discard_my_continuations): New.
2205 (add_inferior_continuation): Simplify.
2206 (do_all_inferior_continuations): Reimplement on top
2207 do_my_continuations.
2208 (discard_all_inferior_continuations): Simplify.
2209 (add_continuation): Simplify.
2210 (do_all_continuations_ptid): Simplify.
2211 (discard_all_continuations_thread_callback): Simplify.
2212 (add_intermediate_continuation): Simplify.
2213 (discard_all_intermediate_continuations_thread_callback):
2216 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2218 * utils.c (struct continuation, add_continuation)
2219 (add_inferior_continuation)
2220 (do_all_inferior_continuations, discard_all_inferior_continuations)
2221 (restore_thread_cleanup, do_all_continuations_ptid)
2222 (do_all_continuations_thread_callback)
2223 (do_all_continuations_thread, do_all_continuations)
2224 (discard_all_continuations_thread_callback)
2225 (discard_all_continuations_thread, discard_all_continuations)
2226 (add_intermediate_continuation)
2227 (do_all_intermediate_continuations_thread_callback)
2228 (do_all_intermediate_continuations_thread)
2229 (do_all_intermediate_continuations)
2230 (discard_all_intermediate_continuations_thread_callback)
2231 (discard_all_intermediate_continuations_thread)
2232 (discard_all_intermediate_continuations): Move to ...
2233 * continuations.c: ... this new file, and adjust to no longer
2234 implement continuations on top of cleanups.
2235 * Makefile.in (SFILES): Add continuations.c.
2236 (COMMON_OBS): Add continuations.o.
2238 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2240 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2241 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2242 Internal error on invalid values.
2243 * reverse.c: Don't handle EXEC_ERROR.
2244 * mi/mi-main.c: Don't handle EXEC_ERROR.
2246 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2248 * record.c: Include event-loop.h, inf-loop.h.
2249 (record_beneath_to_async): New global.
2250 (tmp_to_async): New global.
2251 (record_async_inferior_event_token): New global.
2252 (record_open_1): Don't error out if async is enabled.
2253 (record_open): Handle to_async. Create an async event source in
2255 (record_close): Delete the async event source.
2256 (record_resumed): New global.
2257 (record_execution_dir): New global.
2258 (record_resume, record_core_resume): Set them. Register the
2259 target on the event loop.
2260 (record_wait): Rename to ...
2261 (record_wait_1): ... this. Add more debug output. Handle
2262 TARGET_WNOHANG, and the target beneath returning
2263 TARGET_WAITKIND_IGNORE.
2264 (record_wait): Reimplement on top of record_wait_1.
2265 (record_async_mask_value): New global.
2266 (record_async, record_async_mask, record_can_async_p)
2267 (record_is_async_p, record_execution_direction): New functions.
2268 (init_record_ops, init_record_core_ops): Install new methods.
2269 * infrun.c (fetch_inferior_event): Temporarily switch the global
2270 execution direction to the direction the target was going.
2271 (execution_direction): Change type to int.
2272 * target.c (default_execution_direction): New function.
2273 (update_current_target): Inherit and de_fault
2274 to_execution_direction.
2275 * target.h (struct target_ops) <to_execution_direction>: New
2277 (target_execution_direction): New macro.
2278 * inferior.h (execution_direction): Change type to int.
2280 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2282 * infcall.c (call_function_by_hand): Don't allow calling functions
2283 in reverse execution mode.
2285 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2287 * infcmd.c (finish_command): Allow async finish in reverse.
2289 2011-05-26 Yao Qi <yao@codesourcery.com>
2291 * gdb_thread_db.h: Delete. Move to ...
2292 * common/gdb_thread_db.h: ... here.
2294 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2296 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2297 function's entry point instead of a manually managed momentary
2298 breakpoint, and only ever issue one proceed call.
2299 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2300 doing a reverse-finish, switch to stepi mode, to do another step.
2301 (insert_step_resume_breakpoint_at_sal): Make public.
2302 (normal_stop): No need to save function value return registers if
2304 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2306 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2308 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2309 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2310 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2312 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2313 step-resume breakpoints.
2314 (print_it_typical): Handle bp_hp_step_resume.
2315 (bpstat_what): Ditto.
2316 (bptype_string): Ditto.
2317 (print_one_breakpoint_location): Ditto.
2318 (allocate_bp_location): Ditto.
2320 (breakpoint_re_set_one): Ditto.
2321 * infrun.c (handle_inferior_event): Adjust. Split
2322 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2323 BPSTAT_WHAT_HP_STEP_RESUME.
2324 (insert_step_resume_breakpoint_at_sal): Rename to ...
2325 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2326 parameter. Handle it.
2327 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2328 insert_step_resume_breakpoint_at_sal_1.
2329 (insert_step_resume_breakpoint_at_frame): Rename to ...
2330 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2331 set a high-priority step-resume breakpoint.
2332 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2333 (insert_step_resume_breakpoint_at_caller): Ditto.
2335 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2337 * breakpoint.c (iterate_over_related_breakpoints): New.
2338 (do_map_delete_breakpoint): New.
2339 (delete_command): Pass do_map_delete_breakpoint to
2340 map_breakpoint_numbers.
2341 (do_disable_breakpoint): New.
2342 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2344 (do_enable_breakpoint): Rename to ...
2345 (enable_breakpoint_disp): ... this.
2346 (enable_breakpoint): Adjust.
2347 (do_enable_breakpoint): New.
2348 (enable_once_breakpoint): Delete.
2349 (do_map_enable_breakpoint): New.
2350 (do_map_enable_once_breakpoint): New.
2351 (enable_once_command, enable_delete_command)
2352 (delete_trace_command): Iterate over the breakpoint's related
2355 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2357 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2358 for ALPHA_ZERO_REGNUM.
2359 (alpha_supply_int_regs): Explicitly supply zero as the value for
2360 ALPHA_ZERO_REGNUM in the register cache.
2361 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2363 2011-05-26 Yao Qi <yao@codesourcery.com>
2365 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2367 2011-05-26 Tristan Gingold <gingold@adacore.com>
2369 * symfile.h (struct dwarf2_section_names): New type.
2370 (struct dwarf2_debug_sections): New type.
2371 (dwarf2_has_info): Add parameter.
2372 * dwarf2read.c (dwarf2_elf_names): New variable.
2373 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2374 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2375 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2376 (dwarf2_has_info): Add names parameter. Pass names
2377 to dwarf2_locate_sections.
2378 (section_is_p): Rewrite using the names parameter.
2379 (dwarf2_locate_sections): Use section names from the names parameter.
2380 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2381 * elfread.c (read_psyms): Ditto.
2382 * machoread.c (macho_symfile_read): Ditto.
2384 2011-05-25 Andreas Schwab <schwab@redhat.com>
2387 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2389 2011-05-24 Keith Seitz <keiths@redhat.com>
2392 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2393 (decode_compound): Unconditionally call keep_name_info.
2395 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2397 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2398 scope, clear its command list.
2399 (map_breakpoint_numbers): Don't walk the related breakpoints list
2402 2011-05-24 Tom Tromey <tromey@redhat.com>
2404 * MAINTAINERS: Move Jim Blandy to past maintainers.
2406 2011-05-24 Tristan Gingold <gingold@adacore.com>
2408 * symfile.h (enum dwarf2_section_enum): New type.
2409 (dwarf2_get_section_info): New prototype.
2410 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2411 section_name by sect. Use a switch to select the info.
2412 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2413 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2415 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2417 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2418 shared library event breakpoint if there's no execution.
2420 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2422 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2423 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2425 2011-05-23 Tom Tromey <tromey@redhat.com>
2427 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2430 2011-05-23 Doug Evans <dje@google.com>
2432 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2433 entry for RuntimeError to doc string.
2435 2011-05-23 Jerome Guitton <guitton@adacore.com>
2437 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2438 sequence for probing loops.
2440 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2442 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2445 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2447 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2448 zero as the value for %g0 in the register cache.
2449 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2450 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2452 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2454 * infrun.c (proceed): Set previous_inferior_ptid here.
2455 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2456 inferior_ptid, not null_ptid.
2457 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2458 (fetch_inferior_event): Nor here.
2460 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2462 * inf-loop.c (inferior_event_handler): Only output a message if
2465 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2467 * MAINTAINERS: Update my e-mail address.
2469 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2471 * infrun.c (proceed): Switch the inferior event loop to
2472 INF_EXEC_COMPLETE if the target refused to resume from a
2475 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2477 * infcmd.c: Include "inf-loop.h".
2478 (step_once): When stepping into an inline subroutine, pretend the
2479 target has run. If the target can async, switch the inferior
2480 event loop to INF_EXEC_COMPLETE.
2481 * inferior.h (user_visible_resume_ptid): Declare.
2482 * infrun.c (user_visible_resume_ptid): New function, factored out
2485 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2486 that the current thread is running. Merge async and sync
2489 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2491 * infcmd.c (step_1): Simplify synchronous case.
2493 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2495 * tracepoint.c: Include exceptions.h.
2496 (TFILE_PID): Move higher in file.
2497 (tfile_open): Delay pushing the tfile target until we're assured
2498 the tfile header is present in the file. Wrap reading the initial
2499 newline-terminated lines in TRY_CATCH. Pop the target if the
2500 initial setup failed. Add the tfile's thread immediately
2501 aftwards, before any non-essential setup. Don't skip
2502 post_create_inferior if there are no traceframes present in the
2504 (tfile_close): Remove redundant check for null before xfree call.
2505 (tfile_thread_alive): New function.
2506 (init_tfile_ops): Register it as to_thread_alive callback.
2508 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2510 * tracepoint.c (tfile_open): Delete #if 0'd code.
2512 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2514 Fix -readnow for -gdwarf-4 unused type units.
2515 * dwarf2read.c (struct signatured_type): Remove the field offset.
2516 (create_signatured_type_table_from_index): Remove its initialization.
2517 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2518 instead. Add a complaint call.
2519 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2520 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2521 (lookup_signatured_type_at_offset, read_signatured_type)
2522 (write_one_signatured_type): Update the field for per_cu.
2524 2011-05-19 Tom Tromey <tromey@redhat.com>
2526 * python/py-inferior.c (python_inferior_exit): Use
2528 (python_on_resume): Likewise.
2530 2011-05-19 Matt Rice <ratmice@gmail.com>
2532 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2534 2011-05-19 Hui Zhu <teawater@gmail.com>
2536 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2538 2011-05-19 Hui Zhu <teawater@gmail.com>
2540 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2542 2011-05-18 Tom Tromey <tromey@redhat.com>
2544 * dwarf2read.c (dwarf2_add_field): Constify.
2545 * value.c (value_static_field): Constify.
2546 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2548 * ax-gdb.c (gen_static_field): Constify
2550 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2552 * linux-nat.c (kill_callback): Use SIGKILL first.
2554 2011-05-18 Joel Brobecker <brobecker@adacore.com>
2556 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2558 2011-05-18 Tom Tromey <tromey@redhat.com>
2560 * value.c (value_fn_field): Constify.
2561 * symtab.c (gdb_mangle_name): Constify.
2562 * stabsread.c (update_method_name_from_physname): Make 'physname'
2564 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2565 const. Use explicit fputc_filtered loop.
2566 (pascal_type_print_base): Constify.
2567 * p-lang.h (pascal_type_print_method_args): Update.
2568 * linespec.c (add_matching_methods): Constify.
2569 (add_constructors): Likewise.
2570 * jv-typeprint.c (java_type_print_base): Constify.
2571 * gdbtypes.h (struct cplus_struct_type)
2572 <fn_fieldlist.fn_field.physname>: Now const.
2573 * dwarf2read.c (compute_delayed_physnames): Constify.
2574 (dwarf2_add_member_fn): Likewise.
2575 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2577 2011-05-18 Pedro Alves <pedro@codesourcery.com>
2579 * infrun.c (resume): Mention which is the current thread, and its
2580 current PC in debug output.
2581 (prepare_to_proceed): Mention the thread switching in debug
2584 2011-05-18 Tom Tromey <tromey@redhat.com>
2586 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2587 path check. Use xmalloc and cleanups.
2588 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2590 2011-05-17 Tom Tromey <tromey@redhat.com>
2592 * cp-valprint.c (cp_print_value_fields): Catch errors from
2595 2011-05-17 Tom Tromey <tromey@redhat.com>
2597 * dwarf2read.c (dwarf2_get_die_type): Call
2598 get_die_type_at_offset.
2599 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2600 get_base_type function.
2602 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
2604 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2607 2011-05-16 Doug Evans <dje@google.com>
2609 * python/py-auto-load.c (source_section_scripts): Mention objfile
2612 2011-05-15 Doug Evans <dje@google.com>
2614 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2615 (try_thread_db_load_from_pdir): Call it. If unable to find
2616 libthread_db in directory of libpthread, see if we're looking at
2617 the separate-debug-info copy.
2619 * python/py-autoload.c (print_script): Print "Missing" instead of
2620 "No" for missing scripts.
2621 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2623 2011-05-13 Doug Evans <dje@google.com>
2625 * ui-file.c (stdio_file_write_async_safe): Add comment.
2627 2011-05-14 Hui Zhu <teawater@gmail.com>
2629 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2631 2011-05-13 Doug Evans <dje@google.com>
2633 Support $pdir and $sdir in libthread-db-search-path.
2634 * NEWS: Mention $sdir,$pdir.
2635 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2636 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2637 (try_thread_db_load_from_sdir): New function.
2638 (try_thread_db_load_from_dir): New function.
2639 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2640 system directories if search of libthread-db-search-path fails,
2641 that is now done via $sdir.
2642 (has_libpthread): New function.
2643 (thread_db_load): Remove search for libthread_db in directory of
2644 libpthread, that is now done via $pdir.
2646 * NEWS: Mention "info auto-load-scripts".
2647 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2648 script_not_found_warning_printed.
2649 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2650 all callers updated. Initialize script_not_found_warning_printed.
2651 (get_auto_load_pspace_data_for_loading): New function.
2652 (maybe_add_script): New function.
2653 (source_section_scripts): Simplify. Only print one warning regardless
2654 of the number of auto-load scripts not found.
2655 (clear_section_scripts): Clear script_not_found_warning_printed.
2656 (auto_load_objfile_script): Record script in hash table.
2657 (count_matching_scripts): New function.
2658 (maybe_print_script): Renamed from maybe_print_section_script, all
2659 callers updated. Rewrite to use ui_out_*.
2660 (info_auto_load_scripts): Renamed from
2661 maintenance_print_section_scripts, all callers updated.
2662 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
2663 renamed as "info auto-load-scripts".
2665 2011-05-13 Tom Tromey <tromey@redhat.com>
2667 * dwarf2expr.c (read_uleb128): Cast intermediate result.
2668 (read_sleb128): Likewise.
2670 2011-05-13 Tom Tromey <tromey@redhat.com>
2672 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
2675 2011-05-13 Doug Evans <dje@google.com>
2677 * linux-nat.c (debug_linux_nat_async): Delete.
2678 Replace all references to use debug_linux_nat instead.
2679 (show_debug_linux_nat_async): Delete.
2680 (sigchld_handler): Call ui_file_write_async_safe instead of
2682 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
2683 * ui-file.c (struct ui_file): New member to_write_async_safe.
2684 (null_file_write_async_safe): New function.
2685 (ui_file_write_async_safe): New function.
2686 (set_ui_file_write_async_safe): New function.
2687 (ui_file_new): Initialize to_write_async_safe.
2688 (stdio_file_write_async_safe): New function.
2689 (struct stdio_file): New member fd.
2690 (stdio_file_new): Initialize to_write_async_safe, fd.
2691 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2693 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2694 (set_ui_file_write_async_safe): Declare.
2695 (ui_file_write_async_safe): Declare.
2697 2011-05-13 Tom Tromey <tromey@redhat.com>
2699 * utils.c (do_value_free): New function.
2700 (make_cleanup_value_free): Likewise.
2701 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2703 (dwarf2_loc_desc_needs_frame): Call
2704 make_cleanup_value_free_to_mark.
2705 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2706 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2708 (new_dwarf_expr_context): Don't call value_mark.
2709 * dwarf2-frame.c (execute_stack_op): Call
2710 make_cleanup_value_free_to_mark.
2711 * defs.h (make_cleanup_value_free): Declare.
2713 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2715 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2716 prepare_execute_command.
2717 * top.c (prepare_execute_command): Return cleanup.
2718 (execute_command): Use cleanup from prepare_execute_command.
2719 * top.h (prepare_execute_command): Change prototype to return
2721 * defs.h (struct value): Add opaque declaration.
2722 (make_cleanup_value_free_to_mark): Add prototype.
2723 * utils.c (do_value_free_to_mark): New function.
2724 (make_cleanup_value_free_to_mark): Likewise.
2726 2011-05-12 Tom Tromey <tromey@redhat.com>
2728 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2729 cast left-hand-side to unsigned.
2731 2011-05-12 Tom Tromey <tromey@redhat.com>
2734 * value.h (value_from_contents): Declare.
2735 * value.c (value_from_contents): New function.
2736 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2737 (dwarf2_get_die_type): New function.
2738 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2739 (allocate_piece_closure): Acquire reference to values.
2740 (read_pieced_value): Update for value-based expressions.
2741 (write_pieced_value): Likewise.
2742 (free_pieced_value_closure): Call value_free as needed.
2743 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2744 Update for value-based expressions.
2745 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2746 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2747 <get_base_type>: New field.
2748 (struct dwarf_expr_piece) <v.value>: Change type.
2749 <v.regno>: New field.
2750 (struct dwarf_expr_context) <mark>: New field.
2751 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2752 (dwarf_expr_pop, dwarf_expr_push): Remove.
2753 (dwarf_expr_push_address): Declare.
2754 * dwarf2expr.c (dwarf_arch_cookie): New global.
2755 (struct dwarf_gdbarch_types): New.
2756 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2758 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2760 (dwarf_expr_push_address): New function.
2761 (dwarf_expr_pop): Now static.
2762 (dwarf_expr_fetch): Change return type.
2763 (dwarf_require_integral): New function.
2764 (dwarf_expr_fetch): Simplify.
2765 (add_piece): Update.
2766 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2768 (execute_stack_op) <sign_ext>: Remove.
2769 Use values for DWARF stack.
2770 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2771 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2773 (_initialize_dwarf2expr): New function.
2774 (add_piece): Update.
2775 (new_dwarf_expr_context): Set new field.
2776 (free_dwarf_expr_context): Call value_free_to_mark.
2777 * dwarf2-frame.c (no_base_type): New function.
2778 (execute_stack_op): Set get_base_type field. Update.
2780 2011-05-12 Tom Tromey <tromey@redhat.com>
2782 * dwarf2read.c (read_common_block): Fix formatting.
2784 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
2786 * breakpoint.c (disable_breakpoint): Disable all locations
2787 associated with a tracepoint on target if a trace experiment is
2789 (disable_command): Disable a specific tracepoint location on target if
2790 a trace experiment is running.
2791 (do_enable_breakpoint): Enable all locations associated with a
2792 tracepoint on target if a trace experiment is running.
2793 (enable_command) Enable a specific tracepoint location on target if a
2794 trace experiment is running.
2795 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2796 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2797 to_disable_tracepoint.
2798 * target.h: Add declaration of struct bp_location.
2799 (struct target_ops): Add new functions
2800 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2801 to_disable_tracepoint to target operations.
2802 (target_supports_enable_disable_tracepoint): New macro.
2803 (target_enable_tracepoint): New macro.
2804 (target_disable_tracepoint): New macro.
2805 * remote.c (struct remote_state): Add new field.
2806 (remote_enable_disable_tracepoint_feature): New.
2807 (remote_protocol_features): Add new entry.
2808 (remote_supports_enable_disable_tracepoint): New.
2809 (remote_enable_tracepoint): New.
2810 (remote_disable_tracepoint): New.
2811 (init_remote_ops): Add remote_enable_tracepoint,
2812 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2813 to remote operations.
2814 * tracepoint.c (start_tracing): Allow tracing to start without any
2815 tracepoints enabled with just a warning if they can be re-enabled
2817 * NEWS: Add news item for the new behaviour of the enable and disable
2818 GDB commands when applied to tracepoints.
2819 Add news items for the new remote packets QTEnable and QTDisable.
2821 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2823 * config.in: Regenerate.
2824 * configure: Regenerate.
2825 * configure.ac <--with-system-readline> (for readline_echoing_p):
2827 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2828 (tui_old_rl_echoing_p): ... here.
2829 (tui_setup_io): Rename extern declaration readline_echoing_p to
2830 _rl_echoing_p. Adjust assignments for the both renames.
2832 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2834 * symtab.c (lookup_symtab): Run cleanup before returning.
2836 2011-05-11 Tom Tromey <tromey@redhat.com>
2838 * dwarf2read.c (handle_data_member_location): New function.
2839 (dwarf2_add_field): Use it.
2840 (read_common_block): Likewise.
2842 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2844 Make addrs->SECTINDEX always defined.
2845 * symfile.c (relative_addr_info_to_section_offsets): Check for
2846 SECTINDEX -1, not for zero ADDR.
2847 (addrs_section_compar): Remove checking for invalid SECTINDEX.
2848 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
2849 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
2852 2011-05-10 Doug Evans <dje@google.com>
2854 * linux-thread-db.c: Whitespace cleanup.
2855 (try_thread_db_load_1): Fix comment.
2857 * linux-thread-db.c (set_libthread_db_search_path): New function.
2858 (_initialize_thread_db): Add setter for libthread-db-search-path.
2860 2011-05-09 Doug Evans <dje@google.com>
2862 * NEWS: Mention --with-iconv-bin.
2863 * configure.ac: New option --with-iconv-bin.
2864 * configure: Regenerate.
2865 * config.in: Regenerate.
2866 * defs.h (relocate_gdb_directory): Declare.
2867 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
2868 removed progname parameter, and exported. All callers updated.
2869 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
2871 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
2872 adding missing call to restore_child_signals_mask.
2874 2011-05-09 Pedro Alves <pedro@codesourcery.com>
2876 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
2878 * infrun.c (proceed, start_remote): Adjust.
2879 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
2880 and adjust to not handle it.
2881 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2882 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2883 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2884 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2885 * windows-nat.c (do_initial_windows_stuff): Adjust.
2886 * infcmd.c (attach_command): Adjust.
2887 (notice_new_inferior): Adjust.
2889 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2891 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
2892 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
2893 * spu-tdep.c (op_selb): Use correct value.
2895 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2897 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
2898 "parent" parameter to symbol_file_add_from_bfd call.
2900 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2901 Thiago Jung Bauermann <bauerman@br.ibm.com>
2903 Implement support for PowerPC BookE masked watchpoints.
2904 * NEWS: Mention masked watchpoint support. Create "Changed commands"
2906 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
2907 method. Initialize to NULL in all existing breakpoint_ops instances.
2908 (struct breakpoint) <hw_wp_mask>: New field.
2909 * breakpoint.c (is_masked_watchpoint): Add prototype.
2910 (update_watchpoint): Don't set b->val for masked watchpoints. Call
2911 breakpoint's breakpoint_ops.works_in_software_mode if available.
2912 (watchpoints_triggered): Handle the case of a hardware masked
2914 (watchpoint_check): Likewise.
2915 (works_in_software_mode_watchpoint): New function.
2916 (insert_masked_watchpoint, remove_masked_watchpoint)
2917 (resources_needed_masked_watchpoint)
2918 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
2919 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
2920 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
2922 (masked_watchpoint_breakpoint_ops): New structure.
2923 (watch_command_1): Check for the existence of the `mask' parameter.
2924 Set b->ops according to the type of hardware watchpoint being created.
2925 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2926 (ppc_linux_remove_mask_watchpoint)
2927 (ppc_linux_masked_watch_num_registers): New functions.
2928 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2929 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2930 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2931 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2932 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2933 (target_masked_watch_num_registers): New functions.
2934 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2935 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2937 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2938 (target_masked_watch_num_registers): Add prototypes.
2940 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2943 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2944 (producer_is_gcc_ge_4_0): New function.
2945 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2946 symtab->language code.
2947 (var_decode_location): Set cu->has_loclist.
2948 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2949 skip. Intialize force_skip from locations_valid. Move the prologue
2950 skipping code into two passes.
2951 * symtab.h (struct symtab): Make the primary field a bitfield. New
2952 field locations_valid.
2954 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2956 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2957 (classify_inner_name): Call cp_lookup_nested_type with
2959 * cp-namespace.c (cp_lookup_nested_type): New variable
2960 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2961 type_name_no_tag_or_error with saved_parent_type.
2962 * dwarf2read.c (load_partial_dies): Read in any children of
2963 DW_TAG_typedef with complaint in such case.
2964 * gdbtypes.c (type_name_no_tag_or_error): New function.
2965 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2966 * valops.c (destructor_name_p): New comment for parameter type. Remove
2967 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2968 * value.h (destructor_name_p): Remove type const.
2970 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2972 * symtab.c (compare_symbol_name): New function.
2973 (completion_list_add_name, expand_partial_symbol_name): Call it,
2974 remove the variable ncmp.
2975 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2978 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2980 Demote to sw watchpoint only in update_watchpoint.
2981 * breakpoint.c (update_watchpoint): Change between software and
2982 hardware watchpoint for all kinds of watchpoints, not just
2983 read/write ones. Determine b->exact value here instead of
2984 in watch_command_1. Error out if there are not enough resources
2985 for a read or access hardware watchpoint.
2986 (watch_command_1): Remove logic of checking whether there are
2987 enough resources available, since update_watchpoint will do that
2988 work now. Don't set b->exact here. Catch exceptions thrown by
2989 update_watchpoint and delete the watchpoint.
2990 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
2991 Use target_exact_watchpoints instead.
2992 (delete_breakpoint): Notify observers only if deleted watchpoint
2993 has a breakpoint number assigned to it.
2995 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
2997 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2999 2011-05-05 Jerome Guitton <guitton@adacore.com>
3001 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3003 (i386_stack_tramp_frame_unwind): New static global.
3004 (i386_match_pattern): New function, extracted from i386_match_insn.
3005 (i386_match_insn): Use i386_match_pattern.
3006 (i386_match_insn_block): New function.
3007 (i386_tramp_chain_in_reg_insns)
3008 (i386_tramp_chain_on_stack_insns): New static variables.
3009 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3012 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3014 * configure.host (xscale*): Don't handle target.
3015 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3018 2011-05-04 Yao Qi <yao@codesourcery.com>
3020 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3022 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3025 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3026 | * elfread.c (elf_symtab_read): Stop memory leak.
3028 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3030 * nto-tdep.c (nto_target): Replace deprecated call to
3031 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3033 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3035 Fix false GCC warning.
3036 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3038 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3040 * breakpoint.c (update_watchpoint): Move code to change
3041 the enable state of breakpoint from here ...
3042 (do_enable_breakpoint): ... to here.
3044 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3046 * valprint.c (val_print_array_elements): Fixed poor performance
3047 of printing very large arrays with repeat_count_threshold set
3048 to unlimited. New comment.
3050 2011-04-29 Tom Tromey <tromey@redhat.com>
3052 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3053 (mi_parse): Likewise.
3054 * breakpoint.c (break_range_command): Use sizeof char*, not
3056 (create_breakpoint): Likewise.
3057 (parse_breakpoint_sals): Likewise.
3059 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3061 * linux-nat.c (linux_child_remove_fork_catchpoint)
3062 (linux_child_remove_vfork_catchpoint)
3063 (linux_child_remove_exec_catchpoint): New functions.
3064 (linux_target_install_ops): Install them.
3066 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3070 * varobj.c (install_default_visualizer): Do not install a
3071 visualizer if the varobj is CPLUS_FAKE_CHILD.
3072 (construct_visualizer): Likewise.
3074 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3076 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3077 case insensitive comparison.
3079 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3081 * infrun.c (proceed): Revert previous change.
3082 (resume): Instead, handle the case of signal delivery while stepping
3083 off a breakpoint location here, and only if software single-stepping
3084 is used. Handle nested signals.
3086 2011-04-28 Yao Qi <yao@codesourcery.com>
3088 * arm-tdep.c (copy_unmodified): Rename to ...
3089 (arm_copy_unmodified): .. this. New.
3090 (copy_preload): Move common part to ...
3091 (install_preload): .. this. New.
3092 (arm_copy_preload): New.
3093 (copy_preload_reg): Move common part to ...
3094 (install_preload_reg): ... this. New.
3095 (arm_copy_preload_reg): New.
3096 (copy_b_bl_blx): Move common part to ...
3097 (install_b_bl_blx): .. this. New.
3098 (arm_copy_b_bl_blx): New.
3099 (copy_bx_blx_reg): Move common part to ...
3100 (install_bx_blx_reg): ... this. New.
3101 (arm_copy_bx_blx_reg): New.
3102 (copy_alu_reg): Move common part to ...
3103 (install_alu_reg): ... this. New.
3104 (arm_copy_alu_reg): New.
3105 (copy_alu_shifted_reg): Move common part to ...
3106 (install_alu_shifted_reg): ... this. New.
3107 (copy_ldr_str_ldrb_strb): Move common part to ...
3108 (install_ldr_str_ldrb_strb): ... this. New.
3109 (arm_copy_ldr_str_ldrb_strb): New.
3110 (copy_copro_load_store): Move some common part to ...
3111 (install_copy_copro_load_store): ... this. New.
3112 (arm_copy_copro_load_store): New.
3114 (arm_copy_svc): Renamed from copy_svc.
3115 (copy_undef): Delete.
3116 (arm_copy_undef): Renamed from copy_undef.
3117 (decode_ext_reg_ld_st): Delete.
3118 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3119 (decode_svc_copro): Delete.
3120 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3121 (copy_copro_load_store, copy_alu_imm): update callers.
3122 (copy_extra_ld_st, copy_block_xfer): Likewise.
3123 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3124 (decode_miscellaneous, decode_dp_misc): Likewise.
3125 (decode_ld_st_word_ubyte, decode_media): Likewise.
3126 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3127 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3128 (decode_unconditional, decode_miscellaneous): Likewise.
3129 (decode_media, decode_b_bl_ldmstm): Likewise.
3130 (arm_process_displaced_insn): Likewise..
3131 (decode_misc_memhint_neon): Delete.
3132 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3133 (decode_miscellaneous): Delete.
3134 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3135 (decode_dp_misc): Delete.
3136 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3137 (decode_ld_st_word_ubyte): Delete.
3138 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3139 (decode_media): Delete.
3140 (arm_decode_media): Renamed from decode_media.
3141 (decode_b_bl_ldmstm): Delete.
3142 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3143 (decode_ext_reg_ld_st): Delete.
3144 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3145 (decode_unconditional): Delete.
3146 (arm_decode_unconditional): Renamed from decode_unconditional.
3148 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3150 Case insensitive lookups implementation.
3151 * dwarf2read.c: Include ctype.h.
3152 (struct mapped_index): New field version.
3153 (mapped_index_string_hash): New parameter index_version. New comment
3154 for it. Call tolower appropriately.
3155 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3156 Choose the right index version for mapped_index_string_hash.
3157 (dwarf2_read_index): Support also the index version 5. Initialize the
3158 new struct mapped_index field version.
3159 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3160 (find_slot): Explain the version needs. Pass INT_MAX for the new
3162 (write_psymtabs_to_index): Produce version 5.
3163 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3164 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3165 * psymtab.c (lookup_partial_symbol): Find the
3166 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3168 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3170 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3171 (completion_list_add_name): New variable ncmp, initialize it, use it.
3172 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3173 * utils.c (strcmp_iw): Support case_sensitive_off.
3174 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3175 New function comment part. New variables saved_string1,
3176 saved_string2 and case_pass. Add a proper second pass.
3178 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3180 Replace re_comp/re_exec by regcomp/regexec.
3181 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3182 (search_symbols_name_matches): Use them, use regexec.
3183 (search_symbols): New variable retval_chain, adjust the use of
3184 old_chain against it. Replace re_comp by regcomp. Use the new struct
3185 search_symbols_data fields, use regexec instead of re_exec.
3187 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3189 Format the code for the next patch.
3190 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3191 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3192 New variables c1 and c2.
3194 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3196 * infrun.c (proceed): Do not single-step into signal delivery
3197 when stepping off a breakpoint location.
3198 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3199 (insert_step_resume_breakpoint_at_caller): Likewise.
3200 (insert_step_resume_breakpoint_at_sal): Likewise.
3201 (insert_longjmp_resume_breakpoint): Likewise.
3203 2011-04-27 Yao Qi <yao@codesourcery.com>
3205 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3207 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3209 * procfs.c (procfs_pass_signals): Fix advance declaration.
3211 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3213 * target.h (struct target_ops): Remove to_notice_signals;
3214 add to_pass_signals.
3215 (target_notice_signals): Remove.
3216 (target_pass_signals): Add prototype.
3217 * target.c (update_current_target): Remove to_notice_signals;
3218 mention to_pass_signals.
3219 (target_pass_signals): New function.
3220 (debug_to_notice_signals): Remove.
3221 (setup_target_debug): Do not install debug_to_notice_signals.
3223 * infrun.c (signal_pass): New global.
3224 (resume): Call target_pass_signals.
3225 (handle_inferior_event): Report all signals while stepping over
3226 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3227 are re-inserted when stepping over a signal handler.
3228 (signal_cache_update): New function.
3229 (signal_stop_update): Call it.
3230 (signal_print_update): Likewise.
3231 (signal_pass_update): Likewise.
3232 (handle_command): Call signal_cache_update and target_pass_signals
3233 instead of target_notice_signals.
3234 (_initialize_infrun): Initialize signal_pass.
3236 * linux-nat.c (pass_mask): New global.
3237 (linux_nat_pass_signals): New function.
3238 (linux_nat_create_inferior): Report all signals initially.
3239 (linux_nat_attach): Likewise.
3240 (linux_nat_resume): Use pass_mask to decide whether to directly
3241 handle an inferior signal.
3242 (linux_nat_wait_1): Likewise.
3243 (linux_nat_add_target): Install to_pass_signals callback.
3245 * nto-procfs.c (notice_signals): Remove.
3246 (procfs_resume): Do not call notice_signals.
3247 (procfs_notice_signals): Remove.
3248 (procfs_pass_signals): New function.
3249 (init_procfs_ops): Install to_pass_signals callback instead of
3250 to_notice_signals callback.
3251 (_initialize_procfs): Report all signals initially.
3253 * procfs.c (procfs_notice_signals): Remove.
3254 (procfs_pass_signals): New function.
3255 (procfs_target): Install to_pass_signals callback instead of
3256 to_notice_signals callback.
3257 (register_gdb_signals): Remove.
3258 (procfs_debug_inferior): Report all signals initially.
3259 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3261 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3262 parameters; use them instead of calling signal_..._state routines.
3263 (remote_notice_signals): Remove.
3264 (remote_start_remote): Report all signals initially.
3265 (remote_resume): Do not call remote_pass_signals.
3266 (_initialize_remote): Install to_pass_signals callback instead of
3267 to_notice_signals callback.
3269 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3271 * breakpoint.c (user_settable_breakpoint): Delete.
3272 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3273 (delete_command): Check user_breakpoint_p instead of looking at
3274 the breakpoint's type.
3275 (disable_command): Ditto.
3276 (enable_command): Ditto.
3277 (delete_trace_command): Use user_breakpoint_p instead of looking
3278 at the breakpoint number directly. When checking if there are
3279 user visible tracepoints, in order to know whether to ask the user
3280 for confirmation, check whether the breakpoint is actually a
3283 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3285 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3288 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3290 MI breakpoint notifications.
3292 * annotate.c (breakpoint_changed): Adjust parameter type.
3293 * breakpoint.c (set_breakpoint_condition): Adjust to change
3294 in breakpoint_modified type.
3295 (breakpoint_set_commands): Likewise.
3296 (do_map_commands_command): Likewise.
3297 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3298 changed after bumping hit count.
3299 (bpstat_stop_status): Likewise.
3300 (print_one_breakpoint_location): Don't wrap in tuple here.
3301 (print_one_breakpoint): Always print individual locations.
3302 For locations, use unnamed tuple.
3303 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3305 (create_catchpoint, create_syscall_event_catchpoint): Call
3306 breakpoint_created obsever.
3307 (mention): Don't call breakpoint_created observer.
3308 (create_breakpoint_sal): Call breakpoint_created observer.
3309 (create_breakpoint, watch_command_1): Likewise.
3310 (create_ada_exception_breakpoint): Likewise.
3311 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3312 (locations_are_equal): New.
3313 (update_breakpoint_locations): If locations were changed, notify.
3314 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3315 Call breakpoint_modified observer.
3317 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3318 (mi_cmd_break_insert): Don't set observers for modify and delete.
3319 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3320 (mi_breakpoint_created, mi_breakpoint_deleted)
3321 (mi_breakpoint_modified): New.
3322 (mi_interpreter_init): Hook the above.
3323 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3324 while -break-* commands are executing.
3325 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3326 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3328 (mi_ui_out_impl): Hook in mi_redirect.
3329 (mi_field_skip): True to the name, skip the field, don't output
3330 a field with an empty value.
3332 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3333 (gdbpy_breakpoint_deleted): Adjust.
3334 * tui/tui-hooks.c (tui_event_create_breakpoint)
3335 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3337 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3339 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3340 (procfs_remove_hw_watchpoint): Likewise.
3342 2011-04-26 Michael Walle <michael@walle.cc>
3344 * remote.c (remote_start_remote): Ack packet after sending the
3347 2011-04-26 Yao Qi <yao@codesourcery.com>
3349 * linux-nat.c: Move common macros to ...
3350 Include linux-ptrace.h.
3351 * common/linux-ptrace.h: ... here. New.
3353 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3355 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3356 !objfile_has_partial_symbols. New comment.
3357 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3358 SYM_READ_PSYMBOLS is not present. Extend the comment.
3359 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3361 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3363 * defs.h (ENUM_BITFIELD): Remove.
3365 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3366 Eli Zaretskii <eliz@gnu.org>
3368 * NEWS: Document the new gdbserver --once option.
3370 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3372 * MAINTAINERS: Update my email address.
3374 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3376 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3377 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3378 function call if __STDC_ISO_10646__ macro is defined.
3379 (intermediate_encoding): New prototype.
3380 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3381 to generate compile time error for unsupported gdb_wchar_t size.
3382 (ENDIAN_SUFFIX): New macro.
3383 (intermediate_encoding): New function.
3385 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3387 * ada-lang.c (struct add_partial_datum): Update the comment for
3388 expand_partial_symbol_name.
3389 (ada_add_partial_symbol_completions): Rename to ...
3390 (ada_expand_partial_symbol_name): ... here, change return type, update
3391 function comment, call symbol_completion_match instead of
3392 symbol_completion_add.
3393 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3394 and ada_expand_partial_symbol_name.
3395 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3397 (dw2_map_symbol_names): Remove.
3398 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3399 * psymtab.c (map_symbol_names_psymtab): Remove.
3400 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3401 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3403 (psym_functions): Unlist map_symbol_names_psymtab.
3404 (map_partial_symbol_names): Rename to ...
3405 (expand_partial_symbol_names): ... here, change the FUN type, call
3406 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3407 * psymtab.h (map_partial_symbol_names): Rename to ...
3408 (expand_partial_symbol_names): ... here, change the FUN type.
3409 * symfile.h (struct quick_symbol_functions): Update the description of
3410 expand_symtabs_matching. Remove map_symbol_names.
3411 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3412 (struct add_name_data): Update the comment for
3413 expand_partial_symbol_name.
3414 (add_partial_symbol_name): Rename to ...
3415 (expand_partial_symbol_name): ... here. Replace
3416 completion_list_add_name call by strncmp.
3417 (default_make_symbol_completion_list_break_on): Use now
3418 expand_partial_symbol_names and expand_partial_symbol_name.
3419 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3421 2011-04-20 Tom Tromey <tromey@redhat.com>
3423 * dwarf2read.c (save_gdb_index_command): Replace format
3424 documentation with a pointer to the manual.
3426 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3428 * regcache.c: Include remote.h.
3429 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3430 (regcache_dump): Handle regcache_dump_remote.
3431 (maintenance_print_remote_registers): New function.
3432 (_initialize_regcache): Install "maint print remote-registers"
3434 * remote.c (map_regcache_remote_table): New function, factored out
3436 (init_remote_state): ... here.
3437 (remote_register_number_and_offset): New.
3438 * remote.h (remote_register_number_and_offset): Declare.
3440 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3442 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3443 null_ptid, assume and allow a NULL address space, instead of
3444 asking the target for the ptid's address space.
3445 * infrun.c (ptid_is_pid): Remove assertion.
3447 2011-04-19 Tom Tromey <tromey@redhat.com>
3449 * windows-tdep.c (windows_xfer_shared_library):
3450 * windows-nat.c (get_module_name, windows_make_so):
3451 * v850-tdep.c (v850_handle_pushm):
3452 * utils.c (null_cleanup, gdb_realpath):
3453 * ui-out.c (get_next_header):
3454 * tracepoint.c (clear_traceframe_info):
3455 * symtab.c (lookup_symtab):
3456 * serial.h (struct serial_ops):
3457 * mipsread.c (read_alphacoff_dynamic_symtab):
3458 * infcmd.c (print_return_value):
3459 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3460 * f-exp.y (parse_number):
3461 * exceptions.c (catch_exceptions):
3462 * dummy-frame.c (dummy_frame_this_id):
3463 * defs.h (struct cleanup):
3464 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3465 * arm-tdep.c (arm_push_dummy_call):
3466 * amd64-tdep.h (amd64_collect_xsave):
3467 * amd64-tdep.c (amd64_collect_xsave):
3468 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3469 * README (typing): Remove duplicate words.
3470 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3471 * infrun.c (siginfo_value_read): Fix typo.
3472 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3473 * top.c (source_line_number): Add comma.
3475 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3477 * thread.c (any_live_thread_of_process): Prioritize threads
3478 that are not executing.
3479 * gdbthread.h (any_live_thread_of_process): Update comment
3480 as per above change.
3482 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3484 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3485 (scan_xcoff_symtab): Likewise.
3487 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3489 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3492 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3493 Pedro Alves <pedro@codesourcery.com>
3495 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3496 variables to simplify code and avoid == operator at end of
3497 line as this is against GNU coding standards.
3499 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3501 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3502 lm_name to name_lm to avoid conflict with lm_name function.
3504 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3506 ARI fixes: Use only lowercase function name for static functions.
3507 * nto-tdep.c (LM_ADDR): Rename to...
3508 (lm_addr): New function name.
3509 (nto_relocate_section_addresses): Adapt to change above.
3510 * solib-sunos.c (LM_ADDR): Rename to...
3511 (lm_addr): New function name.
3512 (LM_NEXT): Rename to...
3513 (lm_next): New function name.
3514 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3515 function name changes above.
3516 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3517 (lm_addr_from_link_map): New function name.
3518 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3519 (has_lm_dynamic_from_link_map): New function name.
3520 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3521 (lm_dynamic_from_link_map): New function name.
3522 (LM_ADDR_CHECK): Rename to...
3523 (lm_addr_check): New function name.
3524 (LM_NEXT): Rename to...
3525 (lm_next): New function name.
3526 (LM_PREV): Rename to...
3527 (lm_prev): New function name.
3528 (LM_NAME): Rename to...
3529 (lm_name): New function name.
3530 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3531 (ignore_first_link_map_entry): New function name.
3532 (svr4_keep_data_in_core): Adapt to function name changes above.
3533 (svr4_current_sos): Likewise.
3534 (enable_break): Likewise.
3535 (svr4_relocate_section_addresses): Likewise.
3537 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3540 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3541 sprintf. Simplify code and avoid loosing memory.
3542 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3543 (call0_frame_cache): Remove && operator from end of line.
3545 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3547 Fix libraries displacement if they change whether they were prelinked.
3548 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3549 does not match. Comment why.
3551 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3553 * corelow.c: Include wrapper.h.
3554 (core_open): Call now gdb_target_find_new_threads.
3555 * wrapper.c: Include target.h.
3556 (gdb_target_find_new_threads): New.
3557 * wrapper.h (gdb_target_find_new_threads): New declaration.
3559 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3561 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3562 even if !TARGET_HAS_EXECUTION.
3564 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3566 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3567 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3568 bfd_get_synthetic_symtab.
3569 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3570 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3571 parameter parent, remove the call to add_separate_debug_objfile.
3572 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3573 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3574 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3575 parent, new comment for it, call add_separate_debug_objfile for it.
3576 (symbol_file_add_separate): Pass objfile as the parameter parent,
3577 remove the call to add_separate_debug_objfile.
3578 (symbol_file_add_from_bfd): New parameter parent, pass it.
3579 (symbol_file_add): Pass NULL to the new parameter parent.
3580 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3582 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3584 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3587 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3589 Fix Python access to inlined frames.
3590 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3591 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3593 2011-04-15 Tom Tromey <tromey@redhat.com>
3595 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3597 2011-04-15 Gary Benson <gbenson@redhat.com>
3599 * MAINTAINERS: Add myself to write-after-approval section.
3601 2011-04-14 Mike Frysinger <vapier@gentoo.org>
3603 * remote-sim.c (sim_command_completer): New function.
3604 (_initialize_remote_sim): Set completer to sim_command_completer.
3606 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3608 * breakpoint.c (print_exception_catchpoint): Rename to ...
3609 (print_it_exception_catchpoint): ... this.
3610 (gnu_v3_exception_catchpoint_ops): Update with new name
3611 for print_it_exception_catchpoint.
3613 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
3615 * MAINTAINERS: Add myself for write after approval privileges.
3617 2011-04-13 Marek Polacek <mpolacek@redhat.com>
3619 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3621 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3623 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3625 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3627 * breakpoint.c (save_breakpoints): Verify whether
3628 breakpoint_ops.print_recreate is defined before calling it.
3630 2011-04-11 Gary Benson <gbenson@redhat.com>
3632 Fix failure with --enable-maintainer-mode.
3633 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3635 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3638 * symtab.c (search_symbols): Reorder the KIND description in the
3639 function comment. Remove the unused 4th element of types, types2,
3640 types3 and types4. New gdb_assert on KIND.
3641 (symtab_symbol_info): Remove the unused 4th element of classnames.
3642 New gdb_assert on KIND.
3643 * symtab.h (enum search_domain): New warning in the enum comment.
3644 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3647 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3649 Fix crash of gdb save-index on a STABS file.
3650 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3653 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3655 Fix DW_AT_accessibility compatibility with gcc-4.6+.
3656 * dwarf2read.c: Include ctype.h.
3657 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
3659 (dwarf2_add_field): Fix new_field->accessibility by calling
3660 dwarf2_default_access_attribute. Restructure setting accessibility
3662 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
3663 is_private and is_protected by calling
3664 dwarf2_default_access_attribute.
3666 2011-04-08 Kevin Buettner <kevinb@redhat.com>
3668 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
3669 to the initialization.
3671 2011-04-08 Steve Ellcey <sje@cup.hp.com>
3673 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
3676 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
3678 Remove support for old Cygwin 1.5 versions.
3679 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
3680 function on old Cygwin version.
3681 * windows-nat.c: Remove cygwin version check and always define
3682 __USEWIDE for Cygwin compilation.
3684 2011-04-07 Yao Qi <yao@codesourcery.com>
3686 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
3688 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
3689 (arm_copy_svc): Remove parameters INSN and TO.
3690 (decode_svc_copro): Update caller.
3691 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3692 from function pointer `copy_svc_os'.
3694 2011-04-07 Yao Qi <yao@codesourcery.com>
3696 * arm-tdep.c (cleanup_branch): Set a correct return address in
3697 LR for ARM and Thumb.
3699 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3702 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3703 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3704 in the function comment, a new note on values compatibility.
3705 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3706 * symtab.h (SYMBOL_HASH_NEXT): New.
3708 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
3710 * ppc-linux-nat.c (check_condition): Add len output parameter.
3711 Set it based on the memory region referenced in the condition
3712 expression. Update all callers.
3714 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3716 Fix crash regression on systems featuring .gdb_index.
3717 * objfiles.c (free_objfile): Move the
3718 forget_cached_source_info_for_objfile call earlier. Comment it.
3719 Extend the comment for objfile_free_data.
3721 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3723 Fix regression of displaying the debug format.
3724 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3727 2011-04-04 Tom Tromey <tromey@redhat.com>
3729 * cli/cli-interp.c (struct captured_execute_command_args):
3731 (do_captured_execute_command): Remove.
3732 (safe_execute_command): Use TRY_CATCH.
3733 * cli/cli-script.c (struct wrapped_read_command_file_args):
3735 (wrapped_read_command_file): Remove.
3736 (script_from_file): Use TRY_CATCH.
3737 * exceptions.c (catch_exception): Remove.
3738 * exceptions.h (catch_exception): Remove.
3739 (deprecated_throw_reason): Update comment.
3740 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3741 argument to 'context'.
3742 (mi_execute_command): Use TRY_CATCH.
3743 * remote.c (struct start_remote_args): Remove.
3744 (remote_start_remote): Update; change arguments.
3745 (remote_open_1): Use TRY_CATCH.
3747 2011-04-04 Tom Tromey <tromey@redhat.com>
3749 * tracepoint.c (scope_info): Update.
3750 * symtab.c (decode_line_spec): Update.
3751 * python/python.c (gdbpy_decode_line): Update.
3752 * linespec.h (decode_line_1): Update.
3753 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3754 (decode_compound, find_method, symtab_from_filename)
3755 (decode_variable): Likewise.
3756 * cli/cli-cmds.c (edit_command): Update.
3757 (list_command): Update.
3758 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3760 (create_breakpoint): Update.
3761 (until_break_command): Update.
3762 (addr_string_to_sals): Update.
3763 (decode_line_spec_1): Update.
3765 2011-04-04 Tom Tromey <tromey@redhat.com>
3767 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3768 (do_captured_parse_breakpoint): Remove.
3769 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3770 Use TRY_CATCH directly.
3772 2011-04-04 Tom Tromey <tromey@redhat.com>
3774 * symtab.h (free_symtab): Remove.
3775 (forget_cached_source_info_for_objfile): Declare.
3776 * symmisc.c (free_symtab): Remove.
3777 * source.c (forget_cached_source_info_for_objfile): New function.
3778 (forget_cached_source_info): Use it.
3779 * objfiles.c (free_objfile): Simplify check before calling
3780 clear_current_source_symtab_and_line. Call
3781 forget_cached_source_info_for_objfile.
3783 2011-04-04 Tom Tromey <tromey@redhat.com>
3785 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3786 (new_symtab): Don't set `free_code' on symtab.
3787 (new_linetable): Properly handle size==0.
3788 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3789 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3791 * jv-lang.c (struct jv_per_objfile_data): New.
3792 (jv_per_objfile_free): Free the data.
3793 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3794 (get_java_class_symtab): Set the `dict' field on the
3795 jv_per_objfile_data.
3796 (free_class_block): Remove.
3797 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3800 2011-04-04 Tom Tromey <tromey@redhat.com>
3802 * symfile.c (reread_symbols): Update.
3803 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3805 * objfiles.c (allocate_objfile): Update.
3806 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3808 * cp-namespace.c (lookup_symbol_file): Don't call
3809 lookup_possible_namespace_symbol.
3810 (initialize_namespace_symtab, get_possible_namespace_block)
3811 (free_namespace_block, cp_check_possible_namespace_symbols)
3812 (check_possible_namespace_symbols_loop)
3813 (check_one_possible_namespace_symbol)
3814 (lookup_possible_namespace_symbol): Remove.
3815 (maintenance_cplus_namespace): Replace with notice.
3816 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3818 2011-04-04 Tom Tromey <tromey@redhat.com>
3820 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3821 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3822 * symmisc.c (free_symtab): Don't free debugformat.
3823 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3824 (record_debugformat, record_producer): Document.
3825 * buildsym.c (end_symtab): Don't save debugformat and producer
3827 (end_symtab): Don't free debugformat and producer fields.
3828 (record_debugformat): Don't call xstrdup.
3829 (record_producer): Likewise.
3831 2011-04-04 Tom Tromey <tromey@redhat.com>
3833 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3834 (source_line_charpos, source_charpos_line): Remove.
3836 2011-04-04 Tom Tromey <tromey@redhat.com>
3838 * symtab.h (domain_enum): Split in two...
3839 (enum search_domain): New.
3840 (search_symbols): Update.
3841 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3842 redundant declarations.
3843 (search_symbols): Change 'kind' argument to search_domain.
3845 (print_symbol_info): Likewise.
3846 (symtab_symbol_info): Likewise.
3847 * symfile.h (struct quick_symbol_functions)
3848 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
3849 <expand_symtabs_matching>: Likewise.
3850 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
3851 (expand_symtabs_matching_via_partial): Update.
3852 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
3853 (dw2_expand_symtabs_for_function): Update.
3854 * block.h: Moved anonymous enum...
3855 * defs.h (enum block_enum): ... here. Now named.
3857 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3859 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
3860 * version.in: Bump version to 7.3.50.20110403-cvs.
3862 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3864 * NEWS: Create a new section for the next release branch.
3865 Rename the section of the current branch, now that it has
3868 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3870 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
3871 for "fpscr" in target description.
3873 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3875 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
3876 initialize it. Delay HASH initialization. Strip the part after open
3877 parenthesis for languages with qualifiers. Call do_cleanups.
3879 2011-04-01 Tom Tromey <tromey@redhat.com>
3881 * utils.c (report_command_stats): Don't print `-' for negative
3884 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
3886 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
3887 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
3890 2011-04-01 Joel Brobecker <brobecker@adacore.com>
3892 * breakpoint.h (bpdisp_text): Add declaration.
3893 * breakpoint.c (bpdisp_text): Make non-static.
3894 * ada-lang.c: #include "mi/mi-common.h".
3895 (print_it_exception): Rewrite to improve GDB/MI output.
3897 2011-04-01 Pedro Alves <pedro@codesourcery.com>
3899 * arm-tdep.h (struct address_space): Add forward declaration.
3901 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3903 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
3904 * arm-tdep.c (arm_override_mode): New global.
3905 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
3906 execution mode heuristics.
3907 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
3908 second single-step breakpoint if needed, using
3909 arm_insert_single_step_breakpoint.
3910 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
3911 ARM execution mode, do not call thumb_get_next_pc_raw.
3912 (arm_get_next_pc): Encode execution mode in return value. Call
3913 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
3914 (arm_insert_single_step_breakpoint): New function.
3915 (arm_software_single_step): Call it.
3916 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
3917 argument to return execution mode of sigreturn target.
3918 (arm_linux_syscall_next_pc): Use it.
3919 (arm_linux_copy_svc): Update call.
3920 (arm_linux_software_single_step): Call
3921 arm_insert_single_step_breakpoint.
3923 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3925 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3928 2011-03-31 Tom Tromey <tromey@redhat.com>
3930 * varobj.c (update_dynamic_varobj_children): Properly handle
3931 errors from iterator.
3933 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3935 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3936 struct linkage name twice.
3938 2011-03-31 Tom Tromey <tromey@redhat.com>
3940 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3941 missing ">" to message.
3943 2011-03-31 Tom Tromey <tromey@redhat.com>
3945 * varobj.c (instantiate_pretty_printer): Remove duplicate
3948 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
3950 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3951 if neither saved value nor register available (e.g. signal frame).
3953 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3955 * macroexp.c (expand): Avoid uninitialized variable
3958 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3960 * breakpoint.c (break_range_command): Fix typo in comment.
3962 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3963 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3965 Implement support for PowerPC BookE ranged breakpoints.
3966 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3967 * breakpoint.h (struct bp_target_info) <length>: New member
3969 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3970 instead of struct breakpoint as argument, and also add ASPACE
3971 and BP_ADDR arguments. Update all callers.
3972 (struct breakpoint_ops) <print_one_detail>: New method.
3973 (struct breakpoint) <addr_string_range_end>: New member variable.
3974 * breakpoint.c (breakpoint_location_address_match): Add function
3976 (insert_bp_location): Set bl->target_info.length.
3977 (breakpoint_here_p): Call breakpoint_location_address_match.
3978 (moribund_breakpoint_here_p): Likewise.
3979 (regular_breakpoint_inserted_here_p): Likewise.
3980 (breakpoint_thread_match): Likewise.
3981 (bpstat_stop_status): Likewise.
3982 (bpstat_check_location): Move call to
3983 breakpoint_ops.breakpoint_hit to the top.
3984 (print_one_breakpoint_location): Call
3985 breakpoint_ops.print_one_detail if available.
3986 (breakpoint_address_match_range): New function.
3987 (breakpoint_location_address_match): Likewise.
3988 (breakpoint_locations_match): Compare the length field of the
3990 (hw_breakpoint_used_count): Count resources used by all locations
3991 in a breakpoint, and use breakpoint_ops.resources_needed if
3993 (breakpoint_hit_ranged_breakpoint): New function.
3994 (resources_needed_ranged_breakpoint): Likewise.
3995 (print_it_ranged_breakpoint): Likewise.
3996 (print_one_ranged_breakpoint): Likewise.
3997 (print_one_detail_ranged_breakpoint): Likewise.
3998 (print_mention_ranged_breakpoint): Likewise.
3999 (print_recreate_ranged_breakpoint): Likewise.
4000 (ranged_breakpoint_ops): New structure.
4001 (find_breakpoint_range_end): New function.
4002 (break_range_command): Likewise.
4003 (delete_breakpoint): Free addr_string_range_end.
4004 (update_breakpoint_locations): Add SALS_END argument. Update
4005 all callers. Calculate breakpoint length if a non-zero SALS_END
4006 is given. Call breakpoint_locations_match instead of
4007 breakpoint_address_match.
4008 (reset_breakpoint): Find SaL of the end of the range if B is a
4010 (_initialize_breakpoint): Register break-range command.
4011 * defs.h (print_core_address): Add function prototype.
4012 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4014 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4015 (ppc_linux_remove_hw_breakpoint): Likewise.
4016 (_initialize_ppc_linux_nat): Initialize
4017 to_ranged_break_num_registers.
4018 * target.c (update_current_target): Add comment about
4019 to_ranged_break_num_registers.
4020 (target_ranged_break_num_registers): New function.
4021 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4023 (target_ranged_break_num_registers): Add function prototype.
4024 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4025 * utils.c (print_core_address): ... here.
4027 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4029 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4030 variable compiler warning.
4032 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4034 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4036 (re_set_breakpoint): ... to here ...
4037 (addr_string_to_sals): ... and here.
4039 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4041 * Makefile.in (SFILES): Add missing C sources.
4042 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4043 Add missing headers.
4045 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4047 * .gitignore: New file.
4049 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4051 * NEWS: Mention new cfi device simulation.
4053 2011-03-29 Tom Tromey <tromey@redhat.com>
4055 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4056 otherwise anonymous types.
4057 (dwarf2_name): Likewise.
4058 * valops.c (value_struct_elt_for_reference): Refine artificial
4059 type logic. Call error if j==-1.
4061 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4063 Fix false GCC warning.
4064 * infcall.c (find_function_addr): Initialize funaddr.
4066 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4068 Fix mingw compilation with --enable-targets=all.
4069 * remote-mips.c (gdb_usleep.h): Include header.
4070 (mips_enter_debug): Use gdb_usleep instead of sleep.
4072 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4074 Support resolution of STT_GNU_IFUNC via breakpoints.
4075 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4076 bp_gnu_ifunc_resolver_return.
4077 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4078 the loop. Support bp_gnu_ifunc_resolver and
4079 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4080 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4082 (bptype_string, print_one_breakpoint_location): Support
4083 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4084 (user_settable_breakpoint): Return true also for
4085 bp_gnu_ifunc_resolver.
4086 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4087 bp_gnu_ifunc_resolver_return.
4088 (set_breakpoint_location_function): New parameter explicit_loc,
4089 describe it. Call find_pc_partial_function_gnu_ifunc with new
4090 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4091 EXPLICIT_LOC is not set.
4092 (set_raw_breakpoint): Set EXPLICIT_LOC for
4093 set_breakpoint_location_function.
4094 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4095 set_breakpoint_location_function.
4096 (mention): Support bp_gnu_ifunc_resolver and
4097 bp_gnu_ifunc_resolver_return.
4098 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4099 set_breakpoint_location_function.
4100 (update_breakpoint_locations): Remove static.
4101 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4102 bp_gnu_ifunc_resolver_return.
4103 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4104 bp_gnu_ifunc_resolver_return.
4105 (update_breakpoint_locations): New declaration.
4106 * elfread.c: Include gdbthread.h and regcache.h.
4107 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4109 (elf_gnu_ifunc_fns): Install them.
4110 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4111 (stub_gnu_ifunc_resolver_return_stop): New functions.
4112 (stub_gnu_ifunc_fns): Install them.
4113 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4114 and gnu_ifunc_resolver_return_stop.
4115 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4117 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4119 STT_GNU_IFUNC reader implementation.
4120 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4121 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4122 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4123 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4124 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4125 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4126 (elf_gnu_ifunc_resolve_addr): New.
4127 (elf_symfile_read): Call elf_rel_plt_read.
4128 (elf_gnu_ifunc_fns): New.
4129 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4130 Install elf_gnu_ifunc_fns.
4131 * infcall.c (find_function_return_type): New function.
4132 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4133 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4134 (stub_gnu_ifunc_resolve_name): New functions.
4135 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4136 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4137 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4139 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4141 Code cleanup for later STT_GNU_IFUNC support.
4142 * infcall.c (find_function_addr): Remove variable code, use explicit
4143 dereferences for it. Move VALUE_TYPE initialization later.
4145 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4147 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4148 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4149 (clear_pc_function_cache): Clear it.
4150 (find_pc_partial_function): Rename to ...
4151 (find_pc_partial_function_gnu_ifunc): ... this function. New
4152 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4153 (find_pc_partial_function): New wrapper for this function.
4154 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4156 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4158 GDB internal type support for STT_GNU_IFUNC.
4159 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4160 (elf_symtab_read): Set mst_text_gnu_ifunc for
4161 BSF_GNU_INDIRECT_FUNCTION.
4162 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4163 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4164 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4165 nodebug_got_plt_symbol.
4166 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4167 (TYPE_GNU_IFUNC): New.
4168 (struct main_type): New field flag_gnu_ifunc.
4169 (struct builtin_type): New field builtin_func_func.
4170 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4171 nodebug_got_plt_symbol.
4172 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4173 (in_gnu_ifunc_stub): New.
4174 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4176 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4177 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4178 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4180 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4181 * symtab.c (search_symbols): Likewise.
4182 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4183 and mst_slot_got_plt.
4184 (in_gnu_ifunc_stub): New declaration.
4186 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4188 Support a ring of related breakpoints.
4189 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4190 other functions, add gdb_assert.
4191 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4192 watchpoint_del_at_next_stop.
4193 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4194 (bpstat_stop_status): Handle ring in related_breakpoint.
4195 (set_raw_breakpoint_without_location): Initialize ring in
4197 (delete_breakpoint): Handle ring in related_breakpoint, use
4198 watchpoint_del_at_next_stop.
4199 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4201 2011-03-28 Tom Tromey <tromey@redhat.com>
4204 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4205 with `language_minimal'.
4207 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4209 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4210 instead of checking for STT_ARM_TFUNC symbol type.
4212 2011-03-25 Tom Tromey <tromey@redhat.com>
4214 * linespec.c (symbol_found): Restore line-based result for
4215 non-LOC_LABEL symbols.
4217 2011-03-25 Kai Tietz <ktietz@redhat.com>
4219 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4220 instead of strcmp for comparison.
4221 (tui_source_is_displayed): Likewise.
4222 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4224 2011-03-24 Mark Wielaard <mjw@redhat.com>
4226 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4228 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4229 (find_partial_die_in_comp_unit): Likewise in comment.
4230 (read_attribute_value): Likewise.
4231 (lookup_die_type): Likewise.
4232 (dwarf_form_name): Likewise.
4233 (dump_die_shallow): Likewise.
4234 (follow_die_ref_or_sig): Likewise.
4236 2011-03-24 Tom Tromey <tromey@redhat.com>
4238 PR breakpoints/11816:
4239 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4240 (decode_compound): Update.
4241 (find_function_symbol): New function.
4242 (decode_dollar): Update.
4243 (decode_label): Add 'function_symbol' parameter. Handle
4244 function-relative labels.
4245 (decode_variable): Update.
4246 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4247 not its line. Set `special_display' and canonical name for
4250 2011-03-24 Tom Tromey <tromey@redhat.com>
4252 * linespec.h (struct linespec_result) <special_display>: New
4254 * breakpoint.h (struct breakpoint) <display_canonical>: New
4256 * breakpoint.c (print_breakpoint_location): Respect
4258 (create_breakpoint_sal): Add 'display_canonical' parameter.
4259 (create_breakpoints_sal): Update.
4260 (create_breakpoint): Update.
4262 2011-03-24 Tom Tromey <tromey@redhat.com>
4264 * symtab.c (decode_line_spec): Update.
4265 * linespec.c (build_canonical_line_spec): Change type of
4267 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4268 (find_method, decode_all_digits, decode_dollar, decode_label)
4269 (symbol_found): Likewise.
4270 (init_linespec_result): New function.
4271 * breakpoint.c (struct captured_parse_breakpoint_args)
4272 <canonical_p>: New field, replaces addr_string_p.
4273 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4275 (parse_breakpoint_sals): Likewise.
4276 (do_captured_parse_breakpoint): Update.
4277 (create_breakpoint): Use struct linespec_result.
4278 (until_break_command): Update.
4279 (breakpoint_re_set_one): Update.
4280 (decode_line_spec_1): Update.
4281 * linespec.h (struct linespec_result): New.
4282 (init_linespec_result): Declare.
4284 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4286 * regcache.c (regcache_raw_read): If the target didn't supply a
4287 given raw register, mark it as unavailable.
4289 2011-03-23 Kai Tietz <ktietz@redhat.com>
4291 * breakpoint.c (clear_command): Use filename_cmp
4292 instead of strcmp for comparison.
4293 * buildsym.c (watch_main_source_file_lossage): Likewise.
4294 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4295 checking just for slash.
4296 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4297 strrchr and filename_cmp instead of strcmp for filenames.
4298 (add_old_header_file): Use filename_cmp
4299 instead of strcmp for comparison.
4300 * exec.c (exec_set_section_address): Likewise.
4301 * macrotab.c (macro_lookup_inclusion): Likewise.
4302 (macro_lookup_inclusion): Likewise.
4303 * elfread.c (_initialize_elfread): Likewise.
4304 (elfstab_offset_sections): Likewise.
4305 (elfstab_offset_sections): Use lbasename instead of
4307 * mdebugread.c (parse_partial_symbols): Likewise.
4308 (arse_partial_symbols): Use filename_(n)cmp instead of
4309 str(n)cmp for comparison.
4310 * minsyms.c (lookup_minimal_symbol): Likewise.
4311 * psymtab.c (read_psymtabs_with_filename): Likewise.
4312 * solib.c (solib_read_symbols): Likewise.
4313 (reload_shared_libraries_1): Likewise.
4314 * symmisc.c (maintenance_print_symbols): Likewise.
4315 * symfile.c (separate_debug_file_exists): Likewise.
4316 (reread_symbols): Likewise.
4317 (find_separate_debug_file_by_debuglink): Likewise.
4318 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4319 * source.c (add_path): Likewise.
4320 * symtab.c (filename_seen): Likewise.
4321 (file_matches): Likewise.
4322 (print_symbol_info): Likewise.
4323 (maybe_add_partial_symtab_filename): Likewise.
4324 (make_source_files_completion_list): Likewise.
4325 * xml-syscall.c (init_sysinfo): Likewise.
4326 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4327 IS_DIR_SEPARATOR for checking for trailing path separator.
4329 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4331 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4332 label abort_expression.
4333 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4334 DWARF_VALUE_OPTIMIZED_OUT.
4336 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4339 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4340 to linkage_name. Invert its value. Update the function comment.
4341 (c_type_print_varspec_suffix): Invert it at the caller.
4342 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4344 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4346 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4347 errors when reading the `stop_pc'.
4348 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4351 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4353 * NEWS: Document gdb.Write stream keyword.
4355 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4358 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4359 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4360 (dwarf2_add_field): Fix new_field->accessibility for
4361 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4363 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4367 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4368 other error classes. Do not print stack trace.
4370 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4372 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4373 (dwarf2_add_field): Fix new_field->accessibility for
4374 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4376 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4378 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4379 encountering a load via a non-SP register.
4381 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4383 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4384 field in returned unwinder.
4386 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4388 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4390 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4392 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4395 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4397 * frame.c (frame_unwind_register): Throw an error if unwinding the
4399 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4400 an unwind stop reason.
4401 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4402 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4403 UNWIND_UNAVAILABLE>: New.
4404 * inline-frame.c (inline_frame_unwind): Install
4405 default_frame_unwind_stop_reason.
4406 * frame-unwind.c: Include "exceptions.h".
4407 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4408 (default_frame_unwind_stop_reason): New.
4409 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4410 (default_frame_unwind_stop_reason): Declare.
4411 (struct frame_unwind) <stop_reason>: New function pointer.
4413 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4414 * dwarf2-frame.c: Include exceptions.h.
4415 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4416 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4417 computing the CFA. If such an error was thrown, set
4418 unavailable_retaddr.
4419 (dwarf2_frame_unwind_stop_reason): New.
4420 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4422 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4423 (dwarf2_signal_frame_unwind): Ditto.
4425 * amd64-tdep.c: Include "exceptions.h".
4426 (struct amd64_frame_cache): New field "base_p".
4427 (amd64_init_frame_cache): Clear it.
4428 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4429 Avoid reading registers with functions that throw if the register
4430 is not necessary to compute the frame base.
4431 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4432 swallowing NOT_AVAILABLE_ERROR.
4433 (amd64_frame_unwind_stop_reason): New.
4434 (amd64_frame_this_id): Don't build a frame id if the frame base
4436 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4437 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4438 base_p if the frame base was computable.
4439 (amd64_sigtramp_frame_unwind_stop_reason): New.
4440 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4441 frame base was unavailable.
4442 (amd64_sigtramp_frame_unwind): Install
4443 amd64_sigtramp_frame_unwind_stop_reason.
4444 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4445 base_p if the frame base was computable.
4446 (amd64_epilogue_frame_unwind_stop_reason): New.
4447 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4448 frame base was unavailable.
4449 (amd64_epilogue_frame_unwind): Install
4450 amd64_epilogue_frame_unwind_stop_reason.
4451 * i386-tdep.c: Include "exceptions.h".
4452 (struct i386_frame_cache): New field "base_p".
4453 (i386_init_frame_cache): Clear it.
4454 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4455 Avoid reading registers with functions that throw if the register
4456 is not necessary to compute the frame base.
4457 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4458 swallowing NOT_AVAILABLE_ERROR.
4459 (i386_frame_unwind_stop_reason): New.
4460 (i386_frame_this_id): Don't build a frame id if the frame base was
4462 (i386_frame_prev_register): Handle unavailable SP.
4463 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4464 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4465 base_p if the frame base was computable.
4466 (i386_epilogue_frame_unwind_stop_reason): New.
4467 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4468 base was unavailable.
4469 (i386_epilogue_frame_unwind): Install
4470 i386_epilogue_frame_unwind_stop_reason.
4471 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4472 base_p if the frame base was computable.
4473 (i386_sigtramp_frame_unwind_stop_reason): New.
4474 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4475 base was unavailable.
4476 (i386_sigtramp_frame_unwind): Install
4477 i386_sigtramp_frame_unwind_stop_reason.
4478 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4479 type's size, not the register's.
4480 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4482 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4483 default_frame_unwind_stop_reason.
4484 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4485 (alpha_heuristic_frame_unwind): Ditto.
4486 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4487 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4488 * avr-tdep.c (avr_frame_unwind): Ditto.
4489 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4491 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4492 * frv-tdep.c (frv_frame_unwind): Ditto.
4493 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4494 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4495 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4496 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4497 (hppa_stub_frame_unwind): Ditto.
4498 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4499 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4500 (ia64_libunwind_frame_unwind)
4501 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4502 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4503 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4504 * m32c-tdep.c (m32c_unwind): Ditto.
4505 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4506 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4507 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4508 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4509 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4510 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4511 * mep-tdep.c (mep_frame_unwind): Ditto.
4512 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4513 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4514 (mips_stub_frame_unwind): Ditto.
4515 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4516 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4517 * mt-tdep.c (mt_frame_unwind): Ditto.
4518 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4519 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4520 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4521 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4522 (s390_sigtramp_frame_unwind): Ditto.
4523 * score-tdep.c (score_prologue_unwind): Ditto.
4524 * sh-tdep.c (sh_frame_unwind): Ditto.
4525 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4526 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4527 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4528 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4529 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4530 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4531 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4532 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4533 (sparc64obsd_trapframe_unwind): Ditto.
4534 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4535 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4536 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4537 * v850-tdep.c (v850_frame_unwind): Ditto.
4538 * vax-tdep.c (vax_frame_unwind): Ditto.
4539 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4540 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4541 * xtensa-tdep.c (xtensa_unwind): Ditto.
4543 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4545 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4546 there's always a frame. Use get_frame_pc_if_available instead of
4547 get_frame_pc, and if there's no PC available, don't look up a
4550 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4552 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4555 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4557 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4560 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4562 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4563 * frame.c (frame_unwind_caller_pc_if_available): New.
4564 * stack.c (frame_info): Handle unavailable PC.
4566 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4568 * frame.c (frame_unwind_pc): Rename to ...
4569 (frame_unwind_pc_if_available): ... this. New `pc' output
4570 parameter. Change return type to int. Gracefully handle
4571 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4572 happened, or 1 otherwise.
4573 (frame_unwind_pc): Reimplement on top of
4574 frame_unwind_pc_if_available.
4575 (get_frame_func): Rename to ...
4576 (get_frame_func_if_available): New `pc' output parameter. Change
4577 return type to int. Gracefully handle the PC not being available.
4578 (get_frame_func): Reimplement on top of
4579 get_frame_func_if_available.
4580 (select_frame): Handle the PC being unavailable.
4581 (get_prev_frame): Handle the PC being unavailable.
4582 (get_frame_pc_if_available): New.
4583 (get_frame_address_in_block_if_available): New.
4584 (find_frame_sal): Handle the frame PC not being available.
4585 * frame.h (get_frame_pc_if_available): Declare.
4586 (get_frame_address_in_block_if_available): Declare.
4587 (get_frame_func_if_available): Declare.
4588 * stack.c (print_frame_info): Handle the PC being unavailable.
4589 (find_frame_funname): Ditto.
4590 (print_frame): Handle the PC being unavailable.
4591 (get_frame_language): Ditto.
4592 * blockframe.c (get_frame_block): Ditto.
4593 * macroscope.c (default_macro_scope): Ditto.
4594 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4596 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4598 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4599 NOT_AVAILABLE_ERROR when evaluating the location expression.
4601 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4603 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4604 returning that the register piece is unavailable/optimized out.
4605 (write_pieced_value): Handle get_frame_register_bytes returning
4606 that the register piece is unavailable/optimized out when doing a
4607 read-modify write of a bitfield.
4608 * findvar.c (value_from_register): Handle get_frame_register_bytes
4609 returning that the register piece is unavailable/optimized out.
4610 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4611 and `unavailablep'. Throw error on bad debug info. Use
4612 frame_register instead of frame_register_read, to fill in the new
4614 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4616 * valops.c: (value_assign): Adjust, and handle
4617 get_frame_register_bytes failing.
4618 * spu-tdep.c: Include exceptions.h.
4619 (spu_software_single_step): Adjust, and handle
4620 get_frame_register_bytes failing.
4621 (spu_get_longjmp_target): Ditto.
4622 * gdbarch.sh (register_to_value): Change to return int. New
4623 parameters `optimizedp' and `unavailablep'.
4624 * gdbarch.h, gdbarch.c: Regenerate.
4625 * i386-tdep.c (i386_register_to_value): Adjust to new
4626 gdbarch_register_to_value interface.
4627 * i387-tdep.c (i387_register_to_value): Ditto.
4628 * i387-tdep.h (i387_register_to_value): Ditto.
4629 * alpha-tdep.c (alpha_register_to_value): Ditto.
4630 * ia64-tdep.c (ia64_register_to_value): Ditto.
4631 * m68k-tdep.c (m68k_register_to_value): Ditto.
4632 * mips-tdep.c (mips_register_to_value): Ditto.
4633 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4635 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4637 * findvar.c (value_of_register): Mark the value as unavailable, if
4638 the register is unavailable.
4639 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4640 (frame_register): New `unavailablep' parameter.
4641 (frame_register_read): Update comment.
4642 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4643 Set it if the register is unavailable. If the register is
4644 unavailable, clear the output buffer.
4645 (frame_register): New `unavailablep' parameter. Pass it down.
4646 (frame_unwind_register): Adjust.
4647 (put_frame_register): Adjust.
4648 (frame_register_read): Adjust. Also return false if the register
4650 (frame_register_unwind_location): Adjust.
4651 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4652 is unavailable, mark the value accordingly.
4653 * stack.c (frame_info): Handle unavailable registers.
4655 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4657 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4658 simplify, using regcache_cooked_read.
4660 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4662 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4663 (regcache_raw_read_unsigned, regcache_raw_read_signed)
4664 (regcache_raw_read_unsigned, regcache_raw_read_part)
4665 (regcache_cooked_read, regcache_cooked_read_signed)
4666 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
4667 (regcache_cooked_read_ftype): Change return to enum
4669 * regcache.c: Include exceptions.h
4670 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
4671 (do_cooked_read): Change return to enum register_status. Always
4672 forward to regcache_cooked_read.
4673 (regcache_raw_read): Change return to enum register_status. If
4674 the register is not REG_VALID, memset the buffer. Return the
4676 (regcache_raw_read_signed): Handle non-REG_VALID registers and
4677 return the register's status.
4678 (regcache_raw_read_unsigned): Ditto.
4679 (regcache_cooked_read): Change return to enum register_status.
4680 Assert that with read-only regcaches, the register's status must
4681 be known. If the regcache is read-only, and the register is not
4682 REG_VALID, memset the buffer. Return the register's status.
4683 (regcache_cooked_read_signed): Change return to enum
4684 register_status. Handle non-REG_VALID registers and return the
4686 (regcache_cooked_read_unsigned): Change return to enum
4687 register_status. Handle non-REG_VALID registers and return the
4689 (regcache_xfer_part, regcache_raw_read_part)
4690 (regcache_cooked_read_part): Change return to enum
4691 register_status. Return the register's status.
4692 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4694 (regcache_dump): Handle unavailable cooked registers.
4695 * frame.c (do_frame_register_read): Adjust interface to match
4696 regcache_cooked_read_ftype.
4697 * gdbarch.sh (pseudo_register_read): Change return to enum
4699 * gdbarch.h, gdbarch.c: Regenerate.
4701 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4703 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4704 register_status. If reading a raw register indicates the raw
4705 register is not valid, return the raw register's status,
4706 otherwise, return REG_VALID.
4707 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4708 register_status. Handle non-REG_VALID raw registers and return
4709 the register's status.
4710 * arm-tdep.c (arm_neon_quad_read)
4711 (arm_pseudo_read): Change return to enum register_status. Handle
4712 non-REG_VALID raw registers and return the register's status.
4713 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4714 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4715 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4716 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4717 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4719 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4720 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4721 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4722 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4723 (m32c_pseudo_register_read): Change return to enum
4724 register_status. Adjust.
4725 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4726 enum register_status. Return the register's status.
4727 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4728 register_status. Return the register's status.
4729 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4730 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4731 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4732 * rs6000-tdep.c (move_ev_register_func): New typedef.
4733 (e500_move_ev_register): Use it. Change return to enum
4734 register_status. Return the register's status.
4735 (do_regcache_raw_read): New function.
4736 (do_regcache_raw_write): New function.
4737 (e500_pseudo_register_read): Change return to enum
4738 register_status. Return the register's status. Use
4739 do_regcache_raw_read.
4740 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4741 (dfp_pseudo_register_read): Change return to enum register_status.
4742 Return the register's status.
4743 (vsx_pseudo_register_read): Ditto.
4744 (efpr_pseudo_register_read): Ditto.
4745 (rs6000_pseudo_register_read): Ditto.
4746 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4747 register_status. Return the register's status.
4748 * sh64-tdep.c (pseudo_register_read_portions): New function.
4749 (sh64_pseudo_register_read): Change return to enum
4750 register_status. Use pseudo_register_read_portions. Return the
4752 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4753 register_status. Return the register's status.
4754 * sh-tdep.c (pseudo_register_read_portions): New function.
4755 (sh_pseudo_register_read): Change return to enum register_status.
4756 Use pseudo_register_read_portions. Return the register's status.
4757 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4758 enum register_status. Return the register's status.
4759 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4760 * spu-tdep.c (spu_pseudo_register_read_spu)
4761 (spu_pseudo_register_read): Ditto.
4762 * xtensa-tdep.c (xtensa_register_read_masked)
4763 (xtensa_pseudo_register_read): Ditto.
4764 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4766 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4768 * python/py-value.c (valpy_getitem): Fix formatting of error function
4771 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4773 ARI fixes: Add missing internationalization markups throughout
4775 * darwin-nat-info.c: Ditto.
4778 * mi/mi-main.c: Ditto.
4780 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4782 ARI fixes: Add missing internationalization markups throughout
4785 * cp-name-parser.y: Ditto.
4788 * objc-exp.y: Ditto.
4791 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4793 ARI fixes: Messages should have no trailing new lines.
4794 * darwin-nat.c (mach_check_error): Remove trailing new line from
4795 warning function call message.
4796 * record.c (bfdcore_read): Idem for error call.
4798 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4800 * common/signals.c (target_signal_from_host): Add _ markup to error
4801 function call message.
4802 (target_signal_to_host): Add _ markup and remove trailing new line
4803 from warning call message.
4804 (target_signal_from_command): Add _ markup to error function call
4807 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
4811 * python/python.c (gdbpy_write): Accept a stream argument and
4812 operate to the appropriate stream.
4813 (gdbpy_flush): Likewise.
4814 (_initialize_python): Add stream constants.
4815 (finish_python_initialization): Add GdbOutputErrorFile class.
4817 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4819 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4821 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4823 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
4824 to store_signed_integer. Add debug message when relocating CALL
4825 instructions. Fix formatting of debug message.
4826 * i386-tdep.c (i386_relocate_instruction): Ditto.
4828 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4830 * target.h (struct target_ops): Remove to_lookup_symbol field.
4831 (target_lookup_symbol): Delete macro.
4832 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4833 (update_current_target, setup_target_debug): Remove handling
4834 of to_lookup_symbol target_ops field.
4835 * ada-tasks.c (get_known_tasks_addr): Remove use of
4836 target_lookup_symbol.
4837 * coffread.c (coff_symtab_read): Likewise.
4838 * dbxread.c (read_dbx_symtab): Ditto.
4840 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4843 * configure.ac: Add getthrds declaration check.
4844 * configure, config.in: Regenerate.
4845 * aix-thread.c (getthrds): Declare only if not already declared
4846 in procinfo.h. More declaration out of get_signaled_thread to
4849 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
4851 * python/py-symtab.c: Populate symtab_object_methods,
4853 (stpy_is_valid): New function.
4854 (salpy_is_valid): Ditto.
4855 * python/py-symbol.c: Declare symbol_object_methods. Populate.
4856 (sympy_is_valid): New function.
4857 * python/py-objfile.c: Declare objfile_object_methods. Populate.
4858 (objfpy_is_valid): New function.
4859 * python/py-inferior.c: Populate inferior_object_methods.
4860 (infpy_is_valid): New function.
4861 * python/py-infthread.c: Populate thread_object_methods.
4862 (thpy_is_valid): New function.
4863 * python/py-block.c: Declare block_object_methods. Populate. Declare
4864 block_iterator_object_methods. Populate.
4865 (blpy_is_valid): New function.
4866 (blpy_iter_is_valid): Ditto.
4868 2011-03-16 Keith Seitz <keiths@redhat.com>
4870 * linespec.c (find_methods): Canonicalize NAME before looking
4872 (name_end): New function.
4873 (keep_name_info): New function.
4874 (decode_line_1): Use keep_name_info.
4875 (decode_compound): Likewise.
4876 * cli/cli-utils.h (remove_trailing_whitespace): New function.
4877 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
4880 * linespec.c (locate_first_half): Keep overload information, too.
4881 (decode_compound): Use a string to represent break characters
4883 If P points to a break character, do not increment it.
4884 For C++ and Java, keep overload information and relevant keywords.
4885 If we cannot find a symbol, search the minimal symbols.
4888 * linespec.c (decode_compound): Rename SAVED_ARG to
4890 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
4892 Pass a valid block to lookup_symbol.
4893 (lookup_prefix_sym): Likewise.
4894 (find_method): Construct search name based on SYM_CLASS instead
4896 * psymtab.c (lookup_partial_symbol): Add language parameter.
4897 (lookup_symbol_aux_psymtabs): Likewise.
4898 Don't assume that the psymtab we found was the right one. Search
4899 for the desired symbol in the symtab to be certain.
4900 (psymtab_search_name): New function.
4901 (lookup_partial_symbol): Use psymtab_search_name.
4902 Add language parameter.
4903 (read_symtabs_for_function): Add language parameter and pass to
4904 lookup_partial_symbol.
4905 (find_symbol_file_from_partial): Likewise.
4907 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
4910 * dwarf2read.c (noop_record_line): New function.
4911 (dwarf_decode_lines): Ignore line tables for GCd functions.
4913 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4915 Fix ARI warnings about new lines at the end of messages, which
4916 are unneeded as there is a new line added at the end of the message
4918 * darwin-nat.c (darwin_stop_inferior): Ditto.
4919 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
4920 * dfp.c (decimal_to_number): Ditto.
4921 * exec.c (print_section_info): Ditto.
4922 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4923 * osdata.c (get_osdata): Ditto.
4924 * record.c (bfdcore_write): Ditto.
4925 * remote-mips.c (mips_readchar): Ditto.
4926 * remote.c (read_ptid): Ditto.
4927 * ser-mingw.c (ser_windows_raw): Ditto.
4928 * tracepoint.c (add_local_symbols): Ditto.
4929 * windows-nat.c (fake_create_process): Ditto.
4931 2011-03-16 Tom Tromey <tromey@redhat.com>
4933 * tracepoint.c (stop_tracing): Don't declare.
4934 * event-top.c (after_char_processing_hook): Add `(void)'.
4936 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
4938 * NEWS: Add Parameter sub-classing description.
4940 2011-03-16 Kai Tietz <ktietz@redhat.com>
4942 * MAINTAINERS: Update my e-mail address.
4944 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
4946 * MAINTAINERS: Add myself for write after approval privileges.
4948 2011-03-15 Michael Snyder <msnyder@vmware.com>
4950 * frame.c (find_frame_sal): Assert sym is not null.
4952 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4954 * objc-lang.c (selectors_info): Check strchr for null result.
4956 * stabsread.c (define_symbol): Guard against bad stabstring input.
4958 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4960 Remove trailing spaces and tabulations from pascal language
4965 p-valprint.c: Ditto.
4967 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4969 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4970 than LOW. Comment it.
4971 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4972 HIGHPC not strictly higher than LOWPC.
4974 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
4976 Fix formatting of function declarations returning a pointer in
4978 * varobj.c (varobj_add_child): Ditto.
4979 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4980 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4982 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4984 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
4985 for the "generic" vector ABI used with GCC 4.3 and later.
4986 (ppc64_sysv_abi_return_value): Likewise.
4988 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
4990 * infcall.c (call_function_by_hand): Function return value is
4991 always a non_lval, even when using struct_return.
4993 2011-03-15 Pedro Alves <pedro@codesourcery.com>
4995 * printcmd.c (ALL_DISPLAYS_SAFE): New.
4996 (map_display_numbers): New.
4997 (do_delete_display): New.
4998 (undisplay_command): Use map_display_numbers.
4999 (do_enable_disable_display): New.
5000 (enable_disable_display_command): New function.
5001 (enable_display): Delete.
5002 (enable_display_command): New.
5003 (disable_display_command): Reimplement.
5004 (_initialize_printcmd): Adjust "enable display" command to use
5005 `enable_display_command' as callback.
5007 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5009 * NEWS: Add Python breakpoint 'stop' operation.
5011 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5013 * NEWS: Delete duplicate entry. Fix typo.
5015 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5017 Fix ARI warning about function names in first column.
5018 Put prototype declaration on same line as return type.
5019 * objc-exp.y: Ditto.
5021 * python/py-stopevent.h: Ditto.
5022 For long function names, split parameters to
5023 allow function name on same line as return type.
5024 * solib-pa64.c: Ditto.
5027 For long function declaration, use single line.
5028 * hppa-tdep.h: Ditto.
5029 * inferior.h: Ditto.
5031 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5033 * python/python.h: Declare gdbpy_should_stop and
5034 gdbpy_breakpoint_has_py_cond.
5035 * python/python.c: Add python.h to includes. Remove python.h from
5036 HAVE_PYTHON definition
5037 (gdbpy_should_stop): New dummy function.
5038 (gdbpy_breakpoint_has_py_cond): New dummy function.
5039 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5040 sub-classing capabilities.
5041 (gdbpy_should_stop): New function.
5042 (gdbpy_breakpoint_has_py_cond): New function.
5043 (local_setattro): New function.
5044 * breakpoint.c (condition_command): Add check for Python 'stop'
5046 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5047 operation function as part of stop/continue tests.
5049 2011-03-14 Tom Tromey <tromey@redhat.com>
5052 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5053 (needs_frame_dwarf_call): Likewise.
5055 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5057 Fix ARI warning about functions without parameters that do not
5059 * breakpoint.c (all_tracepoints): Replace () by (void).
5060 * f-exp.y (match_string_literal): Ditto.
5062 * m2-exp.y (yylex): Ditto.
5063 * mep-tdep.c (current_me_module): Ditto.
5064 (current_options): Ditto.
5065 (current_cop_data_bus_width): Ditto.
5066 (current_cr_names): Ditto.
5067 (current_cr_is_float): Ditto.
5068 (current_ccr_names): Ditto.
5069 * objc-exp.y (yylex): Ditto.
5070 * p-exp.y (yylex): Ditto.
5071 * remote.c (send_interrupt_sequence): Ditto.
5072 * tracepoint.c (current_trace_status): Ditto.
5073 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5074 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5076 2011-03-11 Michael Snyder <msnyder@vmware.com>
5078 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5079 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5080 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5081 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5082 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5084 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5085 (delete_async_event_handler): Ditto.
5087 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5089 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5091 * top.c (set_verbose): Assert showcmd was found.
5093 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5095 * xtensa-tdep.c (warning_once): Correct style issues.
5097 2011-03-11 Yao Qi <yao@codesourcery.com>
5099 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5101 2011-03-11 Andreas Schwab <schwab@redhat.com>
5103 * common/aclocal.m4: Remove.
5105 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5107 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5108 (xtensa_write_register, xtensa_read_register): Likewise.
5109 (xtensa_hextochar): Removed.
5110 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5112 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5114 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5115 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5116 (xtensa_alloc_frame_cache): Add initialization for new fields.
5117 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5118 (warning_once): New function.
5119 (xtensa_insn_kind): New item c0opc_and.
5120 (call0_classify_opcode): Add the case for AND instruction.
5121 (call0_track_op): Change arguments. New local variable litbase.
5122 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5123 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5125 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5126 (call0_analyze_prologue): Update the comments. Change arguments.
5127 Add the variety of updates to handle extended prologues, which now can
5128 conduct dynamic stack adjustments.
5129 (call0_frame_cache): Likewise.
5130 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5131 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5133 2011-03-10 Michael Snyder <msnyder@vmware.com>
5135 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5136 (cmd_qtframe): Ditto.
5137 (cmd_qtbuffer): Ditto.
5138 (cmd_bigqtbuffer): Ditto.
5140 2011-03-10 Tom Tromey <tromey@redhat.com>
5142 * tracepoint.c (trace_actions_command): Update.
5143 * thread.c (thread_apply_command): Update.
5144 * reverse.c (delete_bookmark_command): Update.
5145 (bookmarks_info): Update.
5146 * printcmd.c (undisplay_command): Update.
5147 * memattr.c (mem_enable_command): Update.
5148 (mem_disable_command): Update.
5149 (mem_delete_command): Update.
5150 * inferior.c (detach_inferior_command): Update.
5151 (kill_inferior_command): Update.
5152 (remove_inferior_command): Update.
5153 * cli/cli-utils.h (struct get_number_or_range_state): New.
5154 (init_number_or_range): Declare.
5155 (get_number_or_range): Update.
5156 * cli/cli-utils.c (init_number_or_range): New function.
5157 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5159 (number_is_in_list): Update.
5160 * breakpoint.h (get_tracepoint_by_number): Update.
5161 * breakpoint.c (map_breakpoint_numbers): Update for change to
5162 get_number_or_range.
5163 (find_location_by_number): Use get_number, not
5164 get_number_or_range.
5165 (trace_pass_set_count): New function.
5166 (trace_pass_command): Update for change to get_number_or_range.
5168 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5171 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5173 * python/py-param.c (add_setshow_generic): Add set/show callback
5174 parameters. Register Python object context.
5175 (get_show_value): New function.
5176 (get_set_value): New function.
5177 (call_doc_function): New function.
5178 (get_doc_string): Move behind get_show_value/get_set_value.
5180 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5182 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5184 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5186 * xtensa-tdep.c (xtensa_read_register): Add comment.
5187 (xtensa_write_register): Likewise.
5188 (xtensa_hextochar): Add comment and update to match coding conventions.
5189 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5190 (execute_l32e, execute_s32e, execute_code): Update comments.
5191 (xtensa_exception_handler_t): Update to match coding conventions.
5192 (xtensa_insn_kind): Likewise.
5194 2011-03-09 Michael Snyder <msnyder@vmware.com>
5196 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5198 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5200 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5202 2011-03-09 Tom Tromey <tromey@redhat.com>
5204 * thread.c (restore_selected_frame): Handle frame_level == -1.
5205 (make_cleanup_restore_current_thread): Use
5206 get_selected_frame_if_set.
5207 * frame.h (get_selected_frame_if_set): Declare.
5208 * frame.c (get_selected_frame_if_set): New function.
5210 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5212 * cli/cli-cmds.c (shell_escape): Use lbasename.
5213 * coffread.c (coff_start_symtab): Constify parameter.
5214 (complete_symtab): Constify `name' parameter.
5215 (coff_symtab_read): Constify `filestring' local.
5216 (coff_getfilename): Constify return and `result' local.
5218 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5219 * linux-fork.c (info_checkpoints_command): Use lbasename.
5220 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5221 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5222 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5223 * procfs.c (procfs_make_note_section): Use lbasename.
5224 * tui/tui-io.c (printable_part): Constity return and parameter.
5226 (print_filename): Constify parameters, and local `s'.
5227 (tui_rl_display_match_list): Constify local `temp'.
5229 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5232 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5233 Fix DWARF-3+ DW_AT_accessibility default assumption.
5234 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5235 cu->header.version >= 3.
5237 2011-03-09 Yao Qi <yao@codesourcery.com>
5239 * common/Makefile.in: Remove.
5240 * common/configure: Remove.
5241 * common/configure.ac: Remove.
5243 2011-03-09 Yao Qi <yao@codesourcery.com>
5246 2011-02-11 Yao Qi <yao@codesourcery.com>
5248 * common/Makefile.in: Add copyright header.
5250 2011-02-11 Yao Qi <yao@codesourcery.com>
5252 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5254 * configure.ac: Add common to sub dir.
5255 * configure: Regenerate.
5257 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5259 * xtensa-tdep.c (call0_ret): New function.
5260 (xtensa_skip_prologue): Speed up analysis.
5262 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5264 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5265 while executing MI command -data-list-changed-registers.
5267 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5269 * xtensa-tdep.c (xtensa_read_register): New function.
5270 (xtensa_write_register): New function.
5271 (xtensa_find_register_by_name): New function.
5272 (xtensa_windowed_frame_cache): Update comments in type description.
5273 (xtensa_frame_cache): Likewise.
5274 (xtensa_window_interrupt_insn): New function.
5275 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5276 (xtensa_insn_kind): Add new instructions.
5277 (rwx_special_register): New function.
5278 (call0_classify_opcode): Add new instructions to the analysis.
5279 (a0_saved, a7_saved, a11_saved): New variables.
5280 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5281 (execute_l32e): New function.
5282 (execute_s32e): New function.
5283 (xtensa_exception_handler_t): New type.
5284 (execute_code): New function.
5285 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5286 analysis for Xtensa Window Exception handlers.
5288 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5290 * xtensa-tdep.c (TX_PS): New.
5291 (windowing_enabled): Update to count for Call0 ABI.
5292 (xtensa_hextochar): New.
5293 (xtensa_init_reggroups): Make algorithm generic.
5294 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5296 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5298 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5300 2011-03-08 Michael Snyder <msnyder@vmware.com>
5302 * i386-tdep.c (i386_follow_jump): Check return value of
5304 (i386_analyze_struct_return): Ditto.
5305 (i386_skip_probe): Ditto.
5306 (i386_match_insn): Ditto.
5307 (i386_skip_noop): Ditto.
5308 (i386_analyze_frame_setup): Ditto.
5309 (i386_analyze_register_saves): Ditto.
5310 (i386_skip_prologue): Ditto.
5311 (i386_skip_main_prologue): Ditto.
5313 * target.c (read_whatever_is_readable): Fix memory leak.
5315 * i386-tdep.c (i386_process_record): Document fall through.
5317 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5319 Fix DWARF-3+ DW_AT_accessibility default assumption.
5320 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5321 cu->header.version >= 3.
5323 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5325 * remote.c (remote_check_symbols): Skip if the target has no
5328 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5330 * target.c (read_whatever_is_readable): Reformat comment,
5331 with a minor typo fix. Minor reformatting of the code.
5333 2011-03-08 Yao Qi <yao@codesourcery.com>
5335 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5336 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5337 Use cached result instead of calling displaced_in_arm_mode again.
5338 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5339 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5340 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5341 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5342 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5343 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5344 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5345 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5346 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5347 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5348 (arm_catch_kernel_helper_return): Likewise.
5349 * gdb/arm-tdep.h : Update function declarations.
5351 2011-03-07 Michael Snyder <msnyder@vmware.com>
5353 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5355 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5357 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5359 * elfread.c (elf_symtab_read): Stop memory leak.
5361 * main.c (captured_main): Fix memory leak.
5363 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5365 * ada-lang.c (compare_names): Call is_name_suffix with string1
5368 2011-03-07 Tom Tromey <tromey@redhat.com>
5370 * xcoffread.c (xcoff_sym_fns): Update.
5371 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5372 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5373 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5374 (symbol_file_add_with_addrs_or_offsets): Likewise.
5375 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5376 * somread.c (som_sym_fns): Update.
5377 * psymtab.h (require_partial_symbols): Declare.
5378 * psymtab.c (require_partial_symbols): New function.
5379 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5380 (ALL_OBJFILE_PSYMTABS): Undef.
5381 (ALL_PSYMTABS): Move from psympriv.h.
5382 (lookup_partial_symtab, find_pc_sect_psymtab)
5383 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5384 (find_last_source_symtab_from_partial)
5385 (forget_cached_source_info_partial)
5386 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5387 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5388 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5389 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5390 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5391 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5392 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5393 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5394 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5396 * mipsread.c (ecoff_sym_fns): Update.
5397 * machoread.c (macho_sym_fns): Update.
5398 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5399 (read_psyms): New function.
5400 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5401 (elf_sym_fns_lazy_psyms): New global.
5402 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5403 dwarf2_build_psymtabs.
5404 * dbxread.c (aout_sym_fns): Update.
5405 * coffread.c (coff_sym_fns): Update.
5407 2011-03-07 Tom Tromey <tromey@redhat.com>
5409 * infrun.c (print_exited_reason): Include inferior id and pid in
5412 2011-03-07 Tom Tromey <tromey@redhat.com>
5414 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5416 (target_has_execution_1): Update.
5417 (target_has_execution_current): Declare.
5418 (target_has_execution): Call target_has_execution_current.
5419 (default_child_has_execution): Update.
5420 * target.c (default_child_has_execution): Add 'the_ptid'
5422 (target_has_execution_1): Likewise.
5423 (target_has_execution_current): New function.
5424 (add_target): Update.
5425 (init_dummy_target): Update.
5426 * remote-m32r-sdi.c (m32r_has_execution): New function.
5427 (init_m32r_ops): Use it.
5428 * record.c (record_core_has_execution): Now static. Add
5429 'the_ptid' parameter.
5430 * inferior.c (have_live_inferiors): Don't save current thread.
5431 Use target_has_execution_1.
5433 2011-03-07 Yao Qi <yao@codesourcery.com>
5435 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5437 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5439 * elfread.c (elf_symtab_read): Minor reformatting.
5441 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5443 * objc-lang.c (selectors_info): Minor reformatting.
5445 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5447 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5449 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5450 Michael Snyder <msnyder@vmware.com>
5452 * ada-valprint.c (ada_val_print_array): Move the declaration of
5453 "byte_order" and "elttype" inside the block where these variables
5454 are actually used. Remove some special handling for the case
5455 where "elttype" and "eltlen" are null. Replace by a comment
5456 and a couple of assertion checks.
5458 2011-03-05 Michael Snyder <msnyder@vmware.com>
5460 * source.c (add_path): Replace semicolon at end of block.
5461 * dwarf2expr.c (execute_stack_op): Ditto.
5463 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5465 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5466 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5467 (bfin-*-*): Likewise.
5469 2011-03-05 Michael Snyder <msnyder@vmware.com>
5471 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5472 * mdebugread.c (parse_symbol): Ditto.
5473 * parse.c (parse_exp_in_context): Ditto.
5474 * source.c (add_path): Ditto.
5475 * utils.c (gnu_debuglink_crc32): Ditto.
5476 * varobj.c (variable_language): Ditto.
5478 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5480 2011-03-04 Michael Snyder <msnyder@vmware.com>
5482 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5484 * symfile.c (simple_overlay_update): Check for null return value
5485 from lookup_minimal_symbol.
5487 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5489 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5491 * eval.c (parse_and_eval_address_1): Remove function.
5492 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5493 instead of parse_and_eval_address_1.
5494 * value.h (parse_and_eval_address_1): Remove prototype.
5496 2011-03-04 Michael Snyder <msnyder@vmware.com>
5498 * remote.c (putpkt_binary): Document that case stmt falls through.
5500 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5502 * breakpointc (print_it_typical): Move NULL check from here...
5503 (print_bp_stop_message): ... to here.
5505 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5507 * breakpoint.c (enable_command): Use break instead of continue,
5508 and fill in a missing break.
5509 (disable_command): Ditto.
5511 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5513 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5514 (terminal_save_ours): Remove misleading comment.
5515 (inflow_inferior_data_cleanup): Free ttystate.
5516 (inflow_inferior_exit): Likewise.
5517 (copy_terminal_info): Copy ttystate.
5519 * serial.c (serial_copy_tty_state): New function.
5520 * serial.h (serial_copy_tty_state): Add prototype.
5521 (struct serial_ops): Add copy_tty_state callback.
5522 * ser-base.c (ser_base_copy_tty_state): New function.
5523 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5524 * ser-go32.c (dos_copy_tty_state): New function.
5525 (dos_ops): Install copy_tty_state callback.
5526 * ser-mingw.c (_initialize_ser_windows): Likewise.
5527 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5528 * ser-unix.c (hardwire_copy_tty_state): New function.
5529 (_initialize_ser_hardwire): Install it.
5531 2011-03-04 Michael Snyder <msnyder@vmware.com>
5533 * breakpoint.c (create_breakpoint): Add missing break statement.
5535 Reverting this patch:
5536 * infcall.c (call_function_by_hand): Add break statements for lint.
5538 Reverting this patch:
5539 * cli/cli-script.c (script_from_file): Add break for lint.
5541 2011-03-04 Michael Snyder <msnyder@vmware.com>
5543 * solib.c (reload_shared_libraries_1): Close memory leak.
5545 2011-03-03 Tom Tromey <tromey@redhat.com>
5548 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5551 2011-03-03 Michael Snyder <msnyder@vmware.com>
5553 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5554 fields of struct 'st' to zero.
5556 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5557 sal.pspace before calling set_current_source_symtab_and_line.
5559 2011-03-03 Yao Qi <yao@codesourcery.com>
5561 * Makefile.in (configure-common): Remove. Let Makefile
5562 in dir common to rebuild itself.
5563 (common/Makefile): Likewise.
5565 2011-03-03 Joel Brobecker <brobecker@adacore.com>
5567 * utils.c (parse_escape): Add i18n markup in error message.
5569 2011-03-03 Yao Qi <yao@codesourcery.com>
5571 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5573 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5574 (displaced_write_reg, displaced_read_reg): Likewise.
5575 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5576 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5577 (cleanup_branch): Replace magic number 14 and 15 with
5578 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5580 2011-03-02 Michael Snyder <msnyder@vmware.com>
5582 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5584 * cli/cli-script.c (script_from_file): Add break for lint.
5586 * mdebugread.c (parse_partial_symbols): Fix indent.
5588 * target-descriptions.c (tdesc_gdb_type): No need to call
5589 xstrdup, callee saves a copy.
5591 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5593 * infcall.c (call_function_by_hand): Add break statements for lint.
5595 * utils.c (parse_escape): Escape the escape char.
5597 * python/py-inferior.c (build_inferior_list): Error out if
5598 PyList_Append fails.
5599 (gdbpy_inferiors): Error out if build_inferior_list fails.
5601 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5604 * record.c (record_restore): Move printf to before error return.
5606 2011-03-02 Yao Qi <yao@codesourcery.com>
5608 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5609 is_thumb and insn_size.
5610 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5611 on both ARM and Thumb mode.
5612 (arm_process_displaced_insn): Set is_thumb and insn_size.
5613 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5614 (arm_displaced_step_fixup): Likewise.
5616 2011-03-01 Michael Snyder <msnyder@vmware.com>
5618 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5620 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5622 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5624 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5626 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5629 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5630 which shadows function parameter.
5632 * tracepoint.c (create_tsv_from_upload): Superfluous call
5633 to xstrdup. Callee already calls xstrdup.
5635 * linespec.c (decode_line_1): Remove unnecessary null check.
5637 * tracepoint.c (scope_info): Fix mem leak, remove underused
5640 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5641 superfluous null check.
5643 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
5644 (value_of_builtin_frame_fp_reg): Ditto.
5646 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5648 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5651 * linespec.c (decode_line_1): Check for null before dereference.
5653 * reverse.c (record_restore): Move null-check to before pointer
5656 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
5658 * objc-lang.c (selectors_info): Add explanitory comment.
5659 (classes_info): Ditto.
5661 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5663 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
5664 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
5665 versions of the trampoline. Handle Thumb vs. ARM addresses.
5666 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
5667 (arm_linux_init_abi): Install it.
5668 * arm-tdep.c (arm_psr_thumb_bit): Make global.
5669 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
5671 2011-02-28 Michael Snyder <msnyder@vmware.com>
5673 * ui-out.c (ui_out_field_core_addr): Make local char buffer
5674 a little bigger, to avoid possibility of an overflow.
5676 * breakpoint.c (breakpoint_adjustment_warning): Make local char
5677 buffers a little bigger, to avoid possibility of an overflow.
5679 * coffread.c (coff_getfilename): Add check to avoid overflow.
5681 * objc-lang.c (selectors_info): Add a small safety margin to
5683 (classes_info): Error out on too long REGEXP.
5685 * infrun.c (handle_inferior_event): Remove unused function call.
5687 * fork-child.c (fork_inferior): Remove ifdef'd code and
5690 * linux-thread-db.c (attach_thread): Discard unused value.
5692 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5694 * remote.c (remote_get_noisy_reply): Discard unused value.
5695 (remote_vcont_resume): Ditto.
5696 (remote_stop_ns): Ditto.
5698 * linespec.c (decode_objc): Delete unused variable.
5700 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5702 * dwarf2read.c (add_partial_symbol): Discard unused values.
5703 (read_base_type): Delete unused variable.
5705 * dbxread.c (read_dbx_symtab): Discard unused value.
5707 * eval.c (evaluate_subexp_standard): Delete unused variable,
5708 and discard unused values.
5710 * infcmd.c (_initialize_infcmd): Discard unused values.
5712 * stabsread.c (rs6000_builtin_type): Missing break statement.
5714 * dbxread.c (process_one_symbol): Discard unused value.
5716 * coffread.c (coff_end_symtab): Delete unused variable.
5718 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5719 (dwarf2_add_typedef): Delete unused variable.
5720 (read_namespace): Ditto.
5721 (dwarf_decode_macros): Ditto.
5723 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5725 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5727 * p-valprint.c (pascal_val_print): Discard unused value.
5729 * utils.c (nquery): Call va_end before return;
5733 * proc-service.c (ps_plog): Call va_end before return.
5735 2011-02-28 Tom Tromey <tromey@redhat.com>
5737 * python/python.c (gdbpy_value_cst): New global.
5738 (_initialize_python): Initialize it.
5739 * python/python-internal.h (gdbpy_value_cst): Declare.
5740 * python/py-value.c (convert_value_from_python): Use
5743 2011-02-28 Michael Snyder <msnyder@vmware.com>
5745 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5747 * breakpoint.c (catch_syscall_completer): Free malloced list.
5749 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5751 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5752 (lval_func_check_synthetic_pointer): Ditto.
5753 (lval_func_free_closure): Fix use-after-free.
5755 2011-02-28 Tom Tromey <tromey@redhat.com>
5757 * psymtab.c (expand_partial_symbol_tables): Use
5758 ALL_OBJFILE_PSYMTABS.
5760 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5762 * objc-lang.c (selectors_info): Error on too long REGEXP.
5764 2011-02-28 Michael Snyder <msnyder@vmware.com>
5766 * python/py-param.c (set_parameter_value): Add missing
5769 * linux-record.c (record_linux_system_call): Add missing
5772 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5774 * breakpoint.c (print_one_breakpoint_location): Remove unused
5775 argument PRINT_ADDRESS_BITS. Update callers.
5776 (print_one_breakpoint): Likewise.
5778 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5780 * breakpoint.c (wrap_indent_at_field): New function.
5781 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5782 Allocate ui_stream locally instead of using STB argument.
5783 (print_one_breakpoint_location): Update call.
5784 * ui-out.c (ui_out_query_field): New function.
5785 * ui-out.h (ui_out_query_field): Add prototype.
5787 2011-02-28 Joel Brobecker <brobecker@adacore.com>
5789 From Michael Snyder <msnyder@vmware.com>
5790 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5792 2011-02-27 Michael Snyder <msnyder@vmware.com>
5794 * objc-lang.c (selectors_info): Prevent string overrun.
5796 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5799 * symtab.c (rbreak_command): Move variable 'file_name' to
5802 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5803 param with a local variable of the same name.
5805 2011-02-27 Michael Snyder <msnyder@vmware.com>
5807 * value.c (value_from_history_ref): New function.
5808 * value.h (value_from_history_ref): Export.
5809 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5810 to parse value history references.
5811 * cli/cli-utils.h (get_number_trailer): Update comment.
5813 2011-02-27 Michael Snyder <msnyder@vmware.com>
5815 * inferior.c (detach_inferior_command): Use get_number_or_range.
5816 (kill_inferior_command): Ditto.
5817 (remove_inferior_command): Ditto.
5818 (initialize_inferiors): Make command names plural.
5819 Update help strings.
5821 2011-02-27 Michael Snyder <msnyder@vmware.com>
5823 * darwin-nat-info.c: Fix comment typo.
5824 * dwarf2expr.h: Ditto.
5825 * fbsd-nat.c: Ditto.
5826 * fbsd-nat.h: Ditto.
5827 * frame-unwind.h: Ditto.
5829 * hppa-hpux-tdep.c: Ditto.
5830 * i386-linux-nat.c: Ditto.
5831 * linux-nat.c: Ditto.
5832 * nbsd-nat.c: Ditto.
5833 * nbsd-nat.h: Ditto.
5834 * ppc-linux-tdep.c: Ditto.
5837 * tui/tui-winsource.c: Ditto.
5839 2011-02-26 Michael Snyder <msnyder@vmware.com>
5841 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5843 * maint.c (maintenance_do_deprecate): Plug a memory leak.
5845 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
5846 with a local variable of the same name.
5848 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
5849 param with a local variable of the same name.
5850 (i387_supply_xsave): Ditto.
5852 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
5853 that it does not shadow a function parameter.
5855 * i386-nat.c (i386_length_and_rw_bits): Document that case
5856 statement is meant to fall through.
5858 * expprint.c (dump_subexp_body_standard): Document that case
5859 statement is meant to fall through.
5861 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
5862 dead if statement. Condition can't be false.
5864 2011-02-25 Michael Snyder <msnyder@vmware.com>
5866 * arm-tdep.c: Fix typos in comments.
5867 * bsd-uthread.c: Ditto.
5868 * completer.c: Ditto.
5870 * cp-namespace.c: Ditto.
5871 * cp-support.c: Ditto.
5872 * cris-tdep.c: Ditto.
5874 * dwarf2read.c: Ditto.
5876 * gdbtypes.h: Ditto.
5877 * inferior.h: Ditto.
5878 * mdebugread.c: Ditto.
5879 * mips-tdep.c: Ditto.
5880 * ppc-linux-nat.c: Ditto.
5881 * ppc-linux-tdep.c: Ditto.
5882 * printcmd.c: Ditto.
5883 * sol-thread.c: Ditto.
5884 * solib-frv.c: Ditto.
5886 * sparc64-tdep.c: Ditto.
5887 * spu-tdep.c: Ditto.
5888 * stabsread.c: Ditto.
5893 * python/py-block.c: Ditto.
5894 * python/py-symbol.c: Ditto.
5895 * python/py-symtab.c: Ditto.
5896 * python/py-value.c: Ditto.
5897 * tui/tui-win.c: Ditto.
5899 2011-02-25 Michael Snyder <msnyder@vmware.com>
5901 * inferior.c (print_inferior): Accept a string instead of an int
5902 for requested_inferiors, and use get_number_or_range to parse it.
5903 (info_inferiors_command): Pass args string to print_inferior.
5904 (initialize_inferiors): Change help string for info inferiors.
5905 * inferior.h (print_inferior): Export prototype change.
5907 2011-02-25 Tom Tromey <tromey@redhat.com>
5909 * common/ax.def (invalid2): Set to 0x31.
5911 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5913 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
5915 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
5917 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
5919 2011-02-24 Michael Snyder <msnyder@vmware.com>
5921 * Makefile.in (clean): Make clean should remove generated files
5922 observer.h and observer.inc.
5924 2011-02-24 Joel Brobecker <brobecker@adacore.com>
5926 Revert the following patch (not approved yet):
5927 2011-02-21 Hui Zhu <teawater@gmail.com>
5928 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5929 * ax-gdb.c (gen_printf_expr_callback): New function.
5930 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5931 * ax-general.c (ax_memcpy): New function.
5932 (ax_print): Handle "printf".
5934 * ax.h (ax_memcpy): Forward declare.
5935 * common/ax.def (invalid2): Removed.
5936 (printf): New entry.
5937 * printcmd.c (printcmd.h): New include.
5938 (string_printf): New function.
5939 (ui_printf): Removed.
5940 (printf_command): Remove static. Call string_printf.
5941 (eval_command): Call string_printf.
5942 * printcmd.h: New file.
5943 * tracepoint.c (validate_actionline,
5944 encode_actions_1): handle printf_command.
5946 2011-02-23 Tom Tromey <tromey@redhat.com>
5948 * ax-general.c (ax_pick): Add missing newline.
5950 2011-02-23 Michael Snyder <msnyder@vmware.com>
5952 * breakpoint.c (breakpoint_1): Change first argument from an int
5953 to a char pointer, so that the function now accepts a list of
5954 breakpoints rather than just one. Use new function
5955 'number_is_in_list' to implement.
5956 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5957 (watchpoints_info): Ditto.
5958 (tracepoints_info): Ditto.
5959 (maintenance_info_breakpoints): Ditto.
5960 (_initialize_breakpoint): Update help strings to reflect the fact
5961 that these functions can now take more than one argument.
5962 * cli/cli-utils.c (number_is_in_list): New function.
5963 * cli/cli-utils.h (number_is_in_list): Export.
5965 2011-02-23 Michael Snyder <msnyder@vmware.com>
5967 * memattr.c (mem_enable_command): Use get_number_or_range.
5968 (mem_disable_command): Ditto.
5969 (mem_delete_command): Ditto.
5970 (_initialize_mem): Tweak usage message to reflect multiple
5973 2011-02-22 Doug Evans <dje@google.com>
5975 Add gdb.lookup_global_symbol python function.
5977 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5978 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5979 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5981 2011-02-22 Tom Tromey <tromey@redhat.com>
5983 * language.c (language_class_name_from_physname): Rename
5984 'curr_language' argument to 'lang'; use in body.
5986 2011-02-22 Michael Snyder <msnyder@vmware.com>
5988 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5990 2011-02-22 Pedro Alves <pedro@codesourcery.com>
5992 * frame-unwind.h: Fix comment to mention the this frame, not the
5995 2011-02-22 Tom Tromey <tromey@redhat.com>
5997 * symfile.c (auto_solib_limit): Remove.
5998 * symfile.h (auto_solib_limit): Remove.
6000 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6002 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6004 2011-02-21 Michael Snyder <msnyder@vmware.com>
6006 * gdbthread.h (print_thread_info): Change prototype.
6007 * thread.c (print_thread_info): Accept char* instead of int for
6008 requested_threads argument. Use new function number_is_in_list
6009 to determine which threads to list.
6010 (info_threads_command): Pass char* to print_thread_info.
6011 * cli/cli-utils.c (number_is_in_list): New function.
6012 * cli/cli-utils.h (number_is_in_list): Export.
6013 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6015 (print_one_inferior): Ditto.
6016 (mi_cmd_list_thread_groups): Ditto.
6018 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6020 * common/Makefile.in (CFLAGS): New.
6021 (COMPILE): Add $(CFLAGS).
6023 2011-02-21 Tom Tromey <tromey@redhat.com>
6025 * breakpoint.c (catch_syscall_command_1): Fix typo.
6027 2011-02-21 Tom Tromey <tromey@redhat.com>
6029 * reverse.c: Include cli-utils.h.
6030 * printcmd.c: Include cli-utils.h.
6031 (string_printf): Use skip_spaces.
6032 * cli/cli-utils.h: New file.
6033 * cli/cli-utils.c: New file.
6034 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6035 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6036 * breakpoint.h (get_number, get_number_or_range): Move to
6038 * breakpoint.c: Include cli-utils.h.
6039 (get_number_trailer, get_number, get_number_or_range)
6040 (ep_skip_leading_whitespace): Move to cli-utils.c.
6041 (create_breakpoint_sal, find_condition_and_thread)
6042 (decode_static_tracepoint_spec, watch_command_1)
6043 (watch_maybe_just_location, ep_parse_optional_if_clause)
6044 (catch_fork_command_1, catch_exec_command_1)
6045 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6046 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6047 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6048 (HFILES_NO_SRCDIR): Add cli-utils.h.
6049 (cli-utils.o): New target.
6051 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6053 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6054 before calling discard_all_inferiors.
6056 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6058 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6059 (struct builtin_opencl_type): Remove.
6060 (builtin_opencl_type): Change return type to "struct type **".
6061 (lookup_opencl_vector_type): Update caller.
6062 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6063 (build_opencl_types): Install plain array of "struct type *"
6064 instead of "struct builtin_opencl_type".
6066 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6067 Ulrich Weigand <uweigand@de.ibm.com>
6069 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6070 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6071 (struct arm_linux_hwbp_cap): New type.
6072 (arm_linux_get_hwbp_cap): New function.
6073 (arm_linux_get_hw_breakpoint_count): Likewise.
6074 (arm_linux_get_hw_watchpoint_count): Likewise.
6075 (arm_linux_can_use_hw_breakpoint): Likewise.
6076 (arm_hwbp_type): New type.
6077 (arm_hwbp_control_t): Likewise.
6078 (struct arm_linux_hw_breakpoint): Likewise.
6079 (struct arm_linux_thread_points): Likewise.
6080 (arm_threads): New global variable.
6081 (arm_linux_find_breakpoints_by_tid): New function.
6082 (arm_hwbp_control_initialize): Likewise.
6083 (arm_hwbp_control_is_enabled): Likewise.
6084 (arm_hwbp_control_disable): Likewise.
6085 (arm_linux_hw_breakpoint_initialize): Likewise.
6086 (arm_linux_get_hwbp_type): Likewise.
6087 (arm_linux_hw_watchpoint_initialize): Likewise.
6088 (arm_linux_hw_breakpoint_equal): Likewise.
6089 (arm_linux_insert_hw_breakpoint1): Likewise.
6090 (arm_linux_remove_hw_breakpoint1): Likewise.
6091 (arm_linux_insert_hw_breakpoint): Likewise.
6092 (arm_linux_remove_hw_breakpoint): Likewise.
6093 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6094 (arm_linux_insert_watchpoint): Likewise.
6095 (arm_linux_remove_watchpoint): Likewise.
6096 (arm_linux_stopped_data_address): Likewise.
6097 (arm_linux_stopped_by_watchpoint): Likewise.
6098 (arm_linux_watchpoint_addr_within_range): Likewise.
6099 (arm_linux_new_thread): Likewise.
6100 (arm_linux_thread_exit): Likewise.
6101 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6102 related target callbacks. Register arm_linux_new_thread and
6103 arm_linux_thread_exit.
6104 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6105 * arm-tdep.c (arm_pc_is_thumb): Make global.
6106 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6108 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6110 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6111 per-frame locations while within a function epilogue.
6113 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6115 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6116 to GNU coding standards.
6118 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6120 Allow use of mingw native on Windows 95 OS.
6121 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6122 (ser_windows_close): Only call CancelIo if function exists.
6123 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6124 to check for existence of CancelIo function in kernel32 DLL.
6126 2011-02-21 Hui Zhu <teawater@gmail.com>
6128 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6129 * ax-gdb.c (gen_printf_expr_callback): New function.
6130 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6131 * ax-general.c (ax_memcpy): New function.
6132 (ax_print): Handle "printf".
6134 * ax.h (ax_memcpy): Forward declare.
6135 * common/ax.def (invalid2): Removed.
6136 (printf): New entry.
6137 * printcmd.c (printcmd.h): New include.
6138 (string_printf): New function.
6139 (ui_printf): Removed.
6140 (printf_command): Remove static. Call string_printf.
6141 (eval_command): Call string_printf.
6142 * printcmd.h: New file.
6143 * tracepoint.c (validate_actionline,
6144 encode_actions_1): handle printf_command.
6146 2011-02-19 Michael Snyder <msnyder@vmware.com>
6148 * reverse.c (delete_one_bookmark): Argument is now bookmark
6149 id rather than pointer to bookmark struct.
6150 (delete_bookmark_command): Use get_number_or_range.
6151 (goto_bookmark_command): Parse with get_number instead of strtoul.
6152 (bookmark_1): New function. Print info for one bookmark.
6153 (bookmarks_info): Use get_number_or_range and bookmark_1.
6155 2011-02-18 Michael Snyder <msnyder@vmware.com>
6157 * thread.c (info_threads_command): Re-implement using
6158 get_number_or_range.
6159 (thread_apply_command): Ditto.
6161 2011-02-18 Tom Tromey <tromey@redhat.com>
6163 * common/ax.def: New file.
6164 * ax.h (enum agent_op): Use ax.def.
6165 * ax-general.c (aop_map): Use ax.def.
6167 2011-02-18 Tom Tromey <tromey@redhat.com>
6169 * ax-general.c (aop_map): Add pick and rot.
6170 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6171 <DW_OP_rot>: Implement.
6172 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6174 * ax-general.c (ax_pick): New function.
6176 2011-02-18 Tom Tromey <tromey@redhat.com>
6178 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6180 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6181 Tom Tromey <tromey@redhat.com>
6183 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6184 make_symbol_overload_list_block with NULL BLOCK.
6185 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6187 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6189 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6190 * breakpoint.h (get_number_or_range): Declare.
6191 * printcmd.c (ALL_DISPLAYS): Declare.
6192 (delete_display): Reimplement taking a display pointer.
6193 (undisplay_command): Accept a range of displays to delete, using
6194 get_number_or_range.
6196 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6198 * c-valprint.c (c_val_print): Add embedded_offset to address
6199 for arrays of unspecified length.
6200 * p-valprint.c (pascal_val_print): Likewise.
6202 2011-02-18 Yao Qi <yao@codesourcery.com>
6204 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6205 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6206 (thumb_process_displaced_insn): New.
6207 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6208 call to arm_process_displaced_insn.
6209 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6211 2011-02-17 Tom Tromey <tromey@redhat.com>
6213 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6214 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6215 compile_dwarf_to_ax. No longer static. Call
6216 dwarf2_compile_cfa_to_ax.
6217 (locexpr_tracepoint_var_ref): Update.
6218 (loclist_tracepoint_var_ref): Update.
6219 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6220 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6221 argument; add 'gdbarch' and 'pc'.
6222 (dwarf2_compile_cfa_to_ax): New function.
6223 (dwarf2_frame_cache): Update.
6225 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6227 * ada-lang.c (ada_type_of_array): Fix the size of the array
6228 in the case of an unconstrained packed array.
6230 2011-02-17 Yao Qi <yao@codesourcery.com>
6232 * common/Makefile.in: Add more targets for make.
6234 2011-02-16 Tom Tromey <tromey@redhat.com>
6236 * dwarf2loc.c (unimplemented): Fix typo.
6238 2011-02-16 Tom Tromey <tromey@redhat.com>
6240 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6241 (compile_dwarf_to_ax) <default>: Use unimplemented.
6242 <DW_OP_deref>: Update.
6243 (disassemble_dwarf_expression): Update.
6244 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6245 (decode_locdesc): Update.
6246 * dwarf2expr.h (dwarf_stack_op_name): Update.
6248 2011-02-16 Tom Tromey <tromey@redhat.com>
6250 * ax.h (struct aop_map) <name>: Now const.
6252 2011-02-16 Tom Tromey <tromey@redhat.com>
6254 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6257 2011-02-16 Yao Qi <yao@codesourcery.com>
6259 * infrun.c (get_displaced_step_closure_by_addr): New.
6260 * inferior.h: Declare it.
6261 * arm-tdep.c: (arm_pc_is_thumb): Call
6262 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6265 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6266 Jan Kratochvil <jan.kratochvil@redhat.com>
6269 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6271 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6272 Jan Kratochvil <jan.kratochvil@redhat.com>
6274 * value.c (value_contents_copy_raw): Extend describing comment.
6275 Assert that the destination contents we're overwriting are wholly
6277 (value_contents_copy): Extend describing comment.
6279 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6280 Jan Kratochvil <jan.kratochvil@redhat.com>
6282 * value.c (value_available_contents_eq): Remove redundant local
6283 variables. Fix available contents comparision.
6284 * value.h (value_available_contents_eq): Extend describing
6287 2011-02-16 Yao Qi <yao@codesourcery.com>
6289 * thread.c (info_threads_command): Add missing i18n markup and remove
6292 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6294 * breakpoint.c (longjmp_names): New variable.
6295 (struct breakpoint_objfile_data): New type.
6296 (breakpoint_objfile_key): New variable.
6297 (msym_not_found): New variable.
6298 (msym_not_found_p): New predicate.
6299 (get_breakpoint_objfile_data): New function.
6300 (create_overlay_event_breakpoint): Check per-objfile cache for
6302 (create_longjmp_master_breakpoint): Likewise.
6303 (create_std_terminate_master_breakpoint): Likewise.
6304 (create_exception_master_breakpoint): Likewise.
6305 (_initialize_breakpoint): Register per-objfile data key.
6307 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6309 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6311 (create_longjmp_master_breakpoint): Loop over longjmp names.
6312 (create_std_terminate_master_breakpoint): Const-propagate parameter
6314 (update_breakpoints_after_exec): Adjust.
6315 (breakpoint_re_set): Adjust.
6317 2011-02-15 Michael Snyder <msnyder@vmware.com>
6319 * thread.c (info_threads_command): Process arg as thread id,
6320 or list of thread ids.
6321 (thread_find_command): New command.
6322 (_initialize_thread): Document argument for info threads.
6323 Document 'thread find' command.
6324 * NEWS: Document new command "thread find".
6326 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6328 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6329 * aclocal.m4: Regenerated with aclocal-1.11.1.
6330 * common/configure: Regenerate with autoconf-2.64.
6332 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6334 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6335 bool data type to a size of one byte.
6337 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6338 Jan Kratochvil <jan.kratochvil@redhat.com>
6340 * target.c (memory_xfer_live_readonly_partial): Document where to
6341 look for interface description.
6343 2011-02-15 Yao Qi <yao@codesourcery.com>
6346 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6347 order to store PC value on stack instead of text section.
6349 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6351 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6352 the EFP register set size.
6353 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6354 data from the VMX register.
6355 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6356 and write data from/to the VMX register.
6358 2011-02-14 Michael Snyder <msnyder@vmware.com>
6360 * command.h (enum command_class): New class 'no_set_class', for
6361 "show" commands without a corresponding "set" command.
6362 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6363 * copying.c (_initialize_copying): Ditto for "show copying" and
6365 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6367 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6368 which there is no corresponding "set" command (eg. "show copying").
6370 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6371 Jan Kratochvil <jan.kratochvil@redhat.com>
6373 * exec.c (section_table_available_memory): Change `len' parameter
6375 * exec.h (section_table_available_memory): Ditto.
6376 * value.h (read_value_memory): Rename the `offset' parameter to
6379 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6380 Jan Kratochvil <jan.kratochvil@redhat.com>
6382 * memrange.c (compare_mem_ranges): Mention sort order in
6384 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6385 * tracepoint.c (traceframe_available_memory): Extend comment to
6386 mention what happens to RESULT when the target does not support
6389 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6390 Jan Kratochvil <jan.kratochvil@redhat.com>
6392 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6395 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6397 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6398 No longer handle NULL values.
6400 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6402 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6403 * value.c: Include "exceptions.h".
6404 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6406 * cp-abi.c: Include gdb_assert.h.
6407 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6408 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6410 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6411 parameters. No longer returns -1 on error.
6412 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6414 * cp-valprint.c: Include exceptions.h.
6415 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6416 the baseclass_offset. Handle unavailable base classes. Use
6417 val_print_invalid_address.
6418 * p-valprint.c: Include exceptions.h.
6419 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6420 when fetching the baseclass_offset. No longer expect
6421 baseclass_offset returning -1. Handle unavailable base classes.
6422 Use val_print_invalid_address.
6423 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6424 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6425 `embedded_offset' and `val' parameters. Adjust.
6426 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6427 parameter, and change its type to gdb_byte pointer. Add
6428 `embedded_offset' and `val' parameters. Adjust. No longer expect
6429 baseclass_offset returning -1.
6430 (value_dynamic_cast): Use value_contents_for_printing rather than
6431 value_contents. Adjust.
6432 (search_struct_field): No longer expect baseclass_offset returning
6434 (search_struct_method): If reading memory from the target is
6435 necessary, wrap it in a new value to pass to baseclass_offset. No
6436 longer expect baseclass_offset returning -1.
6437 (find_method_list): No longer expect baseclass_offset returning
6438 -1. Use value_contents_for_printing rather than value_contents.
6439 * valprint.c (val_print_invalid_address): New function.
6440 * valprint.h (val_print_invalid_address): Declare.
6441 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6442 and `val' parameters. No longer expect baseclass_offset returning
6444 * gnu-v2-abi.c: Include "exceptions.h".
6445 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6446 parameters. Handle unavailable memory. Recurse through
6447 gnuv2_baseclass_offset directly, rather than through
6448 baseclass_offset. No longer returns -1 on not found, instead
6450 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6451 `val' parameters. Adjust.
6453 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6455 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6456 almost but not quite adjacent.
6458 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6460 * value.h (value_entirely_available): Declare.
6461 * value.c (value_entirely_available): New function.
6462 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6463 real type if the pointer is unavailable.
6465 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6467 * valops.c (value_repeat): Use read_value_memory instead of
6470 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6472 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6473 * value.c (value_contents_copy_raw, value_contents_copy): New
6475 (value_primitive_field): Use value_contents_copy_raw instead of
6477 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6479 (value_array, value_slice): Ditto.
6480 * valarith.c (value_subscripted_rvalue): Use
6481 value_contents_copy_raw instead of memcpy.
6483 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6485 <unavailable> references.
6487 * valops.c (get_value_at): Use value_from_contents_and_address,
6488 avoiding read_memory.
6490 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6492 * c-valprint.c (c_val_print): Print a string with unavailable
6493 contents as an array.
6495 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6497 * value.h (unpack_bits_as_long): Delete declaration.
6498 (unpack_value_bits_as_long): Declare.
6499 (unpack_value_field_as_long): Declare.
6500 (value_field_bitfield): Declare.
6501 * value.c (unpack_bits_as_long): Rename to...
6502 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6503 value parameters. Return the extracted result in a new output
6504 parameter. If the value contents are unavailable, return false,
6505 otherwise return true.
6506 (unpack_value_bits_as_long): New.
6507 (unpack_field_as_long): Rename to...
6508 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6509 Add embedded_offset and value parameters. Return the extracted
6510 result in a new output parameter. If the value contents are
6511 unavailable, return false, otherwise return true.
6512 (unpack_value_field_as_long): New.
6513 (unpack_field_as_long_1): New.
6514 (unpack_field_as_long): Reimplement as wrapper around
6515 unpack_value_field_as_long_1.
6516 (value_field_bitfield): New function.
6517 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6518 unpack_value_bits_as_long. Mark the value as unavailable, if it
6520 * jv-valprint.c (java_print_value_fields): Use
6521 value_field_bitfield.
6522 * p-valprint.c (pascal_object_print_value_fields): Use
6523 value_field_bitfield.
6524 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6526 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6528 * value.c (get_internalvar_integer): Also return the int value of
6529 TYPE_CODE_INT INTERNALVAR_VALUE values.
6530 (set_internalvar): Don't special case TYPE_CODE_INT.
6532 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6534 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6535 INTERNALVAR_POINTER.
6537 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6538 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6539 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6541 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6543 * value.h (value_available_contents_eq): Declare.
6544 * value.c (find_first_range_overlap): New function.
6545 (value_available_contents_eq): New function.
6546 * valprint.c (val_print_array_elements): Use
6547 value_available_contents_eq.
6548 * ada-valprint.c (val_print_packed_array_elements): Use
6549 value_available_contents_eq.
6550 * jv-valprint.c (java_value_print): Use
6551 value_available_contents_eq.
6553 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6555 * target.c (target_read_live_memory): New function.
6556 (memory_xfer_live_readonly_partial): New.
6557 (memory_xfer_partial): If reading from a traceframe, fallback to
6558 reading unavailable read-only memory from read-only regions of
6560 * tracepoint.c (disconnect_tracing): Adjust.
6561 (set_current_traceframe): New, factored out from
6562 set_traceframe_number.
6563 (set_traceframe_number): Reimplement to only change the traceframe
6564 number on the GDB side.
6565 (do_restore_current_traceframe_cleanup): Adjust.
6566 (make_cleanup_restore_traceframe_number): New.
6567 (cur_traceframe_number): New global.
6568 (tfile_open): Set cur_traceframe_number to no traceframe.
6569 (set_tfile_traceframe): New function.
6570 (tfile_trace_find): If looking up a traceframe using any method
6571 other than by number, make sure the current tfile traceframe
6572 matches gdb's current traceframe. Update the current tfile
6573 traceframe if the lookup succeeded.
6574 (tfile_fetch_registers, tfile_xfer_partial)
6575 (tfile_get_trace_state_variable_value): Make sure the remote
6576 traceframe matches gdb's current traceframe.
6577 * remote.c (remote_traceframe_number): New global.
6578 (remote_open_1): Set it to -1.
6579 (set_remote_traceframe): New function.
6580 (remote_fetch_registers, remote_store_registers)
6581 (remote_xfer_memory, remote_xfer_partial)
6582 (remote_get_trace_state_variable_value): Make sure the remote
6583 traceframe matches gdb's current traceframe.
6584 (remote_trace_find): If looking up a traceframe using any method
6585 other than by number, make sure the current remote traceframe
6586 matches gdb's current traceframe. Update the current remote
6587 traceframe if the lookup succeeded.
6588 * infrun.c (fetch_inferior_event): Adjust.
6589 * tracepoint.h (set_current_traceframe): Declare.
6590 (get_traceframe_number, set_traceframe_number): Add describing
6593 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6595 Mark pieces of values as unavailable if the corresponding memory
6598 * valops.c: Include tracepoint.h.
6599 (value_fetch_lazy): Use read_value_memory.
6600 (read_value_memory): New.
6601 * value.h (read_value_memory): Declare.
6602 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6603 * exec.c (section_table_available_memory): New function.
6604 * exec.h (section_table_available_memory): Declare.
6606 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6608 * Makefile.in (SFILES): Add memrange.c.
6609 (HFILES_NO_SRCDIR): Add memrange.h.
6610 (COMMON_OBS): Add memrange.o.
6611 * memrange.c: New file.
6612 * memrange.h: New file.
6613 * tracepoint.c: Include memrange.h.
6614 (struct mem_range): Delete.
6615 (mem_range_s): Delete.
6616 (traceframe_available_memory): New function.
6617 * tracepoint.h (traceframe_available_memory): Declare.
6619 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6621 * target.h (struct traceframe_info): Forward declare.
6622 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6623 (struct target_ops) <to_traceframe_info>: New field.
6624 (target_traceframe_info): New.
6625 * target.c (update_current_target): Inherit and default
6627 * remote.c (PACKET_qXfer_traceframe_info): New.
6628 (remote_protocol_features): Register qXfer:traceframe-info:read.
6629 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6630 (remote_traceframe_info): New.
6631 (init_remote_ops): Install it.
6632 (_initialize_remote): Install "set/show remote traceframe-info"
6634 * tracepoint.h (parse_traceframe_info): Declare.
6635 * tracepoint.c (struct mem_range): New.
6636 (mem_range_s): New typedef.
6637 (struct traceframe_info): New.
6638 (traceframe_info): New global.
6639 (free_traceframe_info): New function.
6640 (clear_traceframe_info): New function.
6641 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6643 (build_traceframe_info): New function.
6644 (tfile_traceframe_info): New function.
6645 (init_tfile_ops): Install tfile_traceframe_info.
6646 (traceframe_info_start_memory, free_result): New functions.
6647 (memory_attributes, traceframe_info_elements): New globals.
6648 (parse_traceframe_info, get_traceframe_info): New functions.
6649 * features/traceframe-info.dtd: New file.
6650 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6652 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6654 Base support for <unavailable> value contents.
6656 * value.h (value_bytes_available): Declare.
6657 (mark_value_bytes_unavailable): Declare.
6658 * value.c (struct range): New struct.
6659 (range_s): New typedef.
6660 (ranges_overlap): New function.
6661 (range_lessthan): New function.
6662 (ranges_contain_p): New function.
6663 (struct value) <unavailable>: New field.
6664 (value_bytes_available): New function.
6665 (mark_value_bytes_unavailable): New function.
6666 (require_not_optimized_out): Constify parameter.
6667 (require_available): New function.
6668 (value_contents_all, value_contents): Require all bytes be
6670 (value_free): Free `unavailable'.
6671 (value_copy): Copy `unavailable'.
6672 * valprint.h (val_print_unavailable): Declare.
6673 * valprint.c (valprint_check_validity): Rename `offset' parameter
6674 to `embedded_offset'. If printing a scalar, check whether the
6675 value chunk is available.
6676 (val_print_unavailable): New.
6677 (val_print_scalar_formatted): Check whether the value is
6679 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
6680 pretty-printing unavailable values.
6682 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6684 Fix const/volatile qualifiers of C++ types, PR c++/12328.
6685 * c-typeprint.c (c_type_print_args): Update the function comment. New
6686 variable param_type, initialize it. Remove const/volatile qualifiers
6687 for language_cplus and !show_artificial. Use param_type.
6689 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6691 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6692 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6693 * symtab.h (struct symtab) <next>: Comment extension.
6695 2011-02-12 Yao Qi <yao@codesourcery.com>
6697 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6699 2011-02-11 Yao Qi <yao@codesourcery.com>
6701 * common/Makefile.in: Add copyright header.
6703 2011-02-11 Pedro Alves <pedro@codesourcery.com>
6705 * infrun.c (proceed): Move switching out and in of tfind mode from
6707 (fetch_inferior_event): ... to here.
6709 2011-02-11 Yao Qi <yao@codesourcery.com>
6711 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6713 * configure.ac: Add common to sub dir.
6714 * configure: Regenerate.
6716 2011-02-11 Yao Qi <yao@codesourcery.com>
6720 * common/Makefile.in: New.
6721 * common/configure.ac: New.
6722 * common/aclocal.m4: New.
6723 * common/configure: Generate.
6725 2011-02-10 Pedro Alves <pedro@codesourcery.com>
6727 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6728 side of the parenthesis.
6731 2010-07-13 Jakub Jelinek <jakub@redhat.com>
6732 * vec.h (VEC_block_remove): Fix comment.
6734 2011-02-08 Michael Snyder <msnyder@vmware.com>
6736 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6738 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6740 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6741 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6744 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6747 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6749 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6750 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6752 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6754 * dwarf2read.c (read_subroutine_type): Set special calling
6755 convention flag for functions compiled by IBM XL C for OpenCL.
6756 * ppc-sysv-tdep.c: Include "dwarf2.h"
6757 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6759 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6760 IBM OpenCL vector types calling convention.
6761 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6762 (ppc_sysv_abi_broken_return_value): Likewise.
6763 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6764 types calling convention.
6765 (ppc64_sysv_abi_return_value): Likewise.
6766 * spu-tdep.c: Include "dwarf2.h"
6767 (spu_return_value): Implement IBM OpenCL vector types calling
6770 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6772 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6773 correct ABI for AltiVec vector arguments.
6775 2011-02-07 Pedro Alves <pedro@codesourcery.com>
6777 * valprint.c (val_print): Extend comment.
6778 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6779 interface explanation to val_print.
6780 (ada_val_print_array): Adjust comment to current interface.
6781 (print_field_values): Adjust comment to current interface.
6782 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6783 explanation to val_print.
6784 * f-valprint.c (f_val_print): Ditto.
6785 * jv-valprint.c (java_val_print): Ditto.
6786 * m2-valprint.c (m2_val_print): Ditto.
6787 * p-valprint.c (pascal_val_print): Ditto.
6789 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6791 * breakpoint.c (parse_breakpoint_sals): Fix description.
6793 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
6794 Oguz Kayral <oguzkayral@gmail.com>
6796 * python/py-inferior.c (python_on_normal_stop): New function.
6797 (python_on_resume): New function.
6798 (python_inferior_exit): New function.
6799 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6800 inferior_exit observers.
6801 * python/py-evtregistry.c: New file.
6802 * python/py-threadevent.c : New file.
6803 * python/py-event.c: New file.
6804 * python/py-evts.c: New file.
6805 * python/py-continueevent.c: New file.
6806 * python/py-bpevent.c: New file.
6807 * python/py-signalevent.c: New file.
6808 * python/py-exetiedevent.c: New file.
6809 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6810 Move struct breakpoint_object from here...
6811 * python/python-internal.h: ... to here.
6812 * python/py-event.h: New file.
6813 * python/py-events.h: New file.
6814 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6815 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6816 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6817 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6818 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6819 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6820 Add build rules for all the above.
6822 2011-02-04 Tom Tromey <tromey@redhat.com>
6824 * dwarf2read.c (dwarf2_section_empty_p): New function.
6825 (dwarf2_read_section): Use dwarf2_section_empty_p.
6826 (dwarf2_section_size): New function.
6827 (dwarf2_get_section_info): Unconditionally read section.
6828 (dwarf2_read_index): Use dwarf2_section_empty_p.
6829 (partial_read_comp_unit_head): Use dwarf2_section_size.
6830 (dwarf2_symbol_mark_computed): Likewise.
6832 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6834 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6836 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6838 * mips-linux-tdep.c: Include xml-syscall.h.
6839 (mips_linux_get_syscall_number): New function.
6840 (mips_linux_init_abi): Add calls to
6841 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6842 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6843 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
6844 * syscalls/mips-n32-linux.xml: New file.
6845 * syscalls/mips-n64-linux.xml: New file.
6846 * syscalls/mips-o32-linux.xml: New file.
6848 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6850 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
6851 Complain about inverted range entries.
6852 (dwarf2_record_block_ranges): Likewise.
6854 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6857 * breakpoint.c (update_watchpoint): Fix name of the
6858 update_global_location_list function.
6859 (print_one_breakpoint): Fix typo.
6860 (_initialize_breakpoint): Remove extra space in hbreak help
6862 * breakpoint.h (struct bp_location) <length>: Fix field
6865 2011-02-04 Pedro Alves <pedro@codesourcery.com>
6867 * regcache.c (registers_changed_ptid): Don't explictly always
6868 clear `current_regcache'. Only clear current_thread_ptid and
6869 current_thread_arch when PTID matches. Only reinit the frame
6870 cache if PTID matches the current inferior_ptid. Move alloca(0)
6872 (registers_changed): ... here.
6874 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
6876 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
6877 starts with __stack_chk_guard as stack guard symbol.
6879 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
6881 * disasm.c (compare_lines): Handle the end of sequence markers
6882 within the line table to better support disassembling over
6883 compilation unit boundaries.
6885 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6887 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
6888 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
6889 implementation even if no symbols are available.
6890 (thumb_analyze_prologue): Update call to skip_prologue_function.
6891 (arm_analyze_prologue): Likewise.
6893 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6895 * arm-tdep.c: Include "observer.h".
6896 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
6897 (arm_exidx_data_key): New static variable.
6898 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
6899 (struct arm_exidx_data): Likewise.
6900 (arm_exidx_data_free): New function.
6901 (arm_compare_exidx_entries): Likewise.
6902 (arm_obj_section_from_vma): Likewise.
6903 (arm_exidx_new_objfile): Likewise.
6904 (arm_find_exidx_entry): Likewise.
6905 (arm_exidx_fill_cache): Likewise.
6906 (arm_exidx_unwind_sniffer): Likewise.
6907 (arm_exidx_unwind): New global variable.
6908 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
6909 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
6910 observer. Register arm_exidx_data_key as objfile data.
6912 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
6914 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
6915 due to accessing uninitialized variable. Fix indentation.
6917 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6919 * c-valprint.c (c_value_print): When doing virtual base pointer
6920 adjustment, create a new value with adjusted contents rather than
6921 changing the contents of the value being printed (and getting it
6924 2011-02-02 Pedro Alves <pedro@codesourcery.com>
6926 * xml-support.c (xml_find_attribute): New.
6927 (xinclude_start_include): Use it.
6928 * xml-support.h (xml_find_attribute): Declare.
6929 * memory-map.c (memory_map_start_memory)
6930 (memory_map_start_property): Use xml_find_attribute.
6931 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6933 * remote.c (start_thread): Use xml_find_attribute.
6934 * solib-target.c (library_list_start_segment)
6935 (library_list_start_section, library_list_start_library)
6936 (library_list_start_list): Use xml_find_attribute.
6937 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6938 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6939 (tdesc_start_field): Use xml_find_attribute.
6941 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
6943 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6944 (BUILD_OCL_VTYPES): Update.
6946 2011-02-02 Joel Brobecker <brobecker@adacore.com>
6948 * configure.ac: Work around non-GNU sed limitation when computing
6949 python version number.
6950 * configure: Regenerate.
6952 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6954 Fix debug printing of TYPE_INSTANCE.
6955 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6956 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6958 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6960 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6961 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6962 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6963 * ada-operator.inc: Rename the file to ...
6964 * ada-operator.def: ... here, wrap all the entries by macro OP.
6965 * expprint.c (op_name_standard): Remove all the entries. Include
6966 "std-operator.def" instead.
6967 * expression.h (enum exp_opcode): Include "std-operator.def" and
6968 "ada-operator.def". Move all the entries ...
6969 * std-operator.def: ... here, wrap all the entries by macro OP.
6971 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6973 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6974 * breakpoint.c (remove_jit_event_breakpoints): New function.
6975 * jit.c (jit_descriptor_addr): Delete.
6976 (registering_code): Delete.
6977 (clear_int): Delete.
6978 (jit_inferior_data): New variable.
6979 (struct jit_inferior_data): New type.
6980 (get_jit_inferior_data): New function.
6981 (jit_inferior_data_cleanup): New function.
6982 (jit_read_descriptor): Adjust.
6983 (jit_register_code): Adjust.
6984 (jit_breakpoint_re_set_internal): New function; move code here ...
6985 (jit_inferior_init): ... from here.
6986 (jit_breakpoint_re_set): Adjust.
6987 (jit_reset_inferior_data_and_breakpoints): New function.
6988 (jit_inferior_created_observer): Adjust.
6989 (jit_inferior_exit_hook): Adjust.
6990 (jit_executable_changed_observer): New function.
6991 (jit_event_handler): Adjust.
6992 (_initialize_jit): Adjust.
6994 2011-01-31 Michael Snyder <msnyder@vmware.com>
6996 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
6999 2011-01-31 Tom Tromey <tromey@redhat.com>
7002 * python/python.c (execute_gdb_command): Call
7003 prevent_dont_repeat.
7004 * top.c (suppress_dont_repeat): New global.
7005 (dont_repeat): Use it.
7006 (prevent_dont_repeat): New function.
7007 * command.h (prevent_dont_repeat): Declare.
7009 2011-01-31 Tom Tromey <tromey@redhat.com>
7011 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7012 * python/py-breakpoint.c (bppy_set_silent): Use
7013 breakpoint_set_silent.
7014 (bppy_set_thread): Use breakpoint_set_thread.
7015 (bppy_set_task): Use breakpoint_set_task.
7016 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7017 (breakpoint_set_task): Declare.
7018 (make_breakpoint_silent): Remove.
7019 * breakpoint.c (breakpoint_set_silent): New function.
7020 (breakpoint_set_thread): Likewise.
7021 (breakpoint_set_task): Likewise.
7022 (make_breakpoint_silent): Remove.
7024 2011-01-31 Tom Tromey <tromey@redhat.com>
7026 * breakpoint.h (user_breakpoint_p): Declare.
7027 * breakpoint.c (user_breakpoint_p): New function.
7028 (breakpoint_1): Use it.
7029 (save_breakpoints): Likewise.
7031 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7033 * configure.ac: Add handling of Python distribution on Windows.
7034 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7035 sysconfig variables are not defined, then do not use them.
7036 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7037 instead. On Windows, return all paths using forward-slashes
7038 rather than backslashes.
7040 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7042 * configure.ac: Remove fallback behavior for building
7043 against Python. Remove tweaking of Python include path.
7044 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7045 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7046 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7047 Always restore CPPFLAGS and LIBS after linking test.
7048 * configure: Regenerated.
7049 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7050 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7051 * python/python-internal.h: Adjust includes of Python .h files.
7053 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7055 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7058 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7060 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7063 2011-01-31 Yao Qi <yao@codesourcery.com>
7065 * arm-linux-nat.c: Update calls to regcache_register_status
7066 instead of regcache_valid_p.
7067 * aix-thread.c: Likewise.
7068 * i386gnu-nat.c: Likewise.
7070 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7073 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7074 touching TYPE_FIELD_ARTIFICIAL.
7076 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7078 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7081 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7083 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7084 selected, don't try iterating over the traceframe's blocks.
7085 (tfile_has_stack): If there's no traceframe selected, then there's
7087 (tfile_has_registers): If there's no traceframe selected, then
7088 there's no registers.
7090 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7092 * target.c (memory_xfer_partial): No need to restore shadows if we
7093 haven't read anything.
7095 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7097 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7098 and val_print_scalar_formatted.
7100 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7102 * tracepoint.c (tfile_read): New.
7103 (tfile_open): Use it.
7104 (tfile_get_traceframe_address): Use it.
7105 (tfile_trace_find): Use it.
7106 (walk_blocks_callback_func): New typedef.
7107 (match_blocktype): New function.
7108 (traceframe_walk_blocks): New function.
7109 (traceframe_find_block_type): New function.
7110 (tfile_fetch_registers, tfile_xfer_partial)
7111 (tfile_get_trace_state_variable_value): Use
7112 traceframe_find_block_type and tfile_read.
7114 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7116 * remote-mips.c: Add internationalization mark ups. Remove
7117 trailing \n from already marked up strings.
7119 2011-01-26 Tom Tromey <tromey@redhat.com>
7121 * python/py-prettyprint.c (print_string_repr): Clear
7122 'addressprint' option when calling val_print_string.
7123 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7124 option when calling val_print_string.
7126 2011-01-26 Tom Tromey <tromey@redhat.com>
7128 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7130 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7132 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7133 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7134 (gdb_py_long_as_ulongest): New defines.
7135 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7136 (gdb_py_int_as_long): Declare.
7137 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7138 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7139 (valpy_long): Add comment.
7140 * python/py-utils.c (get_addr_from_python): Use
7141 gdb_py_long_as_ulongest. Handle overflow properly.
7142 (gdb_py_object_from_longest): New function.
7143 (gdb_py_object_from_ulongest): Likewise.
7144 (gdb_py_int_as_long): Likewise.
7145 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7146 * python/py-symtab.c (salpy_get_pc): Use
7147 gdb_py_long_from_ulongest.
7148 (salpy_get_line): Use PyInt_FromLong.
7149 * python/py-param.c (set_parameter_value): Use
7151 * python/py-lazy-string.c (stpy_get_address): Use
7152 gdb_py_long_from_ulongest.
7153 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7154 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7155 * python/py-breakpoint.c (bppy_set_thread): Use
7157 (bppy_set_task): Likewise.
7158 (bppy_set_ignore_count): Likewise.
7159 (bppy_set_hit_count): Likewise.
7160 * python/py-block.c (blpy_get_start): Use
7161 gdb_py_object_from_ulongest.
7162 (blpy_get_end): Likewise.
7163 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7165 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7168 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7169 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7170 equality test for objfile, initialize addr_low if needed.
7172 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7174 * tui/tui-regs.c (tui_register_format): Remove dead code.
7176 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7178 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7179 instead of print_scalar_formatted.
7180 (print_scalar_formatted): Don't handle 's' format strings here,
7181 and add an assertion that we never see such format here.
7182 * valprint.h (val_print_scalar_formatted): Declare.
7183 * valprint.c (val_print_scalar_formatted): New.
7184 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7185 instead of print_scalar_formatted.
7186 * jv-valprint.c (java_val_print): Ditto.
7187 * p-valprint.c (pascal_val_print): Ditto.
7188 * ada-valprint.c (ada_val_print_1): Ditto.
7189 * f-valprint.c (f_val_print): Ditto.
7190 * infcmd.c (registers_info): Ditto.
7191 * m2-valprint.c (m2_val_print): Ditto.
7193 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7195 * m2-valprint.c (print_unbounded_array): Pass
7196 value_contents_for_printing rather than value_contents, to
7197 m2_print_array_contents. Also pass in the value.
7199 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7201 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7202 (save_gdb_index_command): Switch to .gdb_index version 4.
7204 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7206 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7207 than frame_register, and always pass a valid value to val_print.
7209 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7211 Centralize printing "<optimized out>".
7213 * valprint.h (val_print_optimized_out): Declare.
7214 * cp-valprint.c (cp_print_value_fields): Use
7215 val_print_optimized_out.
7216 * jv-valprint.c (java_print_value_fields): Ditto.
7217 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7218 * printcmd.c (print_formatted): Ditto.
7219 * valprint.c (valprint_check_validity): Ditto.
7220 (value_check_printable): Ditto.
7221 (val_print_optimized_out): New.
7223 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7225 * infcmd.c (default_print_registers_info): Allocate values so to
7226 never pass a NULL value to val_print.
7228 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7230 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7231 boolean. Make sure to always pass a value that matches the
7232 contents buffer to callees. Preserve `address' for following
7234 * value.c (value_contents_for_printing_const): New.
7235 (value_address): Constify value argument.
7236 * value.h (value_contents_for_printing_const): Declare.
7237 (value_address): Constify value argument.
7239 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7241 * regcache.c (struct regcache_descr): Rename
7242 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7243 and sizeof_cooked_register_valid_p to
7244 sizeof_cooked_register_status.
7245 (init_regcache_descr): Adjust.
7246 (struct regcache): Rename register_valid_p field to
7248 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7249 (do_cooked_read): Adjust.
7250 (regcache_valid_p): Rename to ...
7251 (regcache_register_status): ... this. Adjust.
7252 (regcache_invalidate): Adjust.
7253 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7255 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7256 as unavailable, not valid.
7257 (regcache_dump): Adjust.
7258 * regcache.h (enum register_status): New.
7259 (regcache_register_status): Declare.
7260 (regcache_invalidate): Delete declaration.
7261 * corelow.c (get_core_registers): Adjust.
7262 * tracepoint.c (tfile_fetch_registers): Adjust.
7263 * trad-frame.c (REG_VALUE): Rename to ...
7264 (TF_REG_VALUE): ... this.
7265 (REG_UNKNOWN): Rename to ...
7266 (TF_REG_UNKNOWN): ... this.
7267 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7268 * mi/mi-main.c (register_changed_p): Adjust.
7270 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7272 * regcache.c (struct regcache_descr): Remove outdated comment.
7273 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7275 (regcache_xmalloc): Rename to ...
7276 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7277 Allocate the regcache type accordingly.
7278 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7279 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7280 cooked registers, not raw.
7281 (regcache_dup_no_passthrough): Delete.
7282 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7283 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7284 mention obsolete write_register_bytes.
7285 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7287 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7289 Stop remote_read_bytes from handling partial reads itself.
7291 * remote-fileio.c: Include target.h.
7292 (remote_fileio_write_bytes): Delete.
7293 (remote_fileio_func_open, remote_fileio_func_write)
7294 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7296 (remote_fileio_func_stat): Use target_read_memory and
7297 target_write_memory.
7298 (remote_fileio_func_gettimeofday): Use target_write_memory.
7299 (remote_fileio_func_system): Use target_read_memory.
7300 * remote.c (remote_write_bytes): Make it static.
7301 (remote_read_bytes): Don't handle partial reads here.
7302 * remote.h (remote_read_bytes): Delete declaration.
7304 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7306 Simplify XML parsing a bit.
7308 * xml-support.h (gdb_xml_parse_quick): Declare.
7309 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7310 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7312 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7313 gdb_xml_create_parser_and_cleanup_1.
7314 (gdb_xml_parse_quick): New.
7315 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7316 * osdata.c (osdata_parse): Ditto.
7317 * remote.c (remote_threads_info): Ditto.
7318 * solib-target.c (solib_target_parse_libraries): Ditto.
7319 * xml-syscall.c (syscall_parse_xml): Ditto.
7320 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7322 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7324 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7325 with remote-mips.o added to gdb_target_obs.
7326 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7328 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7330 * ada-valprint.c (val_print_packed_array_elements): Pass the
7331 correct struct value to val_print.
7332 (ada_val_print_1): Ditto.
7334 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7336 Don't lose embedded_offset in printing routines throughout.
7338 * valprint.h (val_print_array_elements): Change prototype.
7339 * valprint.c (val_print_array_elements): Add `embedded_offset'
7340 parameter, and adjust to pass it down to val_print, while passing
7341 `valaddr' or `address' unmodified. Take embedded_offset into
7342 account when checking repetitions.
7343 * c-valprint.c (c_val_print): Pass embedded_offset to
7344 val_print_array_elements instead of adjusting `valaddr' and
7346 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7347 embedded_offset to val_print_array_elements instead of adjusting
7349 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7350 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7351 val_print_array_elements and pascal_object_print_value_fields
7352 instead of adjusting `valaddr'.
7353 (pascal_object_print_value_fields): Add `offset' parameter, and
7355 (pascal_object_print_value): Add `offset' parameter, and adjust to
7357 (pascal_object_print_static_field): Use
7358 value_contents_for_printing/value_embedded_offset, rather than
7360 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7361 parameter, and adjust to use it. Use
7362 value_contents_for_printing/value_embedded_offset, rather than
7364 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7365 (ada_val_print_array): Add `offset' parameter, and adjust to use
7367 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7368 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7369 Instead work with offsets. Use
7370 value_contents_for_printing/value_embedded_offset, rather than
7371 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7372 and use value_from_pointer to extract a target pointer, rather
7373 than value_from_longest.
7374 (print_variant_part): Add `offset' parameter. Replace
7375 `outer_valaddr' parameter by a new `outer_offset' parameter.
7376 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7377 (ada_value_print): Use
7378 value_contents_for_printing/value_embedded_offset, rather than
7380 (print_record): Add `offset' parameter, and adjust to pass it
7382 (print_field_values): Add `offset' parameter. Replace
7383 `outer_valaddr' parameter by a new `outer_offset' parameter.
7384 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7385 Use value_contents_for_printing/value_embedded_offset, rather than
7387 * d-valprint.c (dynamic_array_type): Use
7388 value_contents_for_printing/value_embedded_offset, rather than
7390 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7391 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7392 (java_print_value_fields): Take `offset' into account. Don't
7393 re-adjust `valaddr'. Instead pass down adjusted offsets.
7394 (java_val_print): Take `embedded_offset' into account. Pass it to
7395 java_print_value_fields.
7396 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7397 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7398 down adjusted offsets.
7399 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7400 (f_val_print): Take `embedded_offset' into account.
7402 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7404 * inflow.c: Include "gdbcmd.h".
7405 (interactive_mode): New static global, moved here from top.c.
7406 (show_interactive_mode): New function, moved here from top.c.
7407 use gdb_has_a_terminal instead of input_from_terminal_p to
7408 determine the current mode.
7409 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7411 (_initialize_inflow): Add the "set/show interactive-mode"
7412 commands. Moved here from top.c, after having adjusted slightly
7414 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7416 (input_from_terminal_p): Remove handling of "interactive-mode"
7417 setting, moved to infow.c.
7418 (init_main): Remove creation of the "set/show interactive-mode"
7419 commands, moved to inflow.c.
7421 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7423 * NEWS: Add entry for native ia64-hpux support.
7425 2011-01-19 Tom Tromey <tromey@redhat.com>
7428 * thread.c (free_thread): Free 'name'.
7429 (print_thread_info): Emit thread name. Change CLI output.
7430 (thread_name_command): New function.
7431 (do_captured_thread_select): Emit newline.
7432 (_initialize_thread): Register 'thread name' command.
7433 * target.h (struct target_ops) <to_thread_name>: New field.
7434 (target_thread_name): New macro.
7435 * target.c (update_current_target): Handle to_thread_name.
7436 * python/py-infthread.c (thpy_get_name): New function.
7437 (thpy_set_name): Likewise.
7438 (thread_object_getset): Add "name".
7439 * linux-nat.c (linux_nat_thread_name): New function.
7440 (linux_nat_add_target): Set to_thread_name.
7441 * gdbthread.h (struct thread_info) <name>: New field.
7443 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7445 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7446 (ada_val_print_1): Likewise.
7448 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7450 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7451 upper limit address is not greater than the function end address
7452 when the upper limit could not be computed using the debugging
7455 2011-01-17 Tom Tromey <tromey@redhat.com>
7457 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7459 * utils.c: Include gdb_regex.h.
7460 (do_regfree_cleanup): New function.
7461 (make_regfree_cleanup): Likewise.
7462 (get_regcomp_error): Likewise.
7463 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7465 2011-01-17 Tom Tromey <tromey@redhat.com>
7467 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7470 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7472 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7473 for internal variables.
7474 (last_was_structop): New static variable.
7475 (COMPLETE): New token.
7476 (field_exp): New rule to group all '.' suffix handling.
7477 Add mark_struct_expression calls when approriate to be able
7478 to correctly find fields for completion.
7479 (yylex): Adapt to handle field completion and set INTVAR when
7482 2011-01-14 Yao Qi <yao@codesourcery.com>
7484 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7485 save_reggroup, restore_reggroup and all_reggroup.
7487 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7489 * ada-valprint. (ada_printchar): Use the correct type length
7490 in call to ada_emit_char.
7491 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7493 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7495 * solib-som.h (hpux_major_release): Declare variable here.
7496 * solib-som.c: Remove <sys/utsname.h> header.
7497 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7498 (hpux_major_release): Make global, change default value to
7499 DEFAULT_HPUX_MAJOR_RELEASE.
7500 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7501 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7502 Add "solib-som.h" header.
7503 (set_hpux_major_release): New function.
7504 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7506 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7508 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7510 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7512 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7513 new-line at end of warning message.
7514 (ia64_hpux_store_register): Remove trailing new-line at end of
7516 * ia64-hpux-tdep.c: Rephrase comment.
7517 * solib-ia64-hpux.c (struct dld_info): Change type of field
7518 dld_flags from "long long" to ULONGEST.
7520 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7522 * target.h (deprecated_child_ops): Delete declaration.
7523 * target.c (deprecated_child_ops): Delete definition.
7525 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7527 * Makefile.in (hpux-thread.o): Delete rule.
7528 * configure.ac: Don't check for HPUX DCE threads support.
7529 * configure, config.in: Regenerate.
7530 * hppa-hpux-nat.c (child_suppress_run): Delete.
7531 (hppa_hpux_child_can_run): Delete.
7532 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7533 * hpux-thread.c: Delete.
7535 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7537 * hpux-thread.c (hpux_pid_to_str): Delete.
7539 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7541 * ada-valprint.c (ada_emit_char): Remove strange code.
7542 Check that c is <= UCHAR_MAX before passing it to isascii.
7543 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7545 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7547 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7548 to the case where instream is stdin.
7550 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7552 * ia64-tdep.h (struct regcache): Forward declare.
7553 (struct ia64_infcall_ops): New struct type.
7554 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7556 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7557 Renames ia64_find_global_pointer.
7558 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7559 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7560 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7562 (ia64_infcall_ops): New static global constant.
7563 (ia64_gdbarch_init): Set tdep->infcall_ops.
7564 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7565 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7566 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7567 (ia64_hpux_dummy_code): New static global constant.
7568 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7569 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7570 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7572 (ia64_hpux_infcall_ops): New static global constant.
7573 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7574 for inferior function calls to work properly on ia64-hpux.
7576 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7578 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7579 * ia64-tdep.h (struct frame_info): forward declaration.
7580 (struct gdbarch_tdep): Add field size_of_register_frame.
7581 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7582 to determine the size of the register frame.
7583 (ia64_size_of_register_frame): New function.
7584 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7585 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7586 (IA64_HPUX_UREG_REASON): New macro.
7587 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7589 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7590 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7591 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7594 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7596 Add support for ia64-hpux.
7597 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7598 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7600 * configure.host: Add handling for ia64-hpux hosts. Add associated
7602 * configure.tgt: Add handling for ia64-hpux targets.
7603 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7604 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7605 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7607 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7609 [ttrace] Compute thread list immediately after attach.
7610 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7612 (inf_ttrace_attach): Use it.
7614 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7616 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7617 if we could not determine the frame's function address. Instead,
7618 use the frame's PC, and then continue.
7620 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7622 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7623 not already defined.
7625 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7627 * ia64-tdep.c (ia64_struct_type_p): New function.
7628 (ia64_extract_return_value): Handle integral values that are
7629 less than 8 bytes long.
7630 (ia64_push_dummy_call): Likewise.
7632 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7634 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7635 floatformat_ia64_ext.
7636 (floatformat_ia64_ext_big): New static const.
7637 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7639 2011-01-12 Tom Tromey <tromey@redhat.com>
7641 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7643 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7644 (mi_cmd_thread_list_ids): Likewise.
7645 (mi_cmd_data_list_changed_registers): Likewise.
7646 (mi_cmd_data_list_register_values): Likewise.
7647 (mi_cmd_data_write_register_values): Likewise.
7648 (mi_cmd_data_evaluate_expression): Likewise.
7649 (mi_cmd_data_read_memory): Likewise.
7650 (mi_cmd_data_read_memory_bytes): Likewise.
7651 (mi_cmd_data_write_memory): Likewise.
7652 (mi_cmd_enable_timings): Likewise.
7653 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7654 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
7655 (mi_cmd_var_delete): Likewise.
7656 (mi_cmd_var_set_format): Likewise.
7657 (mi_cmd_var_show_format): Likewise.
7658 (mi_cmd_var_info_num_children): Likewise.
7659 (mi_cmd_var_list_children): Likewise.
7660 (mi_cmd_var_info_type): Likewise.
7661 (mi_cmd_var_info_expression): Likewise.
7662 (mi_cmd_var_show_attributes): Likewise.
7663 (mi_cmd_var_assign): Likewise.
7664 (mi_cmd_var_update): Likewise.
7665 (mi_cmd_enable_pretty_printing): Likewise.
7666 (mi_cmd_var_set_update_range): Likewise.
7667 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
7669 (mi_cmd_target_file_put): Likewise.
7670 (mi_cmd_target_file_delete): Likewise.
7671 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
7673 (mi_cmd_stack_info_depth): Likewise.
7674 (mi_cmd_stack_list_locals): Likewise.
7675 (mi_cmd_stack_list_args): Likewise.
7676 (mi_cmd_stack_select_frame): Likewise.
7677 (mi_cmd_stack_select_frame): Likewise.
7678 (mi_cmd_stack_info_frame): Likewise.
7679 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
7681 (mi_cmd_file_list_exec_source_files): Likewise.
7682 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
7683 (mi_cmd_env_cd): Likewise.
7684 (mi_cmd_env_path): Likewise.
7685 (mi_cmd_env_dir): Likewise.
7686 (mi_cmd_inferior_tty_show): Likewise.
7687 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
7688 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
7689 (mi_cmd_break_watch): Likewise.
7691 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7693 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7694 (ppc_linux_insert_hw_breakpoint): Likewise.
7695 (ppc_linux_remove_hw_breakpoint): Likewise.
7696 (ppc_linux_insert_watchpoint): Likewise.
7698 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7699 Jan Kratochvil <jan.kratochvil@redhat.com>
7701 PR fortran/11104 and DWARF unbound arrays detection.
7702 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7703 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7704 unspecified upper bound.
7705 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7706 variables array_size_array, tmp_type and offset_item. New variable
7707 array. Remove call to f77_get_upperbound. New variables array_type
7708 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7709 the final call to deprecated_set_value_type.
7711 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7713 Make value allocations more lazy.
7714 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7715 instead of allocate_value and set_value_lazy when possible.
7716 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
7717 instead of allocate_value and set_value_lazy.
7718 * findvar.c (value_of_register_lazy): Likewise.
7719 (read_var_value): Remove V preallocation, call just check_typedef in
7720 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
7721 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7722 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7723 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7724 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7725 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7726 the end, remove set_value_lazy there.
7727 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7728 instead of allocate_value and set_value_lazy when possible.
7729 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7730 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7731 of allocate_value and set_value_lazy.
7732 (value_from_contents_and_address): Use allocate_value_lazy instead of
7733 allocate_value and set_value_lazy when possible.
7735 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7737 * disasm.c (dump_insns): Support dumping opcodes for MI.
7738 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7739 dumping of instruction opcodes.
7741 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
7743 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7746 2011-01-11 Tom Tromey <tromey@redhat.com>
7748 * thread.c (do_captured_thread_select): Emit newline before
7751 2011-01-11 Michael Snyder <msnyder@vmware.com>
7753 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7754 * score-tdep.c: Ditto.
7755 * score-tdep.h: Ditto.
7756 * ser-base.c: Ditto.
7757 * ser-go32.c: Ditto.
7760 * ser-mingw.c: Ditto.
7761 * ser-pipe.c: Ditto.
7763 * ser-unix.c: Ditto.
7764 * sh64-tdep.c: Ditto.
7765 * shnbsd-nat.c: Ditto.
7769 * solib-darwin.c: Ditto.
7770 * solib-frv.c: Ditto.
7772 * solib-irix.c: Ditto.
7773 * solib-osf.c: Ditto.
7774 * solib-pa64.c: Ditto.
7775 * solib-som.c: Ditto.
7776 * solib-spu.c: Ditto.
7777 * solib-sunos.c: Ditto.
7778 * solib-svr4.c: Ditto.
7780 * sol-thread.c: Ditto.
7784 * sparc64-linux-tdep.c: Ditto.
7785 * sparc64-tdep.c: Ditto.
7786 * sparc-linux-nat.c: Ditto.
7787 * sparc-linux-tdep.c: Ditto.
7788 * sparc-sol2-nat.c: Ditto.
7789 * sparc-sol2-tdep.c: Ditto.
7790 * sparc-tdep.c: Ditto.
7791 * sparc-tdep.h: Ditto.
7792 * spu-tdep.c: Ditto.
7793 * stabsread.c: Ditto.
7794 * stabsread.h: Ditto.
7802 * target-descriptions.c: Ditto.
7803 * target-descriptions.h: Ditto.
7805 * target-memory.c: Ditto.
7806 * terminal.h: Ditto.
7809 * tracepoint.c: Ditto.
7810 * tracepoint.h: Ditto.
7811 * trad-frame.h: Ditto.
7812 * typeprint.c: Ditto.
7814 2011-01-11 Michael Snyder <msnyder@vmware.com>
7816 * ui-file.c: Comment cleanup, mostly periods and spaces.
7821 * v850-tdep.c: Ditto.
7822 * valarith.c: Ditto.
7824 * valprint.c: Ditto.
7825 * valprint.h: Ditto.
7830 * vax-tdep.c: Ditto.
7834 * windows-nat.c: Ditto.
7835 * windows-tdep.c: Ditto.
7836 * xcoffread.c: Ditto.
7837 * xcoffsolib.c: Ditto.
7838 * xml-support.c: Ditto.
7839 * xstormy16-tdep.c: Ditto.
7840 * xtensa-tdep.c: Ditto.
7841 * xtensa-tdep.h: Ditto.
7843 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7845 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
7846 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
7848 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7849 Thiago Jung Bauermann <bauerman@br.ibm.com>
7851 Implement support for PowerPC BookE ranged watchpoints.
7853 (struct breakpoint_ops) <resources_needed>: New method.
7854 Initialize to NULL in all existing breakpoint_ops instances.
7855 (struct breakpoint) <exact>: New field.
7856 (target_exact_watchpoints): Declare external global.
7857 * breakpoint.c (target_exact_watchpoints): New global flag.
7858 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
7859 b->enable_state to bp_enabled before calling
7860 hw_watchpoint_used_count.
7861 (hw_watchpoint_used_count): Iterate over all bp_locations in a
7862 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
7864 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
7865 if the watchpoint is exact.
7866 (resources_needed_watchpoint): New function.
7867 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
7868 (watch_command_1): Set b->exact if the user asked for an exact
7869 watchpoint and one can be set.
7870 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
7871 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
7872 the user asks for an exact watchpoint and one can be set. Return
7873 number of needed debug registers to watch the expression.
7874 * gdbtypes.c (is_scalar_type): New function, based on
7875 valprint.c:scalar_type_p.
7876 (is_scalar_type_recursive): New function.
7877 * gdbtypes.h (is_scalar_type_recursive): Declare.
7878 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
7879 handle regions when ranged watchpoints are available.
7880 (create_watchpoint_request): New function.
7881 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
7882 create_watchpoint_request.
7883 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
7884 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
7885 `set powerpc' and `show powerpc' commands.
7886 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7887 Mention documentation comment in the target macro.
7888 (target_region_ok_for_hw_watchpoint): Document return value.
7890 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7892 * breakpoint.c (update_watchpoint): Decide on using a software or
7893 hardware watchpoint after the bp_locations are created.
7895 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7897 Convert hardware watchpoints to use breakpoint_ops.
7898 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
7899 <insert_location>: ... this. Return int instead of void.
7900 Accept pointer to struct bp_location instead of pointer to
7901 struct breakpoint. Adapt all implementations.
7902 (breakpoint_ops) <remove>: Rename to...
7903 <remove_location>: ... this. Accept pointer to struct bp_location
7904 instead of pointer to struct breakpoint. Adapt all implementations.
7905 * breakpoint.c (insert_catchpoint): Delete function.
7906 (insert_bp_location): Call the watchpoint or catchpoint's
7907 breakpoint_ops.insert method.
7908 (remove_breakpoint_1): Call the watchpoint or catchpoint's
7909 breakpoint_ops.remove method.
7910 (insert_watchpoint, remove_watchpoint): New functions.
7911 (watchpoint_breakpoint_ops): New structure.
7912 (watch_command_1): Initialize the OPS field.
7913 * inf-child.c (inf_child_insert_fork_catchpoint)
7914 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
7915 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
7916 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
7918 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
7919 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
7920 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
7921 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
7922 * target.c (update_current_target): Change default implementation of
7923 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7924 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7925 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7926 to_set_syscall_catchpoint to return_one.
7927 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7928 (debug_to_insert_exec_catchpoint): Report return value.
7929 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7930 (to_insert_exec_catchpoint): Change declaration to return int instead
7933 2011-01-11 Michael Snyder <msnyder@vmware.com>
7935 * arm-tdep.c: Internationalization.
7938 * fork-child.c: Ditto.
7939 * nto-procfs.c: Ditto.
7940 * ppc-sysv-tdep.c: Ditto.
7942 * remote-mips.c: Ditto.
7944 * rs6000-nat.c: Ditto.
7945 * rs6000-tdep.c: Ditto.
7949 * xml-support.c: Ditto.
7950 * mi/mi-cmd-break.c: Ditto.
7951 * mi/mi-cmd-var.c: Ditto.
7952 * mi/mi-interp.c: Ditto.
7953 * mi/mi-main.c: Ditto.
7955 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
7957 * remote-sim.c (gdbsim_store_register): Update API to
7958 sim_store_register to check more error conditions.
7960 2011-01-10 Michael Snyder <msnyder@vmware.com>
7962 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7963 * nto-tdep.c: Ditto.
7964 * nto-tdep.h: Ditto.
7965 * objc-exp.y: Ditto.
7966 * objc-lang.c: Ditto.
7967 * objfiles.c: Ditto.
7968 * objfiles.h: Ditto.
7969 * observer.c: Ditto.
7970 * opencl-lang.c: Ditto.
7973 * parser-defs.h: Ditto.
7976 * posix-hdep.c: Ditto.
7977 * ppcbug-rom.c: Ditto.
7978 * ppc-linux-nat.c: Ditto.
7979 * ppc-linux-tdep.c: Ditto.
7980 * ppc-linux-tdep.h: Ditto.
7981 * ppcnbsd-tdep.c: Ditto.
7982 * ppcobsd-tdep.c: Ditto.
7983 * ppcobsd-tdep.h: Ditto.
7984 * ppc-sysv-tdep.c: Ditto.
7985 * ppc-tdep.h: Ditto.
7986 * printcmd.c: Ditto.
7987 * proc-abi.c: Ditto.
7988 * proc-flags.c: Ditto.
7990 * proc-utils.h: Ditto.
7991 * progspace.h: Ditto.
7992 * prologue-value.c: Ditto.
7993 * prologue-value.h: Ditto.
7994 * psympriv.h: Ditto.
7996 * p-typeprint.c: Ditto.
7997 * p-valprint.c: Ditto.
7998 * ravenscar-sparc-thread.c: Ditto.
7999 * ravenscar-thread.c: Ditto.
8000 * ravenscar-thread.h: Ditto.
8002 * regcache.c: Ditto.
8003 * regcache.h: Ditto.
8005 * remote-fileio.c: Ditto.
8006 * remote-fileio.h: Ditto.
8008 * remote-m32r-sdi.c: Ditto.
8009 * remote-mips.c: Ditto.
8010 * remote-sim.c: Ditto.
8011 * rs6000-aix-tdep.c: Ditto.
8012 * rs6000-nat.c: Ditto.
8013 * rs6000-tdep.c: Ditto.
8015 2011-01-10 Michael Snyder <msnyder@vmware.com>
8017 * charset.c (validate): Internationalization.
8018 * coffread.c (read_one_sym): Ditto.
8019 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8020 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8021 * inflow.c (new_tty): Ditto.
8022 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8023 * m32c-tdep.c (m32c_return_value): Ditto.
8024 * mep-tdep.c (mep_store_return_value): Ditto.
8025 * score-tdep.c (score7_fetch_insn): Ditto.
8026 * ser-mingw.c (pipe_windows_open): Ditto.
8027 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8028 * spu-tdep.c (spu_register_type): Ditto.
8029 * tracepoint.c (trace_find_command): Ditto.
8030 * valarith.c (value_pos): Ditto.
8032 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8034 * ada-valprint.c (printstr): Minor comment reformatting.
8036 2011-01-08 Michael Snyder <msnyder@vmware.com>
8038 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8041 2011-01-08 Michael Snyder <msnyder@vmware.com>
8043 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8044 * hppa-hpux-tdep.c: Ditto.
8045 * hppa-linux-nat.c: Ditto.
8046 * hppa-linux-tdep.c: Ditto.
8047 * hppanbsd-tdep.c: Ditto.
8048 * hppa-tdep.c: Ditto.
8049 * hppa-tdep.h: Ditto.
8050 * hpux-thread.c: Ditto.
8051 * i386-cygwin-tdep.c: Ditto.
8052 * i386-darwin-nat.c: Ditto.
8053 * i386gnu-nat.c: Ditto.
8054 * i386-linux-nat.c: Ditto.
8055 * i386-linux-tdep.c: Ditto.
8056 * i386-nat.c: Ditto.
8057 * i386-nat.h: Ditto.
8058 * i386nbsd-tdep.c: Ditto.
8059 * i386-sol2-nat.c: Ditto.
8060 * i386-stub.c: Ditto.
8061 * i386-tdep.c: Ditto.
8062 * i386-tdep.h: Ditto.
8063 * i387-tdep.c: Ditto.
8064 * ia64-linux-nat.c: Ditto.
8065 * ia64-linux-tdep.c: Ditto.
8066 * ia64-tdep.c: Ditto.
8070 * inferior.c: Ditto.
8071 * inferior.h: Ditto.
8077 * iq2000-tdep.c: Ditto.
8078 * irix5-nat.c: Ditto.
8084 * jv-typeprint.c: Ditto.
8085 * jv-valprint.c: Ditto.
8086 * language.c: Ditto.
8087 * language.h: Ditto.
8088 * linespec.c: Ditto.
8089 * linux-fork.c: Ditto.
8090 * linux-nat.c: Ditto.
8091 * linux-thread-db.c: Ditto.
8092 * lm32-tdep.c: Ditto.
8094 2011-01-08 Michael Snyder <msnyder@vmware.com>
8096 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8098 * m2-typeprint.c: Ditto.
8099 * m2-valprint.c: Ditto.
8100 * m32c-tdep.c: Ditto.
8101 * m32r-linux-nat.c: Ditto.
8102 * m32r-rom.c: Ditto.
8103 * m32r-tdep.c: Ditto.
8104 * m32r-tdep.h: Ditto.
8105 * m68hc11-tdep.c: Ditto.
8106 * m58klinux-nat.c: Ditto.
8107 * m68k-tdep.c: Ditto.
8108 * m88k-tdep.c: Ditto.
8109 * m88k-tdep.h: Ditto.
8110 * machoread.c: Ditto.
8111 * macrocmd.c: Ditto.
8112 * macroexp.c: Ditto.
8113 * macrotab.c: Ditto.
8116 * mdebugread.c: Ditto.
8117 * mdebugread.h: Ditto.
8120 * memory-map.h: Ditto.
8121 * mep-tdep.c: Ditto.
8122 * microblaze-rom.c: Ditto.
8123 * microblaze-tdep.c: Ditto.
8125 * mips-irix-tdep.c: Ditto.
8126 * mips-linux-nat.c: Ditto.
8127 * mips-linux-tdep.c: Ditto.
8128 * mips-linux-tdep.h: Ditto.
8129 * mipsnbsd-nat.c: Ditto.
8130 * mipsnbsd-tdep.c: Ditto.
8131 * mipsread.c: Ditto.
8132 * mips-tdep.c: Ditto.
8133 * mips-tdep.h: Ditto.
8134 * mn10300-linux-tdep.c: Ditto.
8135 * mn10300-tdep.c: Ditto.
8136 * mn10300-tdep.h: Ditto.
8139 * moxie-tdep.c: Ditto.
8140 * moxie-tdep.h: Ditto.
8143 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8145 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8147 2011-01-08 Robert Millan <rmh@gnu.org>
8149 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8151 2011-01-07 Michael Snyder <msnyder@vmware.com>
8153 * charset.c (_initialize_charset): Fix typo in string.
8155 2011-01-07 Michael Snyder <msnyder@vmware.com>
8157 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8159 * tui/tui-layout.c (tui_set_layout_for_display_command):
8160 Split line so that operator goes to beginning of line.
8161 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8162 assignment out of if statement.
8164 2011-01-07 Michael Snyder <msnyder@vmware.com>
8166 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8167 * ada-lang.h: Ditto.
8168 * ada-tasks.c: Ditto.
8169 * ada-valprint.c: Ditto.
8170 * aix-threads.c: Ditto.
8171 * alpha-linux-nat.c: Ditto.
8172 * alpha-linux-tdep.c: Ditto.
8173 * alpha-mdebug-tdep.c: Ditto.
8174 * alpha-nat.c: Ditto.
8175 * alpha-osf1-tdep.c: Ditto.
8176 * alpha-tdep.c: Ditto.
8177 * alphabsd-nat.c: Ditto.
8178 * alphabsd-tdep.c: Ditto.
8179 * amd64-darwin-tdep.c: Ditto.
8180 * amd64-linux-nat.c: Ditto.
8181 * amd64-linux-tdep.c: Ditto.
8182 * amd64-sol2-tdep.c: Ditto.
8183 * amd64-tdep.c: Ditto.
8184 * amd64-fbsd-tdep.c: Ditto.
8185 * amd64-nbsd-tdep.c: Ditto.
8186 * amd64-obsd-tdep.c: Ditto.
8187 * amd64-linux-nat.c: Ditto.
8188 * amd64-linux-tdep.c: Ditto.
8189 * arm-tdep.c: Ditto.
8190 * arm-tdep.h: Ditto.
8191 * armnbsd-nat.c: Ditto.
8192 * avr-tdep.c: Ditto.
8193 * bfin-tdep.c: Ditto.
8195 * c-typeprintc: Ditto.
8196 * c-valprint.c: Ditto.
8197 * coff-pe-read.h: Ditto.
8198 * coffreead.c: Ditto.
8199 * cris-tdep.c: Ditto.
8201 * darwin-nat-info.c: Ditto.
8202 * darwin-nat.c: Ditto.
8203 * dbug-rom.c: Ditto.
8207 * dec-thread.c: Ditto.
8209 * demangle.c: Ditto.
8210 * dicos-tdep.c: Ditto.
8211 * dictionary.c: Ditto.
8212 * dictionary.h: Ditto.
8213 * dink32-rom.c: Ditto.
8215 * doublest.c: Ditto.
8217 * dummy-frame.c: Ditto.
8218 * dwarf2-frame.c: Ditto.
8219 * dwarf2expr.c: Ditto.
8220 * dwarf2loc.c: Ditto.
8221 * dwarf2read.c: Ditto.
8225 * event-top.h: Ditto.
8226 * exceptions.c: Ditto.
8227 * exceptions.h: Ditto.
8229 * expprint.c: Ditto.
8230 * expression.h: Ditto.
8234 * f-typeprint.c: Ditto.
8235 * f-valprint.c: Ditto.
8236 * fbsd-nat.c: Ditto.
8238 * fork-child.c: Ditto.
8241 * frv-linux-tdep.c: Ditto.
8242 * frv-tdep.c: Ditto.
8244 * gdb-stabs.h: Ditto.
8245 * gdb_assert.h: Ditto.
8246 * gdb_string.h: Ditto.
8247 * gdb_thread_db.h: Ditto.
8248 * gdb_wait.h: Ditto.
8249 * gdbarch.sh: Ditto.
8251 * gdbthread.h: Ditto.
8252 * gdbtypes.c: Ditto.
8253 * gdbtypes.h: Ditto.
8256 * gnu-v2-abi.c: Ditto.
8257 * gnu-v3-abi.c: Ditto.
8258 * go32-nat.c: Ditto.
8259 * gdbarch.c: Regenerate.
8260 * gdbarch.h: Regenerate.
8262 2011-01-07 Michael Snyder <msnyder@vmware.com>
8264 * ax-gdb.c: Adjust some long output strings.
8265 * breakpoint.c: Ditto.
8270 * linux-nat.c: Ditto.
8271 * solib-pa64.c: Ditto.
8272 * solib-som.c: Ditto.
8274 2011-01-06 Tom Tromey <tromey@redhat.com>
8278 * python/python.c (GdbMethods): Add "newest_frame" method.
8279 * python/python-internal.h (gdbpy_newest_frame): Declare.
8280 * python/py-frame.c (gdbpy_newest_frame): New function.
8282 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8284 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8285 * jit.c (jit_debug): New variable.
8286 (show_jit_debug): New function.
8287 (struct target_buffer): Use ULONGEST.
8288 (bfd_open_from_target_memory): Likewise.
8289 (jit_register_code, jit_inferior_init): Add debug output.
8290 (_initialize_jit): Register "debug jit" command.
8292 2011-01-06 Tom Tromey <tromey@redhat.com>
8294 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8295 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8298 2011-01-06 Tom Tromey <tromey@redhat.com>
8300 * python/py-frame.c (frapy_block): Use get_frame_block.
8302 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8304 Do not stop on SIGPRIO signals by default
8305 * infrun.c (_initialize_infrun): Unset signal_stop and
8306 signal_print for TARGET_SIGNAL_PRIO.
8308 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8310 * ada-tasks.c: Fix style violation in comment.
8312 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8314 * linespec.c (decode_compound, find_method): Remove trailing \n
8315 at end of error string.
8316 * solib-irix.c (irix_current_sos): Likewise.
8317 * varobj.c (uninstall_variable): Likewise.
8319 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8321 * copyright.py: New script.
8322 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8323 Launch emacs without exec'ing. Call copyright.py afterwards.
8325 2011-01-05 Michael Snyder <msnyder@vmware.com>
8327 * addrmap.c: Shorten lines of >= 80 columns.
8328 * arch-utils.c: Ditto.
8329 * arch-utils.h: Ditto.
8331 * ax-general.c: Ditto.
8333 * blockframe.c: Ditto.
8334 * breakpoint.c: Ditto.
8335 * buildsym.c: Ditto.
8337 * c-typeprint.c: Ditto.
8339 * coffread.c: Ditto.
8343 * cp-namespace.c: Ditto.
8344 * cp-support.c: Ditto.
8345 * dbug-rom.c: Ditto.
8350 * dictionary.c: Ditto.
8352 * doublest.c: Ditto.
8353 * dwarf2-frame.c: Ditto.
8354 * dwarf2expr.c: Ditto.
8355 * dwarf2loc.c: Ditto.
8356 * dwarf2read.c: Ditto.
8359 * event-loop.c: Ditto.
8360 * event-loop.h: Ditto.
8361 * exceptions.h: Ditto.
8363 * expprint.c: Ditto.
8364 * expression.h: Ditto.
8366 * f-valprint.c: Ditto.
8368 * frame-base.c: Ditto.
8369 * frame-unwind.c: Ditto.
8370 * frame-unwind.h: Ditto.
8374 * gdb-stabs.h: Ditto.
8375 * gdb_assert.h: Ditto.
8376 * gdb_dirent.h: Ditto.
8377 * gdb_obstack.h: Ditto.
8379 * gdbtypes.c: Ditto.
8380 * gdbtypes.h: Ditto.
8381 * inf-ttrace.c: Ditto.
8386 * inline-frame.h: Ditto.
8387 * language.c: Ditto.
8388 * language.h: Ditto.
8389 * libunwind-frame.c: Ditto.
8390 * libunwind-frame.h: Ditto.
8391 * linespec.c: Ditto.
8392 * linux-nat.c: Ditto.
8393 * linux-nat.h: Ditto.
8394 * linux-thread-db.c: Ditto.
8395 * machoread.c: Ditto.
8396 * macroexp.c: Ditto.
8397 * macrotab.c: Ditto.
8400 * mdebugread.c: Ditto.
8405 * objfiles.c: Ditto.
8406 * objfiles.h: Ditto.
8408 * p-typeprint.c: Ditto.
8409 * p-valprint.c: Ditto.
8411 * printcmd.c: Ditto.
8412 * proc-events.c: Ditto.
8414 * progspace.c: Ditto.
8415 * progspace.h: Ditto.
8416 * psympriv.h: Ditto.
8419 * regcache.c: Ditto.
8420 * regcache.h: Ditto.
8421 * remote-fileio.c: Ditto.
8423 * ser-mingw.c: Ditto.
8425 * ser-unix.c: Ditto.
8428 * solib-frv.c: Ditto.
8429 * solib-irix.c: Ditto.
8430 * solib-osf.c: Ditto.
8431 * solib-pa64.c: Ditto.
8432 * solib-som.c: Ditto.
8433 * solib-sunos.c: Ditto.
8434 * solib-svr4.c: Ditto.
8435 * solib-target.c: Ditto.
8439 * stabsread.c: Ditto.
8440 * stabsread.c: Ditto.
8443 * symfile-mem.c: Ditto.
8449 * target-descriptions.c: Ditto.
8450 * target-memory.c: Ditto.
8453 * terminal.h: Ditto.
8456 * tracepoint.c: Ditto.
8457 * tracepoint.h: Ditto.
8461 * user-regs.c: Ditto.
8462 * user-regs.h: Ditto.
8464 * valarith.c: Ditto.
8466 * valprint.c: Ditto.
8467 * valprint.h: Ditto.
8472 * xcoffread.c: Ditto.
8473 * xcoffsolib.c: Ditto.
8474 * xcoffsolib.h: Ditto.
8475 * xml-syscall.c: Ditto.
8476 * xml-tdesc.c: Ditto.
8478 2011-01-05 Michael Snyder <msnyder@vmware.com>
8480 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8481 * cli/cli-decode.c: Ditto.
8482 * cli/cli-dump.c: Ditto.
8483 * cli/cli-logging.c: Ditto.
8484 * cli/cli-script.c: Ditto.
8485 * cli/cli-setshow.c: Ditto.
8486 * common/signals.c: Ditto.
8487 * mi/mi-cmd-break.c: Ditto.
8488 * mi/mi-cmd-disas.c: Ditto.
8489 * mi/mi-cmd-stack.c: Ditto.
8490 * mi/mi-cmd-var.c: Ditto.
8491 * mi/mi-cmds.c: Ditto.
8492 * mi/mi-common.h: Ditto.
8493 * mi/mi-console.c: Ditto.
8494 * mi/mi-interp.c: Ditto.
8495 * mi/mi-main.c: Ditto.
8496 * osf-share/cma_attr.c: Ditto.
8497 * osf-share/cma_deb_core.h: Ditto.
8498 * osf-share/cma_debug_client.h: Ditto.
8499 * osf-share/cma_handle.h: Ditto.
8500 * osf-share/cma_mutex.h: Ditto.
8501 * osf-share/cma_stack_int.h: Ditto.
8502 * osf-share/cma_tcb_defs.h: Ditto.
8503 * python/py-auto-load.c: Ditto.
8504 * python/py-breakpoint.c: Ditto.
8505 * python/py-cmd.c: Ditto.
8506 * python/py-frame.c: Ditto.
8507 * python/py-objfile.c: Ditto.
8508 * python/py-param.c: Ditto.
8509 * python/py-progspace.c: Ditto.
8510 * python/py-symbol.c: Ditto.
8511 * python/py-value.c: Ditto.
8512 * python/python-internal.h: Ditto.
8513 * python/python.c: Ditto.
8514 * tui/tui-data.c: Ditto.
8515 * tui/tui-disasm.c: Ditto.
8516 * tui/tui-hooks.c: Ditto.
8517 * tui/tui-io.c: Ditto.
8518 * tui/tui-layout.c: Ditto.
8519 * tui/tui-regs.c: Ditto.
8520 * tui/tui-source.c: Ditto.
8521 * tui/tui-stack.c: Ditto.
8522 * tui/tui-win.c: Ditto.
8523 * tui/tui-windata.c: Ditto.
8524 * tui/tui-winsource.c: Ditto.
8526 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8528 * configure.ac, gdb.1: Copyright year update.
8530 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8532 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8533 this_pc_in_block, morestack_msym and morestack_name. Check for
8534 "__morestack" minimal symbol there.
8536 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8538 * symfile.c (find_sym_fns): Add call to dont_repeat.
8540 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8542 Copyright year update in most files (performed by copyright.sh).
8544 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8546 * top.c (print_gdb_version): Update copyright year in version output.
8548 For older changes see ChangeLog-2010.
8554 version-control: never