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