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