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