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