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