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