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