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