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