4c8c65837e9af1c24a50dadc315372a1460ab39e
[external/binutils.git] / gdb / ChangeLog
1 2011-06-17  Tom Tromey  <tromey@redhat.com>
2
3         * value.h (value_of_this): Update.
4         (value_of_local): Remove.
5         * valops.c (value_of_this): Rename from value_of_local.  Change
6         parameters.
7         * p-exp.y (exp): Update.
8         (variable): Likewise.
9         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
10
11 2011-06-17  Tom Tromey  <tromey@redhat.com>
12
13         * valops.c (value_of_local): Complain if NAME is NULL.
14         * std-operator.def (OP_OBJC_SELF): Remove.
15         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
16         * objc-exp.y (name_not_typename): Use OP_THIS.
17         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
18         name for "this".
19         <OP_OBJC_SELF>: Remove.
20         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
21
22 2011-06-16  Tristan Gingold  <gingold@adacore.com>
23
24         * python/py-events.h (gdb_py_events): Make it extern.
25         * python/py-evtregistry.c (gdb_py_events): Declare.
26
27 2011-06-16  Hui Zhu  <teawater@gmail.com>
28
29         * remote.c (remote_trace_set_readonly_regions): Add check for
30         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
31         output warning.
32
33 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
34
35         * arm-linux-tdep.c: Include "auxv.h".
36         (AT_HWCAP): Define.
37         (ARM_LINUX_SIZEOF_VFP): Define.
38         (arm_linux_supply_vfp): New function.
39         (arm_linux_collect_vfp): Likewise.
40         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
41         (arm_linux_fpa_regset_sections): New variable.
42         (arm_linux_vfp_regset_sections): Likewise.
43         (arm_linux_core_read_description): New function.
44         (arm_linux_init_abi): Install arm_linux_core_read_description and
45         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
46         appropriate for the architecture.
47         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
48         (tdesc_arm_with_m): Declare.
49         (tdesc_arm_with_iwmmxt): Likewise.
50         (tdesc_arm_with_vfpv2): Likewise.
51         (tdesc_arm_with_vfpv3): Likewise.
52         (tdesc_arm_with_neon): Likewise.
53         * arm-linux-nat.c: Move features/*.c includes ...
54         * arm-tdep.c: ... here.
55         * arm-linux-nat.c (arm_linux_read_description): Move initializing
56         target description data structures ...
57         * arm-tdep.c (_initialize_arm_tdep): ... here.
58         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
59         HWCAP_VFPv3D16): Move definitions ...
60         * arm-linux-tdep.h: ... here.
61
62 2011-06-15  Hui Zhu  <teawater@gmail.com>
63
64         * remote.c (remote_trace_set_readonly_regions): Add a check for
65         target_buf_size.
66
67 2011-06-14  Tom Tromey  <tromey@redhat.com>
68
69         * coffread.c (coffread_objfile): Rename from current_objfile.
70         * dbxread.c (dbxread_objfile): Rename from current_objfile.
71         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
72
73 2011-06-14  Tom Tromey  <tromey@redhat.com>
74
75         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
76         (class_symtab): Remove.
77         (jv_dynamics_progspace_key): New global.
78         (jv_per_objfile_free): Reset program space data.  Update assert.
79         Don't clear globals.
80         (get_dynamics_objfile): Use and set program space data.
81         (get_java_class_symtab): Use get_dynamics_objfile.
82         (add_class_symbol): Likewise.
83         (java_link_class_type): Likewise.
84         (java_object_type, jv_clear_object_type, set_java_object_type):
85         Remove.
86         (get_java_object_type): Update.  Don't cache result.
87         (is_object_type): Don't call set_java_object_type.
88         (_initialize_java_language): Don't set jv_type_objfile_data_key;
89         initialize jv_dynamics_progspace_key.
90
91 2011-06-14  Tom Tromey  <tromey@redhat.com>
92
93         * symtab.h (current_objfile): Don't declare.
94         * objfiles.h (current_objfile): Don't declare.
95         * objfiles.c (current_objfile): Remove.
96         * mdebugread.c (current_objfile): New file-scope global.
97         * dbxread.c (current_objfile): New file-scope global.
98         * coffread.c (current_objfile): New file-scope global.
99
100 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
101
102         * top.h (line): Rename to ...
103         (saved_command_line): ... this.
104         (linesize): Rename to ...
105         (saved_command_line_size): ... this.
106         * top.c (line): Rename to ...
107         (saved_command_line): ... this.
108         (linesize): Rename to ...
109         (saved_command_line_size): ... this.
110         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
111         * event-top.c (command_line_handler): Adjust.
112         * main.c (captured_main): Adjust.
113
114 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
115
116         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
117         get_frame_func instead of get_frame_pc to determine the code
118         address used to construct the frame ID.
119         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
120         (i386_epilogue_frame_this_id): Likewise.
121         (i386_epilogue_frame_prev_register): New function.
122         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
123         (i386_stack_tramp_frame_sniffer): Fix coding style.
124         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
125         (i386_gdbarch_init): Fix comments.
126
127 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
128
129         * i386-tdep.c (i386_match_insn_block): Use length of the proper
130         instruction when walking back through the instruction stream.
131
132 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
133
134         * symtab.c (output_partial_symbol_filename): Exchange the filename and
135         fullname parameters order.
136
137 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
138
139         Code cleanup.
140         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
141         for fun.
142         * psymtab.c (map_symbol_filenames_psymtab)
143         (map_partial_symbol_filenames): Likewise.
144         * psymtab.h: Include symfile.h.
145         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
146         * symfile.h (symbol_filename_ftype): New.
147         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
148         map_symbol_filenames, clarify more the naming in comment.
149
150 2011-06-07  Doug Evans  <dje@google.com>
151
152         * cc-with-index.sh: Fix typos in comment.
153         Look for ../../gdb, for fullname.exp.
154
155 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
156             Pedro Alves  <pedro@codesourcery.com>
157
158         * cli/cli-cmds.c (shell_escape): Use waitpid.
159         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
160
161 2011-06-07  Tristan Gingold  <gingold@adacore.com>
162
163         * xcoffread.c (dwarf2_xcoff_names): New variable.
164         (aix_process_linenos): Add a guard.
165         (xcoff_symfile_finish): Free dwarf2.
166         (xcoff_initial_scan): Add dwarf2 support.
167
168 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
169
170         * infcall.c (run_inferior_call): Don't mask async.  Instead force
171         a synchronous wait, if the target can async.
172
173         * target.h (struct target_ops): Delete to_async_mask.
174         (target_async_mask): Delete.
175         * target.c (update_current_target): Delete references to to_async_mask.
176         * linux-nat.c (linux_nat_async_mask_value): Delete.
177         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
178         to linux_nat_async_mask_value.
179         (linux_nat_async_mask): Delete.
180         (linux_nat_async, linux_nat_close): Remove references to
181         linux_nat_async_mask_value.
182         * record.c (record_async_mask_value): Delete.
183         (record_async): Remove references to record_async_mask_value.
184         (record_async_mask): Delete.
185         (record_can_async_p, record_is_async_p): Remove references to
186         record_async_mask_value.
187         (init_record_ops, init_record_core_ops): Remove references to
188         record_async_mask.
189         * remote.c (remote_async_mask_value): Delete.
190         (init_remote_ops): Remove reference to remote_async_mask.
191         (remote_can_async_p, remote_is_async_p): Remove references to
192         remote_async_mask_value.
193         (remote_async): Remove references to remote_async_mask_value.
194         (remote_async_mask): Delete.
195
196         * infrun.c (fetch_inferior_event): Don't claim registers changed
197         if the current thread is already not executing.
198
199 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
200
201         From Stephen Kitt  <steve@sk2.org>
202         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
203         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
204
205 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
206
207         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
208         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
209
210 2011-06-03  Tom Tromey  <tromey@redhat.com>
211
212         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
213         code fields.
214         * python/py-exitedevent.c (create_exited_event_object): Change
215         type of 'exit_code'.  Optionally add exit_code attribute.
216         (emit_exited_event): Change type of 'exit_code'.
217         * python/py-event.h (emit_exited_event): Update.
218         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
219         * infrun.c (handle_inferior_event): Set exit code fields on
220         inferior.
221         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
222         fields.
223         * inferior.c (exit_inferior_1): Initialize new fields.
224
225 2011-06-03  Tom Tromey  <tromey@redhat.com>
226
227         * dwarf2expr.c (get_signed_type): New function.
228         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
229
230 2011-06-02  Keith Seitz  <keiths@redhat.com>
231
232         * objc-lang.c (find_methods): Increment objfile_csym earlier.
233
234 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
235
236         * top.h (simplified_command_loop): Delete declaration.
237
238 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
239
240         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
241         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
242
243 2011-06-01  Yao Qi  <yao@codesourcery.com>
244
245         * objfiles.h (obj_section_addr): Update reference to objfile from
246         `abfd' to `obfd'.
247         (obj_section_endaddr): Likewise.
248
249 2011-06-01  Daniel Jacobowitz  <drow@false.org>
250
251         * MAINTAINERS: Update my email address and affiliation.  Also
252         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
253
254 2010-05-31  Keith Seitz  <keiths@redhat.com>
255
256         PR c++/12750
257         * linespec.c (get_search_block): New function.
258         (find_methods): Add FILE_SYMTATB parameter and use it and
259         get_search_block to pass an appropriate block to
260         lookup_symbol_in_namespace.
261         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
262         Check if *ARGPTR starts with a filename first.
263         If it does, call locate_first_half again to locate the next
264         "first half" of the linespec.
265         Pass FILE_SYMTATB to decode_objc and decode_compound.
266         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
267         (locate_first_half): Stop on the first colon seen.
268         (decode_compound): Add FILE_SYMTAB parameter.
269         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
270         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
271         get_search_block with lookup_symbol.
272         (find_method): Add FILE_SYMTAB parameter and pass it to
273         find_methods.
274         (decode_objc): Use get_search_block.
275
276 2010-05-31  Keith Seitz  <keiths@redhat.com>
277
278         PR symtab/12704
279         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
280         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
281         and CP_ANONYMOUS_NAMESPACE_LEN.
282         (cp_is_anonymous): Likewise.
283         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
284         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
285         * dwarf2read.c (namespace_name): Likewise.
286         (fixup_partial_die): Likewise.
287         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
288         seen in the input, keep it.
289
290 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
291
292         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
293         * inf-loop.h (inferior_event_handler_wrapper): Delete.
294         * inf-loop.c (inferior_event_handler_wrapper): Delete.
295         (inferior_event_handler): Don't handle INF_QUIT_REQ.
296         * remote.c (_initialize_remote): Register
297         async_remote_interrupt_twice directly as
298         sigint_remote_twice_token event.
299
300 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
301
302         * target.h (enum inferior_event_type): Delete INF_ERROR.
303         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
304
305 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
306
307         * interps.c (interp_set): Don't cancel continuations.
308
309 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
310
311         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
312
313 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
314
315         * continuations.h (continuation_ftype): Add `err' parameter.
316         Document parameters.
317         (do_all_continuations, do_all_continuations_thread)
318         (do_all_intermediate_continuations)
319         (do_all_intermediate_continuations_thread)
320         (do_all_inferior_continuations): Add `err' parameter.
321         * continuations.c (do_my_continuations_1, do_my_continuations)
322         (do_all_inferior_continuations, do_all_continuations_ptid)
323         (do_all_continuations_thread_callback)
324         (do_all_continuations_thread, do_all_continuations)
325         (do_all_intermediate_continuations_thread_callback)
326         (do_all_intermediate_continuations_thread)
327         (do_all_intermediate_continuations): Add `err' parameter, and pass
328         it down all the way to the continuations proper.
329         * inf-loop.c (inferior_event_handler): If fetching an inferior
330         event throws an error, don't pop the target, and still call the
331         continuations, but with `err' set.  Adjust all other continuation
332         calls.
333         * breakpoint.c (until_break_command_continuation): Add `err'
334         parameter.
335         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
336         issue another step if `err' is set.
337         (struct until_next_continuation_args): New.
338         (until_next_continuation): Add `err' parameter.  Adjust.
339         (until_next_command): Adjust.
340         (struct finish_command_continuation_args): Add `thread' field.
341         (finish_command_continuation): Add `err' parameter.  Handle it.
342         (finish_forward): Adjust.
343         (attach_command_continuation): Add `err' parameter.  Handle it.
344         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
345         cancel the continuations.
346         * interps.c (interp_set): Adjust to cancel the continuations.
347         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
348         continuations rather than discarding.
349         (free_thread): Don't clear thread inferior resources here.
350         (delete_thread_1): Do it here instead.  And do it before removing
351         the thread from the threads list.  Tag the thread as exited before
352         clearing thread inferior resources.
353
354 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
355
356         * infcall.c (call_function_by_hand): Rephrase error message.
357
358 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
359
360         * defs.h (struct thread_info, struct inferior): Delete forward
361         declarations.
362         * breakpoint.h (struct thread_info): New forward declaration.
363         * observer.sh (struct inferior): New forward declaration.
364         * python/python-internal.h (struct inferior): New forward
365         declaration.
366
367 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
368
369         * defs.h (struct continuation, continuation_ftype)
370         (continuation_free_arg_ftype, add_continuation)
371         (do_all_continuations, do_all_continuations_thread)
372         (discard_all_continuations, discard_all_continuations_thread)
373         (add_intermediate_continuation, do_all_intermediate_continuations)
374         (do_all_intermediate_continuations_thread)
375         (discard_all_intermediate_continuations)
376         (discard_all_intermediate_continuations_thread)
377         (add_inferior_continuation, do_all_inferior_continuations)
378         (discard_all_inferior_continuations): Move to ...
379         * continuations.h: ... this new file.
380         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
381         infcmd.c, inferior.c, infrun.c, interps.c: Include
382         continuations.h.
383
384 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
385             Doug Evans  <dje@google.com>
386
387         Fix PR 10970, PR 12702.
388         * linux-nat.c (linux_lwp_is_zombie): New function.
389         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
390         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
391
392 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
393
394         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
395         typedefs.
396         (add_continuation, add_intermediate_continuation)
397         (add_inferior_continuation): Use them.
398         * continuations.c (struct continuation): Use them.
399         (make_continuation_ftype): Delete.
400         (make_continuation, add_inferior_continuation, add_continuation)
401         (add_intermediate_continuation): Use continuation_ftype and
402         continuation_free_arg_ftype.  Rename parameters to shorter names.
403
404 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
405
406         * continuations.c (make_continuation): Make it return void.
407         (do_my_continuations): Rename to ...
408         (do_my_continuations_1): ... this.  Remove old_chain parameter and
409         adjust.
410         (do_my_continuations): New.
411         (discard_my_continuations): Rename to ...
412         (discard_my_continuations_1): ... this.  Remove old_chain
413         parameter and adjust.
414         (discard_my_continuations): New.
415         (add_inferior_continuation): Simplify.
416         (do_all_inferior_continuations): Reimplement on top
417         do_my_continuations.
418         (discard_all_inferior_continuations): Simplify.
419         (add_continuation): Simplify.
420         (do_all_continuations_ptid): Simplify.
421         (discard_all_continuations_thread_callback): Simplify.
422         (add_intermediate_continuation): Simplify.
423         (discard_all_intermediate_continuations_thread_callback):
424         Simplify.
425
426 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
427
428         * utils.c (struct continuation, add_continuation)
429         (add_inferior_continuation)
430         (do_all_inferior_continuations, discard_all_inferior_continuations)
431         (restore_thread_cleanup, do_all_continuations_ptid)
432         (do_all_continuations_thread_callback)
433         (do_all_continuations_thread, do_all_continuations)
434         (discard_all_continuations_thread_callback)
435         (discard_all_continuations_thread, discard_all_continuations)
436         (add_intermediate_continuation)
437         (do_all_intermediate_continuations_thread_callback)
438         (do_all_intermediate_continuations_thread)
439         (do_all_intermediate_continuations)
440         (discard_all_intermediate_continuations_thread_callback)
441         (discard_all_intermediate_continuations_thread)
442         (discard_all_intermediate_continuations): Move to ...
443         * continuations.c: ... this new file, and adjust to no longer
444         implement continuations on top of cleanups.
445         * Makefile.in (SFILES): Add continuations.c.
446         (COMMON_OBS): Add continuations.o.
447
448 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
449
450         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
451         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
452         Internal error on invalid values.
453         * reverse.c: Don't handle EXEC_ERROR.
454         * mi/mi-main.c: Don't handle EXEC_ERROR.
455
456 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
457
458         * record.c: Include event-loop.h, inf-loop.h.
459         (record_beneath_to_async): New global.
460         (tmp_to_async): New global.
461         (record_async_inferior_event_token): New global.
462         (record_open_1): Don't error out if async is enabled.
463         (record_open): Handle to_async.  Create an async event source in
464         the event loop.
465         (record_close): Delete the async event source.
466         (record_resumed): New global.
467         (record_execution_dir): New global.
468         (record_resume, record_core_resume): Set them.  Register the
469         target on the event loop.
470         (record_wait): Rename to ...
471         (record_wait_1): ... this.  Add more debug output.  Handle
472         TARGET_WNOHANG, and the target beneath returning
473         TARGET_WAITKIND_IGNORE.
474         (record_wait): Reimplement on top of record_wait_1.
475         (record_async_mask_value): New global.
476         (record_async, record_async_mask, record_can_async_p)
477         (record_is_async_p, record_execution_direction): New functions.
478         (init_record_ops, init_record_core_ops): Install new methods.
479         * infrun.c (fetch_inferior_event): Temporarily switch the global
480         execution direction to the direction the target was going.
481         (execution_direction): Change type to int.
482         * target.c (default_execution_direction): New function.
483         (update_current_target): Inherit and de_fault
484         to_execution_direction.
485         * target.h (struct target_ops) <to_execution_direction>: New
486         field.
487         (target_execution_direction): New macro.
488         * inferior.h (execution_direction): Change type to int.
489
490 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
491
492         * infcall.c (call_function_by_hand): Don't allow calling functions
493         in reverse execution mode.
494
495 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
496
497         * infcmd.c (finish_command): Allow async finish in reverse.
498
499 2011-05-26  Yao Qi  <yao@codesourcery.com>
500
501         * gdb_thread_db.h: Delete.  Move to ...
502         * common/gdb_thread_db.h: ... here.
503
504 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
505
506         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
507         function's entry point instead of a manually managed momentary
508         breakpoint, and only ever issue one proceed call.
509         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
510         doing a reverse-finish, switch to stepi mode, to do another step.
511         (insert_step_resume_breakpoint_at_sal): Make public.
512         (normal_stop): No need to save function value return registers if
513         going reverse.
514         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
515
516 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
517
518         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
519         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
520         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
521         at the end.
522         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
523         step-resume breakpoints.
524         (print_it_typical): Handle bp_hp_step_resume.
525         (bpstat_what): Ditto.
526         (bptype_string): Ditto.
527         (print_one_breakpoint_location): Ditto.
528         (allocate_bp_location): Ditto.
529         (mention): Ditto.
530         (breakpoint_re_set_one): Ditto.
531         * infrun.c (handle_inferior_event): Adjust.  Split
532         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
533         BPSTAT_WHAT_HP_STEP_RESUME.
534         (insert_step_resume_breakpoint_at_sal): Rename to ...
535         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
536         parameter.  Handle it.
537         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
538         insert_step_resume_breakpoint_at_sal_1.
539         (insert_step_resume_breakpoint_at_frame): Rename to ...
540         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
541         set a high-priority step-resume breakpoint.
542         (insert_step_resume_breakpoint_at_frame): Adjust comment.
543         (insert_step_resume_breakpoint_at_caller): Ditto.
544
545 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
546
547         * breakpoint.c (iterate_over_related_breakpoints): New.
548         (do_map_delete_breakpoint): New.
549         (delete_command): Pass do_map_delete_breakpoint to
550         map_breakpoint_numbers.
551         (do_disable_breakpoint): New.
552         (do_map_disable_breakpoint): Iterate over the breakpoint's related
553         breakpoints.
554         (do_enable_breakpoint): Rename to ...
555         (enable_breakpoint_disp): ... this.
556         (enable_breakpoint): Adjust.
557         (do_enable_breakpoint): New.
558         (enable_once_breakpoint): Delete.
559         (do_map_enable_breakpoint): New.
560         (do_map_enable_once_breakpoint): New.
561         (enable_once_command, enable_delete_command)
562         (delete_trace_command): Iterate over the breakpoint's related
563         breakpoints.
564
565 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
566
567         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
568         for ALPHA_ZERO_REGNUM.
569         (alpha_supply_int_regs): Explicitly supply zero as the value for
570         ALPHA_ZERO_REGNUM in the register cache.
571         * alpha-nat.c (fetch_osf_core_registers): Ditto.
572
573 2011-05-26  Yao Qi  <yao@codesourcery.com>
574
575         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
576
577 2011-05-26  Tristan Gingold  <gingold@adacore.com>
578
579         * symfile.h (struct dwarf2_section_names): New type.
580         (struct dwarf2_debug_sections): New type.
581         (dwarf2_has_info): Add parameter.
582         * dwarf2read.c (dwarf2_elf_names): New variable.
583         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
584         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
585         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
586         (dwarf2_has_info): Add names parameter.  Pass names
587         to dwarf2_locate_sections.
588         (section_is_p): Rewrite using the names parameter.
589         (dwarf2_locate_sections): Use section names from the names parameter.
590         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
591         * elfread.c (read_psyms): Ditto.
592         * machoread.c (macho_symfile_read): Ditto.
593
594 2011-05-25  Andreas Schwab  <schwab@redhat.com>
595
596         PR gdb/8677
597         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
598
599 2011-05-24  Keith Seitz  <keiths@redhat.com>
600
601         PR breakpoint/12803
602         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
603         (decode_compound): Unconditionally call keep_name_info.
604
605 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
606
607         * breakpoint.c (watchpoint_check): If the watchpoint went out of
608         scope, clear its command list.
609         (map_breakpoint_numbers): Don't walk the related breakpoints list
610         of each breakpoint.
611
612 2011-05-24  Tom Tromey  <tromey@redhat.com>
613
614         * MAINTAINERS: Move Jim Blandy to past maintainers.
615
616 2011-05-24  Tristan Gingold  <gingold@adacore.com>
617
618         * symfile.h (enum dwarf2_section_enum): New type.
619         (dwarf2_get_section_info): New prototype.
620         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
621         section_name by sect.  Use a switch to select the info.
622         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
623         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
624
625 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
626
627         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
628         shared library event breakpoint if there's no execution.
629
630 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
631
632         * breakpont.c (remove_hw_watchpoints): Remove unused function.
633         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
634
635 2011-05-23  Tom Tromey  <tromey@redhat.com>
636
637         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
638         NULL.
639
640 2011-05-23  Doug Evans  <dje@google.com>
641
642         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
643         entry for RuntimeError to doc string.
644
645 2011-05-23  Jerome Guitton  <guitton@adacore.com>
646
647         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
648         sequence for probing loops.
649
650 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
651
652         * infrun.c (user_visible_resume_ptid): Fix typos in describing
653         comment.
654
655 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
656
657         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
658         zero as the value for %g0 in the register cache.
659         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
660         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
661
662 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
663
664         * infrun.c (proceed): Set previous_inferior_ptid here.
665         (init_wait_for_inferior): Initialize previous_inferior_ptid from
666         inferior_ptid, not null_ptid.
667         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
668         (fetch_inferior_event): Nor here.
669
670 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
671
672         * inf-loop.c (inferior_event_handler): Only output a message if
673         verbose.
674
675 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
676
677         * MAINTAINERS: Update my e-mail address.
678
679 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
680
681         * infrun.c (proceed): Switch the inferior event loop to
682         INF_EXEC_COMPLETE if the target refused to resume from a
683         vfork/fork.
684
685 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
686
687         * infcmd.c: Include "inf-loop.h".
688         (step_once): When stepping into an inline subroutine, pretend the
689         target has run.  If the target can async, switch the inferior
690         event loop to INF_EXEC_COMPLETE.
691         * inferior.h (user_visible_resume_ptid): Declare.
692         * infrun.c (user_visible_resume_ptid): New function, factored out
693         from `resume'.
694         (resume): Use it.
695         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
696         that the current thread is running.  Merge async and sync
697         branches.
698
699 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
700
701         * infcmd.c (step_1): Simplify synchronous case.
702
703 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
704
705         * tracepoint.c: Include exceptions.h.
706         (TFILE_PID): Move higher in file.
707         (tfile_open): Delay pushing the tfile target until we're assured
708         the tfile header is present in the file.  Wrap reading the initial
709         newline-terminated lines in TRY_CATCH.  Pop the target if the
710         initial setup failed.  Add the tfile's thread immediately
711         aftwards, before any non-essential setup.  Don't skip
712         post_create_inferior if there are no traceframes present in the
713         file.
714         (tfile_close): Remove redundant check for null before xfree call.
715         (tfile_thread_alive): New function.
716         (init_tfile_ops): Register it as to_thread_alive callback.
717
718 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
719
720         * tracepoint.c (tfile_open): Delete #if 0'd code.
721
722 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
723
724         Fix -readnow for -gdwarf-4 unused type units.
725         * dwarf2read.c (struct signatured_type): Remove the field offset.
726         (create_signatured_type_table_from_index): Remove its initialization.
727         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
728         instead.  Add a complaint call.
729         (process_psymtab_comp_unit): Change assignment to gdb_assert.
730         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
731         (lookup_signatured_type_at_offset, read_signatured_type)
732         (write_one_signatured_type): Update the field for per_cu.
733
734 2011-05-19  Tom Tromey  <tromey@redhat.com>
735
736         * python/py-inferior.c (python_inferior_exit): Use
737         target_gdbarch.
738         (python_on_resume): Likewise.
739
740 2011-05-19  Matt Rice  <ratmice@gmail.com>
741
742         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
743
744 2011-05-19  Hui Zhu  <teawater@gmail.com>
745
746         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
747
748 2011-05-19  Hui Zhu  <teawater@gmail.com>
749
750         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
751
752 2011-05-18  Tom Tromey  <tromey@redhat.com>
753
754         * dwarf2read.c (dwarf2_add_field): Constify.
755         * value.c (value_static_field): Constify.
756         * gdbtypes.h (struct main_type) <field.field_location.physname>:
757         Now const.
758         * ax-gdb.c (gen_static_field): Constify
759
760 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
761
762         * linux-nat.c (kill_callback): Use SIGKILL first.
763
764 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
765
766         * ada-lang.c (print_it_exception): Avoid use of sprintf.
767
768 2011-05-18  Tom Tromey  <tromey@redhat.com>
769
770         * value.c (value_fn_field): Constify.
771         * symtab.c (gdb_mangle_name): Constify.
772         * stabsread.c (update_method_name_from_physname): Make 'physname'
773         argument const.
774         * p-typeprint.c (pascal_type_print_method_args): Make arguments
775         const.  Use explicit fputc_filtered loop.
776         (pascal_type_print_base): Constify.
777         * p-lang.h (pascal_type_print_method_args): Update.
778         * linespec.c (add_matching_methods): Constify.
779         (add_constructors): Likewise.
780         * jv-typeprint.c (java_type_print_base): Constify.
781         * gdbtypes.h (struct cplus_struct_type)
782         <fn_fieldlist.fn_field.physname>: Now const.
783         * dwarf2read.c (compute_delayed_physnames): Constify.
784         (dwarf2_add_member_fn): Likewise.
785         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
786
787 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
788
789         * infrun.c (resume): Mention which is the current thread, and its
790         current PC in debug output.
791         (prepare_to_proceed): Mention the thread switching in debug
792         output.
793
794 2011-05-18  Tom Tromey  <tromey@redhat.com>
795
796         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
797         path check.  Use xmalloc and cleanups.
798         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
799
800 2011-05-17  Tom Tromey  <tromey@redhat.com>
801
802         * cp-valprint.c (cp_print_value_fields): Catch errors from
803         value_static_field.
804
805 2011-05-17  Tom Tromey  <tromey@redhat.com>
806
807         * dwarf2read.c (dwarf2_get_die_type): Call
808         get_die_type_at_offset.
809         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
810         get_base_type function.
811
812 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
813
814         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
815         trap_expected.
816
817 2011-05-16  Doug Evans  <dje@google.com>
818
819         * python/py-auto-load.c (source_section_scripts): Mention objfile
820         name in warning.
821
822 2011-05-15  Doug Evans  <dje@google.com>
823
824         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
825         (try_thread_db_load_from_pdir): Call it.  If unable to find
826         libthread_db in directory of libpthread, see if we're looking at
827         the separate-debug-info copy.
828
829         * python/py-autoload.c (print_script): Print "Missing" instead of
830         "No" for missing scripts.
831         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
832
833 2011-05-13  Doug Evans  <dje@google.com>
834
835         * ui-file.c (stdio_file_write_async_safe): Add comment.
836
837 2011-05-14  Hui Zhu  <teawater@gmail.com>
838
839         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
840
841 2011-05-13  Doug Evans  <dje@google.com>
842
843         Support $pdir and $sdir in libthread-db-search-path.
844         * NEWS: Mention $sdir,$pdir.
845         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
846         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
847         (try_thread_db_load_from_sdir): New function.
848         (try_thread_db_load_from_dir): New function.
849         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
850         system directories if search of libthread-db-search-path fails,
851         that is now done via $sdir.
852         (has_libpthread): New function.
853         (thread_db_load): Remove search for libthread_db in directory of
854         libpthread, that is now done via $pdir.
855
856         * NEWS: Mention "info auto-load-scripts".
857         * python/py-auto-load.c (struct auto_load_pspace_info): New member
858         script_not_found_warning_printed.
859         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
860         all callers updated.  Initialize script_not_found_warning_printed.
861         (get_auto_load_pspace_data_for_loading): New function.
862         (maybe_add_script): New function.
863         (source_section_scripts): Simplify.  Only print one warning regardless
864         of the number of auto-load scripts not found.
865         (clear_section_scripts): Clear script_not_found_warning_printed.
866         (auto_load_objfile_script): Record script in hash table.
867         (count_matching_scripts): New function.
868         (maybe_print_script): Renamed from maybe_print_section_script, all
869         callers updated.  Rewrite to use ui_out_*.
870         (info_auto_load_scripts): Renamed from
871         maintenance_print_section_scripts, all callers updated.
872         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
873         renamed as "info auto-load-scripts".
874
875 2011-05-13  Tom Tromey  <tromey@redhat.com>
876
877         * dwarf2expr.c (read_uleb128): Cast intermediate result.
878         (read_sleb128): Likewise.
879
880 2011-05-13  Tom Tromey  <tromey@redhat.com>
881
882         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
883         offset display.
884
885 2011-05-13  Doug Evans  <dje@google.com>
886
887         * linux-nat.c (debug_linux_nat_async): Delete.
888         Replace all references to use debug_linux_nat instead.
889         (show_debug_linux_nat_async): Delete.
890         (sigchld_handler): Call ui_file_write_async_safe instead of
891         fprintf_unfiltered.
892         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
893         * ui-file.c (struct ui_file): New member to_write_async_safe.
894         (null_file_write_async_safe): New function.
895         (ui_file_write_async_safe): New function.
896         (set_ui_file_write_async_safe): New function.
897         (ui_file_new): Initialize to_write_async_safe.
898         (stdio_file_write_async_safe): New function.
899         (struct stdio_file): New member fd.
900         (stdio_file_new): Initialize to_write_async_safe, fd.
901         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
902         fileno.
903         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
904         (set_ui_file_write_async_safe): Declare.
905         (ui_file_write_async_safe): Declare.
906
907 2011-05-13  Tom Tromey  <tromey@redhat.com>
908
909         * utils.c (do_value_free): New function.
910         (make_cleanup_value_free): Likewise.
911         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
912         freeing correctly.
913         (dwarf2_loc_desc_needs_frame): Call
914         make_cleanup_value_free_to_mark.
915         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
916         * dwarf2expr.c (free_dwarf_expr_context): Don't call
917         value_free_to_mark.
918         (new_dwarf_expr_context): Don't call value_mark.
919         * dwarf2-frame.c (execute_stack_op): Call
920         make_cleanup_value_free_to_mark.
921         * defs.h (make_cleanup_value_free): Declare.
922
923 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
924
925         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
926         prepare_execute_command.
927         * top.c (prepare_execute_command): Return cleanup.
928         (execute_command): Use cleanup from prepare_execute_command.
929         * top.h (prepare_execute_command): Change prototype to return
930         cleanup.
931         * defs.h (struct value): Add opaque declaration.
932         (make_cleanup_value_free_to_mark): Add prototype.
933         * utils.c (do_value_free_to_mark): New function.
934         (make_cleanup_value_free_to_mark): Likewise.
935
936 2011-05-12  Tom Tromey  <tromey@redhat.com>
937
938         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
939         cast left-hand-side to unsigned.
940
941 2011-05-12  Tom Tromey  <tromey@redhat.com>
942
943         PR gdb/12617:
944         * value.h (value_from_contents): Declare.
945         * value.c (value_from_contents): New function.
946         * dwarf2read.c (dwarf_stack_op_name): Add new values.
947         (dwarf2_get_die_type): New function.
948         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
949         (allocate_piece_closure): Acquire reference to values.
950         (read_pieced_value): Update for value-based expressions.
951         (write_pieced_value): Likewise.
952         (free_pieced_value_closure): Call value_free as needed.
953         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
954         Update for value-based expressions.
955         * dwarf2loc.h (dwarf2_get_die_type): Declare.
956         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
957         <get_base_type>: New field.
958         (struct dwarf_expr_piece) <v.value>: Change type.
959         <v.regno>: New field.
960         (struct dwarf_expr_context) <mark>: New field.
961         (dwarf_expr_piece, dwarf_expr_fetch): Update.
962         (dwarf_expr_pop, dwarf_expr_push): Remove.
963         (dwarf_expr_push_address): Declare.
964         * dwarf2expr.c (dwarf_arch_cookie): New global.
965         (struct dwarf_gdbarch_types): New.
966         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
967         functions.
968         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
969         static.
970         (dwarf_expr_push_address): New function.
971         (dwarf_expr_pop): Now static.
972         (dwarf_expr_fetch): Change return type.
973         (dwarf_require_integral): New function.
974         (dwarf_expr_fetch): Simplify.
975         (add_piece): Update.
976         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
977         functions.
978         (execute_stack_op) <sign_ext>: Remove.
979         Use values for DWARF stack.
980         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
981         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
982         New cases.
983         (_initialize_dwarf2expr): New function.
984         (add_piece): Update.
985         (new_dwarf_expr_context): Set new field.
986         (free_dwarf_expr_context): Call value_free_to_mark.
987         * dwarf2-frame.c (no_base_type): New function.
988         (execute_stack_op): Set get_base_type field.  Update.
989
990 2011-05-12  Tom Tromey  <tromey@redhat.com>
991
992         * dwarf2read.c (read_common_block): Fix formatting.
993
994 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
995
996         * breakpoint.c (disable_breakpoint): Disable all locations
997         associated with a tracepoint on target if a trace experiment is
998         running.
999         (disable_command): Disable a specific tracepoint location on target if
1000         a trace experiment is running.
1001         (do_enable_breakpoint): Enable all locations associated with a
1002         tracepoint on target if a trace experiment is running.
1003         (enable_command) Enable a specific tracepoint location on target if a
1004         trace experiment is running.
1005         * target.c (update_current_target): Add INHERIT and de_fault clauses for
1006         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1007         to_disable_tracepoint.
1008         * target.h: Add declaration of struct bp_location.
1009         (struct target_ops): Add new functions
1010         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1011         to_disable_tracepoint to target operations.
1012         (target_supports_enable_disable_tracepoint): New macro.
1013         (target_enable_tracepoint): New macro.
1014         (target_disable_tracepoint): New macro.
1015         * remote.c (struct remote_state): Add new field.
1016         (remote_enable_disable_tracepoint_feature): New.
1017         (remote_protocol_features): Add new entry.
1018         (remote_supports_enable_disable_tracepoint): New.
1019         (remote_enable_tracepoint): New.
1020         (remote_disable_tracepoint): New.
1021         (init_remote_ops): Add remote_enable_tracepoint,
1022         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1023         to remote operations.
1024         * tracepoint.c (start_tracing): Allow tracing to start without any
1025         tracepoints enabled with just a warning if they can be re-enabled
1026         later.
1027         * NEWS: Add news item for the new behaviour of the enable and disable
1028         GDB commands when applied to tracepoints.
1029         Add news items for the new remote packets QTEnable and QTDisable.
1030
1031 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1032
1033         * config.in: Regenerate.
1034         * configure: Regenerate.
1035         * configure.ac <--with-system-readline> (for readline_echoing_p):
1036         Remove the test.
1037         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1038         (tui_old_rl_echoing_p): ... here.
1039         (tui_setup_io): Rename extern declaration readline_echoing_p to
1040         _rl_echoing_p.  Adjust assignments for the both renames.
1041
1042 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1043
1044         * symtab.c (lookup_symtab): Run cleanup before returning.
1045
1046 2011-05-11  Tom Tromey  <tromey@redhat.com>
1047
1048         * dwarf2read.c (handle_data_member_location): New function.
1049         (dwarf2_add_field): Use it.
1050         (read_common_block): Likewise.
1051
1052 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1053
1054         Make addrs->SECTINDEX always defined.
1055         * symfile.c (relative_addr_info_to_section_offsets): Check for
1056         SECTINDEX -1, not for zero ADDR.
1057         (addrs_section_compar): Remove checking for invalid SECTINDEX.
1058         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1059         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1060         on its validity.
1061
1062 2011-05-10  Doug Evans  <dje@google.com>
1063
1064         * linux-thread-db.c: Whitespace cleanup.
1065         (try_thread_db_load_1): Fix comment.
1066
1067         * linux-thread-db.c (set_libthread_db_search_path): New function.
1068         (_initialize_thread_db): Add setter for libthread-db-search-path.
1069
1070 2011-05-09  Doug Evans  <dje@google.com>
1071
1072         * NEWS: Mention --with-iconv-bin.
1073         * configure.ac: New option --with-iconv-bin.
1074         * configure: Regenerate.
1075         * config.in: Regenerate.
1076         * defs.h (relocate_gdb_directory): Declare.
1077         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1078         removed progname parameter, and exported.  All callers updated.
1079         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1080
1081         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1082         adding missing call to restore_child_signals_mask.
1083
1084 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
1085
1086         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1087         parameter.
1088         * infrun.c (proceed, start_remote): Adjust.
1089         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1090         and adjust to not handle it.
1091         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1092         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1093         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1094         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1095         * windows-nat.c (do_initial_windows_stuff): Adjust.
1096         * infcmd.c (attach_command): Adjust.
1097         (notice_new_inferior): Adjust.
1098
1099 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1100
1101         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1102         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1103         * spu-tdep.c (op_selb): Use correct value.
1104
1105 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
1106
1107         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1108         "parent" parameter to symbol_file_add_from_bfd call.
1109
1110 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
1111             Thiago Jung Bauermann  <bauerman@br.ibm.com>
1112
1113         Implement support for PowerPC BookE masked watchpoints.
1114         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
1115         section.
1116         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1117         method.  Initialize to NULL in all existing breakpoint_ops instances.
1118         (struct breakpoint) <hw_wp_mask>: New field.
1119         * breakpoint.c (is_masked_watchpoint): Add prototype.
1120         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
1121         breakpoint's breakpoint_ops.works_in_software_mode if available.
1122         (watchpoints_triggered): Handle the case of a hardware masked
1123         watchpoint trigger.
1124         (watchpoint_check): Likewise.
1125         (works_in_software_mode_watchpoint): New function.
1126         (insert_masked_watchpoint, remove_masked_watchpoint)
1127         (resources_needed_masked_watchpoint)
1128         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1129         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1130         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1131         functions.
1132         (masked_watchpoint_breakpoint_ops): New structure.
1133         (watch_command_1): Check for the existence of the `mask' parameter.
1134         Set b->ops according to the type of hardware watchpoint being created.
1135         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1136         (ppc_linux_remove_mask_watchpoint)
1137         (ppc_linux_masked_watch_num_registers): New functions.
1138         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1139         to_remove_mask_watchpoint and to_masked_watch_num_registers.
1140         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1141         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1142         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1143         (target_masked_watch_num_registers): New functions.
1144         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1145         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1146         methods.
1147         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1148         (target_masked_watch_num_registers): Add prototypes.
1149
1150 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1151
1152         PR 12573
1153         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1154         (producer_is_gcc_ge_4_0): New function.
1155         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
1156         symtab->language code.
1157         (var_decode_location): Set cu->has_loclist.
1158         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1159         skip.  Intialize force_skip from locations_valid.  Move the prologue
1160         skipping code into two passes.
1161         * symtab.h (struct symtab): Make the primary field a bitfield.  New
1162         field locations_valid.
1163
1164 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1165
1166         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1167         (classify_inner_name): Call cp_lookup_nested_type with
1168         yylval.tsym.type.
1169         * cp-namespace.c (cp_lookup_nested_type): New variable
1170         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
1171         type_name_no_tag_or_error with saved_parent_type.
1172         * dwarf2read.c (load_partial_dies): Read in any children of
1173         DW_TAG_typedef with complaint in such case.
1174         * gdbtypes.c (type_name_no_tag_or_error): New function.
1175         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1176         * valops.c (destructor_name_p): New comment for parameter type.  Remove
1177         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
1178         * value.h (destructor_name_p): Remove type const.
1179
1180 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1181
1182         * symtab.c (compare_symbol_name): New function.
1183         (completion_list_add_name, expand_partial_symbol_name): Call it,
1184         remove the variable ncmp.
1185         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1186         gdb_assert it.
1187
1188 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1189
1190         Demote to sw watchpoint only in update_watchpoint.
1191         * breakpoint.c (update_watchpoint): Change between software and
1192         hardware watchpoint for all kinds of watchpoints, not just
1193         read/write ones.  Determine b->exact value here instead of
1194         in watch_command_1.  Error out if there are not enough resources
1195         for a read or access hardware watchpoint.
1196         (watch_command_1): Remove logic of checking whether there are
1197         enough resources available, since update_watchpoint will do that
1198         work now.  Don't set b->exact here.  Catch exceptions thrown by
1199         update_watchpoint and delete the watchpoint.
1200         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1201         Use target_exact_watchpoints instead.
1202         (delete_breakpoint): Notify observers only if deleted watchpoint
1203         has a breakpoint number assigned to it.
1204
1205 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
1206
1207         * MAINTAINERS: Add myself as a write-after-approval maintainer.
1208
1209 2011-05-05  Jerome Guitton  <guitton@adacore.com>
1210
1211         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1212         New functions.
1213         (i386_stack_tramp_frame_unwind): New static global.
1214         (i386_match_pattern): New function, extracted from i386_match_insn.
1215         (i386_match_insn): Use i386_match_pattern.
1216         (i386_match_insn_block): New function.
1217         (i386_tramp_chain_in_reg_insns)
1218         (i386_tramp_chain_on_stack_insns): New static variables.
1219         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1220         of unwinders.
1221
1222 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
1223
1224         * configure.host (xscale*): Don't handle target.
1225         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1226         handle targets.
1227
1228 2011-05-04  Yao Qi  <yao@codesourcery.com>
1229
1230         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1231
1232 2011-05-03  Joel Brobecker <brobecker@adacore.com>
1233
1234         Revert:
1235         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
1236         | * elfread.c (elf_symtab_read): Stop memory leak.
1237
1238 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
1239
1240         * nto-tdep.c (nto_target): Replace deprecated call to
1241         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1242
1243 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1244
1245         Fix false GCC warning.
1246         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1247
1248 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1249
1250         * breakpoint.c (update_watchpoint): Move code to change
1251         the enable state of breakpoint from here ...
1252         (do_enable_breakpoint): ... to here.
1253
1254 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
1255
1256         * valprint.c (val_print_array_elements): Fixed poor performance
1257         of printing very large arrays with repeat_count_threshold set
1258         to unlimited.  New comment.
1259
1260 2011-04-29  Tom Tromey  <tromey@redhat.com>
1261
1262         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1263         (mi_parse): Likewise.
1264         * breakpoint.c (break_range_command): Use sizeof char*, not
1265         char**.
1266         (create_breakpoint): Likewise.
1267         (parse_breakpoint_sals): Likewise.
1268
1269 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
1270
1271         * linux-nat.c (linux_child_remove_fork_catchpoint)
1272         (linux_child_remove_vfork_catchpoint)
1273         (linux_child_remove_exec_catchpoint): New functions.
1274         (linux_target_install_ops): Install them.
1275
1276 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
1277
1278         PR mi/12531
1279
1280         * varobj.c (install_default_visualizer): Do not install a
1281         visualizer if the varobj is CPLUS_FAKE_CHILD.
1282         (construct_visualizer): Likewise.
1283
1284 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1285
1286         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
1287         case insensitive comparison.
1288
1289 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
1290
1291         * infrun.c (proceed): Revert previous change.
1292         (resume): Instead, handle the case of signal delivery while stepping
1293         off a breakpoint location here, and only if software single-stepping
1294         is used.  Handle nested signals.
1295
1296 2011-04-28  Yao Qi  <yao@codesourcery.com>
1297
1298         * arm-tdep.c (copy_unmodified): Rename to ...
1299         (arm_copy_unmodified): .. this.  New.
1300         (copy_preload): Move common part to ...
1301         (install_preload): .. this.  New.
1302         (arm_copy_preload): New.
1303         (copy_preload_reg): Move common part to ...
1304         (install_preload_reg): ... this.  New.
1305         (arm_copy_preload_reg): New.
1306         (copy_b_bl_blx): Move common part to ...
1307         (install_b_bl_blx): .. this.  New.
1308         (arm_copy_b_bl_blx): New.
1309         (copy_bx_blx_reg): Move common part to ...
1310         (install_bx_blx_reg): ... this. New.
1311         (arm_copy_bx_blx_reg): New.
1312         (copy_alu_reg): Move common part to ...
1313         (install_alu_reg): ... this.  New.
1314         (arm_copy_alu_reg): New.
1315         (copy_alu_shifted_reg): Move common part to ...
1316         (install_alu_shifted_reg): ... this.  New.
1317         (copy_ldr_str_ldrb_strb): Move common part to ...
1318         (install_ldr_str_ldrb_strb): ... this.  New.
1319         (arm_copy_ldr_str_ldrb_strb): New.
1320         (copy_copro_load_store): Move some common part to ...
1321         (install_copy_copro_load_store): ... this.  New.
1322         (arm_copy_copro_load_store): New.
1323         (copy_svc): Delete.
1324         (arm_copy_svc): Renamed from copy_svc.
1325         (copy_undef): Delete.
1326         (arm_copy_undef): Renamed from copy_undef.
1327         (decode_ext_reg_ld_st): Delete.
1328         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1329         (decode_svc_copro): Delete.
1330         (arm_decode_svc_copro): Renamed from decode_svc_copro.
1331         (copy_copro_load_store, copy_alu_imm): update callers.
1332         (copy_extra_ld_st, copy_block_xfer): Likewise.
1333         (decode_misc_memhint_neon, decode_unconditional): Likewise.
1334         (decode_miscellaneous, decode_dp_misc): Likewise.
1335         (decode_ld_st_word_ubyte, decode_media): Likewise.
1336         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1337         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1338         (decode_unconditional, decode_miscellaneous): Likewise.
1339         (decode_media, decode_b_bl_ldmstm): Likewise.
1340         (arm_process_displaced_insn): Likewise..
1341         (decode_misc_memhint_neon): Delete.
1342         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1343         (decode_miscellaneous): Delete.
1344         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1345         (decode_dp_misc): Delete.
1346         (arm_decode_dp_misc): Renamed from decode_dp_misc.
1347         (decode_ld_st_word_ubyte): Delete.
1348         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1349         (decode_media): Delete.
1350         (arm_decode_media): Renamed from decode_media.
1351         (decode_b_bl_ldmstm): Delete.
1352         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1353         (decode_ext_reg_ld_st): Delete.
1354         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1355         (decode_unconditional): Delete.
1356         (arm_decode_unconditional): Renamed from decode_unconditional.
1357
1358 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1359
1360         Case insensitive lookups implementation.
1361         * dwarf2read.c: Include ctype.h.
1362         (struct mapped_index): New field version.
1363         (mapped_index_string_hash): New parameter index_version.  New comment
1364         for it.  Call tolower appropriately.
1365         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1366         Choose the right index version for mapped_index_string_hash.
1367         (dwarf2_read_index): Support also the index version 5.  Initialize the
1368         new struct mapped_index field version.
1369         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1370         (find_slot): Explain the version needs.  Pass INT_MAX for the new
1371         parameter.
1372         (write_psymtabs_to_index): Produce version 5.
1373         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1374         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
1375         * psymtab.c (lookup_partial_symbol): Find the
1376         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1377         entries.
1378         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1379         NAME lowercasing.
1380         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1381         (completion_list_add_name): New variable ncmp, initialize it, use it.
1382         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1383         * utils.c (strcmp_iw): Support case_sensitive_off.
1384         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1385         New function comment part.  New variables saved_string1,
1386         saved_string2 and case_pass.  Add a proper second pass.
1387
1388 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1389
1390         Replace re_comp/re_exec by regcomp/regexec.
1391         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1392         (search_symbols_name_matches): Use them, use regexec.
1393         (search_symbols): New variable retval_chain, adjust the use of
1394         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
1395         search_symbols_data fields, use regexec instead of re_exec.
1396
1397 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1398
1399         Format the code for the next patch.
1400         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1401         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1402         New variables c1 and c2.
1403
1404 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
1405
1406         * infrun.c (proceed): Do not single-step into signal delivery
1407         when stepping off a breakpoint location.
1408         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1409         (insert_step_resume_breakpoint_at_caller): Likewise.
1410         (insert_step_resume_breakpoint_at_sal): Likewise.
1411         (insert_longjmp_resume_breakpoint): Likewise.
1412
1413 2011-04-27  Yao Qi  <yao@codesourcery.com>
1414
1415         * common/linux-ptrace.h: Remove include <sys/wait.h>.
1416
1417 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
1418
1419         * procfs.c (procfs_pass_signals): Fix advance declaration.
1420
1421 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
1422
1423         * target.h (struct target_ops): Remove to_notice_signals;
1424         add to_pass_signals.
1425         (target_notice_signals): Remove.
1426         (target_pass_signals): Add prototype.
1427         * target.c (update_current_target): Remove to_notice_signals;
1428         mention to_pass_signals.
1429         (target_pass_signals): New function.
1430         (debug_to_notice_signals): Remove.
1431         (setup_target_debug): Do not install debug_to_notice_signals.
1432
1433         * infrun.c (signal_pass): New global.
1434         (resume): Call target_pass_signals.
1435         (handle_inferior_event): Report all signals while stepping over
1436         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
1437         are re-inserted when stepping over a signal handler.
1438         (signal_cache_update): New function.
1439         (signal_stop_update): Call it.
1440         (signal_print_update): Likewise.
1441         (signal_pass_update): Likewise.
1442         (handle_command): Call signal_cache_update and target_pass_signals
1443         instead of target_notice_signals.
1444         (_initialize_infrun): Initialize signal_pass.
1445
1446         * linux-nat.c (pass_mask): New global.
1447         (linux_nat_pass_signals): New function.
1448         (linux_nat_create_inferior): Report all signals initially.
1449         (linux_nat_attach): Likewise.
1450         (linux_nat_resume): Use pass_mask to decide whether to directly
1451         handle an inferior signal.
1452         (linux_nat_wait_1): Likewise.
1453         (linux_nat_add_target): Install to_pass_signals callback.
1454
1455         * nto-procfs.c (notice_signals): Remove.
1456         (procfs_resume): Do not call notice_signals.
1457         (procfs_notice_signals): Remove.
1458         (procfs_pass_signals): New function.
1459         (init_procfs_ops): Install to_pass_signals callback instead of
1460         to_notice_signals callback.
1461         (_initialize_procfs): Report all signals initially.
1462
1463         * procfs.c (procfs_notice_signals): Remove.
1464         (procfs_pass_signals): New function.
1465         (procfs_target): Install to_pass_signals callback instead of
1466         to_notice_signals callback.
1467         (register_gdb_signals): Remove.
1468         (procfs_debug_inferior): Report all signals initially.
1469         (procfs_init_inferior): Remove redundant register_gdb_signals call.
1470
1471         * remote.c (remote_pass_signals): Add numsigs and pass_signals
1472         parameters; use them instead of calling signal_..._state routines.
1473         (remote_notice_signals): Remove.
1474         (remote_start_remote): Report all signals initially.
1475         (remote_resume): Do not call remote_pass_signals.
1476         (_initialize_remote): Install to_pass_signals callback instead of
1477         to_notice_signals callback.
1478
1479 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
1480
1481         * breakpoint.c (user_settable_breakpoint): Delete.
1482         (user_breakpoint_p): Remove check on user_settable_breakpoint.
1483         (delete_command): Check user_breakpoint_p instead of looking at
1484         the breakpoint's type.
1485         (disable_command): Ditto.
1486         (enable_command): Ditto.
1487         (delete_trace_command): Use user_breakpoint_p instead of looking
1488         at the breakpoint number directly.  When checking if there are
1489         user visible tracepoints, in order to know whether to ask the user
1490         for confirmation, check whether the breakpoint is actually a
1491         tracepoint.
1492
1493 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
1494
1495         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1496         compilation.
1497
1498 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
1499
1500         MI breakpoint notifications.
1501
1502         * annotate.c (breakpoint_changed): Adjust parameter type.
1503         * breakpoint.c (set_breakpoint_condition): Adjust to change
1504         in breakpoint_modified type.
1505         (breakpoint_set_commands): Likewise.
1506         (do_map_commands_command): Likewise.
1507         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1508         changed after bumping hit count.
1509         (bpstat_stop_status): Likewise.
1510         (print_one_breakpoint_location): Don't wrap in tuple here.
1511         (print_one_breakpoint): Always print individual locations.
1512         For locations, use unnamed tuple.
1513         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1514         has changed.
1515         (create_catchpoint, create_syscall_event_catchpoint): Call
1516         breakpoint_created obsever.
1517         (mention): Don't call breakpoint_created observer.
1518         (create_breakpoint_sal): Call breakpoint_created observer.
1519         (create_breakpoint, watch_command_1): Likewise.
1520         (create_ada_exception_breakpoint): Likewise.
1521         (delete_breakpoint): Call breakpoint_deleted breakpoint.
1522         (locations_are_equal): New.
1523         (update_breakpoint_locations): If locations were changed, notify.
1524         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1525         Call breakpoint_modified observer.
1526
1527         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1528         (mi_cmd_break_insert): Don't set observers for modify and delete.
1529         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1530         (mi_breakpoint_created, mi_breakpoint_deleted)
1531         (mi_breakpoint_modified): New.
1532         (mi_interpreter_init): Hook the above.
1533         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1534         while -break-* commands are executing.
1535         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1536         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1537         (mi_redirect): New.
1538         (mi_ui_out_impl): Hook in mi_redirect.
1539         (mi_field_skip): True to the name, skip the field, don't output
1540         a field with an empty value.
1541
1542         * python/py-breakpoint.c (gdbpy_breakpoint_created)
1543         (gdbpy_breakpoint_deleted): Adjust.
1544         * tui/tui-hooks.c (tui_event_create_breakpoint)
1545         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1546
1547 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
1548
1549         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1550         (procfs_remove_hw_watchpoint): Likewise.
1551
1552 2011-04-26  Michael Walle  <michael@walle.cc>
1553
1554         * remote.c (remote_start_remote): Ack packet after sending the
1555         interrupt sequence.
1556
1557 2011-04-26  Yao Qi  <yao@codesourcery.com>
1558
1559         * linux-nat.c: Move common macros to ...
1560         Include linux-ptrace.h.
1561         * common/linux-ptrace.h: ... here.  New.
1562
1563 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1564
1565         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1566         !objfile_has_partial_symbols.  New comment.
1567         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1568         SYM_READ_PSYMBOLS is not present. Extend the comment.
1569         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1570
1571 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1572
1573         * defs.h (ENUM_BITFIELD): Remove.
1574
1575 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1576             Eli Zaretskii  <eliz@gnu.org>
1577
1578         * NEWS: Document the new gdbserver --once option.
1579
1580 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
1581
1582         * MAINTAINERS: Update my email address.
1583
1584 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1585
1586         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1587         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1588         function call if __STDC_ISO_10646__ macro is defined.
1589         (intermediate_encoding): New prototype.
1590         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1591         to generate compile time error for unsupported gdb_wchar_t size.
1592         (ENDIAN_SUFFIX): New macro.
1593         (intermediate_encoding): New function.
1594
1595 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1596
1597         * ada-lang.c (struct add_partial_datum): Update the comment for
1598         expand_partial_symbol_name.
1599         (ada_add_partial_symbol_completions): Rename to ...
1600         (ada_expand_partial_symbol_name): ... here, change return type, update
1601         function comment, call symbol_completion_match instead of
1602         symbol_completion_add.
1603         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1604         and ada_expand_partial_symbol_name.
1605         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1606         FILE_MATCHER.
1607         (dw2_map_symbol_names): Remove.
1608         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1609         * psymtab.c (map_symbol_names_psymtab): Remove.
1610         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1611         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
1612         order.
1613         (psym_functions): Unlist map_symbol_names_psymtab.
1614         (map_partial_symbol_names): Rename to ...
1615         (expand_partial_symbol_names): ... here, change the FUN type, call
1616         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1617         * psymtab.h (map_partial_symbol_names): Rename to ...
1618         (expand_partial_symbol_names): ... here, change the FUN type.
1619         * symfile.h (struct quick_symbol_functions): Update the description of
1620         expand_symtabs_matching.  Remove map_symbol_names.
1621         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1622         (struct add_name_data): Update the comment for
1623         expand_partial_symbol_name.
1624         (add_partial_symbol_name): Rename to ...
1625         (expand_partial_symbol_name): ... here.  Replace
1626         completion_list_add_name call by strncmp.
1627         (default_make_symbol_completion_list_break_on): Use now
1628         expand_partial_symbol_names and expand_partial_symbol_name.
1629         * symtab.h (enum search_domain): New element ALL_DOMAIN.
1630
1631 2011-04-20  Tom Tromey  <tromey@redhat.com>
1632
1633         * dwarf2read.c (save_gdb_index_command): Replace format
1634         documentation with a pointer to the manual.
1635
1636 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
1637
1638         * regcache.c: Include remote.h.
1639         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1640         (regcache_dump): Handle regcache_dump_remote.
1641         (maintenance_print_remote_registers): New function.
1642         (_initialize_regcache): Install "maint print remote-registers"
1643         command.
1644         * remote.c (map_regcache_remote_table): New function, factored out
1645         from ...
1646         (init_remote_state): ... here.
1647         (remote_register_number_and_offset): New.
1648         * remote.h (remote_register_number_and_offset): Declare.
1649
1650 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
1651
1652         * regcache.c (get_thread_arch_regcache): If creating a regcache for
1653         null_ptid, assume and allow a NULL address space, instead of
1654         asking the target for the ptid's address space.
1655         * infrun.c (ptid_is_pid): Remove assertion.
1656
1657 2011-04-19  Tom Tromey  <tromey@redhat.com>
1658
1659         * windows-tdep.c (windows_xfer_shared_library):
1660         * windows-nat.c (get_module_name, windows_make_so):
1661         * v850-tdep.c (v850_handle_pushm):
1662         * utils.c (null_cleanup, gdb_realpath):
1663         * ui-out.c (get_next_header):
1664         * tracepoint.c (clear_traceframe_info):
1665         * symtab.c (lookup_symtab):
1666         * serial.h (struct serial_ops):
1667         * mipsread.c (read_alphacoff_dynamic_symtab):
1668         * infcmd.c (print_return_value):
1669         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1670         * f-exp.y (parse_number):
1671         * exceptions.c (catch_exceptions):
1672         * dummy-frame.c (dummy_frame_this_id):
1673         * defs.h (struct cleanup):
1674         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1675         * arm-tdep.c (arm_push_dummy_call):
1676         * amd64-tdep.h (amd64_collect_xsave):
1677         * amd64-tdep.c (amd64_collect_xsave):
1678         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1679         * README (typing): Remove duplicate words.
1680         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1681         * infrun.c (siginfo_value_read): Fix typo.
1682         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1683         * top.c (source_line_number): Add comma.
1684
1685 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
1686
1687         * thread.c (any_live_thread_of_process): Prioritize threads
1688         that are not executing.
1689         * gdbthread.h (any_live_thread_of_process): Update comment
1690         as per above change.
1691
1692 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
1693
1694         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1695         (scan_xcoff_symtab): Likewise.
1696
1697 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1698
1699         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1700         inside if clause.
1701
1702 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1703             Pedro Alves  <pedro@codesourcery.com>
1704
1705         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1706         variables to simplify code and avoid == operator at end of
1707         line as this is against GNU coding standards.
1708
1709 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1710
1711         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1712         lm_name to name_lm to avoid conflict with lm_name function.
1713
1714 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1715
1716         ARI fixes: Use only lowercase function name for static functions.
1717         * nto-tdep.c (LM_ADDR): Rename to...
1718         (lm_addr): New function name.
1719         (nto_relocate_section_addresses): Adapt to change above.
1720         * solib-sunos.c (LM_ADDR): Rename to...
1721         (lm_addr): New function name.
1722         (LM_NEXT): Rename to...
1723         (lm_next): New function name.
1724         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1725         function name changes above.
1726         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1727         (lm_addr_from_link_map): New function name.
1728         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1729         (has_lm_dynamic_from_link_map): New function name.
1730         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1731         (lm_dynamic_from_link_map): New function name.
1732         (LM_ADDR_CHECK): Rename to...
1733         (lm_addr_check): New function name.
1734         (LM_NEXT): Rename to...
1735         (lm_next): New function name.
1736         (LM_PREV): Rename to...
1737         (lm_prev): New function name.
1738         (LM_NAME): Rename to...
1739         (lm_name): New function name.
1740         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1741         (ignore_first_link_map_entry): New function name.
1742         (svr4_keep_data_in_core): Adapt to function name changes above.
1743         (svr4_current_sos): Likewise.
1744         (enable_break): Likewise.
1745         (svr4_relocate_section_addresses): Likewise.
1746
1747 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1748
1749         ARI cleanup.
1750         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1751         sprintf. Simplify code and avoid loosing memory.
1752         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1753         (call0_frame_cache): Remove && operator from end of line.
1754
1755 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1756
1757         Fix libraries displacement if they change whether they were prelinked.
1758         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1759         does not match.  Comment why.
1760
1761 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1762
1763         * corelow.c: Include wrapper.h.
1764         (core_open): Call now gdb_target_find_new_threads.
1765         * wrapper.c: Include target.h.
1766         (gdb_target_find_new_threads): New.
1767         * wrapper.h (gdb_target_find_new_threads): New declaration.
1768
1769 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1770
1771         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1772         even if !TARGET_HAS_EXECUTION.
1773
1774 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1775
1776         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1777         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1778         bfd_get_synthetic_symtab.
1779         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1780         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1781         parameter parent, remove the call to add_separate_debug_objfile.
1782         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1783         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1784         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1785         parent, new comment for it, call add_separate_debug_objfile for it.
1786         (symbol_file_add_separate): Pass objfile as the parameter parent,
1787         remove the call to add_separate_debug_objfile.
1788         (symbol_file_add_from_bfd): New parameter parent, pass it.
1789         (symbol_file_add): Pass NULL to the new parameter parent.
1790         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1791
1792 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1793
1794         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1795         BSF_SYNTHETIC.
1796
1797 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1798
1799         Fix Python access to inlined frames.
1800         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1801         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1802
1803 2011-04-15  Tom Tromey  <tromey@redhat.com>
1804
1805         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1806
1807 2011-04-15  Gary Benson  <gbenson@redhat.com>
1808
1809         * MAINTAINERS: Add myself to write-after-approval section.
1810
1811 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
1812
1813         * remote-sim.c (sim_command_completer): New function.
1814         (_initialize_remote_sim): Set completer to sim_command_completer.
1815
1816 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1817
1818         * breakpoint.c (print_exception_catchpoint): Rename to ...
1819         (print_it_exception_catchpoint): ... this.
1820         (gnu_v3_exception_catchpoint_ops): Update with new name
1821         for print_it_exception_catchpoint.
1822
1823 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1824
1825         * MAINTAINERS: Add myself for write after approval privileges.
1826
1827 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
1828
1829         * MAINTAINERS: Add myself as a write-after-approval maintainer.
1830
1831 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1832
1833         * breakpoint.c (watch_command_1): Remove colon from exp_string.
1834
1835 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1836
1837         * breakpoint.c (save_breakpoints): Verify whether
1838         breakpoint_ops.print_recreate is defined before calling it.
1839
1840 2011-04-11  Gary Benson  <gbenson@redhat.com>
1841
1842         Fix failure with --enable-maintainer-mode.
1843         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1844
1845 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1846
1847         Code cleanup.
1848         * symtab.c (search_symbols): Reorder the KIND description in the
1849         function comment.  Remove the unused 4th element of types, types2,
1850         types3 and types4.  New gdb_assert on KIND.
1851         (symtab_symbol_info): Remove the unused 4th element of classnames.
1852         New gdb_assert on KIND.
1853         * symtab.h (enum search_domain): New warning in the enum comment.
1854         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1855         TYPES_DOMAIN.
1856
1857 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1858
1859         Fix crash of gdb save-index on a STABS file.
1860         * dwarf2read.c (write_psymtabs_to_index): Return also on no
1861         PSYMTABS_ADDRMAP.
1862
1863 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1864
1865         Fix DW_AT_accessibility compatibility with gcc-4.6+.
1866         * dwarf2read.c: Include ctype.h.
1867         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1868         functions.
1869         (dwarf2_add_field): Fix new_field->accessibility by calling
1870         dwarf2_default_access_attribute.  Restructure setting accessibility
1871         vs. virtuality.
1872         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
1873         is_private and is_protected by calling
1874         dwarf2_default_access_attribute.
1875
1876 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
1877
1878         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1879         to the initialization.
1880
1881 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
1882
1883         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1884         initalization.
1885
1886 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
1887
1888         Remove support for old Cygwin 1.5 versions.
1889         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1890         function on old Cygwin version.
1891         * windows-nat.c: Remove cygwin version check and always define
1892         __USEWIDE for Cygwin compilation.
1893
1894 2011-04-07  Yao Qi  <yao@codesourcery.com>
1895
1896         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1897         and TO.
1898         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1899         (arm_copy_svc): Remove parameters INSN and TO.
1900         (decode_svc_copro): Update caller.
1901         * arm-tdep.h (struct displaced_step_closure): Remove parameters
1902         from function pointer `copy_svc_os'.
1903
1904 2011-04-07  Yao Qi  <yao@codesourcery.com>
1905
1906         * arm-tdep.c (cleanup_branch): Set a correct return address in
1907         LR for ARM and Thumb.
1908
1909 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1910
1911         Code cleanup.
1912         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1913         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1914         in the function comment, a new note on values compatibility.
1915         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1916         * symtab.h (SYMBOL_HASH_NEXT): New.
1917
1918 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1919
1920         * ppc-linux-nat.c (check_condition): Add len output parameter.
1921         Set it based on the memory region referenced in the condition
1922         expression.  Update all callers.
1923
1924 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1925
1926         Fix crash regression on systems featuring .gdb_index.
1927         * objfiles.c (free_objfile): Move the
1928         forget_cached_source_info_for_objfile call earlier.  Comment it.
1929         Extend the comment for objfile_free_data.
1930
1931 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1932
1933         Fix regression of displaying the debug format.
1934         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1935         subfile.
1936
1937 2011-04-04  Tom Tromey  <tromey@redhat.com>
1938
1939         * cli/cli-interp.c (struct captured_execute_command_args):
1940         Remove.
1941         (do_captured_execute_command): Remove.
1942         (safe_execute_command): Use TRY_CATCH.
1943         * cli/cli-script.c (struct wrapped_read_command_file_args):
1944         Remove.
1945         (wrapped_read_command_file): Remove.
1946         (script_from_file): Use TRY_CATCH.
1947         * exceptions.c (catch_exception): Remove.
1948         * exceptions.h (catch_exception): Remove.
1949         (deprecated_throw_reason): Update comment.
1950         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1951         argument to 'context'.
1952         (mi_execute_command): Use TRY_CATCH.
1953         * remote.c (struct start_remote_args): Remove.
1954         (remote_start_remote): Update; change arguments.
1955         (remote_open_1): Use TRY_CATCH.
1956
1957 2011-04-04  Tom Tromey  <tromey@redhat.com>
1958
1959         * tracepoint.c (scope_info): Update.
1960         * symtab.c (decode_line_spec): Update.
1961         * python/python.c (gdbpy_decode_line): Update.
1962         * linespec.h (decode_line_1): Update.
1963         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1964         (decode_compound, find_method, symtab_from_filename)
1965         (decode_variable): Likewise.
1966         * cli/cli-cmds.c (edit_command): Update.
1967         (list_command): Update.
1968         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1969         argument.
1970         (create_breakpoint): Update.
1971         (until_break_command): Update.
1972         (addr_string_to_sals): Update.
1973         (decode_line_spec_1): Update.
1974
1975 2011-04-04  Tom Tromey  <tromey@redhat.com>
1976
1977         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1978         (do_captured_parse_breakpoint): Remove.
1979         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
1980         Use TRY_CATCH directly.
1981
1982 2011-04-04  Tom Tromey  <tromey@redhat.com>
1983
1984         * symtab.h (free_symtab): Remove.
1985         (forget_cached_source_info_for_objfile): Declare.
1986         * symmisc.c (free_symtab): Remove.
1987         * source.c (forget_cached_source_info_for_objfile): New function.
1988         (forget_cached_source_info): Use it.
1989         * objfiles.c (free_objfile): Simplify check before calling
1990         clear_current_source_symtab_and_line.  Call
1991         forget_cached_source_info_for_objfile.
1992
1993 2011-04-04  Tom Tromey  <tromey@redhat.com>
1994
1995         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1996         (new_symtab): Don't set `free_code' on symtab.
1997         (new_linetable): Properly handle size==0.
1998         * symtab.h (struct symtab) <free_code, free_func>: Remove.
1999         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
2000         free_func.
2001         * jv-lang.c (struct jv_per_objfile_data): New.
2002         (jv_per_objfile_free): Free the data.
2003         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2004         (get_java_class_symtab): Set the `dict' field on the
2005         jv_per_objfile_data.
2006         (free_class_block): Remove.
2007         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2008         the symtab.
2009
2010 2011-04-04  Tom Tromey  <tromey@redhat.com>
2011
2012         * symfile.c (reread_symbols): Update.
2013         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2014         field.
2015         * objfiles.c (allocate_objfile): Update.
2016         * cp-support.h (cp_check_possible_namespace_symbols): Don't
2017         declare.
2018         * cp-namespace.c (lookup_symbol_file): Don't call
2019         lookup_possible_namespace_symbol.
2020         (initialize_namespace_symtab, get_possible_namespace_block)
2021         (free_namespace_block, cp_check_possible_namespace_symbols)
2022         (check_possible_namespace_symbols_loop)
2023         (check_one_possible_namespace_symbol)
2024         (lookup_possible_namespace_symbol): Remove.
2025         (maintenance_cplus_namespace): Replace with notice.
2026         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2027
2028 2011-04-04  Tom Tromey  <tromey@redhat.com>
2029
2030         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2031         * symtab.h (struct symtab) <producer, debugformat>: Now const.
2032         * symmisc.c (free_symtab): Don't free debugformat.
2033         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2034         (record_debugformat, record_producer): Document.
2035         * buildsym.c (end_symtab): Don't save debugformat and producer
2036         names on obstack.
2037         (end_symtab): Don't free debugformat and producer fields.
2038         (record_debugformat): Don't call xstrdup.
2039         (record_producer): Likewise.
2040
2041 2011-04-04  Tom Tromey  <tromey@redhat.com>
2042
2043         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2044         (source_line_charpos, source_charpos_line): Remove.
2045
2046 2011-04-04  Tom Tromey  <tromey@redhat.com>
2047
2048         * symtab.h (domain_enum): Split in two...
2049         (enum search_domain): New.
2050         (search_symbols): Update.
2051         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2052         redundant declarations.
2053         (search_symbols): Change 'kind' argument to search_domain.
2054         Update.
2055         (print_symbol_info): Likewise.
2056         (symtab_symbol_info): Likewise.
2057         * symfile.h (struct quick_symbol_functions)
2058         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2059         <expand_symtabs_matching>: Likewise.
2060         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2061         (expand_symtabs_matching_via_partial): Update.
2062         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2063         (dw2_expand_symtabs_for_function): Update.
2064         * block.h: Moved anonymous enum...
2065         * defs.h (enum block_enum): ... here.  Now named.
2066
2067 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
2068
2069         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2070         * version.in: Bump version to 7.3.50.20110403-cvs.
2071
2072 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
2073
2074         * NEWS: Create a new section for the next release branch.
2075         Rename the section of the current branch, now that it has
2076         been cut.
2077
2078 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
2079
2080         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2081         for "fpscr" in target description.
2082
2083 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2084
2085         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2086         initialize it.  Delay HASH initialization.  Strip the part after open
2087         parenthesis for languages with qualifiers.  Call do_cleanups.
2088
2089 2011-04-01  Tom Tromey  <tromey@redhat.com>
2090
2091         * utils.c (report_command_stats): Don't print `-' for negative
2092         number.
2093
2094 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
2095
2096         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2097         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2098         typedefs.
2099
2100 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
2101
2102         * breakpoint.h (bpdisp_text): Add declaration.
2103         * breakpoint.c (bpdisp_text): Make non-static.
2104         * ada-lang.c: #include "mi/mi-common.h".
2105         (print_it_exception): Rewrite to improve GDB/MI output.
2106
2107 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
2108
2109         * arm-tdep.h (struct address_space): Add forward declaration.
2110
2111 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
2112
2113         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2114         * arm-tdep.c (arm_override_mode): New global.
2115         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
2116         execution mode heuristics.
2117         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2118         second single-step breakpoint if needed, using
2119         arm_insert_single_step_breakpoint.
2120         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
2121         ARM execution mode, do not call thumb_get_next_pc_raw.
2122         (arm_get_next_pc): Encode execution mode in return value.  Call
2123         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2124         (arm_insert_single_step_breakpoint): New function.
2125         (arm_software_single_step): Call it.
2126         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2127         argument to return execution mode of sigreturn target.
2128         (arm_linux_syscall_next_pc): Use it.
2129         (arm_linux_copy_svc): Update call.
2130         (arm_linux_software_single_step): Call
2131         arm_insert_single_step_breakpoint.
2132
2133 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2134
2135         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2136         the comment.
2137
2138 2011-03-31  Tom Tromey  <tromey@redhat.com>
2139
2140         * varobj.c (update_dynamic_varobj_children): Properly handle
2141         errors from iterator.
2142
2143 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2144
2145         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
2146         struct linkage name twice.
2147
2148 2011-03-31  Tom Tromey  <tromey@redhat.com>
2149
2150         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2151         missing ">" to message.
2152
2153 2011-03-31  Tom Tromey  <tromey@redhat.com>
2154
2155         * varobj.c (instantiate_pretty_printer): Remove duplicate
2156         'return'.
2157
2158 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
2159
2160         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2161         if neither saved value nor register available (e.g. signal frame).
2162
2163 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2164
2165         * macroexp.c (expand): Avoid uninitialized variable
2166         compiler warning.
2167
2168 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2169
2170         * breakpoint.c (break_range_command): Fix typo in comment.
2171
2172 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2173             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
2174
2175         Implement support for PowerPC BookE ranged breakpoints.
2176         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2177         * breakpoint.h (struct bp_target_info) <length>: New member
2178         variable.
2179         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2180         instead of struct breakpoint as argument, and also add ASPACE
2181         and BP_ADDR arguments.  Update all callers.
2182         (struct breakpoint_ops) <print_one_detail>: New method.
2183         (struct breakpoint) <addr_string_range_end>: New member variable.
2184         * breakpoint.c (breakpoint_location_address_match): Add function
2185         prototype.
2186         (insert_bp_location): Set bl->target_info.length.
2187         (breakpoint_here_p): Call breakpoint_location_address_match.
2188         (moribund_breakpoint_here_p): Likewise.
2189         (regular_breakpoint_inserted_here_p): Likewise.
2190         (breakpoint_thread_match): Likewise.
2191         (bpstat_stop_status): Likewise.
2192         (bpstat_check_location): Move call to
2193         breakpoint_ops.breakpoint_hit to the top.
2194         (print_one_breakpoint_location): Call
2195         breakpoint_ops.print_one_detail if available.
2196         (breakpoint_address_match_range): New function.
2197         (breakpoint_location_address_match): Likewise.
2198         (breakpoint_locations_match): Compare the length field of the
2199         locations too.
2200         (hw_breakpoint_used_count): Count resources used by all locations
2201         in a breakpoint, and use breakpoint_ops.resources_needed if
2202         available.
2203         (breakpoint_hit_ranged_breakpoint): New function.
2204         (resources_needed_ranged_breakpoint): Likewise.
2205         (print_it_ranged_breakpoint): Likewise.
2206         (print_one_ranged_breakpoint): Likewise.
2207         (print_one_detail_ranged_breakpoint): Likewise.
2208         (print_mention_ranged_breakpoint): Likewise.
2209         (print_recreate_ranged_breakpoint): Likewise.
2210         (ranged_breakpoint_ops): New structure.
2211         (find_breakpoint_range_end): New function.
2212         (break_range_command): Likewise.
2213         (delete_breakpoint): Free addr_string_range_end.
2214         (update_breakpoint_locations): Add SALS_END argument.  Update
2215         all callers.  Calculate breakpoint length if a non-zero SALS_END
2216         is given.  Call breakpoint_locations_match instead of
2217         breakpoint_address_match.
2218         (reset_breakpoint): Find SaL of the end of the range if B is a
2219         ranged breakpoint.
2220         (_initialize_breakpoint): Register break-range command.
2221         * defs.h (print_core_address): Add function prototype.
2222         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2223         function.
2224         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2225         (ppc_linux_remove_hw_breakpoint): Likewise.
2226         (_initialize_ppc_linux_nat): Initialize
2227         to_ranged_break_num_registers.
2228         * target.c (update_current_target): Add comment about
2229         to_ranged_break_num_registers.
2230         (target_ranged_break_num_registers): New function.
2231         * target.h (struct target_ops) <to_ranged_break_num_registers>:
2232         New method.
2233         (target_ranged_break_num_registers): Add function prototype.
2234         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2235         * utils.c (print_core_address): ... here.
2236
2237 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
2238
2239         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2240         variable compiler warning.
2241
2242 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2243
2244         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2245         code from here ...
2246         (re_set_breakpoint): ... to here ...
2247         (addr_string_to_sals): ... and here.
2248
2249 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
2250
2251         * Makefile.in (SFILES): Add missing C sources.
2252         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2253         Add missing headers.
2254
2255 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
2256
2257         * .gitignore: New file.
2258
2259 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
2260
2261         * NEWS: Mention new cfi device simulation.
2262
2263 2011-03-29  Tom Tromey  <tromey@redhat.com>
2264
2265         * dwarf2read.c (fixup_partial_die): Handle linkage name on
2266         otherwise anonymous types.
2267         (dwarf2_name): Likewise.
2268         * valops.c (value_struct_elt_for_reference): Refine artificial
2269         type logic.  Call error if j==-1.
2270
2271 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
2272
2273         Fix false GCC warning.
2274         * infcall.c (find_function_addr): Initialize funaddr.
2275
2276 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
2277
2278         Fix mingw compilation with --enable-targets=all.
2279         * remote-mips.c (gdb_usleep.h): Include header.
2280         (mips_enter_debug): Use gdb_usleep instead of sleep.
2281
2282 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2283
2284         Support resolution of STT_GNU_IFUNC via breakpoints.
2285         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2286         bp_gnu_ifunc_resolver_return.
2287         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2288         the loop.  Support bp_gnu_ifunc_resolver and
2289         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
2290         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2291         breakpoints.
2292         (bptype_string, print_one_breakpoint_location): Support
2293         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2294         (user_settable_breakpoint): Return true also for
2295         bp_gnu_ifunc_resolver.
2296         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2297         bp_gnu_ifunc_resolver_return.
2298         (set_breakpoint_location_function): New parameter explicit_loc,
2299         describe it.  Call find_pc_partial_function_gnu_ifunc with new
2300         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2301         EXPLICIT_LOC is not set.
2302         (set_raw_breakpoint): Set EXPLICIT_LOC for
2303         set_breakpoint_location_function.
2304         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2305         set_breakpoint_location_function.
2306         (mention): Support bp_gnu_ifunc_resolver and
2307         bp_gnu_ifunc_resolver_return.
2308         (add_location_to_breakpoint): Set EXPLICIT_LOC for
2309         set_breakpoint_location_function.
2310         (update_breakpoint_locations): Remove static.
2311         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2312         bp_gnu_ifunc_resolver_return.
2313         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2314         bp_gnu_ifunc_resolver_return.
2315         (update_breakpoint_locations): New declaration.
2316         * elfread.c: Include gdbthread.h and regcache.h.
2317         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2318         functions.
2319         (elf_gnu_ifunc_fns): Install them.
2320         * minsyms.c (stub_gnu_ifunc_resolver_stop)
2321         (stub_gnu_ifunc_resolver_return_stop): New functions.
2322         (stub_gnu_ifunc_fns): Install them.
2323         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2324         and gnu_ifunc_resolver_return_stop.
2325         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2326
2327 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2328
2329         STT_GNU_IFUNC reader implementation.
2330         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2331         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2332         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2333         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2334         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2335         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2336         (elf_gnu_ifunc_resolve_addr): New.
2337         (elf_symfile_read): Call elf_rel_plt_read.
2338         (elf_gnu_ifunc_fns): New.
2339         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2340         Install elf_gnu_ifunc_fns.
2341         * infcall.c (find_function_return_type): New function.
2342         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2343         * minsyms.c (stub_gnu_ifunc_resolve_addr)
2344         (stub_gnu_ifunc_resolve_name): New functions.
2345         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2346         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2347         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2348
2349 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2350
2351         Code cleanup for later STT_GNU_IFUNC support.
2352         * infcall.c (find_function_addr): Remove variable code, use explicit
2353         dereferences for it.  Move VALUE_TYPE initialization later.
2354
2355 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2356
2357         GDB find_pc_partial_function support for STT_GNU_IFUNC.
2358         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2359         (clear_pc_function_cache): Clear it.
2360         (find_pc_partial_function): Rename to ...
2361         (find_pc_partial_function_gnu_ifunc): ... this function.  New
2362         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
2363         (find_pc_partial_function): New wrapper for this function.
2364         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2365
2366 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2367
2368         GDB internal type support for STT_GNU_IFUNC.
2369         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2370         (elf_symtab_read): Set mst_text_gnu_ifunc for
2371         BSF_GNU_INDIRECT_FUNCTION.
2372         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2373         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2374         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2375         nodebug_got_plt_symbol.
2376         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2377         (TYPE_GNU_IFUNC): New.
2378         (struct main_type): New field flag_gnu_ifunc.
2379         (struct builtin_type): New field builtin_func_func.
2380         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2381         nodebug_got_plt_symbol.
2382         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2383         (in_gnu_ifunc_stub): New.
2384         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2385         mst_text_gnu_ifunc.
2386         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
2387         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
2388         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2389         in_gnu_ifunc_stub.
2390         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2391         * symtab.c (search_symbols): Likewise.
2392         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2393         and mst_slot_got_plt.
2394         (in_gnu_ifunc_stub): New declaration.
2395
2396 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2397
2398         Support a ring of related breakpoints.
2399         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2400         other functions, add gdb_assert.
2401         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
2402         watchpoint_del_at_next_stop.
2403         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2404         (bpstat_stop_status): Handle ring in related_breakpoint.
2405         (set_raw_breakpoint_without_location): Initialize ring in
2406         related_breakpoint.
2407         (delete_breakpoint): Handle ring in related_breakpoint, use
2408         watchpoint_del_at_next_stop.
2409         (map_breakpoint_numbers): Handle ring in related_breakpoint.
2410
2411 2011-03-28  Tom Tromey  <tromey@redhat.com>
2412
2413         PR symtab/12441:
2414         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2415         with `language_minimal'.
2416
2417 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
2418
2419         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2420         instead of checking for STT_ARM_TFUNC symbol type.
2421
2422 2011-03-25  Tom Tromey  <tromey@redhat.com>
2423
2424         * linespec.c (symbol_found): Restore line-based result for
2425         non-LOC_LABEL symbols.
2426
2427 2011-03-25  Kai Tietz  <ktietz@redhat.com>
2428
2429         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2430         instead of strcmp for comparison.
2431         (tui_source_is_displayed): Likewise.
2432         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2433
2434 2011-03-24  Mark Wielaard  <mjw@redhat.com>
2435
2436         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2437         complaint.
2438         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2439         (find_partial_die_in_comp_unit): Likewise in comment.
2440         (read_attribute_value): Likewise.
2441         (lookup_die_type): Likewise.
2442         (dwarf_form_name): Likewise.
2443         (dump_die_shallow): Likewise.
2444         (follow_die_ref_or_sig): Likewise.
2445
2446 2011-03-24  Tom Tromey  <tromey@redhat.com>
2447
2448         PR breakpoints/11816:
2449         * linespec.c (decode_line_1): Parse `function:label' linespecs.
2450         (decode_compound): Update.
2451         (find_function_symbol): New function.
2452         (decode_dollar): Update.
2453         (decode_label): Add 'function_symbol' parameter.  Handle
2454         function-relative labels.
2455         (decode_variable): Update.
2456         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
2457         not its line.  Set `special_display' and canonical name for
2458         labels.
2459
2460 2011-03-24  Tom Tromey  <tromey@redhat.com>
2461
2462         * linespec.h (struct linespec_result) <special_display>: New
2463         field.
2464         * breakpoint.h (struct breakpoint) <display_canonical>: New
2465         field.
2466         * breakpoint.c (print_breakpoint_location): Respect
2467         display_canonical.
2468         (create_breakpoint_sal): Add 'display_canonical' parameter.
2469         (create_breakpoints_sal): Update.
2470         (create_breakpoint): Update.
2471
2472 2011-03-24  Tom Tromey  <tromey@redhat.com>
2473
2474         * symtab.c (decode_line_spec): Update.
2475         * linespec.c (build_canonical_line_spec): Change type of
2476         'canonical'.
2477         (decode_line_2, decode_line_1, decode_objc, decode_compound)
2478         (find_method, decode_all_digits, decode_dollar, decode_label)
2479         (symbol_found): Likewise.
2480         (init_linespec_result): New function.
2481         * breakpoint.c (struct captured_parse_breakpoint_args)
2482         <canonical_p>: New field, replaces addr_string_p.
2483         (create_breakpoints_sal): Add 'canonical' parameter, replacing
2484         'addr_string'.
2485         (parse_breakpoint_sals): Likewise.
2486         (do_captured_parse_breakpoint): Update.
2487         (create_breakpoint): Use struct linespec_result.
2488         (until_break_command): Update.
2489         (breakpoint_re_set_one): Update.
2490         (decode_line_spec_1): Update.
2491         * linespec.h (struct linespec_result): New.
2492         (init_linespec_result): Declare.
2493
2494 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
2495
2496         * regcache.c (regcache_raw_read): If the target didn't supply a
2497         given raw register, mark it as unavailable.
2498
2499 2011-03-23  Kai Tietz  <ktietz@redhat.com>
2500
2501         * breakpoint.c (clear_command): Use filename_cmp
2502         instead of strcmp for comparison.
2503         * buildsym.c (watch_main_source_file_lossage): Likewise.
2504         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2505         checking just for slash.
2506         * dbxread.c (read_dbx_symtab): Use lbasename instead of
2507         strrchr and filename_cmp instead of strcmp for filenames.
2508         (add_old_header_file): Use filename_cmp
2509         instead of strcmp for comparison.
2510         * exec.c (exec_set_section_address): Likewise.
2511         * macrotab.c (macro_lookup_inclusion): Likewise.
2512         (macro_lookup_inclusion): Likewise.
2513         * elfread.c (_initialize_elfread): Likewise.
2514         (elfstab_offset_sections): Likewise.
2515         (elfstab_offset_sections): Use lbasename instead of
2516         strrchr.
2517         * mdebugread.c (parse_partial_symbols): Likewise.
2518         (arse_partial_symbols): Use filename_(n)cmp instead of
2519         str(n)cmp for comparison.
2520         * minsyms.c (lookup_minimal_symbol): Likewise.
2521         * psymtab.c (read_psymtabs_with_filename): Likewise.
2522         * solib.c (solib_read_symbols): Likewise.
2523         (reload_shared_libraries_1): Likewise.
2524         * symmisc.c (maintenance_print_symbols): Likewise.
2525         * symfile.c (separate_debug_file_exists): Likewise.
2526         (reread_symbols): Likewise.
2527         (find_separate_debug_file_by_debuglink): Likewise.
2528         * remote-fileio.c (remote_fileio_func_rename): Likewise.
2529         * source.c (add_path): Likewise.
2530         * symtab.c (filename_seen): Likewise.
2531         (file_matches): Likewise.
2532         (print_symbol_info): Likewise.
2533         (maybe_add_partial_symtab_filename): Likewise.
2534         (make_source_files_completion_list): Likewise.
2535         * xml-syscall.c (init_sysinfo): Likewise.
2536         * windows-nat.c (_initialize_check_for_gdb_ini): Use
2537         IS_DIR_SEPARATOR for checking for trailing path separator.
2538
2539 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2540
2541         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
2542         label abort_expression.
2543         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2544         DWARF_VALUE_OPTIMIZED_OUT.
2545
2546 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2547
2548         Code cleanup.
2549         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2550         to linkage_name.  Invert its value.  Update the function comment.
2551         (c_type_print_varspec_suffix): Invert it at the caller.
2552         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2553
2554 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
2555
2556         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2557         errors when reading the `stop_pc'.
2558         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2559         get_frame_pc.
2560
2561 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
2562
2563         * NEWS: Document gdb.Write stream keyword.
2564
2565 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2566
2567         Revert:
2568         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2569         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2570         (dwarf2_add_field): Fix new_field->accessibility for
2571         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2572
2573 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
2574
2575         PR python/12183
2576
2577         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2578         other error classes.  Do not print stack trace.
2579
2580 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2581
2582         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2583         (dwarf2_add_field): Fix new_field->accessibility for
2584         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2585
2586 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
2587
2588         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2589         encountering a load via a non-SP register.
2590
2591 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
2592
2593         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2594         field in returned unwinder.
2595
2596 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2597
2598         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2599
2600 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
2601
2602         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2603         of xmalloc.
2604
2605 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
2606
2607         * frame.c (frame_unwind_register): Throw an error if unwinding the
2608         register failed.
2609         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2610         an unwind stop reason.
2611         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2612         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2613         UNWIND_UNAVAILABLE>: New.
2614         * inline-frame.c (inline_frame_unwind): Install
2615         default_frame_unwind_stop_reason.
2616         * frame-unwind.c: Include "exceptions.h".
2617         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2618         (default_frame_unwind_stop_reason): New.
2619         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2620         (default_frame_unwind_stop_reason): Declare.
2621         (struct frame_unwind) <stop_reason>: New function pointer.
2622
2623         * dummy-frame.c: Install default_frame_unwind_stop_reason.
2624         * dwarf2-frame.c: Include exceptions.h.
2625         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2626         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2627         computing the CFA.  If such an error was thrown, set
2628         unavailable_retaddr.
2629         (dwarf2_frame_unwind_stop_reason): New.
2630         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2631         unavailable.
2632         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2633         (dwarf2_signal_frame_unwind): Ditto.
2634
2635         * amd64-tdep.c: Include "exceptions.h".
2636         (struct amd64_frame_cache): New field "base_p".
2637         (amd64_init_frame_cache): Clear it.
2638         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2639         Avoid reading registers with functions that throw if the register
2640         is not necessary to compute the frame base.
2641         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2642         swallowing NOT_AVAILABLE_ERROR.
2643         (amd64_frame_unwind_stop_reason): New.
2644         (amd64_frame_this_id): Don't build a frame id if the frame base
2645         was unavailable.
2646         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2647         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2648         base_p if the frame base was computable.
2649         (amd64_sigtramp_frame_unwind_stop_reason): New.
2650         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2651         frame base was unavailable.
2652         (amd64_sigtramp_frame_unwind): Install
2653         amd64_sigtramp_frame_unwind_stop_reason.
2654         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2655         base_p if the frame base was computable.
2656         (amd64_epilogue_frame_unwind_stop_reason): New.
2657         (amd64_epilogue_frame_this_id): Don't build a frame id if the
2658         frame base was unavailable.
2659         (amd64_epilogue_frame_unwind): Install
2660         amd64_epilogue_frame_unwind_stop_reason.
2661         * i386-tdep.c: Include "exceptions.h".
2662         (struct i386_frame_cache): New field "base_p".
2663         (i386_init_frame_cache): Clear it.
2664         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2665         Avoid reading registers with functions that throw if the register
2666         is not necessary to compute the frame base.
2667         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2668         swallowing NOT_AVAILABLE_ERROR.
2669         (i386_frame_unwind_stop_reason): New.
2670         (i386_frame_this_id): Don't build a frame id if the frame base was
2671         unavailable.
2672         (i386_frame_prev_register): Handle unavailable SP.
2673         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2674         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2675         base_p if the frame base was computable.
2676         (i386_epilogue_frame_unwind_stop_reason): New.
2677         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2678         base was unavailable.
2679         (i386_epilogue_frame_unwind): Install
2680         i386_epilogue_frame_unwind_stop_reason.
2681         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2682         base_p if the frame base was computable.
2683         (i386_sigtramp_frame_unwind_stop_reason): New.
2684         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2685         base was unavailable.
2686         (i386_sigtramp_frame_unwind): Install
2687         i386_sigtramp_frame_unwind_stop_reason.
2688         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2689         type's size, not the register's.
2690         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2691
2692         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2693         default_frame_unwind_stop_reason.
2694         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2695         (alpha_heuristic_frame_unwind): Ditto.
2696         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2697         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2698         * avr-tdep.c (avr_frame_unwind): Ditto.
2699         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2700         Ditto.
2701         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2702         * frv-tdep.c (frv_frame_unwind): Ditto.
2703         * h8300-tdep.c (h8300_frame_unwind): Ditto.
2704         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2705         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2706         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2707         (hppa_stub_frame_unwind): Ditto.
2708         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2709         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2710         (ia64_libunwind_frame_unwind)
2711         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2712         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2713         * lm32-tdep.c (lm32_frame_unwind): Ditto.
2714         * m32c-tdep.c (m32c_unwind): Ditto.
2715         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2716         * m32r-tdep.c (m32r_frame_unwind): Ditto.
2717         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2718         * m68k-tdep.c (m68k_frame_unwind): Ditto.
2719         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2720         * m88k-tdep.c (m88k_frame_unwind): Ditto.
2721         * mep-tdep.c (mep_frame_unwind): Ditto.
2722         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2723         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2724         (mips_stub_frame_unwind): Ditto.
2725         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2726         * moxie-tdep.c (moxie_frame_unwind): Ditto.
2727         * mt-tdep.c (mt_frame_unwind): Ditto.
2728         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2729         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2730         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2731         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2732         (s390_sigtramp_frame_unwind): Ditto.
2733         * score-tdep.c (score_prologue_unwind): Ditto.
2734         * sh-tdep.c (sh_frame_unwind): Ditto.
2735         * sh64-tdep.c (sh64_frame_unwind): Ditto.
2736         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2737         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2738         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2739         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2740         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2741         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2742         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2743         (sparc64obsd_trapframe_unwind): Ditto.
2744         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2745         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2746         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2747         * v850-tdep.c (v850_frame_unwind): Ditto.
2748         * vax-tdep.c (vax_frame_unwind): Ditto.
2749         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2750         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2751         * xtensa-tdep.c (xtensa_unwind): Ditto.
2752
2753 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2754
2755         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2756         there's always a frame.  Use get_frame_pc_if_available instead of
2757         get_frame_pc, and if there's no PC available, don't look up a
2758         symtab.
2759
2760 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2761
2762         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2763         unavailable PC.
2764
2765 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2766
2767         * tracepoint.c (set_traceframe_context): Handle unavailable PC
2768         gracefully.
2769
2770 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2771
2772         * frame.h (frame_unwind_caller_pc_if_available): Declare.
2773         * frame.c (frame_unwind_caller_pc_if_available): New.
2774         * stack.c (frame_info): Handle unavailable PC.
2775
2776 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2777
2778         * frame.c (frame_unwind_pc): Rename to ...
2779         (frame_unwind_pc_if_available): ... this.  New `pc' output
2780         parameter.  Change return type to int.  Gracefully handle
2781         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
2782         happened, or 1 otherwise.
2783         (frame_unwind_pc): Reimplement on top of
2784         frame_unwind_pc_if_available.
2785         (get_frame_func): Rename to ...
2786         (get_frame_func_if_available): New `pc' output parameter.  Change
2787         return type to int.  Gracefully handle the PC not being available.
2788         (get_frame_func): Reimplement on top of
2789         get_frame_func_if_available.
2790         (select_frame): Handle the PC being unavailable.
2791         (get_prev_frame): Handle the PC being unavailable.
2792         (get_frame_pc_if_available): New.
2793         (get_frame_address_in_block_if_available): New.
2794         (find_frame_sal): Handle the frame PC not being available.
2795         * frame.h (get_frame_pc_if_available): Declare.
2796         (get_frame_address_in_block_if_available): Declare.
2797         (get_frame_func_if_available): Declare.
2798         * stack.c (print_frame_info): Handle the PC being unavailable.
2799         (find_frame_funname): Ditto.
2800         (print_frame): Handle the PC being unavailable.
2801         (get_frame_language): Ditto.
2802         * blockframe.c (get_frame_block): Ditto.
2803         * macroscope.c (default_macro_scope): Ditto.
2804         * tui/tui-stack.c (tui_show_frame_info): Ditto.
2805
2806 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2807
2808         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2809         NOT_AVAILABLE_ERROR when evaluating the location expression.
2810
2811 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2812
2813         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2814         returning that the register piece is unavailable/optimized out.
2815         (write_pieced_value): Handle get_frame_register_bytes returning
2816         that the register piece is unavailable/optimized out when doing a
2817         read-modify write of a bitfield.
2818         * findvar.c (value_from_register): Handle get_frame_register_bytes
2819         returning that the register piece is unavailable/optimized out.
2820         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2821         and `unavailablep'.  Throw error on bad debug info.  Use
2822         frame_register instead of frame_register_read, to fill in the new
2823         arguments.
2824         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2825         and `unavailablep'.
2826         * valops.c: (value_assign): Adjust, and handle
2827         get_frame_register_bytes failing.
2828         * spu-tdep.c: Include exceptions.h.
2829         (spu_software_single_step): Adjust, and handle
2830         get_frame_register_bytes failing.
2831         (spu_get_longjmp_target): Ditto.
2832         * gdbarch.sh (register_to_value): Change to return int.  New
2833         parameters `optimizedp' and `unavailablep'.
2834         * gdbarch.h, gdbarch.c: Regenerate.
2835         * i386-tdep.c (i386_register_to_value): Adjust to new
2836         gdbarch_register_to_value interface.
2837         * i387-tdep.c (i387_register_to_value): Ditto.
2838         * i387-tdep.h (i387_register_to_value): Ditto.
2839         * alpha-tdep.c (alpha_register_to_value): Ditto.
2840         * ia64-tdep.c (ia64_register_to_value): Ditto.
2841         * m68k-tdep.c (m68k_register_to_value): Ditto.
2842         * mips-tdep.c (mips_register_to_value): Ditto.
2843         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2844
2845 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2846
2847         * findvar.c (value_of_register): Mark the value as unavailable, if
2848         the register is unavailable.
2849         * frame.h (frame_register_unwind): New `unavailablep' parameter.
2850         (frame_register): New `unavailablep' parameter.
2851         (frame_register_read): Update comment.
2852         * frame.c (frame_register_unwind): New `unavailablep' parameter.
2853         Set it if the register is unavailable.  If the register is
2854         unavailable, clear the output buffer.
2855         (frame_register): New `unavailablep' parameter.  Pass it down.
2856         (frame_unwind_register): Adjust.
2857         (put_frame_register): Adjust.
2858         (frame_register_read): Adjust.  Also return false if the register
2859         is not available.
2860         (frame_register_unwind_location): Adjust.
2861         * sentinel-frame.c (sentinel_frame_prev_register): If the register
2862         is unavailable, mark the value accordingly.
2863         * stack.c (frame_info): Handle unavailable registers.
2864
2865 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2866
2867         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2868         simplify, using regcache_cooked_read.
2869
2870 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2871
2872         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2873         (regcache_raw_read_unsigned, regcache_raw_read_signed)
2874         (regcache_raw_read_unsigned, regcache_raw_read_part)
2875         (regcache_cooked_read, regcache_cooked_read_signed)
2876         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2877         (regcache_cooked_read_ftype): Change return to enum
2878         register_status.
2879         * regcache.c: Include exceptions.h
2880         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2881         (do_cooked_read): Change return to enum register_status.  Always
2882         forward to regcache_cooked_read.
2883         (regcache_raw_read): Change return to enum register_status.  If
2884         the register is not REG_VALID, memset the buffer.  Return the
2885         register's status.
2886         (regcache_raw_read_signed): Handle non-REG_VALID registers and
2887         return the register's status.
2888         (regcache_raw_read_unsigned): Ditto.
2889         (regcache_cooked_read): Change return to enum register_status.
2890         Assert that with read-only regcaches, the register's status must
2891         be known.  If the regcache is read-only, and the register is not
2892         REG_VALID, memset the buffer.  Return the register's status.
2893         (regcache_cooked_read_signed): Change return to enum
2894         register_status.  Handle non-REG_VALID registers and return the
2895         register's status.
2896         (regcache_cooked_read_unsigned): Change return to enum
2897         register_status.  Handle non-REG_VALID registers and return the
2898         register's status.
2899         (regcache_xfer_part, regcache_raw_read_part)
2900         (regcache_cooked_read_part): Change return to enum
2901         register_status.  Return the register's status.
2902         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2903         unavailable.
2904         (regcache_dump): Handle unavailable cooked registers.
2905         * frame.c (do_frame_register_read): Adjust interface to match
2906         regcache_cooked_read_ftype.
2907         * gdbarch.sh (pseudo_register_read): Change return to enum
2908         register_status.
2909         * gdbarch.h, gdbarch.c: Regenerate.
2910
2911         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2912         register_status.
2913         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2914         register_status.  If reading a raw register indicates the raw
2915         register is not valid, return the raw register's status,
2916         otherwise, return REG_VALID.
2917         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2918         register_status.  Handle non-REG_VALID raw registers and return
2919         the register's status.
2920         * arm-tdep.c (arm_neon_quad_read)
2921         (arm_pseudo_read): Change return to enum register_status.  Handle
2922         non-REG_VALID raw registers and return the register's status.
2923         * avr-tdep.c (avr_pseudo_register_read): Ditto.
2924         * frv-tdep.c (frv_pseudo_register_read): Ditto.
2925         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2926         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2927         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2928         register_status.
2929         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2930         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2931         (m32c_part_write, m32c_cat_read, m32c_cat_write)
2932         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2933         (m32c_pseudo_register_read): Change return to enum
2934         register_status.  Adjust.
2935         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2936         enum register_status.  Return the register's status.
2937         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2938         register_status.  Return the register's status.
2939         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2940         * mips-tdep.c (mips_pseudo_register_read): Ditto.
2941         * mt-tdep.c (mt_pseudo_register_read): Ditto.
2942         * rs6000-tdep.c (move_ev_register_func): New typedef.
2943         (e500_move_ev_register): Use it.  Change return to enum
2944         register_status.  Return the register's status.
2945         (do_regcache_raw_read): New function.
2946         (do_regcache_raw_write): New function.
2947         (e500_pseudo_register_read): Change return to enum
2948         register_status.  Return the register's status.  Use
2949         do_regcache_raw_read.
2950         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
2951         (dfp_pseudo_register_read): Change return to enum register_status.
2952         Return the register's status.
2953         (vsx_pseudo_register_read): Ditto.
2954         (efpr_pseudo_register_read): Ditto.
2955         (rs6000_pseudo_register_read): Ditto.
2956         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2957         register_status.  Return the register's status.
2958         * sh64-tdep.c (pseudo_register_read_portions): New function.
2959         (sh64_pseudo_register_read): Change return to enum
2960         register_status.  Use pseudo_register_read_portions.  Return the
2961         register's status.
2962         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2963         register_status.  Return the register's status.
2964         * sh-tdep.c (pseudo_register_read_portions): New function.
2965         (sh_pseudo_register_read): Change return to enum register_status.
2966         Use pseudo_register_read_portions.  Return the register's status.
2967         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2968         enum register_status.  Return the register's status.
2969         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2970         * spu-tdep.c (spu_pseudo_register_read_spu)
2971         (spu_pseudo_register_read): Ditto.
2972         * xtensa-tdep.c (xtensa_register_read_masked)
2973         (xtensa_pseudo_register_read): Ditto.
2974         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2975
2976 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2977
2978         * python/py-value.c (valpy_getitem): Fix formatting of error function
2979         call.
2980
2981 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2982
2983         ARI fixes: Add missing internationalization markups throughout
2984         C source files.
2985         * darwin-nat-info.c: Ditto.
2986         * record.c: Ditto.
2987         * remote.c: Ditto.
2988         * mi/mi-main.c: Ditto.
2989
2990 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2991
2992         ARI fixes: Add missing internationalization markups throughout
2993         yacc files.
2994         * c-exp.y: Ditto.
2995         * cp-name-parser.y: Ditto.
2996         * f-exp.y: Ditto.
2997         * m2-exp.y: Ditto.
2998         * objc-exp.y: Ditto.
2999         * p-exp.y: Ditto.
3000
3001 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
3002
3003         ARI fixes: Messages should have no trailing new lines.
3004         * darwin-nat.c (mach_check_error): Remove trailing new line from
3005         warning function call message.
3006         * record.c (bfdcore_read): Idem for error call.
3007
3008 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
3009
3010         * common/signals.c (target_signal_from_host): Add _ markup to error
3011         function call message.
3012         (target_signal_to_host): Add _ markup and remove trailing new line
3013         from warning call message.
3014         (target_signal_from_command): Add _ markup to error function call
3015         message.
3016
3017 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
3018
3019         PR python/12149
3020
3021         * python/python.c (gdbpy_write): Accept a stream argument and
3022         operate to the appropriate stream.
3023         (gdbpy_flush): Likewise.
3024         (_initialize_python): Add stream constants.
3025         (finish_python_initialization): Add GdbOutputErrorFile class.
3026
3027 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
3028
3029         * MAINTAINERS: Add myself as a write-after-approval maintainer.
3030
3031 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
3032
3033         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3034         to store_signed_integer.  Add debug message when relocating CALL
3035         instructions.  Fix formatting of debug message.
3036         * i386-tdep.c (i386_relocate_instruction): Ditto.
3037
3038 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
3039
3040         * target.h (struct target_ops): Remove to_lookup_symbol field.
3041         (target_lookup_symbol): Delete macro.
3042         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3043         (update_current_target, setup_target_debug): Remove handling
3044         of to_lookup_symbol target_ops field.
3045         * ada-tasks.c (get_known_tasks_addr): Remove use of
3046         target_lookup_symbol.
3047         * coffread.c (coff_symtab_read): Likewise.
3048         * dbxread.c (read_dbx_symtab): Ditto.
3049
3050 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
3051
3052         PR gdb/12116:
3053         * configure.ac: Add getthrds declaration check.
3054         * configure, config.in: Regenerate.
3055         * aix-thread.c (getthrds): Declare only if not already declared
3056         in procinfo.h.  More declaration out of get_signaled_thread to
3057         global scope.
3058
3059 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
3060
3061         * python/py-symtab.c: Populate symtab_object_methods,
3062         sal_object_methods.
3063         (stpy_is_valid): New function.
3064         (salpy_is_valid): Ditto.
3065         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
3066         (sympy_is_valid): New function.
3067         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
3068         (objfpy_is_valid): New function.
3069         * python/py-inferior.c: Populate inferior_object_methods.
3070         (infpy_is_valid): New function.
3071         * python/py-infthread.c: Populate thread_object_methods.
3072         (thpy_is_valid): New function.
3073         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
3074         block_iterator_object_methods.  Populate.
3075         (blpy_is_valid): New function.
3076         (blpy_iter_is_valid): Ditto.
3077
3078 2011-03-16  Keith Seitz  <keiths@redhat.com>
3079
3080         * linespec.c (find_methods): Canonicalize NAME before looking
3081         up the symbol.
3082         (name_end): New function.
3083         (keep_name_info): New function.
3084         (decode_line_1): Use keep_name_info.
3085         (decode_compound): Likewise.
3086         * cli/cli-utils.h (remove_trailing_whitespace): New function.
3087         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3088
3089         PR c++/12273
3090         * linespec.c (locate_first_half): Keep overload information, too.
3091         (decode_compound): Use a string to represent break characters
3092         to escape the loop.
3093         If P points to a break character, do not increment it.
3094         For C++ and Java, keep overload information and relevant keywords.
3095         If we cannot find a symbol, search the minimal symbols.
3096
3097         PR c++/11734
3098         * linespec.c (decode_compound): Rename SAVED_ARG to
3099         THE_REAL_SAVED_ARG.
3100         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3101         single-quotes.
3102         Pass a valid block to lookup_symbol.
3103         (lookup_prefix_sym): Likewise.
3104         (find_method): Construct search name based on SYM_CLASS instead
3105         of SAVED_ARG.
3106         * psymtab.c (lookup_partial_symbol): Add language parameter.
3107         (lookup_symbol_aux_psymtabs): Likewise.
3108         Don't assume that the psymtab we found was the right one. Search
3109         for the desired symbol in the symtab to be certain.
3110         (psymtab_search_name): New function.
3111         (lookup_partial_symbol): Use psymtab_search_name.
3112         Add language parameter.
3113         (read_symtabs_for_function): Add language parameter and pass to
3114         lookup_partial_symbol.
3115         (find_symbol_file_from_partial): Likewise.
3116
3117 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
3118
3119         PR gdb/12528
3120         * dwarf2read.c (noop_record_line): New function.
3121         (dwarf_decode_lines): Ignore line tables for GCd functions.
3122
3123 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
3124
3125         Fix ARI warnings about new lines at the end of messages, which
3126         are unneeded as there is a new line added at the end of the message
3127         automatically.
3128         * darwin-nat.c (darwin_stop_inferior): Ditto.
3129         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3130         * dfp.c (decimal_to_number): Ditto.
3131         * exec.c (print_section_info): Ditto.
3132         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3133         * osdata.c (get_osdata): Ditto.
3134         * record.c (bfdcore_write): Ditto.
3135         * remote-mips.c (mips_readchar): Ditto.
3136         * remote.c (read_ptid): Ditto.
3137         * ser-mingw.c (ser_windows_raw): Ditto.
3138         * tracepoint.c (add_local_symbols): Ditto.
3139         * windows-nat.c (fake_create_process): Ditto.
3140
3141 2011-03-16  Tom Tromey  <tromey@redhat.com>
3142
3143         * tracepoint.c (stop_tracing): Don't declare.
3144         * event-top.c (after_char_processing_hook): Add `(void)'.
3145
3146 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
3147
3148         * NEWS: Add Parameter sub-classing description.
3149
3150 2011-03-16  Kai Tietz  <ktietz@redhat.com>
3151
3152         * MAINTAINERS: Update my e-mail address.
3153
3154 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
3155
3156         * MAINTAINERS: Add myself for write after approval privileges.
3157
3158 2011-03-15  Michael Snyder  <msnyder@vmware.com>
3159
3160         * frame.c (find_frame_sal): Assert sym is not null.
3161
3162         * dbxread.c (process_one_symbol): Assert 'name' is not null.
3163
3164         * objc-lang.c (selectors_info): Check strchr for null result.
3165
3166         * stabsread.c (define_symbol): Guard against bad stabstring input.
3167
3168 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
3169
3170         Remove trailing spaces and tabulations from pascal language
3171         support sources.
3172         p-exp.y: Ditto.
3173         p-lang.c: Ditto.
3174         p-lang.h: Ditto.
3175         p-valprint.c: Ditto.
3176
3177 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3178
3179         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3180         than LOW.  Comment it.
3181         (read_partial_die): Call complaint for inappropriate zero LOWPC or
3182         HIGHPC not strictly higher than LOWPC.
3183
3184 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
3185
3186         Fix formatting of function declarations returning a pointer in
3187         previous commit.
3188         * varobj.c (varobj_add_child): Ditto.
3189         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3190         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3191
3192 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
3193
3194         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3195         for the "generic" vector ABI used with GCC 4.3 and later.
3196         (ppc64_sysv_abi_return_value): Likewise.
3197
3198 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
3199
3200         * infcall.c (call_function_by_hand): Function return value is
3201         always a non_lval, even when using struct_return.
3202
3203 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
3204
3205         * printcmd.c (ALL_DISPLAYS_SAFE): New.
3206         (map_display_numbers): New.
3207         (do_delete_display): New.
3208         (undisplay_command): Use map_display_numbers.
3209         (do_enable_disable_display): New.
3210         (enable_disable_display_command): New function.
3211         (enable_display): Delete.
3212         (enable_display_command): New.
3213         (disable_display_command): Reimplement.
3214         (_initialize_printcmd): Adjust "enable display" command to use
3215         `enable_display_command' as callback.
3216
3217 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
3218
3219         * NEWS: Add Python breakpoint 'stop' operation.
3220
3221 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
3222
3223         * NEWS: Delete duplicate entry. Fix typo.
3224
3225 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
3226
3227         Fix ARI warning about function names in first column.
3228         Put prototype declaration on same line as return type.
3229         * objc-exp.y: Ditto.
3230         * p-exp.y: Ditto.
3231         * python/py-stopevent.h: Ditto.
3232         For long function names, split parameters to
3233         allow function name on same line as return type.
3234         * solib-pa64.c: Ditto.
3235         * varobj.c: Ditto.
3236         * varobj.h: Ditto.
3237         For long function declaration, use single line.
3238         * hppa-tdep.h: Ditto.
3239         * inferior.h: Ditto.
3240
3241 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
3242
3243         * python/python.h: Declare gdbpy_should_stop and
3244         gdbpy_breakpoint_has_py_cond.
3245         * python/python.c: Add python.h to includes.  Remove python.h from
3246         HAVE_PYTHON definition
3247         (gdbpy_should_stop): New dummy function.
3248         (gdbpy_breakpoint_has_py_cond): New dummy function.
3249         * python/py-breakpoint.c (bppy_init): Rewrite to allow
3250         sub-classing capabilities.
3251         (gdbpy_should_stop): New function.
3252         (gdbpy_breakpoint_has_py_cond): New function.
3253         (local_setattro): New function.
3254         * breakpoint.c (condition_command): Add check for Python 'stop'
3255         operation.
3256         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3257         operation function as part of stop/continue tests.
3258
3259 2011-03-14  Tom Tromey  <tromey@redhat.com>
3260
3261         PR gdb/12576:
3262         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3263         (needs_frame_dwarf_call): Likewise.
3264
3265 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
3266
3267         Fix ARI warning about functions without parameters that do not
3268         use (void).
3269         * breakpoint.c (all_tracepoints): Replace () by (void).
3270         * f-exp.y (match_string_literal): Ditto.
3271         (yylex): Ditto.
3272         * m2-exp.y (yylex): Ditto.
3273         * mep-tdep.c (current_me_module): Ditto.
3274         (current_options): Ditto.
3275         (current_cop_data_bus_width): Ditto.
3276         (current_cr_names): Ditto.
3277         (current_cr_is_float): Ditto.
3278         (current_ccr_names): Ditto.
3279         * objc-exp.y (yylex): Ditto.
3280         * p-exp.y (yylex): Ditto.
3281         * remote.c (send_interrupt_sequence): Ditto.
3282         * tracepoint.c (current_trace_status): Ditto.
3283         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3284         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3285
3286 2011-03-11  Michael Snyder  <msnyder@vmware.com>
3287
3288         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3289         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3290         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3291         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3292         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3293
3294         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3295         (delete_async_event_handler): Ditto.
3296
3297         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3298
3299         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3300
3301         * top.c (set_verbose): Assert showcmd was found.
3302
3303 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
3304
3305         * xtensa-tdep.c (warning_once): Correct style issues.
3306
3307 2011-03-11  Yao Qi  <yao@codesourcery.com>
3308
3309         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3310
3311 2011-03-11  Andreas Schwab  <schwab@redhat.com>
3312
3313         * common/aclocal.m4: Remove.
3314
3315 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
3316
3317         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3318         (xtensa_write_register, xtensa_read_register): Likewise.
3319         (xtensa_hextochar): Removed.
3320         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3321
3322 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
3323
3324         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3325         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
3326         (xtensa_alloc_frame_cache): Add initialization for new fields.
3327         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3328         (warning_once): New function.
3329         (xtensa_insn_kind): New item c0opc_and.
3330         (call0_classify_opcode): Add the case for AND instruction.
3331         (call0_track_op): Change arguments.  New local variable litbase.
3332         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
3333         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3334         in the prologue.
3335         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3336         (call0_analyze_prologue): Update the comments.  Change arguments.
3337         Add the variety of updates to handle extended prologues, which now can
3338         conduct dynamic stack adjustments.
3339         (call0_frame_cache): Likewise.
3340         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3341         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3342
3343 2011-03-10  Michael Snyder  <msnyder@vmware.com>
3344
3345         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3346         (cmd_qtframe): Ditto.
3347         (cmd_qtbuffer): Ditto.
3348         (cmd_bigqtbuffer): Ditto.
3349
3350 2011-03-10  Tom Tromey  <tromey@redhat.com>
3351
3352         * tracepoint.c (trace_actions_command): Update.
3353         * thread.c (thread_apply_command): Update.
3354         * reverse.c (delete_bookmark_command): Update.
3355         (bookmarks_info): Update.
3356         * printcmd.c (undisplay_command): Update.
3357         * memattr.c (mem_enable_command): Update.
3358         (mem_disable_command): Update.
3359         (mem_delete_command): Update.
3360         * inferior.c (detach_inferior_command): Update.
3361         (kill_inferior_command): Update.
3362         (remove_inferior_command): Update.
3363         * cli/cli-utils.h (struct get_number_or_range_state): New.
3364         (init_number_or_range): Declare.
3365         (get_number_or_range): Update.
3366         * cli/cli-utils.c (init_number_or_range): New function.
3367         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
3368         static variables.
3369         (number_is_in_list): Update.
3370         * breakpoint.h (get_tracepoint_by_number): Update.
3371         * breakpoint.c (map_breakpoint_numbers): Update for change to
3372         get_number_or_range.
3373         (find_location_by_number): Use get_number, not
3374         get_number_or_range.
3375         (trace_pass_set_count): New function.
3376         (trace_pass_command): Update for change to get_number_or_range.
3377         Rework loop logic.
3378         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3379         'state' parameter.
3380
3381 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
3382
3383         * python/py-param.c (add_setshow_generic): Add set/show callback
3384         parameters.  Register Python object context.
3385         (get_show_value): New function.
3386         (get_set_value): New function.
3387         (call_doc_function): New function.
3388         (get_doc_string): Move behind get_show_value/get_set_value.
3389
3390 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
3391
3392         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3393
3394 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
3395
3396         * xtensa-tdep.c (xtensa_read_register): Add comment.
3397         (xtensa_write_register): Likewise.
3398         (xtensa_hextochar): Add comment and update to match coding conventions.
3399         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3400         (execute_l32e, execute_s32e, execute_code): Update comments.
3401         (xtensa_exception_handler_t): Update to match coding conventions.
3402         (xtensa_insn_kind): Likewise.
3403
3404 2011-03-09  Michael Snyder  <msnyder@vmware.com>
3405
3406         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3407
3408 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
3409
3410         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3411
3412 2011-03-09  Tom Tromey  <tromey@redhat.com>
3413
3414         * thread.c (restore_selected_frame): Handle frame_level == -1.
3415         (make_cleanup_restore_current_thread): Use
3416         get_selected_frame_if_set.
3417         * frame.h (get_selected_frame_if_set): Declare.
3418         * frame.c (get_selected_frame_if_set): New function.
3419
3420 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
3421
3422         * cli/cli-cmds.c (shell_escape): Use lbasename.
3423         * coffread.c (coff_start_symtab): Constify parameter.
3424         (complete_symtab): Constify `name' parameter.
3425         (coff_symtab_read): Constify `filestring' local.
3426         (coff_getfilename): Constify return and `result' local.
3427         Use lbasename.
3428         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3429         * linux-fork.c (info_checkpoints_command): Use lbasename.
3430         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3431         * minsyms.c (lookup_minimal_symbol): Use lbasename.
3432         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3433         * procfs.c (procfs_make_note_section): Use lbasename.
3434         * tui/tui-io.c (printable_part): Constity return and parameter.
3435         Use lbasename.
3436         (print_filename): Constify parameters, and local `s'.
3437         (tui_rl_display_match_list): Constify local `temp'.
3438
3439 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
3440
3441         Revert:
3442         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3443         Fix DWARF-3+ DW_AT_accessibility default assumption.
3444         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3445         cu->header.version >= 3.
3446
3447 2011-03-09  Yao Qi  <yao@codesourcery.com>
3448
3449         * common/Makefile.in: Remove.
3450         * common/configure: Remove.
3451         * common/configure.ac: Remove.
3452
3453 2011-03-09  Yao Qi  <yao@codesourcery.com>
3454
3455         Revert:
3456         2011-02-11  Yao Qi  <yao@codesourcery.com>
3457
3458         * common/Makefile.in: Add copyright header.
3459
3460         2011-02-11  Yao Qi  <yao@codesourcery.com>
3461
3462         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
3463         libcommon.a.
3464         * configure.ac: Add common to sub dir.
3465         * configure: Regenerate.
3466
3467 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3468
3469         * xtensa-tdep.c (call0_ret): New function.
3470         (xtensa_skip_prologue): Speed up analysis.
3471
3472 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3473
3474         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3475         while executing MI command -data-list-changed-registers.
3476
3477 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3478
3479         * xtensa-tdep.c (xtensa_read_register): New function.
3480         (xtensa_write_register): New function.
3481         (xtensa_find_register_by_name): New function.
3482         (xtensa_windowed_frame_cache): Update comments in type description.
3483         (xtensa_frame_cache): Likewise.
3484         (xtensa_window_interrupt_insn): New function.
3485         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3486         (xtensa_insn_kind): Add new instructions.
3487         (rwx_special_register): New function.
3488         (call0_classify_opcode): Add new instructions to the analysis.
3489         (a0_saved, a7_saved, a11_saved): New variables.
3490         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3491         (execute_l32e): New function.
3492         (execute_s32e): New function.
3493         (xtensa_exception_handler_t): New type.
3494         (execute_code): New function.
3495         (xtensa_window_interrupt_frame_cache): New function to conduct frame
3496         analysis for Xtensa Window Exception handlers.
3497
3498 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3499
3500         * xtensa-tdep.c (TX_PS): New.
3501         (windowing_enabled): Update to count for Call0 ABI.
3502         (xtensa_hextochar): New.
3503         (xtensa_init_reggroups): Make algorithm generic.
3504         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3505
3506 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3507
3508         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3509
3510 2011-03-08  Michael Snyder  <msnyder@vmware.com>
3511
3512         * i386-tdep.c (i386_follow_jump): Check return value of
3513         target_read_memory.
3514         (i386_analyze_struct_return): Ditto.
3515         (i386_skip_probe): Ditto.
3516         (i386_match_insn): Ditto.
3517         (i386_skip_noop): Ditto.
3518         (i386_analyze_frame_setup): Ditto.
3519         (i386_analyze_register_saves): Ditto.
3520         (i386_skip_prologue): Ditto.
3521         (i386_skip_main_prologue): Ditto.
3522
3523         * target.c (read_whatever_is_readable): Fix memory leak.
3524
3525         * i386-tdep.c (i386_process_record): Document fall through.
3526
3527 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3528
3529         Fix DWARF-3+ DW_AT_accessibility default assumption.
3530         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3531         cu->header.version >= 3.
3532
3533 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
3534
3535         * remote.c (remote_check_symbols): Skip if the target has no
3536         execution.
3537
3538 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
3539
3540         * target.c (read_whatever_is_readable): Reformat comment,
3541         with a minor typo fix. Minor reformatting of the code.
3542
3543 2011-03-08  Yao Qi  <yao@codesourcery.com>
3544
3545         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3546         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3547         Use cached result instead of calling displaced_in_arm_mode again.
3548         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3549         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3550         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3551         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3552         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3553         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3554         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3555         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3556         (cleanup_block_load_pc, copy_block_xfer): Likewise.
3557         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3558         (arm_catch_kernel_helper_return): Likewise.
3559         * gdb/arm-tdep.h : Update function declarations.
3560
3561 2011-03-07  Michael Snyder  <msnyder@vmware.com>
3562
3563         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3564
3565         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3566
3567         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3568
3569         * elfread.c (elf_symtab_read): Stop memory leak.
3570
3571         * main.c (captured_main): Fix memory leak.
3572
3573 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
3574
3575         * ada-lang.c (compare_names): Call is_name_suffix with string1
3576         instead of string2.
3577
3578 2011-03-07  Tom Tromey  <tromey@redhat.com>
3579
3580         * xcoffread.c (xcoff_sym_fns): Update.
3581         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3582         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3583         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3584         (symbol_file_add_with_addrs_or_offsets): Likewise.
3585         (reread_symbols): Handle OBJF_PSYMTABS_READ.
3586         * somread.c (som_sym_fns): Update.
3587         * psymtab.h (require_partial_symbols): Declare.
3588         * psymtab.c (require_partial_symbols): New function.
3589         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3590         (ALL_OBJFILE_PSYMTABS): Undef.
3591         (ALL_PSYMTABS): Move from psympriv.h.
3592         (lookup_partial_symtab, find_pc_sect_psymtab)
3593         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3594         (find_last_source_symtab_from_partial)
3595         (forget_cached_source_info_partial)
3596         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3597         (expand_partial_symbol_tables, read_psymtabs_with_filename)
3598         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3599         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3600         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3601         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3602         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3603         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3604         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3605         psymtabs.
3606         * mipsread.c (ecoff_sym_fns): Update.
3607         * machoread.c (macho_sym_fns): Update.
3608         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3609         (read_psyms): New function.
3610         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3611         (elf_sym_fns_lazy_psyms): New global.
3612         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3613         dwarf2_build_psymtabs.
3614         * dbxread.c (aout_sym_fns): Update.
3615         * coffread.c (coff_sym_fns): Update.
3616
3617 2011-03-07  Tom Tromey  <tromey@redhat.com>
3618
3619         * infrun.c (print_exited_reason): Include inferior id and pid in
3620         message.
3621
3622 2011-03-07  Tom Tromey  <tromey@redhat.com>
3623
3624         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3625         parameter.
3626         (target_has_execution_1): Update.
3627         (target_has_execution_current): Declare.
3628         (target_has_execution): Call target_has_execution_current.
3629         (default_child_has_execution): Update.
3630         * target.c (default_child_has_execution): Add 'the_ptid'
3631         parameter.
3632         (target_has_execution_1): Likewise.
3633         (target_has_execution_current): New function.
3634         (add_target): Update.
3635         (init_dummy_target): Update.
3636         * remote-m32r-sdi.c (m32r_has_execution): New function.
3637         (init_m32r_ops): Use it.
3638         * record.c (record_core_has_execution): Now static.  Add
3639         'the_ptid' parameter.
3640         * inferior.c (have_live_inferiors): Don't save current thread.
3641         Use target_has_execution_1.
3642
3643 2011-03-07  Yao Qi  <yao@codesourcery.com>
3644
3645         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3646
3647 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3648
3649         * elfread.c (elf_symtab_read): Minor reformatting.
3650
3651 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3652
3653         * objc-lang.c (selectors_info): Minor reformatting.
3654
3655 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3656
3657         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3658
3659 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3660             Michael Snyder  <msnyder@vmware.com>
3661
3662         * ada-valprint.c (ada_val_print_array): Move the declaration of
3663         "byte_order" and "elttype" inside the block where these variables
3664         are actually used.  Remove some special handling for the case
3665         where "elttype" and "eltlen" are null.  Replace by a comment
3666         and a couple of assertion checks.
3667
3668 2011-03-05  Michael Snyder  <msnyder@vmware.com>
3669
3670         * source.c (add_path): Replace semicolon at end of block.
3671         * dwarf2expr.c (execute_stack_op): Ditto.
3672
3673 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
3674
3675         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3676         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3677         (bfin-*-*): Likewise.
3678
3679 2011-03-05  Michael Snyder  <msnyder@vmware.com>
3680
3681         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3682         * mdebugread.c (parse_symbol): Ditto.
3683         * parse.c (parse_exp_in_context): Ditto.
3684         * source.c (add_path): Ditto.
3685         * utils.c (gnu_debuglink_crc32): Ditto.
3686         * varobj.c (variable_language): Ditto.
3687
3688         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3689
3690 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3691
3692         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3693
3694         * symfile.c (simple_overlay_update): Check for null return value
3695         from lookup_minimal_symbol.
3696
3697         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3698
3699 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3700
3701         * eval.c (parse_and_eval_address_1): Remove function.
3702         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3703         instead of parse_and_eval_address_1.
3704         * value.h (parse_and_eval_address_1): Remove prototype.
3705
3706 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3707
3708         * remote.c (putpkt_binary): Document that case stmt falls through.
3709
3710 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3711
3712         * breakpointc (print_it_typical): Move NULL check from here...
3713         (print_bp_stop_message): ... to here.
3714
3715 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
3716
3717         * breakpoint.c (enable_command): Use break instead of continue,
3718         and fill in a missing break.
3719         (disable_command): Ditto.
3720
3721 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
3722
3723         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3724         (terminal_save_ours): Remove misleading comment.
3725         (inflow_inferior_data_cleanup): Free ttystate.
3726         (inflow_inferior_exit): Likewise.
3727         (copy_terminal_info): Copy ttystate.
3728
3729         * serial.c (serial_copy_tty_state): New function.
3730         * serial.h (serial_copy_tty_state): Add prototype.
3731         (struct serial_ops): Add copy_tty_state callback.
3732         * ser-base.c (ser_base_copy_tty_state): New function.
3733         * ser-base.h (ser_base_copy_tty_state): Add prototype.
3734         * ser-go32.c (dos_copy_tty_state): New function.
3735         (dos_ops): Install copy_tty_state callback.
3736         * ser-mingw.c (_initialize_ser_windows): Likewise.
3737         * ser-pipe.c (_initialize_ser_pipe): Likewise.
3738         * ser-unix.c (hardwire_copy_tty_state): New function.
3739         (_initialize_ser_hardwire): Install it.
3740
3741 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3742
3743         * breakpoint.c (create_breakpoint): Add missing break statement.
3744
3745         Reverting this patch:
3746         * infcall.c (call_function_by_hand): Add break statements for lint.
3747
3748         Reverting this patch:
3749         * cli/cli-script.c (script_from_file): Add break for lint.
3750
3751 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3752
3753         * solib.c (reload_shared_libraries_1): Close memory leak.
3754
3755 2011-03-03  Tom Tromey  <tromey@redhat.com>
3756
3757         PR gdb/12538:
3758         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3759         DW_STRING is NULL.
3760
3761 2011-03-03  Michael Snyder  <msnyder@vmware.com>
3762
3763         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3764         fields of struct 'st' to zero.
3765
3766         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3767         sal.pspace before calling set_current_source_symtab_and_line.
3768
3769 2011-03-03  Yao Qi  <yao@codesourcery.com>
3770
3771         * Makefile.in (configure-common): Remove.  Let Makefile
3772         in dir common to rebuild itself.
3773         (common/Makefile): Likewise.
3774
3775 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
3776
3777         * utils.c (parse_escape): Add i18n markup in error message.
3778
3779 2011-03-03  Yao Qi  <yao@codesourcery.com>
3780
3781         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3782         ARM_PC_REGNUM.
3783         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3784         (displaced_write_reg, displaced_read_reg): Likewise.
3785         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3786         (cleanup_block_load_pc, copy_block_xfer): Likewise.
3787         (cleanup_branch): Replace magic number 14 and 15 with
3788         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3789
3790 2011-03-02  Michael Snyder  <msnyder@vmware.com>
3791
3792         * maint.c (maintenance_do_deprecate): No need to check for NULL.
3793
3794         * cli/cli-script.c (script_from_file): Add break for lint.
3795
3796         * mdebugread.c (parse_partial_symbols): Fix indent.
3797
3798         * target-descriptions.c (tdesc_gdb_type): No need to call
3799         xstrdup, callee saves a copy.
3800
3801         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3802
3803         * infcall.c (call_function_by_hand): Add break statements for lint.
3804
3805         * utils.c (parse_escape): Escape the escape char.
3806
3807         * python/py-inferior.c (build_inferior_list): Error out if
3808         PyList_Append fails.
3809         (gdbpy_inferiors): Error out if build_inferior_list fails.
3810
3811         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3812         a function call.
3813
3814         * record.c (record_restore): Move printf to before error return.
3815
3816 2011-03-02  Yao Qi  <yao@codesourcery.com>
3817
3818         * arm-tdep.h (struct displaced_step_closure): Add two new fields
3819         is_thumb and insn_size.
3820         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3821         on both ARM and Thumb mode.
3822         (arm_process_displaced_insn): Set is_thumb and insn_size.
3823         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3824         (arm_displaced_step_fixup): Likewise.
3825
3826 2011-03-01  Michael Snyder  <msnyder@vmware.com>
3827
3828         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3829
3830         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3831
3832         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3833
3834         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3835
3836         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3837         with xmalloc.
3838
3839         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3840         which shadows function parameter.
3841
3842         * tracepoint.c (create_tsv_from_upload): Superfluous call
3843         to xstrdup.  Callee already calls xstrdup.
3844
3845         * linespec.c (decode_line_1): Remove unnecessary null check.
3846
3847         * tracepoint.c (scope_info): Fix mem leak, remove underused
3848         variable.
3849
3850         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3851         superfluous null check.
3852
3853         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3854         (value_of_builtin_frame_fp_reg): Ditto.
3855
3856         * event-top.c (display_gdb_prompt): Remove superfluous null check.
3857
3858         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3859         be null.
3860
3861         * linespec.c (decode_line_1): Check for null before dereference.
3862
3863         * reverse.c (record_restore): Move null-check to before pointer
3864         dereference.
3865
3866         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3867
3868         * objc-lang.c (selectors_info): Add explanitory comment.
3869         (classes_info): Ditto.
3870
3871 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
3872
3873         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3874         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3875         versions of the trampoline.  Handle Thumb vs. ARM addresses.
3876         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3877         (arm_linux_init_abi): Install it.
3878         * arm-tdep.c (arm_psr_thumb_bit): Make global.
3879         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3880
3881 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3882
3883         * ui-out.c (ui_out_field_core_addr): Make local char buffer
3884         a little bigger, to avoid possibility of an overflow.
3885
3886         * breakpoint.c (breakpoint_adjustment_warning): Make local char
3887         buffers a little bigger, to avoid possibility of an overflow.
3888
3889         * coffread.c (coff_getfilename): Add check to avoid overflow.
3890
3891         * objc-lang.c (selectors_info): Add a small safety margin to
3892         avoid overflow.
3893         (classes_info): Error out on too long REGEXP.
3894
3895         * infrun.c (handle_inferior_event): Remove unused function call.
3896
3897         * fork-child.c (fork_inferior): Remove ifdef'd code and
3898         unused variable.
3899
3900         * linux-thread-db.c (attach_thread): Discard unused value.
3901
3902         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3903
3904         * remote.c (remote_get_noisy_reply): Discard unused value.
3905         (remote_vcont_resume): Ditto.
3906         (remote_stop_ns): Ditto.
3907
3908         * linespec.c (decode_objc): Delete unused variable.
3909
3910         * tui/tui-regs.c (tui_register_format): Delete unused variable.
3911
3912         * dwarf2read.c (add_partial_symbol): Discard unused values.
3913         (read_base_type): Delete unused variable.
3914
3915         * dbxread.c (read_dbx_symtab): Discard unused value.
3916
3917         * eval.c (evaluate_subexp_standard): Delete unused variable,
3918         and discard unused values.
3919
3920         * infcmd.c (_initialize_infcmd): Discard unused values.
3921
3922         * stabsread.c (rs6000_builtin_type): Missing break statement.
3923
3924         * dbxread.c (process_one_symbol): Discard unused value.
3925
3926         * coffread.c (coff_end_symtab): Delete unused variable.
3927
3928         * dwarf2read.c (dw2_get_file_names): Discard unused value.
3929         (dwarf2_add_typedef): Delete unused variable.
3930         (read_namespace): Ditto.
3931         (dwarf_decode_macros): Ditto.
3932
3933         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3934
3935         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3936
3937         * p-valprint.c (pascal_val_print): Discard unused value.
3938
3939         * utils.c (nquery): Call va_end before return;
3940         (yquery): Ditto.
3941         (query): Ditto.
3942
3943         * proc-service.c (ps_plog): Call va_end before return.
3944
3945 2011-02-28  Tom Tromey  <tromey@redhat.com>
3946
3947         * python/python.c (gdbpy_value_cst): New global.
3948         (_initialize_python): Initialize it.
3949         * python/python-internal.h (gdbpy_value_cst): Declare.
3950         * python/py-value.c (convert_value_from_python): Use
3951         gdbpy_value_cst.
3952
3953 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3954
3955         * python/py-cmd.c (cmdpy_init): Fix memory leak.
3956
3957         * breakpoint.c (catch_syscall_completer): Free malloced list.
3958
3959         * jv-lang.c (java_primitive_type_from_name): Add missing break.
3960
3961         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3962         (lval_func_check_synthetic_pointer): Ditto.
3963         (lval_func_free_closure): Fix use-after-free.
3964
3965 2011-02-28  Tom Tromey  <tromey@redhat.com>
3966
3967         * psymtab.c (expand_partial_symbol_tables): Use
3968         ALL_OBJFILE_PSYMTABS.
3969
3970 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3971
3972         * objc-lang.c (selectors_info): Error on too long REGEXP.
3973
3974 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3975
3976         * python/py-param.c (set_parameter_value): Add missing
3977         break statement.
3978
3979         * linux-record.c (record_linux_system_call): Add missing
3980         break statement.
3981
3982 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3983
3984         * breakpoint.c (print_one_breakpoint_location): Remove unused
3985         argument PRINT_ADDRESS_BITS.  Update callers.
3986         (print_one_breakpoint): Likewise.
3987
3988 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3989
3990         * breakpoint.c (wrap_indent_at_field): New function.
3991         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3992         Allocate ui_stream locally instead of using STB argument.
3993         (print_one_breakpoint_location): Update call.
3994         * ui-out.c (ui_out_query_field): New function.
3995         * ui-out.h (ui_out_query_field): Add prototype.
3996
3997 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
3998
3999         From Michael Snyder  <msnyder@vmware.com>
4000         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4001
4002 2011-02-27  Michael Snyder  <msnyder@vmware.com>
4003
4004         * objc-lang.c (selectors_info): Prevent string overrun.
4005
4006         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4007         error in strncpy.
4008
4009         * symtab.c (rbreak_command): Move variable 'file_name' to
4010         outer scope.
4011
4012         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4013         param with a local variable of the same name.
4014
4015 2011-02-27  Michael Snyder  <msnyder@vmware.com>
4016
4017         * value.c (value_from_history_ref): New function.
4018         * value.h (value_from_history_ref): Export.
4019         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4020         to parse value history references.
4021         * cli/cli-utils.h (get_number_trailer): Update comment.
4022
4023 2011-02-27  Michael Snyder  <msnyder@vmware.com>
4024
4025         * inferior.c (detach_inferior_command): Use get_number_or_range.
4026         (kill_inferior_command): Ditto.
4027         (remove_inferior_command): Ditto.
4028         (initialize_inferiors): Make command names plural.
4029         Update help strings.
4030
4031 2011-02-27  Michael Snyder  <msnyder@vmware.com>
4032
4033         * darwin-nat-info.c: Fix comment typo.
4034         * dwarf2expr.h: Ditto.
4035         * fbsd-nat.c: Ditto.
4036         * fbsd-nat.h: Ditto.
4037         * frame-unwind.h: Ditto.
4038         * frame.h: Ditto.
4039         * hppa-hpux-tdep.c: Ditto.
4040         * i386-linux-nat.c: Ditto.
4041         * linux-nat.c: Ditto.
4042         * nbsd-nat.c: Ditto.
4043         * nbsd-nat.h: Ditto.
4044         * ppc-linux-tdep.c: Ditto.
4045         * serial.c: Ditto.
4046         * ui-file.h: Ditto.
4047         * tui/tui-winsource.c: Ditto.
4048
4049 2011-02-26  Michael Snyder  <msnyder@vmware.com>
4050
4051         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4052
4053         * maint.c (maintenance_do_deprecate): Plug a memory leak.
4054
4055         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4056         with a local variable of the same name.
4057
4058         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4059         param with a local variable of the same name.
4060         (i387_supply_xsave): Ditto.
4061
4062         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4063         that it does not shadow a function parameter.
4064
4065         * i386-nat.c (i386_length_and_rw_bits): Document that case
4066         statement is meant to fall through.
4067
4068         * expprint.c (dump_subexp_body_standard): Document that case
4069         statement is meant to fall through.
4070
4071         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4072         dead if statement.  Condition can't be false.
4073
4074 2011-02-25  Michael Snyder  <msnyder@vmware.com>
4075
4076         * arm-tdep.c: Fix typos in comments.
4077         * bsd-uthread.c: Ditto.
4078         * completer.c: Ditto.
4079         * corelow.c: Ditto.
4080         * cp-namespace.c: Ditto.
4081         * cp-support.c: Ditto.
4082         * cris-tdep.c: Ditto.
4083         * dbxread.c: Ditto.
4084         * dwarf2read.c: Ditto.
4085         * frame.h: Ditto.
4086         * gdbtypes.h: Ditto.
4087         * inferior.h: Ditto.
4088         * mdebugread.c: Ditto.
4089         * mips-tdep.c: Ditto.
4090         * ppc-linux-nat.c: Ditto.
4091         * ppc-linux-tdep.c: Ditto.
4092         * printcmd.c: Ditto.
4093         * sol-thread.c: Ditto.
4094         * solib-frv.c: Ditto.
4095         * solist.h: Ditto.
4096         * sparc64-tdep.c: Ditto.
4097         * spu-tdep.c: Ditto.
4098         * stabsread.c: Ditto.
4099         * symfile.c: Ditto.
4100         * valops.c: Ditto.
4101         * varobj.c: Ditto.
4102         * vax-nat.c: Ditto.
4103         * python/py-block.c: Ditto.
4104         * python/py-symbol.c: Ditto.
4105         * python/py-symtab.c: Ditto.
4106         * python/py-value.c: Ditto.
4107         * tui/tui-win.c: Ditto.
4108
4109 2011-02-25  Michael Snyder  <msnyder@vmware.com>
4110
4111         * inferior.c (print_inferior): Accept a string instead of an int
4112         for requested_inferiors, and use get_number_or_range to parse it.
4113         (info_inferiors_command): Pass args string to print_inferior.
4114         (initialize_inferiors): Change help string for info inferiors.
4115         * inferior.h (print_inferior): Export prototype change.
4116
4117 2011-02-25  Tom Tromey  <tromey@redhat.com>
4118
4119         * common/ax.def (invalid2): Set to 0x31.
4120
4121 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4122
4123         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4124         L and plongest.
4125         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4126         use L and plongest.
4127         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4128
4129 2011-02-24  Michael Snyder  <msnyder@vmware.com>
4130
4131         * Makefile.in (clean): Make clean should remove generated files
4132         observer.h and observer.inc.
4133
4134 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
4135
4136         Revert the following patch (not approved yet):
4137         2011-02-21  Hui Zhu  <teawater@gmail.com>
4138         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4139         * ax-gdb.c (gen_printf_expr_callback): New function.
4140         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4141         * ax-general.c (ax_memcpy): New function.
4142         (ax_print): Handle "printf".
4143         (ax_reqs): Ditto.
4144         * ax.h (ax_memcpy): Forward declare.
4145         * common/ax.def (invalid2): Removed.
4146         (printf): New entry.
4147         * printcmd.c (printcmd.h): New include.
4148         (string_printf): New function.
4149         (ui_printf): Removed.
4150         (printf_command): Remove static.  Call string_printf.
4151         (eval_command): Call string_printf.
4152         * printcmd.h: New file.
4153         * tracepoint.c (validate_actionline,
4154         encode_actions_1): handle printf_command.
4155
4156 2011-02-23  Tom Tromey  <tromey@redhat.com>
4157
4158         * ax-general.c (ax_pick): Add missing newline.
4159
4160 2011-02-23  Michael Snyder  <msnyder@vmware.com>
4161
4162         * breakpoint.c (breakpoint_1): Change first argument from an int
4163         to a char pointer, so that the function now accepts a list of
4164         breakpoints rather than just one.  Use new function
4165         'number_is_in_list' to implement.
4166         (breakpoints_info): Pass char * instead of int to breakpoint_1.
4167         (watchpoints_info): Ditto.
4168         (tracepoints_info): Ditto.
4169         (maintenance_info_breakpoints): Ditto.
4170         (_initialize_breakpoint): Update help strings to reflect the fact
4171         that these functions can now take more than one argument.
4172         * cli/cli-utils.c (number_is_in_list): New function.
4173         * cli/cli-utils.h (number_is_in_list): Export.
4174
4175 2011-02-23  Michael Snyder  <msnyder@vmware.com>
4176
4177         * memattr.c (mem_enable_command): Use get_number_or_range.
4178         (mem_disable_command): Ditto.
4179         (mem_delete_command): Ditto.
4180         (_initialize_mem): Tweak usage message to reflect multiple
4181         arguments.
4182
4183 2011-02-22  Doug Evans  <dje@google.com>
4184
4185         Add gdb.lookup_global_symbol python function.
4186         * NEWS: Add entry.
4187         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4188         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4189         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4190
4191 2011-02-22  Tom Tromey  <tromey@redhat.com>
4192
4193         * language.c (language_class_name_from_physname): Rename
4194         'curr_language' argument to 'lang'; use in body.
4195
4196 2011-02-22  Michael Snyder  <msnyder@vmware.com>
4197
4198         * cli/cli-utils.c (number_is_in_list): Check for zero return.
4199
4200 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
4201
4202         * frame-unwind.h: Fix comment to mention the this frame, not the
4203         next.
4204
4205 2011-02-22  Tom Tromey  <tromey@redhat.com>
4206
4207         * symfile.c (auto_solib_limit): Remove.
4208         * symfile.h (auto_solib_limit): Remove.
4209
4210 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
4211
4212         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
4213
4214 2011-02-21  Michael Snyder  <msnyder@vmware.com>
4215
4216         * gdbthread.h (print_thread_info): Change prototype.
4217         * thread.c (print_thread_info): Accept char* instead of int for
4218         requested_threads argument.  Use new function number_is_in_list
4219         to determine which threads to list.
4220         (info_threads_command): Pass char* to print_thread_info.
4221         * cli/cli-utils.c (number_is_in_list): New function.
4222         * cli/cli-utils.h (number_is_in_list): Export.
4223         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4224         print_thread_info.
4225         (print_one_inferior): Ditto.
4226         (mi_cmd_list_thread_groups): Ditto.
4227
4228 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4229
4230         * common/Makefile.in (CFLAGS): New.
4231         (COMPILE): Add $(CFLAGS).
4232
4233 2011-02-21  Tom Tromey  <tromey@redhat.com>
4234
4235         * breakpoint.c (catch_syscall_command_1): Fix typo.
4236
4237 2011-02-21  Tom Tromey  <tromey@redhat.com>
4238
4239         * reverse.c: Include cli-utils.h.
4240         * printcmd.c: Include cli-utils.h.
4241         (string_printf): Use skip_spaces.
4242         * cli/cli-utils.h: New file.
4243         * cli/cli-utils.c: New file.
4244         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4245         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4246         * breakpoint.h (get_number, get_number_or_range): Move to
4247         cli-utils.h.
4248         * breakpoint.c: Include cli-utils.h.
4249         (get_number_trailer, get_number, get_number_or_range)
4250         (ep_skip_leading_whitespace): Move to cli-utils.c.
4251         (create_breakpoint_sal, find_condition_and_thread)
4252         (decode_static_tracepoint_spec, watch_command_1)
4253         (watch_maybe_just_location, ep_parse_optional_if_clause)
4254         (catch_fork_command_1, catch_exec_command_1)
4255         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4256         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4257         (SUBDIR_CLI_SRCS): Add cli-utils.c.
4258         (HFILES_NO_SRCDIR): Add cli-utils.h.
4259         (cli-utils.o): New target.
4260
4261 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
4262
4263         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4264         before calling discard_all_inferiors.
4265
4266 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
4267
4268         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4269         (struct builtin_opencl_type): Remove.
4270         (builtin_opencl_type): Change return type to "struct type **".
4271         (lookup_opencl_vector_type): Update caller.
4272         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4273         (build_opencl_types): Install plain array of "struct type *"
4274         instead of "struct builtin_opencl_type".
4275
4276 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4277             Ulrich Weigand  <uweigand@de.ibm.com>
4278
4279         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4280         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4281         (struct arm_linux_hwbp_cap): New type.
4282         (arm_linux_get_hwbp_cap): New function.
4283         (arm_linux_get_hw_breakpoint_count): Likewise.
4284         (arm_linux_get_hw_watchpoint_count): Likewise.
4285         (arm_linux_can_use_hw_breakpoint): Likewise.
4286         (arm_hwbp_type): New type.
4287         (arm_hwbp_control_t): Likewise.
4288         (struct arm_linux_hw_breakpoint): Likewise.
4289         (struct arm_linux_thread_points): Likewise.
4290         (arm_threads): New global variable.
4291         (arm_linux_find_breakpoints_by_tid): New function.
4292         (arm_hwbp_control_initialize): Likewise.
4293         (arm_hwbp_control_is_enabled): Likewise.
4294         (arm_hwbp_control_disable): Likewise.
4295         (arm_linux_hw_breakpoint_initialize): Likewise.
4296         (arm_linux_get_hwbp_type): Likewise.
4297         (arm_linux_hw_watchpoint_initialize): Likewise.
4298         (arm_linux_hw_breakpoint_equal): Likewise.
4299         (arm_linux_insert_hw_breakpoint1): Likewise.
4300         (arm_linux_remove_hw_breakpoint1): Likewise.
4301         (arm_linux_insert_hw_breakpoint): Likewise.
4302         (arm_linux_remove_hw_breakpoint): Likewise.
4303         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4304         (arm_linux_insert_watchpoint): Likewise.
4305         (arm_linux_remove_watchpoint): Likewise.
4306         (arm_linux_stopped_data_address): Likewise.
4307         (arm_linux_stopped_by_watchpoint): Likewise.
4308         (arm_linux_watchpoint_addr_within_range): Likewise.
4309         (arm_linux_new_thread): Likewise.
4310         (arm_linux_thread_exit): Likewise.
4311         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4312         related target callbacks.  Register arm_linux_new_thread and
4313         arm_linux_thread_exit.
4314         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4315         * arm-tdep.c (arm_pc_is_thumb): Make global.
4316         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4317
4318 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
4319
4320         * breakpoint.c (update_watchpoint): Do not attempt to recreate
4321         per-frame locations while within a function epilogue.
4322
4323 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4324
4325         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4326         to GNU coding standards.
4327
4328 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4329
4330         Allow use of mingw native on Windows 95 OS.
4331         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4332         (ser_windows_close): Only call CancelIo if function exists.
4333         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4334         to check for existence of CancelIo function in kernel32 DLL.
4335
4336 2011-02-21  Hui Zhu  <teawater@gmail.com>
4337
4338         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4339         * ax-gdb.c (gen_printf_expr_callback): New function.
4340         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4341         * ax-general.c (ax_memcpy): New function.
4342         (ax_print): Handle "printf".
4343         (ax_reqs): Ditto.
4344         * ax.h (ax_memcpy): Forward declare.
4345         * common/ax.def (invalid2): Removed.
4346         (printf): New entry.
4347         * printcmd.c (printcmd.h): New include.
4348         (string_printf): New function.
4349         (ui_printf): Removed.
4350         (printf_command): Remove static.  Call string_printf.
4351         (eval_command): Call string_printf.
4352         * printcmd.h: New file.
4353         * tracepoint.c (validate_actionline,
4354         encode_actions_1): handle printf_command.
4355
4356 2011-02-19  Michael Snyder  <msnyder@vmware.com>
4357
4358         * reverse.c (delete_one_bookmark): Argument is now bookmark
4359         id rather than pointer to bookmark struct.
4360         (delete_bookmark_command): Use get_number_or_range.
4361         (goto_bookmark_command): Parse with get_number instead of strtoul.
4362         (bookmark_1): New function.  Print info for one bookmark.
4363         (bookmarks_info): Use get_number_or_range and bookmark_1.
4364
4365 2011-02-18  Michael Snyder  <msnyder@vmware.com>
4366
4367         * thread.c (info_threads_command): Re-implement using
4368         get_number_or_range.
4369         (thread_apply_command): Ditto.
4370
4371 2011-02-18  Tom Tromey  <tromey@redhat.com>
4372
4373         * common/ax.def: New file.
4374         * ax.h (enum agent_op): Use ax.def.
4375         * ax-general.c (aop_map): Use ax.def.
4376
4377 2011-02-18  Tom Tromey  <tromey@redhat.com>
4378
4379         * ax-general.c (aop_map): Add pick and rot.
4380         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4381         <DW_OP_rot>: Implement.
4382         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4383         (ax_pick): Declare.
4384         * ax-general.c (ax_pick): New function.
4385
4386 2011-02-18  Tom Tromey  <tromey@redhat.com>
4387
4388         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4389
4390 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4391             Tom Tromey  <tromey@redhat.com>
4392
4393         * cp-support.c (make_symbol_overload_list_namespace): Do not call
4394         make_symbol_overload_list_block with NULL BLOCK.
4395         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4396
4397 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
4398
4399         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4400         * breakpoint.h (get_number_or_range): Declare.
4401         * printcmd.c (ALL_DISPLAYS): Declare.
4402         (delete_display): Reimplement taking a display pointer.
4403         (undisplay_command): Accept a range of displays to delete, using
4404         get_number_or_range.
4405
4406 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
4407
4408         * c-valprint.c (c_val_print): Add embedded_offset to address
4409         for arrays of unspecified length.
4410         * p-valprint.c (pascal_val_print): Likewise.
4411
4412 2011-02-18  Yao Qi  <yao@codesourcery.com>
4413
4414         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4415         (arm_process_displaced_insn): .. here. Remove parameter INSN.
4416         (thumb_process_displaced_insn): New.
4417         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4418         call to arm_process_displaced_insn.
4419         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4420
4421 2011-02-17  Tom Tromey  <tromey@redhat.com>
4422
4423         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4424         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4425         compile_dwarf_to_ax.  No longer static.  Call
4426         dwarf2_compile_cfa_to_ax.
4427         (locexpr_tracepoint_var_ref): Update.
4428         (loclist_tracepoint_var_ref): Update.
4429         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4430         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4431         argument; add 'gdbarch' and 'pc'.
4432         (dwarf2_compile_cfa_to_ax): New function.
4433         (dwarf2_frame_cache): Update.
4434
4435 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
4436
4437         * ada-lang.c (ada_type_of_array): Fix the size of the array
4438         in the case of an unconstrained packed array.
4439
4440 2011-02-17  Yao Qi  <yao@codesourcery.com>
4441
4442         * common/Makefile.in: Add more targets for make.
4443
4444 2011-02-16  Tom Tromey  <tromey@redhat.com>
4445
4446         * dwarf2loc.c (unimplemented): Fix typo.
4447
4448 2011-02-16  Tom Tromey  <tromey@redhat.com>
4449
4450         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4451         (compile_dwarf_to_ax) <default>: Use unimplemented.
4452         <DW_OP_deref>: Update.
4453         (disassemble_dwarf_expression): Update.
4454         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4455         (decode_locdesc): Update.
4456         * dwarf2expr.h (dwarf_stack_op_name): Update.
4457
4458 2011-02-16  Tom Tromey  <tromey@redhat.com>
4459
4460         * ax.h (struct aop_map) <name>: Now const.
4461
4462 2011-02-16  Tom Tromey  <tromey@redhat.com>
4463
4464         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4465         than axs_rvalue.
4466
4467 2011-02-16  Yao Qi  <yao@codesourcery.com>
4468
4469         * infrun.c (get_displaced_step_closure_by_addr): New.
4470         * inferior.h: Declare it.
4471         * arm-tdep.c: (arm_pc_is_thumb): Call
4472         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
4473         returns non-NULL.
4474
4475 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
4476             Jan Kratochvil  <jan.kratochvil@redhat.com>
4477
4478         gdb/
4479         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4480
4481 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
4482             Jan Kratochvil  <jan.kratochvil@redhat.com>
4483
4484         * value.c (value_contents_copy_raw): Extend describing comment.
4485         Assert that the destination contents we're overwriting are wholly
4486         available.
4487         (value_contents_copy): Extend describing comment.
4488
4489 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
4490             Jan Kratochvil  <jan.kratochvil@redhat.com>
4491
4492         * value.c (value_available_contents_eq): Remove redundant local
4493         variables.  Fix available contents comparision.
4494         * value.h (value_available_contents_eq): Extend describing
4495         comment.
4496
4497 2011-02-16  Yao Qi  <yao@codesourcery.com>
4498
4499         * thread.c (info_threads_command): Add missing i18n markup and remove
4500         trailing newline.
4501
4502 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
4503
4504         * breakpoint.c (longjmp_names): New variable.
4505         (struct breakpoint_objfile_data): New type.
4506         (breakpoint_objfile_key): New variable.
4507         (msym_not_found): New variable.
4508         (msym_not_found_p): New predicate.
4509         (get_breakpoint_objfile_data): New function.
4510         (create_overlay_event_breakpoint): Check per-objfile cache for
4511         symbols first.
4512         (create_longjmp_master_breakpoint): Likewise.
4513         (create_std_terminate_master_breakpoint): Likewise.
4514         (create_exception_master_breakpoint): Likewise.
4515         (_initialize_breakpoint): Register per-objfile data key.
4516
4517 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
4518
4519         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4520         parameter value.
4521         (create_longjmp_master_breakpoint): Loop over longjmp names.
4522         (create_std_terminate_master_breakpoint): Const-propagate parameter
4523         value.
4524         (update_breakpoints_after_exec): Adjust.
4525         (breakpoint_re_set): Adjust.
4526
4527 2011-02-15  Michael Snyder  <msnyder@vmware.com>
4528
4529         * thread.c (info_threads_command): Process arg as thread id,
4530         or list of thread ids.
4531         (thread_find_command): New command.
4532         (_initialize_thread): Document argument for info threads.
4533         Document 'thread find' command.
4534         * NEWS: Document new command "thread find".
4535
4536 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4537
4538         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4539         * aclocal.m4: Regenerated with aclocal-1.11.1.
4540         * common/configure: Regenerate with autoconf-2.64.
4541
4542 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
4543
4544         * opencl-lang.c (build_opencl_types): Set the size of the built-in
4545         bool data type to a size of one byte.
4546
4547 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
4548             Jan Kratochvil  <jan.kratochvil@redhat.com>
4549
4550         * target.c (memory_xfer_live_readonly_partial): Document where to
4551         look for interface description.
4552
4553 2011-02-15  Yao Qi  <yao@codesourcery.com>
4554
4555         PR tdep/12352
4556         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4557         order to store PC value on stack instead of text section.
4558
4559 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4560
4561         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4562         the EFP register set size.
4563         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4564         data from the VMX register.
4565         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4566         and write data from/to the VMX register.
4567
4568 2011-02-14  Michael Snyder  <msnyder@vmware.com>
4569
4570         * command.h (enum command_class): New class 'no_set_class', for
4571         "show" commands without a corresponding "set" command.
4572         * value.c (_initialize_values): Use 'no_set_class' for "show values".
4573         * copying.c (_initialize_copying): Ditto for "show copying" and
4574         "show warranty".
4575         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4576         "show version".
4577         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4578         which there is no corresponding "set" command (eg. "show copying").
4579
4580 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4581             Jan Kratochvil  <jan.kratochvil@redhat.com>
4582
4583         * exec.c (section_table_available_memory): Change `len' parameter
4584         type to ULONGEST.
4585         * exec.h (section_table_available_memory): Ditto.
4586         * value.h (read_value_memory): Rename the `offset' parameter to
4587         `embedded_offset'.
4588
4589 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4590             Jan Kratochvil  <jan.kratochvil@redhat.com>
4591
4592         * memrange.c (compare_mem_ranges): Mention sort order in
4593         describing comment.
4594         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
4595         * tracepoint.c (traceframe_available_memory): Extend comment to
4596         mention what happens to RESULT when the target does not support
4597         the query.
4598
4599 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4600             Jan Kratochvil  <jan.kratochvil@redhat.com>
4601
4602         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4603         range.
4604
4605 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4606
4607         * value.c (value_bits_valid, value_bits_synthetic_pointer):
4608         No longer handle NULL values.
4609
4610 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4611
4612         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4613         * value.c: Include "exceptions.h".
4614         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4615         generic error.
4616         * cp-abi.c: Include gdb_assert.h.
4617         (baseclass_offset): Add `embedded_offset' and `val' parameters.
4618         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
4619         errors.
4620         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4621         parameters.  No longer returns -1 on error.
4622         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4623         `val' parameters.
4624         * cp-valprint.c: Include exceptions.h.
4625         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4626         the baseclass_offset.  Handle unavailable base classes.  Use
4627         val_print_invalid_address.
4628         * p-valprint.c: Include exceptions.h.
4629         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4630         when fetching the baseclass_offset.  No longer expect
4631         baseclass_offset returning -1.  Handle unavailable base classes.
4632         Use val_print_invalid_address.
4633         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4634         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
4635         `embedded_offset' and `val' parameters.  Adjust.
4636         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4637         parameter, and change its type to gdb_byte pointer.  Add
4638         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
4639         baseclass_offset returning -1.
4640         (value_dynamic_cast): Use value_contents_for_printing rather than
4641         value_contents.  Adjust.
4642         (search_struct_field): No longer expect baseclass_offset returning
4643         -1.
4644         (search_struct_method): If reading memory from the target is
4645         necessary, wrap it in a new value to pass to baseclass_offset.  No
4646         longer expect baseclass_offset returning -1.
4647         (find_method_list): No longer expect baseclass_offset returning
4648         -1.  Use value_contents_for_printing rather than value_contents.
4649         * valprint.c (val_print_invalid_address): New function.
4650         * valprint.h (val_print_invalid_address): Declare.
4651         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4652         and `val' parameters.  No longer expect baseclass_offset returning
4653         -1.  Adjust.
4654         * gnu-v2-abi.c: Include "exceptions.h".
4655         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4656         parameters.  Handle unavailable memory.  Recurse through
4657         gnuv2_baseclass_offset directly, rather than through
4658         baseclass_offset.  No longer returns -1 on not found, instead
4659         throw an error.
4660         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4661         `val' parameters.  Adjust.
4662
4663 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4664
4665         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4666         almost but not quite adjacent.
4667
4668 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4669
4670         * value.h (value_entirely_available): Declare.
4671         * value.c (value_entirely_available): New function.
4672         * c-valprint.c (c_value_print): Don't try fetching the pointer's
4673         real type if the pointer is unavailable.
4674
4675 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4676
4677         * valops.c (value_repeat): Use read_value_memory instead of
4678         read_memory.
4679
4680 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4681
4682         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4683         * value.c (value_contents_copy_raw, value_contents_copy): New
4684         functions.
4685         (value_primitive_field): Use value_contents_copy_raw instead of
4686         memcpy.
4687         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4688         memcpy.
4689         (value_array, value_slice): Ditto.
4690         * valarith.c (value_subscripted_rvalue): Use
4691         value_contents_copy_raw instead of memcpy.
4692
4693 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4694
4695         <unavailable> references.
4696
4697         * valops.c (get_value_at): Use value_from_contents_and_address,
4698         avoiding read_memory.
4699
4700 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4701
4702         * c-valprint.c (c_val_print): Print a string with unavailable
4703         contents as an array.
4704
4705 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4706
4707         * value.h (unpack_bits_as_long): Delete declaration.
4708         (unpack_value_bits_as_long): Declare.
4709         (unpack_value_field_as_long): Declare.
4710         (value_field_bitfield): Declare.
4711         * value.c (unpack_bits_as_long): Rename to...
4712         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
4713         value parameters.  Return the extracted result in a new output
4714         parameter.  If the value contents are unavailable, return false,
4715         otherwise return true.
4716         (unpack_value_bits_as_long): New.
4717         (unpack_field_as_long): Rename to...
4718         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
4719         Add embedded_offset and value parameters.  Return the extracted
4720         result in a new output parameter. If the value contents are
4721         unavailable, return false, otherwise return true.
4722         (unpack_value_field_as_long): New.
4723         (unpack_field_as_long_1): New.
4724         (unpack_field_as_long): Reimplement as wrapper around
4725         unpack_value_field_as_long_1.
4726         (value_field_bitfield): New function.
4727         * valops.c (value_fetch_lazy): When fetching a bitfield, use
4728         unpack_value_bits_as_long.  Mark the value as unavailable, if it
4729         is unavailable.
4730         * jv-valprint.c (java_print_value_fields): Use
4731         value_field_bitfield.
4732         * p-valprint.c (pascal_object_print_value_fields): Use
4733         value_field_bitfield.
4734         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4735
4736 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4737
4738         * value.c (get_internalvar_integer): Also return the int value of
4739         TYPE_CODE_INT INTERNALVAR_VALUE values.
4740         (set_internalvar): Don't special case TYPE_CODE_INT.
4741
4742 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4743
4744         * value.c (struct internalvar) <enum internalvar_kind>: Remove
4745         INTERNALVAR_POINTER.
4746         <pointer>: Delete.
4747         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4748         (set_internalvar): Remove special TYPE_CODE_PTR handling.
4749         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4750
4751 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4752
4753         * value.h (value_available_contents_eq): Declare.
4754         * value.c (find_first_range_overlap): New function.
4755         (value_available_contents_eq): New function.
4756         * valprint.c (val_print_array_elements): Use
4757         value_available_contents_eq.
4758         * ada-valprint.c (val_print_packed_array_elements): Use
4759         value_available_contents_eq.
4760         * jv-valprint.c (java_value_print): Use
4761         value_available_contents_eq.
4762
4763 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4764
4765         * target.c (target_read_live_memory): New function.
4766         (memory_xfer_live_readonly_partial): New.
4767         (memory_xfer_partial): If reading from a traceframe, fallback to
4768         reading unavailable read-only memory from read-only regions of
4769         live target memory.
4770         * tracepoint.c (disconnect_tracing): Adjust.
4771         (set_current_traceframe): New, factored out from
4772         set_traceframe_number.
4773         (set_traceframe_number): Reimplement to only change the traceframe
4774         number on the GDB side.
4775         (do_restore_current_traceframe_cleanup): Adjust.
4776         (make_cleanup_restore_traceframe_number): New.
4777         (cur_traceframe_number): New global.
4778         (tfile_open): Set cur_traceframe_number to no traceframe.
4779         (set_tfile_traceframe): New function.
4780         (tfile_trace_find): If looking up a traceframe using any method
4781         other than by number, make sure the current tfile traceframe
4782         matches gdb's current traceframe.  Update the current tfile
4783         traceframe if the lookup succeeded.
4784         (tfile_fetch_registers, tfile_xfer_partial)
4785         (tfile_get_trace_state_variable_value): Make sure the remote
4786         traceframe matches gdb's current traceframe.
4787         * remote.c (remote_traceframe_number): New global.
4788         (remote_open_1): Set it to -1.
4789         (set_remote_traceframe): New function.
4790         (remote_fetch_registers, remote_store_registers)
4791         (remote_xfer_memory, remote_xfer_partial)
4792         (remote_get_trace_state_variable_value): Make sure the remote
4793         traceframe matches gdb's current traceframe.
4794         (remote_trace_find): If looking up a traceframe using any method
4795         other than by number, make sure the current remote traceframe
4796         matches gdb's current traceframe.  Update the current remote
4797         traceframe if the lookup succeeded.
4798         * infrun.c (fetch_inferior_event): Adjust.
4799         * tracepoint.h (set_current_traceframe): Declare.
4800         (get_traceframe_number, set_traceframe_number): Add describing
4801         comments.
4802
4803 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4804
4805         Mark pieces of values as unavailable if the corresponding memory
4806         is unavailable.
4807
4808         * valops.c: Include tracepoint.h.
4809         (value_fetch_lazy): Use read_value_memory.
4810         (read_value_memory): New.
4811         * value.h (read_value_memory): Declare.
4812         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4813         * exec.c (section_table_available_memory): New function.
4814         * exec.h (section_table_available_memory): Declare.
4815
4816 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4817
4818         * Makefile.in (SFILES): Add memrange.c.
4819         (HFILES_NO_SRCDIR): Add memrange.h.
4820         (COMMON_OBS): Add memrange.o.
4821         * memrange.c: New file.
4822         * memrange.h: New file.
4823         * tracepoint.c: Include memrange.h.
4824         (struct mem_range): Delete.
4825         (mem_range_s): Delete.
4826         (traceframe_available_memory): New function.
4827         * tracepoint.h (traceframe_available_memory): Declare.
4828
4829 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4830
4831         * target.h (struct traceframe_info): Forward declare.
4832         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4833         (struct target_ops) <to_traceframe_info>: New field.
4834         (target_traceframe_info): New.
4835         * target.c (update_current_target): Inherit and default
4836         to_traceframe_info.
4837         * remote.c (PACKET_qXfer_traceframe_info): New.
4838         (remote_protocol_features): Register qXfer:traceframe-info:read.
4839         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4840         (remote_traceframe_info): New.
4841         (init_remote_ops): Install it.
4842         (_initialize_remote): Install "set/show remote traceframe-info"
4843         commands.
4844         * tracepoint.h (parse_traceframe_info): Declare.
4845         * tracepoint.c (struct mem_range): New.
4846         (mem_range_s): New typedef.
4847         (struct traceframe_info): New.
4848         (traceframe_info): New global.
4849         (free_traceframe_info): New function.
4850         (clear_traceframe_info): New function.
4851         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4852         info.
4853         (build_traceframe_info): New function.
4854         (tfile_traceframe_info): New function.
4855         (init_tfile_ops): Install tfile_traceframe_info.
4856         (traceframe_info_start_memory, free_result): New functions.
4857         (memory_attributes, traceframe_info_elements): New globals.
4858         (parse_traceframe_info, get_traceframe_info): New functions.
4859         * features/traceframe-info.dtd: New file.
4860         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4861
4862 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4863
4864         Base support for <unavailable> value contents.
4865
4866         * value.h (value_bytes_available): Declare.
4867         (mark_value_bytes_unavailable): Declare.
4868         * value.c (struct range): New struct.
4869         (range_s): New typedef.
4870         (ranges_overlap): New function.
4871         (range_lessthan): New function.
4872         (ranges_contain_p): New function.
4873         (struct value) <unavailable>: New field.
4874         (value_bytes_available): New function.
4875         (mark_value_bytes_unavailable): New function.
4876         (require_not_optimized_out): Constify parameter.
4877         (require_available): New function.
4878         (value_contents_all, value_contents): Require all bytes be
4879         available.
4880         (value_free): Free `unavailable'.
4881         (value_copy): Copy `unavailable'.
4882         * valprint.h (val_print_unavailable): Declare.
4883         * valprint.c (valprint_check_validity): Rename `offset' parameter
4884         to `embedded_offset'.  If printing a scalar, check whether the
4885         value chunk is available.
4886         (val_print_unavailable): New.
4887         (val_print_scalar_formatted): Check whether the value is
4888         available.
4889         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4890         pretty-printing unavailable values.
4891
4892 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4893
4894         Fix const/volatile qualifiers of C++ types, PR c++/12328.
4895         * c-typeprint.c (c_type_print_args): Update the function comment.  New
4896         variable param_type, initialize it.  Remove const/volatile qualifiers
4897         for language_cplus and !show_artificial.  Use param_type.
4898
4899 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4900
4901         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4902         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
4903         * symtab.h (struct symtab) <next>: Comment extension.
4904
4905 2011-02-12  Yao Qi  <yao@codesourcery.com>
4906
4907         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4908
4909 2011-02-11  Yao Qi  <yao@codesourcery.com>
4910
4911         * common/Makefile.in: Add copyright header.
4912
4913 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
4914
4915         * infrun.c (proceed): Move switching out and in of tfind mode from
4916         here ...
4917         (fetch_inferior_event): ... to here.
4918
4919 2011-02-11  Yao Qi  <yao@codesourcery.com>
4920
4921         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
4922         libcommon.a.
4923         * configure.ac: Add common to sub dir.
4924         * configure: Regenerate.
4925
4926 2011-02-11  Yao Qi  <yao@codesourcery.com>
4927
4928         Build libcommon.a.
4929
4930         * common/Makefile.in: New.
4931         * common/configure.ac: New.
4932         * common/aclocal.m4: New.
4933         * common/configure: Generate.
4934
4935 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
4936
4937         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4938         side of the parenthesis.
4939
4940         Merge from GCC:
4941         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4942         * vec.h (VEC_block_remove): Fix comment.
4943
4944 2011-02-08  Michael Snyder  <msnyder@vmware.com>
4945
4946         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4947
4948 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4949
4950         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4951         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4952         psubd and paddd.
4953
4954 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4955
4956         PR 12361.
4957         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4958         phsubsw.
4959         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4960         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4961
4962 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
4963
4964         * dwarf2read.c (read_subroutine_type): Set special calling
4965         convention flag for functions compiled by IBM XL C for OpenCL.
4966         * ppc-sysv-tdep.c: Include "dwarf2.h"
4967         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4968         calling convention.
4969         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
4970         IBM OpenCL vector types calling convention.
4971         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4972         (ppc_sysv_abi_broken_return_value): Likewise.
4973         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4974         types calling convention.
4975         (ppc64_sysv_abi_return_value): Likewise.
4976         * spu-tdep.c: Include "dwarf2.h"
4977         (spu_return_value): Implement IBM OpenCL vector types calling
4978         convention.
4979
4980 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
4981
4982         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4983         correct ABI for AltiVec vector arguments.
4984
4985 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
4986
4987         * valprint.c (val_print): Extend comment.
4988         * ada-valprint.c (ada_valprint): Rewrite comment deferring
4989         interface explanation to val_print.
4990         (ada_val_print_array): Adjust comment to current interface.
4991         (print_field_values): Adjust comment to current interface.
4992         * c-valprint.c (c_val_print): Rewrite comment deferring interface
4993         explanation to val_print.
4994         * f-valprint.c (f_val_print): Ditto.
4995         * jv-valprint.c (java_val_print): Ditto.
4996         * m2-valprint.c (m2_val_print): Ditto.
4997         * p-valprint.c (pascal_val_print): Ditto.
4998
4999 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5000
5001         * breakpoint.c (parse_breakpoint_sals): Fix description.
5002
5003 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
5004             Oguz Kayral <oguzkayral@gmail.com>
5005
5006         * python/py-inferior.c (python_on_normal_stop): New function.
5007         (python_on_resume): New function.
5008         (python_inferior_exit): New function.
5009         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5010         inferior_exit observers.
5011         * python/py-evtregistry.c: New file.
5012         * python/py-threadevent.c : New file.
5013         * python/py-event.c: New file.
5014         * python/py-evts.c: New file.
5015         * python/py-continueevent.c: New file.
5016         * python/py-bpevent.c: New file.
5017         * python/py-signalevent.c: New file.
5018         * python/py-exetiedevent.c: New file.
5019         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5020         Move struct breakpoint_object from here...
5021         * python/python-internal.h: ... to here.
5022         * python/py-event.h: New file.
5023         * python/py-events.h: New file.
5024         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5025         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5026         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5027         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5028         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5029         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5030         Add build rules for all the above.
5031
5032 2011-02-04  Tom Tromey  <tromey@redhat.com>
5033
5034         * dwarf2read.c (dwarf2_section_empty_p): New function.
5035         (dwarf2_read_section): Use dwarf2_section_empty_p.
5036         (dwarf2_section_size): New function.
5037         (dwarf2_get_section_info): Unconditionally read section.
5038         (dwarf2_read_index): Use dwarf2_section_empty_p.
5039         (partial_read_comp_unit_head): Use dwarf2_section_size.
5040         (dwarf2_symbol_mark_computed): Likewise.
5041
5042 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5043
5044         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5045
5046 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5047
5048         * mips-linux-tdep.c: Include xml-syscall.h.
5049         (mips_linux_get_syscall_number): New function.
5050         (mips_linux_init_abi): Add calls to
5051         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5052         * data-directory/Makefile.in (SYSCALLS_FILES): Add
5053         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5054         * syscalls/mips-n32-linux.xml: New file.
5055         * syscalls/mips-n64-linux.xml: New file.
5056         * syscalls/mips-o32-linux.xml: New file.
5057
5058 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
5059
5060         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5061         Complain about inverted range entries.
5062         (dwarf2_record_block_ranges): Likewise.
5063
5064 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5065
5066         Fix some typos.
5067         * breakpoint.c (update_watchpoint): Fix name of the
5068         update_global_location_list function.
5069         (print_one_breakpoint): Fix typo.
5070         (_initialize_breakpoint): Remove extra space in hbreak help
5071         string.
5072         * breakpoint.h (struct bp_location) <length>: Fix field
5073         description.
5074
5075 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
5076
5077         * regcache.c (registers_changed_ptid): Don't explictly always
5078         clear `current_regcache'.  Only clear current_thread_ptid and
5079         current_thread_arch when PTID matches.  Only reinit the frame
5080         cache if PTID matches the current inferior_ptid.  Move alloca(0)
5081         call to ...
5082         (registers_changed): ... here.
5083
5084 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
5085
5086         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5087         starts with __stack_chk_guard as stack guard symbol.
5088
5089 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
5090
5091         * disasm.c (compare_lines): Handle the end of sequence markers
5092         within the line table to better support disassembling over
5093         compilation unit boundaries.
5094
5095 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
5096
5097         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5098         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
5099         implementation even if no symbols are available.
5100         (thumb_analyze_prologue): Update call to skip_prologue_function.
5101         (arm_analyze_prologue): Likewise.
5102
5103 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
5104
5105         * arm-tdep.c: Include "observer.h".
5106         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5107         (arm_exidx_data_key): New static variable.
5108         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5109         (struct arm_exidx_data): Likewise.
5110         (arm_exidx_data_free): New function.
5111         (arm_compare_exidx_entries): Likewise.
5112         (arm_obj_section_from_vma): Likewise.
5113         (arm_exidx_new_objfile): Likewise.
5114         (arm_find_exidx_entry): Likewise.
5115         (arm_exidx_fill_cache): Likewise.
5116         (arm_exidx_unwind_sniffer): Likewise.
5117         (arm_exidx_unwind): New global variable.
5118         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5119         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5120         observer.  Register arm_exidx_data_key as objfile data.
5121
5122 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
5123
5124         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5125         due to accessing uninitialized variable.  Fix indentation.
5126
5127 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
5128
5129         * c-valprint.c (c_value_print): When doing virtual base pointer
5130         adjustment, create a new value with adjusted contents rather than
5131         changing the contents of the value being printed (and getting it
5132         wrong).
5133
5134 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
5135
5136         * xml-support.c (xml_find_attribute): New.
5137         (xinclude_start_include): Use it.
5138         * xml-support.h (xml_find_attribute): Declare.
5139         * memory-map.c (memory_map_start_memory)
5140         (memory_map_start_property): Use xml_find_attribute.
5141         * osdata.c (osdata_start_osdata, osdata_start_column): Use
5142         xml_find_attribute.
5143         * remote.c (start_thread): Use xml_find_attribute.
5144         * solib-target.c (library_list_start_segment)
5145         (library_list_start_section, library_list_start_library)
5146         (library_list_start_list): Use xml_find_attribute.
5147         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5148         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5149         (tdesc_start_field): Use xml_find_attribute.
5150
5151 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
5152
5153         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5154         (BUILD_OCL_VTYPES): Update.
5155
5156 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
5157
5158         * configure.ac: Work around non-GNU sed limitation when computing
5159         python version number.
5160         * configure: Regenerate.
5161
5162 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5163
5164         Fix debug printing of TYPE_INSTANCE.
5165         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5166         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5167
5168 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5169
5170         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5171         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5172         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5173         * ada-operator.inc: Rename the file to ...
5174         * ada-operator.def: ... here, wrap all the entries by macro OP.
5175         * expprint.c (op_name_standard): Remove all the entries.  Include
5176         "std-operator.def" instead.
5177         * expression.h (enum exp_opcode): Include "std-operator.def" and
5178         "ada-operator.def".  Move all the entries ...
5179         * std-operator.def: ... here, wrap all the entries by macro OP.
5180
5181 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
5182
5183         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5184         * breakpoint.c (remove_jit_event_breakpoints): New function.
5185         * jit.c (jit_descriptor_addr): Delete.
5186         (registering_code): Delete.
5187         (clear_int): Delete.
5188         (jit_inferior_data): New variable.
5189         (struct jit_inferior_data): New type.
5190         (get_jit_inferior_data): New function.
5191         (jit_inferior_data_cleanup): New function.
5192         (jit_read_descriptor): Adjust.
5193         (jit_register_code): Adjust.
5194         (jit_breakpoint_re_set_internal): New function; move code here ...
5195         (jit_inferior_init): ... from here.
5196         (jit_breakpoint_re_set): Adjust.
5197         (jit_reset_inferior_data_and_breakpoints): New function.
5198         (jit_inferior_created_observer): Adjust.
5199         (jit_inferior_exit_hook): Adjust.
5200         (jit_executable_changed_observer): New function.
5201         (jit_event_handler): Adjust.
5202         (_initialize_jit): Adjust.
5203
5204 2011-01-31  Michael Snyder  <msnyder@vmware.com>
5205
5206         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5207         line.
5208
5209 2011-01-31  Tom Tromey  <tromey@redhat.com>
5210
5211         PR python/12216:
5212         * python/python.c (execute_gdb_command): Call
5213         prevent_dont_repeat.
5214         * top.c (suppress_dont_repeat): New global.
5215         (dont_repeat): Use it.
5216         (prevent_dont_repeat): New function.
5217         * command.h (prevent_dont_repeat): Declare.
5218
5219 2011-01-31  Tom Tromey  <tromey@redhat.com>
5220
5221         * infcmd.c (finish_backward): Use breakpoint_set_silent.
5222         * python/py-breakpoint.c (bppy_set_silent): Use
5223         breakpoint_set_silent.
5224         (bppy_set_thread): Use breakpoint_set_thread.
5225         (bppy_set_task): Use breakpoint_set_task.
5226         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5227         (breakpoint_set_task): Declare.
5228         (make_breakpoint_silent): Remove.
5229         * breakpoint.c (breakpoint_set_silent): New function.
5230         (breakpoint_set_thread): Likewise.
5231         (breakpoint_set_task): Likewise.
5232         (make_breakpoint_silent): Remove.
5233
5234 2011-01-31  Tom Tromey  <tromey@redhat.com>
5235
5236         * breakpoint.h (user_breakpoint_p): Declare.
5237         * breakpoint.c (user_breakpoint_p): New function.
5238         (breakpoint_1): Use it.
5239         (save_breakpoints): Likewise.
5240
5241 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
5242
5243         * configure.ac: Add handling of Python distribution on Windows.
5244         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5245         sysconfig variables are not defined, then do not use them.
5246         On Windows, if LIBPL is not defined, then use prefix + '/libs'
5247         instead.  On Windows, return all paths using forward-slashes
5248         rather than backslashes.
5249
5250 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
5251
5252         * configure.ac: Remove fallback behavior for building
5253         against Python.  Remove tweaking of Python include path.
5254         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5255         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
5256         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5257         Always restore CPPFLAGS and LIBS after linking test.
5258         * configure: Regenerated.
5259         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5260         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5261         * python/python-internal.h: Adjust includes of Python .h files.
5262
5263 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
5264
5265         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5266         in error message.
5267
5268 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
5269
5270         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5271         value test.
5272
5273 2011-01-31  Yao Qi  <yao@codesourcery.com>
5274
5275         * arm-linux-nat.c: Update calls to regcache_register_status
5276         instead of regcache_valid_p.
5277         * aix-thread.c: Likewise.
5278         * i386gnu-nat.c: Likewise.
5279
5280 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5281
5282         Fix crash.
5283         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5284         touching TYPE_FIELD_ARTIFICIAL.
5285
5286 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
5287
5288         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5289         Committers.
5290
5291 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
5292
5293         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5294         selected, don't try iterating over the traceframe's blocks.
5295         (tfile_has_stack): If there's no traceframe selected, then there's
5296         no stack.
5297         (tfile_has_registers): If there's no traceframe selected, then
5298         there's no registers.
5299
5300 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
5301
5302         * target.c (memory_xfer_partial): No need to restore shadows if we
5303         haven't read anything.
5304
5305 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
5306
5307         * mips-tdep.c (mips_print_register): Use get_frame_register_value
5308         and val_print_scalar_formatted.
5309
5310 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
5311
5312         * tracepoint.c (tfile_read): New.
5313         (tfile_open): Use it.
5314         (tfile_get_traceframe_address): Use it.
5315         (tfile_trace_find): Use it.
5316         (walk_blocks_callback_func): New typedef.
5317         (match_blocktype): New function.
5318         (traceframe_walk_blocks): New function.
5319         (traceframe_find_block_type): New function.
5320         (tfile_fetch_registers, tfile_xfer_partial)
5321         (tfile_get_trace_state_variable_value): Use
5322         traceframe_find_block_type and tfile_read.
5323
5324 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
5325
5326         * remote-mips.c: Add internationalization mark ups.  Remove
5327         trailing \n from already marked up strings.
5328
5329 2011-01-26  Tom Tromey  <tromey@redhat.com>
5330
5331         * python/py-prettyprint.c (print_string_repr): Clear
5332         'addressprint' option when calling val_print_string.
5333         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
5334         option when calling val_print_string.
5335
5336 2011-01-26  Tom Tromey  <tromey@redhat.com>
5337
5338         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5339         GDB_PY_LL_ARG.
5340         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5341         macros.
5342         (gdb_py_longest, gdb_py_ulongest): New typedefs.
5343         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5344         (gdb_py_long_as_ulongest): New defines.
5345         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5346         (gdb_py_int_as_long): Declare.
5347         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5348         GDB_PY_LL_ARG, gdb_py_object_from_longest.
5349         (valpy_long): Add comment.
5350         * python/py-utils.c (get_addr_from_python): Use
5351         gdb_py_long_as_ulongest.  Handle overflow properly.
5352         (gdb_py_object_from_longest): New function.
5353         (gdb_py_object_from_ulongest): Likewise.
5354         (gdb_py_int_as_long): Likewise.
5355         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5356         * python/py-symtab.c (salpy_get_pc): Use
5357         gdb_py_long_from_ulongest.
5358         (salpy_get_line): Use PyInt_FromLong.
5359         * python/py-param.c (set_parameter_value): Use
5360         gdb_py_int_as_long.
5361         * python/py-lazy-string.c (stpy_get_address): Use
5362         gdb_py_long_from_ulongest.
5363         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5364         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5365         * python/py-breakpoint.c (bppy_set_thread): Use
5366         gdb_py_int_as_long.
5367         (bppy_set_task): Likewise.
5368         (bppy_set_ignore_count): Likewise.
5369         (bppy_set_hit_count): Likewise.
5370         * python/py-block.c (blpy_get_start): Use
5371         gdb_py_object_from_ulongest.
5372         (blpy_get_end): Likewise.
5373         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5374
5375 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
5376
5377         PR/symtab 11766:
5378         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5379         * gdb/solib.c (solib_read_symbols): Check for addr_low in
5380         equality test for objfile, initialize addr_low if needed.
5381
5382 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5383
5384         * tui/tui-regs.c (tui_register_format): Remove dead code.
5385
5386 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5387
5388         * printcmd.c (print_formatted): Use val_print_scalar_formatted
5389         instead of print_scalar_formatted.
5390         (print_scalar_formatted): Don't handle 's' format strings here,
5391         and add an assertion that we never see such format here.
5392         * valprint.h (val_print_scalar_formatted): Declare.
5393         * valprint.c (val_print_scalar_formatted): New.
5394         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5395         instead of print_scalar_formatted.
5396         * jv-valprint.c (java_val_print): Ditto.
5397         * p-valprint.c (pascal_val_print): Ditto.
5398         * ada-valprint.c (ada_val_print_1): Ditto.
5399         * f-valprint.c (f_val_print): Ditto.
5400         * infcmd.c (registers_info): Ditto.
5401         * m2-valprint.c (m2_val_print): Ditto.
5402
5403 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5404
5405         * m2-valprint.c (print_unbounded_array): Pass
5406         value_contents_for_printing rather than value_contents, to
5407         m2_print_array_contents.  Also pass in the value.
5408
5409 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
5410
5411         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5412         (save_gdb_index_command): Switch to .gdb_index version 4.
5413
5414 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5415
5416         * mi/mi-main.c (get_register): Use get_frame_register_value rather
5417         than frame_register, and always pass a valid value to val_print.
5418
5419 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5420
5421         Centralize printing "<optimized out>".
5422
5423         * valprint.h (val_print_optimized_out): Declare.
5424         * cp-valprint.c (cp_print_value_fields): Use
5425         val_print_optimized_out.
5426         * jv-valprint.c (java_print_value_fields): Ditto.
5427         * p-valprint.c (pascal_object_print_value_fields): Ditto.
5428         * printcmd.c (print_formatted): Ditto.
5429         * valprint.c (valprint_check_validity): Ditto.
5430         (value_check_printable): Ditto.
5431         (val_print_optimized_out): New.
5432
5433 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5434
5435         * infcmd.c (default_print_registers_info): Allocate values so to
5436         never pass a NULL value to val_print.
5437
5438 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5439
5440         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5441         boolean.  Make sure to always pass a value that matches the
5442         contents buffer to callees.  Preserve `address' for following
5443         iterations.
5444         * value.c (value_contents_for_printing_const): New.
5445         (value_address): Constify value argument.
5446         * value.h (value_contents_for_printing_const): Declare.
5447         (value_address): Constify value argument.
5448
5449 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5450
5451         * regcache.c (struct regcache_descr): Rename
5452         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5453         and sizeof_cooked_register_valid_p to
5454         sizeof_cooked_register_status.
5455         (init_regcache_descr): Adjust.
5456         (struct regcache): Rename register_valid_p field to
5457         register_status.
5458         (regcache_xmalloc_1, regcache_xfree, regcache_save)
5459         (do_cooked_read): Adjust.
5460         (regcache_valid_p): Rename to ...
5461         (regcache_register_status): ... this.  Adjust.
5462         (regcache_invalidate): Adjust.
5463         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5464         Adjust.
5465         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
5466         as unavailable, not valid.
5467         (regcache_dump): Adjust.
5468         * regcache.h (enum register_status): New.
5469         (regcache_register_status): Declare.
5470         (regcache_invalidate): Delete declaration.
5471         * corelow.c (get_core_registers): Adjust.
5472         * tracepoint.c (tfile_fetch_registers): Adjust.
5473         * trad-frame.c (REG_VALUE): Rename to ...
5474         (TF_REG_VALUE): ... this.
5475         (REG_UNKNOWN): Rename to ...
5476         (TF_REG_UNKNOWN): ... this.
5477         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5478         * mi/mi-main.c (register_changed_p): Adjust.
5479
5480 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5481
5482         * regcache.c (struct regcache_descr): Remove outdated comment.
5483         (init_regcache_descr): Remove sizeof_raw_register_valid_p
5484         overallocate hack.
5485         (regcache_xmalloc): Rename to ...
5486         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
5487         Allocate the regcache type accordingly.
5488         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5489         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
5490         cooked registers, not raw.
5491         (regcache_dup_no_passthrough): Delete.
5492         (get_thread_arch_regcache): Use regcache_xmalloc_1.
5493         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5494         mention obsolete write_register_bytes.
5495         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5496
5497 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5498
5499         Stop remote_read_bytes from handling partial reads itself.
5500
5501         * remote-fileio.c: Include target.h.
5502         (remote_fileio_write_bytes): Delete.
5503         (remote_fileio_func_open, remote_fileio_func_write)
5504         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5505         target_read_memory.
5506         (remote_fileio_func_stat): Use target_read_memory and
5507         target_write_memory.
5508         (remote_fileio_func_gettimeofday): Use target_write_memory.
5509         (remote_fileio_func_system): Use target_read_memory.
5510         * remote.c (remote_write_bytes): Make it static.
5511         (remote_read_bytes): Don't handle partial reads here.
5512         * remote.h (remote_read_bytes): Delete declaration.
5513
5514 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5515
5516         Simplify XML parsing a bit.
5517
5518         * xml-support.h (gdb_xml_parse_quick): Declare.
5519         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5520         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5521         parameter.
5522         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5523         gdb_xml_create_parser_and_cleanup_1.
5524         (gdb_xml_parse_quick): New.
5525         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5526         * osdata.c (osdata_parse): Ditto.
5527         * remote.c (remote_threads_info): Ditto.
5528         * solib-target.c (solib_target_parse_libraries): Ditto.
5529         * xml-syscall.c (syscall_parse_xml): Ditto.
5530         * xml-tdesc.c (tdesc_parse_xml): Ditto.
5531
5532 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
5533
5534         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5535         with remote-mips.o added to gdb_target_obs.
5536         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5537
5538 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
5539
5540         * ada-valprint.c (val_print_packed_array_elements): Pass the
5541         correct struct value to val_print.
5542         (ada_val_print_1): Ditto.
5543
5544 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
5545
5546         Don't lose embedded_offset in printing routines throughout.
5547
5548         * valprint.h (val_print_array_elements): Change prototype.
5549         * valprint.c (val_print_array_elements): Add `embedded_offset'
5550         parameter, and adjust to pass it down to val_print, while passing
5551         `valaddr' or `address' unmodified.  Take embedded_offset into
5552         account when checking repetitions.
5553         * c-valprint.c (c_val_print): Pass embedded_offset to
5554         val_print_array_elements instead of adjusting `valaddr' and
5555         `address'.
5556         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5557         embedded_offset to val_print_array_elements instead of adjusting
5558         `valaddr'.
5559         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5560         * p-valprint.c (pascal_val_print): Pass embedded_offset to
5561         val_print_array_elements and pascal_object_print_value_fields
5562         instead of adjusting `valaddr'.
5563         (pascal_object_print_value_fields): Add `offset' parameter, and
5564         adjust to use it.
5565         (pascal_object_print_value): Add `offset' parameter, and adjust to
5566         use it.
5567         (pascal_object_print_static_field): Use
5568         value_contents_for_printing/value_embedded_offset, rather than
5569         value_contents.
5570         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5571         parameter, and adjust to use it.  Use
5572         value_contents_for_printing/value_embedded_offset, rather than
5573         value_contents.
5574         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5575         (ada_val_print_array): Add `offset' parameter, and adjust to use
5576         it.
5577         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5578         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
5579         Instead work with offsets.  Use
5580         value_contents_for_printing/value_embedded_offset, rather than
5581         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
5582         and use value_from_pointer to extract a target pointer, rather
5583         than value_from_longest.
5584         (print_variant_part): Add `offset' parameter.  Replace
5585         `outer_valaddr' parameter by a new `outer_offset' parameter.
5586         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
5587         (ada_value_print): Use
5588         value_contents_for_printing/value_embedded_offset, rather than
5589         value_contents.
5590         (print_record): Add `offset' parameter, and adjust to pass it
5591         down.
5592         (print_field_values): Add `offset' parameter.  Replace
5593         `outer_valaddr' parameter by a new `outer_offset' parameter.
5594         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
5595         Use value_contents_for_printing/value_embedded_offset, rather than
5596         value_contents.
5597         * d-valprint.c (dynamic_array_type): Use
5598         value_contents_for_printing/value_embedded_offset, rather than
5599         value_contents.
5600         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5601         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
5602         (java_print_value_fields): Take `offset' into account.  Don't
5603         re-adjust `valaddr'.  Instead pass down adjusted offsets.
5604         (java_val_print): Take `embedded_offset' into account.  Pass it to
5605         java_print_value_fields.
5606         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5607         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
5608         down adjusted offsets.
5609         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
5610         (f_val_print): Take `embedded_offset' into account.
5611
5612 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
5613
5614         * inflow.c: Include "gdbcmd.h".
5615         (interactive_mode): New static global, moved here from top.c.
5616         (show_interactive_mode): New function, moved here from top.c.
5617         use gdb_has_a_terminal instead of input_from_terminal_p to
5618         determine the current mode.
5619         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5620         setting.
5621         (_initialize_inflow): Add the "set/show interactive-mode"
5622         commands.  Moved here from top.c, after having adjusted slightly
5623         the help text.
5624         * top.c (interactive_mode, show_interactive_mode): Delete, moved
5625         to inflow.c.
5626         (input_from_terminal_p): Remove handling of "interactive-mode"
5627         setting, moved to infow.c.
5628         (init_main): Remove creation of the "set/show interactive-mode"
5629         commands, moved to inflow.c.
5630
5631 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
5632
5633         * NEWS: Add entry for native ia64-hpux support.
5634
5635 2011-01-19  Tom Tromey  <tromey@redhat.com>
5636
5637         PR mi/8618:
5638         * thread.c (free_thread): Free 'name'.
5639         (print_thread_info): Emit thread name.  Change CLI output.
5640         (thread_name_command): New function.
5641         (do_captured_thread_select): Emit newline.
5642         (_initialize_thread): Register 'thread name' command.
5643         * target.h (struct target_ops) <to_thread_name>: New field.
5644         (target_thread_name): New macro.
5645         * target.c (update_current_target): Handle to_thread_name.
5646         * python/py-infthread.c (thpy_get_name): New function.
5647         (thpy_set_name): Likewise.
5648         (thread_object_getset): Add "name".
5649         * linux-nat.c (linux_nat_thread_name): New function.
5650         (linux_nat_add_target): Set to_thread_name.
5651         * gdbthread.h (struct thread_info) <name>: New field.
5652
5653 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
5654
5655         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5656         (ada_val_print_1): Likewise.
5657
5658 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
5659
5660         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5661         upper limit address is not greater than the function end address
5662         when the upper limit could not be computed using the debugging
5663         info.
5664
5665 2011-01-17  Tom Tromey  <tromey@redhat.com>
5666
5667         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
5668         get_regcomp_error.
5669         * utils.c: Include gdb_regex.h.
5670         (do_regfree_cleanup): New function.
5671         (make_regfree_cleanup): Likewise.
5672         (get_regcomp_error): Likewise.
5673         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5674
5675 2011-01-17  Tom Tromey  <tromey@redhat.com>
5676
5677         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
5678         re_compile_fastmap.
5679
5680 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
5681
5682         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5683         for internal variables.
5684         (last_was_structop): New static variable.
5685         (COMPLETE): New token.
5686         (field_exp): New rule to group all '.' suffix handling.
5687         Add mark_struct_expression calls when approriate to be able
5688         to correctly find fields for completion.
5689         (yylex): Adapt to handle field completion and set INTVAR when
5690         required.
5691
5692 2011-01-14  Yao Qi  <yao@codesourcery.com>
5693
5694         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5695         save_reggroup, restore_reggroup and all_reggroup.
5696
5697 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
5698
5699         * ada-valprint. (ada_printchar): Use the correct type length
5700         in call to ada_emit_char.
5701         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5702
5703 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
5704
5705         * solib-som.h (hpux_major_release): Declare variable here.
5706         * solib-som.c:  Remove <sys/utsname.h> header.
5707         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5708         (hpux_major_release): Make global, change default value to
5709         DEFAULT_HPUX_MAJOR_RELEASE.
5710         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5711         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5712         Add "solib-som.h" header.
5713         (set_hpux_major_release): New function.
5714         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5715
5716 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
5717
5718         * configure.tgt (*-*-uclinux*): Match more Linux os targets
5719
5720 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
5721
5722         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5723         new-line at end of warning message.
5724         (ia64_hpux_store_register): Remove trailing new-line at end of
5725         error message.
5726         * ia64-hpux-tdep.c: Rephrase comment.
5727         * solib-ia64-hpux.c (struct dld_info): Change type of field
5728         dld_flags from "long long" to ULONGEST.
5729
5730 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
5731
5732         * target.h (deprecated_child_ops): Delete declaration.
5733         * target.c (deprecated_child_ops): Delete definition.
5734
5735 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
5736
5737         * Makefile.in (hpux-thread.o): Delete rule.
5738         * configure.ac: Don't check for HPUX DCE threads support.
5739         * configure, config.in: Regenerate.
5740         * hppa-hpux-nat.c (child_suppress_run): Delete.
5741         (hppa_hpux_child_can_run): Delete.
5742         (_initialize_hppa_hpux_nat): Don't override to_can_run.
5743         * hpux-thread.c: Delete.
5744
5745 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5746
5747         * hpux-thread.c (hpux_pid_to_str): Delete.
5748
5749 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5750
5751         * ada-valprint.c (ada_emit_char): Remove strange code.
5752         Check that c is <= UCHAR_MAX before passing it to isascii.
5753         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5754
5755 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5756
5757         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5758         to the case where instream is stdin.
5759
5760 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5761
5762         * ia64-tdep.h (struct regcache): Forward declare.
5763         (struct ia64_infcall_ops): New struct type.
5764         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5765         and "infcall_ops".
5766         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5767         Renames ia64_find_global_pointer.
5768         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5769         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5770         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5771         methods.
5772         (ia64_infcall_ops): New static global constant.
5773         (ia64_gdbarch_init): Set tdep->infcall_ops.
5774         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5775         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5776         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5777         (ia64_hpux_dummy_code): New static global constant.
5778         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5779         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5780         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5781         New function.
5782         (ia64_hpux_infcall_ops): New static global constant.
5783         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5784         for inferior function calls to work properly on ia64-hpux.
5785
5786 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5787
5788         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5789         * ia64-tdep.h (struct frame_info): forward declaration.
5790         (struct gdbarch_tdep): Add field size_of_register_frame.
5791         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5792         to determine the size of the register frame.
5793         (ia64_size_of_register_frame): New function.
5794         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5795         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5796         (IA64_HPUX_UREG_REASON): New macro.
5797         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5798         New functions.
5799         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5800         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5801         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5802         objects.
5803
5804 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5805
5806         Add support for ia64-hpux.
5807         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5808         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5809
5810         * configure.host: Add handling for ia64-hpux hosts.  Add associated
5811         floatformats.
5812         * configure.tgt: Add handling for ia64-hpux targets.
5813         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5814         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5815         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5816
5817 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5818
5819         [ttrace] Compute thread list immediately after attach.
5820         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5821         New subprogram.
5822         (inf_ttrace_attach): Use it.
5823
5824 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5825
5826         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5827         if we could not determine the frame's function address.  Instead,
5828         use the frame's PC, and then continue.
5829
5830 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5831
5832         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5833         not already defined.
5834
5835 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5836
5837         * ia64-tdep.c (ia64_struct_type_p): New function.
5838         (ia64_extract_return_value): Handle integral values that are
5839         less than 8 bytes long.
5840         (ia64_push_dummy_call): Likewise.
5841
5842 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5843
5844         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5845         floatformat_ia64_ext.
5846         (floatformat_ia64_ext_big): New static const.
5847         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5848
5849 2011-01-12  Tom Tromey  <tromey@redhat.com>
5850
5851         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5852         messages.
5853         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5854         (mi_cmd_thread_list_ids): Likewise.
5855         (mi_cmd_data_list_changed_registers): Likewise.
5856         (mi_cmd_data_list_register_values): Likewise.
5857         (mi_cmd_data_write_register_values): Likewise.
5858         (mi_cmd_data_evaluate_expression): Likewise.
5859         (mi_cmd_data_read_memory): Likewise.
5860         (mi_cmd_data_read_memory_bytes): Likewise.
5861         (mi_cmd_data_write_memory): Likewise.
5862         (mi_cmd_enable_timings): Likewise.
5863         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5864         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5865         (mi_cmd_var_delete): Likewise.
5866         (mi_cmd_var_set_format): Likewise.
5867         (mi_cmd_var_show_format): Likewise.
5868         (mi_cmd_var_info_num_children): Likewise.
5869         (mi_cmd_var_list_children): Likewise.
5870         (mi_cmd_var_info_type): Likewise.
5871         (mi_cmd_var_info_expression): Likewise.
5872         (mi_cmd_var_show_attributes): Likewise.
5873         (mi_cmd_var_assign): Likewise.
5874         (mi_cmd_var_update): Likewise.
5875         (mi_cmd_enable_pretty_printing): Likewise.
5876         (mi_cmd_var_set_update_range): Likewise.
5877         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5878         messages.
5879         (mi_cmd_target_file_put): Likewise.
5880         (mi_cmd_target_file_delete): Likewise.
5881         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5882         messages.
5883         (mi_cmd_stack_info_depth): Likewise.
5884         (mi_cmd_stack_list_locals): Likewise.
5885         (mi_cmd_stack_list_args): Likewise.
5886         (mi_cmd_stack_select_frame): Likewise.
5887         (mi_cmd_stack_select_frame): Likewise.
5888         (mi_cmd_stack_info_frame): Likewise.
5889         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5890         messages.
5891         (mi_cmd_file_list_exec_source_files): Likewise.
5892         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5893         (mi_cmd_env_cd): Likewise.
5894         (mi_cmd_env_path): Likewise.
5895         (mi_cmd_env_dir): Likewise.
5896         (mi_cmd_inferior_tty_show): Likewise.
5897         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5898         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5899         (mi_cmd_break_watch): Likewise.
5900
5901 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5902
5903         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5904         (ppc_linux_insert_hw_breakpoint): Likewise.
5905         (ppc_linux_remove_hw_breakpoint): Likewise.
5906         (ppc_linux_insert_watchpoint): Likewise.
5907
5908 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
5909             Jan Kratochvil  <jan.kratochvil@redhat.com>
5910
5911         PR fortran/11104 and DWARF unbound arrays detection.
5912         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5913         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5914         unspecified upper bound.
5915         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5916         variables array_size_array, tmp_type and offset_item.  New variable
5917         array.  Remove call to f77_get_upperbound.  New variables array_type
5918         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
5919         the final call to deprecated_set_value_type.
5920
5921 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5922
5923         Make value allocations more lazy.
5924         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5925         instead of allocate_value and set_value_lazy when possible.
5926         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5927         instead of allocate_value and set_value_lazy.
5928         * findvar.c (value_of_register_lazy): Likewise.
5929         (read_var_value): Remove V preallocation, call just check_typedef in
5930         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
5931         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5932         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
5933         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
5934         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
5935         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
5936         the end, remove set_value_lazy there.
5937         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5938         instead of allocate_value and set_value_lazy when possible.
5939         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5940         * value.c (allocate_computed_value): Use allocate_value_lazy instead
5941         of allocate_value and set_value_lazy.
5942         (value_from_contents_and_address): Use allocate_value_lazy instead of
5943         allocate_value and set_value_lazy when possible.
5944
5945 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
5946
5947         * disasm.c (dump_insns): Support dumping opcodes for MI.
5948         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5949         dumping of instruction opcodes.
5950
5951 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
5952
5953         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5954         appropiately.
5955
5956 2011-01-11  Tom Tromey  <tromey@redhat.com>
5957
5958         * thread.c (do_captured_thread_select): Emit newline before
5959         printing frame.
5960
5961 2011-01-11  Michael Snyder  <msnyder@vmware.com>
5962
5963         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5964         * score-tdep.c: Ditto.
5965         * score-tdep.h: Ditto.
5966         * ser-base.c: Ditto.
5967         * ser-go32.c: Ditto.
5968         * serial.c: Ditto.
5969         * serial.h: Ditto.
5970         * ser-mingw.c: Ditto.
5971         * ser-pipe.c: Ditto.
5972         * ser-tcp.c: Ditto.
5973         * ser-unix.c: Ditto.
5974         * sh64-tdep.c: Ditto.
5975         * shnbsd-nat.c: Ditto.
5976         * sh-tdep.c: Ditto.
5977         * sh-tdep.h: Ditto.
5978         * solib.c: Ditto.
5979         * solib-darwin.c: Ditto.
5980         * solib-frv.c: Ditto.
5981         * solib.h: Ditto.
5982         * solib-irix.c: Ditto.
5983         * solib-osf.c: Ditto.
5984         * solib-pa64.c: Ditto.
5985         * solib-som.c: Ditto.
5986         * solib-spu.c: Ditto.
5987         * solib-sunos.c: Ditto.
5988         * solib-svr4.c: Ditto.
5989         * solist.h: Ditto.
5990         * sol-thread.c: Ditto.
5991         * somread.c: Ditto.
5992         * source.c: Ditto.
5993         * source.h: Ditto.
5994         * sparc64-linux-tdep.c: Ditto.
5995         * sparc64-tdep.c: Ditto.
5996         * sparc-linux-nat.c: Ditto.
5997         * sparc-linux-tdep.c: Ditto.
5998         * sparc-sol2-nat.c: Ditto.
5999         * sparc-sol2-tdep.c: Ditto.
6000         * sparc-tdep.c: Ditto.
6001         * sparc-tdep.h: Ditto.
6002         * spu-tdep.c: Ditto.
6003         * stabsread.c: Ditto.
6004         * stabsread.h: Ditto.
6005         * stack.c: Ditto.
6006         * symfile.c: Ditto.
6007         * symfile.h: Ditto.
6008         * symmisc.c: Ditto.
6009         * symtab.c: Ditto.
6010         * symtab.h: Ditto.
6011         * target.c: Ditto.
6012         * target-descriptions.c: Ditto.
6013         * target-descriptions.h: Ditto.
6014         * target.h: Ditto.
6015         * target-memory.c: Ditto.
6016         * terminal.h: Ditto.
6017         * thread.c: Ditto.
6018         * top.c: Ditto.
6019         * tracepoint.c: Ditto.
6020         * tracepoint.h: Ditto.
6021         * trad-frame.h: Ditto.
6022         * typeprint.c: Ditto.
6023
6024 2011-01-11  Michael Snyder  <msnyder@vmware.com>
6025
6026         * ui-file.c: Comment cleanup, mostly periods and spaces.
6027         * ui-file.h: Ditto.
6028         * ui-out.c: Ditto.
6029         * ui-out.h: Ditto.
6030         * utils.c: Ditto.
6031         * v850-tdep.c: Ditto.
6032         * valarith.c: Ditto.
6033         * valops.c: Ditto.
6034         * valprint.c: Ditto.
6035         * valprint.h: Ditto.
6036         * value.c: Ditto.
6037         * value.h: Ditto.
6038         * varobj.c: Ditto.
6039         * varobj.h: Ditto.
6040         * vax-tdep.c: Ditto.
6041         * vec.c: Ditto.
6042         * vec.h: Ditto.
6043         * version.h: Ditto.
6044         * windows-nat.c: Ditto.
6045         * windows-tdep.c: Ditto.
6046         * xcoffread.c: Ditto.
6047         * xcoffsolib.c: Ditto.
6048         * xml-support.c: Ditto.
6049         * xstormy16-tdep.c: Ditto.
6050         * xtensa-tdep.c: Ditto.
6051         * xtensa-tdep.h: Ditto.
6052
6053 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6054
6055         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6056         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6057
6058 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6059             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6060
6061         Implement support for PowerPC BookE ranged watchpoints.
6062         * breakpoint.h
6063         (struct breakpoint_ops) <resources_needed>: New method.
6064         Initialize to NULL in all existing breakpoint_ops instances.
6065         (struct breakpoint) <exact>: New field.
6066         (target_exact_watchpoints): Declare external global.
6067         * breakpoint.c (target_exact_watchpoints): New global flag.
6068         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6069         b->enable_state to bp_enabled before calling
6070         hw_watchpoint_used_count.
6071         (hw_watchpoint_used_count): Iterate over all bp_locations in a
6072         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
6073         if available.
6074         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6075         if the watchpoint is exact.
6076         (resources_needed_watchpoint): New function.
6077         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6078         (watch_command_1): Set b->exact if the user asked for an exact
6079         watchpoint and one can be set.
6080         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6081         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6082         the user asks for an exact watchpoint and one can be set.  Return
6083         number of needed debug registers to watch the expression.
6084         * gdbtypes.c (is_scalar_type): New function, based on
6085         valprint.c:scalar_type_p.
6086         (is_scalar_type_recursive): New function.
6087         * gdbtypes.h (is_scalar_type_recursive): Declare.
6088         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6089         handle regions when ranged watchpoints are available.
6090         (create_watchpoint_request): New function.
6091         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6092         create_watchpoint_request.
6093         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6094         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6095         `set powerpc' and `show powerpc' commands.
6096         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6097         Mention documentation comment in the target macro.
6098         (target_region_ok_for_hw_watchpoint): Document return value.
6099
6100 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6101
6102         * breakpoint.c (update_watchpoint): Decide on using a software or
6103         hardware watchpoint after the bp_locations are created.
6104
6105 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6106
6107         Convert hardware watchpoints to use breakpoint_ops.
6108         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6109         <insert_location>: ... this.  Return int instead of void.
6110         Accept pointer to struct bp_location instead of pointer to
6111         struct breakpoint.  Adapt all implementations.
6112         (breakpoint_ops) <remove>: Rename to...
6113         <remove_location>: ... this.  Accept pointer to struct bp_location
6114         instead of pointer to struct breakpoint.  Adapt all implementations.
6115         * breakpoint.c (insert_catchpoint): Delete function.
6116         (insert_bp_location): Call the watchpoint or catchpoint's
6117         breakpoint_ops.insert method.
6118         (remove_breakpoint_1): Call the watchpoint or catchpoint's
6119         breakpoint_ops.remove method.
6120         (insert_watchpoint, remove_watchpoint): New functions.
6121         (watchpoint_breakpoint_ops): New structure.
6122         (watch_command_1): Initialize the OPS field.
6123         * inf-child.c (inf_child_insert_fork_catchpoint)
6124         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6125         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6126         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6127         Delete functions.
6128         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6129         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6130         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6131         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6132         * target.c (update_current_target): Change default implementation of
6133         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6134         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6135         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6136         to_set_syscall_catchpoint to return_one.
6137         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6138         (debug_to_insert_exec_catchpoint): Report return value.
6139         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6140         (to_insert_exec_catchpoint): Change declaration to return int instead
6141         of void.
6142
6143 2011-01-11  Michael Snyder  <msnyder@vmware.com>
6144
6145         * arm-tdep.c: Internationalization.
6146         * c-lang.c: Ditto.
6147         * charset.c: Ditto.
6148         * fork-child.c: Ditto.
6149         * nto-procfs.c: Ditto.
6150         * ppc-sysv-tdep.c: Ditto.
6151         * procfs.c: Ditto.
6152         * remote-mips.c: Ditto.
6153         * remote.c: Ditto.
6154         * rs6000-nat.c: Ditto.
6155         * rs6000-tdep.c: Ditto.
6156         * target.c: Ditto.
6157         * valops.c: Ditto.
6158         * value.c: Ditto.
6159         * xml-support.c: Ditto.
6160         * mi/mi-cmd-break.c: Ditto.
6161         * mi/mi-cmd-var.c: Ditto.
6162         * mi/mi-interp.c: Ditto.
6163         * mi/mi-main.c: Ditto.
6164
6165 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
6166
6167         * remote-sim.c (gdbsim_store_register): Update API to
6168         sim_store_register to check more error conditions.
6169
6170 2011-01-10  Michael Snyder  <msnyder@vmware.com>
6171
6172         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6173         * nto-tdep.c: Ditto.
6174         * nto-tdep.h: Ditto.
6175         * objc-exp.y: Ditto.
6176         * objc-lang.c: Ditto.
6177         * objfiles.c: Ditto.
6178         * objfiles.h: Ditto.
6179         * observer.c: Ditto.
6180         * opencl-lang.c: Ditto.
6181         * osabi.c: Ditto.
6182         * parse.c: Ditto.
6183         * parser-defs.h: Ditto.
6184         * p-exp.y: Ditto.
6185         * p-lang.c: Ditto.
6186         * posix-hdep.c: Ditto.
6187         * ppcbug-rom.c: Ditto.
6188         * ppc-linux-nat.c: Ditto.
6189         * ppc-linux-tdep.c: Ditto.
6190         * ppc-linux-tdep.h: Ditto.
6191         * ppcnbsd-tdep.c: Ditto.
6192         * ppcobsd-tdep.c: Ditto.
6193         * ppcobsd-tdep.h: Ditto.
6194         * ppc-sysv-tdep.c: Ditto.
6195         * ppc-tdep.h: Ditto.
6196         * printcmd.c: Ditto.
6197         * proc-abi.c: Ditto.
6198         * proc-flags.c: Ditto.
6199         * procfs.c: Ditto.
6200         * proc-utils.h: Ditto.
6201         * progspace.h: Ditto.
6202         * prologue-value.c: Ditto.
6203         * prologue-value.h: Ditto.
6204         * psympriv.h: Ditto.
6205         * psymtab.c: Ditto.
6206         * p-typeprint.c: Ditto.
6207         * p-valprint.c: Ditto.
6208         * ravenscar-sparc-thread.c: Ditto.
6209         * ravenscar-thread.c: Ditto.
6210         * ravenscar-thread.h: Ditto.
6211         * record.c: Ditto.
6212         * regcache.c: Ditto.
6213         * regcache.h: Ditto.
6214         * remote.c: Ditto.
6215         * remote-fileio.c: Ditto.
6216         * remote-fileio.h: Ditto.
6217         * remote.h: Ditto.
6218         * remote-m32r-sdi.c: Ditto.
6219         * remote-mips.c: Ditto.
6220         * remote-sim.c: Ditto.
6221         * rs6000-aix-tdep.c: Ditto.
6222         * rs6000-nat.c: Ditto.
6223         * rs6000-tdep.c: Ditto.
6224
6225 2011-01-10  Michael Snyder  <msnyder@vmware.com>
6226
6227         * charset.c (validate): Internationalization.
6228         * coffread.c (read_one_sym): Ditto.
6229         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6230         * h8300-tdep.c (H8300_extract_return_value): Ditto.
6231         * inflow.c (new_tty): Ditto.
6232         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6233         * m32c-tdep.c (m32c_return_value): Ditto.
6234         * mep-tdep.c (mep_store_return_value): Ditto.
6235         * score-tdep.c (score7_fetch_insn): Ditto.
6236         * ser-mingw.c (pipe_windows_open): Ditto.
6237         * sh64-tdep.c (sh64_extract_return_value): Ditto.
6238         * spu-tdep.c (spu_register_type): Ditto.
6239         * tracepoint.c (trace_find_command): Ditto.
6240         * valarith.c (value_pos): Ditto.
6241
6242 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
6243
6244         * ada-valprint.c (printstr): Minor comment reformatting.
6245
6246 2011-01-08  Michael Snyder  <msnyder@vmware.com>
6247
6248         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6249         markup.
6250
6251 2011-01-08  Michael Snyder  <msnyder@vmware.com>
6252
6253         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6254         * hppa-hpux-tdep.c: Ditto.
6255         * hppa-linux-nat.c: Ditto.
6256         * hppa-linux-tdep.c: Ditto.
6257         * hppanbsd-tdep.c: Ditto.
6258         * hppa-tdep.c: Ditto.
6259         * hppa-tdep.h: Ditto.
6260         * hpux-thread.c: Ditto.
6261         * i386-cygwin-tdep.c: Ditto.
6262         * i386-darwin-nat.c: Ditto.
6263         * i386gnu-nat.c: Ditto.
6264         * i386-linux-nat.c: Ditto.
6265         * i386-linux-tdep.c: Ditto.
6266         * i386-nat.c: Ditto.
6267         * i386-nat.h: Ditto.
6268         * i386nbsd-tdep.c: Ditto.
6269         * i386-sol2-nat.c: Ditto.
6270         * i386-stub.c: Ditto.
6271         * i386-tdep.c: Ditto.
6272         * i386-tdep.h: Ditto.
6273         * i387-tdep.c: Ditto.
6274         * ia64-linux-nat.c: Ditto.
6275         * ia64-linux-tdep.c: Ditto.
6276         * ia64-tdep.c: Ditto.
6277         * infcall.c: Ditto.
6278         * infcall.h: Ditto.
6279         * infcmd.c: Ditto.
6280         * inferior.c: Ditto.
6281         * inferior.h: Ditto.
6282         * infloop.c: Ditto.
6283         * inflow.c: Ditto.
6284         * infrun.c: Ditto.
6285         * interps.c: Ditto.
6286         * interps.h: Ditto.
6287         * iq2000-tdep.c: Ditto.
6288         * irix5-nat.c: Ditto.
6289         * jit.c: Ditto.
6290         * jit.h: Ditto.
6291         * jv-exp.y: Ditto.
6292         * jv-lang.c: Ditto.
6293         * jv-lang.h: Ditto.
6294         * jv-typeprint.c: Ditto.
6295         * jv-valprint.c: Ditto.
6296         * language.c: Ditto.
6297         * language.h: Ditto.
6298         * linespec.c: Ditto.
6299         * linux-fork.c: Ditto.
6300         * linux-nat.c: Ditto.
6301         * linux-thread-db.c: Ditto.
6302         * lm32-tdep.c: Ditto.
6303
6304 2011-01-08  Michael Snyder  <msnyder@vmware.com>
6305
6306         * m2-exp.y: Comment cleanup, mostly periods and spaces.
6307         * m2-lang.c: Ditto.
6308         * m2-typeprint.c: Ditto.
6309         * m2-valprint.c: Ditto.
6310         * m32c-tdep.c: Ditto.
6311         * m32r-linux-nat.c: Ditto.
6312         * m32r-rom.c: Ditto.
6313         * m32r-tdep.c: Ditto.
6314         * m32r-tdep.h: Ditto.
6315         * m68hc11-tdep.c: Ditto.
6316         * m58klinux-nat.c: Ditto.
6317         * m68k-tdep.c: Ditto.
6318         * m88k-tdep.c: Ditto.
6319         * m88k-tdep.h: Ditto.
6320         * machoread.c: Ditto.
6321         * macrocmd.c: Ditto.
6322         * macroexp.c: Ditto.
6323         * macrotab.c: Ditto.
6324         * main.c: Ditto.
6325         * maint.c: Ditto.
6326         * mdebugread.c: Ditto.
6327         * mdebugread.h: Ditto.
6328         * memattr.c: Ditto.
6329         * memattr.h: Ditto.
6330         * memory-map.h: Ditto.
6331         * mep-tdep.c: Ditto.
6332         * microblaze-rom.c: Ditto.
6333         * microblaze-tdep.c: Ditto.
6334         * minsyms.c: Ditto.
6335         * mips-irix-tdep.c: Ditto.
6336         * mips-linux-nat.c: Ditto.
6337         * mips-linux-tdep.c: Ditto.
6338         * mips-linux-tdep.h: Ditto.
6339         * mipsnbsd-nat.c: Ditto.
6340         * mipsnbsd-tdep.c: Ditto.
6341         * mipsread.c: Ditto.
6342         * mips-tdep.c: Ditto.
6343         * mips-tdep.h: Ditto.
6344         * mn10300-linux-tdep.c: Ditto.
6345         * mn10300-tdep.c: Ditto.
6346         * mn10300-tdep.h: Ditto.
6347         * monitor.c: Ditto.
6348         * monitor.h: Ditto.
6349         * moxie-tdep.c: Ditto.
6350         * moxie-tdep.h: Ditto.
6351         * mt-tdep.c: Ditto.
6352
6353 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
6354
6355         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6356
6357 2011-01-08  Robert Millan  <rmh@gnu.org>
6358
6359         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6360
6361 2011-01-07  Michael Snyder  <msnyder@vmware.com>
6362
6363         * charset.c (_initialize_charset): Fix typo in string.
6364
6365 2011-01-07  Michael Snyder  <msnyder@vmware.com>
6366
6367         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6368         for i18n.
6369         * tui/tui-layout.c (tui_set_layout_for_display_command):
6370         Split line so that operator goes to beginning of line.
6371         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6372         assignment out of if statement.
6373
6374 2011-01-07  Michael Snyder  <msnyder@vmware.com>
6375
6376         * ada-lang.c: Comment cleanup, mostly periods and spaces.
6377         * ada-lang.h: Ditto.
6378         * ada-tasks.c: Ditto.
6379         * ada-valprint.c: Ditto.
6380         * aix-threads.c: Ditto.
6381         * alpha-linux-nat.c: Ditto.
6382         * alpha-linux-tdep.c: Ditto.
6383         * alpha-mdebug-tdep.c: Ditto.
6384         * alpha-nat.c: Ditto.
6385         * alpha-osf1-tdep.c: Ditto.
6386         * alpha-tdep.c: Ditto.
6387         * alphabsd-nat.c: Ditto.
6388         * alphabsd-tdep.c: Ditto.
6389         * amd64-darwin-tdep.c: Ditto.
6390         * amd64-linux-nat.c: Ditto.
6391         * amd64-linux-tdep.c: Ditto.
6392         * amd64-sol2-tdep.c: Ditto.
6393         * amd64-tdep.c: Ditto.
6394         * amd64-fbsd-tdep.c: Ditto.
6395         * amd64-nbsd-tdep.c: Ditto.
6396         * amd64-obsd-tdep.c: Ditto.
6397         * amd64-linux-nat.c: Ditto.
6398         * amd64-linux-tdep.c: Ditto.
6399         * arm-tdep.c: Ditto.
6400         * arm-tdep.h: Ditto.
6401         * armnbsd-nat.c: Ditto.
6402         * avr-tdep.c: Ditto.
6403         * bfin-tdep.c: Ditto.
6404         * bsd-kvm.c: Ditto.
6405         * c-typeprintc: Ditto.
6406         * c-valprint.c: Ditto.
6407         * coff-pe-read.h: Ditto.
6408         * coffreead.c: Ditto.
6409         * cris-tdep.c: Ditto.
6410         * d-lang.c: Ditto.
6411         * darwin-nat-info.c: Ditto.
6412         * darwin-nat.c: Ditto.
6413         * dbug-rom.c: Ditto.
6414         * dbxread.c: Ditto.
6415         * dcache.c: Ditto.
6416         * dcache.h: Ditto.
6417         * dec-thread.c: Ditto.
6418         * defs.h: Ditto.
6419         * demangle.c: Ditto.
6420         * dicos-tdep.c: Ditto.
6421         * dictionary.c: Ditto.
6422         * dictionary.h: Ditto.
6423         * dink32-rom.c: Ditto.
6424         * disasm.c: Ditto.
6425         * doublest.c: Ditto.
6426         * dsrec.c: Ditto.
6427         * dummy-frame.c: Ditto.
6428         * dwarf2-frame.c: Ditto.
6429         * dwarf2expr.c: Ditto.
6430         * dwarf2loc.c: Ditto.
6431         * dwarf2read.c: Ditto.
6432         * elfread.c: Ditto.
6433         * environ.c: Ditto.
6434         * eval.c: Ditto.
6435         * event-top.h: Ditto.
6436         * exceptions.c: Ditto.
6437         * exceptions.h: Ditto.
6438         * exec.c: Ditto.
6439         * expprint.c: Ditto.
6440         * expression.h: Ditto.
6441         * f-exp.y: Ditto.
6442         * f-lang.c: Ditto.
6443         * f-lang.h: Ditto.
6444         * f-typeprint.c: Ditto.
6445         * f-valprint.c: Ditto.
6446         * fbsd-nat.c: Ditto.
6447         * findvar.c: Ditto.
6448         * fork-child.c: Ditto.
6449         * frame.c: Ditto.
6450         * frame.h: Ditto.
6451         * frv-linux-tdep.c: Ditto.
6452         * frv-tdep.c: Ditto.
6453         * gcore.c: Ditto.
6454         * gdb-stabs.h: Ditto.
6455         * gdb_assert.h: Ditto.
6456         * gdb_string.h: Ditto.
6457         * gdb_thread_db.h: Ditto.
6458         * gdb_wait.h: Ditto.
6459         * gdbarch.sh: Ditto.
6460         * gdbcore.h: Ditto.
6461         * gdbthread.h: Ditto.
6462         * gdbtypes.c: Ditto.
6463         * gdbtypes.h: Ditto.
6464         * gnu-nat.c: Ditto.
6465         * gnu-nat.h: Ditto.
6466         * gnu-v2-abi.c: Ditto.
6467         * gnu-v3-abi.c: Ditto.
6468         * go32-nat.c: Ditto.
6469         * gdbarch.c: Regenerate.
6470         * gdbarch.h: Regenerate.
6471
6472 2011-01-07  Michael Snyder  <msnyder@vmware.com>
6473
6474         * ax-gdb.c: Adjust some long output strings.
6475         * breakpoint.c: Ditto.
6476         * charset.c: Ditto.
6477         * cp-abi.c: Ditto.
6478         * infcall.c: Ditto.
6479         * infrun.c: Ditto.
6480         * linux-nat.c: Ditto.
6481         * solib-pa64.c: Ditto.
6482         * solib-som.c: Ditto.
6483
6484 2011-01-06  Tom Tromey  <tromey@redhat.com>
6485
6486         PR python/12367:
6487         * NEWS: Add item.
6488         * python/python.c (GdbMethods): Add "newest_frame" method.
6489         * python/python-internal.h (gdbpy_newest_frame): Declare.
6490         * python/py-frame.c (gdbpy_newest_frame): New function.
6491
6492 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
6493
6494         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6495         * jit.c (jit_debug): New variable.
6496         (show_jit_debug): New function.
6497         (struct target_buffer): Use ULONGEST.
6498         (bfd_open_from_target_memory): Likewise.
6499         (jit_register_code, jit_inferior_init): Add debug output.
6500         (_initialize_jit): Register "debug jit" command.
6501
6502 2011-01-06  Tom Tromey  <tromey@redhat.com>
6503
6504         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6505         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6506         and ARCH_FRAME.
6507
6508 2011-01-06  Tom Tromey  <tromey@redhat.com>
6509
6510         * python/py-frame.c (frapy_block): Use get_frame_block.
6511
6512 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6513
6514         Do not stop on SIGPRIO signals by default
6515         * infrun.c (_initialize_infrun): Unset signal_stop and
6516         signal_print for TARGET_SIGNAL_PRIO.
6517
6518 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6519
6520         * ada-tasks.c: Fix style violation in comment.
6521
6522 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6523
6524         * linespec.c (decode_compound, find_method): Remove trailing \n
6525         at end of error string.
6526         * solib-irix.c (irix_current_sos): Likewise.
6527         * varobj.c (uninstall_variable): Likewise.
6528
6529 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6530
6531         * copyright.py: New script.
6532         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6533         Launch emacs without exec'ing. Call copyright.py afterwards.
6534
6535 2011-01-05  Michael Snyder  <msnyder@vmware.com>
6536
6537         * addrmap.c: Shorten lines of >= 80 columns.
6538         * arch-utils.c: Ditto.
6539         * arch-utils.h: Ditto.
6540         * ax-gdb.c: Ditto.
6541         * ax-general.c: Ditto.
6542         * bcache.c: Ditto.
6543         * blockframe.c: Ditto.
6544         * breakpoint.c: Ditto.
6545         * buildsym.c: Ditto.
6546         * c-lang.c: Ditto.
6547         * c-typeprint.c: Ditto.
6548         * charset.c: Ditto.
6549         * coffread.c: Ditto.
6550         * command.h: Ditto.
6551         * corelow.c: Ditto.
6552         * cp-abi.c: Ditto.
6553         * cp-namespace.c: Ditto.
6554         * cp-support.c: Ditto.
6555         * dbug-rom.c: Ditto.
6556         * dbxread.c: Ditto.
6557         * defs.h: Ditto.
6558         * dfp.c: Ditto.
6559         * dfp.h: Ditto.
6560         * dictionary.c: Ditto.
6561         * disasm.c: Ditto.
6562         * doublest.c: Ditto.
6563         * dwarf2-frame.c: Ditto.
6564         * dwarf2expr.c: Ditto.
6565         * dwarf2loc.c: Ditto.
6566         * dwarf2read.c: Ditto.
6567         * elfread.c: Ditto.
6568         * eval.c: Ditto.
6569         * event-loop.c: Ditto.
6570         * event-loop.h: Ditto.
6571         * exceptions.h: Ditto.
6572         * exec.c: Ditto.
6573         * expprint.c: Ditto.
6574         * expression.h: Ditto.
6575         * f-lang.c: Ditto.
6576         * f-valprint.c: Ditto.
6577         * findcmd.c: Ditto.
6578         * frame-base.c: Ditto.
6579         * frame-unwind.c: Ditto.
6580         * frame-unwind.h: Ditto.
6581         * frame.c: Ditto.
6582         * frame.h: Ditto.
6583         * gcore.c: Ditto.
6584         * gdb-stabs.h: Ditto.
6585         * gdb_assert.h: Ditto.
6586         * gdb_dirent.h: Ditto.
6587         * gdb_obstack.h: Ditto.
6588         * gdbcore.h: Ditto.
6589         * gdbtypes.c: Ditto.
6590         * gdbtypes.h: Ditto.
6591         * inf-ttrace.c: Ditto.
6592         * infcall.c: Ditto.
6593         * infcmd.c: Ditto.
6594         * inflow.c: Ditto.
6595         * infrun.c: Ditto.
6596         * inline-frame.h: Ditto.
6597         * language.c: Ditto.
6598         * language.h: Ditto.
6599         * libunwind-frame.c: Ditto.
6600         * libunwind-frame.h: Ditto.
6601         * linespec.c: Ditto.
6602         * linux-nat.c: Ditto.
6603         * linux-nat.h: Ditto.
6604         * linux-thread-db.c: Ditto.
6605         * machoread.c: Ditto.
6606         * macroexp.c: Ditto.
6607         * macrotab.c: Ditto.
6608         * main.c: Ditto.
6609         * maint.c: Ditto.
6610         * mdebugread.c: Ditto.
6611         * memattr.c: Ditto.
6612         * minsyms.c: Ditto.
6613         * monitor.c: Ditto.
6614         * monitor.h: Ditto.
6615         * objfiles.c: Ditto.
6616         * objfiles.h: Ditto.
6617         * osabi.c: Ditto.
6618         * p-typeprint.c: Ditto.
6619         * p-valprint.c: Ditto.
6620         * parse.c: Ditto.
6621         * printcmd.c: Ditto.
6622         * proc-events.c: Ditto.
6623         * procfs.c: Ditto.
6624         * progspace.c: Ditto.
6625         * progspace.h: Ditto.
6626         * psympriv.h: Ditto.
6627         * psymtab.c: Ditto.
6628         * record.c: Ditto.
6629         * regcache.c: Ditto.
6630         * regcache.h: Ditto.
6631         * remote-fileio.c: Ditto.
6632         * remote.c: Ditto.
6633         * ser-mingw.c: Ditto.
6634         * ser-tcp.c: Ditto.
6635         * ser-unix.c: Ditto.
6636         * serial.c: Ditto.
6637         * serial.h: Ditto.
6638         * solib-frv.c: Ditto.
6639         * solib-irix.c: Ditto.
6640         * solib-osf.c: Ditto.
6641         * solib-pa64.c: Ditto.
6642         * solib-som.c: Ditto.
6643         * solib-sunos.c: Ditto.
6644         * solib-svr4.c: Ditto.
6645         * solib-target.c: Ditto.
6646         * solib.c: Ditto.
6647         * somread.c: Ditto.
6648         * source.c: Ditto.
6649         * stabsread.c: Ditto.
6650         * stabsread.c: Ditto.
6651         * stack.c: Ditto.
6652         * stack.h: Ditto.
6653         * symfile-mem.c: Ditto.
6654         * symfile.c: Ditto.
6655         * symfile.h: Ditto.
6656         * symmisc.c: Ditto.
6657         * symtab.c: Ditto.
6658         * symtab.h: Ditto.
6659         * target-descriptions.c: Ditto.
6660         * target-memory.c: Ditto.
6661         * target.c: Ditto.
6662         * target.h: Ditto.
6663         * terminal.h: Ditto.
6664         * thread.c: Ditto.
6665         * top.c: Ditto.
6666         * tracepoint.c: Ditto.
6667         * tracepoint.h: Ditto.
6668         * ui-file.c: Ditto.
6669         * ui-file.h: Ditto.
6670         * ui-out.h: Ditto.
6671         * user-regs.c: Ditto.
6672         * user-regs.h: Ditto.
6673         * utils.c: Ditto.
6674         * valarith.c: Ditto.
6675         * valops.c: Ditto.
6676         * valprint.c: Ditto.
6677         * valprint.h: Ditto.
6678         * value.c: Ditto.
6679         * varobj.c: Ditto.
6680         * varobj.h: Ditto.
6681         * vec.h: Ditto.
6682         * xcoffread.c: Ditto.
6683         * xcoffsolib.c: Ditto.
6684         * xcoffsolib.h: Ditto.
6685         * xml-syscall.c: Ditto.
6686         * xml-tdesc.c: Ditto.
6687
6688 2011-01-05  Michael Snyder  <msnyder@vmware.com>
6689
6690         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6691         * cli/cli-decode.c: Ditto.
6692         * cli/cli-dump.c: Ditto.
6693         * cli/cli-logging.c: Ditto.
6694         * cli/cli-script.c: Ditto.
6695         * cli/cli-setshow.c: Ditto.
6696         * common/signals.c: Ditto.
6697         * mi/mi-cmd-break.c: Ditto.
6698         * mi/mi-cmd-disas.c: Ditto.
6699         * mi/mi-cmd-stack.c: Ditto.
6700         * mi/mi-cmd-var.c: Ditto.
6701         * mi/mi-cmds.c: Ditto.
6702         * mi/mi-common.h: Ditto.
6703         * mi/mi-console.c: Ditto.
6704         * mi/mi-interp.c: Ditto.
6705         * mi/mi-main.c: Ditto.
6706         * osf-share/cma_attr.c: Ditto.
6707         * osf-share/cma_deb_core.h: Ditto.
6708         * osf-share/cma_debug_client.h: Ditto.
6709         * osf-share/cma_handle.h: Ditto.
6710         * osf-share/cma_mutex.h: Ditto.
6711         * osf-share/cma_stack_int.h: Ditto.
6712         * osf-share/cma_tcb_defs.h: Ditto.
6713         * python/py-auto-load.c: Ditto.
6714         * python/py-breakpoint.c: Ditto.
6715         * python/py-cmd.c: Ditto.
6716         * python/py-frame.c: Ditto.
6717         * python/py-objfile.c: Ditto.
6718         * python/py-param.c: Ditto.
6719         * python/py-progspace.c: Ditto.
6720         * python/py-symbol.c: Ditto.
6721         * python/py-value.c: Ditto.
6722         * python/python-internal.h: Ditto.
6723         * python/python.c: Ditto.
6724         * tui/tui-data.c: Ditto.
6725         * tui/tui-disasm.c: Ditto.
6726         * tui/tui-hooks.c: Ditto.
6727         * tui/tui-io.c: Ditto.
6728         * tui/tui-layout.c: Ditto.
6729         * tui/tui-regs.c: Ditto.
6730         * tui/tui-source.c: Ditto.
6731         * tui/tui-stack.c: Ditto.
6732         * tui/tui-win.c: Ditto.
6733         * tui/tui-windata.c: Ditto.
6734         * tui/tui-winsource.c: Ditto.
6735
6736 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
6737
6738         * configure.ac, gdb.1: Copyright year update.
6739
6740 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6741
6742         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6743         this_pc_in_block, morestack_msym and morestack_name.  Check for
6744         "__morestack" minimal symbol there.
6745
6746 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
6747
6748         * symfile.c (find_sym_fns): Add call to dont_repeat.
6749
6750 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6751
6752         Copyright year update in most files (performed by copyright.sh).
6753
6754 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6755
6756         * top.c (print_gdb_version): Update copyright year in version output.
6757
6758 For older changes see ChangeLog-2010.
6759 \f
6760 Local Variables:
6761 mode: change-log
6762 left-margin: 8
6763 fill-column: 74
6764 version-control: never
6765 coding: utf-8
6766 End: