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