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