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