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