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