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