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