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