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