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