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