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