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