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