Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-11-05  Doug Evans  <dje@google.com>
2
3         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
4         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
5         * dwarf2read.c: #include "elf-bfd.h".
6         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
7         (dwop_section_names): Renamed from dwo_section names.  All uses
8         updated.  Add entries for .debug_cu_index, .debug_tu_index.
9         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
10         All uses updated.
11         (struct dwp_sections): New type.
12         (struct virtual_dwo_sections): New type.
13         (struct dwp_hash_table): New type.
14         (struct dwp_file): New type.
15         (init_cutu_and_read_dies): Ensure DWO info/types section has been
16         read in.  Handle DWOs coming from DWP files.
17         (lookup_dwo_file_slot): New function.
18         (dwarf2_locate_dwo_sections): Move definition closer to use.
19         (create_dwo_debug_info_hash_table_reader): Renamed from
20         create_debug_info_hash_table_reader.  All callers updated.
21         (create_dwo_debug_info_hash_table): Renamed from
22         create_debug_info_hash_table.  All callers updated.
23         (create_dwp_hash_table): New function.
24         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
25         (lookup_dwo_in_dwp): New function.
26         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
27         is_dwp.  All callers updated.
28         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
29         (open_and_init_dwo_file): Renamed from init_dwo_file.
30         All callers updated.
31         (lookup_dwo_file): Delete.
32         (dwarf2_locate_dwp_sections): New function.
33         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
34         (allocate_dwp_loaded_cutus_table): New function.
35         (open_and_init_dwp_file): New function.
36         (lookup_dwo_cutu): New function.
37         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
38
39 2012-11-03  Yao Qi  <yao@codesourcery.com>
40
41         Fix PR gdb/14617.
42         * breakpoint.c (trace_pass_set_count): Call
43         observer_notify_breakpoint_modified instead of
44         observer_notify_tracepoint_modified.
45         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
46
47 2012-11-02  Tom Tromey  <tromey@redhat.com>
48
49         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
50         argument to complete_on_enum.
51
52 2012-11-02  Tom Tromey  <tromey@redhat.com>
53
54         * configure: Rebuild.
55         * configure.ac (build_warnings): Add -Wempty-body.
56         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
57         * remote.c (handle_notification): Use braces for empty 'else' body.
58         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
59         'else' body.
60         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
61         'else' body.
62         * solib-som.c (som_relocate_section_addresses): Use braces
63         for empty 'else' body.
64         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
65         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
66
67 2012-11-02  Pedro Alves  <palves@redhat.com>
68
69         PR gdb/14766
70
71         * infrun.c (handle_inferior_event)
72         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
73         null_ptid before handling a vfork child exec or exit.  Switch to
74         the event ptid afterwards.
75
76 2012-11-02  Yao Qi  <yao@codesourcery.com>
77
78         * std-operator.def: Remove OP_LABELED.
79         * eval.c: Remove the declaration of 'get_label'.
80         (get_label): Remove.
81         (evaluate_struct_tuple): Remove code handling OP_LABELED.
82         Update comment.
83         Remove local variable 'variantno' and related code.
84         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
85         with 'fieldno'.
86         * expprint.c (print_subexp_standard): Likewise.
87         (dump_subexp_body_standard): Likewise.
88         * parse.c (operator_length_standard): Likewise.
89
90 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
91
92         Incorporate ARI web page generator into GDB sources.
93         * contrib/ari/create-web-ari-in-src.sh: New file.
94         * contrib/ari/gdb_ari.sh: New file.
95         * contrib/ari/gdb_find.sh: New file.
96         * contrib/ari/update-web-ari.sh: New file.
97
98 2012-10-31  Tom Tromey  <tromey@redhat.com>
99
100         * gdbarch.c: Rebuild.
101         * gdbarch.sh: Remove references to gdbarch_swap.
102         * corelow.c (core_open): Remove obsolete comment.
103
104 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
105
106         PR cli/14772
107         * c-typeprint.c (c_print_type): Don't print a space for vector
108         types, this is handled within the suffix.
109         (c_type_print_varspec_suffix): Add a space to vector suffix.
110
111 2012-10-26  Pedro Alves  <palves@redhat.com>
112
113         * amd64-tdep.c (amd64_relocate_instruction): Use
114         store_unsigned_integer instead of memcpy.
115         * i386-tdep.c (i386_relocate_instruction): Ditto.
116
117 2012-10-26  Pedro Alves  <palves@redhat.com>
118
119         * infrun.c (handle_inferior_event): Merge handling of
120         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
121         switch case.
122
123 2012-10-26  Pedro Alves  <palves@redhat.com>
124
125         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
126         Remove comment.
127
128 2012-10-26  Pedro Alves  <palves@redhat.com>
129
130         * target.c (target_waitstatus_to_string): Handle
131         TARGET_WAITKIND_VFORK_DONE.
132
133 2012-10-26  Pedro Alves  <palves@redhat.com>
134
135         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
136         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
137
138 2012-10-24  Tristan Gingold  <gingold@adacore.com>
139
140         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
141         Add comments.
142
143 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
144
145         * ravenscar-thread.c (ravenscar_wait): Only update the list
146         of threads and inferior_ptid if the inferior is still alive.
147
148 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
149
150         * ada-lang.c (is_known_support_routine): Use lbasename when
151         matching the symtab's filename against
152         known_runtime_file_name_patterns.
153
154 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
155
156         * ada-lang.c (ada_same_array_size_p): New function.
157         (ada_promote_array_of_integrals): New function.
158         (coerce_for_assign): Add handling of arrays where the elements
159         are integrals of a smaller size than the size of the target
160         array element type.
161
162 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
163
164         * doublest.c (convert_doublest_to_floatformat): Fix comparison
165         against maximum exponent value.
166
167 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
168
169         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
170         "unwind-seh.c".
171
172 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
173
174         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
175         strip typedef layer when computing the fixed type's field type,
176         only when computing its size.
177
178 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
179
180         PR gdb/12783
181         * i386-tdep.c (i386_return_value): Handle complex double and long
182         double.
183
184 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
185
186         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
187         New local variable args_len.
188         Quote the name of the executable when computing the command line.
189
190 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
191
192         PR gdb/12796
193         PR gdb/12798
194         PR gdb/12800
195         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
196         AMD64_FTAG_REGNUM.
197         * amd64-tdep.c (amd64_classify): Classify complex types.
198         (amd64_return_value): Handle the COMPLEX_X87 class.
199
200 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
201
202         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
203         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
204
205 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
206
207         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
208         function.
209         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
210         to amd64_windows_auto_wide_charset.
211
212 2012-10-23  Yao Qi  <yao@codesourcery.com>
213
214         * event-top.c (mark_async_signal_handler_wrapper): Remove.
215         * event-top.h: Remove its declaration.
216         (async_request_quit): Call mark_async_signal_handler instead of
217         mark_async_signal_handler_wrapper.
218         (async_do_nothing, async_disconnect): Likewise.
219         (async_stop_sig): Likewise.
220         * remote.c (handle_remote_sigint): Likewise.
221         (handle_remote_sigint_twice): Likewise.
222
223 2012-10-23  Yao Qi  <yao@codesourcery.com>
224
225         * event-top.c (sigint_token, sighup_token): Replace 'void *'
226         with 'static struct async_signal_handler *'.
227         (sighup_token, sigquit_token, sigstp_token): Likewise.
228
229 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
230
231         * gdbarch.sh (function_list): Use 'pstring' when printing
232         a variable which could return NULL.
233         * gdbarch.c: Regenerate.
234
235 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
236             Tom Tromey  <tromey@redhat.com>
237
238         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
239         inneffective if condition by gdb assertion.  Add function
240         description comment.
241
242 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
243
244         * parser-defs.h (struct exp_descriptor): Document constraint
245         on return value for "op_name" callbacks.
246
247 2012-10-18  Tom Tromey  <tromey@redhat.com>
248
249         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
250         * symtab.c (iterate_over_some_symtabs): Constify.
251         * source.h (symtab_to_fullname): Return 'const char *'.
252         * source.c (symtab_to_fullname): Return 'const char *'.
253         * python/py-symtab.c (stpy_fullname): Constify.
254         * cli/cli-cmds.c (edit_command): Constify.
255         * breakpoint.c (print_breakpoint_location)
256         (update_static_tracepoint): Constify.
257
258 2012-10-18  Tom Tromey  <tromey@redhat.com>
259
260         * breakpoint.c (compare_breakpoints): Fix comparison.
261
262 2012-10-18  Tom Tromey  <tromey@redhat.com>
263
264         * valprint.c (generic_emit_char, generic_printstr): Pass size of
265         gdb_wchar_t to convert_between_encodings.
266
267 2012-10-17  Yao Qi  <yao@codesourcery.com>
268
269         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
270         more parameter 'inferior'.
271         * corefile.c (write_memory_with_notification): Caller update.
272
273         * mi/mi-cmd-var.c: Include "mi-main.h".
274         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
275         to 1 and restore it later.
276         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
277         and "data-write-memory-bytes.
278         * mi/mi-interp.c: Include objfiles.h.
279         (mi_interpreter_init): Call observer_attach_memory_changed.
280         (mi_memory_changed): New.
281         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
282         New field.
283
284         * NEWS: Mention new MI notification "memory-changed".
285
286 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
287
288         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
289
290 2012-10-15  Doug Evans  <dje@google.com>
291
292         New option -nh: inhibit loading of ~/.gdbinit.
293         * NEWS: Mention -nh.
294         * main.c (captured_main): Recognize and process -nh.
295         (print_gdb_help): Mention -nh.
296         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
297
298 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
299
300         PR backtrace/14646
301         PR gdb/14647
302         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
303         pc_regnum_from_eax.
304         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
305         nor pc_regnum_from_eax.
306         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
307         nor pc_regnum_from_eax.
308
309 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
310
311         Fix entry values resolving in inlined frames.
312         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
313         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
314         entries of FRAME.
315
316 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
317
318         * configure.ac: Build with -DMS_WIN64 if building with Python
319         enabled using GCC on amd64-windows.
320         * configure: Regenerate.
321
322 2012-10-15  Tom Tromey  <tromey@redhat.com>
323
324         PR python/14635:
325         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
326         to Py_None.
327
328 2012-10-15  Tom Tromey  <tromey@redhat.com>
329
330         PR python/14634:
331         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
332
333 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
334
335         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
336         reset thread numbering back to 1.
337
338 2012-10-11  Doug Evans  <dje@google.com>
339
340         PR breakpoints/14643.
341         * linespec.c (struct ls_parser): New member keyword_ok.
342         (linespec_lexer_lex_string): Add comment.
343         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
344         for one.
345         (parse_linespec): Set keyword_ok.
346
347 2012-10-10  Doug Evans  <dje@google.com>
348
349         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
350         "0x" prefix on address in log message.
351
352         * dwarf2read.c (read_1_byte): Add const to buf parameter.
353         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
354         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
355         (lookup_dwo_file): Add const to dwo_name parameter.
356         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
357
358 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
359
360         Fix crash during stepping on ppc32.
361         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
362         SYM.
363
364 2012-10-03  Doug Evans  <dje@google.com>
365
366         PR symtab/14601
367         * buildsym.c (buildsym_init): Reset using_directives to NULL.
368
369 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
370
371         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
372         output and use uint32_t not long to ensure 4 byte size.
373
374 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
375
376         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
377         unref'ed it.
378
379 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
380
381         * target.c (simple_search_memory): Include access length in
382         warning message.
383
384 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
385             Edjunior Machado  <emachado@linux.vnet.ibm.com>
386
387         PR gdb/13989
388         * solib.c (solib_find): Prevent GDB from loading native libraries when
389         debugging a cross-target corefile.
390
391 2012-09-28  selven  <pcthegreat@gmail.com>
392
393         Make definition match declaration.
394
395         * regcache.c (regcache_register_status): Change return type to
396         enum register_status.
397
398 2012-09-28  Yao Qi  <yao@codesourcery.com>
399
400         * mi/mi-main.c (mi_cmd_data_write_memory): Call
401         write_memory_with_notification instead of write_memory.
402         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
403         instead of target_write_memory.
404
405 2012-09-28  Yao Qi  <yao@codesourcery.com>
406
407         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
408         when the length of content is not an even number.
409
410 2012-09-27  Tom Tromey  <tromey@redhat.com>
411
412         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
413         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
414
415 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
416
417         * sol-thread.c (sol_thread_fetch_registers)
418         (sol_thread_store_registers): Delete commented out code.
419
420 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
421
422         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
423         Move these functions to sparc-sol-thread.c.
424         * sparc-sol-thread.c: New file.
425         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
426         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
427         configurations.
428         * configure: Regenerate.
429
430 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
431
432         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
433         Remove commented-out code.
434
435 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
436
437         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
438         Enable this code for sparc hosts only.
439
440 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
441
442         * procfs.h (procfs_find_LDT_entry): Add declaration.
443         * sol-thread.c (ps_lgetLDT): Delete local declaration of
444         function procfs_find_LDT_entry.
445
446 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
447
448         * procfs.c (proc_get_LDT_entry): Make static.
449
450 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
451
452         * procfs.c (proc_find_memory_regions): Fix declaration.
453
454 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
455
456         * amd64-tdep.c (amd64_return_value): Revert previous change
457         that used TYPE_LENGTH directly.
458         * bfin-tdep.c (bfin_extract_return_value): Likewise.
459         (bfin_store_return_value): Likewise.
460         * cris-tdep.c (cris_store_return_value): Likewise.
461         (cris_extract_return_value): Likewise.
462         * h8300-tdep.c (h8300_extract_return_value): Likewise.
463         * hppa-tdep.c (hppa64_return_value): Likewise.
464         * lm32-tdep.c (lm32_store_return_value): Likewise.
465         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
466         * spu-tdep.c (spu_value_from_register): Likewise.
467         * vax-tdep.c (vax_return_value): Likewise.
468
469 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
470
471         * gdbtypes.c (lookup_array_range_type): Expand parameters
472         LOW_BOUND and HIGH_BOUND to LONGEST.
473         (lookup_string_range_type): Likewise.
474         * gdbtypes.h (lookup_array_range_type): Likewise.
475         (lookup_string_range_type): Likewise.
476         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
477         Expand HIGHBOUND to ssize_t.
478         (value_string): Likewise.
479         * value.h (value_cstring): Expand parameter LEN to ssize_t.
480         (value_string): Likewise.
481
482 2012-09-27  Yao Qi  <yao@codesourcery.com>
483
484         PR breakpoints/13898
485         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
486         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
487         per breakpoint type.
488
489 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
490
491         * procfs.c: Add gdb_bfd header.
492         * rs6000-nat.c: Likewise.
493         * solib-pa64.c: Likewise.
494         * spu-linux-nat.c: Likewise.
495         * windows-nat.c: Likewise.
496
497 2012-09-26  Tom Tromey  <tromey@redhat.com>
498
499         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
500
501 2012-09-26  Tom Tromey  <tromey@redhat.com>
502
503         * dwarf2read.c (mark_common_block_symbol_computed): New function.
504         (read_common_block): Handle child DIEs with
505         DW_AT_data_member_location.
506         (new_symbol_full): Add special case for common blocks.
507
508 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
509             Tom Tromey  <tromey@redhat.com>
510
511         * dwarf2read.c (read_common_block): Rewrite.
512         (new_symbol_full): Handle DW_TAG_common_block.
513         * f-lang.c (head_common_list, find_common_for_function):
514         Remove.
515         * f-lang.h (struct common_entry, struct saved_f77_common,
516         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
517         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
518         BLANK_COMMON_NAME_LOCAL): Remove.
519         (struct common_block): New.
520         * f-valprint.c (list_all_visible_commons): Remove.
521         (info_common_command_for_block): New function.
522         (info_common_command): Use it.
523         * stack.c (iterate_over_block_locals): Special case for
524         COMMON_BLOCK_DOMAIN.
525         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
526         constant.
527         (struct general_symbol_info) <value.common_block>: New field.
528         (SYMBOL_VALUE_COMMON_BLOCK): New define.
529
530 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
531             Tom Tromey  <tromey@redhat.com>
532
533         * f-lang.c (allocate_saved_bf_node,
534         allocate_saved_function_node, allocate_saved_f77_common_node,
535         allocate_common_entry_node, tail_common_list, current_common,
536         saved_bf_list, saved_bf_list_end, current_head_bf_list,
537         tmp_bf_ptr, add_common_block, add_common_entry,
538         find_first_common_named, patch_common_entries,
539         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
540         global_remote_debug, get_bf_for_fcn, saved_function_list,
541         saved_function_list_end, clear_function_list, struct saved_fcn,
542         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
543         SAVED_BF, SAVED_BF_PTR): Remove.
544         * f-lang.h (tail_common_list, current_common,
545         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
546         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
547         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
548         real_main_c_value): Remove.
549         * f-valprint.c (there_is_a_visible_common_named): Remove.
550
551 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
552
553         * breakpoint.c (update_global_location_list): Ignore previous
554         duplicate status of a breakpoint when starting a new scan for
555         duplicate breakpoints.
556
557 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
558         PR breakpoints/14419
559         * arm-tdep.c (arm_skip_prologue): Extending producer check to
560         support LLVM compiler.
561
562 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
563
564         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
565         * bfin-tdep.c (bfin_extract_return_value): Likewise.
566         (bfin_store_return_value): Likewise.
567         * cris-tdep.c (cris_store_return_value): Likewise.
568         (cris_extract_return_value): Likewise.
569         * h8300-tdep.c (h8300_extract_return_value): Likewise.
570         * hppa-tdep.c (hppa64_return_value): Likewise.
571         * lm32-tdep.c (lm32_store_return_value): Likewise.
572         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
573         * spu-tdep.c (spu_value_from_register): Likewise.
574         * vax-tdep.c (vax_return_value): Likewise.
575
576 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
577
578         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
579         parameter LEN to ssize_t.
580
581 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
582
583         * ada-valprint.c (ada_val_print_1): Eliminate single-use
584         variable LEN.
585         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
586         directly.
587         (alpha_store_return_value): Likewise.
588         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
589         (amd64_push_arguments): Likewise.
590         * ax-gdb.c (gen_trace_static_fields): Likewise.
591         (gen_traced_pop): Likewise.
592         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
593         * breakpoint.c (update_watchpoint): Likewise.
594         * findcmd.c (parse_find_args): Use local variable for type
595         instead of length.
596         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
597         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
598         (h8300_store_return_value): Likewise.
599         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
600         Use i386_darwin_arg_type_alignment directly.
601         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
602         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
603         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
604         (m68hc11_extract_return_value): Likewise.
605         * mep-tdep.c (mep_push_dummy_call): Likewise.
606         * printcmd.c (float_type_from_length): Likewise.
607         * s390-tdep.c (s390_value_from_register): Likewise.
608         * stack.c (read_frame_arg): Likewise.
609         * tracepoint.c (encode_actions_1): Likewise.
610         * valops.c (value_fetch_lazy): Use local variable for type
611         instead of length.  Use TYPE_LENGTH directly.
612         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
613
614 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
615
616         * symtab.c (skip_prologue_sal): Fix typo in comment.
617
618 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
619
620         * linespec.c (create_sals_line_offset): Fix typo in comment.
621
622 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
623
624         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
625         use plongest to print the array size.
626
627 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
628
629         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
630         * p-valprint.c (pascal_type_print_base): Likewise.
631
632 2012-09-22  Yao Qi  <yao@codesourcery.com>
633
634         * remote.c (remote_get_trace_status): Remove setting default
635         values of fields of 'ts'.
636
637 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
638
639         Fix internal error on canonicalization of clang types.
640         * cp-name-parser.y (operator): New comment at make_operator call for
641         new, delete, new[] and delete[].
642         (exp): Use "sizeof ".  Add new comment at make_operator call.
643
644 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
645
646         Fix disassemble without parameters in tailcall frame.
647         * cli/cli-cmds.c (disassemble_current_function): Use
648         get_frame_address_in_block.
649
650 2012-09-21  Tom Tromey  <tromey@redhat.com>
651
652         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
653         TYPE_CODE_UNION>: Unify, removing a goto.
654
655 2012-09-21  Tom Tromey  <tromey@redhat.com>
656
657         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
658
659 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
660
661         * findvar.c (read_frame_register_value): Mark the result value as
662         optimized out if any of the input registers have been optimized out.
663
664 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
665
666         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
667
668 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
669
670         * eval.c (evaluate_subexp_standard): Eliminate single-use
671         variable LOWER.
672
673 2012-09-21  Yao Qi  <yao@codesourcery.com>
674
675         * mi/mi-interp.c: Declare mi_record_changed.
676         (mi_interpreter_init): Call observer_attach_record_changed.
677         (mi_record_changed): New.
678         * record.c (record_open): Call observer_notify_record_changed.
679         (cmd_record_stop): Call observer_notify_record_changed.
680         * NEWS: Mention it.
681
682 2012-09-20  Tom Tromey  <tromey@redhat.com>
683
684         * NEWS: Update.
685         * python/python.c (finalize_python): New function.
686         (_initialize_python): Make a final cleanup.
687
688 2012-09-19  Doug Evans  <dje@google.com>
689
690         * buildsym.h (param_symbols): Delete, unused.
691         (context_stack): Delete member "params", unused.
692         * buildsym.c (push_context): Update.
693         * dwarf2read.c (read_func_scope): Update.
694
695 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
696
697         * sh-tdep.c (sh_register_convert_to_virtual)
698         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
699         all callers.  Just do a memcpy if not the little-endian case.
700
701         * h8300-tdep.c (h8300_gdbarch_init): Invoke
702         set_gdbarch_double_format and set_gdbarch_long_double_format.
703         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
704         set_gdbarch_double_format.
705         * sh-tdep.c (sh_gdbarch_init): Likewise.
706
707         * NEWS: Document the removal of SH's 'regs' command.
708         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
709         command.
710
711 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
712
713         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
714         `jump'.
715
716 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
717
718         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
719         language when iterating over symbols.
720
721 2012-09-18  Yao Qi  <yao@codesourcery.com>
722
723         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
724         (mi_interpreter_init): Call observer_attach_tsv_created and
725         observer_attach_tsv_deleted.
726         (mi_tsv_created, mi_tsv_deleted): New.
727         * tracepoint.c (delete_trace_state_variable): Call
728         observer_notify_tsv_deleted.
729         (trace_variable_command): Call observer_notify_tsv_created.
730         (delete_trace_variable_command): Call
731         observer_notify_tsv_deleted.
732         (create_tsv_from_upload): Call observer_notify_tsv_created.
733         * NEWS: Mention it.
734
735 2012-09-18  Yao Qi  <yao@codesourcery.com>
736
737         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
738         if traceframe changed.
739         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
740         "trace-find".
741         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
742         (mi_interpreter_init): Hook mi_traceframe_changed to observer
743         'traceframe_changed'.
744         (mi_traceframe_changed): New.
745         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
746         New field.
747         * NEWS: Mention the new MI notification.
748
749 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
750
751         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
752
753 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
754
755         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
756         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
757         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
758         Extend code also for PaX support.  Convert all gdb_assert to warning
759         calls.
760
761 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
762
763         Implement auto-load user conveniences suggested by Doug Evans.
764         * auto-load.c: Include top.h.
765         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
766         (_initialize_auto_load): New variable scripts_directory_help.  Mention
767         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
768         scripts-directory.  Document in online help one can use also files for
769         set auto-load safe-path.
770         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
771         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
772
773 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
774
775         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
776         of LEN.
777
778 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
779
780         * m2-valprint.c (m2_print_array_contents): Eliminate variable
781         ELTLEN and use TYPE_LENGTH directly.
782         (m2_val_print): Likewise.
783         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
784         variable LEN and use TYPE_LENGTH directly.
785         (m68k_svr4_store_return_value): Likewise.
786         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
787         ARGLEN and use TYPE_LENGTH directly.
788         (mips_o64_push_dummy_call): Likewise.
789         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
790         variable LENGTH and use TYPE_LENGTH directly.
791         (s390_function_arg_float): Likewise.
792         (s390_function_arg_integer): Likewise.
793         (s390_push_dummy_call): Likewise.
794         (s390_return_value_convention): Likewise.
795         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
796         TYPE_LENGTH directly.
797
798 2012-09-17  Yao Qi  <yao@codesourcery.com>
799
800         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
801         Update comment to add_setshow_integer_cmd.
802         * cli/cli-setshow.c (do_set_command): Handle case
803         'var_zuinteger_unlimited'.
804         (do_show_command): Likewise.
805         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
806         for command 'remotetimeout'.
807         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
808         to var_integer.
809         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
810         for command 'set listsize'.
811
812 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
813
814         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
815         variable LEN.
816
817 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
818
819         PR 14119
820         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
821         (frame_pop): Drop also TAILCALL_FRAME frames.
822         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
823
824 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
825             Pedro Alves  <palves@redhat.com>
826
827         PR 14548
828         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
829         function start if we are already at function start.  Both for
830         reverse-next and for reverse-step into function without line number
831         info.
832
833 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
834
835         Code cleanup - rename 'inline' depth to 'artificial' depth.
836         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
837         frame_id_artificial_p, extend the comment.
838         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
839         * frame.c (fprint_frame_id): Rename at a user, change debug output
840         text to "artificial=".
841         (skip_inlined_frames): Rename to ...
842         (skip_artificial_frames): ... here.  Extend the comment.
843         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
844         (frame_id_inlined_p): Rename to ...
845         (frame_id_artificial_p): ... here.  Rename at a user.
846         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
847         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
848         at a user.
849         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
850         Extend the comment.
851         (frame_id_inlined_p): Rename to ...
852         (frame_id_artificial_p): ... here.
853         * inline-frame.c (inline_frame_this_id): Rename at a user.
854
855 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
856
857         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
858         vector variables using vector_size syntax rather than array
859         syntax.
860
861 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
862
863         * valarith.c (value_concat): Replace unsafe ALLOCA with
864         XMALLOC/XFREE.
865
866 2012-09-14  Pedro Alves  <palves@redhat.com>
867
868         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
869
870 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
871
872         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
873         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
874         data-directory as appropriate.
875
876 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
877
878         * printcmd.c (ui_printf): Eliminate single-use variable
879         PARAM_LEN.
880
881 2012-09-14  Yao Qi  <yao@codesourcery.com>
882             Pedro Alves  <palves@redhat.com>
883
884         * valops.c (value_assign): Move observer_notify_target_changed
885         below to replace reinit_frame_cache.
886
887 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
888
889         Refactor Python "gdb" module into a proper Python package, by
890         introducing a new "_gdb" module for code implemented in C, and
891         using reload/__import__ instead of exec.
892         * python/lib/gdb/__init__.py: Import * from _gdb.
893         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
894         prompt_hook, sys.argv): Moved from finish_python_initialization.
895         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
896         (packages, auto_load_packages): New list and function replacing
897         module_dict and auto-loading code, using __file__ instead of
898         gdb.PYTHONDIR and reload/__import__ instead of exec.
899         (GdbSetPythonDirectory): Replacing function of the same name
900         from finish_python_initialization, using reload/__import__ instead
901         of exec, as well as call auto_load_packages.
902         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
903         gdb_python_module and not gdb_module.
904         * python/python-internal.h (gdb_python_module): Declare.
905         * python/python.c (gdb_python_module): New global.
906         (before_prompt_hook): Check gdb_python_module and not gdb_module.
907         (_initialize_python): Rename gdb module to _gdb.
908         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
909         (finish_python_initialization): Move Python code to
910         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
911         __main__.
912
913 2012-09-13  Pedro Alves  <palves@redhat.com>
914
915         * Makefile.in (COMMON_OBS): Add registry.o.
916         * registry.c: New file.
917         * registry.h (struct registry_container): Declare.
918         (registry_data_callback): New typedef.
919         (struct registry_data, struct registry_data_registration, struct
920         registry_data_registry): New type.
921         (register_data_with_cleanup, registry_alloc_data)
922         (registry_callback_adaptor, registry_clear_data)
923         (registry_container_free_data, registry_set_data, registry_data):
924         Declare.
925         (DEFINE_REGISTRY): Refactor structures and functions as shims over
926         the new common structures and functions.
927         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
928         callback typedefs.
929
930 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
931
932         * remote.c (remote_insert_hw_breakpoint): Throw exception if
933         there is an error inserting hardware breakpoints and use the
934         error message from the target.
935
936         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
937         Catch this exception and print the error message contained within. Do not
938         print the default hardware error breakpoint message in this case.
939
940 2012-09-12  Doug Evans  <dje@google.com>
941
942         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
943         cu == NULL.
944
945 2012-09-11  Doug Evans  <dje@google.com>
946
947         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
948         .gdb_index symbol attributes if there are none.
949
950 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
951
952         * symtab.h (struct minimal_symbol) [has_size]: New field.
953         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
954         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
955         * printcmd.c (build_address_symbolic): Only filter out zero-sized
956         minimal symbols if the symbol's size is actually known.
957         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
958         of msymbol's size field.  Add comment.
959         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
960         SET_MSYMBOL_SIZE to set the minimal symbol size.
961
962 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
963
964         * minsyms.c (install_minimal_symbols): Use memset to fill entire
965         minimal_symbol struct object, rather than setting some of its
966         fields one by one.
967
968 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
969
970         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
971         passed_a_ptr flag when displaying typedef types.
972
973 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
974
975         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
976         the optimized_out flag is preserved.
977
978 2012-09-10  Anthony Green  <green@moxielogic.com>
979
980         * moxie-tdep.c (moxie_analyze_prologue): Update for function
981         prologue changes in GCC.
982
983 2012-09-10  Keith Seitz  <keiths@redhat.com>
984
985         PR gdb/13483
986         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
987         (BOOL_CONVERSION_BADNESS): ... this.
988         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
989         (rank_one_type): Allow all boolean conversions
990         permitted by the standard.
991
992 2012-09-06  Tom Tromey  <tromey@redhat.com>
993
994         * python/py-newobjfileevent.c (create_new_objfile_event_object):
995         Don't decref py_objfile.
996
997 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
998
999         Do not enable -lmcheck by default when Python is enabled with
1000         threading support.
1001         * configure.ac: (python_has_threads) New variable, by testing
1002         if WITH_THREAD is defined in Python.h.
1003         Move --enable-lmcheck after --with-python.
1004         Do not enable -lmcheck by default if python_has_threads=yes.
1005         Warn if --enable-lmcheck and python_has_threads=yes.
1006         * configure: Regenerate.
1007
1008 2012-08-31  Yao Qi  <yao@codesourcery.com>
1009
1010         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1011         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1012         Update some commands.
1013         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1014         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1015         to 1.
1016
1017 2012-08-31  Yao Qi  <yao@codesourcery.com>
1018
1019         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1020
1021 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1022
1023         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1024
1025 2012-08-29  Doug Evans  <dje@google.com>
1026
1027         * main.c (print_gdb_help): Remove reference to
1028         --use-deprecated-index-sections.
1029
1030 2012-08-28  Yao Qi  <yao@codesourcery.com>
1031
1032         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1033         (init_cmds): Call add_setshow_uinteger_cmd for command
1034         'max-user-call-depth'.
1035         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1036         declaration of 'max_user_call_depth'.
1037         * frame.c (backtrace_limit): Add 'unsigned'.
1038         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1039         'limit'.
1040         * remote.c (remoteaddresssize): Add 'unsigned'.
1041         (remote_address_masked): Change local var 'address_size' to
1042         'unsigned'.
1043         (_initialize_remote): Call add_setshow_uinteger_cmd for
1044         'remoteaddresssize'.
1045         * top.c (history_size): Add 'unsigned'.
1046         (show_commands): Change local variables to 'unsigned'.
1047         (set_history_size_command): Don't check history_size is negative.
1048         Adjust the condition to call unstifle_history and set history_size
1049         to UNIT_MAX.
1050
1051 2012-08-28  Pedro Alves  <palves@redhat.com>
1052
1053         PR gdb/14428
1054
1055         * infcmd.c (default_print_one_register_info): New, factored out
1056         from default_print_registers_info.
1057         (default_print_registers_info): Use it.  Mark value unavailable if
1058         necessary.
1059         (registers_info): Print user registers with
1060         default_print_one_register_info.
1061
1062 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1063
1064         PR tui/14486
1065         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1066         is not NULL before referencing it.
1067
1068 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1069
1070         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1071         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1072         original PC for it.
1073
1074 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1075             Jan Kratochvil  <jan.kratochvil@redhat.com>
1076
1077         * auto-load.c (auto_load_objfile_script): Rename to ...
1078         (auto_load_objfile_script_1): ... here, change variable realname to
1079         parameter realname, document it, add return value, add variable retval.
1080         (auto_load_objfile_script): New function.
1081
1082 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1083
1084         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1085         followed by a whitespace.
1086
1087 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1088
1089         PR gdb/14494.
1090         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1091         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1092         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1093         here.
1094
1095 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1096
1097         * memattr.c (create_mem_region): Fix memory region overlapping
1098         checking.
1099
1100 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1101
1102         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1103         with xmalloc/cleanup.
1104         * mt-tdep.c (mt_push_dummy_call): Likewise.
1105         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1106         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1107
1108 2012-08-24  Yao Qi  <yao@codesourcery.com>
1109
1110         * jv-exp.y (push_expression_name): Add "." at the end of error
1111         message.
1112
1113 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1114
1115         Document how to return from "python-interactive" to GDB.
1116         * python/python.c (_initialize_python): Update documentation.
1117
1118 2012-08-23  Pedro Alves  <palves@redhat.com>
1119
1120         * infrun.c (_initialize_infrun) <handle command help text>:
1121         Mention that multiple signals are supported.
1122
1123 2012-08-23  Pedro Alves  <palves@redhat.com>
1124
1125         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1126         string.
1127
1128 2012-08-23  Yao Qi  <yao@codesourcery.com>
1129
1130         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1131         (tfind_1): Don't call registers_changed, set_traceframe_num,
1132         and clear_traceframe_info.
1133         Call set_current_traceframe.
1134         (set_current_traceframe): call set_traceframe_num.
1135
1136 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1137
1138         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1139         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1140
1141 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1142
1143         Enable readline in Python in a GDB-specific way and block the
1144         standard Python readline module to prevent conflicts with GDB.
1145         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1146         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1147         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1148         * python/py-gdb-readline.c: New file.
1149         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1150         prototype.
1151         * python/python.c (_initialize_python): Call
1152         gdbpy_initialize_gdb_readline.
1153
1154 2012-08-22  Keith Seitz  <keiths@redhat.com>
1155
1156         * defs.h: Include build-gnulib/config.h
1157
1158 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1159
1160         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1161         and blx pc.
1162
1163 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1164
1165         Add a new "python-interactive" command that starts a standard
1166         Python interactive prompt with "pi" as alias, and add "py" as
1167         an alias to "python".
1168         * NEWS: Mention the new commands.
1169         * python/python.c (eval_python_command): New function.
1170         (python_interactive_command): For "python-interactive" with
1171         arguments, call eval_python_command.  For "python-interactive"
1172         without arguments, call PyRun_InteractiveLoop.
1173         (_initialize_python): Add "python-interactive" command with
1174         "pi" as alias, and add "py" as an alias to "python".
1175
1176 2012-08-22  Tom Tromey  <tromey@redhat.com>
1177
1178         * defs.h (quit_flag): Don't declare.
1179         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1180         (QUIT): Use new functions.
1181         * event-top.c (command_handler): Use clear_quit_flag.
1182         (handle_sigint): Use set_quit_flag.
1183         (async_request_quit): Use check_quit_flag.  Don't check
1184         immediate_quit.
1185         * exceptions.c (throw_exception): Use clear_quit_flag.
1186         * main.c (captured_main): Use clear_quit_flag.
1187         * python/python.c (clear_quit_flag, set_quit_flag)
1188         (check_quit_flag): New functions.
1189         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1190         clear_quit_flag.
1191         * remote.c (remote_wait_as): Use check_quit_flag,
1192         clear_quit_flag.
1193         (remote_start_remote): Call QUIT.
1194         * symfile.c (load_progress): Use check_quit_flag.
1195         * top.c (command_loop): Use clear_quit_flag.
1196         (command_line_input): Call QUIT.
1197         * utils.c (quit_flag): Conditionally define.
1198         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1199         functions.
1200         (prompt_for_continue): Call QUIT.  Use quit, not
1201         async_request_quit.
1202         * remote-mips.c (mips_expect_timeout): Call QUIT.
1203         * monitor.c (monitor_expect): Call QUIT.
1204
1205 2012-08-22  Tom Tromey  <tromey@redhat.com>
1206
1207         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1208         (async_init_signals): Update.
1209         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1210         (SIGWINCH_HANDLER_BODY): Remove.
1211
1212 2012-08-22  Tom Tromey  <tromey@redhat.com>
1213
1214         * jit.c (jit_object_close_impl): Don't malloc the objfile
1215         name.
1216         * objfiles.c (allocate_objfile): Don't malloc the objfile
1217         name.
1218         (free_objfile): Don't free the objfile name.
1219         * objfiles.h (struct objfile) <name>: Update comment.
1220         * symfile.c (reread_symbols): Fix reference counting.  Don't
1221         malloc objfile name.
1222
1223 2012-08-22  Tom Tromey  <tromey@redhat.com>
1224
1225         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1226         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1227         (symfile_bfd_open): Likewise.
1228         (generic_load): Likewise.
1229         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1230         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1231         gdb_bfd_open.
1232         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1233         Use gdb_bfd_open.
1234         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1235         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1236         (pmon_load_fast): Likewise.
1237         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1238         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1239         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1240         (macho_check_dsym): Likewise.
1241         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1242         (m32r_upload_command): Likewise.
1243         * gdb_bfd.h (gdb_bfd_cache): Declare.
1244         * gdb_bfd.c (struct gdb_bfd_data): New.
1245         (gdb_bfd_cache): New global.
1246         (struct gdb_bfd_cache_search): New.
1247         (hash_bfd): New function.
1248         (eq_bfd): Likewise.
1249         (gdb_bfd_open): Likewise.
1250         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1251         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1252         gdb_bfd_data.
1253         * exec.c (exec_file_attach): Use gdb_bfd_open.
1254         * dsrec.c (load_srec): Use gdb_bfd_open.
1255
1256 2012-08-22  Tom Tromey  <tromey@redhat.com>
1257
1258         * dwarf2read.c (macro_start_file): Update.
1259         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1260         (free_objfile_per_bfd_storage): Destroy macro_cache.
1261         (allocate_objfile, free_objfile): Update.
1262         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1263         New field.
1264         (struct objfile) <macro_cache>: Remove.
1265         * symfile.c (reread_symbols): Update.
1266         * symmisc.c (print_symbol_bcache_statistics): Update.
1267         (print_objfile_statistics): Update.
1268
1269 2012-08-22  Tom Tromey  <tromey@redhat.com>
1270
1271         * elfread.c (elf_symtab_read): Update.
1272         * objfiles.c (objfiles_bfd_data): New global.
1273         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1274         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1275         (allocate_objfile, free_objfile): Update.
1276         (_initialize_objfiles): Initialize objfiles_bfd_data.
1277         * objfiles.h (struct objfile_per_bfd_storage): New.
1278         (struct objfile) <per_bfd>: New field.
1279         <filename_cache>: Remove.
1280         (set_objfile_per_bfd): Declare.
1281         * symfile.c (reread_symbols): Update.  Call
1282         set_objfile_per_bfd.
1283         (allocate_symtab): Update.
1284         * symmisc.c (print_symbol_bcache_statistics): Update.
1285         (print_objfile_statistics): Print the size of the BFD obstack.
1286
1287 2012-08-22  Tom Tromey  <tromey@redhat.com>
1288
1289         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1290         * gdb_bfd.c: Use DEFINE_REGISTRY.
1291         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1292         (gdb_bfd_ref): Call bfd_alloc_data.
1293         (gdb_bfd_unref): Call bfd_free_data.
1294
1295 2012-08-22  Tom Tromey  <tromey@redhat.com>
1296
1297         * registry.h (struct registry_fields): New.
1298         (REGISTRY_FIELDS): Redefine.
1299         (REGISTRY_ACCESS_FIELD): New macro.
1300         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1301         functions.
1302
1303 2012-08-22  Tom Tromey  <tromey@redhat.com>
1304
1305         * auto-load.c (_initialize_auto_load): Update.
1306         * solib-svr4.c (_initialize_svr4_solib): Update
1307         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1308         * solib-darwin.c (_initialize_darwin_solib): Update.
1309         * registry.h: New file.
1310         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1311         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1312         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1313         (register_program_space_data_with_cleanup)
1314         (register_program_space_data, program_space_alloc_data)
1315         (clear_program_space_data, set_program_space_data)
1316         (program_space_data): Don't declare.
1317         * progspace.c: Use DEFINE_REGISTRY.
1318         (struct program_space_data, struct
1319         program_space_data_registration, struct
1320         program_space_data_registry, program_space_data_registry)
1321         (register_program_space_data_with_cleanup)
1322         (register_program_space_data, program_space_alloc_data)
1323         (program_space_free_data, clear_program_space_data)
1324         (set_program_space_data, program_space_data): Remove.
1325         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1326         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1327         (register_objfile_data_with_cleanup, register_objfile_data)
1328         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1329         declare.
1330         * objfiles.c: Use DEFINE_REGISTRY.
1331         (struct objfile_data, struct objfile_data_registration, struct
1332         objfile_data_registry, objfile_data_registry)
1333         (register_objfile_data_with_cleanup, register_objfile_data)
1334         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1335         (set_objfile_data, objfile_data): Remove.
1336         (_initialize_objfiles): Update.
1337         * jit.c (_initialize_jit): Update.
1338         * inflow.c (_initialize_inflow): Update.
1339         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1340         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1341         (register_inferior_data_with_cleanup, register_inferior_data)
1342         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1343         declare.
1344         * inferior.c: Use DEFINE_REGISTRY.
1345         (struct inferior_data, struct inferior_data_registration, struct
1346         inferior_data_registry, inferior_data_registry)
1347         (register_inferior_data_with_cleanup, register_inferior_data)
1348         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1349         (set_inferior_data, inferior_data): Remove.
1350         * auxv.c (_initialize_auxv): Update.
1351         * ada-lang.c (_initialize_ada_language): Update.
1352         * breakpoint.c (_initialize_breakpoint): Update.
1353         * i386-nat.c (i386_use_watchpoints): Update.
1354
1355 2012-08-22  Tom Tromey  <tromey@redhat.com>
1356
1357         * exec.c (exec_close, exec_file_attach): Update.
1358         (add_to_section_table): Initialize 'key' field.
1359         (add_target_sections, remove_target_sections): Add 'key' argument.
1360         * exec.h (add_target_sections, remove_target_sections): Add
1361         'key' argument.
1362         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1363         (reload_shared_libraries_1): Update.
1364         * target.h (struct target_section) <key>: New field.
1365
1366 2012-08-22  Tom Tromey  <tromey@redhat.com>
1367
1368         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1369
1370 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1371
1372         * symfile.c (allocate_symtab): Use host_address_to_string
1373         function instead of cast of pointer to long which is not
1374         compatible with x86_64-w64-mingw32 build.
1375
1376 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1377
1378         * mips-tdep.c (is_octeon): New function.
1379         (is_octeon_bbit_op): New function.
1380         (mips32_next_pc): Handle Octeon's bbit instructions.
1381         (mips32_instruction_has_delay_slot): Likewise.
1382
1383 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1384
1385         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1386         before the function.
1387
1388 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1389
1390         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1391
1392 2012-08-19  Keith Seitz  <keiths@redhat.com>
1393
1394         PR c++/14365
1395         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1396         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1397
1398 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1399
1400         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1401         The typo broke "make TAGS".
1402
1403 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1404
1405         GDB 7.5 released.
1406
1407 2012-08-17  Keith Seitz  <keiths@redhat.com>
1408
1409         PR c++/13356
1410         * gdbtypes.c (strict_type_checking): New variable.
1411         (show_strict_type_checking): New function.
1412         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1413         if strict type checking is disabled.
1414         (_initialize_gdbtypes): Add "check type" subcommand.
1415         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1416
1417 2012-08-17  Keith Seitz  <keiths@redhat.com>
1418
1419         * language.h (type_mode): Remove.
1420         (type_check): Remove.
1421         (struct language_defn): Remove la_type_check.
1422         (STRICT_TYPE): Remove unused macro.
1423         (type_error): Remove.
1424         * language.c (set_type_range_case): Renamed to ...
1425         (set_range_case): ... this.  Update all callers.
1426         Remove type_mode/type_check.
1427         (type_mode): Remove.
1428         (type_check): Remove.
1429         (show_type_command): Remove.
1430         (set_type_command): Remove.
1431         (language_info): Remove type checking output.
1432         (type_error): Remove unused function.
1433         (range_error): Update comment.
1434         (unknown_language_defn): Remove la_type_check.
1435         (auto_language_defn): Likewise.
1436         (local_language_defn): Likewise.
1437         (_initialize_language): Remove "check type" subcommand.
1438         * ada-lang.c (ada_language_defn): Remove la_type_check.
1439         * c-lang.c (c_language_defn): Likewise.
1440         (cplus_language_defn): Likewise.
1441         (asm_language_defn): Likewise.
1442         (minimal_language_defn): Likewise.
1443         * d-lang.c (d_language_defn): Likewise.
1444         * f-lang.c (f_language_defn): Likewise.
1445         * go-lang.c (go_language_defn): Likewise.
1446         * jv-lang.c (java_language_defn): Likewise.
1447         * m2-lang.c (m2_language_defn): Likewise.
1448         * objc-lang.c (objc_language_defn): Likewise.
1449         * opencl-lang.c (opencl_language_defn): Likewise.
1450         * p-lang.c (pascal_language_defn): Likewise.
1451
1452 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1453
1454         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1455
1456 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1457
1458         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1459         New function.
1460         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1461         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1462         to access the bsp and bspstore registers if not.
1463
1464 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1465
1466         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1467         * breakpoint.c (detach_breakpoints): Change pid parameter into
1468         a ptid.  Adjust code accordingly.
1469         * infrun.c (handle_inferior_event): Delete variable child_pid.
1470         Update call to detach_breakpoints to pass the child ptid for
1471         fork events.
1472         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1473         assert that inferior_ptid's lwp is zero.
1474         (linux_handle_extended_wait): Update call to detach_breakpoints.
1475         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1476         detach_breakpoints.
1477
1478 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1479
1480         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1481         parent, only call detach_breakpoints if tts.tts_event ==
1482         TTEVT_VFORK.
1483
1484 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1485
1486         * dwarf2-frame.c (dwarf2_frame_cache): Use
1487         get_frame_address_in_block instead of get_frame_pc as
1488         the bound for executing the frame's FDE.
1489
1490 2012-08-16  Yao Qi  <yao@codesourcery.com>
1491
1492         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1493         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1494         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1495         (c_type_print_varspec_suffix): Likewise.
1496         * eval.c (evaluate_subexp_standard): Likewise.
1497         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1498         (f_type_print_varspec_suffix): Likewise.
1499         * gdbtypes.c (is_scalar_type): Likewise.
1500         (recursive_dump_type): Likewise.
1501         * infcall.c (value_arg_coerce): Likewise.
1502         * m2-valprint.c (m2_val_print): Likewise.
1503         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1504         (pascal_type_print_varspec_suffix): Likewise.
1505         (pascal_type_print_base): Likewise.
1506         * p-valprint.c (pascal_val_print): Likewise.
1507         (pascal_val_print): Likewise.
1508         * valops.c (value_slice): Likewise.
1509         * valprint.c (scalar_type_p): Likewise.
1510         * valarith.c (value_bitstring_subscript): Remove.
1511         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1512         Remove comment on TYPE_CODE_BITSTRING.
1513
1514         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1515         TYPE_CODE_BITSTRING.
1516
1517         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1518         slot 0.
1519
1520 2012-08-16  Yao Qi  <yao@codesourcery.com>
1521
1522         * tracepoint.c (trace_find_none_command): Remove.
1523         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1524
1525 2012-08-16  Yao Qi  <yao@codesourcery.com>
1526
1527         * remote.c (handle_notification): Remove parameter 'length'.
1528         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1529
1530 2012-08-15  Keith Seitz  <keiths@redhat.com>
1531
1532         * gdbtypes.c (opaque_type_resolution): Make static.
1533         Add missing comment.
1534         (overload_debug): Add missing comment.
1535         (show_opaque_type_resolution): Likewise.
1536         (show_overload_debug): Likewise.
1537         (print_bit_vector): Remove unnecessary forward declaration.
1538         (print_arg_types): Likewise.
1539         (dump_fn_fieldlists): Likewise.
1540         (print_cplus_stuff): Likewise.
1541
1542 2012-08-15  Tom Tromey  <tromey@redhat.com>
1543
1544         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1545         (gdb_bfd_ref): Initialize new field.
1546         (gdb_bfd_unref): Unref the archive BFD.
1547         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1548         parent archive.
1549
1550 2012-08-15  Tom Tromey  <tromey@redhat.com>
1551
1552         PR python/14387:
1553         * python/py-bpevent.c (create_breakpoint_event_object): Update
1554         comment.
1555         * python/py-event.c (evpy_add_attribute): Update comment.
1556         * python/py-exitedevent.c (create_exited_event_object): Fix
1557         reference counting and error handling.
1558         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1559         Fix reference counting.
1560         * python/py-signalevent.c (create_signal_event_object): Fix
1561         reference counting and error handling.
1562         * python/py-stopevent.c (emit_stop_event): Fix reference
1563         counting.
1564         * python/py-threadevent.c (get_event_thread): Return a
1565         borrowed reference.
1566         * python/py-type.c (convert_field): Fix reference counting.
1567
1568 2012-08-15  Tom Tromey  <tromey@redhat.com>
1569
1570         * dwarf2read.c (dwarf_decode_macro_bytes)
1571         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1572         as hash key.
1573
1574 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1575
1576         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1577         stepi, nexti, finish, next, step, jump, and continue commands.
1578         * infrun.c (_initialize_infrun): Update help text for the handle
1579         command.
1580
1581 2012-08-14  Doug Evans  <dje@google.com>
1582
1583         * gdbtypes.c (struct extra): Delete, unused.
1584
1585         * gdbtypes.c: Whitespace cleanup.
1586         (address_space_name_to_int): Remove "extern" from definition.
1587         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1588
1589         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1590         TYPE_POINTER_TYPE (type).
1591
1592 2012-08-14  Gary Benson  <gbenson@redhat.com>
1593
1594         * solib-svr4.c (svr4_free_library_list): Use free_so.
1595
1596 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1597
1598         * .gitignore: Add go-exp.c.
1599
1600 2012-08-13  Doug Evans  <dje@google.com>
1601
1602         * value.c (show_convenience): Tweak comment.
1603         (_initialize_values): Mention convenience functions in the help text
1604         for "show convenience".
1605
1606 2012-08-13  Yao Qi  <yao@codesourcery.com>
1607
1608         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1609         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1610         TERNOP_SLICE_COUNT.
1611         * eval.c (evaluate_subexp_standard): Likewise.
1612         * expprint.c (print_subexp_standard): Likewise.
1613         (dump_subexp_body_standard): Likewise.
1614         * parse.c (operator_length_standard): Likewise.
1615
1616 2012-08-13  Yao Qi  <yao@codesourcery.com>
1617
1618         * std-operator.def: Remove OP_BITSTRING.
1619         * breakpoint.c (watchpoint_exp_is_const): Update.
1620         * eval.c (evaluate_subexp_standard): Remove handling to
1621         OP_BITSTRING.
1622         * expprint.c (print_subexp_standard): Likewise.
1623         (dump_subexp_body_standard): Likewise.
1624         * parse.c (operator_length_standard): Likewise.
1625         * valops.c (value_bitstring): Remove.
1626         * value.h: Remove the declaration of 'value_bitstring'.
1627
1628 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1629
1630         * linespec.c (find_methods): Remove unused variables `i1' and
1631         `name_len'.
1632         (decode_line_full): Likewise for `arg_start'.
1633
1634 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1635
1636         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1637         (zlib_decompress_section): Likewise for `section_data'.
1638         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1639
1640 2012-08-10  Doug Evans  <dje@google.com>
1641
1642         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1643         * NEWS: Document them.
1644         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1645         function/strfns.py.
1646         * python/py-type.c (typy_array_1): New function.
1647         (typy_array): Call it.
1648         (typy_vector): New function.
1649         (type_object_methods): Add "vector".
1650         * python/lib/gdb/function/__init__.py: New file.
1651         * python/lib/gdb/function/strfns.py: New file.
1652
1653 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1654
1655         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1656         for TYPE_FIELD_BITPOS.
1657         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1658
1659 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1660
1661         PR cli/10436:
1662         * common/vec.h (VEC_merge): Define.
1663         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1664         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1665         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1666         * completer.c: Include gdb_signals.h.
1667         (signal_completer): Define.
1668         * completer.h (signal_completer): Add prototype.
1669         * infcmd.c (_initialize_infcmd): Assign the command
1670         completer for "signal" to handle_completer.
1671         * infrun.c: Include completer.h.
1672         (handle_completer): Define.
1673         (_initialize_infrun): Declare a new local variable c.  Store the
1674         result of add_com("handle") to it.  Assign the command
1675         completer for "handle" to handle_completer.
1676
1677 2012-08-09  Yao Qi  <yao@codesourcery.com>
1678
1679         * cli/cli-decode.c (set_cmd_prefix): New.
1680         (lookup_cmd_for_prefixlist): New.
1681         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1682         of each cmd_list_element in *prefixlist.
1683         (add_setshow_cmd_full): set_cmd_prefix.
1684         (add_alias_cmd): Likewise.
1685         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1686         Declare 'auto_boolean_enums'.
1687         * cli/cli-setshow.c: Include "observer.h".
1688         (notify_command_param_changed_p): New.
1689         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1690         Remove 'static'.
1691         (do_setshow_command): Split it to ...
1692         (do_set_command, do_show_command): ... them.  New.
1693         (do_set_command): Call observer_notify_command_param_changed if
1694         notify_command_param_changed_p returns true.
1695         (cmd_show_list): Caller update.
1696         * auto-load.c (set_auto_load_cmd): Likewise.
1697         * remote.c (show_remote_cmd): Likewise.
1698         * cli/cli-setshow.h: Update declarations.
1699         * top.c (execute_command): Call do_set_command and do_show_command.
1700
1701         * NEWS: Mention new MI notification.
1702         * mi/mi-interp.c: Declare mi_command_param_changed.
1703         (mi_interpreter_init): Attach mi_command_param_changed to
1704         observer command_param_changed.
1705         (mi_command_param_changed): New.
1706         Remove mi_suppress_breakpoint_notifications.
1707         Define global variable mi_suppress_notification.
1708         (mi_breakpoint_created): Update.
1709         (mi_breakpoint_deleted): Likewise.
1710         (mi_breakpoint_modified): Likewise.
1711         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1712         'gdb-set' and set mi_suppress_notification.
1713         * mi/mi-main.h: (mi_suppress_notification): New struct.
1714
1715 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1716             Jan Kratochvil  <jan.kratochvil@redhat.com>
1717
1718         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1719
1720 2012-08-09  Yao Qi  <yao@codesourcery.com>
1721
1722         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1723         (skiplist): Move it to skip.c.
1724         (init_cmd_lists): Remove code setting enablebreaklist and
1725         skiplist to NULL.
1726         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1727         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1728         skiplist.
1729         * gdbcmd.h: Likewise.
1730         * skip.c (_initialize_step_skip): Move 'skiplist' from
1731         cli/cli-cmds.c.
1732
1733 2012-08-09  Yao Qi  <yao@codesourcery.com>
1734
1735         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1736         * gnu-nat.c, symfile.c: Likewise.
1737
1738 2012-08-08  Aaron Gamble  <agamble@google.com>
1739
1740         * utils.c (prompt_for_continue_wait_time): New static global.
1741         (make_command_stats_cleanup): Initialize it.
1742         (report_command_stats): Subtract time waiting for user.
1743         (prompt_for_continue): Track time waiting for user.
1744         (defaulted_query): Track time waiting for user.
1745
1746 2012-08-08  Doug Evans  <dje@google.com>
1747
1748         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1749         UNOP_MEMVAL_TYPE.
1750         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1751         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1752         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1753         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1754         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1755         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1756         elt.
1757         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1758         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1759         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1760         (dump_prefix_expression): Handle OP_TYPE.
1761
1762 2012-08-08  Keith Seitz  <keiths@redhat.com>
1763
1764         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1765         addr_start.
1766
1767 2012-08-08  Doug Evans  <dje@google.com>
1768
1769         * linux-thread-db.c: #include "gdb_vecs.h".
1770         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1771         updated.
1772         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1773         (thread_db_load_search): Use a vector to iterate over path elements.
1774         Handle text appearing after "$pdir".
1775
1776         * gdb_string.h: Moved to ...
1777         * common/gdb_string.h: ... here.
1778         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1779         gdb_string.h and gdb_assert.h.
1780
1781 2012-08-08  Yao Qi  <yao@codesourcery.com>
1782
1783         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1784         (tic6x_value_to_register): Likewise.
1785         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1786         and set_gdbarch_value_to_register.
1787
1788 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1789             Jean-Marc Saffroy  <saffroy@gmail.com>
1790
1791         PR 11804
1792         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1793         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1794         * gcore.c (gcore_create_callback): New function comment.  Add modified
1795         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1796         according to MODIFIED.
1797         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1798         the passed modified value to FUNC.
1799         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1800         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1801         first.  New variables modified and has_anonymous.  Parse the lines of
1802         smaps file.  Add the passed MODIFIED value to FUNC.
1803         * procfs.c (find_memory_regions_callback): Add the passed modified
1804         value.
1805
1806 2012-08-06  Tom Tromey  <tromey@redhat.com>
1807
1808         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1809         (dwarf2_frame_cache): Use it.
1810         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1811         cache initialization constraint.
1812
1813 2012-08-06  Tom Tromey  <tromey@redhat.com>
1814
1815         PR python/14386:
1816         * varobj.c (update_dynamic_varobj_children): Don't call
1817         PyIter_Check.
1818
1819 2012-08-06  Tom Tromey  <tromey@redhat.com>
1820
1821         PR cli/14392:
1822         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1823
1824 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1825
1826         * NEWS: New entry for 'cd' default parameters.
1827         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1828
1829 2012-08-03  Tom Tromey  <tromey@redhat.com>
1830
1831         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1832         return.
1833
1834 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1835
1836         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1837         to attempting lseek/write.
1838         (inf_child_fileio_pread): Likewise for pread.
1839
1840 2012-08-02  Yao Qi  <yao@codesourcery.com>
1841
1842         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1843         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1844         add_setshow_zinteger_cmd.
1845         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1846         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1847         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1848         instead of add_setshow_zinteger_cmd.
1849         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1850         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1851         instead of add_setshow_zinteger_cmd.
1852         * frame.c (frame_debug): Add 'unsigned'.
1853         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1854         add_setshow_zinteger_cmd.
1855         * frame.h: Update the declaration of 'frame_debug'.
1856         * gdbtypes.c (overload_debug): Add 'unsigned'.
1857         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1858         add_setshow_zinteger_cmd.
1859         * inferior.h: Update declaration of 'debug_infrun'.
1860         * infrun.c (debug_infrun): Add 'unsigned'.
1861         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1862         add_setshow_zinteger_cmd.
1863         * jit.c (jit_debug): Add 'unsigned'.
1864         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1865         add_setshow_zinteger_cmd.
1866         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1867         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1868         instead of add_setshow_zinteger_cmd.
1869         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1870         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1871         add_setshow_zinteger_cmd.
1872         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1873         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1874         instead of add_setshow_zinteger_cmd.
1875         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1876         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1877         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1878         intead of add_setshow_zinteger_cmd.
1879         * mips-tdep.c (mips_debug): Add 'unsigned'.
1880         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1881         instead of add_setshow_zinteger_cmd.
1882         * monitor.c (monitor_debug): Add 'unsigned'.
1883         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1884         add_setshow_zinteger_cmd.
1885         * observer.c (observer_debug): Add 'unsigned'.
1886         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1887         add_setshow_zinteger_cmd.
1888         * parse.c (expressiondebug): Add 'unsigned'.
1889         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1890         add_setshow_zinteger_cmd.
1891         * record.c (record_debug): Add 'unsigned'.
1892         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1893         add_setshow_zinteger_cmd.
1894         * record.h: Update the declaration of 'record_debug'.
1895         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1896         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1897         add_setshow_zinteger_cmd.
1898         * serial.c (global_serial_debug_p): Add 'unsigned'.
1899         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1900         add_setshow_zinteger_cmd.
1901         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1902         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1903         add_setshow_zinteger_cmd.
1904         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1905         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1906         add_setshow_zinteger_cmd.
1907         * target.c (targetdebug): Add 'unsigned'.
1908         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1909         add_setshow_zinteger_cmd.
1910         * valops.c (overload_debug): Add 'unsigned'.
1911         * varobj.c (varobjdebug): Add 'unsigned'.
1912         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1913         add_setshow_zinteger_cmd.
1914         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1915         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1916         instead of add_setshow_zinteger_cmd.
1917
1918         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1919         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1920         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1921         instead of add_setshow_zinteger_cmd.
1922         * gdbarch.c, gdbarch.h: Re-generated.
1923
1924 2012-08-02  Yao Qi  <yao@codesourcery.com>
1925
1926         * nto-tdep.c: Don't include cli/cli-decode.h and
1927         cli/cli-cmds.h.
1928         (_initialize_nto_tdep): Remove.
1929         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1930         Remove field.
1931         Remove macro nto_internal_debugging.
1932
1933 2012-08-01  Richard Henderson  <rth@redhat.com>
1934
1935         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1936         (mep-*-*) [gdb_target_obs]: Likewise.
1937
1938 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
1939
1940         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1941         linux_get_siginfo_type.
1942
1943 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1944
1945         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1946         AT_ENTRY_POINT.
1947         (call_function_by_hand) <ON_STACK>: Call write_memory with
1948         gdbarch_breakpoint_from_pc, if possible.
1949         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1950         here.
1951
1952 2012-07-31  Yao Qi  <yao@codesourcery.com>
1953
1954         * tracepoint.c: Add 'static' for some variables.
1955
1956 2012-07-31  Yao Qi  <yao@codesourcery.com>
1957
1958         * go32-nat.c: Declare _initialize_go32_nat.
1959         * ser-go32.c: Declare _initialize_ser_dos.
1960         * top.c (do_chdir_cleanup): Add 'static'.
1961
1962 2012-07-30  Keith Seitz  <keiths@redhat.com>
1963
1964         * linespec.c (linespec_lex_number): A number followed
1965         by quotes is a valid number, too.
1966
1967 2012-07-30  Tom Tromey  <tromey@redhat.com>
1968
1969         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1970
1971 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
1972
1973         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1974         attempt to 4-byte-align HW breakpoint addresses for Thumb.
1975
1976 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
1977
1978         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1979         invalid or reevaluated to prevent prevent references to possibly
1980         delete'd type objects being left in the varobj.
1981
1982 2012-07-27  Tom Tromey  <tromey@redhat.com>
1983             Jan Kratochvil  <jan.kratochvil@redhat.com>
1984
1985         * copying.awk: Print buffer-read-only and vi ro markers.
1986         * copying.c: Rebuild.
1987         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1988         * gdbarch.c, gdbarch.h: Rebuild.
1989         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1990         buffer-read-only and vi ro markers.
1991         * features/arm-with-iwmmxt.c: Rebuild.
1992         * features/arm-with-m-fpa-layout.c: Rebuild.
1993         * features/arm-with-m-vfp-d16.c: Rebuild.
1994         * features/arm-with-m.c: Rebuild.
1995         * features/arm-with-neon.c: Rebuild.
1996         * features/arm-with-vfpv2.c: Rebuild.
1997         * features/arm-with-vfpv3.c: Rebuild.
1998         * features/i386/amd64-avx-linux.c: Rebuild.
1999         * features/i386/amd64-avx.c: Rebuild.
2000         * features/i386/amd64-linux.c: Rebuild.
2001         * features/i386/amd64.c: Rebuild.
2002         * features/i386/i386-avx-linux.c: Rebuild.
2003         * features/i386/i386-avx.c: Rebuild.
2004         * features/i386/i386-linux.c: Rebuild.
2005         * features/i386/i386-mmx-linux.c: Rebuild.
2006         * features/i386/i386-mmx.c: Rebuild.
2007         * features/i386/i386.c: Rebuild.
2008         * features/i386/x32-avx-linux.c: Rebuild.
2009         * features/i386/x32-avx.c: Rebuild.
2010         * features/i386/x32-linux.c: Rebuild.
2011         * features/i386/x32.c: Rebuild.
2012         * features/mips-dsp-linux.c: Rebuild.
2013         * features/mips-linux.c: Rebuild.
2014         * features/mips64-dsp-linux.c: Rebuild.
2015         * features/mips64-linux.c: Rebuild.
2016         * features/rs6000/powerpc-32.c: Rebuild.
2017         * features/rs6000/powerpc-32l.c: Rebuild.
2018         * features/rs6000/powerpc-403.c: Rebuild.
2019         * features/rs6000/powerpc-403gc.c: Rebuild.
2020         * features/rs6000/powerpc-405.c: Rebuild.
2021         * features/rs6000/powerpc-505.c: Rebuild.
2022         * features/rs6000/powerpc-601.c: Rebuild.
2023         * features/rs6000/powerpc-602.c: Rebuild.
2024         * features/rs6000/powerpc-603.c: Rebuild.
2025         * features/rs6000/powerpc-604.c: Rebuild.
2026         * features/rs6000/powerpc-64.c: Rebuild.
2027         * features/rs6000/powerpc-64l.c: Rebuild.
2028         * features/rs6000/powerpc-7400.c: Rebuild.
2029         * features/rs6000/powerpc-750.c: Rebuild.
2030         * features/rs6000/powerpc-860.c: Rebuild.
2031         * features/rs6000/powerpc-altivec32.c: Rebuild.
2032         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2033         * features/rs6000/powerpc-altivec64.c: Rebuild.
2034         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2035         * features/rs6000/powerpc-cell32l.c: Rebuild.
2036         * features/rs6000/powerpc-cell64l.c: Rebuild.
2037         * features/rs6000/powerpc-e500.c: Rebuild.
2038         * features/rs6000/powerpc-e500l.c: Rebuild.
2039         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2040         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2041         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2042         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2043         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2044         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2045         * features/rs6000/powerpc-vsx32.c: Rebuild.
2046         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2047         * features/rs6000/powerpc-vsx64.c: Rebuild.
2048         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2049         * features/rs6000/rs6000.c: Rebuild.
2050         * features/s390-linux32.c: Rebuild.
2051         * features/s390-linux32v1.c: Rebuild.
2052         * features/s390-linux32v2.c: Rebuild.
2053         * features/s390-linux64.c: Rebuild.
2054         * features/s390-linux64v1.c: Rebuild.
2055         * features/s390-linux64v2.c: Rebuild.
2056         * features/s390x-linux64.c: Rebuild.
2057         * features/s390x-linux64v1.c: Rebuild.
2058         * features/s390x-linux64v2.c: Rebuild.
2059         * features/tic6x-c62x-linux.c: Rebuild.
2060         * features/tic6x-c62x.c: Rebuild.
2061         * features/tic6x-c64x-linux.c: Rebuild.
2062         * features/tic6x-c64x.c: Rebuild.
2063         * features/tic6x-c64xp-linux.c: Rebuild.
2064         * features/tic6x-c64xp.c: Rebuild.
2065
2066 2012-07-27  Tom Tromey  <tromey@redhat.com>
2067
2068         * c-exp.y (classify_name): Avoid assignment in condition.
2069
2070 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2071
2072         * amd64-windows-tdep.c: Include "frame.h".
2073         (amd64_windows_skip_trampoline_code): New function.
2074         (amd64_windows_init_abi): Add trampoline registration.
2075
2076 2012-07-27  Yao Qi  <yao@codesourcery.com>
2077
2078         * tracepoint.c (cur_traceframe_number): Remove.
2079         (set_tfile_traceframe): Remove.
2080         (tfile_trace_find, tfile_fetch_registers): Update callers.
2081         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2082         (tfile_open, tfile_trace_find): Likewise.
2083
2084 2012-07-27  Yao Qi  <yao@codesourcery.com>
2085
2086         * thread.c (switch_to_thread): Don't call registers_changed.
2087
2088 2012-07-26  Tom Tromey  <tromey@redhat.com>
2089
2090         * Makefile.in (SFILES): Remove objc-exp.y.
2091         (YYFILES): Remove objc-exp.c.
2092         (YYOBJ): Remove objc-exp.o.
2093         (local-maintainer-clean): Don't mention objc-exp.c.
2094         * c-exp.y: Include objc-lang.h.
2095         (%union) <class>: New field.
2096         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2097         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2098         Objective C productions.
2099         (msglist, msgarglist, msgarg): New productions.
2100         (array_mod, func_mod, operator): Clone productions for
2101         OBJC_LBRAC.
2102         (parse_string_or_char): Handle '@' strings.
2103         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2104         (classify_name): Check la_name_of_this.  Recognize ObjC class
2105         names.
2106         * objc-exp.y: Remove.
2107         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2108         * objc-lang.h (objc_parse, objc_error): Don't declare.
2109
2110 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2111
2112         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2113
2114 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2115
2116         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2117         and decrement.
2118
2119 2012-07-26  Tom Tromey  <tromey@redhat.com>
2120
2121         * copying.c: Rebuild.
2122         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2123         'no_class'.
2124
2125 2012-07-26  Tom Tromey  <tromey@redhat.com>
2126
2127         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2128         immediate_quit.
2129         (print_objfile_statistics): Likewise.
2130         (maintenance_print_symbols): Likewise.
2131         (maintenance_print_msymbols): Likewise.
2132         (maintenance_print_objfiles): Likewise.
2133         * psymtab.c (print_partial_symbols): Call QUIT.
2134         (maintenance_print_psymbols): Likewise.  Don't modify
2135         immediate_quit.
2136         * copying.c (show_copying_command): Don't modify immediate_quit.
2137         (show_warranty_command): Likewise.
2138         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2139
2140 2012-07-26  Keith Seitz  <keiths@redhat.com>
2141
2142         * linespec.c (linespec_lexer_lex_number): The input
2143         is also a valid number if the next character is a comma
2144         or colon.
2145
2146 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2147
2148         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2149         configure options.
2150
2151 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2152
2153         * machoread.c: Include gdb_bfd.h.
2154
2155 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2156
2157         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2158         offset.
2159
2160 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2161
2162         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2163         SIZE to size_t.
2164         (dwarf2_evaluate_loc_desc): Likewise.
2165         (dwarf2_loc_desc_needs_frame): Likewise.
2166         (locexpr_describe_location_1): Likewise.
2167         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2168         size_t.
2169         (struct dwarf2_loclist_baton): Likewise.
2170         * dwarf2read.c (struct dwarf_block): Likewise.
2171         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2172         (decode_locdesc): Expand SIZE and I to size_t.
2173
2174 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2175
2176         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2177
2178 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2179
2180         * doublest.c (convert_doublest_to_floatformat): If the exponent
2181         is too small, treat the value as zero.  If the exponent is too
2182         large, treat the value as infinity.
2183
2184 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2185
2186         * configure.ac: Add --enable-lmcheck configure option.
2187         * configure: Regenerate.
2188
2189 2012-07-25  Tom Tromey  <tromey@redhat.com>
2190
2191         * NEWS: Mention maint info bfds.
2192         * gdb_bfd.c (all_bfds): New global.
2193         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2194         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2195         New functions.
2196
2197 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2198
2199         * configure.tgt: Add v850*-*-rtems*.
2200
2201 2012-07-25  Tom Tromey  <tromey@redhat.com>
2202
2203         * macrotab.c (macro_bcache_str): Remove cast.
2204
2205 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2206
2207         * linespec.c (linespec_lexer_lex_number): Update comments,
2208         change the return and add check to make sure the input is
2209         the decimal numbers.
2210         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2211         false, call linespec_lexer_lex_string.
2212
2213 2012-07-24  Tom Tromey  <tromey@redhat.com>
2214
2215         * symfile.c (symbol_file_add): Don't open BFD twice.
2216
2217 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2218
2219         * breakpoint.c (create_breakpoint): Store condition for pending
2220         breakpoints.
2221
2222 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2223
2224         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2225         (m68k_return_value): Handle complex types like structures.
2226         (m68k_svr4_return_value): Likewise.
2227
2228 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2229
2230         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2231         parameters to bfd_get_section_name.
2232
2233 2012-07-24  Yao Qi  <yao@codesourcery.com>
2234
2235         * cli/cli-setshow.c: Handle case 'var_uinteger'
2236         and 'var_zuninteger' together.  Handle case 'var_integer' and
2237         'var_zinteger' together.
2238
2239 2012-07-23  Keith Seitz  <keiths@redhat.com>
2240
2241         * linespec.c (convert_linespec_to_sal): Don't add
2242         any symbols to the result vector if symbol_to_sal
2243         returns zero.
2244
2245 2012-07-23  Keith Seitz  <keiths@redhat.com>
2246
2247         * linespec.c (decode_objc): Record the function name
2248         in the linespec.
2249
2250 2012-07-23  Tom Tromey  <tromey@redhat.com>
2251
2252         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2253         counting.
2254         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2255         (map_vmap): Acquire a reference to the BFD.
2256
2257 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2258
2259         * p-valprint.c (pascal_object_print_value): Replace potentially
2260         unsafe alloca with xmalloc/xfree.
2261         * valops.c (search_struct_method): Likewise.
2262
2263 2012-07-23  Tom Tromey  <tromey@redhat.com>
2264
2265         * solib-svr4.c (enable_break): Update.
2266         * bfd-target.h (target_bfd_reopen): Update documentation.
2267
2268 2012-07-23  Tom Tromey  <tromey@redhat.com>
2269
2270         * symfile.c (separate_debug_file_exists): Update.
2271         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2272         (reread_symbols): Update.
2273         * elfread.c (build_id_verify): Update.
2274         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2275         bfd_open_maybe_remote.
2276
2277 2012-07-23  Tom Tromey  <tromey@redhat.com>
2278
2279         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2280
2281 2012-07-23  Tom Tromey  <tromey@redhat.com>
2282
2283         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2284         and 'abfd'.
2285         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2286         and 'abfd'.
2287         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2288         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2289         'abfd'.
2290         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2291         * objfiles.c (allocate_objfile): Acquire a new reference.
2292         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2293         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2294         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2295         a cleanup for 'nbfd'.
2296         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2297         for 'nbfd'.
2298         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2299         make a cleanup for 'abfd'.
2300         (symbol_file_add): Make a BFD cleanup.
2301
2302 2012-07-23  Tom Tromey  <tromey@redhat.com>
2303
2304         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2305         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2306         * corelow.c (core_open): Use gdb_bfd_fopen.
2307         * dsrec.c (load_srec): Use gdb_bfd_openr.
2308         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2309         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2310         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2311         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2312         (gdb_bfd_fdopenr): New functions.
2313         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2314         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2315         (gdb_bfd_fdopenr): Declare.
2316         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2317         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2318         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2319         gdb_bfd_openr_next_archived_file.
2320         (macho_check_dsym): Use gdb_bfd_openr.
2321         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2322         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2323         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2324         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2325         gdb_bfd_openr.
2326         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2327         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2328         gdb_bfd_openr_next_archived_file.
2329         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2330         Use gdb_bfd_openr.
2331         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2332         gdb_bfd_openr.
2333         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2334         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2335         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2336         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2337         (symfile_bfd_open): Use gdb_bfd_fopen.
2338         (generic_load): Use gdb_bfd_openr.
2339         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2340
2341 2012-07-23  Tom Tromey  <tromey@redhat.com>
2342
2343         * bfd-target.c (target_bfd_reopen): Update.
2344         * cli/cli-dump.c (bfd_openr_with_cleanup)
2345         (bfd_openw_with_cleanup): Update.
2346         * corelow.c (core_open): Update.
2347         * dsrec.c (load_srec): Update.
2348         * exec.c (exec_file_attach): Update.
2349         * gcore.c (create_gcore_bfd): Update.
2350         * gdb_bfd.c (gdb_bfd_ref): Return void.
2351         (gdb_bfd_open): Update.
2352         * gdb_bfd.h (gdb_bfd_ref): Return void.
2353         Update comments.
2354         * jit.c (jit_bfd_try_read_symtab): Update.
2355         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2356         * machoread.c (macho_symfile_read_all_oso): Update.
2357         (macho_check_dsym): Update.
2358         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2359         * remote-m32r-sdi.c (m32r_load): Update.
2360         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2361         * rs6000-nat.c (add_vmap): Update.
2362         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2363         Update.
2364         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2365         * solib-spu.c (spu_bfd_open): Update.
2366         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2367         * spu-linux-nat.c (spu_bfd_open): Update.
2368         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2369         (generic_load): Update.
2370         * windows-nat.c (windows_make_so): Update.
2371
2372 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2373
2374         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2375
2376 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2377
2378         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2379         SIGTRAMP_FRAME unwinding.
2380
2381 2012-07-20  Doug Evans  <dje@google.com>
2382
2383         * NEWS: Document new options "set/show use-deprecated-index-sections",
2384         and delete reference to --use-deprecated-index-sections.
2385         * symfile.h (use_deprecated_index_sections): Delete.
2386         * dwarf2read.c (use_deprecated_index_sections): Make static.
2387         (read_index_from_section): Update wording of how to load
2388         deprecated index sections.
2389         (_initialize_dwarf2_read): New options
2390         "set/show use-deprecated-index-sections".
2391         * main.c (captured_main): Delete --use-deprecated-index-sections.
2392
2393 2012-07-20  Pedro Alves  <palves@redhat.com>
2394
2395         PR threads/11692
2396         PR gdb/12203
2397
2398         * infrun.c (handle_inferior_event) <new thread>: Don't special
2399         case minus_one_ptid.
2400         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2401         * linux-thread-db.c (thread_get_info_callback): Don't return early
2402         if the thread is zombie.
2403         (thread_from_lwp): Change return type to void.  Rewrite stale
2404         comment.
2405         (attach_thread): Don't return early if the thread is zombie,
2406         instead set its "dying" flag.
2407         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2408         (find_new_threads_callback): Don't return early if the thread is
2409         zombie.
2410
2411 2012-07-20  Pedro Alves  <palves@redhat.com>
2412
2413         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2414         * target.c (target_wait): Likewise.
2415         (str_comma_list_concat_elem, do_option, target_options_to_string):
2416         New functions.
2417         * target.h (target_options_to_string): Declare.
2418
2419 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2420             Tom Tromey  <tromey@redhat.com>
2421
2422         * dwarf2read.c (dwarf_decode_macros)
2423         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2424         DW_MACRO_GNU_transparent_include_alt>: New cases.
2425         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2426         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2427
2428 2012-07-20  Tom Tromey  <tromey@redhat.com>
2429
2430         * dwarf2read.c (try_open_dwo_file): Don't call
2431         gdb_bfd_stash_filename.
2432
2433 2012-07-20  Pedro Alves  <palves@redhat.com>
2434
2435         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2436         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2437         (i386_process_record): Tweak description comments.
2438
2439 2012-07-20  Pedro Alves  <palves@redhat.com>
2440
2441         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2442         (i386_process_record): Use record_read_memory.
2443         * record.c (record_read_memory): New function.
2444         (record_arch_list_add_mem, record_exec_insn): Use
2445         record_read_memory.
2446         * record.h (record_read_memory): Declare.
2447
2448 2012-07-20  Yao Qi  <yao@codesourcery.com>
2449
2450         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2451         NULL for xfree.
2452
2453 2012-07-19  Pedro Alves  <palves@redhat.com>
2454
2455         * record.c (record_resume): Ask the target beneath to report all
2456         signals.
2457
2458 2012-07-19  Doug Evans  <dje@google.com>
2459
2460         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2461         there's no section at address zero.
2462         (dwarf2_record_block_ranges): Ditto.
2463
2464 2012-07-19  Yao Qi  <yao@codesourcery.com>
2465
2466         * command.h, remote.c: Fix a typo in comment.
2467
2468 2012-07-19  Tom Tromey  <tromey@redhat.com>
2469
2470         PR exp/13206:
2471         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2472         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2473         OP_DECLTYPE>: New cases.
2474         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2475         (type_exp): Add new productions.
2476         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2477         and decltype.
2478         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2479         New case.
2480         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2481         OP_DECLTYPE>: New case.
2482         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2483         New case.
2484         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2485         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2486
2487 2012-07-19  Tom Tromey  <tromey@redhat.com>
2488
2489         * c-exp.y (enum token_flags): New.
2490         (struct token) <cxx_only>: Remove.
2491         <flags>: New field.
2492         (tokentab3, tokentab2, ident_tokens): Update.
2493         (lex_one_token): Update.  Handle FLAG_SHADOW.
2494
2495 2012-07-19  Tom Tromey  <tromey@redhat.com>
2496
2497         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2498         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2499         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2500         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2501         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2502         type_exp production where appropriate.
2503         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2504         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2505         <UNOP_MEMVAL_TYPE>: New case.
2506         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2507         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2508         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2509         <UNOP_MEMVAL_TYPE>: New case.
2510         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2511         UNOP_REINTERPRET_CAST>: Update.
2512         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2513         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2514         UNOP_REINTERPRET_CAST>: Update.
2515         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2516         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2517         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2518         constants.
2519
2520 2012-07-19  Yao Qi  <yao@codesourcery.com>
2521             Jan Kratochvil <jan.kratochvil@redhat.com>
2522
2523         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2524         and case 'var_optional_filename' together.
2525         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2526         instead of add_setshow_optional_filename_cmd for setshow command
2527         'args'.  Set completer for 'set args'.
2528
2529 2012-07-18  Doug Evans  <dje@google.com>
2530
2531         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2532         * common/gdb_vecs.c: New file, contents from utils.c.
2533         * common/host-defs.h: New file, contents from defs.h.
2534         * utils.h: New file, contents from defs.h.
2535         * defs.h: Move all declarations of objects defined in utils.c
2536         to utils.h (except QUIT() and related).
2537         #include "utils.h", "host-defs.h".
2538         * probe.h (probe_p): Move here from gdb_vecs.h.
2539         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2540         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2541         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2542         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2543         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2544         (COMMON_OBS): Add gdb_vecs.o.
2545         (gdb_vecs.o): New rule.
2546
2547 2012-07-18  Keith Seitz  <keiths@redhat.com>
2548
2549         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2550         parameter.  If non-zero, use SYMNAME as the canonical name
2551         for the SaL.
2552         Update all callers.
2553         (convert_linespec_to_sals): Use add_sal_to_sals for
2554         expressions, too.
2555         (decode_line_full): No need to "fill in missing canonical names"
2556         anymore. Simply make cleanups for the allocated names.
2557
2558 2012-07-18  Keith Seitz  <keiths@redhat.com>
2559
2560         * linespec.c (struct linespec): Constify expression,
2561         source_filename, function_name, and label_name.
2562         (symbol_not_found_error): Make all parameters const.
2563         (linespec_parser_delete): No need to check for NULL
2564         when using xfree. Cast const char * to char * for xfree.
2565
2566 2012-07-18  Keith Seitz  <keiths@redhat.com>
2567
2568         * breakpoint.c (invalid_thread_id_error): New function.
2569         (find_condition_and_thread): Use invalid_thread_id_error.
2570         (watch_command_1): Likewise.
2571
2572 2012-07-18  Tom Tromey  <tromey@redhat.com>
2573
2574         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2575         * contrib/cc-with-tweaks.sh: New file.
2576
2577 2012-07-18  Tom Tromey  <tromey@redhat.com>
2578
2579         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2580         (locate_dwz_sections): Recognize .gdb_index.
2581         (create_cus_from_index_list): New function.
2582         (create_cus_from_index): Use it.  Handle .dwz data.
2583         (read_index_from_section): New function, extracted from
2584         dwarf2_read_index.
2585         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2586         if needed.
2587
2588 2012-07-18  Tom Tromey  <tromey@redhat.com>
2589
2590         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2591         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2592         <is_dwz>: New field.
2593         (struct dwz_file): New.
2594         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2595         (locate_dwz_sections, dwarf2_get_dwz_file)
2596         (get_abbrev_section_for_cu): New functions.
2597         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2598         (read_and_check_type_unit_head): Add abbrev_section argument.
2599         (create_debug_types_hash_table): Update.
2600         (init_cutu_and_read_dies): Use proper abbrev section.
2601         (init_cutu_and_read_dies_no_follow): Likewise.
2602         (set_partial_user): Do nothing if PST==NULL.
2603         (read_comp_units_from_section): New function.
2604         (create_all_comp_units): Use it.
2605         (scan_partial_symbols, partial_die_parent_scope): Update.
2606         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2607         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2608         (find_partial_die): Add offset_in_dwz argument.  Update.
2609         (guess_partial_die_structure_name, fixup_partial_die): Update.
2610         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2611         DW_FORM_GNU_strp_alt.
2612         (read_indirect_string_from_dwz): New function.
2613         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2614         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2615         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2616         (follow_die_offset): Add offset_in_dwz argument.
2617         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2618         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2619         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2620         Handle new macro forms.
2621         (dwarf_decode_macros): Update.
2622         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2623         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2624         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2625         (create_debug_types_hash_table): Use correct abbrev section.
2626         (get_debug_line_section): New function.
2627         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2628         (process_full_comp_unit): Pass 'required' argument to
2629         end_symtab_get_static_block.
2630         * buildsym.h (end_symtab_get_static_block): Update.
2631         * buildsym.c (end_symtab_get_static_block): Add 'required'
2632         argument.
2633         (end_symtab, end_expandable_symtab): Update.
2634
2635 2012-07-18  Tom Tromey  <tromey@redhat.com>
2636
2637         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2638         (pagesize): Remove.
2639         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2640         (zlib_decompress_section): Remove.
2641         (dwarf2_read_section): Use gdb_bfd_map_section.
2642         (munmap_section_buffer): Remove.
2643         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2644         munmap_section_buffer.
2645         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2646         (struct gdb_bfd_section_data): New.
2647         (free_one_bfd_section): New function.
2648         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2649         (get_section_descriptor, zlib_decompress_section)
2650         (gdb_bfd_map_section): New functions.
2651         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2652
2653 2012-07-18  Tom Tromey  <tromey@redhat.com>
2654
2655         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2656
2657 2012-07-18  Tom Tromey  <tromey@redhat.com>
2658
2659         * gdb_bfd.c (struct gdb_bfd_data): New.
2660         (gdb_bfd_cache): New global.
2661         (struct gdb_bfd_cache_search): New.
2662         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2663         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2664         * gdb_bfd.h (gdb_bfd_open): Declare.
2665
2666 2012-07-18  Tom Tromey  <tromey@redhat.com>
2667
2668         * utils.c (make_cleanup_bfd_unref): Rename from
2669         make_cleanup_bfd_close.
2670         * defs.h (make_cleanup_bfd_unref): Rename from
2671         make_cleanup_bfd_close.
2672         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2673         (bfd_openw_with_cleanup): Update.
2674         * corelow.c (core_open): Update.
2675         * dsrec.c (load_srec): Update.
2676         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2677         * remote-m32r-sdi.c (m32r_load): Update.
2678         * remote-mips.c (mips_load_srec): Update.
2679         (pmon_load_fast): Update.
2680         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2681         Update.
2682         (darwin_bfd_open): Update.
2683         * solib.c (solib_bfd_fopen): Update.
2684         * symfile-mem.c (symbol_file_add_from_memory): Update.
2685         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2686         (symfile_bfd_open): Update.
2687         (generic_load): Update.
2688
2689 2012-07-18  Tom Tromey  <tromey@redhat.com>
2690
2691         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2692         (pmon_load_fast): Likewise.
2693         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2694         (m32r_upload_command): Likewise.
2695         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2696         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2697         Use make_cleanup_bfd_close.
2698
2699 2012-07-18  Tom Tromey  <tromey@redhat.com>
2700
2701         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2702         gdb_bfd_stash_filename.
2703         (load_command): Open the new BFD before freeing the old.
2704         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2705         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2706         Call gdb_bfd_stash_filename.
2707         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2708         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2709         gdb_bfd_stash_filename.
2710         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2711         Free found_pathname.
2712         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2713         gdb_bfd_stash_filename.
2714         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2715         * machoread.c (macho_add_oso_symfile): Call
2716         gdb_bfd_stash_filename.
2717         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2718         gdb_bfd_stash_filename.
2719         (macho_check_dsym): Don't copy filename.  Call
2720         gdb_bfd_stash_filename.
2721         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2722         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2723         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2724         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2725         * exec.c (exec_close): Don't free the BFD's filename.
2726         (exec_file_attach): Don't copy the filename.  Call
2727         gdb_bfd_stash_filename.
2728         * corelow.c (core_close): Don't free the BFD's filename.
2729         (core_open): Call gdb_bfd_stash_filename.
2730         * corefile.c (reopen_exec_file): Remove #if 0 code.
2731         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2732         pathname.
2733         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2734
2735 2012-07-18  Tom Tromey  <tromey@redhat.com>
2736
2737         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2738         gdb_bfd_unref.
2739         (free_dwo_file): Use gdb_bfd_unref.
2740         * cli/cli-dump.c: Include gdb_bfd.h.
2741         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2742         (bfd_openr_with_cleanup): Likewise.
2743         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2744         gdb_bfd_unref.
2745         * utils.c: Include gdb_bfd.h.
2746         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2747         * symfile.c: Include gdb_bfd.h.
2748         (separate_debug_file_exists): Use gdb_bfd_unref.
2749         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2750         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2751         (generic_load): Use gdb_bfd_ref.
2752         (reread_symbols): Use gdb_bfd_unref.
2753         * symfile-mem.c: Include gdb_bfd.h.
2754         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2755         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2756         * solib.c: Include gdb_bfd.h.
2757         (solib_bfd_fopen): Use gdb_bfd_ref.
2758         (solib_bfd_open): Use gdb_bfd_unref.
2759         (free_so_symbols): Use gdb_bfd_unref.
2760         (reload_shared_libraries_1): Use gdb_bfd_unref.
2761         * solib-spu.c: Include gdb_bfd.h.
2762         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2763         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2764         gdb_bfd_unref.
2765         * solib-frv.c: Include gdb_bfd.h.
2766         (enable_break2): Use gdb_bfd_unref.
2767         * solib-dsbt.c: Include gdb_bfd.h.
2768         (enable_break2): Use gdb_bfd_unref.
2769         * solib-darwin.c: Include gdb_bfd.h.
2770         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2771         gdb_bfd_unref.
2772         (darwin_bfd_open): Use gdb_bfd_unref.
2773         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2774         * remote-mips.c: Include gdb_bfd.h.
2775         (mips_load_srec): Use gdb_bfd_ref.
2776         (pmon_load_fast): Use gdb_bfd_ref.
2777         * remote-m32r-sdi.c: Include gdb_bfd.h.
2778         (m32r_load): Use gdb_bfd_ref.
2779         * record.c: Include gdb_bfd.h.
2780         (record_save_cleanups): Use gdb_bfd_unref.
2781         (cmd_record_save): Use gdb_bfd_unref.
2782         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2783         gdb_bfd_unref.
2784         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2785         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2786         * objfiles.c: Include gdb_bfd.h.
2787         (free_objfile): Use gdb_bfd_unref.
2788         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2789         gdb_bfd.c.
2790         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2791         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2792         (macho_check_dsym): Likewise.
2793         * m32r-rom.c: Include gdb_bfd.h.
2794         (m32r_load): Use gdb_bfd_ref.
2795         (m32r_upload_command): Use gdb_bfd_ref.
2796         * jit.c: Include gdb_bfd.h.
2797         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2798         * gdb_bfd.h: New file.
2799         * gdb_bfd.c: New file.
2800         * gcore.c: Include gdb_bfd.h.
2801         (create_gcore_bfd): Use gdb_bfd_ref.
2802         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2803         (gcore_command): Use gdb_bfd_unref.
2804         * exec.c: Include gdb_bfd.h.
2805         (exec_close): Use gdb_bfd_unref.
2806         (exec_close_1): Use gdb_bfd_unref.
2807         (exec_file_attach): Use gdb_bfd_ref.
2808         * elfread.c: Include gdb_bfd.h.
2809         (build_id_verify): Use gdb_bfd_unref.
2810         * dsrec.c: Include gdb_bfd.h.
2811         (load_srec): Use gdb_bfd_ref.
2812         * corelow.c: Include gdb_bfd.h.
2813         (core_close): Use gdb_bfd_unref.
2814         (core_open): Use gdb_bfd_ref.
2815         * bfd-target.c: Include gdb_bfd.h.
2816         (target_bfd_xclose): Use gdb_bfd_unref.
2817         (target_bfd_reopen): Use gdb_bfd_ref.
2818         * Makefile.in (SFILES): Add gdb_bfd.c.
2819         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2820         (COMMON_OBS): Add gdb_bfd.o.
2821
2822 2012-07-18  Keith Seitz  <keiths@redhat.com>
2823
2824         * breakpoint.c (find_condition_and_thread): Initialize
2825         TASK and REST.
2826         (create_breakpiont): find_condition_and_thread will now
2827         initialize COND_STRING, THREAD, and REST (and TASK).
2828         (addr_string_to_sals): Likewise.
2829
2830 2012-07-18  Pedro Alves  <palves@redhat.com>
2831
2832         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2833         Pull the single step breakpoints out of the target.
2834
2835 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2836
2837         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2838         * stap-probe.c (compile_probe_arg): Likewise.
2839
2840 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2841
2842         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2843         (elf_compile_to_ax): Likewise.
2844         * infrun.c (insert_exception_resume_from_probe): Likewise.
2845         (check_exception_resume): Remove `objfile' variable.
2846         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2847         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2848         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2849         (compare_entries): Rename to...
2850         (compare_probes): ...this.  Adjust function to work with
2851         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2852         respectively.
2853         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2854         `VEC (probe_p) *'.
2855         (print_ui_out_info): Adjust argument to be `struct probe *'.
2856         (info_probes_for_ops): Adjust internal computations to use
2857         `VEC (probe_p) *'.
2858         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2859         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2860         gen_info_probes_table_values>: Remove `objfile' argument.
2861         (struct probe) <objfile>: New field.
2862         (find_probe_by_pc): Remove `objfile' argument.
2863         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2864         (stap_get_probe_argument_count): Likewise.
2865         (stap_get_arg): Likewise.
2866         (stap_evaluate_probe_argument): Likewise.
2867         (stap_compile_to_ax): Likewise.
2868         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2869         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2870         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2871         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2872         sym_compile_to_ax>: Likewise.
2873
2874 2012-07-18  Terry Guo  <terry.guo@arm.com>
2875
2876         PR 14329
2877         * defs.h (GDB_MI_MSG_WIDTH): New.
2878         * ser_base (ser_base_read_error_fd): New function.
2879         (do_ser_base_readchar): Poll error file descriptor as well as
2880         standard output.
2881         (generic_readchar): Refactor error handling.
2882
2883 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2884
2885         * NEWS: Create a new section for the next release branch.
2886         Rename the section of the current branch, now that it has
2887         been cut.
2888
2889 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2890
2891         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2892         * version.in: Bump version to 7.5.50.20120718-cvs.
2893
2894 2012-07-17  Keith Seitz  <keiths@redhat.com>
2895
2896         * linespec.c (linespec_parse_line_offset): Make parameter
2897         const.
2898
2899 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2900
2901         PR 11914
2902         * f-valprint.c (info_common_command): New variable frame_id.
2903         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2904         * printcmd.c (print_variable_and_value): Extend function comment.
2905         Add comment for invalidated FRAME.
2906         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2907         FI form FRAME_ID after each print_frame_local_vars.
2908         (struct print_variable_and_value_data): Change frame to frame_id.
2909         (do_print_variable_and_value): New variable frame, initialize it from
2910         p->frame_id.  Add comment for invalidated FRAME.
2911         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2912         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2913         for invalidated FRAME.
2914
2915 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2916             Pedro Alves  <palves@redhat.com>
2917
2918         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2919         loop.
2920
2921 2012-07-16  Tom Tromey  <tromey@redhat.com>
2922
2923         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2924
2925 2012-07-15  Doug Evans  <dje@google.com>
2926
2927         * dwarf2read.c (stmt_list_hash): New struct.
2928         (type_unit_group): Embed "per_cu" member, remove pointer.
2929         New union member "t", move member "tus" into it, all uses updated.
2930         New member "hash", replaces member "line_offset, all uses updated.
2931         (quick_file_names): Replace member "offset" with "hash", all uses
2932         updated.
2933         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2934         (hash_file_name_entry, eq_file_name_entry): Call them.
2935         (hash_type_unit_group, eq_type_unit_group): Ditto.
2936         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2937         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2938         (dw2_get_file_names): Update.
2939         (create_type_unit_group): Replace "per_cu" arg with "cu".
2940         All callers updated.  Fix "quick" (.gdb_index) handling.
2941         (get_type_unit_group): Replace "per_cu" arg with "cu".
2942         All callers updated.
2943         (build_type_unit_groups): Don't reset tu_stats.
2944
2945         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2946         "tab_cur_size".  Change member "tab" to be a htab_t.
2947         (create_filename_seen_cache): Update.
2948         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2949         (filename_seen): Update.
2950
2951 2012-07-13  Doug Evans  <dje@google.com>
2952
2953         * symtab.c (filename_seen): Update comment.
2954
2955 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2956             Doug Evans  <dje@google.com>
2957
2958         * buildsym.c (end_symtab_1): Split it to ...
2959         (end_symtab_get_static_block): ... this ...
2960         (end_symtab_from_static_block): ... and this function.
2961         (end_symtab, end_expandable_symtab): Call them.
2962         * buildsym.h (end_symtab_get_static_block)
2963         (end_symtab_from_static_block): New declarations.
2964         * dwarf2read.c (process_full_comp_unit): New variable static_block.
2965         Set its valid CU ranges.
2966
2967 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2968
2969         * dwarf2loc.c (disassemble_dwarf_expression): Handle
2970         DW_OP_GNU_parameter_ref.
2971
2972 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2973
2974         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2975         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2976
2977 2012-07-13  Doug Evans  <dje@google.com>
2978
2979         * symtab.c (output_source_filename): Delete unnecessary forward decl.
2980         (filename_seen_cache): New struct.
2981         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2982         (create_filename_seen_cache): New function.
2983         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2984         (filename_seen): Delete arg "first".  New arg "cache".  All callers
2985         updated.
2986         (output_source_filename_data): New struct.
2987         (output_source_filename): Delete arg "first".  New arg "data".
2988         All callers updated.
2989         (sources_info): Delete local "first".  New locals "data", "cleanups".
2990         Rewrite to use filename_seen_cache.
2991         (add_partial_filename_data): Delete member "first".  New member
2992         "filename_seen_cache".  All uses updated.
2993         (make_source_files_completion_list): Rewrite to use
2994         filename_seen_cache.
2995
2996 2012-07-12  Doug Evans  <dje@google.com>
2997
2998         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2999
3000 2012-07-10  Doug Evans  <dje@google.com>
3001
3002         PR gdb/13498
3003         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3004         all_type_unit_groups, type_unit_groups, tu_stats.
3005         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3006         All uses updated.  Add type_unit_group to union "s".
3007         (type_unit_group): New struct.
3008         (IS_TYPE_UNIT_GROUP): New macro.
3009         (abbrev_table): Delete unused member "section".
3010         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3011         (dw2_get_cu): Assert not used with type_unit_group.
3012         (dw2_get_primary_cu): New function.
3013         (dw2_build_type_unit_groups_reader): New function.
3014         (dw2_build_type_unit_groups): New function.
3015         (dw2_get_file_names): Assert not called on type units.
3016         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3017         Redo loop to iterate over type unit groups instead of type units.
3018         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3019         (read_abbrev_offset): New function.
3020         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3021         updated.
3022         (create_partial_symtab): New function.
3023         (process_psymtab_comp_unit_reader): Assert not used with type units.
3024         Call create_partial_symtab.
3025         (process_psymtab_type_unit): Delete.
3026         (hash_type_unit_group, eq_type_unit_group): New functions.
3027         (allocate_type_unit_groups_table): New function.
3028         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3029         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3030         (create_type_unit_group, get_type_unit_group): New functions.
3031         (tu_abbrev_offset): New struct.
3032         (sort_tu_by_abbrev_offset): New function.
3033         (add_type_unit_group_to_table): New function.
3034         (build_type_unit_groups): New function.
3035         (build_type_psymtabs_reader): New function.
3036         (build_type_psymtab_dependencies): New function.
3037         (build_type_psymtabs): Rewrite.
3038         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3039         is seen in a type unit.
3040         (process_queue): Move symtab expansion debugging printfs here.
3041         Call process_full_type_unit for type units.
3042         (compute_symtab_includes): Assert not called for type units.
3043         (process_cu_includes): Don't call compute_symtab_includes for
3044         type units.
3045         (process_full_type_unit): New function.
3046         (process_imported_unit_die): Flag an error if called for type units.
3047         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3048         updated.  Assert not called for type units.
3049         (read_file_scope): Call dwarf2_start_symtab.
3050         (setup_type_unit_groups): New function.
3051         (read_type_unit_scope): Rewrite.
3052         (abbrev_table_read_table): Initialize abbrev_table->offset.
3053         (abbrev_table_free_cleanup): New function.
3054         (dwarf2_start_symtab): New function.
3055         (load_full_type_unit): Assert not called for type unit groups.
3056         * buildsym.c (finish_block_internal): New arg "expandable".
3057         All callers updated.
3058         (start_symtab): Move most contents to ...
3059         (restart_symtab): ... here.  New function.
3060         (reset_symtab_globals): New function.
3061         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3062         Call reset_symtab_globals.
3063         (end_symtab, end_expandable_symtab): New functions.
3064         (set_missing_symtab, augment_type_symtab): New functions.
3065         * buildsym.h (end_expandable_symtab): Declare.
3066         (augment_type_symtab, restart_symtab): Declare.
3067         * psympriv.h (struct partial_symtab): New member "anonymous".
3068         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3069         anonymous psymtabs.
3070         (read_psymtabs_with_filename): Ditto.
3071         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3072         (expand_symtabs_matching_via_partial): Ditto.
3073         (dump_psymtab): Update.
3074         * dictionary.c (dict_add_pending): New function.
3075         * dictionary.h (dict_add_pending): Declare.
3076
3077 2012-07-09  Doug Evans  <dje@google.com>
3078
3079         * buildsym.c (start_subfile): Remove unnecessary check for
3080         name == NULL.
3081
3082         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3083
3084         * dwarf2read.c (load_full_type_unit): Simplify.
3085
3086         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3087         to struct signatured_type **.  All uses updated.
3088
3089         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3090         All callers updated.
3091
3092 2012-07-09  Tom Tromey  <tromey@redhat.com>
3093
3094         * c-exp.y (check_parameter_typelist): New function.
3095         (parameter_typelist): Call it.
3096         * eval.c (make_params): Handle '(void)' case.
3097         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3098         '(void)' case.
3099
3100 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3101
3102         * common/linux-ptrace.c: Include gdb_assert.h.
3103         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3104         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3105         stdint.h.
3106         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3107         functions.
3108         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3109         * linux-nat.c (linux_child_post_attach)
3110         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3111
3112 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3113
3114         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3115         nptl <2.7 bug workaround for core files.
3116
3117 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3118
3119         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3120         clearing.
3121         (save_siginfo): Remove.
3122         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3123         call.
3124         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3125         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3126         * linux-nat.h (struct lwp_info): Remove field siginfo.
3127
3128 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3129
3130         Code cleanup for the next patch.
3131         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3132         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3133         call for it.
3134         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3135         (ia64_linux_stopped_data_address):
3136         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3137         the return value.
3138         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3139         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3140         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3141         call for it.
3142
3143 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3144
3145         PR 14321
3146         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3147         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3148
3149 2012-07-06  Tom Tromey  <tromey@redhat.com>
3150
3151         * c-exp.y (DOTDOTDOT): New token.
3152         (func_mod, exp): Use parameter_typelist.
3153         (parameter_typelist): New production.
3154         (tokentab3): Add "..." token.
3155         * eval.c (make_params): Handle varargs.
3156         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3157         varargs.
3158
3159 2012-07-06  Tom Tromey  <tromey@redhat.com>
3160
3161         PR exp/9608:
3162         * c-exp.y (%union) <tvec>: Change type.
3163         (func_mod): Now uses <tvec> type.
3164         (exp): Update for tvec change.
3165         (direct_abs_decl): Push the typelist.
3166         (func_mod): Return a typelist.
3167         (nonempty_typelist): Update for tvec change.
3168         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3169         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3170         * parse.c (pop_type_list): New function.
3171         (push_typelist): New function.
3172         (follow_types): Handle tp_function_with_arguments.
3173         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3174         (enum type_pieces) <tp_function_with_arguments>: New constant.
3175         (union type_stack_elt) <typelist_val>: New field.
3176         (push_typelist): Declare.
3177
3178 2012-07-06  Tom Tromey  <tromey@redhat.com>
3179
3180         * c-exp.y (%union) <type_stack>: New field.
3181         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3182         (ptr_operator_ts): New production.
3183         (ptype): Update.
3184         * parse.c (type_stack_reserve): New function.
3185         (check_type_stack_depth): Use it.
3186         (pop_type_stack, append_type_stack, push_type_stack)
3187         (get_type_stack, type_stack_cleanup): New functions.
3188         (follow_types): Handle tp_type_stack.
3189         (_initialize_parse): Simplify initialization.
3190         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3191         constant.
3192         (union type_stack_elt) <stack_val>: New field.
3193         (get_type_stack, append_type_stack, push_type_stack)
3194         (type_stack_cleanup): Declare.
3195
3196 2012-07-06  Tom Tromey  <tromey@redhat.com>
3197
3198         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3199         Remove.
3200         (struct type_stack): New.
3201         * parse.c (type_stack, type_stack_size, type_stack_depth):
3202         Remove.
3203         (type_stack): New global.
3204         (parse_exp_in_context, check_type_stack_depth)
3205         (insert_into_type_stack, insert_type, push_type, push_type_int)
3206         (insert_type_address_space, pop_type, pop_type_int)
3207         (_initialize_parse): Update.
3208
3209 2012-07-06  Tom Tromey  <tromey@redhat.com>
3210
3211         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3212         Remove %type.
3213
3214 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3215
3216         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3217
3218 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3219             Jan Kratochvil  <jan.kratochvil@redhat.com>
3220
3221         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3222         alloca with xmalloc/xfree.
3223
3224 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3225
3226         * MAINTAINERS (Write After Approval): Add myself to the list.
3227
3228 2012-07-05  Doug Evans  <dje@google.com>
3229
3230         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3231
3232 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3233
3234         * ax-gdb.c (cli/cli-utils.h): New include.
3235         (linespec.h): Ditto.
3236         (agent_eval_command_one): New function.
3237         (agent_command_1): Ditto.
3238         (agent_command): Call function agent_command_1.
3239         (agent_eval_command): Ditto.
3240         (_initialize_ax_gdb): Change help for "maint agent"
3241         and "maint agent-eval".
3242
3243 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3244
3245         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3246         * cli/cli-utils.c (check_for_argument): New function.
3247         * cli/cli-utils.h (check_for_argument): Ditto.
3248
3249 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3250
3251         * NEWS: Mention x32 ABI support.
3252
3253 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3254
3255         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3256         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3257
3258         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3259         and pc_regnum_from_eax to -1.  Update SP regnum from
3260         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3261         needed.
3262
3263         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3264         pc_regnum_from_eax.
3265
3266 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3267
3268         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3269         * dwarf2expr.h: Include gdbtypes.h.
3270         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3271         these forward declarations.
3272         (cu_offset, sect_offset): Move these ...
3273         * gdbtypes.h: Remove include dwarf2expr.h.
3274         (cu_offset, sect_offset): ... here.
3275
3276 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3277
3278         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3279         (amd64_linux_sigtramp_code): This.
3280         (amd64_x32_linux_sigtramp_code): New.
3281         (LINUX_SIGTRAMP_LEN): Updated.
3282         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3283
3284 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3285
3286         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3287
3288 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3289
3290         * config.in: Regenerate.
3291         * configure: Regenerate.
3292         * configure.ac: Remove check for gnu/libc-version.h.
3293         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3294         gnu/libc-version.h.
3295         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3296         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3297         inferior_has_bug.  Extend the comment.
3298
3299 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3300
3301         * linux-thread-db.c (inferior_has_bug): New function.
3302         (thread_db_find_new_threads_silently): Return boolean as checked by
3303         inferior_has_bug, describe it in the comments.
3304         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3305         earlier.  Abort the initialization if it returned non-zero.
3306         (thread_db_new_objfile): Exclude debug files.
3307         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3308         if UNTIL_NO_NEW,
3309
3310 2012-07-02  Doug Evans  <dje@google.com>
3311
3312         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3313         related to queue management.
3314
3315         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3316         instead of "debug dwarf2-die" in debugging printfs.
3317         (create_debug_info_hash_table_reader): Ditto.
3318         (create_debug_info_hash_table): Ditto.
3319         (init_dwo_file): Ditto.
3320         (init_cutu_and_read_dies): Add debugging printf.
3321         (init_cutu_and_read_dies_no_follow): Ditto.
3322         (process_psymtab_comp_unit_reader): Ditto.
3323
3324 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3325
3326         Add target-side support for dynamic printf.
3327         * NEWS: Mention the additional style.
3328         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3329         (struct bp_location): New field cmd_bytecode.
3330         * breakpoint.c: Include format.h.
3331         (disconnected_dprintf): New global.
3332         (parse_cmd_to_aexpr): New function.
3333         (build_target_command_list): New function.
3334         (insert_bp_location): Call it.
3335         (remove_breakpoints_pid): Skip dprintf breakpoints.
3336         (print_one_breakpoint_location): Ditto.
3337         (dprintf_style_agent): New global.
3338         (dprintf_style_enums): Add dprintf_style_agent.
3339         (update_dprintf_command_list): Add agent case.
3340         (agent_printf_command): New function.
3341         (_initialize_breakpoint): Add new commands.
3342         * common/ax.def (printf): New bytecode.
3343         * ax.h (ax_string): Declare.
3344         * ax-gdb.h (gen_printf): Declare.
3345         * ax-gdb.c: Include cli-utils.h, format.h.
3346         (gen_printf): New function.
3347         (maint_agent_print_command): New function.
3348         (_initialize_ax_gdb): Add maint agent-printf command.
3349         * ax-general.c (ax_string): New function.
3350         (ax_print): Add printf disassembly.
3351         * Makefile.in (SFILES): Add format.c
3352         (COMMON_OBS): Add format.o.
3353         * common/format.h: New file.
3354         * common/format.c: New file.
3355         * printcmd.c: Include format.h.
3356         (ui_printf): Call parse_format_string.
3357         * remote.c (remote_state): New field breakpoint_commands.
3358         (PACKET_BreakpointCommands): New enum.
3359         (remote_breakpoint_commands_feature): New function.
3360         (remote_protocol_features): Add new BreakpointCommands entry.
3361         (remote_can_run_breakpoint_commands): New function.
3362         (remote_add_target_side_commands): New function.
3363         (remote_insert_breakpoint): Call it.
3364         (remote_insert_hw_breakpoint): Ditto.
3365         (_initialize_remote): Add new packet configuration for
3366         target-side breakpoint commands.
3367         * target.h (struct target_ops): New field
3368         to_can_run_breakpoint_commands.
3369         (target_can_run_breakpoint_commands): New macro.
3370         * target.c (update_current_target): Handle
3371         to_can_run_breakpoint_commands.
3372
3373 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3374
3375         Execute -ix and -iex only after system and user gdbinit files.
3376         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3377         processing down after gdbinit files.
3378
3379 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3380
3381         Add fnmatch-gnu module.
3382         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3383         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3384         * gnulib/aclocal.m4: Regenerate.
3385         * gnulib/config.in: Regenerate.
3386         * gnulib/configure: Regenerate.
3387         * gnulib/import/dummy.c: Remove.
3388         * gnulib/import/Makefile.am: Regenerate.
3389         * gnulib/import/Makefile.in: Likewise.
3390         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3391         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3392         * gnulib/import/alloca.c: New file.
3393         * gnulib/import/alloca.in.h: Likewise.
3394         * gnulib/import/config.charset: Likewise.
3395         * gnulib/import/fnmatch.c: Likewise.
3396         * gnulib/import/fnmatch.in.h: Likewise.
3397         * gnulib/import/fnmatch_loop.c: Likewise.
3398         * gnulib/import/localcharset.c: Likewise.
3399         * gnulib/import/localcharset.h: Likewise.
3400         * gnulib/import/m4/alloca.m4: Likewise.
3401         * gnulib/import/m4/codeset.m4: Likewise.
3402         * gnulib/import/m4/configmake.m4: Likewise.
3403         * gnulib/import/m4/fcntl-o.m4: Likewise.
3404         * gnulib/import/m4/fnmatch.m4: Likewise.
3405         * gnulib/import/m4/glibc21.m4: Likewise.
3406         * gnulib/import/m4/localcharset.m4: Likewise.
3407         * gnulib/import/m4/locale-fr.m4: Likewise.
3408         * gnulib/import/m4/locale-ja.m4: Likewise.
3409         * gnulib/import/m4/locale-zh.m4: Likewise.
3410         * gnulib/import/m4/mbrtowc.m4: Likewise.
3411         * gnulib/import/m4/mbsinit.m4: Likewise.
3412         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3413         * gnulib/import/m4/mbstate_t.m4: Likewise.
3414         * gnulib/import/m4/stdbool.m4: Likewise.
3415         * gnulib/import/m4/wchar_h.m4: Likewise.
3416         * gnulib/import/m4/wctype_h.m4: Likewise.
3417         * gnulib/import/m4/wint_t.m4: Likewise.
3418         * gnulib/import/mbrtowc.c: Likewise.
3419         * gnulib/import/mbsinit.c: Likewise.
3420         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3421         * gnulib/import/mbsrtowcs-state.c: Likewise.
3422         * gnulib/import/mbsrtowcs.c: Likewise.
3423         * gnulib/import/ref-add.sin: Likewise.
3424         * gnulib/import/ref-del.sin: Likewise.
3425         * gnulib/import/stdbool.in.h: Likewise.
3426         * gnulib/import/streq.h: Likewise.
3427         * gnulib/import/strnlen1.c: Likewise.
3428         * gnulib/import/strnlen1.h: Likewise.
3429         * gnulib/import/verify.h: Likewise.
3430         * gnulib/import/wchar.in.h: Likewise.
3431         * gnulib/import/wctype.in.h: Likewise.
3432
3433 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3434
3435         Support shell wildcards for 'set auto-load safe-path'.
3436         * auto-load.c: Include fnmatch.h.
3437         (filename_is_in_dir): Rename to ...
3438         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3439         it.  Update function comment.  Rename dir_len to pattern_len.  New
3440         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3441         messages.  Use gdb_filename_fnmatch.
3442         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3443         pattern.
3444         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3445         * defs.h (gdb_filename_fnmatch): New declaration.
3446         * utils.c: Include fnmatch.h.
3447         (gdb_filename_fnmatch): New function.
3448
3449 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3450
3451         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3452         `-probe' and `-probe-stap' options.
3453
3454 2012-07-01  Yao Qi  <yao@codesourcery.com>
3455
3456         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3457         always_inserted_off, and always_inserted_enums.
3458         Change always_inserted_mode's type to 'enum auto_boolean'.
3459         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3460         callers.
3461         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3462         of add_setshow_enum_cmd.
3463         * infrun.c: Remove can_use_displaced_stepping_auto,
3464         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3465         can_use_displaced_stepping_enum.
3466         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3467         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3468         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3469         add_setshow_enum_cmd.
3470
3471 2012-06-30  Doug Evans  <dje@google.com>
3472
3473         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3474         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3475         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3476
3477 2012-06-29  Doug Evans  <dje@google.com>
3478
3479         * linespec.c: #include "stack.h".
3480         (decode_line_with_current_source): Moved here from symtab.c and
3481         renamed from decode_line_spec.  All callers updated.
3482         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3483         renamed from decode_line_spec_1.  All callers updated.
3484         * linespec.h (decode_line_with_current_source): Move declaration here
3485         from symtab.h and renamed from decode_line_spec.
3486         (decode_line_with_last_displayed): Move declaration here from symtab.h
3487         and renamed from decode_line_spec_1.
3488         * macrocmd.c: #include "linespec.h".
3489         * symtab.c: Remove #include "linespec.h".
3490
3491 2012-06-28  Doug Evans  <dje@google.com>
3492
3493         * dwarf2read.c (get_cu_length): New function.
3494         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3495         (create_debug_types_hash_table): Ditto.
3496         (init_cutu_and_read_dies): Ditto.
3497         (init_cutu_and_read_dies_no_follow): Ditto.
3498
3499         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3500
3501         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3502         (struct abbrev_table): Define.
3503         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3504         abbrev_table.
3505         (init_cutu_and_read_dies): Update.
3506         (abbrev_table_alloc_abbrev): New function.  Replaces
3507         dwarf_alloc_abbrev.  All callers updated.
3508         (abbrev_table_add_abbrev): New function.
3509         (abbrev_table_lookup_abbrev): New function.  Replaces
3510         dwarf2_lookup_abbrev.  All callers updated.
3511         (abbrev_table_read_table): New function.  Contents moved here from
3512         dwarf2_read_abbrevs.
3513         (dwarf2_read_abbrevs): Call it.
3514         (abbrev_table_free): New function.
3515         (dwarf2_free_abbrev_table): Call it.
3516
3517 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3518
3519         * osdata.c (info_osdata_command): Filter out "Title" columns
3520         from non-MI uses.
3521         * common/linux-osdata.c (struct osdata_type): Add title field.
3522         (osdata_table): Add titles to each entry.
3523         (linux_command_xfer_osdata): Add a column for title data.
3524
3525 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3526
3527         Make logging work for MI.
3528         * NEWS: Mention it.
3529         * interps.h (interp_set_logging_ftype): New typedef.
3530         (struct interp_procs): New field set_logging_proc.
3531         (current_interp_set_logging): Declare.
3532         * interps.c (current_interp_set_logging): New function.
3533         * cli/cli-logging.c: Include interps.h.
3534         (set_logging_redirect): Call current_interp_set_logging.
3535         (pop_output_files): Ditto.
3536         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3537         * mi/mi-console.h (mi_console_set_raw): Declare.
3538         * mi/mi-console.c (mi_console_set_raw): New function.
3539         * mi/mi-interp.c (saved_raw_stdout): New global.
3540         (mi_set_logging): New function.
3541         (_initialize_mi_interp): Add it to interp procs.
3542
3543 2012-06-28  Doug Evans  <dje@google.com>
3544
3545         * symtab.c (lookup_symbol_aux_objfile): Use
3546         ALL_OBJFILE_PRIMARY_SYMTABS.
3547
3548         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3549
3550 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3551
3552         * common/buffer.c: Include inttypes.h and stdint.h.
3553         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3554
3555 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3556             Pedro Alves  <palves@redhat.com>
3557
3558         * gdbthread.h (ALL_THREADS): New macro.
3559         (thread_list): Declare.
3560         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3561         going, but instead fall through to the stepping handling.
3562         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3563         the passed in signal.  Adjust debug output.
3564         (resume_callback): Rename to ...
3565         (linux_nat_resume_callback): ... this.  Pass the thread's last
3566         stop signal, if in "pass" state.
3567         (linux_nat_resume): Adjust to rename.
3568         (stop_wait_callback): New assertion.  Don't respawn signals;
3569         instead let the LWP remain with SIGNALLED set.
3570         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3571         * remote.c (append_pending_thread_resumptions): New.
3572         (remote_vcont_resume): Call it.
3573         * target.h (target_resume): Extend comment.
3574
3575 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3576
3577         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3578
3579 2012-06-27  Doug Evans  <dje@google.com>
3580
3581         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3582         Delete have_addr_base, unused.  All uses updated.
3583         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3584         (dwarf2_get_pc_bounds): Add ranges_base.
3585         (dwarf2_record_block_ranges): Ditto.
3586
3587 2012-06-27  Tom Tromey  <tromey@redhat.com>
3588
3589         PR macros/7961:
3590         * varobj.c (varobj_create): Update.
3591         (varobj_set_value): Update.
3592         * tracepoint.c (validate_actionline): Update.
3593         (encode_actions_1): Update.
3594         * parse.c (parse_exp_1): Add 'pc' argument.
3595         (parse_exp_in_context): Add 'pc' argument.  Change how
3596         expression_context_pc is set.
3597         (parse_expression): Update.
3598         (parse_field_expression): Update.
3599         * expression.h (parse_exp_1): Update.
3600         * eval.c (parse_to_comma_and_eval): Update.
3601         * breakpoint.c (set_breakpoint_condition): Update.
3602         (update_watchpoint): Update.
3603         (init_breakpoint_sal): Update
3604         (find_condition_and_thread): Update.
3605         (watch_command_1): Update.
3606         (update_breakpoint_locations): Update.
3607         * ada-lang.c (ada_read_renaming_var_value): Update.
3608         (create_excep_cond_exprs): Update.
3609
3610 2012-06-27  Doug Evans  <dje@google.com>
3611
3612         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3613         type units.
3614
3615 2012-06-26  Doug Evans  <dje@google.com>
3616
3617         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3618         prototype.
3619         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3620         updated.
3621         (read_and_check_comp_unit_head): Ditto.
3622         (read_and_check_type_unit_head): Ditto.
3623
3624 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3625
3626         New attribute 'last' for gdb.Symtab_and_line.
3627         * NEWS (Python Scripting): Add entry about the new attribute.
3628         * python/py-symtab.c (salpy_get_last): New function which
3629         implements the get method for the 'last' attribute of
3630         gdb.Symtab_and_line.
3631         (sal_object_getset): Add entry for the 'last' attribute.
3632
3633 2012-06-26  Doug Evans  <dje@google.com>
3634
3635         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3636         (dwo_sections): Add macinfo, macro.
3637         (dwarf2_locate_dwo_sections): Watch for macro sections.
3638         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3639         All callers updated.  Handle DWO files.
3640
3641         * NEWS: Mention new options "set debug dwarf2-read" and
3642         "set debug symtab-create".
3643         * dwarf2read.c (dwarf2_read_debug): New static global.
3644         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3645         (process_queue): Ditto.
3646         (process_full_comp_unit): Ditto.
3647         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3648         * elfread.c (elf_symfile_read): Add debugging printf.
3649         * minsyms.c (install_minimal_symbols): Ditto.
3650         * psymtab.c (allocate_psymtab): Ditto.
3651         * symfile.c (allocate_symtab): Ditto.
3652         * symtab.c (symtab_create_debug): New global.
3653         (_initialize_symtab): Add new option "set debug symtab-create".
3654         * symtab.h (symtab_create_debug): Declare.
3655
3656         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3657         (lookup_dwo_type_unit): Ditto.
3658
3659 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3660             H.J. Lu  <hongjiu.lu@intel.com>
3661
3662         * amd64-linux-nat.c: Include <sys/user.h>.
3663         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3664         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3665         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3666
3667         * configure.ac: Check if the fs_base and gs_base members of
3668         `struct user_regs_struct' exist.
3669         * config.in: Regenerated.
3670         * configure: Likewise.
3671
3672 2012-06-25  Michael Eager  <eager@eagercon.com>
3673
3674         PR python/14291
3675         * python/python.c (gdbpy_write): Check for interrupted output.
3676
3677 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3678
3679         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3680         register as a stack alignment in ARM mode.
3681
3682 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3683
3684         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3685         * gnulib/config.in: Regenerate.
3686         * gnulib/configure: Likewise.
3687         * gnulib/import/m4/extensions.m4: Update it.
3688         * gnulib/import/m4/gnulib-common.m4: Likewise.
3689         * gnulib/import/m4/memmem.m4: Likewise.
3690         * gnulib/import/m4/mmap-anon.m4: Likewise.
3691         * gnulib/import/m4/multiarch.m4: Likewise.
3692         * gnulib/import/stdint.in.h: Likewise.
3693
3694 2012-06-24  Yao Qi  <yao@codesourcery.com>
3695
3696         * corefile.c (write_memory_with_notification): New.
3697         * gdbcore.h: Declare write_memory_with_notification.
3698         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3699         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3700         * valops.c (value_assign): Likewise.
3701         * python/py-inferior.c (infpy_write_memory): Call
3702         'write_memory_with_notification'.
3703
3704 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3705
3706         * cc-with-index.sh: Use also -ex "set auto-load no".
3707
3708 2012-06-23  Doug Evans  <dje@google.com>
3709
3710         PR 14125
3711         * NEWS: Document additions to .gdb_index.
3712         * dwarf2read.c: #include "gdb/gdb-index.h".
3713         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3714         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3715         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3716         (dwarf2_read_index): Recognize version 7.
3717         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3718         block_kind, domain): All callers updated.
3719         (dw2_find_symbol_file): Handle new index CU values.
3720         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3721         (add_index_entry): New args is_static, kind.  All callers updated.
3722         (offset_type_compare, uniquify_cu_indices): New functions
3723         (symbol_kind): New function.
3724         (write_psymtabs_to_index): Remove duplicate CU values.
3725         (write_psymtabs_to_index): Write .gdb_index version 7.
3726
3727 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3728
3729         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3730         * configure: Regenerate.
3731
3732 2012-06-20  Yao Qi  <yao@codesourcery.com>
3733
3734         * python/py-inferior.c: Update comments of infpy_read_memory
3735         and infpy_write_memory.
3736
3737 2012-06-19  Tom Tromey  <tromey@redhat.com>
3738
3739         PR exp/9514:
3740         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3741         (push_type_address_space): Remove.
3742         * parse.c (insert_into_type_stack): New function.
3743         (insert_type): Likewise.
3744         (insert_type_address_space): Rename from push_type_address_space.
3745         Insert tp_space_identifier.
3746         * c-exp.y (ptr_operator): New production.
3747         (abs_decl): Use ptr_operator.
3748         (space_identifier): Call insert_type_address_space.
3749         (ptype): Don't use const_or_volatile_or_space_identifier.
3750         (const_or_volatile_noopt): Call insert_type.
3751         (conversion_type_id, conversion_declarator): New productions.
3752         (operator): Use conversion_type_id.
3753
3754 2012-06-18  Doug Evans  <dje@google.com>
3755
3756         * symtab.h (minimal_symbol): New member created_by_gdb.
3757         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3758         created by gdb.
3759         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3760         (search_symbols): Call it instead of lookup_symbol.
3761         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3762
3763         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3764         Adjust address for DW_OP_GNU_addr_index.
3765         * dwarf2expr.h (dwarf_expr_context): Update comment.
3766         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3767         all callers updated.  Handle TLS vars described with
3768         DW_OP_GNU_const_index.
3769         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3770         and DW_OP_GNU_const_index.
3771         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3772
3773         * block.c (find_block_in_blockvector): Make explicit the fact that we
3774         ignore GLOBAL_BLOCK.
3775
3776 2012-06-18  Tom Tromey  <tromey@redhat.com>
3777
3778         * c-exp.y (operator): Remove trailing space after "delete" and
3779         "delete[]".
3780
3781 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3782             Jan Kratochvil  <jan.kratochvil@redhat.com>
3783
3784         Switch i386 and derived targets to ON_STACK.
3785         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3786         (amd64_dicos_init_abi): Remove its installment.
3787         * dicos-tdep.c (dicos_init_abi): Remove the
3788         set_gdbarch_call_dummy_location call.  Update the comment here.
3789         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3790         (i386_dicos_init_abi): Remove its installment.
3791         * i386-tdep.c (i386_push_dummy_code): New function.
3792         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3793         i386_push_dummy_code.
3794
3795 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3796
3797         Remove stale dummy frames.
3798         * breakpoint.c: Include dummy-frame.h.
3799         (longjmp_breakpoint_ops): New variable.
3800         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3801         bp_longjmp_call_dummy.
3802         (bpstat_what, bptype_string, print_one_breakpoint_location)
3803         (init_bp_location): Support bp_longjmp_call_dummy.
3804         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3805         (set_longjmp_breakpoint_for_call_dummy)
3806         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3807         functions.
3808         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3809         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3810         FIXME comment and extend the other comment for bp_call_dummy.
3811         (set_longjmp_breakpoint_for_call_dummy)
3812         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3813         * dummy-frame.c: Include gdbthread.h.
3814         (pop_dummy_frame_bpt): New function.
3815         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3816         (dummy_frame_discard): New function.
3817         (cleanup_dummy_frames): Update the comment about longjmps.
3818         * dummy-frame.h (dummy_frame_discard): New declaration.
3819         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3820         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3821         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3822         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3823         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3824         keep_going if IS_LONGJMP and there is no other reason to stop.
3825
3826 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3827
3828         * remote-sim.c (sim_command_completer): Initialize
3829         variable 'result'.
3830
3831 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3832
3833         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3834         * dwarf2loc.c (call_site_parameter_matches): Support
3835         CALL_SITE_PARAMETER_PARAM_OFFSET.
3836         (needs_dwarf_reg_entry_value): Push stub value.
3837         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3838         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3839         * gdbtypes.h (enum call_site_parameter_kind): New item
3840         CALL_SITE_PARAMETER_PARAM_OFFSET.
3841         (struct call_site.parameter.u): New field param_offset.
3842
3843 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3844
3845         Code cleanup: Generalize call_site.parameter key.
3846         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3847         variable dwarf_reg.  New variable kind_u.  Update parameters to
3848         push_dwarf_reg_entry_value.
3849         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3850         * dwarf2expr.h (enum call_site_parameter_kind)
3851         (union call_site_parameter_u): Forward declarations.
3852         (struct dwarf_expr_context_funcs): Update parameters and their
3853         description for push_dwarf_reg_entry_value.
3854         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3855         * dwarf2loc.c (call_site_parameter_matches): New function.
3856         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3857         description.  Use call_site_parameter_matches.
3858         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3859         Update parameters and their description.
3860         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3861         New variable kind_u.  Adjust the caller for updated parameters.
3862         (needs_dwarf_reg_entry_value): Update parameters.
3863         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3864         instead of attr.  Update for the changed fields of struct
3865         call_site_parameter.
3866         * gdbtypes.h: Include dwarf2expr.h.
3867         (enum call_site_parameter_kind): New.
3868         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3869         fb_offset into new union u.
3870
3871 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3872
3873         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3874         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3875         for x32.
3876
3877 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3878
3879         * amd64-linux-nat.c (compat_x32_clock_t): New.
3880         (compat_x32_siginfo_t): Likewise.
3881         (compat_x32_siginfo_from_siginfo): Likewise.
3882         (siginfo_from_compat_x32_siginfo): Likewise.
3883         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3884         and siginfo_from_compat_x32_siginfo for x32.
3885
3886 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3887
3888         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3889
3890 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3891
3892         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3893         instead of gdbarch_ptr_bit.
3894         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3895         (amd64_supply_native_gregset): Likewise.
3896         (amd64_collect_native_gregset): Likewise.
3897         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3898         (amd64_supply_xsave): Likewise.
3899         (amd64_collect_fxsave): Likewise.
3900         (amd64_collect_xsave): Likewise.
3901
3902 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3903
3904         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3905         (amd64_linux_read_description): Check DS segment register for
3906         x32 process.
3907
3908 2012-06-15  Tom Tromey  <tromey@redhat.com>
3909
3910         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3911         init_cutu_and_read_dies.
3912
3913 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3914
3915         * MAINTAINERS (Write After Approval): Add myself to the list.
3916
3917 2012-06-15  Tom Tromey  <tromey@redhat.com>
3918
3919         * valops.c (value_find_oload_method_list): Now static.
3920         * value.h (value_find_oload_method_list): Don't declare.
3921
3922 2012-06-15  Tom Tromey  <tromey@redhat.com>
3923
3924         * valops.c (find_overload_match): Use value_ind.
3925
3926 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
3927
3928         * infrun.c (handle_inferior_event): Correct indentation.
3929
3930 2012-06-14  Doug Evans  <dje@google.com>
3931
3932         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3933         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3934         All uses updated.
3935         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
3936         updated.  Handle DEBUG_LOC_START_LENGTH.
3937         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3938         (loclist_describe_location): Ditto.
3939
3940 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
3941
3942         PR backtrace/13866
3943         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3944         after hiding inline functions.
3945
3946 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3947
3948         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3949         _initialize_inf_ttrace.
3950
3951 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3952
3953         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3954         _initialize_hppa_hpux_nat.
3955
3956 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3957
3958         * remote-sim.c (sim_command_completer): Change type of return
3959         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
3960
3961 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3962             Jan Kratochvil  <jan.kratochvil@redhat.com>
3963
3964         PR tdep/14222
3965         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3966         stack on a 16-byte boundary.
3967
3968 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
3969
3970         * jit.c (finalize_symtab): Set function's return type to 'void' by
3971         default.
3972
3973 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3974             H.J. Lu  <hongjiu.lu@intel.com>
3975
3976         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3977         Move bits common to both the classic LP64 and the new x32 ILP32
3978         ABI here.
3979         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3980         (amd64_x32_linux_init_abi): New function.
3981         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3982         subtype.
3983
3984         * i386-tdep.h (i386_pseudo_register_name): New prototype.
3985         * i386-tdep.c (i386_pseudo_register_name): Make public.
3986         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3987         * amd64-tdep.c (amd64_dword_names): Add "eip".
3988         (amd64_x32_pseudo_register_type): New function
3989         (amd64_x32_init_abi): New function.
3990
3991 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3992
3993         PR build/14003
3994         * inferior.h (struct inferior_suspend_state): Comment out.
3995         (struct inferior): Comment out the field suspend.
3996         * infrun.c (struct infcall_suspend_state): Comment out the field
3997         inferior_suspend.
3998         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3999         out its assignment.
4000
4001 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4002
4003         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4004         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4005         function comment.  Return ERROR for unresolved cases.  Implement
4006         returning proper NAME.
4007         (yylex): Accept also NAME from classify_inner_name.
4008         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4009         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4010         LOC_TYPEDEF type.
4011         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4012
4013 2012-06-13  Tom Tromey  <tromey@redhat.com>
4014
4015         * breakpoint.c (condition_completer): New function.
4016         (_initialize_breakpoint): Use it.
4017         * value.c (complete_internalvar): New function.
4018         * value.h (complete_internalvar): Declare.
4019
4020 2012-06-13  Tom Tromey  <tromey@redhat.com>
4021
4022         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4023         * breakpoint.c (catch_syscall_completer): Return a VEC.
4024         * cli/cli-cmds.c (complete_command): Update.
4025         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4026         (complete_on_enum): Likewise.
4027         * command.h: Include gdb_vecs.h.
4028         (completer_ftype): Change return type.
4029         (complete_on_cmdlist, complete_on_enum): Likewise.
4030         * completer.c (noop_completer, filename_completer)
4031         (location_completer): Return a VEC.
4032         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4033         to a VEC.
4034         (expression_completer, complete_line_internal, complete_line)
4035         (command_completer): Return a VEC.
4036         (gdb_completion_word_break_characters, line_completion_function):
4037         Update.
4038         * completer.h: Include gdb_vecs.h.
4039         (complete_line, noop_completer, filename_completer)
4040         (expression_completer, location_completer, command_completer):
4041         Update.
4042         * f-lang.c (f_word_break_characters): Return a VEC.
4043         * interps.c (interpreter_completer): Return a VEC.
4044         * language.h (struct language_defn)
4045         <la_make_symbol_completion_list>: Return a VEC.
4046         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4047         * symtab.c (free_completion_list): Take a VEC.
4048         (return_val_size, return_val_index): Remove.
4049         (return_val): Now a VEC.
4050         (completion_list_add_name): Update.
4051         (default_make_symbol_completion_list_break_on)
4052         (default_make_symbol_completion_list, make_symbol_completion_list)
4053         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4054         Return a VEC.
4055         (add_filename_to_list): Update.
4056         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4057         <list>: Now a VEC.
4058         (maybe_add_partial_symtab_filename): Update.
4059         (make_source_files_completion_list): Return a VEC.
4060         * symtab.h (default_make_symbol_completion_list_break_on)
4061         (default_make_symbol_completion_list, make_symbol_completion_list)
4062         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4063         (make_source_files_completion_list): Update.
4064
4065 2012-06-13  Tom Tromey  <tromey@redhat.com>
4066
4067         * breakpoint.c (add_catch_command): Use completer_ftype.
4068         * breakpoint.h: Include command.h.
4069         (add_catch_command): Use completer_ftype.
4070         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4071         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4072         Use completer_ftype.
4073         * command.h (completer_ftype): New typedef.
4074         (set_cmd_completer): Use it.
4075         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4076         completer_ftype.
4077
4078 2012-06-13  Pedro Alves  <palves@redhat.com>
4079
4080         Partial revert of previous change.
4081
4082         * serial.c (scb_base): New global.
4083         (serial_for_fd): New.
4084         (serial_open, serial_fdopen_ops): Link new serial in open serials
4085         chain.
4086         (do_serial_close): Unlink serial from the open serials chain.
4087
4088 2012-06-12  Pedro Alves  <palves@redhat.com>
4089
4090         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4091         threads here.
4092         (prepare_for_detach): No longer context switch here in non-stop
4093         mode.
4094         (fetch_inferior_event): Ditto.
4095         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4096         to the event thread before removing breakpoints.  Switch to the
4097         event thread before inserting breakpoints and resuming.
4098         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4099         event thread before resuming.
4100         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4101         Switch to the event thread before removing breakpoints.
4102
4103 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4104
4105         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4106         special characters correctly for the Windows shells.  See
4107         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4108         report.
4109         [!__MINGW32__]: Remove extra double quote character from special
4110         characters.
4111
4112 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4113
4114         * ui-out.h: Remove #if 0 declarations.
4115         * ui-out.c: Remove #if 0 functions.
4116
4117 2012-06-11  Pedro Alves  <palves@redhat.com>
4118
4119         * ser-base.c (run_async_handler_and_reschedule): New.
4120         (fd_event, push_event): Use it.
4121         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4122         reference count to 1.
4123         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4124         instead of xfree.
4125         (serial_is_open, serial_ref, serial_unref): New.
4126         * serial.h (serial_open): Adjust comment.
4127         (serial_is_open): Declare.
4128         (serial_close): Adjust comment.
4129         (serial_ref, serial_unref) Declare.
4130         (struct serial): New field 'refcnt'.
4131
4132 2012-06-11  Pedro Alves  <palves@redhat.com>
4133
4134         Remove #if 0'd "connect" command, and unnecessary associated
4135         refcounting and serial reuse bits.
4136
4137         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4138         * serial.c (last_serial_opened): Delete.
4139         (scb_base): Delete.
4140         (serial_open): Adjust.
4141         (serial_for_fd): Delete.
4142         (serial_fdopen_ops, do_serial_close): Adjust.
4143         (serial_fdopen_ops): Adjust.
4144
4145 2012-06-11  Pedro Alves  <palves@redhat.com>
4146
4147         * serial.c (do_serial_close): Remove early return when SCB is
4148         null.
4149
4150 2012-06-11  Tom Tromey  <tromey@redhat.com>
4151
4152         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4153
4154 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4155
4156         Fix regression by the "ambiguous linespec" series.
4157         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4158         get_last_displayed_symtab and get_last_displayed_line and depending
4159         on CURSAL.
4160
4161 2012-06-11  Tom Tromey  <tromey@redhat.com>
4162
4163         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4164         (dw2_find_symbol_file): Use it.
4165
4166 2012-06-11  Michael Eager  <eager@eagercon.com>
4167
4168         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4169         * mips-linux-tdep.h (mips_signals): New
4170
4171 2012-06-11  Tom Tromey  <tromey@redhat.com>
4172
4173         * infrun.c (handle_inferior_event)
4174         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4175         breakpoint.
4176         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4177         exception logic in all cases.  Update comments.
4178         (insert_longjmp_resume_breakpoint): Set the exception resume
4179         breakpoint.
4180
4181 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4182
4183         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4184
4185 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4186
4187         * valarith.c (binop_types_user_defined_p): Fix a typo.
4188
4189 2012-06-08  Yao Qi  <yao@codesourcery.com>
4190             Chung-Lin Tang <cltang@codesourcery.com>
4191
4192         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4193         * arch-utils.h: Declare.
4194         * gdbarch.sh: Add return_in_first_hidden_param_p.
4195         * gdbarch.c, gdbarch.h: Regenerated.
4196         * infcall.c (call_function_by_hand): Call
4197         gdbarch_return_in_first_hidden_param_p instead of
4198         language_pass_by_reference.
4199
4200         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4201         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4202         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4203         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4204         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4205         `cplus_return_struct_by_reference'.
4206         (tic6x_return_value): Handle language cplusplus.
4207         (tic6x_return_in_first_hidden_param_p): New.
4208         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4209
4210 2012-06-07  Doug Evans  <dje@google.com>
4211
4212         * dwarf2read.c (dwarf2_cu): Add comment.
4213
4214 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4215
4216         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4217         variable.
4218         (mips_eabi_push_dummy_call): Likewise.
4219         (mips_n32n64_push_dummy_call): Likewise.
4220         (mips_o32_push_dummy_call): Likewise.
4221         (mips_o64_push_dummy_call): Likewise.
4222
4223 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4224
4225         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4226
4227 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4228
4229         * mips-tdep.c (mips_pseudo_register_type): Use
4230         mips_float_register_p.
4231
4232 2012-06-06  Pedro Alves  <palves@redhat.com>
4233
4234         * infrun.c (handle_inferior_event): Remove calls to
4235         reinit_frame_cache that follow a context_switch call.
4236
4237 2012-06-06  Pedro Alves  <palves@redhat.com>
4238
4239         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4240         context_switch and remove stale comment.
4241
4242 2012-06-06  Pedro Alves  <palves@redhat.com>
4243
4244         * infrun.c (struct execution_control_state): Remove
4245         `new_thread_event' field.
4246         (handle_inferior_event): Simplify new threads handling; don't
4247         resume the inferior if we find a new thread.
4248
4249 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4250
4251         * NEWS: Document the deprecation of SH's 'regs' command.
4252         * inferior.h (all_registers_info): Add function declaration.
4253         * sh-tdep.c (sh_show_regs): Remove variable.
4254         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4255         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4256         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4257         (sh_show_regs_command): Remove functions.
4258         (sh_gdbarch_init): Don't set sh_show_regs.
4259         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4260         'info all-registers'.
4261         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4262         (sh64_show_regs): Remove functions.
4263         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4264
4265 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4266
4267         * configure.ac: Move development=true below AC_INIT.
4268         * configure: Regenerate.
4269
4270 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4271
4272         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4273         gdb_stdout.
4274
4275 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4276
4277         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4278         argument as ssize_t.
4279         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4280         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4281         * target.c (target_read_stack, target_write_memory)
4282         (target_write_raw_memory): Likewise.
4283         * target.h (target_read_stack, target_write_memory)
4284         (target_write_raw_memory): Likewise.
4285
4286 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4287
4288         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4289         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4290         * target.c (target_read_memory): Change LEN to ssize_t.
4291         * target.h (target_read_memory): Change LEN to ssize_t.
4292
4293 2012-06-05  Pedro Alves  <palves@redhat.com>
4294
4295         PR backtrace/13866
4296
4297         * breakpoint.c (until_break_command): Only fetch the selected
4298         frame after decode_line_1.
4299
4300 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4301
4302         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4303         event breakpoint at _start, __start or main if a program
4304         interpreter is not found.
4305
4306 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4307
4308         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4309         Add declaration.
4310         * windows-tdep.c: #include "objfiles.h".
4311         (windows_iterate_over_objfiles_in_search_order): New function.
4312         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4313         iterate_over_objfiles_in_search_order gdbarch method to
4314         windows_iterate_over_objfiles_in_search_order.
4315         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4316
4317 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4318
4319         * gdbarch.sh: Add generation of
4320         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4321         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4322         (iterate_over_objfiles_in_search_order): New gdbarch method.
4323         * gdbarch.h, gdbarch.c: Regenerate.
4324         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4325         Add declaration.
4326         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4327         New function.
4328         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4329         out of lookup_symbol_aux_symtabs.
4330         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4331         call to lookup_symbol_aux_objfile.
4332         (struct global_sym_lookup_data): New type.
4333         (lookup_symbol_global_iterator_cb): New function.
4334         (lookup_symbol_global): Search for symbol using
4335         gdbarch_iterate_over_objfiles_in_search_order and
4336         lookup_symbol_global_iterator_cb.
4337         * findvar.c (struct minsym_lookup_data): New type.
4338         (minsym_lookup_iterator_cb): New function.
4339         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4340         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4341         and minsym_lookup_iterator_cb.
4342
4343 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4344
4345         Revert the following patch:
4346         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4347         try locating the symbol in the symbol's own objfile first, before
4348         extending the search to all objfiles.
4349         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4350         out of lookup_symbol_aux_symtabs.
4351         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4352         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4353         Do not search EXCLUDE_OBJFILE.
4354         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4355         (lookup_symbol_global): Search for matches in the block's objfile
4356         first, before searching all other objfiles.
4357
4358 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4359
4360         * breakpoint.c (find_condition_and_thread): Stop parsing
4361         as soon as the first invalid keyword is found.
4362
4363 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4364
4365         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4366
4367 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4368
4369         * config/djgpp/djcheck.sh: Add copyright header.
4370
4371 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4372
4373         * copyright.py (update_files, main): Fix path to update-copyright
4374         script.
4375
4376 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4377
4378         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4379         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4380         for which a reminder to update by hand is printed.
4381
4382 2012-06-04  Doug Evans  <dje@google.com>
4383
4384         * buildsym.c (make_blockvector): Add comment.
4385
4386 2012-06-04  Pedro Alves  <palves@redhat.com>
4387
4388         * arch-utils.c (default_gdb_signal_from_target): Delete.
4389         * arch-utils.h (default_gdb_signal_from_target): Delete.
4390         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4391         gdbarch_gdb_signal_from_target_p.
4392         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4393         predicate).
4394         * gdbarch.h: Regenerate.
4395         * gdbarch.c: Regenerate.
4396
4397 2012-06-04  Pedro Alves  <palves@redhat.com>
4398
4399         * gdbarch.sh (gdb_signal_from_target): Mention that the
4400         implementation of the method must be host independent.
4401         * gdbarch.h: Regenerate.
4402
4403 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4404
4405         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4406         parameters.
4407         (target_read_memory_bfd): New function.
4408         (symbol_file_add_from_memory): Use it.
4409
4410 2012-06-03  Doug Evans  <dje@google.com>
4411
4412         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4413         of primary symtab.
4414         (basic_lookup_transparent_type): Ditto.
4415
4416         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4417         (ALL_PRIMARY_SYMTABS): Use it.
4418         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4419         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4420         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4421         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4422         (basic_lookup_transparent_type): Ditto.
4423
4424 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4425
4426         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4427         it to optimize resolution of demangled name.
4428
4429 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4430
4431         * configure.ac (development): Define new variable.
4432         Call AC_CHECK_LIB for mcheck if $development.
4433         (ERROR_ON_WARNING): Enable it by default only if $development.
4434         * config.in: Regenerate.
4435         * configure: Regenerate.
4436
4437 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4438
4439         * target.c (target_read_memory): Make LEN argument as size_t.
4440         * target.h (target_read_memory): Likewise.
4441
4442 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4443
4444         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4445
4446 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4447
4448         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4449         BookE interface for PowerPC server processors if not available
4450         in the Linux Kernel.
4451
4452 2012-05-31  Keith Seitz  <keiths@redhat.com>
4453
4454         * linespec.c (decode_objc): Add cleanup to free
4455         INFO.FILE_SYMTABS.
4456         (find_linespec_symbols): Add cleanup to free CLASSES.
4457         * symfile.c (find_separate_debug_file_by_debuglink): Add
4458         cleanup to free DEBUGLINK.
4459         * ui-out.c (clear_header_list): No need to check if
4460         HEADER_NEXT.COLHDR is NULL.
4461         Free HEADER_NEXT.COL_NAME.
4462
4463 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4464
4465         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4466         warning.
4467
4468 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4469
4470         * configure.host (gdb_host_cpu): Handle tilegx*.
4471         (gdb_host): Handle tilegx-*-linux*.
4472         * tilegx-linux-nat.c: New file.
4473         * config/tilegx/linux.mh: New file.
4474
4475 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4476
4477         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4478         tilegx-linux-tdep.o.
4479         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4480         tilegx-linux-tdep.c.
4481         * configure.tgt: Handle tilegx-*-linux*.
4482         * tilegx-tdep.h: New file.
4483         * tilegx-tdep.c: New file.
4484         * tilegx-linux-tdep.c: New file.
4485         * regformats/reg-tilegx.dat: New file.
4486
4487 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4488
4489         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4490         accounting of hw watchpoints on ppc.
4491
4492 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4493
4494         * source.c (openp): Expand tilde in path entries.
4495
4496 2012-05-29  Doug Evans  <dje@google.com>
4497
4498         * buildsym.c (block_compar): Fix comment.
4499         (end_symtab): Fix and clarify some comments.
4500
4501         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4502         cleanup_undefined_types.
4503         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4504         All callers updated.
4505
4506 2012-05-29  Tom Tromey  <tromey@redhat.com>
4507
4508         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4509         fails.
4510         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4511         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4512         fails.
4513         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4514         fails.
4515
4516 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4517
4518         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4519         (struct darwin_info): ... New struct.
4520         (solib_darwin_pspace_data): New variable.
4521         (darwin_pspace_data_cleanup): New function.
4522         (get_darwin_info): Likewise.
4523         (darwin_dyld_version_ok, darwin_load_image_infos)
4524         (darwin_solib_get_all_image_info_addr_at_init)
4525         (darwin_solib_read_all_image_info_addr): Add info argument.
4526         Adjust code.
4527         (darwin_current_sos): Use per pspace structure.
4528         (darwin_solib_create_inferior_hook): Likewise.
4529         (darwin_clear_solib): Likewise.
4530         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4531
4532 2012-05-28  Pedro Alves  <palves@redhat.com>
4533
4534         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4535         block that uses them.  Clear ecss before handling each event.
4536
4537 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4538
4539         * solib-svr4.c (svr4_current_sos): New comment on
4540         svr4_current_sos_via_xfer_libraries fall back.
4541
4542 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4543
4544         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4545         it as a fallback for TYPE_IS_OPAQUE.
4546         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4547         symbols for lookup_symbol.
4548
4549 2012-05-24  John Steele Scott  <toojays@toojays.net>
4550
4551         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4552         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4553         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4554         (check_producer): ... this new function, which also checks for ICC
4555         and caches the result.
4556         (producer_is_icc): New function.
4557         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4558         producer was ICC.
4559
4560 2012-05-24  Pedro Alves  <palves@redhat.com>
4561
4562         PR gdb/7205
4563
4564         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4565         (default_gdb_signal_to_target): ... this.  Add comment.
4566         (default_gdb_signal_from_host): Rename to ...
4567         (default_gdb_signal_from_target): ... this.  Add comment.
4568         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4569         (default_gdb_signal_to_target): ... this.
4570         (default_gdb_signal_from_host): Rename to ...
4571         (default_gdb_signal_from_target): ... this.
4572         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4573         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4574         (gdb_signal_from_target): ... this.  Adjust to
4575         default_gdb_signal_from_host naming change.  Extend comment.
4576         (gdb_signal_to_host): Rename to ...
4577         (gdb_signal_to_target): ... this.  Adjust to
4578         default_gdb_signal_to_host naming change.
4579         * gdbarch.h, gdbarch.c: Renegerate.
4580
4581 2012-05-24  Pedro Alves  <palves@redhat.com>
4582
4583         PR gdb/7205
4584
4585         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4586
4587 2012-05-24  Pedro Alves  <palves@redhat.com>
4588
4589         PR gdb/7205
4590
4591         Replace target_signal with gdb_signal throughout.
4592
4593 2012-05-24  Pedro Alves  <palves@redhat.com>
4594
4595         PR tui/14159
4596
4597         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4598         string, instead of reusing the va_list argument.
4599
4600 2012-05-24  Tom Tromey  <tromey@redhat.com>
4601
4602         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4603         Remove.
4604
4605 2012-05-23  Doug Evans  <dje@google.com>
4606
4607         * symtab.c (search_symbols): Formatting fixes.
4608         (print_symbol_info): Formatting fixes.
4609
4610         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4611         int64_t change to leb128 API.
4612         (read_encoded_value, decode_frame_entry_1): Ditto.
4613         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4614         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4615         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4616         (execute_stack_op): Ditto.
4617         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4618         (safe_read_uleb128, safe_read_sleb128): Ditto.
4619         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4620         (dwarf2_compile_expr_to_ax): Ditto.
4621         (locexpr_describe_location_piece): Ditto.
4622         (disassemble_dwarf_expression): Ditto.
4623         (locexpr_describe_location_1): Ditto.
4624
4625 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4626             Kwok Cheung Yeung  <kcy@codesourcery.com>
4627
4628         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4629         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4630         (mi-cmd-info.o): New rule.
4631         * osdata.h (info_osdata_command): New declaration.
4632         * osdata.c (info_osdata_command): Change to non-static.
4633         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4634         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4635         * mi/mi-cmd-info.c: New file.
4636
4637 2012-05-23  Doug Evans  <dje@google.com>
4638
4639         * symtab.c (search_symbols): Pass NULL for file_matcher to
4640         expand_symtabs_matching if there are no files to match.
4641
4642         * gdbtypes.c (lookup_typename): Simplify.
4643
4644 2012-05-23  Pedro Alves  <palves@redhat.com>
4645
4646         * arch-utils.h (default_target_signal_to_host): Delete.
4647         * arch-utils.c (default_target_signal_to_host): Delete.
4648         * gdbarch.sh (target_signal_to_host): Remove.
4649         * gdbarch.h, gdbarch.c: Regenerate.
4650
4651 2012-05-22  Doug Evans  <dje@google.com>
4652
4653         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4654         "const gdb_byte *".
4655         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4656         (execute_cfa_program): Update to match API of leb128 functions.
4657         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4658         "const gdb_byte *".
4659         (read_unsigned_leb128, read_signed_leb128): Delete.
4660         (read_initial_length): Change type of buf argument to
4661         "const gdb_byte *".
4662         (read_encoded_value): Update to match API of leb128 functions.
4663         (decode_frame_entry): Change result to "const gdb_byte *", and
4664         similarly for "start" parameter.
4665         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4666         (dwarf2_build_frame_info): Change local frame_ptr to
4667         "const gdb_byte *".
4668         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4669         read_uleb128, read_sleb128.  All callers updated.
4670         (safe_skip_leb128): New function.
4671         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4672         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4673         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4674         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4675         read_uleb128, read_sleb128.
4676         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4677         (execute_stack_op): Update to match API of leb128 functions.
4678         * dwarf2expr.h: #include "leb128.h".
4679         (read_uleb128, read_sleb128): Delete.
4680         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4681         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4682         * dwarf2loc.c (debug_loc_kind): New enum.
4683         (decode_debug_loc_addresses): New function.
4684         (decode_debug_loc_dwo_addresses): New function.
4685         (dwarf2_find_location_expression): Rewrite.
4686         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4687         (locexpr_describe_location_piece): Ditto.
4688         (disassemble_dwarf_expression): Ditto.
4689         (locexpr_describe_location_1): Ditto.
4690         (loclist_describe_location): Rewrite.
4691         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4692         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4693         (dwarf2_section_buffer_overflow_complaint): Renamed from
4694         dwarf2_macros_too_long_complaint.  All callers updated.
4695         (skip_leb128): Delete.
4696         (init_cu_die_reader): Initialize reader->buffer_end.
4697         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4698         (skip_form_bytes): New arg buffer_end.  All callers updated.
4699         Replace call to skip_leb128 with gdb_skip_leb128.
4700         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4701         (fill_in_loclist_baton): Initialize baton->from_dwo.
4702
4703 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4704
4705         * mips-linux-nat.c (mips_linux_read_description): Use a more
4706         verbose error message.
4707
4708 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4709
4710         * NEWS: Add MIPS/Linux DSP support.
4711         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4712         (SIGCONTEXT_DSPCTL): New macro.
4713         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4714         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4715         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4716         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4717         (N64_SIGCONTEXT_HI3): Likewise.
4718         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4719         (N64_SIGCONTEXT_LO3): Likewise.
4720         (N64_SIGCONTEXT_DSPCTL): Likewise.
4721         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4722         (mips_linux_o32_sigframe_init): Handle DSP registers.
4723         (mips_linux_n32n64_sigframe_init): Likewise.
4724
4725 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4726
4727         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4728         call to abort.
4729
4730 2012-05-22  Pedro Alves  <palves@redhat.com>
4731
4732         * target.h (store_waitstatus): Move declaration ...
4733         * inf-child.h (store_waitstatus): ... here.
4734         * target.c: Move inclusion of gdb_wait.h, and ...
4735         (store_waitstatus): ... this ...
4736         * inf-child.c: ... here.
4737         * linux-nat.c: Include inf-child.h.
4738         * rs6000-nat.c: Include inf-child.h.
4739         * spu-linux-nat.c: Include inf-child.h.
4740
4741 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4742
4743         * tracepoint.c (start_tracing): Add missing i18n markup.
4744         (stop_tracing, set_trace_user): Ditto.
4745         (set_trace_notes, set_trace_stop_notes): Ditto.
4746
4747 2012-05-21  Tom Tromey  <tromey@redhat.com>
4748
4749         PR c++/7173:
4750         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4751         types.
4752         * value.h (value_cast_pointers): Update.
4753         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4754         (value_cast): Update.
4755         (update_search_result): New function.
4756         (do_search_struct_field): New, from search_struct_field.  Check
4757         for ambiguous results.
4758         (search_struct_field): Rewrite.
4759         * infcall.c (value_arg_coerce): Update.
4760         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4761         value_cast_pointers.
4762         * ada-lang.c (ada_convert_actual): Update.
4763
4764 2012-05-21  Tom Tromey  <tromey@redhat.com>
4765
4766         * macroexp.c (macro_stringify): Terminate the string.
4767
4768 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4769
4770         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4771         Describe it.
4772         * auto-load.c (auto_load_expand_dir_vars): New function.
4773         (auto_load_safe_path_vec_update): Use it, remove the
4774         substitute_path_component call thanks to it.
4775         (auto_load_objfile_script): Remove the debug_file_directory processing.
4776         Use auto_load_expand_dir_vars, remove the substitute_path_component
4777         call thanks to it.
4778         * configure: Regenerate.
4779         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4780         path.  Escape $ also for $debugdir.
4781         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4782         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4783
4784 2012-05-20  Doug Evans  <dje@google.com>
4785
4786         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4787         before use.  Check for symtab->includes == NULL before scanning it.
4788
4789 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4790
4791         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4792
4793 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4794
4795         * NEWS: Add microMIPS support and "set mips compression",
4796         "show mips compression" commands.
4797         * mips-tdep.h (mips_isa): New enum.
4798         (gdbarch_tdep): Add mips_isa.
4799         (mips_pc_is_mips16): Update prototype.
4800         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4801         * mips-tdep.c (mips_compression_mips16): New variable.
4802         (mips_compression_micromips): Likewise.
4803         (mips_compression_strings): Likewise.
4804         (mips_compression_string): Likewise.
4805         (is_mips16_isa, is_micromips_isa): New functions.
4806         (is_mips16_addr): Rename to...
4807         (is_compact_addr): ... this.
4808         (unmake_mips16_addr): Likewise to...
4809         (unmake_compact_addr): ... this.
4810         (make_mips16_addr): Likewise to...
4811         (make_compact_addr): ... this.
4812         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4813         functions.
4814         (mips_elf_make_msymbol_special): Handle microMIPS code.
4815         (msymbol_is_special): Rename to...
4816         (msymbol_is_mips16): ... this.
4817         (mips_make_symbol_special, mips_pc_is_mips16): Update
4818         accordingly.
4819         (msymbol_is_mips, msymbol_is_micromips): New functions.
4820         (mips16_to_32_reg): Rename to...
4821         (mips_reg3_to_reg): ... this.
4822         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4823         (mips_pc_isa): Likewise.
4824         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4825         code.
4826         (mips_fetch_instruction): Pass return status instead of printing
4827         an error message if requested.  Handle microMIPS code.  Bail out
4828         on an invalid ISA.
4829         (micromips_op): New macro.
4830         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4831         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4832         (b6s4_op, b7s3_reg): Likewise.
4833         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4834         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4835         (mips_insn_size): New function.
4836         (mips32_next_pc): Update mips_fetch_instruction call.
4837         (micromips_relative_offset7): New function.
4838         (micromips_relative_offset10): Likewise.
4839         (micromips_relative_offset16): Likewise.
4840         (micromips_pc_insn_size): Likewise.
4841         (micromips_bc1_pc): Likewise.
4842         (micromips_next_pc): Likewise.
4843         (unpack_mips16): Update mips_fetch_instruction call.
4844         (extended_mips16_next_pc): Update according to change to
4845         mips16_to_32_reg.
4846         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4847         code.
4848         (mips16_scan_prologue): Update mips_fetch_instruction call.
4849         Update according to change to mips16_to_32_reg.
4850         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4851         (mips_insn16_frame_base_sniffer): Likewise.
4852         (micromips_decode_imm9): New function.
4853         (micromips_scan_prologue): Likewise.
4854         (mips_micro_frame_cache): Likewise.
4855         (mips_micro_frame_this_id): Likewise.
4856         (mips_micro_frame_prev_register): Likewise.
4857         (mips_micro_frame_sniffer): Likewise.
4858         (mips_micro_frame_unwind): New variable.
4859         (mips_micro_frame_base_address): New function.
4860         (mips_micro_frame_base): New variable.
4861         (mips_micro_frame_base_sniffer): New function.
4862         (mips32_scan_prologue): Update mips_fetch_instruction call.
4863         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4864         rather than for MIPS16.
4865         (mips_insn32_frame_base_sniffer): Likewise.
4866         (mips_addr_bits_remove): Handle microMIPS code.
4867         (deal_with_atomic_sequence): Rename to...
4868         (mips_deal_with_atomic_sequence): ... this.  Update the type
4869         of the variable used to hold an instruction.  Remove the ISA bit
4870         check.  Update mips_fetch_instruction call.
4871         (micromips_deal_with_atomic_sequence): New function.
4872         (deal_with_atomic_sequence): Likewise.
4873         (mips_about_to_return): Handle microMIPS code.  Update
4874         mips_fetch_instruction call.
4875         (heuristic_proc_start): Check for the standard MIPS ISA rather
4876         than for MIPS16.  Update mips_pc_is_mips16 and
4877         mips_fetch_instruction calls.  Handle microMIPS code.
4878         (mips_push_dummy_code): Handle microMIPS code.
4879         (mips_eabi_push_dummy_call): Likewise.
4880         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4881         (mips_o64_push_dummy_call): Handle microMIPS code.
4882         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4883         (is_delayed): Remove function.
4884         (mips_single_step_through_delay): Replace the call to is_delayed
4885         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4886         Handle microMIPS code.
4887         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4888         microMIPS code.
4889         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4890         call.
4891         (micromips_in_function_epilogue_p): New function.
4892         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4893         call.
4894         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4895         Handle microMIPS.
4896         (gdb_print_insn_mips): Likewise.
4897         (mips_breakpoint_from_pc): Likewise.
4898         (mips_remote_breakpoint_from_pc): New function.
4899         (mips32_instruction_has_delay_slot): Simplify making use of the
4900         updated mips_fetch_instruction interface.
4901         (micromips_instruction_has_delay_slot): New function.
4902         (mips16_instruction_has_delay_slot): Simplify making use of the
4903         updated mips_fetch_instruction interface.
4904         (mips_adjust_breakpoint_address): Check for the standard MIPS
4905         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4906         calls.  Handle microMIPS code.
4907         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4908         (mips_skip_trampoline_code): Handle microMIPS code.
4909         (global_mips_compression): New function.
4910         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4911         file flags.  Register the microMIPS remote breakpoint handler
4912         and heuristic frame unwinder.
4913         (show_mips_compression): New function.
4914         (_initialize_mips_tdep): Add the "set mips compression" and
4915         "show mips compression" commands.
4916
4917 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4918
4919         * ada-lang.c:
4920         * ada-tasks.c:
4921         * ada-varobj.c:
4922         * amd64-darwin-tdep.c:
4923         * arm-symbian-tdep.c:
4924         * arm-tdep.c:
4925         * avr-tdep.c:
4926         * ax-gdb.c:
4927         * bfin-linux-tdep.c:
4928         * breakpoint.c:
4929         * c-valprint.c:
4930         * cli/cli-cmds.c:
4931         * coffread.c:
4932         * cp-support.c:
4933         * cris-tdep.c:
4934         * dwarf2-frame-tailcall.c:
4935         * dwarf2-frame.c:
4936         * dwarf2expr.c:
4937         * dwarf2loc.c:
4938         * dwarf2read.c:
4939         * elfread.c:
4940         * eval.c:
4941         * expprint.c:
4942         * f-valprint.c:
4943         * frv-tdep.c:
4944         * h8300-tdep.c:
4945         * hppa-hpux-tdep.c:
4946         * hppa-tdep.c:
4947         * hppanbsd-tdep.c:
4948         * i386-nto-tdep.c:
4949         * i386-tdep.c:
4950         * i387-tdep.c:
4951         * ia64-tdep.c:
4952         * jit.c:
4953         * linespec.c:
4954         * linux-tdep.c:
4955         * lm32-tdep.c:
4956         * m2-valprint.c:
4957         * m32c-tdep.c:
4958         * m32r-rom.c:
4959         * m32r-tdep.c:
4960         * m68k-tdep.c:
4961         * m68klinux-tdep.c:
4962         * mi/mi-main.c:
4963         * microblaze-tdep.c:
4964         * mips-linux-tdep.c:
4965         * mips-tdep.c:
4966         * mn10300-tdep.c:
4967         * p-valprint.c:
4968         * parse.c:
4969         * ppc-linux-tdep.c:
4970         * ppc-sysv-tdep.c:
4971         * printcmd.c:
4972         * python/py-finishbreakpoint.c:
4973         * python/py-inferior.c:
4974         * python/py-infthread.c:
4975         * python/py-type.c:
4976         * python/python.c:
4977         * remote-fileio.c:
4978         * remote-m32r-sdi.c:
4979         * remote-mips.c:
4980         * reverse.c:
4981         * rl78-tdep.c:
4982         * rs6000-aix-tdep.c:
4983         * rs6000-tdep.c:
4984         * s390-tdep.c:
4985         * score-tdep.c:
4986         * sh64-tdep.c:
4987         * skip.c:
4988         * solib-darwin.c:
4989         * solib-dsbt.c:
4990         * solib-frv.c:
4991         * sparc-tdep.c:
4992         * spu-multiarch.c:
4993         * spu-tdep.c:
4994         * stack.c:
4995         * symfile.c:
4996         * symtab.c:
4997         * tic6x-tdep.c:
4998         * tracepoint.c:
4999         * v850-tdep.c:
5000         * valarith.c:
5001         * valprint.c:
5002         * value.c:
5003         * xcoffread.c:
5004         * xtensa-tdep.c:
5005         * ada-lang.c:
5006         * ada-tasks.c:
5007         * ada-varobj.c:
5008         * amd64-darwin-tdep.c:
5009         * arm-symbian-tdep.c:
5010         * arm-tdep.c: Delete unused variables.
5011
5012 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5013
5014         Rename $ddir to $datadir.
5015         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5016         * auto-load.c (auto_load_safe_path_vec_update)
5017         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5018         * configure: Regenerate.
5019         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5020         Likewise.  Remove the 'use $ddir' help string.
5021
5022 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5023
5024         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5025         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5026
5027 2012-05-18  Tom Tromey  <tromey@redhat.com>
5028
5029         PR exp/13907:
5030         * valprint.h (struct value_print_options) <symbol_print>: New
5031         field.
5032         * valprint.c (user_print_options): Add default for symbol_print.
5033         (show_symbol_print): New function.
5034         (generic_val_print): Respect symbol_print.
5035         (_initialize_valprint): Add "print symbol" setting.
5036         * f-valprint.c (f_val_print): Respect symbol_print.
5037         * c-valprint.c (c_val_print): Respect symbol_print.
5038         * NEWS: Update.
5039         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5040         zero-size symbols.
5041         (print_address_demangle): Return int.
5042         * defs.h: (print_address_symbolic): Return int.
5043         * value.h (print_address_demangle): Return int.
5044
5045 2012-05-18  Tom Tromey  <tromey@redhat.com>
5046
5047         * valprint.c (val_print_string): Don't print leading space.
5048         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5049         print space before string or vtbl.
5050         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5051         before string.
5052         * jv-valprint.c (java_value_print): Print space before string.
5053         * go-valprint.c (print_go_string): Print space before string.
5054         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5055         space before string.
5056         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5057         space before string or vtbl.
5058         * auxv.c (fprint_target_auxv): Print space after address.
5059
5060 2012-05-18  Tom Tromey  <tromey@redhat.com>
5061
5062         * printcmd.c (print_address_demangle): Remove special case for 0.
5063
5064 2012-05-18  Tom Tromey  <tromey@redhat.com>
5065
5066         * printcmd.c (print_address_demangle): Add 'opts' argument.
5067         * p-valprint.c (pascal_val_print): Update.
5068         * jv-valprint.c (java_val_print): Update.
5069         * value.h: Update.
5070         * valprint.c (generic_val_print): Update.
5071         (print_function_pointer_address): Add 'options' argument.  Remove
5072         'addressprint' argument.  Update.
5073         * m2-valprint.c (print_unpacked_pointer): Update.
5074         * gnu-v3-abi.c (print_one_vtable): Update.
5075         (gnuv3_print_method_ptr): Update.
5076         * f-valprint.c (f_val_print): Update.
5077         * cp-valprint.c (cp_print_value_fields): Update.
5078         * valprint.h (print_function_pointer_address): Update.
5079         * c-valprint.c (c_val_print): Update.
5080
5081 2012-05-18  Tom Tromey  <tromey@redhat.com>
5082
5083         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5084         directly corresponding to the found psymtab.
5085         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5086         (dw2_find_pc_sect_symtab): Use it.
5087         * block.h (blockvector_contains_pc): Declare.
5088         * block.c (find_block_in_blockvector): New function.
5089         (blockvector_for_pc_sect): Use it.
5090         (blockvector_contains_pc): New function.
5091
5092 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5093
5094         * mips-tdep.h (mips_write_pc): New prototype.
5095         * mips-tdep.c (mips_write_pc): Make external, add description.
5096         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5097         add description.
5098
5099 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5100
5101         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5102         mips_regnum->pc.
5103         (mips_unwind_pc, mips_write_pc): Likewise.
5104         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5105         gdbarch_read_pc.
5106
5107 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5108
5109         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5110         proc_warn, proc_error, proc_get_status, proc_flags,
5111         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5112         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5113         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5114         proc_stop_process, proc_wait_for_stop, proc_run_process,
5115         proc_set_traced_signals, proc_set_traced_faults,
5116         proc_set_traced_sysentry, proc_set_traced_sysexit,
5117         proc_set_held_signals, proc_get_held_signals,
5118         proc_get_traced_signals, proc_get_traced_faults,
5119         proc_get_traced_sysentry, proc_get_traced_sysexit,
5120         proc_clear_current_fault, proc_set_current_signal,
5121         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5122         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5123         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5124         proc_get_current_thread, proc_get_current_thread,
5125         proc_get_current_thread, proc_update_threads,
5126         proc_update_threads, proc_update_threads, proc_update_threads,
5127         proc_iterate_over_threads, procfs_find_new_threads,
5128         procfs_pid_to_str): Make static.  Remove advance declaration.
5129         (proc_cursig): Make static.  Conditionalized defintion on
5130         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5131         (proc_syscall, proc_set_kill_on_last_close,
5132         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5133         proc_get_pending_signals, proc_get_signal_actions,
5134         proc_trace_signal, proc_ignore_signal): Delete.
5135
5136 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5137
5138         * coffread.c (cs_section_address): Passing proper argument for
5139         `bfd_get_section_vma'.
5140         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5141         `bfd_get_section_flags'.
5142         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5143         `bfd_get_section_vma'.
5144
5145 2012-05-16  Tom Tromey  <tromey@redhat.com>
5146
5147         PR macros/13205:
5148         * macrotab.h: (macro_define_special): Declare.
5149         (enum macro_special_kind): New.
5150         (struct macro_definition) <argc, replacement>: Update comments.
5151         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5152         (macro_define_object_internal): New function.
5153         (macro_define_object): Use it.
5154         (macro_define_special): New function.
5155         (fixup_definition): New function.
5156         (macro_lookup_definition, foreach_macro_in_scope)
5157         (foreach_macro): Use fixup_definition.
5158         * macroexp.h (macro_stringify): Declare.
5159         * macroexp.c (free_buffer_return_text): New function.
5160         (stringify): Constify "arg".
5161         (macro_stringify): New function.
5162         * dwarf2read.c (macro_start_file): Call macro_define_special.
5163
5164 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5165             Maciej W. Rozycki  <macro@mips.com>
5166
5167         * breakpoint.h (bp_location): Add related_address member.
5168         * inferior.h (get_return_value): Take a pointer to struct value
5169         instead of struct type for the function requested.
5170         * value.h (using_struct_return): Likewise.
5171         * gdbarch.sh (return_value): Take a pointer to struct value
5172         instead of struct type for the function requested.
5173         * breakpoint.c (set_breakpoint_location_function): Initialize
5174         related_address for bp_gnu_ifunc_resolver breakpoints.
5175         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5176         requested function's address to gdbarch_return_value.
5177         * eval.c (evaluate_subexp_standard): Pass the requested
5178         function's address to using_struct_return.
5179         * infcall.c (call_function_by_hand): Pass the requested
5180         function's address to using_struct_return and
5181         gdbarch_return_value.
5182         * infcmd.c (get_return_value): Take a pointer to struct value
5183         instead of struct type for the function requested.
5184         (print_return_value): Update accordingly.
5185         (finish_command_continuation): Likewise.
5186         * stack.c (return_command): Pass the requested function's
5187         address to using_struct_return and gdbarch_return_value.
5188         * value.c (using_struct_return): Take a pointer to struct value
5189         instead of struct type for the function requested.  Pass the
5190         requested function's address to gdbarch_return_value.
5191         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5192         New function_value member, replacing function_type.
5193         (bpfinishpy_dealloc): Update accordingly.
5194         (bpfinishpy_pre_stop_hook): Likewise.
5195         (bpfinishpy_init): Likewise.  Record the requested function's
5196         address.
5197         * mips-tdep.c (mips_fval_reg): New enum.
5198         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5199         words put in GP registers.
5200         (mips_o64_push_dummy_call): Update a comment.
5201         (mips_o32_return_value): Take a pointer to struct value instead
5202         of struct type for the function requested and use it to check if
5203         using the MIPS16 calling convention.  Return the designated
5204         general purpose registers for floating-point values returned in
5205         MIPS16 mode.
5206         (mips_o64_return_value): Likewise.
5207         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5208         (ppc_sysv_abi_broken_return_value): Likewise.
5209         (ppc64_sysv_abi_return_value): Likewise.
5210         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5211         value instead of struct type for the function requested.
5212         * amd64-tdep.c (amd64_return_value): Likewise.
5213         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5214         * arm-tdep.c (arm_return_value): Likewise.
5215         * avr-tdep.c (avr_return_value): Likewise.
5216         * bfin-tdep.c (bfin_return_value): Likewise.
5217         * cris-tdep.c (cris_return_value): Likewise.
5218         * frv-tdep.c (frv_return_value): Likewise.
5219         * h8300-tdep.c (h8300_return_value): Likewise.
5220         (h8300h_return_value): Likewise.
5221         * hppa-tdep.c (hppa32_return_value): Likewise.
5222         (hppa64_return_value): Likewise.
5223         * i386-tdep.c (i386_return_value): Likewise.
5224         * ia64-tdep.c (ia64_return_value): Likewise.
5225         * iq2000-tdep.c (iq2000_return_value): Likewise.
5226         * lm32-tdep.c (lm32_return_value): Likewise.
5227         * m32c-tdep.c (m32c_return_value): Likewise.
5228         * m32r-tdep.c (m32r_return_value): Likewise.
5229         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5230         * m68k-tdep.c (m68k_return_value): Likewise.
5231         (m68k_svr4_return_value): Likewise.
5232         * m88k-tdep.c (m88k_return_value): Likewise.
5233         * mep-tdep.c (mep_return_value): Likewise.
5234         * microblaze-tdep.c (microblaze_return_value): Likewise.
5235         * mn10300-tdep.c (mn10300_return_value): Likewise.
5236         * moxie-tdep.c (moxie_return_value): Likewise.
5237         * mt-tdep.c (mt_return_value): Likewise.
5238         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5239         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5240         (ppc_sysv_abi_broken_return_value): Likewise.
5241         (ppc64_sysv_abi_return_value): Likewise.
5242         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5243         * rl78-tdep.c (rl78_return_value): Likewise.
5244         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5245         * rx-tdep.c (rx_return_value): Likewise.
5246         * s390-tdep.c (s390_return_value): Likewise.
5247         * score-tdep.c (score_return_value): Likewise.
5248         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5249         (sh_return_value_fpu): Likewise.
5250         * sh64-tdep.c (sh64_return_value): Likewise.
5251         * sparc-tdep.c (sparc32_return_value): Likewise.
5252         * sparc64-tdep.c (sparc64_return_value): Likewise.
5253         * spu-tdep.c (spu_return_value): Likewise.
5254         * tic6x-tdep.c (tic6x_return_value): Likewise.
5255         * v850-tdep.c (v850_return_value): Likewise.
5256         * vax-tdep.c (vax_return_value): Likewise.
5257         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5258         * xtensa-tdep.c (xtensa_return_value): Likewise.
5259         * gdbarch.c: Regenerate.
5260         * gdbarch.h: Regenerate.
5261
5262 2012-05-15  Tom Tromey  <tromey@redhat.com>
5263
5264         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5265
5266 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5267
5268         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5269         of command in two error message.
5270
5271 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5272
5273         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5274
5275 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5276
5277         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5278
5279 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5280
5281         * NEWS (show auto-load scripts-directory): Add forgotten command.
5282
5283 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5284
5285         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5286         parameters.
5287
5288 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5289
5290         * amd64-tdep.c: Include features/i386/x32.c and
5291         features/i386/x32-avx.c.
5292         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5293         initialize_tdesc_x32_avx.
5294
5295 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5296
5297         Add dynamic printf.
5298         * breakpoint.h (enum bptype): New type bp_dprintf.
5299         (struct breakpoint): New field extra_string.
5300         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5301         (create_breakpoint): Add extra_string arg.
5302         * breakpoint.c (dprintf_breakpoint_ops): New.
5303         (is_breakpoint): Add bp_dprintf.
5304         (bpstat_what): Add dprintf case.
5305         (bptype_string): Ditto.
5306         (print_one_breakpoint_location): Ditto.
5307         (init_bp_location): Ditto.
5308         (bkpt_print_mention): Ditto.
5309         (dprintf_style_enums): New array.
5310         (dprintf_style): New global.
5311         (dprintf_function): New global.
5312         (dprintf_channel): New global.
5313         (update_dprintf_command_list): New function.
5314         (update_dprintf_commands): New function.
5315         (init_breakpoint_sal): Add extra_string argument, handle it.
5316         (create_breakpoint_sal): Add extra_string argument.
5317         (create_breakpoints_sal): Add extra_string argument, update callers.
5318         (find_condition_and_thread): Add extra argument.
5319         (create_breakpoint): Add extra_string argument, record it.
5320         (dprintf_command): New function.
5321         (break_command_1): Add arg to create_breakpoint call.
5322         (handle_gnu_v3_exceptions): Ditto.
5323         (trace_command): Ditto.
5324         (ftrace_command): Ditto.
5325         (strace_command): Ditto.
5326         (bkpt_print_mention): Add dprintf case.
5327         (create_breakpoint_sal_default): Add extra_string argument.
5328         (_initialize_breakpoint): Add new commands.
5329         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5330         * python/py-breakpoint.c (bppy_init): Ditto.
5331         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5332
5333 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5334
5335         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5336
5337 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5338
5339         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5340         unsigned long long.
5341
5342 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5343
5344         Add a new function gdb.find_pc_line to the Python API.
5345         * NEWS (Python Scripting): Add entry about the new function.
5346         * python/python.c (gdbpy_find_pc_line): New function which
5347         implements gdb.find_pc_line.
5348         (GdbMethods): Add entry for the new function.
5349
5350 2012-05-12  Pedro Alves  <palves@redhat.com>
5351
5352         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5353         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5354
5355 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5356
5357         * inferior.c: Include completer.h
5358         (initialize_inferiors): Set completer of add-inferior to
5359         filename_completer.
5360
5361 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5362
5363         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5364         gdbarch_ptr_bit for x32 core dump.
5365
5366 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5367
5368         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5369         and features/i386/x32-avx-linux.c.
5370
5371 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5372             Kwok Cheung Yeung  <kcy@codesourcery.com>
5373
5374         * NEWS: Describe new info os commands.
5375         * common/linux-osdata.c (PID_T, TIME_T): Define.
5376         (MAX_PID_T_STRLEN): New.
5377         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5378         MAX_PID_T_STRLEN.
5379         (command_from_pid): Add comment.  Change to use PID_T.
5380         (commandline_from_pid):  Change to use PID_T.
5381         (user_from_pid): Add comment.
5382         (get_process_owner): Add comment. Change to use PID_T and
5383         MAX_PID_T_STRLEN.
5384         (get_number_of_cpu_cores): Add comment.
5385         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5386         MAX_PID_T_STRLEN.
5387         (linux_xfer_osdata_processes): Change to use PID_T and
5388         MAX_PID_T_STRLEN.
5389         (compare_processes): New function.
5390         (linux_xfer_osdata_processgroups): New function.
5391         (linux_xfer_osdata_threads): Change to use PID_T.
5392         (linux_xfer_osdata_fds): New function.
5393         (format_socket_state, print_sockets): New functions.
5394         (union socket_addr): New union.
5395         (linux_xfer_osdata_isockets): New function.
5396         (time_from_time_t, group_from_gid): New functions.
5397         (linux_xfer_osdata_shm): New function.
5398         (linux_xfer_osdata_sem): New function.
5399         (linux_xfer_osdata_msg): New function.
5400         (linux_xfer_osdata_modules): New function.
5401         (osdata_table): Add new entries.
5402         * common/buffer.c (buffer_xml_printf): Add support for long and
5403         long long format specifiers.
5404
5405 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5406
5407         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5408         (tdesc_x32_avx_linux): Likewise.
5409
5410 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5411
5412         Implement multi-component --with-auto-load-dir.
5413         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5414         entries.
5415         (--with-auto-load-safe-path): Update the default value description.
5416         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5417         New.
5418         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5419         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5420         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5421         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5422         "set auto-load scripts-directory".
5423         * config.in: Regenerate.
5424         * configure: Regenerate.
5425         * configure.ac (--with-auto-load-dir): New configure option.
5426         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5427
5428 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5429
5430         Provide $ddir substitution for --with-auto-load-safe-path.
5431         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5432         entries.
5433         * auto-load.c: Include observer.h.
5434         (auto_load_safe_path_vec_update): Call substitute_path_component for
5435         each component.  New variable ddir_subst.
5436         (auto_load_gdb_datadir_changed): New function.
5437         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5438         AUTO_LOAD_SAFE_PATH.  New comment.
5439         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5440         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5441         * config.in: Regenerate.
5442         * configure: Regenerate.
5443         * configure.ac (--auto-load-safe-path): Rename
5444         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5445         GDB_DATADIR/auto-load.
5446         * defs.h (substitute_path_component): New declaration.
5447         * top.c: Include observer.h.
5448         (set_gdb_datadir): New function.
5449         (init_main): Install it for "set data-directory".
5450         * utils.c (substitute_path_component): New function.
5451
5452 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5453
5454         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5455         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5456         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5457         DEBUG_FILE_DIRECTORY.
5458
5459 2012-05-10  Tom Tromey  <tromey@redhat.com>
5460
5461         * dwarf2read.c (recursively_write_psymbols): New function.
5462         (write_psymtabs_to_index): Use it.
5463
5464         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5465         field.
5466         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5467         (load_partial_comp_unit): Update.
5468         (queue_comp_unit): Add argument 'pretend_language'.
5469         (process_queue): Update.
5470         (psymtab_to_symtab_1): Skip dependencies that have a user.
5471         (load_partial_comp_unit_reader): Give meaning to the 'data'
5472         argument.
5473         (load_full_comp_unit): Add 'pretend_language' argument.
5474         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5475         language on CU.
5476         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5477         Update.
5478         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5479         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5480         Update.
5481         (prepare_one_comp_unit): Add 'pretend_language' argument.
5482
5483         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5484         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5485         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5486         (dw2_do_instantiate_symtab): Check whether symtab was read in
5487         before queueing.
5488         (dw2_instantiate_symtab): Add assertion.  Call
5489         process_cu_includes.
5490         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5491         (partial_symtab_p): New typedef.
5492         (set_partial_user): New function.
5493         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5494         (scan_partial_symbols): Add imported CU to imported_symtabs.
5495         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5496         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5497         (get_symtab, recursively_compute_inclusions)
5498         (compute_symtab_includes, process_cu_includes)
5499         (process_imported_unit_die): New functions.
5500         (process_die) <DW_TAG_imported_unit>: New case.
5501         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5502
5503         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5504         comment.
5505         (struct partial_die_info) <locdesc>: Remove.
5506         <d>: New field.
5507         (process_psymtab_comp_unit): Add 'read_partial' argument.
5508         Update.
5509         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5510         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5511         (add_partial_symbol): Update.
5512         (process_die): Handle DW_TAG_partial_unit.
5513         (read_file_scope): Update comment.
5514         (load_partial_dies): Handle DW_TAG_imported_unit.
5515         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5516         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5517
5518 2012-05-10  Tom Tromey  <tromey@redhat.com>
5519
5520         * cc-with-dwz.sh: New file.
5521
5522 2012-05-10  Tom Tromey  <tromey@redhat.com>
5523
5524         * symtab.h (struct symtab) <includes, user>: New fields.
5525         * block.h (struct block_iterator) <d, idx, which>: New fields.
5526         * block.c (initialize_block_iterator, find_iterator_symtab)
5527         (block_iterator_step, block_iter_name_step)
5528         (block_iter_match_step): New functions.
5529         (block_iterator_first, block_iterator_next)
5530         (block_iter_name_first, block_iter_name_next)
5531         (block_iter_match_first, block_iter_match_next): Rewrite.
5532         (get_block_symtab): New function.
5533
5534 2012-05-10  Tom Tromey  <tromey@redhat.com>
5535
5536         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5537         set_block_symtab.
5538         * jit.c (finalize_symtab): Use allocate_global_block,
5539         set_block_symtab.
5540         * buildsym.c (finish_block_internal): New function, from old
5541         finish_block.
5542         (finish_block): Rewrite.
5543         (end_symtab): Use finish_block_internal, set_block_symtab.
5544         * block.h (struct global_block): New.
5545         (allocate_global_block, set_block_symtab): Declare.
5546         * block.c (allocate_global_block, set_block_symtab): New
5547         functions.
5548
5549 2012-05-10  Tom Tromey  <tromey@redhat.com>
5550
5551         * psymtab.c (partial_map_expand_apply): Add assertion.
5552         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5553         (psymtab_to_symtab): Find unshared psymtab.
5554         (dump_psymtab): Print including psymtabs.
5555         (recursively_search_psymtabs): New function.
5556         (expand_symtabs_matching_via_partial): Use it.
5557         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5558         fields.
5559         (enum psymtab_search_status): New.
5560
5561 2012-05-10  Tom Tromey  <tromey@redhat.com>
5562
5563         * tracepoint.c (scope_info): Update.
5564         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5565         (find_pc_sect_symtab, search_symbols)
5566         (default_make_symbol_completion_list_break_on)
5567         (make_file_symbol_completion_list): Update.
5568         * symmisc.c (dump_symtab_1): Update.
5569         * stack.c (print_frame_args, iterate_over_block_locals)
5570         (print_frame_labels, iterate_over_block_arg_vars): Update.
5571         * python/py-block.c (block_object) <dict>: Remove.
5572         <block>: New field.
5573         <iter>: Change type.
5574         (blpy_iter): Update.
5575         (blpy_block_syms_iternext): Update.
5576         * psymtab.c (map_block): Use block iterators.
5577         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5578         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5579         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5580         * infrun.c (check_exception_resume): Update.
5581         * cp-support.c (make_symbol_overload_list_block): Update.
5582         * coffread.c (patch_opaque_types): Update.
5583         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5584         * block.h (struct block_iterator): New.
5585         (block_iterator_first, block_iterator_next, block_iter_name_first)
5586         (block_iter_name_next, block_iter_match_first)
5587         (block_iter_match_next): Declare.
5588         (ALL_BLOCK_SYMBOLS): Redefine.
5589         * block.c (block_iterator_first, block_iterator_next)
5590         (block_iter_name_first, block_iter_name_next)
5591         (block_iter_match_first, block_iter_match_next): New functions.
5592         * ada-lang.c (ada_add_block_symbols)
5593         (ada_make_symbol_completion_list): Use block iterator.
5594
5595 2012-05-10  Tom Tromey  <tromey@redhat.com>
5596
5597         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5598         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5599         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5600         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5601         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5602         Update.
5603
5604 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5605
5606         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5607         print-file-var-lib2.c, print-file-var-main.c and
5608         print-file-var.exp (located in gdb/testsuite/gdb.base).
5609
5610 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5611
5612         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5613         try locating the symbol in the symbol's own objfile first, before
5614         extending the search to all objfiles.
5615         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5616         out of lookup_symbol_aux_symtabs.
5617         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5618         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5619         Do not search EXCLUDE_OBJFILE.
5620         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5621         (lookup_symbol_global): Search for matches in the block's objfile
5622         first, before searching all other objfiles.
5623
5624 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5625
5626         * printcmd.c (set_command): Add pre/post inc/dec.
5627
5628 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5629
5630         * gdb.1: Document -ex option.
5631
5632 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5633
5634         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5635         * inferior.h (AT_SYMBOL): Delete.
5636
5637 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5638
5639         * mips-tdep.c (mips_push_dummy_code): New function.
5640         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5641         ON_STACK and install mips_push_dummy_code as our gdbarch
5642         push_dummy_code routine.
5643
5644 2012-05-09  Pedro Alves  <palves@redhat.com>
5645
5646         * target.c (set_maintenance_target_async_permitted): Rename to ...
5647         (set_target_async_command): ... this.
5648         (show_maintenance_target_async_permitted): Rename to ...
5649         (show_target_async_command): ... this.
5650         (initialize_targets): Adjust.
5651
5652 2012-05-08  Doug Evans  <dje@google.com>
5653
5654         * go-exp.y (classify_name): Add missing assignment of fields of
5655         yylval.ssym.
5656
5657 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5658
5659         Display the ">" prompt in interactive mode while reading canned
5660         commands, even when the current interpreter is MI.
5661
5662         * interps.c (interp_set_temp): New function.
5663
5664         * interps.h (interp_set_temp): Add prototype.
5665
5666         * cli/cli-script.c (restore_interp): New cleanup function.
5667         (read_command_lines): Temporarily override the current interpreter
5668         with CLI and arrange for restoring the original one.
5669
5670 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5671
5672         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5673
5674 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5675
5676         * probe.c (parse_probes): Move conditional to check for
5677         debuginfo files from here...
5678         * stap-probe.c (stap_get_probes): ... to here.
5679
5680 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5681             H.J. Lu  <hongjiu.lu@intel.com>
5682
5683         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5684         `movl %esp, %ebp' for the X32 ABI.
5685
5686 2012-05-07  Tom Tromey  <tromey@redhat.com>
5687
5688         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5689         get_DW_TAG_name.
5690         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5691         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5692         (dwarf_stack_op_name): Remove.
5693         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5694         (decode_locdesc): Use get_DW_OP_name.
5695         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5696         (dwarf2_compile_expr_to_ax): Likewise.
5697         (disassemble_dwarf_expression): Likewise.
5698         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5699
5700 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5701
5702         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5703         (sh_linux_sigtramp_cache): New function.
5704         (sh_linux_sigreturn_init): New function.
5705         (sh_linux_rt_sigreturn_init): New function.
5706         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5707         patterns.
5708         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5709         syscall codes.
5710         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5711         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5712         (sh_linux_init_abi): Add init calls to register new tramp_frame
5713         definitions under 32-bit SH, update comments.
5714
5715 2012-05-07  Pedro Alves  <palves@redhat.com>
5716
5717         PR gdb/10952
5718
5719         * amd64-linux-tdep.c: Include glibc-tdep.h.
5720         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5721         gdbarch_skip_solib_resolver callback.
5722
5723 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5724
5725         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5726         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5727         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5728         (add_auto_load_safe_path): Change the error message.
5729         (_initialize_auto_load): Change the "safe-path" help text.
5730         * configure: Regenerate
5731         * configure.ac (--without-auto-load-safe-path): Set
5732         WITH_AUTO_LOAD_SAFE_PATH to /.
5733
5734 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5735
5736         * stap-probe.h: Do not include unecessary `probe.h'.
5737
5738 2012-05-05  Alan Modra  <amodra@gmail.com>
5739
5740         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5741         bfd_und_section_ptr.
5742         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5743         and bfd_com_section_ptr.
5744
5745 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5746
5747         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5748
5749 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5750
5751         * windows-nat.h (segment_register_p_ftype): New typedef.
5752         (windows_set_segment_register_p): Add declaration.
5753         * windows-nat.c (segment_register_p): New static global.
5754         (windows_set_segment_register_p): New function.
5755         (do_windows_fetch_inferior_registers): Add special handling
5756         for segment registers.
5757         * amd64-windows-nat.c: #include "amd64-tdep.h".
5758         (amd64_windows_segment_register_p): New function.
5759         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5760         * i386-windows-nat.c: #include "i386-tdep.h".
5761         (i386_windows_segment_register_p): New function.
5762         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5763
5764 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5765
5766         * printcmd.c (set_command): Emit a warning if the expression is not
5767         an assignment.
5768
5769 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5770
5771         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5772         Make static.
5773
5774 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5775
5776         * stap-probe.c (stap_is_operator): Change declaration.
5777         (stap_get_opcode): Change return value.
5778         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5779         `stap_parse_argument_1'.
5780
5781 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5782
5783         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5784         debug log.
5785
5786 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5787
5788         Add two new methods global_block and static_block to gdb.Symtab
5789         objects.
5790         * NEWS (Python scripting): Add entry about the new methods.
5791         * python/py-symtab.c (stpy_global_block): New function which
5792         implements the gdb.Symtab.global_block() method.
5793         (stpy_static_block): New function which implements the
5794         gdb.Symtab.static_block() method.
5795         (symtab_object_methods): Add entries for the two new methods.
5796
5797 2012-05-03  Doug Evans  <dje@google.com>
5798
5799         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5800         files.
5801
5802 2012-05-03  Yao Qi  <yao@codesourcery.com>
5803
5804         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5805         space.
5806         (i386_process_record): Ditto.
5807
5808 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5809
5810         * infcall.c (unwind_on_signal_p): Make static.
5811
5812 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5813
5814         * sol-thread.c (solaris_pid_to_str): Make static.
5815         (_initialize_sol_thread): Add prototype.
5816
5817 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5818
5819         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5820
5821 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5822
5823         * MAINTAINERS: Remove myself.
5824
5825 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5826
5827         Fix --without-auto-load-safe-path for MS-Windows host platform.
5828         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5829
5830 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5831
5832         * gdb_curses.h: Undefine KEY_EVENT before including curses
5833         headers.  Move "#undef MOUSE_MOVED" before any curses header
5834         inclusion.
5835
5836 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5837
5838         * features/i386/i386-mmx-linux.c: Regenerate.
5839         * features/rs6000/powerpc-32.c: Likewise.
5840         * features/rs6000/powerpc-32l.c: Likewise.
5841         * features/rs6000/powerpc-403.c: Likewise.
5842         * features/rs6000/powerpc-403gc.c: Likewise.
5843         * features/rs6000/powerpc-405.c: Likewise.
5844         * features/rs6000/powerpc-505.c: Likewise.
5845         * features/rs6000/powerpc-601.c: Likewise.
5846         * features/rs6000/powerpc-602.c: Likewise.
5847         * features/rs6000/powerpc-603.c: Likewise.
5848         * features/rs6000/powerpc-604.c: Likewise.
5849         * features/rs6000/powerpc-64.c: Likewise.
5850         * features/rs6000/powerpc-64l.c: Likewise.
5851         * features/rs6000/powerpc-750.c: Likewise.
5852         * features/rs6000/powerpc-860.c: Likewise.
5853         * features/rs6000/powerpc-e500.c: Likewise.
5854         * features/rs6000/powerpc-e500l.c: Likewise.
5855         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5856         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5857         * features/rs6000/rs6000.c: Likewise.
5858
5859 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5860
5861         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5862         variable.
5863         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5864         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5865         (stap_parse_argument) <e>: Likewise.
5866         (handle_stap_probe) <byte_order>: Likewise.
5867
5868 2012-04-30  Doug Evans  <dje@google.com>
5869
5870         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5871         init_and_read_dies_worker.  All callers updated.
5872         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5873         replaced with init_cutu_and_read_dies.
5874         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5875         (find_partial_die): Remove FIXME.  Don't free current CU.
5876
5877 2012-04-30  Sterling Augustine  <saugustine@google.com>
5878
5879         * contrib: New directory.
5880         * contrib/test_pubnames_and_indexes.py: New file.
5881
5882 2012-04-30  Doug Evans  <dje@google.com>
5883
5884         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5885         All callers updated.
5886         (init_cu_die_reader): Verify the section is non-empty.
5887         (dwarf_decode_line_header): Don't dereference section->asection
5888         until we know the section is present.
5889
5890 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5891
5892         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5893         probes.
5894
5895 2012-04-29  Yao Qi  <yao@codesourcery.com>
5896
5897         * gdb-code-style.el: New hook gdb-markup-hook
5898         and gdb-comment-hook.
5899
5900 2012-04-28  Doug Evans  <dje@google.com>
5901
5902         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5903         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5904         objfile->obfd.
5905         * symfile.h (dwarf2_debug_sections): New member addr.
5906         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5907         (ctx_no_get_addr_index): New function.
5908         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5909         (ctx_no_get_addr_index): Declare.
5910         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5911         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5912         (dwarf_expr_ctx_funcs): Update.
5913         (needs_get_addr_index): New function.
5914         (needs_frame_ctx_funcs): Update.
5915         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5916         * dwarf2read.c: #include "gdbcore.h".
5917         (dwarf2_per_objfile): New members addr, dwo_files.
5918         (dwarf2_elf_names): Add entry for addr.
5919         (struct dwo_section_names): New type.
5920         (dwo_section_names): New static global.
5921         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5922         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5923         old debug_types_section member updated to use this.
5924         Rename member debug_types_section to info_or_types_section,
5925         all uses updated.
5926         (signatured_type): Rename member type_offset to type_offset_in_tu,
5927         all uses updated.  New member type_offset_in_section.
5928         (struct dwo_sections): New type.
5929         (struct dwo_unit): New type.
5930         (struct dwo_file): New type.
5931         (die_reader_specs): New member dwo_file.
5932         (dwarf2_locate_sections): Watch for .debug_addr.
5933         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5934         (dwarf2_read_section): Get bfd of section from bfd's asection,
5935         instead of objfile.
5936         (create_cus_from_index): Initialize the_cu->info_or_types_section.
5937         (create_signatured_type_table_from_index): Initialize
5938         sig_type->info_or_types_section.
5939         (dw2_get_file_names): Statement lists for type units with DWO files
5940         live in the DWO file.
5941         (create_debug_types_hash_table): New function.
5942         (create_all_type_units): Rewrite.
5943         (init_cu_die_reader): New arg dwo_file, all callers updated.
5944         (init_and_read_dies_worker): Get section from
5945         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
5946         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5947         continue reading the CU/TU from there.
5948         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5949         updated.  Get section from this_cu->info_or_types_section.
5950         (create_all_comp_units): Initialize this_cu->info_or_types_section.
5951         (skip_one_die): New cases DW_FORM_GNU_addr_index,
5952         DW_FORM_GNU_str_index.
5953         (hash_dwo_file, eq_dwo_file): New functions.
5954         (allocate_dwo_file_hash_table): New function.
5955         (hash_dwo_unit, eq_dwo_unit): New functions.
5956         (allocate_dwo_unit_table): New function.
5957         (dwarf2_locate_dwo_sections): New function.
5958         (struct create_dwo_info_table_data): New type.
5959         (create_debug_info_hash_table_reader): New function.
5960         (create_debug_info_hash_table): New function.
5961         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5962         (lookup_dwo_file): New function.
5963         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5964         (free_dwo_file, free_dwo_file_cleanup): New functions.
5965         (free_dwo_file_from_slot, free_dwo_files): New functions.
5966         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5967         (dwarf2_record_block_ranges): Ditto.
5968         (read_partial_die): Ditto.
5969         (process_enumeration_scope): Update to use type_offset_in_section.
5970         (read_full_die_1): New function.
5971         (read_full_die): Rewrite.
5972         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5973         DW_FORM_GNU_str_index.
5974         (read_addr_index_1, read_addr_index): New functions.
5975         (read_addr_index_from_leb128): New function.
5976         (struct dwarf2_read_addr_index_data): New type.
5977         (dwarf2_read_addr_index_reader): New function.
5978         (dwarf2_read_addr_index): New function.
5979         (read_str_index): New function.
5980         (leb128_size): New function.
5981         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5982         If processing a type unit from a DWO file, get the line section
5983         from the DWO file.
5984         (var_decode_location): Watch for DW_OP_GNU_addr_index.
5985         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5986         DW_FORM_GNU_str_index.
5987         (lookup_die_type): Check whether section offset of type's die is
5988         known before looking it up.  Remove assert.  Condition can
5989         legimately happen for inter-cu type references.
5990         (dwarf_attr_name): Handle Fission attributes.
5991         (dwarf_form_name): Handle Fission forms.
5992         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5993         DW_FORM_GNU_str_index.
5994         (follow_die_sig): Update to use type_offset_in_section.
5995         (decode_locdesc): New case DW_OP_GNU_addr_index.
5996         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5997         DW_FORM_GNU_str_index.
5998         (cu_debug_loc_section): New function.
5999         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6000         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6001         Free DWO files if present.
6002         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6003
6004         Refactor DIE reading.
6005         * dwarf2read.c (dwarf2_per_objfile): Replace members
6006         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6007         (die_reader_specs): New member "die_section".  Temporarily make
6008         member "buffer" non-const, pending constifying all info_ptr uses.
6009         (die_reader_func_ftype): New typedef.
6010         (dw2_get_file_names_reader): New function.
6011         (dw2_get_file_names): Rewrite.
6012         (read_and_check_type_unit_head): Rename arg type_offset to
6013         type_offset_in_tu.
6014         (create_all_type_units): Improve debugging message.
6015         Improve dummy type unit check.
6016         (init_cu_die_reader): New arg "section".  All callers updated.
6017         (init_and_read_dies_worker): New function.
6018         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6019         (init_cutu_and_read_dies_no_follow): New function.
6020         (init_cutu_and_read_dies_simple): New function.
6021         (process_psymtab_comp_unit_reader): New function.
6022         (process_psymtab_comp_unit): Delete args section,
6023         is_debug_types_section.  Rewrite.  All callers updated.
6024         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6025         All callers updated.  Rewrite.
6026         (load_partial_comp_unit_reader): New function.
6027         (load_partial_comp_unit): Rewrite.
6028         (skip_children): New arg reader.  Delete args buffer, cu.
6029         All callers updated.
6030         (skip_one_die): New arg reader.  Delete args buffer, cu.
6031         All callers updated.
6032         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6033         All callers updated.
6034         (load_full_comp_unit_reader): New function.
6035         (load_full_comp_unit): Rewrite.
6036         (read_comp_unit): Delete.
6037         (read_die_and_children_1): Delete, contents moved ...
6038         (read_die_and_children): ... here.
6039         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6040         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6041         All callers updated.
6042         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6043         All callers updated.
6044         (find_partial_die): Rewrite load_all_dies support.
6045         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6046         All callers updated.
6047         (read_attribute): New arg reader.  Delete args abfd, cu.
6048         All callers updated.
6049         (load_full_type_unit): Add assert.
6050         (read_signatured_type_reader): New function.
6051         (read_signatured_type): Rewrite.
6052         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6053         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6054         All callers updated.  Set per_cu->cu = NULL after freeing it.
6055         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6056         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6057         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6058         (set_die_type): Update.
6059         (get_die_type_at_offset): Update.
6060         (read_file_scope): Call prepare_one_comp_unit.
6061         (read_type_unit_scope): Ditto.
6062         (prepare_one_comp_unit): Set producer if present.
6063
6064 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6065
6066         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6067          gettext function on `error'.
6068
6069 2012-04-27  Doug Evans  <dje@google.com>
6070
6071         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6072         is empty.
6073
6074 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6075             Tom Tromey  <tromey@redhat.com>
6076
6077         * breakpoint.c (struct breakpoint_objfile_data)
6078         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6079         <exception_probes>: New fields.
6080         (free_breakpoint_probes): New function.
6081         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6082         `_Unwind_DebugHook'.
6083         (create_exception_master_breakpoint): Likewise.
6084         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6085         * infrun.c: Including necessary header files for handling SystemTap
6086         probes.
6087         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6088         via SystemTap probes.
6089         (check_exception_resume): Remove `func' argument.  Handle exception
6090         unwinding breakpoint set via a SystemTap probe.
6091         (insert_exception_resume_from_probe): New function.
6092
6093 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6094             Tom Tromey  <tromey@redhat.com>
6095             Jan Kratochvil  <jan.kratochvil@redhat.com>
6096
6097         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6098         (COMMON_OBS): Likewise.
6099         (HFILES_NO_SRCDIR): Add `probe'.
6100         * NEWS: Mention support for static and SystemTap probes.
6101         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6102         SystemTap probes' arguments parser.
6103         * arm-linux-tdep.c: Including headers needed to perform the parsing
6104         of SystemTap probes' arguments.
6105         (arm_stap_is_single_operand): New function.
6106         (arm_stap_parse_special_token): Likewise.
6107         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6108         probes' arguments parser.
6109         * ax-gdb.c (require_rvalue): Removing static declaration.
6110         (gen_expr): Likewise.
6111         * ax-gdb.h (gen_expr): Declaring function.
6112         (require_rvalue): Likewise.
6113         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6114         (bkpt_probe_breakpoint_ops): New variable.
6115         (momentary_breakpoint_from_master): Set the `probe' value.
6116         (add_location_to_breakpoint): Likewise.
6117         (break_command_1): Using proper breakpoint_ops according to the
6118         argument passed by the user in the command line.
6119         (bkpt_probe_insert_location): New function.
6120         (bkpt_probe_remove_location): Likewise.
6121         (bkpt_probe_create_sals_from_address): Likewise.
6122         (bkpt_probe_decode_linespec): Likewise.
6123         (tracepoint_probe_create_sals_from_address): Likewise.
6124         (tracepoint_probe_decode_linespec): Likewise.
6125         (tracepoint_probe_breakpoint_ops): New variable.
6126         (trace_command): Using proper breakpoint_ops according to the
6127         argument passed by the user in the command line.
6128         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6129         static probes on breakpoints and tracepoints.
6130         * breakpoint.h (struct bp_location) <probe>: New field.
6131         * cli-utils.c (skip_spaces_const): New function.
6132         (extract_arg): Likewise.
6133         * cli-utils.h (skip_spaces_const): Likewise.
6134         (extract_arg): Likewise.
6135         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6136         * configure.ac: Append `stap-probe.o' to be generated when ELF
6137         support is present.
6138         * configure: Regenerate.
6139         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6140         * elfread.c: Include `probe.h' and `arch-utils.h'.
6141         (probe_key): New variable.
6142         (elf_get_probes): New function.
6143         (elf_get_probe_argument_count): Likewise.
6144         (elf_evaluate_probe_argument): Likewise.
6145         (elf_compile_to_ax): Likewise.
6146         (elf_symfile_relocate_probe): Likewise.
6147         (stap_probe_key_free): Likewise.
6148         (elf_probe_fns): New variable.
6149         (elf_sym_fns): Add `sym_probe_fns' value.
6150         (elf_sym_fns_lazy_psyms): Likewise.
6151         (elf_sym_fns_gdb_index): Likewise.
6152         (_initialize_elfread): Initialize objfile cache for static
6153         probes.
6154         * gdb_vecs.h (struct probe): New forward declaration.
6155         (probe_p): New VEC declaration.
6156         * gdbarch.c: Regenerate.
6157         * gdbarch.h: Regenerate.
6158         * gdbarch.sh (stap_integer_prefix): New variable.
6159         (stap_integer_suffix): Likewise.
6160         (stap_register_prefix): Likewise.
6161         (stap_register_suffix): Likewise.
6162         (stap_register_indirection_prefix): Likewise.
6163         (stap_register_indirection_suffix): Likewise.
6164         (stap_gdb_register_prefix): Likewise.
6165         (stap_gdb_register_suffix): Likewise.
6166         (stap_is_single_operand): New function.
6167         (stap_parse_special_token): Likewise.
6168         (struct stap_parse_info): Forward declaration.
6169         * i386-tdep.c: Including headers needed to perform the parsing
6170         of SystemTap probes' arguments.
6171         (i386_stap_is_single_operand): New function.
6172         (i386_stap_parse_special_token): Likewise.
6173         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6174         probes' arguments parser.
6175         * i386-tdep.h (i386_stap_is_single_operand): New function.
6176         (i386_stap_parse_special_token): Likewise.
6177         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6178         * mipsread.c (ecoff_sym_fns): Likewise.
6179         * objfiles.c (objfile_relocate1): Support relocation for static
6180         probes.
6181         * parse.c (prefixify_expression): Remove static declaration.
6182         (initialize_expout): Likewise.
6183         (reallocate_expout): Likewise.
6184         * parser-defs.h (initialize_expout): Declare function.
6185         (reallocate_expout): Likewise.
6186         (prefixify_expression): Likewise.
6187         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6188         of SystemTap probes' arguments.
6189         (ppc_stap_is_single_operand): New function.
6190         (ppc_stap_parse_special_token): Likewise.
6191         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6192         probes' arguments parser.
6193         * probe.c: New file, for generic statically defined probe support.
6194         * probe.h: Likewise.
6195         * s390-tdep.c: Including headers needed to perform the parsing of
6196         SystemTap probes' arguments.
6197         (s390_stap_is_single_operand): New function.
6198         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6199         probes' arguments parser.
6200         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6201         * stap-probe.c: New file, for SystemTap probe support.
6202         * stap-probe.h: Likewise.
6203         * symfile.h: Include `gdb_vecs.h'.
6204         (struct sym_probe_fns): New struct.
6205         (struct sym_fns) <sym_probe_fns>: New field.
6206         * symtab.c (init_sal): Initialize `probe' field.
6207         * symtab.h (struct probe): Forward declaration.
6208         (struct symtab_and_line) <probe>: New field.
6209         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6210         locations.
6211         (stop_tracing): Likewise.
6212         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6213
6214 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6215             Tom Tromey  <tromey@redhat.com>
6216
6217         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6218         and to compile agent expressions.
6219         * infrun.c (siginfo_make_value): New argument `ignore'.
6220         (siginfo_funcs): New struct.
6221         (_initialize_infrun): New argument when calling
6222         `create_internalvar_type_lazy'.
6223         * thread.c (thread_id_make_value): New argument `ignore'.
6224         (thread_funcs): New struct.
6225         (_initialize_thread): New argument when calling
6226         `create_internalvar_type_lazy'.
6227         * tracepoint.c (sdata_make_value): New argument `ignore'.
6228         (sdata_funcs): New struct.
6229         (_initialize_tracepoint): New argument when calling
6230         `create_internalvar_type_lazy'.
6231         * value.c (make_value): New struct.
6232         (create_internalvar_type_lazy): New argument `data'.
6233         (compile_internalvar_to_ax): New function.
6234         (value_of_internalvar): Properly handling `make_value' case.
6235         (clear_internalvar): Likewise.
6236         (show_convenience): Adding `TRY_CATCH' block.
6237         * value.h (internalvar_make_value): Delete, replace by...
6238         (struct internalvar_funcs): ... this.
6239         (create_internalvar_type_lazy) <fun>: Delete argument.
6240         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6241         (compile_internalvar_to_ax): New function.
6242         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6243         (tlb_funcs): New struct.
6244         (_initialize_windows_tdep): New argument when calling
6245         `create_internalvar_type_lazy'.
6246
6247 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6248
6249         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6250         see whether it is an address or a constant offset from DW_AT_low_pc.
6251         (dwarf2_record_block_ranges): Likewise.
6252         (read_partial_die): Likewise.
6253
6254 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6255
6256         * MAINTAINERS (Write After Approval): Add myself to the list.
6257
6258 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6259
6260         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6261         (proc_prettyprint_signal): Likewise.
6262         (proc_prettyprint_faultset): Likewise.
6263         (proc_prettyprint_fault): Likewise.
6264         (proc_prettyprint_actionset): Likewise.
6265         (proc_prettyprint_flags): Move to new proc-flags.c section.
6266         (proc_prettyfprint_flags): New prototype.
6267         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6268         (proc_syscall, proc_cursig): Likewise.
6269         (proc_set_kill_on_last_close): Likewise.
6270         (proc_unset_kill_on_last_close): Likewise.
6271         (proc_set_watchpoint): Make static.
6272         (proc_delete_dead_threads): Likewise.
6273         (procfs_set_watchpoint): Likewise.
6274         (_initialize_procfs): Add prototype.
6275         * proc-events.c: Include proc-utils.h.
6276         (init_syscall_table): Make static.
6277         * proc-api.c (_initialize_proc_api): Add prototype.
6278         * proc-flags.c: Include proc-utils.h.
6279
6280 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6281
6282         * configure.ac: Add AC_ARG_PROGRAM.
6283         * configure: Regenerate.
6284
6285 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6286
6287         Fix DW_AT_lower_bound defaults for DWARF-4+.
6288         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6289         high.  New variable low_default_is_valid.  Implement DWARF-4+
6290         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6291         no default by the DWARF standard.
6292
6293 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6294             Maciej W. Rozycki  <macro@codesourcery.com>
6295
6296         * infrun.c (handle_inferior_event): Move the check for return
6297         trampolines ahead of the check for function trampolines.
6298         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6299         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6300         (mips_str_mips16_ret_stub): Likewise.
6301         (mips_str_call_fp_stub): Likewise.
6302         (mips_str_call_stub): Likewise.
6303         (mips_str_fn_stub): Likewise.
6304         (mips_str_pic): Likewise.
6305         (mips_in_frame_stub): New function.
6306         (mips_unwind_pc): Return the return address rather than the PC
6307         if the PC of an intermediate frame is inside a call thunk.
6308         (mips_is_stub_suffix): New function.
6309         (mips_is_stub_mode): Likewise.
6310         (mips_get_mips16_fn_stub_pc): Likewise.
6311         (mips_skip_mips16_trampoline_code): Update to handle all the
6312         currently generated stub types.  Don't recurse into __fn_stub
6313         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6314         Use cooked register accesses.
6315         (mips_in_return_stub): Reintroduce function.
6316         (mips_skip_trampoline_code): Traverse trampolines recursively.
6317         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6318
6319 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6320
6321         GDB 7.4.1 released.
6322
6323 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6324
6325         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6326         * features/arm-with-m-vfp-d16.xml: New file. Describes
6327         Cortex-M with VFPv4-sp-d16 FPU register layout.
6328         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6329         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6330         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6331         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6332         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6333
6334 2012-04-25  Doug Evans  <dje@google.com>
6335
6336         * cli/cli-decode.c (print_doc_line): Use stream instead of
6337         current_uiout.
6338
6339 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6340
6341         * features/arm-with-iwmmxt.c: Regenerate.
6342         * features/arm-with-m-fpa-layout.c: Likewise.
6343         * features/arm-with-m.c: Likewise.
6344         * features/arm-with-neon.c: Likewise.
6345         * features/arm-with-vfpv2.c: Likewise.
6346         * features/arm-with-vfpv3.c: Likewise.
6347         * features/mips-dsp-linux.c: Likewise.
6348         * features/mips-linux.c: Likewise.
6349         * features/mips64-dsp-linux.c: Likewise.
6350         * features/mips64-linux.c: Likewise.
6351         * features/s390-linux32.c: Likewise.
6352         * features/s390-linux32v1.c: Likewise.
6353         * features/s390-linux32v2.c: Likewise.
6354         * features/s390-linux64.c: Likewise.
6355         * features/s390-linux64v1.c: Likewise.
6356         * features/s390-linux64v2.c: Likewise.
6357         * features/s390x-linux64.c: Likewise.
6358         * features/s390x-linux64v1.c: Likewise.
6359         * features/s390x-linux64v2.c: Likewise.
6360         * features/tic6x-c62x-linux.c: Likewise.
6361         * features/tic6x-c62x.c: Likewise.
6362         * features/tic6x-c64x-linux.c: Likewise.
6363         * features/tic6x-c64x.c: Likewise.
6364         * features/tic6x-c64xp-linux.c: Likewise.
6365         * features/tic6x-c64xp.c: Likewise.
6366         * target-descriptions.c: Only generate `field_type' and `type'
6367         variables when needed.
6368
6369 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6370
6371         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6372
6373 2012-04-25  Doug Evans  <dje@google.com>
6374
6375         Initial pass at Go language support.
6376         * NEWS: Mention Go.
6377         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6378         go-valprint.c.
6379         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6380         (YYFILES): Add go-exp.c.
6381         (YYOBJ): Add go-exp.o.
6382         (local-maintainer-clean): Delete go-exp.c.
6383         * defs.h (enum language): Add language_go.
6384         * dwarf2read.c: #include "go-lang.h".
6385         (fixup_go_packaging): New function.
6386         (process_full_comp_unit): Call it when processing Go CUs.
6387         (dwarf2_physname): Add Go support.
6388         (read_file_scope): Handle missing language spec for GNU Go.
6389         (set_cu_language): Handle DW_LANG_Go.
6390         * go-exp.y: New file.
6391         * go-lang.h: New file.
6392         * go-lang.c: New file.
6393         * go-typeprint.c: New file.
6394         * go-valprint.c: New file.
6395         * symtab.c: #include "go-lang.h".
6396         (symbol_set_language): Handle language_go.
6397         (symbol_find_demangled_name, symbol_set_names): Ditto.
6398         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6399
6400 2012-04-24  Jim Meyering  <meyering@redhat.com>
6401
6402         avoid a few strncpy-induced buffer overruns
6403         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6404         fname and psargs before trying to concatenate.
6405         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6406         "name" before applying strchr.
6407
6408 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6409
6410         * CONTRIBUTE: Use unified diff instead of context diff when
6411         generating patches.
6412
6413 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6414
6415         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6416         code.  Handle JR.HB correctly.
6417
6418 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6419
6420         * mips-tdep.c
6421         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6422         with the other MIPS16 helpers.
6423
6424 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6425
6426         * observer.sh: Conditionally declare `args', thus cleaning up
6427         unused instances of this variable.
6428
6429 2012-04-24  Yao Qi  <yao@codesourcery.com>
6430
6431         Revert this patch to allow breakpoint always-inserted
6432         in record target.
6433         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6434         * breakpoint.c: Include record.h.
6435         (breakpoints_always_inserted_mode): Return false when the record
6436         target is in use.
6437
6438         * breakpoint.c (iterate_over_bp_locations): New.
6439         * breakpoint.h: Declare.
6440         New typedef walk_bp_location_callback.
6441         * record.c (record_open): Call record_init_record_breakpoints.
6442         (record_sync_record_breakpoints): New.
6443         (record_init_record_breakpoints): New.
6444         * NEWS: Mention supporting breakpoint always-inserted mode in
6445         record target.
6446
6447 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6448
6449         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6450         any thread.
6451
6452 2012-04-24  Yao Qi  <yao@codesourcery.com>
6453
6454         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6455         (is_catchpoint): ... it.
6456         (print_one_breakpoint_location): Caller update.
6457         * breakpoint.h: Update declaration.
6458
6459 2012-04-23  David S. Miller  <davem@davemloft.net>
6460
6461         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6462
6463 2012-04-23  Tom Tromey  <tromey@redhat.com>
6464
6465         * buildsym.c (add_free_pendings): Remove.
6466         * buildsym.h (add_free_pendings): Remove.
6467
6468 2012-04-23  Doug Evans  <dje@google.com>
6469
6470         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6471         attr.u.unsnd instead of attr.u.addr.
6472         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6473         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6474         DW_FORM_ref_udata.
6475         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6476         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6477         DW_FORM_ref_udata.
6478         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6479
6480 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6481
6482         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6483         (mips_o32_return_value): Likewise.
6484         (mips_o64_return_value): Likewise.
6485
6486 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6487
6488         * ada-lang.c (ada_evaluate_subexp): Add cases for
6489         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6490         their treatment in eval.c.
6491
6492 2012-04-21  David S. Miller  <davem@davemloft.net>
6493
6494         * sparc-tdep.c (X_DISP10): Define.
6495         (sparc_analyze_control_transfer): Handle compare-and-branch.
6496
6497 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6498
6499         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6500         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6501
6502 2012-04-20  Nigel Stephens  <nigel@mips.com>
6503             Maciej W. Rozycki  <macro@codesourcery.com>
6504
6505         * mips-tdep.c (mips_float_register_p): New function.
6506         (mips_convert_register_float_case_p): Use mips_float_register_p.
6507         (mips_register_type): Likewise.
6508         (mips_print_register): Likewise.
6509         (print_gp_register_row): Likewise.
6510         (mips_print_registers_info): Likewise.
6511
6512 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6513
6514         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6515         of mips16 symbols.
6516
6517 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6518
6519         * MAINTAINERS (Write After Approval): Add myself to the list.
6520
6521 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6522
6523         * MAINTAINERS: Update my e-mail address.
6524
6525 2012-04-20  Pedro Alves  <palves@redhat.com>
6526
6527         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6528         $srcdir.
6529         * configure: Regenerate.
6530
6531 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6532
6533         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6534         declaration.
6535         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6536
6537 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6538
6539         Fix compilation compatibility with python-2.4
6540         * python/py-type.c (convert_field): Cast ADDRSTRING for
6541         PyObject_SetAttrString as non-const.  New comment.
6542
6543 2012-04-19  Tom Tromey  <tromey@redhat.com>
6544
6545         * top.c (quit_target): Use all_cleanups.
6546         * main.c (captured_command_loop): Use all_cleanups.
6547         * exceptions.c (throw_exception): Use all_cleanups.
6548
6549 2012-04-19  Pedro Alves  <palves@redhat.com>
6550
6551         * Makefile.in (GNULIB_BUILDDIR): New.
6552         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6553         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6554         (CLEANDIRS). Remove gnulib/import.
6555         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6556         (all-lib): Ditto.
6557         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6558         (gnulib/import/Makefile): Replace gnulib/import with
6559         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6560         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6561         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6562         acx_configure_dir.m4.
6563         * acinclude.m4: Include acx_configure_dir.m4.
6564         * acx_configure_dir.m4: New file.
6565         * aclocal.m4: Regenerate.
6566         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6567         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6568         (GNULIB): New variable.
6569         (GNULIB_STDINT_H): Adjust.
6570         (AC_OUTPUT): Don't output gnulib/Makefile.
6571         * gdb/defs.h: Include build-gnulib/config.h.
6572         * aclocal.m4: Regenerate.
6573         * config.in: Regenerate.
6574         * configure: Regenerate.
6575
6576         * gnulib/Makefile.in: New file.
6577         * gnulib/configure.ac: New file.
6578         * gnulib/aclocal.m4: New file.
6579         * gnulib/config.in: New file.
6580         * gnulib/configure: New file.
6581         * gnulib/: Re-run gnulib-tool to adjust.
6582
6583 2012-04-19  Doug Evans  <dje@google.com>
6584
6585         * cleanups.h (struct cleanup): Move to cleanups.c.
6586         (make_cleanup_dtor_ftype): New typedef.
6587         (make_cleanup_dtor): Use it.
6588         (ALL_CLEANUPS): Replace with ...
6589         (all_cleanups): ... this.  Declare.  All uses updated.
6590         * cleanups.c: #include "gdb_assert.h".
6591         (sentinel_cleanup): New static global.
6592         (SENTINEL_CLEANUP): Define.
6593         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6594         (make_my_cleanup2): Assert result is non-NULL.
6595         (all_cleanups): New function.
6596         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6597         of NULL.
6598
6599 2012-04-19  Pedro Alves  <palves@redhat.com>
6600
6601         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6602         Adjust paths to gnulib imported files.
6603
6604 2012-04-19  Pedro Alves  <palves@redhat.com>
6605
6606         * gnulib/: Move whole directory ...
6607         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6608         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6609         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6610         (aclocal_m4_deps): Adjust.
6611         * aclocal.m4: Regenerate.
6612         * configure: Regenerate.
6613         * configure.ac: Adjust AC_OUTPUT output.
6614
6615 2012-04-19  Yao Qi  <yao@codesourcery.com>
6616
6617         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6618         (vec.o): New rule.
6619         * vec.c: Move it ...
6620         * common/vec.c: ... here.
6621         * vec.h: Move it ...
6622         * common/vec.h: ... here.
6623
6624 2012-04-19  Yao Qi  <yao@codesourcery.com>
6625
6626         * gdb-code-style.el: New.
6627
6628 2012-04-18  Pedro Alves  <palves@redhat.com>
6629
6630         Update gnulib from latest git.
6631         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6632
6633         * gnulib/Makefile.am: Update.
6634         * gnulib/dummy.c: Update.
6635         * gnulib/extra/arg-nonnull.h: Update.
6636         * gnulib/extra/c++defs.h: Update.
6637         * gnulib/extra/update-copyright: Update.
6638         * gnulib/extra/warn-on-use.h: Update.
6639         * gnulib/inttypes.in.h: Update.
6640         * gnulib/m4/00gnulib.m4: Update.
6641         * gnulib/m4/extensions.m4: Update.
6642         * gnulib/m4/gnulib-cache.m4: Update.
6643         * gnulib/m4/gnulib-common.m4: Update.
6644         * gnulib/m4/gnulib-comp.m4: Update.
6645         * gnulib/m4/gnulib-tool.m4: Update.
6646         * gnulib/m4/include_next.m4: Update.
6647         * gnulib/m4/inttypes-pri.m4: Update.
6648         * gnulib/m4/inttypes.m4: Update.
6649         * gnulib/m4/longlong.m4: Update.
6650         * gnulib/m4/memchr.m4: Update.
6651         * gnulib/m4/memmem.m4: Update.
6652         * gnulib/m4/mmap-anon.m4: Update.
6653         * gnulib/m4/multiarch.m4: Update.
6654         * gnulib/m4/onceonly.m4: Update.
6655         * gnulib/m4/stddef_h.m4: Update.
6656         * gnulib/m4/stdint.m4: Update.
6657         * gnulib/m4/string_h.m4: Update.
6658         * gnulib/m4/warn-on-use.m4: Update.
6659         * gnulib/m4/wchar_h.m4: Update.
6660         * gnulib/m4/wchar_t.m4: Update.
6661         * gnulib/m4/wint_t.m4: Update.
6662         * gnulib/memchr.c: Update.
6663         * gnulib/memmem.c: Update.
6664         * gnulib/stddef.in.h: Update.
6665         * gnulib/stdint.in.h: Update.
6666         * gnulib/str-two-way.h: Update.
6667         * gnulib/string.in.h: Update.
6668         * gnulib/wchar.in.h: Update.
6669
6670         * gnulib/extra/arg-nonnull.h: Delete.
6671         * gnulib/extra/c++defs.h: Delete.
6672         * gnulib/extra/warn-on-use.h: Delete.
6673         * gnulib/m4/wchar_h.m4: Delete.
6674         * gnulib/m4/wint_t.m4: Delete.
6675         * gnulib/wchar.in.h: Delete.
6676
6677         * gnulib/extra/snippets/arg-nonnull.h: New.
6678         * gnulib/extra/snippets/c++defs.h: New.
6679         * gnulib/extra/snippets/warn-on-use.h: New.
6680
6681         * aclocal.m4: Regenerate.
6682         * config.in: Regenerate.
6683         * configure: Regenerate.
6684         * gnulib/Makefile.in: Regenerate.
6685
6686 2012-04-18  Pedro Alves  <palves@redhat.com>
6687
6688         Reimport the update-copyright module from gnulib
6689         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6690
6691         * configure: Regenerate.
6692         * gnulib/Makefile.am: Update.
6693         * gnulib/Makefile.in: Regenerate.
6694         * gnulib/extra/update-copyright: Update.
6695         * gnulib/m4/gnulib-cache.m4: Update.
6696         * gnulib/m4/gnulib-comp.m4: Update.
6697
6698 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6699
6700         * configure.ac (aix): Put -lpthread into libs.
6701         * configure: Regenerate.
6702
6703 2012-04-18  Tom Tromey  <tromey@redhat.com>
6704
6705         * linespec.c (convert_linespec_to_sals): Don't use
6706         SYMBOL_OBJ_SECTION.
6707         (compare_msymbols): Arguments are minsym_and_objfile, not
6708         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6709
6710 2012-04-18  Pedro Alves  <palves@redhat.com>
6711
6712         Revert gnulib/ part of:
6713         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6714         Copyright year update in most files (performed by copyright.sh).
6715
6716 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6717
6718         Fix 64-bit constants on 32-bit hosts.
6719         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6720         from unsigned long to ULONGEST.
6721         (read_signed_leb128): Change declaration return type from long to
6722         LONGEST.
6723         (dwarf2_const_value_attr): Change declaration parameter value from long
6724         to LONGEST.
6725         (dwarf2_compute_name): Change variable value from long to LONGEST.
6726         (read_unsigned_leb128): Change return type, variable result and some
6727         casts from unsigned long to ULONGEST.
6728         (read_signed_leb128): Change return type, variable result and some
6729         casts from long to LONGEST.
6730         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6731         value from long to LONGEST.
6732         (dwarf2_const_value): Change variable value from long to LONGEST.
6733         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6734         plongest and hex_string.
6735         * symtab.h (struct general_symbol_info): Change ivalue from long to
6736         LONGEST, remove the comment.
6737         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6738         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6739
6740 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6741
6742         PR symtab/7259:
6743         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6744         * ada-lang.c (ada_discrete_type_high_bound)
6745         (ada_discrete_type_low_bound): Fix function comment.  Use
6746         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6747         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6748         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6749         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6750         Use TYPE_FIELD_ENUMVAL.
6751         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6752         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6753         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6754         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6755         TYPE_CODE_ENUM.
6756         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6757         * dwarf2read.c (process_enumeration_scope): Likewise.
6758         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6759         field.bitpos.
6760         (class StructMainTypePrettyPrinter): Support also
6761         FIELD_LOC_KIND_ENUMVAL.
6762         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6763         TYPE_CODE_ENUM.
6764         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6765         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6766         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6767         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6768         field enumval.
6769         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6770         accommodate enumval.
6771         (struct call_site): Adjust loc_kind to accommodate enumval.
6772         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6773         (TYPE_FIELD_ENUMVAL): New macros.
6774         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6775         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6776         TYPE_CODE_ENUM.
6777         * p-typeprint.c (pascal_type_print_base): Likewise.
6778         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6779         enumval.
6780         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6781         * python/py-type.c (convert_field): New variable addrstring.  Use
6782         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6783         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6784         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6785         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6786         TYPE_CODE_ENUM.
6787         * valprint.c (generic_val_print): Likewise.
6788
6789 2012-04-17  Doug Evans  <dje@google.com>
6790
6791         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6792
6793         * dwarf2read.c: Whitespace fixes.
6794         (lookup_signatured_type): Tweak comment.
6795         (get_die_type_at_offset): Fix comment.
6796
6797 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6798
6799         * xcoffread.c (xcoff_secnum_to_sections): New function.
6800         (secnum_to_section, secnum_to_bfd_section): Reimplement
6801         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6802         into "n_scnum".
6803         (RECORD_MINIMAL_SYMBOL): Delete.
6804         (record_minimal_symbol): New function.
6805         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6806         by call to record_minimal_symbol and set misc_func_recorded
6807         to 1.  Set last_csect_sec to the XCOFF section index instead
6808         of GDB's section_offset index.  Update calls to
6809         prim_record_minimal_symbol_and_info to pass the BFD section
6810         as well.
6811
6812 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6813
6814         * xcoffread.c (read_xcoff_symtab): Delete variables
6815         last_csect_val and last_csect_sec and associated code.
6816
6817 2012-04-17  Doug Evans  <dje@google.com>
6818
6819         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6820         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6821         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6822         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6823
6824         * cleanups.h: New file.
6825         * cleanups.c: New file.
6826         * Makefile.in (SFILES): Add cleanups.c.
6827         (HFILES_NO_SRCDIR): Add cleanups.h.
6828         (COMMON_OBS): Add cleanups.o.
6829         * defs.h (struct cleanup): Moved to cleanups.h.
6830         (do_cleanups,do_final_cleanups): Ditto.
6831         (discard_cleanups,discard_final_cleanups): Ditto
6832         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6833         (save_cleanups,save_final_cleanups): Ditto.
6834         (restore_cleanups,restore_final_cleanups): Ditto.
6835         (null_cleanup): Ditto.
6836         (make_my_cleanup,make_my_cleanup2): Ditto.
6837         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6838         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6839         (do_cleanups,do_final_cleanups): Ditto.
6840         (discard_cleanups,discard_final_cleanups): Ditto
6841         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6842         (save_cleanups,save_final_cleanups): Ditto.
6843         (restore_cleanups,restore_final_cleanups): Ditto.
6844         (null_cleanup): Ditto.
6845         (make_my_cleanup,make_my_cleanup2): Ditto.
6846         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6847
6848         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6849         make_my_cleanup.
6850         (make_cleanup_dyn_string_delete): Ditto.
6851         (make_cleanup_ui_file_delete): Ditto.
6852         (make_cleanup_ui_out_redirect_pop): Ditto.
6853         (make_cleanup_free_section_addr_info): Ditto.
6854         (make_cleanup_restore_integer): Ditto.
6855         (make_cleanup_unpush_target): Ditto.
6856         (make_cleanup_value_free_to_mark): Ditto.
6857         (make_cleanup_value_free): Ditto.
6858         (make_cleanup_free_so): Ditto.
6859
6860 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6861
6862         New option "set debug auto-load".
6863         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6864         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6865         (auto_load_safe_path_vec_update)
6866         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6867         if DEBUG_AUTO_LOAD.
6868         (file_is_auto_load_safe): New parameters debug_fmt and ....
6869         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6870         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6871         caller by explanatory string.
6872         (_initialize_auto_load): Register "set debug auto-load".
6873         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6874         and ....
6875         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6876         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6877         by explanatory string.
6878         * main.c (captured_main): Likewise.
6879         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6880         (source_section_scripts): Likewise.
6881
6882 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6883
6884         New option "set auto-load safe-path".
6885         * NEWS: New commands "set auto-load safe-path"
6886         and "show auto-load safe-path".
6887         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6888         (auto_load_safe_path, auto_load_safe_path_vec)
6889         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6890         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6891         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6892         (source_gdb_script_for_objfile): New variable is_safe.  Call
6893         file_is_auto_load_safe.  Return if it is not.
6894         (struct loaded_script): New field loaded.
6895         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6896         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6897         output "Missing" to "No".
6898         (_initialize_auto_load): New variable cmd.  Initialize
6899         auto_load_safe_path.  Register "set auto-load safe-path",
6900         "show auto-load safe-path" and "add-auto-load-safe-path".
6901         * auto-load.h (maybe_add_script): Add parameter loaded.
6902         (file_is_auto_load_safe): New declaration.
6903         * config.in: Regenerate.
6904         * configure: Regenerate.
6905         * configure.ac: New parameters --with-auto-load-safe-path
6906         and --without-auto-load-safe-path.
6907         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6908         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6909         * main.c (captured_main): Check file_is_auto_load_safe for
6910         LOCAL_GDBINIT.
6911         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6912         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6913         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6914         not.
6915
6916 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6917
6918         auto-load: Implementation.
6919         * NEWS: New descriptions for "info auto-load",
6920         "info auto-load gdb-scripts", "info auto-load python-scripts",
6921         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6922         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6923         and "show auto-load-scripts".  New description for "set auto-load",
6924         "show auto-load", "set auto-load gdb-scripts",
6925         "show auto-load gdb-scripts", "set auto-load python-scripts",
6926         "show auto-load python-scripts", "set auto-load local-gdbinit",
6927         "show auto-load local-gdbinit", "set auto-load libthread-db" and
6928         "show auto-load libthread-db".
6929         * auto-load.c: Remove include python/python-internal.h.  Add includes
6930         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6931         cli/cli-setshow.h.
6932         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6933         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6934         (gdbpy_global_auto_load): Rename to ...
6935         (global_auto_load): ... here.
6936         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6937         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6938         (script_language_gdb, source_gdb_script_for_objfile): New.
6939         (struct loaded_script): New field language.
6940         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6941         LANGUAGE.
6942         (maybe_add_script): Add parameter language.  Drop redundant
6943         entry.full_path initialization.  Initialize entry.language and
6944         (*slot)->language.
6945         (auto_load_objfile_script): Change parameter suffix to language.
6946         Remove the call of maybe_add_script.
6947         Call language->source_script_for_objfile.
6948         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6949         New.
6950         (collect_matching_scripts): Adjust it for
6951         struct collect_matching_scripts_data.
6952         (auto_load_info_scripts_pattern_nl): New variable.
6953         (info_auto_load_scripts): Rename to ...
6954         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
6955         for struct collect_matching_scripts_data.
6956         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6957         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6958         (auto_load_show_cmdlist_get, info_auto_load_cmd)
6959         (auto_load_info_cmdlist_get): New.
6960         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6961         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
6962         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6963         "info auto-load local-gdbinit".
6964         * auto-load.h (struct script_language): New.
6965         (gdbpy_global_auto_load): Rename to ...
6966         (global_auto_load): ... here.
6967         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6968         (auto_load_local_gdbinit_loaded): New declarations.
6969         (maybe_add_script): New parameter language.
6970         (auto_load_objfile_script): Change parameter suffix to language.
6971         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6972         (auto_load_info_scripts, auto_load_set_cmdlist_get)
6973         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6974         declarations.
6975         * linux-thread-db.c: Include auto-load.h and ctype.h.
6976         (auto_load_thread_db, show_auto_load_thread_db): New.
6977         (struct thread_db_info): New field filename.
6978         (delete_thread_db_info): Call xfree for FILENAME.
6979         (try_thread_db_load): Initialize FILENAME.
6980         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6981         if !AUTO_LOAD_THREAD_DB.
6982         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6983         (_initialize_thread_db): Install auto_load_thread_db
6984         as "set auto-load libthread-db" and install info_auto_load_libthread_db
6985         as "info auto-load libthread-db".
6986         * main.c (captured_main): Rename gdbpy_global_auto_load to
6987         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6988         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6989         (print_gdb_help): Extend the help for 'local init file'.
6990         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6991         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6992         (auto_load_scripts): Rename to ...
6993         (auto_load_python_scripts): ... here, update the comment.
6994         (gdbpy_load_auto_script_for_objfile): New declaration.
6995         (show_auto_load_python_scripts, script_language_python)
6996         (gdbpy_load_auto_script_for_objfile): New.
6997         (source_section_scripts): Refactor the code.
6998         (load_auto_scripts_for_objfile): Rename to ...
6999         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7000         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7001         (info_auto_load_python_scripts): New.
7002         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7003         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7004         Register "set auto-load-scripts" as its deprecated alias.  Register
7005         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7006         its deprecated alias.
7007         (load_auto_scripts_for_objfile): Rename to ...
7008         (gdbpy_load_auto_scripts_for_objfile): ... here.
7009         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7010         (gdbpy_load_auto_scripts_for_objfile): ... here.
7011
7012 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7013
7014         auto-load: Move files.
7015         * Makefile.in (SFILES): Add auto-load.c.
7016         (HFILES_NO_SRCDIR): Add auto-load.h.
7017         (COMMON_OBS): Add auto-load.o.
7018         (distclean): Change .gdbinit for gdb-gdb.gdb.
7019         * auto-load.c: New file, with parts from python/py-auto-load.c.
7020         * auto-load.h: New file, with parts from python/python.h.
7021         * configure: Regenerate.
7022         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7023         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7024         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7025         * main.c: Include auto-load.h.
7026         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7027         command.h, observer.h and progspace.h to auto-load.c.  Add include
7028         auto-load.h.
7029         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7030         (struct loaded_script, auto_load_pspace_data)
7031         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7032         (hash_loaded_script_entry, eq_loaded_script_entry)
7033         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7034         (maybe_add_script): Move to auto-load.c.
7035         (source_section_scripts): Change maybe_add_script parameters passing,
7036         use script_not_found_warning_print.
7037         (clear_section_scripts, auto_load_objfile_script)
7038         (auto_load_new_objfile, loaded_script_ptr)
7039         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7040         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7041         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7042         auto_load_new_objfile and info_auto_load_scripts initizations to
7043         auto-load.c.
7044         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7045
7046 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7047
7048         Code cleanup.
7049         * charset.c (find_charset_names): Remove variables ix and elt.
7050         Use free_char_ptr_vec.
7051         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7052         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7053         debugdir_end.  New variable debugdir_len.
7054         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7055         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7056         declarations.
7057         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7058         and elt.  Use free_char_ptr_vec.
7059         * source.c (add_path): Remove variables argv, arg and argv_index.
7060         New variables dir_vec, back_to, ix and name.
7061         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7062         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7063         no longer expecting DIRNAME_SEPARATOR.
7064         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7065         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7066         no longer expecting DIRNAME_SEPARATOR.
7067         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7068         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7069         debugdir_end.
7070         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7071         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7072         (dirnames_to_char_ptr_vec): New functions.
7073
7074 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7075
7076         Code cleanup.
7077         * source.c (add_path): Remove always true conditional 'p == 0' and
7078         unindent its code block.
7079
7080 2012-04-17  Pedro Alves  <palves@redhat.com>
7081
7082         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7083         (FIELD_BITPOS_LVAL): ... this.
7084         (FIELD_BITPOS): New.
7085         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7086         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7087         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7088         SET_FIELD_BITPOS.
7089         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7090         SET_FIELD_BITPOS.
7091         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7092         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7093         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7094         SET_FIELD_BITPOS.
7095
7096 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7097
7098         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7099         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7100         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7101         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7102         * jv-lang.c (java_link_class_type): Likewise, once.
7103         * stabsread.c (read_enum_type): Likewise.
7104
7105 2012-04-16  Yao Qi  <yao@codesourcery.com>
7106
7107         * common/agent.c (agent_run_command): Add one more parameter `len'.
7108         Update callers.
7109         * common/agent.h: Update declaration.
7110         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7111         Update.
7112         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7113
7114 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7115
7116         PR mi/13393
7117         * value.c (value_actual_type): New function.
7118         * value.h (value_actual_type): New declaration.
7119         * varobj.c (update_type_if_necessary): New function.
7120         (varobj_create): Call value_actual_type instead of
7121         value_type.
7122         (install_dynamic_child): distinct changed and type changed MI variable
7123         objects.
7124         (update_dynamic_varobj_children): Updated for install_dynamic_child
7125         change.  All callers updated.
7126         (varobj_update): Support for MI variable object type change if
7127         the value changed and RTTI is used to determine the type.
7128         (create_child_with_value): Call value_actual_type instead of
7129         value_type.
7130         (adjust_value_for_child_access): Extended with a new parameter which
7131         specify whether the given value should be casted to enclosing type.
7132         All callers updated.
7133
7134 2012-04-14  Yao Qi  <yao@codesourcery.com>
7135
7136         Import gnulib module inttypes from git
7137         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7138         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7139         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7140         gnulib/m4/inttypes-pri.m4
7141         * aclocal.m4, config.in, configure: Regenerated.
7142         * gnulib/Makefile.am: Update.
7143         * gnulib/Makefile.in: Update.
7144         * gnulib/m4/gnulib-cache.m4: Update.
7145         * gnulib/m4/gnulib-comp.m4: Update.
7146         * gnulib/inttypes.in.h: New.
7147         * gnulib/m4/inttypes-pri.m4: New.
7148         * gnulib/m4/inttypes.m4: New.
7149
7150 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7151
7152         * infrun.c (resume): Update PC address to the real PC after
7153         preparing to do displaced stepping.
7154
7155 2012-04-12  Doug Evans  <dje@google.com>
7156
7157         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7158         All callers updated.
7159
7160 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7161
7162         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7163
7164 2012-04-12  Doug Evans  <dje@google.com>
7165
7166         * dwarf2read.c (create_all_type_units): Renamed from
7167         create_debug_types_hash_table.  All callers updated.
7168
7169         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7170         local type_sig to sig_type, type_offset to type_offset_in_tu.
7171         (hash_signatured_type): Renamed from hash_type_signature,
7172         all callers updated.
7173         (eq_signatured_type): Renamed from eq_type_signature,
7174         all callers updated.
7175         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7176         (process_enumeration_scope): Ditto.
7177         (lookup_signatured_type_at_offset): Ditto.
7178         (load_full_type_unit, read_signatured_type): Ditto.
7179
7180 2012-04-12  Yao Qi  <yao@codesourcery.com>
7181
7182         * remote.c (async_remote_interrupt): Correct function name in
7183         debug message.
7184         (async_remote_interrupt_twice): Ditto.
7185
7186 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7187
7188         * source.c (find_and_open_source): Consistently pass resulting
7189         full path through xfullpath.
7190
7191 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7192
7193         Provide more specific displaced-stepping memory error message.
7194         * infrun.c (displaced_step_prepare): New variable status.  Call
7195         target_read_memory instead of read_memory, provide more specific
7196         error message.
7197
7198 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7199
7200         PR gdb/13901
7201         * darwin-nat.c (darwin_execvp): Revert previous patch.
7202
7203 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7204
7205         PR gdb/13901
7206         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7207         in case of change.
7208
7209 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7210
7211         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7212         warning.
7213
7214 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7215
7216         New command 'explore' which helps explore values and types in
7217         scope.
7218         * NEWS: Add an entry about the new 'explore' command.
7219         * data-directory/Makefile.in: Add gdb/command/explore.py
7220         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7221         command using the GDB Python API.
7222
7223 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7224
7225         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7226         extension in jump target calculation.
7227
7228 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7229
7230         * mips-tdep.c (mips32_next_pc): Handle JALX.
7231
7232 2012-04-10  Yao Qi  <yao@codesourcery.com>
7233
7234         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7235
7236 2012-04-10  Yao Qi  <yao@codesourcery.com>
7237
7238         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7239         and gnulib/m4/gnulib-tool.m4.
7240
7241 2012-04-10  Doug Evans  <dje@google.com>
7242
7243         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7244         (load_partial_dies): Clarify comment.
7245         (find_partial_die): Support rereading type units.
7246         Clarify CU handling, if we know offset is in CU, don't search for the
7247         containing CU.  Add comment regarding memory waste.
7248
7249 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7250
7251         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7252         i386/x32-avx and i386/x32-avx-linux.
7253         (i386/x32-expedite): New.
7254         (i386/x32-linux-expedite): Likewise.
7255         (i386/x32-avx-expedite): Likewise.
7256         (i386/x32-avx-linux-expedite): Likewise.
7257         ($(outdir)/i386/x32.dat): Likewise.
7258         ($(outdir)/i386/x32-linux.dat): Likewise.
7259         ($(outdir)/i386/x32-avx.dat): Likewise.
7260         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7261
7262         * features/i386/x32-avx-linux.xml: New file.
7263         * features/i386/x32-avx.xml: Likewise.
7264         * features/i386/x32-core.xml: Likewise.
7265         * features/i386/x32-linux.xml: Likewise.
7266         * features/i386/x32.xml: Likewise.
7267
7268         * features/i386/x32-avx-linux.c: New.  Generated.
7269         * features/i386/x32-avx.c: Likewise.
7270         * features/i386/x32-linux.c: Likewise.
7271         * features/i386/x32.c: Likewise.
7272         * regformats/i386/x32-avx-linux.dat: Likewise.
7273         * regformats/i386/x32-avx.dat: Likewise.
7274         * regformats/i386/x32-linux.dat: Likewise.
7275         * regformats/i386/x32.dat: Likewise.
7276
7277 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7278
7279         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7280         code to kill the inferior.
7281
7282 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7283
7284         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7285         defines.
7286         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7287         defines.
7288         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7289         (yyvsp): New defines.
7290         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7291         defines.
7292         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7293         defines.
7294         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7295         defines.
7296         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7297         defines.
7298         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7299         defines.
7300
7301 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7302
7303         * sparc64-tdep.c (sparc64_store_arguments)
7304         (sparc64_store_arguments): Fix coding style.
7305
7306 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7307
7308         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7309         complex floats, adjust some related comments and tighten a related
7310         assertion.
7311         (sparc64_extract_return_value): Handle complex floats.
7312
7313 2012-04-07  Doug Evans  <dje@google.com>
7314
7315         * dwarf2read.c (load_partial_dies): Change condition to assert.
7316
7317 2012-04-06  Doug Evans  <dje@google.com>
7318
7319         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7320         "mov %rsp,%rbp".
7321
7322 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7323
7324         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7325         fencepost error.
7326         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7327         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7328         architecture.
7329
7330 2012-04-05  Keith Seitz  <keiths@redhat.com>
7331
7332         * linespec.c (decode_compound): Remove.
7333         (enum offset_relative_sign): New enum.
7334         (struct line_offset): New struct.
7335         (struct linespec): New struct.
7336         (struct linespec_state): Move file_symtabs,
7337         user_filename, and user_function into struct linespec.
7338         Make result an anonymous struct holding vectors of
7339         symbolp and minsym_and_objfile_d.
7340         Add language member.
7341         (enum ls_token_type): New enum.
7342         (linespec_keywords): New array.
7343         (struct ls_token): New struct.
7344         (struct ls_parser): New struct.
7345         (linespec_lexer_lex_number): New function.
7346         (linespec_lexer_lex_keyword): New function.
7347         (is_ada_operator): New function.
7348         (skip_quote_char): New function.
7349         (copy_token_string): New function.
7350         (is_closing_quote_enclosed): New function.
7351         (find_parameter_list_end): New function.
7352         (linespec_lexer_lex_string): New function.
7353         (linespec_lexer_lex_one): New function.
7354         (linespec_lexer_consume_token): New function.
7355         (linespec_lexer_peek_token): New function.
7356         (cplusplus_error): Remove unused function.
7357         (find_methods): Update comment.
7358         (find_toplevel_char): Return const.
7359         (is_objc_method_format): Remove unused function.
7360         (find_toplevel_string): New function.
7361         (is_linespec_boundary): Remove.
7362         (symbol_not_found_error): New function.
7363         (find_method_overload_end): Remove function.
7364         (unexpected_linespec_error): New function.
7365         (keep_name_info): Remove.
7366         (linespec_parse_line_offset): New function.
7367         (linespec_parse_basic): New function.
7368         (canonicalize_linespec): New function.
7369         (decode_line_internal): Remove.
7370         (create_sals_line_offset): New function adapted from
7371         decode_all_digits.
7372         (convert_linespec_to_sals): New function.
7373         (parse_linespec): New function.
7374         (linespec_parser_new): New function.
7375         (linespec_state_destructor): Change parameter type to
7376         struct linespec_state *.
7377         Add language parameter.
7378         Remove freeing of moved members.
7379         (linespec_parser_delete): New function.
7380         (decode_line_full): Use parse_linespec and linespec_parser_new.
7381         (decode_line_1): Likewise.
7382         (decode_indirect): Rename to ...
7383         (linespec_expression_to_pc): ... this and rewrite
7384         to simply find CORE_ADDR, storing this result for later
7385         conversion to SALs.
7386         (locate_first_half): Remove.
7387         (deocde_objc): Add parameter LS.
7388         Initialize new struct collect_info members.
7389         Handle minimal symbols, too.
7390         (decode_compound): Delete.
7391         (lookup_prefix_sym): Rewrite.
7392         (compare_msymbols): New function.
7393         (find_method): Rewrite.
7394         Do not call cplusplus_error.
7395         (symtabs_from_filename): Rewrite.
7396         (collect_function_symbols): Delete.
7397         (find_function_symbols): Rewrite without ARGPTR-style
7398         processing.
7399         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7400         (decode_dollar): Adapted and renamed to ...
7401         (linespec_parse_variable): ... this.
7402         (find_linespec_symbols): New function.
7403         (decode_label): Adapted and renamed to ...
7404         (find_label_symbols): ... this.
7405         (decode_digits_list_mode): Add and use LS argument.
7406         (decode_digits_ordinary): Likewise.
7407         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7408         If in list mode, allow any symbol class.  Otherwise, only
7409         permit LOC_BLOCK symbols.
7410         (minsym_found): Update comments.
7411         (search_minsyms_for_name): Do not convert the matching symbol
7412         into a SAL.  Simply push the symbol and objfile into the
7413         result vector.
7414         (decode_variable): Delete. Contents adapted into
7415         find_linespec_symbols.
7416
7417         * cp-support.c (SKIP_SPACE): Remove.
7418         (operator_tokens): Remove unused global.
7419         (cp_validate_operator): Remove.
7420         * cp-support.h (cp_validate_operator): Remove declaration.
7421
7422 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7423
7424         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7425         for TYPE_VPTR_FIELDNO.
7426         * valprint.c (valprint_check_validity): Make it global, move the
7427         function comment ...
7428         * value.h (valprint_check_validity): ... to this new declaration.
7429
7430 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7431
7432         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7433         the STATE32 api for i386 state.
7434         (i386_darwin_store_inferior_registers): Likewise.
7435
7436 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7437
7438         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7439         SS offset.
7440         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7441         format_string.
7442
7443 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7444
7445         PR gdb/13901
7446         * darwin-nat.c (darwin_execvp): Set binary preference.
7447
7448 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7449
7450         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7451
7452 2012-03-30  Tom Tromey  <tromey@redhat.com>
7453
7454         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7455         of TRY_CATCH.  Fix error handling.
7456         * python/py-value.c (convert_value_from_python): Move 'old'
7457         declaration to innermost scope.
7458
7459 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7460             Andrey Smirnov  <andrew.smirnov@gmail.com>
7461
7462         -Wshadow warning fix.
7463         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7464         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7465         Adjust code accordingly.
7466
7467 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7468
7469         * ada-lang.c (symbol_completion_add): Rename parameter
7470         "encoded" into "encoded_p".  Ajust code and documentation
7471         accordingly.
7472
7473 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7474             Andrey Smirnov  <andrew.smirnov@gmail.com>
7475
7476         -Wshadow warning fix.
7477         * ada-lang.c (symbol_completion_add): Rename parameter
7478         "wild_match" into wild_match_p.  Update code and documentation
7479         accordingly.
7480
7481 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7482
7483         * ada-lang.c (symbol_completion_match): Rename parameter
7484         "encoded" into "encoded_p".  Ajust code and documentation
7485         accordingly.
7486
7487 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7488             Andrey Smirnov  <andrew.smirnov@gmail.com>
7489
7490         -Wshadow warning fix.
7491         * ada-lang.c (symbol_completion_match): Rename parameter
7492         "wild_match" into "wild_match_p".  Adjust code and function
7493         documentation accordingly.
7494
7495 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7496             Andrey Smirnov  <andrew.smirnov@gmail.com>
7497
7498         -Wshadow warning fix.
7499         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7500         "symbol_info" into "info".  Adjust code accordingly.
7501         (ada_lookup_symbol): Likewise.
7502
7503 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7504
7505         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7506         of this function's documentation.
7507
7508 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7509             Andrey Smirnov  <andrew.smirnov@gmail.com>
7510
7511         -Wshadow warning fix.
7512         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7513         variable into "wild_match_p".  Adjust code accordingly.
7514
7515 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7516             Andrey Smirnov  <andrew.smirnov@gmail.com>
7517
7518         -Wshadow warning fix.
7519         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7520         parameter into "wild_match_p".  Adjust code accordingly.
7521         Document this parameter in the function description.
7522
7523 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7524             Andrey Smirnov  <andrew.smirnov@gmail.com>
7525
7526         -Wshadow warning fix.
7527         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7528         "wild_match" parameter to "wild_match_p" (-Wshadow).
7529
7530 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7531
7532         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7533         in function documentation.
7534
7535 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7536             Andrey Smirnov  <andrew.smirnov@gmail.com>
7537
7538         -Wshadow warning fix.
7539         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7540         variable into wild_match_p.  Adjust code accordingly.
7541
7542 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7543             Andrey Smirnov  <andrew.smirnov@gmail.com>
7544
7545         * ada-valprint.c (ada_val_print_1): Move the code handling
7546         TYPE_CODE_ENUM inside its own lexical block.  Declare
7547         variables len and val there, instead of in the function's
7548         top level block.  Avoid declaring deref_val again in a way
7549         that shadows another variable of the same name declared
7550         in one of the up-level blocks.  Just re-use the up-level
7551         variable instead.
7552
7553 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7554
7555         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7556         Replace block_found argument by symbol_info.  Adjust
7557         implementation accordingly.  Add function documentation.
7558         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7559         Fix documentation.
7560         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7561         * ada-exp.y (write_object_renaming): Adjust to new
7562         ada_lookup_encoded_symbol API.
7563
7564 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7565
7566         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7567         documentation.
7568
7569 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7570
7571         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7572         (v850_register_name): Add the mpu and fpu register names.
7573         (v850e_register_name): Add the mpu and fpu register names.
7574         (v850e2_register_name): New function.
7575         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7576         bfd_mach_v850e2v3.
7577
7578 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7579
7580         * NEWS: Add entry for Ada varobj support.
7581
7582 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7583
7584         * varobj.c (default_value_is_changeable_p): New function,
7585         extracted from varobj_value_is_changeable_p.  Add declaration.
7586         (ada_value_is_changeable_p): New function, extracted from
7587         varobj_value_is_changeable_p.  Add declaration.
7588         (struct language_specific): New field "value_is_changeable_p".
7589         (languages): Add entries for new field.
7590         (varobj_create): Set language before calling install_new_value.
7591         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7592         "value_is_changeable_p" language callback.
7593
7594 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7595
7596         * ada-varobj.h, ada-varobj.c: New files.
7597         * Makefile.in (SFILES): Add ada-varobj.c.
7598         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7599         (COMMON_OBS): Add ada-varobj.o.
7600
7601 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7602
7603         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7604         (struct language_specific): New field "value_has_mutated".
7605         (languages): Set field "value_has_mutated" in each entry of array.
7606         (varobj_value_has_mutated): New function.
7607         (varobj_udpdate): Add handling of type mutation.
7608         (value_of_root): Add handling of type mutation.
7609         (ada_value_has_mutated): New function.
7610
7611 2012-03-28  Pedro Alves  <palves@redhat.com>
7612
7613         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7614         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7615
7616 2012-03-28  Tom Tromey  <tromey@redhat.com>
7617
7618         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7619         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7620         before returning.
7621
7622 2012-03-28  Tom Tromey  <tromey@redhat.com>
7623
7624         * .dir-locals.el: New file.
7625
7626 2012-03-28  Pedro Alves  <palves@redhat.com>
7627
7628         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7629
7630 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7631
7632         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7633         handling for r0.
7634
7635 2012-03-27  Pedro Alves  <palves@redhat.com>
7636
7637         Eliminate struct ui_stream.
7638
7639         * ui-out.h (struct ui_stream): Delete.
7640         (ui_out_field_stream): Adjust prototype.
7641         (ui_out_stream_new, ui_out_stream_delete)
7642         (make_cleanup_ui_out_stream_delete): Delete declarations.
7643         * ui-out.c (ui_out_field_stream): Change prototype to take a
7644         ui_file instead of a ui_stream.  Adjust.
7645         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7646         (make_cleanup_ui_out_stream_delete): Delete.
7647         * breakpoint.c (print_breakpoint_location)
7648         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7649         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7650         * disasm.c (dump_insns): Ditto.
7651         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7652         prototype.
7653         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7654         ui_stream/ui_out_stream_new.
7655         * infcmd.c (print_return_value): Ditto.
7656         * osdata.c (info_osdata_command): Don't allocate a local
7657         ui_stream.
7658         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7659         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7660         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7661         allocate a local ui_stream.
7662         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7663         instead of ui_stream/ui_out_stream_new.
7664         (list_args_or_locals): Don't allocate a local ui_stream.
7665         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7666         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7667         ui_stream/ui_out_stream_new.
7668         * cli/cli-setshow.c (do_setshow_command): Ditto.
7669
7670 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7671
7672         * arm-linux-tdep.c (arm_linux_init_abi): Call
7673         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7674         * arm-tdep.c (arm_process_record): New function.
7675         (deallocate_reg_mem): New function.
7676         (decode_insn): New function.
7677         (thumb_record_branch): New function.
7678         (thumb_record_ldm_stm_swi(): New function.
7679         (thumb_record_misc): New function.
7680         (thumb_record_ld_st_stack): New function.
7681         (thumb_record_ld_st_imm_offset): New function.
7682         (thumb_record_ld_st_reg_offset(): New function.
7683         (thumb_record_add_sub_cmp_mov): New function.
7684         (thumb_record_shift_add_sub): New function.
7685         (arm_record_coproc_data_proc): New function.
7686         (arm_record_coproc): New function.
7687         (arm_record_b_bl): New function.
7688         (arm_record_ld_st_multiple): New function.
7689         (arm_record_ld_st_reg_offset): New function.
7690         (arm_record_ld_st_imm_offset): New function.
7691         (arm_record_data_proc_imm): New function.
7692         (arm_record_data_proc_misc_ld_str): New function.
7693         (arm_record_extension_space): New function.
7694         (arm_record_strx): New function.
7695         (sbo_sbz): New function.
7696         (struct insn_decode_record): New structure for arm insn record.
7697         (REG_ALLOC): New macro for reg allocations.
7698         (MEM_ALLOC): New macro for memory allocations.
7699         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7700
7701 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7702
7703         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7704         (store_register): Likewise.
7705
7706 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7707
7708         * MAINTAINERS (Write After Approval): Add myself to the list.
7709
7710 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7711
7712         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7713         Describe also the option "auto".
7714
7715 2012-03-22  Richard Henderson  <rth@redhat.com>
7716
7717         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7718         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7719
7720 2012-03-22  Richard Henderson  <rth@redhat.com>
7721
7722         * jit.c (jit_read_code_entry): Compute alignment and offset of
7723         int64_t member before computing entry_size.
7724
7725 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7726
7727         Python scripting: Add new method Value.referenced_value to
7728         gdb.Value which can dereference pointer as well as reference
7729         values.
7730         * NEWS: Add entry under 'Python scripting' about the new method
7731         Value.referenced_value on gdb.Value objects.
7732         * python/py-value.c (valpy_referenced_value): New function
7733         defining a new method on gdb.Value objects which can dereference
7734         pointer and reference values.
7735
7736 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7737
7738         * MAINTAINERS (Write After Approval): Add myself to the list.
7739
7740 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7741
7742         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7743         in addition to "main".
7744
7745 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7746
7747         * expression.h (op_name): Add declaration.
7748         * expprint.c (op_name): Remove declaration.  Make non-static.
7749         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7750
7751 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7752
7753         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7754         of struct siginfo.
7755         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7756         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7757         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7758         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7759         (linux_nat_get_siginfo): Likewise.
7760         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7761         (linux_nat_get_siginfo): Likewise.
7762         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7763         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7764         * procfs.c (gdb_siginfo_t): Likewise.
7765
7766 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7767
7768         * .gitignore: Ignore more files.
7769
7770 2012-03-20  Pedro Alves  <palves@redhat.com>
7771
7772         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7773         returns.
7774
7775 2012-03-20  Yao Qi  <yao@codesourcery.com>
7776
7777         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7778         comment.
7779
7780 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7781
7782         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7783         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7784         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7785         sect_offset.
7786         * dwarf2expr.h (cu_offset, sect_offset): New types.
7787         (struct dwarf_expr_context_funcs) <dwarf_call>
7788         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7789         sect_offset.
7790         (struct dwarf_expr_context) <len>: Improve the comment.
7791         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7792         cu_offset and sect_offset.
7793         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7794         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7795         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7796         * dwarf2loc.h: Include dwarf2expr.h.
7797         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7798         and sect_offset.
7799         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7800         Improve the comment.
7801         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7802         (struct signatured_type, struct line_header, struct partial_die_info)
7803         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7804         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7805         (get_die_type_at_offset, create_cus_from_index)
7806         (create_signatured_type_table_from_index, dw2_get_file_names)
7807         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7808         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7809         (create_debug_types_hash_table, process_psymtab_comp_unit)
7810         (load_partial_comp_unit, create_all_comp_units)
7811         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7812         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7813         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7814         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7815         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7816         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7817         (find_partial_die, read_attribute_value, lookup_die_type)
7818         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7819         (is_ref_attr): New function comment.
7820         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7821         Use cu_offset and sect_offset.
7822         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7823         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7824         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7825         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7826         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7827         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7828         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7829         sect_offset.
7830
7831 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7832
7833         Code cleanup.
7834         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7835         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7836         with xfree.
7837         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7838
7839 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7840
7841         * NEWS: Describe new options --init-command=FILE, -ix and
7842         --init-eval-command=COMMAND, -iex.
7843         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7844         CMDARG_INIT_COMMAND.
7845         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7846         "init-command", "init-eval-command", "ix" and "iex" to the variable
7847         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7848         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7849         (print_gdb_help): Describe --init-command=FILE, -ix and
7850         --init-eval-command=COMMAND, -iex.
7851
7852 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7853
7854         Code cleanup.
7855         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7856         (cmdarg_s, VEC (cmdarg_s)): New.
7857         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7858         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7859         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7860         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7861         of CMDARG.
7862
7863 2012-03-19  Tom Tromey  <tromey@redhat.com>
7864
7865         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7866
7867 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7868
7869         PR symtab/13777
7870         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7871         GCC >=4.5.
7872
7873 2012-03-16  Chris January  <chris.january@allinea.com>
7874
7875         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7876         of clear.
7877
7878 2012-03-16  Chris January  <chris.january@allinea.com>
7879
7880         * source.c (add_path): Use memmove instead of strcpy because the
7881         strings overlap.
7882
7883 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7884
7885         * value.h (set_value_parent): Add declaration.
7886         * value.c (set_value_parent): New function.
7887         (value_address): If VALUE->PARENT is not NULL, then use it as
7888         the base address instead of VALUE->LOCATION.address.
7889         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7890         the same as OBJ's address.  Adjust V's offset accordingly.
7891         Set V's parent.
7892
7893 2012-03-16  Gary Benson  <gbenson@redhat.com>
7894
7895         PR breakpoints/10738
7896         * dwarf2read.c (use_deprecated_index_sections): New global.
7897         (struct partial_die_info): New member may_be_inlined.
7898         (read_partial_die): Set may_be_inlined where appropriate.
7899         (add_partial_subprogram): Add partial symbols for partial
7900         DIEs that may be inlined.
7901         (new_symbol_full): Add inlined subroutines to the current
7902         scope.
7903         (write_psymtabs_to_index): Bump version number.
7904         (dwarf2_read_index): Read only version 6 indices unless
7905         use_deprecated_index_sections is set.
7906         * linespec.c (symbol_and_data_callback): New structure.
7907         (iterate_inline_only): New function.
7908         (iterate_over_all_matching_symtabs): New argument
7909         "include_inline".  If nonzero, also call the callback for
7910         symbols representing inlined subroutines.
7911         (lookup_prefix_sym): Pass extra argument to the above.
7912         (find_function_symbols): Likewise.
7913         (add_matching_symbols_to_info): Likewise.
7914         * NEWS: Mention that GDB can now set breakpoints on inlined
7915         functions.
7916
7917 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7918
7919         * p-typeprint.c (pascal_type_print_method_args):
7920         Fix display of parameter of methods.
7921
7922 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7923
7924         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7925         Add missing prototype.
7926
7927 2012-03-16  Yao Qi  <yao@codesourcery.com>
7928             Jan Kratochvil  <jan.kratochvil@redhat.com>
7929
7930         Fix false compilation warning.
7931         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7932
7933 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
7934             Pedro Alves  <pedro@codesourcery.com>
7935
7936         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7937         (arm_register_g_packet_guesses): New function.
7938         (arm_gdbarch_init): Don't force a target description with
7939         registers when the executable is detected as M-profile.  Instead
7940         set gdbarch->tdep->is_m.  Register `g' packet guesses.
7941         (_initialize_arm_tdep): Initialize the new target description.
7942         * features/arm-with-m-fpa-layout.xml: New description.
7943         * features/arm-with-m-fpa-layout.c: New, generated.
7944
7945 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
7946
7947         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7948         Update function description.
7949         (insert_bp_location): Do not wipe bl->target_info out.
7950         * mem-break.c: #include "gdb_string.h".
7951         (default_memory_insert_breakpoint): Do not call target_read_memory
7952         with a pointer to the breakpoint's shadow_contents buffer.  Use
7953         a local buffer instead.
7954         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7955
7956 2012-03-15  Tom Tromey  <tromey@redhat.com>
7957
7958         * NEWS: Mention "info vtbl", not "info vtable".
7959         * cp-support.c (info_vtbl_command): Fix comment.
7960         (_initialize_cp_support): Fix text.
7961
7962 2012-03-15  Tom Tromey  <tromey@redhat.com>
7963
7964         * cp-valprint.c (cp_print_value_fields): Use
7965         print_function_pointer_address for vtable slot.
7966
7967 2012-03-15  Tom Tromey  <tromey@redhat.com>
7968
7969         * gnu-v3-abi.c (struct value_and_voffset): New.
7970         (hash_value_and_voffset, eq_value_and_voffset)
7971         (compare_value_and_voffset, compute_vtable_size)
7972         (print_one_vtable, gnuv3_print_vtable): New functions.
7973         (init_gnuv3_ops): Initialize 'print_vtable' field.
7974         * cp-support.c (info_vtbl_command): New function.
7975         (_initialize_cp_support): Add "info vtbl".
7976         * cp-abi.h (cplus_print_vtable): Declare.
7977         (struct cp_abi_ops) <print_vtable>: New field.
7978         * cp-abi.c (cplus_print_vtable): New function.
7979         * NEWS: Update.
7980
7981 2012-03-15  Tom Tromey  <tromey@redhat.com>
7982
7983         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7984         iterate_over_symbols.
7985
7986 2012-03-14  Doug Evans  <dje@google.com>
7987
7988         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7989         DW_OP_GNU_parameter_ref.
7990
7991 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7992
7993         Fix double prompt of 'interpreter-exec mi'.
7994         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7995         (mi_interpreter_resume): use it.
7996         (mi_execute_command_input_handler): New function.
7997         * mi/mi-main.c (mi_execute_command): Move prompt printing to
7998         mi_execute_command_input_handler.
7999
8000 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8001
8002         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8003         prototype.
8004         (darwin_debug_port_info): Make static.
8005         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8006         * machoread.c (_initialize_machoread): Add prototype.
8007         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8008         (i386_darwin_set_control, i386_darwin_get_control)
8009         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8010         i386_darwin_get_status, i386_darwin_get_control):
8011         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8012
8013 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8014
8015         * ax-gdb.c (gen_usual_unary): Remove special handling of
8016         enum and bool types.
8017
8018 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8019
8020         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8021
8022 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8023
8024         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8025
8026 2012-03-13  Chris January  <chris.january@allinea.com>
8027
8028         * aix-thread.c (fill_sprs): Store the floating point registers
8029         at the correct offsets into vals.
8030
8031 2012-03-13  Doug Evans  <dje@google.com>
8032
8033         * NEWS: Mention symbol-reloading has been deleted.
8034         * symfile.c (symbol_reloading): Delete.
8035         (show_symbol_reloading): Delete.
8036         (_initialize_symfile): Delete set/show symbol-reloading.
8037
8038         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8039         read_in_chain until we have successfully read it in.
8040         (load_full_comp_unit): Ditto.
8041         (read_signatured_type): Add comment.
8042
8043 2012-03-13  Chris January  <chris.january@allinea.com>
8044
8045         * stabsread.c (fix_common_block): Change type of valu argument
8046         to CORE_ADDR.
8047
8048 2012-03-13  Chris January  <chris.january@allinea.com>
8049
8050         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8051         instruction.
8052
8053 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8054
8055         * common/linux-procfs.c (linux_proc_get_int): New, from
8056         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8057         field.
8058         (linux_proc_get_tgid): Only call linux_proc_get_int.
8059         (linux_proc_get_tracerpid): New.
8060         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8061         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8062         linux_proc_pid_has_state.
8063         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8064         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8065         (linux_ptrace_attach_warnings): New.
8066         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8067         New declaration.
8068         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8069         (linux_nat_attach): New variables ex, buffer, message and message_s.
8070         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8071
8072 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8073
8074         * Makefile.in (linux-ptrace.o): New.
8075         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8076         from linux-nat.c.
8077         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8078         * common/linux-ptrace.c: New file.
8079         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8080         * config/arm/linux.mh: Likewise.
8081         * config/i386/linux.mh: Likewise.
8082         * config/i386/linux64.mh: Likewise.
8083         * config/ia64/linux.mh: Likewise.
8084         * config/m32r/linux.mh: Likewise.
8085         * config/m68k/linux.mh: Likewise.
8086         * config/mips/linux.mh: Likewise.
8087         * config/pa/linux.mh: Likewise.
8088         * config/powerpc/linux.mh: Likewise.
8089         * config/powerpc/ppc64-linux.mh: Likewise.
8090         * config/powerpc/spu-linux.mh: Likewise.
8091         * config/s390/s390.mh: Likewise.
8092         * config/sparc/linux.mh: Likewise.
8093         * config/sparc/linux64.mh: Likewise.
8094         * config/xtensa/linux.mh: Likewise.
8095         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8096         common/linux-procfs.c.
8097         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8098
8099 2012-03-13  Hui Zhu  <teawater@gmail.com>
8100             Pedro Alves  <palves@redhat.com>
8101
8102         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8103         CREATE_BREAKPOINT_FLAGS_INSERTED.
8104         (create_breakpoint_sal, create_breakpoints_sal)
8105         (base_breakpoint_create_breakpoints_sal)
8106         (tracepoint_create_breakpoints_sal)
8107         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8108         down.
8109         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8110         (ftrace_command, strace_command): Adjust.
8111         (create_tracepoint_from_upload): Pass
8112         CREATE_BREAKPOINT_FLAGS_INSERTED.
8113         * breakpoint.h (enum breakpoint_create_flags): New.
8114         (create_breakpoint): New flags parameter.
8115         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8116         * python/py-breakpoint.c (bppy_init): Adjust.
8117         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8118         * spu-tdep.c (spu_catch_start): Adjust.
8119
8120 2012-03-13  Pedro Alves  <palves@redhat.com>
8121             Hui Zhu  <teawater@gmail.com>
8122             Yao Qi  <yao@codesourcery.com>
8123
8124         * remote.c (struct remote_state): New field `starting_up'.
8125         (remote_start_remote): Set and clear it.
8126         (remote_can_download_tracepoint): If starting up, return false.
8127
8128 2012-03-13  Yao Qi  <yao@codesourcery.com>
8129
8130         * inferior.h (struct inferior): Remove fields any_syscall_count,
8131         syscalls_counts and total_syscalls_count.  Move them to new
8132         struct catch_syscall_inferior_data in breakpoint.c.
8133         * breakpoint.c: Call DEF_VEC_I(int).
8134         (struct catch_syscall_inferior_data): New.
8135         (get_catch_syscall_inferior_data): New.
8136         (catch_syscall_inferior_data_cleanup): New.
8137         (insert_catch_syscall): Update to access data in
8138         struct catch_syscall_inferior_data.
8139         (insert_catch_syscall): Likewise.
8140         (remove_catch_syscall): Likewise.
8141         (remove_catch_syscall): Likewise.
8142         (is_syscall_catchpoint_enabled): Likewise.
8143         (add_catch_command): Likewise.
8144         (_initialize_breakpoint): Register cleanup.
8145         * breakpoint.h: Removed DEF_VEC_I(int).
8146         * dwarf2loc.c: Call DEF_VEC_I(int).
8147         * mi/mi-main.c: Likewise.
8148
8149 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8150
8151         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8152
8153 2012-03-12  Chris January  <chris.january@allinea.com>
8154
8155         * aix-thread.c (_initialize_aix_thread): Add prototype.
8156         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8157         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8158
8159 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8160
8161         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8162         include of "amd64-nat.h".
8163
8164 2012-03-12  Tom Tromey  <tromey@redhat.com>
8165
8166         * buildsym.c (record_pending_block): Now static.
8167         * buildsym.h: (record_pending_block): Remove.
8168
8169 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8170
8171         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8172
8173 2012-03-09  Tom Tromey  <tromey@redhat.com>
8174
8175         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8176         producer_is_gxx_lt_4_6>: New fields.
8177         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8178
8179 2012-03-09  Tom Tromey  <tromey@redhat.com>
8180
8181         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8182
8183 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8184
8185         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8186         prototype.
8187
8188 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8189
8190         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8191
8192 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8193
8194         Fix -Wmissing-prototypes build.
8195         * arm-linux-nat.c (get_thread_id): Make it static.
8196         * xtensa-linux-nat.c (get_thread_id): Likewise.
8197
8198 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8199
8200         * server.c (process_point_options): If a conditional expression
8201         is found, only print a message if remote_debug is nonzero.
8202
8203 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8204
8205         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8206         of internal error for unknown/unsupported types.
8207
8208 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8209
8210         Fix CU relative vs. absolute DIE offsets.
8211         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8212         offset to offset_in_cu.
8213         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8214         TYPE_OFFSET.
8215         (dwarf2_fetch_die_location_block): Rename parameter offset to
8216         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8217
8218 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8219
8220         * libunwind-frame.c: Rename to ...
8221         * ia64-libunwind-tdep.c: ... here.
8222         * libunwind-frame.h: Rename to ...
8223         * ia64-libunwind-tdep.h: ... here.
8224         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8225         ia64-libunwind-tdep.h.
8226         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8227         * README (--with-libunwind): Rename to ...
8228         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8229         * config.in: Regenerate.
8230         * configure: Regenerate.
8231         * configure.ac: New option --with-libunwind-ia64, make the
8232         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8233         Remove AC_DEFINE for HAVE_LIBUNWIND.
8234         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8235         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8236         Rename libunwind-frame in the general comment.
8237         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8238         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8239         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8240         the general comment.
8241         * ia64-tdep.c: Rename libunwind-frame.h #include to
8242         ia64-libunwind-tdep.h.
8243         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8244         (ia64_libunwind_descr): Rename libunwind-frame to
8245         ia64-libunwind-tdep in these function comments.
8246         * ia64-tdep.h: Rename libunwind-frame.h #include to
8247         ia64-libunwind-tdep.h.
8248         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8249         ia64-libunwind-tdep in that data comment.
8250
8251 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8252
8253         * libunwind-frame.h (struct frame_unwind): New declaration.
8254
8255 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8256
8257         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8258         "set breakpoint condition-evaluation" command.
8259
8260 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8261
8262         * sparc-stub.c: Move to stubs/
8263         * sh-stub.c: Likewise.
8264         * m68k-stub.c: Likewise.
8265         * m32r-stub.c: Likewise.
8266         * i386-stub.c: Likewise.
8267
8268 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8269
8270         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8271         linux_get_siginfo_type.
8272
8273         * m68klinux-nat.c: Include "gdb_proc_service.h".
8274         (PTRACE_GET_THREAD_AREA): Define.
8275         (ps_get_thread_area): New function.
8276
8277 2012-03-08  Yao Qi  <yao@codesourcery.com>
8278
8279         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8280         `xsnprintf'.
8281         (remote_query_attached): Likewise.
8282         (remote_static_tracepoint_marker_at): Likewise.
8283         (remote_set_permissions): Likewise.
8284         (remote_detach_1, extended_remote_attach_1): Likewise.
8285         (send_g_packet, remote_vkill): Likewise.
8286         (extended_remote_disable_randomization): Likewise.
8287         (remote_add_target_side_condition): Likewise.
8288         (remote_insert_breakpoint): Likewise.
8289         (remote_remove_breakpoint): Likewise.
8290         (remote_insert_watchpoint): Likewise.
8291         (remote_remove_watchpoint): Likewise.
8292         (remote_insert_hw_breakpoint): Likewise.
8293         (remote_insert_hw_breakpoint): Likewise.
8294         (remote_remove_hw_breakpoint): Likewise.
8295         (remote_download_command_source): Likewise.
8296         (remote_download_tracepoint): Likewise.
8297         (remote_download_trace_state_variable): Likewise.
8298         (remote_disable_tracepoint): Likewise.
8299         (remote_trace_set_readonly_regions): Likewise.
8300         (remote_get_tracepoint_status): Likewise.
8301         (remote_trace_find): Likewise.
8302         (remote_get_trace_state_variable_value): Likewise.
8303         (remote_set_disconnected_tracing): Likewise.
8304         (remote_set_circular_trace_buffer): Likewise.
8305         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8306         (remote_use_agent): Likewise.
8307         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8308         Update callers.
8309
8310 2012-03-07  Pedro Alves  <palves@redhat.com>
8311
8312         * NEWS: Mention QProgramSignals.
8313         * inferior.h (update_signals_program_target): Declare.
8314         * infrun.c: (update_signals_program_target): New.
8315         (handle_command): Update the target of the new program signals
8316         array changes.
8317         * remote.c (PACKET_QProgramSignals): New enum.
8318         (last_program_signals_packet): New global.
8319         (remote_program_signals): New.
8320         (remote_start_remote): Update the target with the program signals
8321         list.
8322         (remote_protocol_features): Add entry for QPassSignals.
8323         (remote_open_1): Free anc clear last_program_signals_packet.
8324         (init_remote_ops): Install remote_program_signals.
8325         * target.c (update_current_target): Adjust.
8326         (target_program_signals): New.
8327         * target.h (struct target_ops) <to_program_signals>: New field.
8328         (target_program_signals): Declare.
8329
8330 2012-03-07  Pedro Alves  <palves@redhat.com>
8331
8332         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8333         extensions.
8334
8335 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8336
8337         * m68klinux-nat.c (getregs_supplies): Make static.
8338         (getfpregs_supplies): Likewise.
8339         (have_ptrace_getregs): Likewise.
8340
8341 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8342
8343         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8344         in call to get_die_type_at_offset.
8345
8346 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8347
8348         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8349         * mi/mi-cmd-disas.c: Ditto.
8350         * mi/mi-cmd-env.c: Ditto.
8351         * mi/mi-cmd-file.c: Ditto.
8352         * mi/mi-cmd-stack.c: Ditto.
8353         * mi/mi-cmd-target.c: Ditto.
8354         * mi/mi-cmd-var.c: Ditto.
8355         * mi/mi-cmds.c: Ditto.
8356         * mi/mi-cmds.h: Ditto.
8357         * mi/mi-console.c: Ditto.
8358         * mi/mi-getopt.c: Ditto.
8359         * mi/mi-getopt.h: Ditto.
8360         * mi/mi-interp.c: Ditto.
8361         * mi/mi-main.c: Ditto.
8362         * mi/mi-out.c: Ditto.
8363         * mi/mi-parse.c: Ditto.
8364         * mi/mi-parse.h: Ditto.
8365         * mi/mi-symbol-cmds.c: Ditto.
8366
8367         * mi/mi-getopt.h: Move mi_opt struct up.
8368         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8369         return.
8370         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8371
8372 2012-03-06  Tom Tromey  <tromey@redhat.com>
8373
8374         * proc-service.c (ps_pglobal_lookup): Set the current program
8375         space.
8376
8377 2012-03-06  Pedro Alves  <palves@redhat.com>
8378
8379         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8380
8381 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8382
8383         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8384
8385 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8386
8387         Code cleanup.
8388         * common/linux-osdata.c (linux_common_core_of_thread): New function
8389         comment.
8390         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8391         call by linux_common_core_of_thread.
8392         (linux_nat_core_of_thread_1): Remove.
8393         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8394         * linux-thread-db.c: Include linux-osdata.h.
8395         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8396         linux_common_core_of_thread.
8397
8398 2012-03-05  Tom Tromey  <tromey@redhat.com>
8399
8400         * value.c (value_primitive_field): Don't fetch contents for
8401         non-virtual bases.
8402
8403 2012-03-05  Tom Tromey  <tromey@redhat.com>
8404
8405         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8406
8407 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8408
8409         * s390-nat.c: Include "gregset.h".
8410
8411 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8412
8413         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8414         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8415         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8416         load also LIBUNWIND_SO_7.
8417
8418 2012-03-05  Pedro Alves  <palves@redhat.com>
8419
8420         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8421         is not NULL, and remove resulting dead code.
8422
8423 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8424
8425         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8426         prologue to sh_analyze_prologue.
8427         (sh_analyze_prologue): Make better use of such an upper limit, and
8428         generally be more cautious about accessing memory.
8429
8430 2012-03-05  Tom Tromey  <tromey@redhat.com>
8431
8432         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8433         _initialize_ia64_hpux_tdep.
8434
8435 2012-03-05  Pedro Alves  <palves@redhat.com>
8436
8437         PR gdb/13766
8438
8439         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8440         the register state is clear, supply explicit zero, instead of
8441         marking the register unavailable.
8442
8443 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8444
8445         * NEWS: Mention OpenVMS ia64 new target.
8446
8447 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8448
8449         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8450         (ia64_unw_accessors, ia64_unw_rse_accessors)
8451         (ia64_libunwind_descr): Declare.
8452         * ia64-vms-tdep.c: New file.
8453         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8454         (ia64_libunwind_descr): Make them public.
8455         * configure.tgt: Add ia64-*-*vms*.
8456         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8457         (ALLDEPFILES): Add ia64-vms-tdep.c
8458
8459 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8460
8461         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8462         * remote.c (PACKET_qXfer_uib): New enum value.
8463         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8464         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8465         (_initialize_remote): Call add_packet_config_cmd for
8466         xfer:uib packet.
8467
8468 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8469
8470         * osabi.c (gdb_osabi_names): Add OpenVMS.
8471         (generic_elf_osabi_sniffer): Likewise.
8472         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8473
8474 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8475
8476         Removed unused code.
8477         * libunwind-frame.c (libunwind_frame_unwind)
8478         (libunwind_frame_base_address): Remove.
8479         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8480
8481 2012-03-04  Yao Qi  <yao@codesourcery.com>
8482
8483         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8484         remove trailing new line.
8485         (agent_run_command, agent_run_command): Add _ markup.
8486         (agent_capability_check): Likewise.
8487
8488 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8489
8490         * breakpoint.c (set_condition_evaluation_mode): Set
8491         CONDITION_EVALUATION_MODE unconditionally.
8492
8493 2012-03-03  Yao Qi  <yao@codesourcery.com>
8494
8495         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8496         * common/agent.h: Update declaration.
8497         * inf-child.c (inf_child_use_agent): New.
8498         (inf_child_can_use_agent): New.
8499         (inf_child_target): Initialize fields `to_use_agent'
8500         and `to_can_use_agent'.
8501         * agent.c (agent_new_objfile): New.
8502         (_initialize_agent): Add agent_new_objfile to new_objfile
8503         observer.
8504
8505         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8506         New.
8507         (linux_target_install_ops): Initialize field
8508         `to_static_tracepoint_markers_by_strid'.
8509         * remote.c (free_current_marker): Move it to ...
8510         * tracepoint.c (free_current_marker): ... here.  New.
8511         (cleanup_target_stop): New.
8512         * tracepoint.h: Declare free_current_marker.
8513         * NEWS: Add one entry about `info static-tracepoint-marker'.
8514
8515 2012-03-03  Yao Qi  <yao@codesourcery.com>
8516
8517         * common/agent.c (agent_loaded_p): New.
8518         (agent_look_up_symbols): New global.
8519         * common/agent.h: Declare agent_loaded_p.
8520
8521 2012-03-03  Yao Qi  <yao@codesourcery.com>
8522
8523         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8524         (agent_capability_check, agent_capability_invalidate): New.
8525         (symbol_list): New array element.
8526         * common/agent.h (enum agent_capa): New.
8527         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8528
8529 2012-03-03  Yao Qi  <yao@codesourcery.com>
8530
8531         * target.h (struct target_ops) <to_use_agent>: New field.
8532         (struct target_ops) <to_can_use_agent>: New field.
8533         (target_use_agent, target_can_use_agent): New macro.
8534         * target.c (update_current_target): Update.
8535         * remote.c: New enum `PACKET_QAgent'.
8536         (remote_protocol_features): Add a new element.
8537         (remote_use_agent, remote_can_use_agent): New.
8538         (init_remote_ops): Initialize field `can_use_agent' with
8539         remote_can_use_agent.  Intiailize field `use_agent' with
8540         remote_use_agent.
8541         * common/agent.c (use_agent): New global.
8542         * common/agent.h: Declare it.
8543         * tracepoint.c (info_static_tracepoint_markers_command): Add
8544         comment.
8545         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8546         (COMMON_OBS): Add common/agent.o and agent.o
8547         (common-agent.o): New rule.
8548         * agent.c: New.
8549
8550 2012-03-03  Yao Qi  <yao@codesourcery.com>
8551
8552         * common/agent.c: New.
8553         * common/agent.h: New.
8554         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8555         AC_CHECK_HEADERS.
8556         * configure, configh.in: Regenerated.
8557
8558 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8559
8560         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8561         unless it exists for this architecture.
8562
8563 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8564
8565         * language.h (struct language_defn): New "method" la_read_var_value.
8566         * findvar.c: #include "language.h".
8567         (default_read_var_value): Renames read_var_value.  Rewrite
8568         function description.
8569         (read_var_value): New function.
8570         * value.h (default_read_var_value): Add prototype.
8571         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8572         New functions.
8573         (ada_language_defn): Add entry for la_read_var_value.
8574         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8575         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8576         language_defn structures to add entry for new la_read_var_value
8577         field.
8578
8579 2012-03-02  Tom Tromey  <tromey@redhat.com>
8580             Pedro Alves  <palves@redhat.com>
8581
8582         PR breakpoints/13776:
8583         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8584         breakpoints.
8585         (delete_longjmp_breakpoint_at_next_stop): New.
8586         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8587         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8588         before deleting the inferior.  Add comments.
8589         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8590         breakpoints immediately, but only on next stop.  Move that code
8591         next to where we mark other breakpoints for deletion.
8592
8593 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8594
8595         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8596         marker.
8597         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8598         violation.
8599
8600 2012-03-02  Pedro Alves  <palves@redhat.com>
8601
8602         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8603
8604 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8605
8606         Fix -Wmissing-prototypes build.
8607         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8608         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8609         (gdbsim_has_memory): Likewise.
8610
8611 2012-03-02  Yao Qi  <yao@codesourcery.com>
8612
8613         Fix -Wmissing-prototypes build.
8614         * charset.c (phony_iconv_open): Make static.
8615         (phony_iconv_close, phony_iconv): Likewise.
8616         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8617         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8618         prototype.
8619         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8620         * ser-mingw.c (create_select_thread): Make static.
8621         * windows-termcap.c (tgetent): New prototype.
8622         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8623
8624 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8625
8626         Fix -Wmissing-prototypes build.
8627         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8628         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8629         (_initialize_loadable): New prototypes.
8630
8631 2012-03-02  Doug Evans  <dje@google.com>
8632
8633         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8634         abbrev table, read_comp_unit will do it.
8635
8636 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8637
8638         Fix -Wmissing-prototypes build.
8639         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8640         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8641         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8642         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8643         (_initialize_arm_symbian_tdep): New prototype.
8644         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8645         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8646         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8647         static.
8648         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8649         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8650         prototype.
8651         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8652         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8653         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8654         static.
8655         * moxie-tdep.c (moxie_process_record): Likewise.
8656         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8657         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8658         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8659         (_initialize_rl78_tdep): New prototype.
8660         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8661         (_initialize_rx_tdep): New prototype.
8662         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8663         (_initialize_darwin_solib): New prototype.
8664         * solib-spu.c: Include solib-spu.h.
8665         (_initialize_spu_solib): New prototype.
8666         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8667         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8668         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8669         (tic6x_software_single_step): Make it static.
8670         (_initialize_tic6x_tdep): New prototype.
8671
8672 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8673
8674         Fix -Wmissing-prototypes build.
8675         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8676         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8677
8678 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8679
8680         Fix -Wmissing-prototypes build.
8681         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8682         (frv_have_stopped_data_address): Remove.
8683
8684 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8685
8686         Fix -Wmissing-prototypes build.
8687         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8688         * sh-tdep.c: Include sh64-tdep.h.
8689         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8690         * sh64-tdep.c: Include sh64-tdep.h.
8691         * sh64-tdep.h: New file.
8692
8693 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8694
8695         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8696
8697 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8698
8699         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8700         sp_regnum once the gdbarch_init_osabi hook has been called.
8701
8702 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8703
8704         * mips-tdep.c (mips32_bc1_pc): New function.
8705         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8706         BPOSGE32 and BPOSGE64 instructions.
8707         (deal_with_atomic_sequence): Likewise.
8708         (mips32_instruction_has_delay_slot): Likewise.
8709
8710 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8711             Chris Dearman  <chris@mips.com>
8712             Maciej W. Rozycki  <macro@codesourcery.com>
8713             Joseph Myers  <joseph@codesourcery.com>
8714
8715         * features/mips-dsp.xml: New file.
8716         * features/mips64-dsp.xml: New file.
8717         * features/mips-dsp-linux.xml: New file.
8718         * features/mips64-dsp-linux.xml: New file.
8719         * features/Makefile (WHICH): Add mips-dsp-linux and
8720         mips64-dsp-linux.
8721         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8722         * features/mips-dsp-linux.c: New file.
8723         * features/mips64-dsp-linux.c: New file.
8724         * regformats/mips-dsp-linux.dat: New file.
8725         * regformats/mips64-dsp-linux.dat: New file.
8726         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8727         registers.
8728         (mips64_linux_register_addr): Likewise.
8729         (mips64_linux_regsets_fetch_registers): Likewise.
8730         (mips64_linux_regsets_store_registers): Likewise.
8731         (mips64_linux_fetch_registers): Update call to
8732         mips64_linux_regsets_fetch_registers.
8733         (mips64_linux_store_registers): Update call to
8734         mips64_linux_regsets_store_registers.
8735         (mips_linux_read_description): Probe for DSP registers.
8736         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8737         and initialize_tdesc_mips64_dsp_linux.
8738         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8739         Remove padding of no longer used embedded register slots.
8740         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8741         (MIPS_RESTART_REGNUM): Redefine enum value.
8742         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8743         strings.
8744         (mips_tx39_reg_names): Likewise.
8745         (mips_linux_reg_names): New array of register names for Linux
8746         targets.
8747         (mips_register_name): Check for a null pointer in
8748         mips_processor_reg_names and return an empty string.
8749         (mips_register_type): Exclude embedded registers for the IRIX
8750         and Linux ABIs.
8751         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8752         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8753         DSP registers.
8754         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8755         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8756         (mips_gdbarch_init): Likewise.  Initialize internal register
8757         indices for the Linux ABI.  Use dynamic numbers to refer to
8758         registers, as applicable, while parsing the target description.
8759         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8760
8761 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8762
8763         * frame.h (read_frame_register_unsigned): Fix typo in function
8764         description.
8765
8766 2012-03-01  Pedro Alves  <palves@redhat.com>
8767
8768         * jit-reader.in [!__cplusplus]
8769         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8770
8771 2012-03-01  Pedro Alves  <palves@redhat.com>
8772
8773         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8774         * configure: Regenerate.
8775
8776 2012-03-01  Pedro Alves  <palves@redhat.com>
8777
8778         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8779         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8780         (ftrace_command, strace_command): Make static.
8781         * d-lang.c (_initialize_d_language): Declare.
8782         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8783         * dwarf2loc.c (_initialize_dwarf2loc):
8784         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8785         * exec.c (exec_get_section_table): Make static.
8786         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8787         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8788         * inferior.c (remove_inferior_command, add_inferior_command)
8789         (clone_inferior_command): Make static.
8790         * linux-nat.c (linux_nat_thread_address_space)
8791         (linux_nat_core_of_thread): Make static.
8792         * linux-tdep.c (_initialize_linux_tdep): Declare.
8793         * objc-lang.c (_initialize_objc_lang): Declare.
8794         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8795         Make static.
8796         (_initialize_opencl_language): Declare.
8797         * record.c (_initialize_record): Declare.
8798         * remote.c (demand_private_info, remote_get_tib_address)
8799         (remote_supports_cond_tracepoints)
8800         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8801         Make static.
8802         * skip.c (_initialize_step_skip): Declare.
8803         * symtab.c (skip_prologue_using_lineinfo): Make static.
8804         * tracepoint.c (delete_trace_state_variable)
8805         (trace_variable_command, delete_trace_variable_command)
8806         (get_uploaded_tsv, find_matching_tracepoint_location)
8807         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8808         Make static.
8809         * value.c (pack_unsigned_long): Make static.
8810         * varobj.c (varobj_ensure_python_env): Make static.
8811         * windows-tdep.c (_initialize_windows_tdep): Declare.
8812         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8813
8814 2012-03-01  Pedro Alves  <palves@redhat.com>
8815
8816         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8817         gdbarch parameter.
8818         (linux_init_abi): Install it as has_shared_address_space gdbarch
8819         callback.
8820
8821 2012-03-01  Pedro Alves  <palves@redhat.com>
8822
8823         * observer.c (observer_test_first_notification_function)
8824         (observer_test_second_notification_function)
8825         (observer_test_third_notification_function): Add declarations.
8826
8827 2012-03-01  Pedro Alves  <palves@redhat.com>
8828
8829         * common/signals.c (default_target_signal_to_host)
8830         (default_target_signal_from_host): Move ...
8831         * arch-utils.c: ... here.
8832         * arch-utils.h (default_target_signal_to_host)
8833         (default_target_signal_from_host): Declare.
8834
8835         * common/signals.c (target_signal_from_command): Move ...
8836         * infrun.c: ... here.
8837         * inferior.h (target_signal_from_command): Declare.
8838         * target.h (target_signal_from_command)
8839         (default_target_signal_from_host, default_target_signal_to_host):
8840         Delete declarations.
8841
8842         * common/signals.c (_initialize_signals): Delete.
8843
8844 2012-03-01  Pedro Alves  <palves@redhat.com>
8845
8846         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8847         both __cplusplus and !__cplusplus.
8848
8849 2012-03-01  Pedro Alves  <palves@redhat.com>
8850
8851         * psymtab.c (find_and_open_source): Delete declaration.
8852         * source.c (find_and_open_source): Move comment ...
8853         * source.h (find_and_open_source): ... to this new declaration.
8854
8855 2012-03-01  Pedro Alves  <palves@redhat.com>
8856
8857         * inline-frame.c: Include inline-frame.h.
8858
8859 2012-03-01  Pedro Alves  <palves@redhat.com>
8860
8861         * tui/tui-data.c (set_gen_win_origin): Delete.
8862         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8863         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8864
8865 2012-03-01  Pedro Alves  <palves@redhat.com>
8866
8867         * remote.c (encode_actions): Delete declaration.
8868         * tracepoint.c (encode_actions): Make extern.
8869         * tracepoint.h (encode_actions): Declare.
8870
8871 2012-03-01  Pedro Alves  <palves@redhat.com>
8872
8873         * python/py-breakpoint.c: Include python.h.
8874         * python/py-continueevent.c (create_continue_event_object): Make
8875         static.
8876         * python/py-lazy-string.c (stpy_get_type): Make static.
8877         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8878         Make static.
8879         * python/py-utils.c (unicode_to_target_python_string): Make
8880         static.
8881         * python/py-value.c: Include python.h.
8882
8883 2012-03-01  Pedro Alves  <palves@redhat.com>
8884
8885         * inferior.c (delete_threads_of_inferior): Delete.
8886
8887 2012-03-01  Pedro Alves  <palves@redhat.com>
8888
8889         Import fallback definitions from glibc.
8890
8891         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8892         ps_prochandle): Forward declare.
8893         (ps_err_e): Use glibc's comments.
8894         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8895         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8896         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8897         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8898         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8899         (struct ps_prochandle): Adjust comment.
8900
8901 2012-03-01  Pedro Alves  <palves@redhat.com>
8902
8903         * ada-lang.c (ada_modulus_from_name): Delete.
8904         * ada-lex.l (lexer_init): Make static.
8905
8906 2012-03-01  Pedro Alves  <palves@redhat.com>
8907
8908         PR gdb/13767
8909
8910         * frame.c (read_frame_register_unsigned): New.
8911         * frame.h (read_frame_register_unsigned): Declare.
8912         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8913         Handle it.
8914         (print_i387_control_word): New parameter `control_p'.  Handle it.
8915         (i387_print_float_info): Handle unavailable float registers.
8916
8917 2012-03-01  Keith Seitz  <keiths@redhat.com>
8918
8919         * linespec.c (decode_line_2): Sort the list of methods
8920         alphabetically before presenting the user with a selection
8921         menu.
8922
8923 2012-03-01  Doug Evans  <dje@google.com>
8924
8925         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8926         has_namespace_info.
8927         (dwarf2_read_abbrevs): Remove corresponding initialization.
8928
8929 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
8930
8931         * NEWS: Mention new python command class gdb.COMMAND_USER.
8932         * cli/cli-cmds.c (show_user): Print error when used on a python
8933         command.
8934         (init_cli_cmds): Update documentation strings for "show user" and
8935         "set/show max-user-call-depth" to clarify that it does not apply to
8936         python commands.
8937         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8938         error check.
8939         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8940         gdb python api.
8941         * top.c (execute_command): Only execute a user-defined command as a
8942         legacy macro if c->user_commands is set.
8943
8944 2012-03-01  Tom Tromey  <tromey@redhat.com>
8945
8946         * valprint.h (struct generic_val_print_decorations): New.
8947         (generic_val_print): Declare.
8948         * valprint.c (generic_val_print): New function.
8949         * p-valprint.c (p_decorations): New global.
8950         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8951         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8952         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8953         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8954         * m2-valprint.c (m2_decorations): New global.
8955         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8956         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8957         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8958         TYPE_CODE_ERROR>: Call generic_val_print.
8959         * f-valprint.c (f_decorations): New global.
8960         (f_val_print): Use print_function_pointer_address.
8961         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8962         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8963         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8964         generic_val_print.
8965         * c-valprint.c (c_decorations): New global.
8966         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8967         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8968         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8969         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8970         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8971         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8972         case.
8973
8974 2012-03-01  Tom Tromey  <tromey@redhat.com>
8975
8976         * valprint.c (val_print): Update.
8977         * p-valprint (pascal_val_print): Return void.
8978         * p-lang.h (pascal_val_print): Return void.
8979         * m2-valprint.c (m2_val_print): Return void.
8980         * m2-lang.h (m2_val_print): Return void.
8981         * language.h (struct language_defn) <la_val_print>: Return void.
8982         * language.c (unk_lang_val_print): Return void.
8983         * jv-valprint.c (java_val_print): Return void.
8984         * jv-lang.h (java_val_print): Return void.
8985         * f-valprint.c (f_val_print): Return void.
8986         * f-lang.h (f_val_print): Return void.
8987         * d-valprint.c (d_val_print): Return void.
8988         (dynamic_array_type): Update.
8989         * d-lang.h (d_val_print): Return void.
8990         * c-valprint.c (c_val_print): Return void.
8991         * c-lang.h (c_val_print): Return void.
8992         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8993         void.
8994         * ada-lang.h (ada_val_print): Return void.
8995
8996 2012-03-01  Tom Tromey  <tromey@redhat.com>
8997
8998         * value.h (val_print): Return void.
8999         * valprint.c (val_print): Return void.
9000
9001 2012-03-01  Tom Tromey  <tromey@redhat.com>
9002
9003         * value.h (common_val_print): Return void.
9004         * valprint.c (common_val_print): Return void.
9005
9006 2012-03-01  Tom Tromey  <tromey@redhat.com>
9007
9008         * value.h (value_print): Return void.
9009         * valprint.c (value_print): Return void.
9010         * p-valprint.c (pascal_value_print): Return void.
9011         * p-lang.h (pascal_value_print): Return void.
9012         * language.h (struct language_defn) <la_value_print>: Return
9013         void.
9014         * language.c (unk_lang_value_print): Return void.
9015         * jv-valprint.c (java_value_print): Return void.
9016         * jv-lang.h (java_value_print): Return void.
9017         * f-valprint.c (c_value_print): Don't declare.
9018         Include c-lang.h.
9019         * c-valprint.c (c_value_print): Return void.
9020         * c-lang.h (c_value_print): Return void.
9021         * ada-valprint.c (ada_value_print): Return void.
9022         * ada-lang.h (ada_value_print): Return void.
9023
9024 2012-03-01  Tom Tromey  <tromey@redhat.com>
9025
9026         * value.c (value_primitive_field): Handle virtual base classes.
9027
9028 2012-03-01  Tom Tromey  <tromey@redhat.com>
9029
9030         * gdbtypes.h (struct vbase): Remove.
9031
9032 2012-03-01  Tom Tromey  <tromey@redhat.com>
9033
9034         * c-valprint.c (print_function_pointer_address): Move...
9035         * valprint.c: ... here.  Make non-static.
9036         * m2-valprint.c (print_function_pointer_address): Remove.
9037         * valprint.h (print_function_pointer_address): Declare.
9038
9039 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9040
9041         * NEWS: Document the fact that one can provide a condition when
9042         creating an Ada exception catchpoint.
9043
9044 2012-03-01  Tom Tromey  <tromey@redhat.com>
9045
9046         * valprint.c (val_print_type_code_flags): Fix placement of
9047         trailing brace.
9048
9049 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9050
9051         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9052         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9053         environment variable before calling update-copyright.
9054
9055 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9056
9057         * gnulib/extra/update-copyright: Update to the latest from
9058         gnulib's git repository.
9059         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9060         variable to 2 instead of 1.
9061
9062 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9063
9064         * varobj.c (c_value_of_variable): Remove dead code.
9065
9066 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9067
9068         * ada-lex.p (processId): Do not modify already encoded IDs.
9069         Update function documentation.
9070
9071 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9072
9073         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9074         "name" with "struct symbol *name_sym".
9075         * ada-exp.y (write_var_or_type): Update call to
9076         ada_find_renaming_symbol.
9077         "name" with "struct symbol *name_sym". Adjust Implementation
9078         accordingly.  Adjust the function documentation.
9079
9080 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9081
9082         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9083         * ada-lang.c (ada_find_any_type): Add advance declaration.
9084         Make static.  Replace ada_find_any_symbol by
9085         ada_find_any_type_symbol.
9086         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9087         Improve function description.  Make static.
9088         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9089         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9090
9091 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9092
9093         * ada-lang.c (struct tag_args): Delete.
9094         (ada_get_tsd_type): Function body moved up in source file.
9095         (ada_tag_name_1, ada_tag_name_2): Delete.
9096         (ada_get_tsd_from_tag): New function.
9097         (ada_tag_name_from_tsd): New function.
9098         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9099         to determine the tag name.
9100
9101 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9102
9103         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9104         declaration.
9105         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9106         function.
9107
9108 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9109
9110         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9111
9112 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9113
9114         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9115         full searches.
9116
9117 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9118
9119         * ada-lang.c (constrained_packed_array_type): If there is a
9120         parallel XA type, use it to determine the array index type.
9121
9122 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9123
9124         * ada-valprint.c (ada_val_print_1): If our value is a reference
9125         to an array descriptor, dereference it before converting it
9126         to a simple array.
9127
9128 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9129
9130         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9131         creating fixed value.
9132         (ada_value_ind, ada_coerce_ref, assign_component)
9133         (ada_evaluate_subexp): Remove call to unwrap_value before
9134         call to ada_to_fixed_value.
9135
9136 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9137
9138         * ada-lang.c (to_fixed_array_type): Set result's type name.
9139
9140 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9141
9142         * ada-lang.c (catch_ada_exception_command_split): Add new
9143         argument cond_string.  Add support for condition at end of
9144         "catch exception" commands.
9145         (ada_decode_exception_location): Add new argument cond_string.
9146         Update call to catch_ada_exception_command_split.
9147         (create_ada_exception_catchpoint): Add new argument cond_string.
9148         Set the breakpoint condition if needed.
9149         (catch_ada_exception_command): Update call to
9150         ada_decode_exception_location.
9151         (ada_decode_assert_location): Add function documentation.
9152         Add support for condition at end of "catch assert" command.
9153         (catch_assert_command): Update calls to ada_decode_assert_location
9154         and create_ada_exception_catchpoint.
9155
9156 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9157
9158         Fix disp-step-syscall.exp: fork: single step over fork.
9159         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9160         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9161         comment, change parameters gdbarch and ptid to regcache.  Remove
9162         parameter regcache, initialize gdbarch from regcache here.
9163         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9164         New functions.
9165         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9166         instead.
9167         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9168         'syscall'.  Make the 'int' check more strict.
9169
9170 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9171
9172         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9173         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9174         (i386_linux_intx80_sysenter_syscall_record): ... here.
9175         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9176         Use the renamed function name.
9177
9178 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9179
9180         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9181         * breakpoint.c (until_break_command): Likewise.
9182         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9183         * infcall.c (call_function_by_hand): Likewise.
9184         * infcmd.c (finish_forward): Likewise.
9185         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9186
9187 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9188
9189         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9190         avoid variable assignments inside condition.
9191
9192 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9193
9194         Fix static analysis issue found by cppcheck.
9195         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9196         uninitialized BUF for size 2.
9197
9198 2012-02-27  Chris Dearman  <chris@mips.com>
9199             Nathan Froyd  <froydnj@codesourcery.com>
9200             Maciej W. Rozycki  <macro@codesourcery.com>
9201
9202         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9203         (mips16_instruction_has_delay_slot): Likewise.
9204         (mips_segment_boundary): Likewise.
9205         (mips_adjust_breakpoint_address): Likewise.
9206         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9207
9208 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9209             Maciej W. Rozycki  <macro@codesourcery.com>
9210
9211         * infrun.c (handle_inferior_event): Don't proceed through
9212         shared library trampolines if stepping at the machine
9213         instruction level.
9214
9215 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9216
9217         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9218         too.
9219
9220 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9221
9222         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9223         (sh_stub_unwind_sniffer): New functions.
9224         (sh_stub_unwind): New variable.
9225         (sh_gdbarch_init): Wire everything.
9226
9227 2012-02-27  Pedro Alves  <palves@redhat.com>
9228
9229         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9230         (linux_nat_post_attach_wait): Adjust to use
9231         linux_proc_pid_is_stopped.
9232         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9233         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9234         based on pid_is_stopped from both linux-nat.c and
9235         gdbserver/linux-low.c, and renamed.
9236
9237 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9238
9239         * remote.c (remote_watchpoint_addr_within_range): New function.
9240         (init_remote_ops): Use it.
9241
9242 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9243
9244         * target.h (target_watchpoint_addr_within_range): Document macro.
9245
9246 2012-02-24  Pedro Alves  <palves@redhat.com>
9247
9248         * stack.c (set_last_displayed_sal): Issue internal_error instead
9249         of warning, and issue it after clearing the last displayed sal.
9250
9251 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9252             Pedro Alves  <palves@redhat.com>
9253
9254         * breakpoint.c (until_break_command): Install breakpoints after
9255         all frame manipulations.
9256
9257 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9258
9259         * remote.c (remote_supports_cond_breakpoints): New forward
9260         declaration.
9261         (remote_add_target_side_condition): New function.
9262         (remote_insert_breakpoint): Add target-side breakpoint
9263         conditional if supported.
9264         (remote_insert_hw_breakpoint): Likewise.
9265         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9266         hook.
9267
9268         * target.c (update_current_target): Inherit
9269         to_supports_evaluation_of_breakpoint_conditions.
9270         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9271
9272         * target.h (struct target_ops)
9273         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9274         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9275
9276         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9277         (condition_evaluation_both, condition_evaluation_auto,
9278         condition_evaluation_host, condition_evaluation_target,
9279         condition_evaluation_enums, condition_evaluation_mode_1,
9280         condition_evaluation_mode): New static globals.
9281         (translate_condition_evaluation_mode): New function.
9282         (breakpoint_condition_evaluation_mode): New function.
9283         (gdb_evaluates_breakpoint_condition_p): New function.
9284         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9285         (mark_breakpoint_modified): New function.
9286         (mark_breakpoint_location_modified): New function.
9287         (set_condition_evaluation_mode): New function.
9288         (show_condition_evaluation_mode): New function.
9289         (bp_location_compare_addrs): New function.
9290         (get_first_location_gte_addr): New helper function.
9291         (set_breakpoint_condition): Free condition bytecode if locations
9292         has become unconditional.  Call mark_breakpoint_modified (...).
9293         (condition_command): Call update_global_location_list (1) for
9294         breakpoints.
9295         (breakpoint_xfer_memory): Use is_breakpoint (...).
9296         (is_breakpoint): New function.
9297         (parse_cond_to_aexpr): New function.
9298         (build_target_condition_list): New function.
9299         (insert_bp_location): Handle target-side conditional
9300         breakpoints and call build_target_condition_list (...).
9301         (update_inserted_breakpoint_locations): New function.
9302         (insert_breakpoint_locations): Handle target-side conditional
9303         breakpoints.
9304         (bpstat_check_breakpoint_conditions): Add comment.
9305         (bp_condition_evaluator): New function.
9306         (bp_location_condition_evaluator): New function.
9307         (print_breakpoint_location): Print information on where the condition
9308         will be evaluated.
9309         (print_one_breakpoint_location): Likewise.
9310         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9311         breakpoint location.
9312         (force_breakpoint_reinsertion): New functions.
9313         (update_global_location_list): Handle target-side breakpoint
9314         conditions.
9315         Reinsert locations that are already inserted if conditions have
9316         changed.
9317         (bp_location_dtor): Free agent expression bytecode.
9318         (disable_breakpoint): Call mark_breakpoint_modified (...).
9319         Call update_global_location_list (...) with parameter 1 for breakpoints.
9320         (disable_command): Call mark_breakpoint_location_modified (...).
9321         Call update_global_location_list (...) with parameter 1 for breakpoints.
9322         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9323         (enable_command): mark_breakpoint_location_modified (...).
9324         (_initialize_breakpoint): Update documentation and add
9325         condition-evaluation breakpoint subcommand.
9326
9327         * breakpoint.h: Include ax.h.
9328         (condition_list): New data structure.
9329         (condition_status): New enum.
9330         (bp_target_info) <cond_list>: New field.
9331         (bp_location) <condition_changed, cond_bytecode>: New fields.
9332         (is_breakpoint): New prototype.
9333
9334 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9335
9336         * remote.c (remote_state) <cond_breakpoints>: New field.
9337         (PACKET_ConditionalBreakpoints): New enum.
9338         (remote_cond_breakpoint_feature): New function.
9339         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9340         (remote_supports_cond_breakpoints): New function.
9341         (_initialize_remote): Add new packet configuration for
9342         target-side conditional breakpoints.
9343
9344 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9345
9346         * NEWS: Mention target-side conditional breakpoint support,
9347         new condition-evaluation breakpoint subcommand and remote
9348         packet extensions.
9349
9350 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9351
9352         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9353         number.
9354
9355 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9356
9357         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9358         (after_prologue): Remove.
9359
9360 2012-02-23  Tom Tromey  <tromey@redhat.com>
9361
9362         * jv-valprint.c (java_val_print): Remove dead code.
9363
9364 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9365
9366         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9367         known_tasks_element and known_tasks_length fields.
9368         (read_known_tasks_array): Change argument type.  Use pointer type
9369         and number of elements from DATA.  Adjust.
9370         (read_known_tasks_list): Likewise.
9371         (get_known_tasks_addr): Remove.
9372         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9373         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9374         type and array length.  Merge former get_known_tasks_addr code.
9375
9376 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9377
9378         PR backtrace/13716
9379         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9380         it after set_momentary_breakpoint.
9381
9382 2012-02-22  Sterling Augustine  <saugustine@google.com>
9383
9384         PR 13689:
9385         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9386
9387 2012-02-22  Gary Benson  <gbenson@redhat.com>
9388
9389         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9390         (find_slot_in_mapped_hash): Likewise.
9391
9392 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9393
9394         PR build/13638
9395         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9396         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9397         * configure: Regenerate.
9398
9399 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9400             Pedro Alves  <palves@redhat.com>
9401
9402         * ia64-tdep.c: Do not include libunwind-ia64.h.
9403         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9404         Include libunwind-ia64.h instead of libunwind.h.
9405         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9406         for libunwind.h existence.
9407         * configure, config.in: Regenerate.
9408
9409 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9410
9411         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9412         instead of value_rtti_target_type.
9413         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9414         instead of value_rtti_target_type.
9415         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9416         value_rtti_target_type.
9417         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9418         (value_rtti_target_type): Rename to ...
9419         (value_rtti_indirect_type): ... here and make it indirect.  Update
9420         function comment.
9421         * value.c (readjust_indirect_value_type): New function.
9422         (coerce_ref): Support for enclosing type setting for references
9423         with readjust_indirect_value_type.
9424         * value.h (readjust_value_type): New declaration.
9425         (value_rtti_target_type): Rename to ...
9426         (value_rtti_indirect_type): ... here.
9427
9428 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9429
9430         * MAINTAINERS (Write After Approval): Add myself to the list.
9431
9432 2012-02-20  Doug Evans  <dje@google.com>
9433
9434         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9435         Rename objfile_p_char parameter to objfilep.
9436         (build_objfile_section_table): Result is now void.  All callers
9437         updated.
9438         * objfiles.h (struct objfile): Tweak comments, whitespace.
9439         (build_objfile_section_table): Update.
9440
9441         * elfread.c (elf_symfile_segments): Fix warning text.
9442
9443 2012-02-20  Tom Tromey  <tromey@redhat.com>
9444
9445         PR gdb/13498:
9446         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9447         particular set of file names once.
9448         (dw2_map_symbol_filenames): Likewise.
9449
9450 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9451
9452         Code cleanup.
9453         * main.c (write_files): Remove the declaration.
9454         (external_editor_command): Move the declaration ...
9455         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9456
9457 2012-02-20  Tom Tromey  <tromey@redhat.com>
9458
9459         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9460         extraneous block.
9461
9462 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9463
9464         * darwin-nat.h (enum darwin_msg_state): Add comments.
9465
9466 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9467
9468         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9469         value.
9470
9471 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9472
9473         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9474         between function description and implementation.
9475
9476 2012-02-17  Tom Tromey  <tromey@redhat.com>
9477
9478         PR python/12070:
9479         * python/py-event.c (event_object_getset): New global.
9480         (event_object_type): Reference it.
9481         * python/py-type.c (field_object_getset): New global.
9482         (field_object_type): Reference it.
9483         * python/python-internal.h (gdb_py_generic_dict): Declare.
9484         * python/py-utils.c (gdb_py_generic_dict): New function.
9485
9486 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9487
9488         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9489
9490 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9491
9492         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9493         TYPE_CALLING_CONVENTION annotation.
9494
9495 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9496
9497         * MAINTAINERS: Add rx to target ISA section.
9498         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9499         (ALLDEPFILES): Add rx-tdep.c.
9500
9501 2012-02-16  Tom Tromey  <tromey@redhat.com>
9502
9503         * symfile.c (symbol_file_add_main_1): Use inferior's
9504         symfile_flags.
9505         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9506         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9507         inferior.
9508         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9509         inferior.
9510         (follow_exec): Use inferior's symfile_flags.
9511         * inferior.h (struct inferior) <symfile_flags>: New field.
9512
9513 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9514
9515         PR gdb/9734:
9516         * remote-sim.c (gdbsim_create_inferior): Call error() when
9517         sim_create_inferior() fails.
9518
9519 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9520
9521         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9522
9523 2012-02-16  Tom Tromey  <tromey@redhat.com>
9524
9525         PR c++/13653:
9526         * thread.c (struct current_thread_cleanup) <was_removable>: New
9527         field.
9528         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9529         (make_cleanup_restore_current_thread): Initialize new field.
9530
9531 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9532
9533         * MAINTAINERS: Add rl78 to target ISA section.
9534         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9535         (ALLDEPFILES): Add rl78-tdep.c.
9536         * NEWS: Mention rl78 as a new target.
9537
9538 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9539
9540         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9541         data.
9542         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9543
9544 2012-02-15  Tom Tromey  <tromey@redhat.com>
9545
9546         PR gdb/12659:
9547         * infcmd.c (registers_info): Print just the current register's
9548         name.
9549
9550 2012-02-15  Tom Tromey  <tromey@redhat.com>
9551
9552         * python/py-symbol.c (sympy_value): Use _().
9553
9554 2012-02-15  Pedro Alves  <palves@redhat.com>
9555
9556         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9557         output to be like native targets'.
9558         (remote_pid_to_str): Special case the null ptid.
9559
9560 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9561
9562         * NEWS: Mention enable count command.
9563         * breakpoint.h (struct breakpoint): New field enable_count.
9564         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9565         (enable_breakpoint): Add arg to call.
9566         (struct disp_data): New struct.
9567         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9568         (do_map_enable_once_breakpoint): Create a struct and pass it.
9569         (do_map_enable_delete_breakpoint): Ditto.
9570         (do_map_enable_count_breakpoint): New function.
9571         (enable_count_command): New function.
9572         (bpstat_stop_status): Decrement enable_count.
9573         (print_one_breakpoint_location): Report enable count.
9574         (_initialize_breakpoint): Add enable count command.
9575
9576 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9577
9578         * rl78-tdep.c (reggroups.h): Include.
9579         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9580         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9581         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9582         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9583         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9584         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9585         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9586         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9587         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9588         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9589         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9590         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9591         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9592         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9593         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9594         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9595         beginning of register list.
9596         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9597         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9598         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9599         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9600         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9601         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9602         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9603         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9604         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9605         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9606         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9607         the pseudo registers.  Rearrange other pseudo registers too so
9608         that the bank registers appear at the end.
9609         (rl78_register_type): Account for the fact that the byte sized
9610         bank registers are now pseudo-registers.
9611         (rl78_register_name): Rearrange the register name array.  Make
9612         initial set of raw banked registers inaccessible.
9613         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9614         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9615         case for copying bytes back and forth between raw and pseudo
9616         versions of the banked registers.  Update other cases to reflect
9617         the changed names.
9618         (rl78_return_value): Update to account for changed names of
9619         raw registers.
9620         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9621         rl78_register_sim_regno().
9622
9623 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9624
9625         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9626         the name parameter being passed to find_pc_partial_function().
9627
9628 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9629
9630         * MAINTAINERS: Step down from being ia64 target maintainer.
9631
9632 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9633
9634         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9635         compilation warning.
9636
9637 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9638
9639         Fix crash on loaded shlibs without loaded exec_bfd.
9640         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9641         (set_section_command): Replace exec_bfd by p->bfd.
9642
9643 2012-02-10  Tom Tromey  <tromey@redhat.com>
9644
9645         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9646         when we have a C++ qualified name.
9647
9648 2012-02-10  Pedro Alves  <palves@redhat.com>
9649
9650         * inferior.c (inferior_pid_to_str): New.
9651         (print_inferior, inferior_command): Use it.
9652
9653 2012-02-10  Pedro Alves  <palves@redhat.com>
9654
9655         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9656         the test CFLAGS.
9657         * configure: Regenerate.
9658
9659 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9660
9661         * linespec.c (decode_line_internal): Fix comment correctness.
9662
9663 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9664
9665         PR gdb/12953
9666         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9667         * amd64bsd-nat.c: Add support for debug registers (adapted from
9668         i386bsd-nat.c).
9669         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9670         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9671         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9672         (amd64bsd_dr_get_control): New functions.
9673         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9674         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9675         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9676         watchpoints initialization.
9677         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9678
9679 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9680
9681         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9682         flds_bnds.fields.
9683         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9684
9685 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9686
9687         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9688
9689 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9690
9691         * language.h (symbol_name_cmp_ftype): Renames
9692         symbol_name_match_p_ftype.
9693         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9694         la_get_symbol_name_match_p.
9695         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9696         ada_get_symbol_name_match_p.  Update comment.
9697         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9698         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9699         Renames symbol_name_match_p.  Update field type.
9700         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9701         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9702         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9703         "la_get_symbol_name_cmp" in comments.
9704         * language.c: Likewise.
9705
9706 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9707
9708         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9709         %eflags offset.
9710         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9711         (amd64_sol2_gregset32_reg_offs): Likewise.
9712
9713 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9714
9715         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9716         of the returned BFD is allocated by GDB.
9717
9718 2012-02-07  Tom Tromey  <tromey@redhat.com>
9719
9720         PR python/12027:
9721         * python/python-internal.h (frame_object_type): Declare.
9722         * python/py-symbol.c (sympy_needs_frame): New function.
9723         (sympy_value): New function.
9724         (symbol_object_getset): Add "needs_frame".
9725         (symbol_object_methods): Add "value".
9726         * python/py-frame.c (frame_object_type): No longer static.
9727
9728 2012-02-07  Tom Tromey  <tromey@redhat.com>
9729
9730         PR python/13599:
9731         * python/py-symbol.c (sympy_line): New function.
9732         (symbol_object_getset): Add "line".
9733
9734 2012-02-07  Tom Tromey  <tromey@redhat.com>
9735
9736         * charset.c (find_charset_names): Check 'in' against NULL.
9737
9738 2012-02-06  Doug Evans  <dje@google.com>
9739
9740         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9741         and fields.name members from char * to const char *.  All uses updated.
9742         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9743         from char * to const char *.  All uses updated.
9744         (type_name_no_tag): Update.
9745         (lookup_unsigned_typename, lookup_signed_typename): Update.
9746         * gdbtypes.c (type_name_no_tag): Change result type
9747         from char * to const char *.  All callers updated.
9748         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9749         name parameter from char * to const char *.
9750         * symtab.h (struct cplus_specific): Change type of demangled_name
9751         member from char * to const char *.  All uses updated.
9752         (struct general_symbol_info): Change type of name and
9753         mangled_lang.demangled_name members from char * to const char *.
9754         All uses updated.
9755         (symbol_get_demangled_name, symbol_natural_name): Update.
9756         (symbol_demangled_name, symbol_search_name): Update.
9757         * symtab.c (symbol_get_demangled_name): Change result type
9758         from char * to const char *.  All callers updated.
9759         (symbol_natural_name, symbol_demangled_name): Ditto.
9760         (symbol_search_name): Ditto.
9761         (completion_list_add_name): Change type of symname,sym_text,
9762         text,word parameters from char * to const char *.
9763         (completion_list_objc_symbol): Change type of sym_text,
9764         text,word parameters from char * to const char *.
9765         * ada-lang.c (find_struct_field): Change type of name parameter
9766         from char * to const char *.
9767         (encoded_ordered_before): Similarly for N0,N1 parameters.
9768         (old_renaming_is_invisible): Similarly for function_name parameter.
9769         (ada_type_name): Change result type from char * to const char *.
9770         All callers updated.
9771         * ada-lang.h (ada_type_name): Update.
9772         * buildsym.c (hashname): Change type of name parameter
9773         from char * to const char *.
9774         * buildsym.h (hashname): Update.
9775         * dbxread.c (end_psymtab): Change type of include_list parameter
9776         from char ** to const char **.
9777         * dwarf2read.c (determine_prefix): Change result type
9778         from char * to const char *.  All callers updated.
9779         * f-lang.c (find_common_for_function): Change type of name, funcname
9780         parameters from char * to const char *.
9781         * f-lang.c (find_common_for_function): Update.
9782         * f-valprint.c (list_all_visible_commons): Change type of funcname
9783         parameters from char * to const char *.
9784         * gdbarch.sh (static_transform_name): Change type of name parameter
9785         and result from char * to const char *.
9786         * gdbarch.c: Regenerate.
9787         * gdbarch.h: Regenerate.
9788         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9789         of name parameter from char * to const char *.
9790         * jv-lang.c (java_primitive_type_from_name): Ditto.
9791         (java_demangled_signature_length): Similarly for signature parameter.
9792         (java_demangled_signature_copy): Ditto.
9793         (java_demangle_type_signature): Ditto.
9794         * jv-lang.h (java_primitive_type_from_name): Update.
9795         (java_demangle_type_signature): Update.
9796         * objc-lang.c (specialcmp): Change type of a,b parameters
9797         from char * to const char *.
9798         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9799         from char * to const char *.  All callers updated.
9800         * p-lang.h (is_pascal_string_type): Update.
9801         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9802         of name parameter from char * to const char *.
9803         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9804         * utils.c (fprintf_symbol_filtered): Ditto.
9805         * defs.h (fprintf_symbol_filtered): Update.
9806         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9807         * stabsread.h (end_psymtab): Update.
9808         * stack.c (find_frame_funname): Change type of funname parameter
9809         from char ** to const char **.
9810         * stack.h (find_frame_funname): Update.
9811         * typeprint.c (type_print): Change type of varstring parameter
9812         from char * to const char *.
9813         * value.h (type_print): Update.
9814         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9815         from char * to const char *.  All callers updated.
9816         (xcoff_end_psymtab): Change type of include_list parameter
9817         from char ** to const char **.  All callers updated.
9818         (swap_sym): Similarly for name parameter.  All callers updated.
9819         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9820         Use xstrdup.
9821         (process_coff_symbol): Use xstrdup.
9822         * stabsread.c (stabs_method_name_from_physname): Renamed from
9823         update_method_name_from_physname.  Change result type from void
9824         to char *.  All callers updated.
9825         (read_member_functions): In has_destructor case, store name in objfile
9826         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9827
9828 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9829
9830         * configure: Rebuild.
9831         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9832         LDFLAGS.
9833
9834 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9835
9836         * configure.tgt (rl78-*-elf): New target.
9837         * rl78-tdep.c: New file.
9838
9839 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9840
9841         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9842         and continue the loop.  Add QUIT statement.
9843
9844 2012-02-03  Tom Tromey  <tromey@redhat.com>
9845
9846         PR gdb/13596:
9847         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9848         bfd_lookup_symbol_from_symtab.
9849         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9850         gdb_bfd_lookup_symbol_from_symtab.
9851
9852 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9853
9854         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9855         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9856         symbol.  Add assertion that sym2 is never NULL.
9857
9858 2012-02-02  Doug Evans  <dje@google.com>
9859
9860         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9861         "name" parameter to const char ** from char **.  All callers updated.
9862         (find_pc_partial_function): Ditto.
9863         (cache_pc_function_name): Change type to const char * from char *.
9864         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9865         (find_pc_partial_function): Update.
9866         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9867         type of "name" parameter to const char * from char *.
9868         All uses updated.
9869         * arch-utils.c (generic_in_solib_return_trampoline): Change
9870         type of "name" parameter to const char * from char *.
9871         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9872         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9873         type of "name" parameter to const char * from char *.
9874         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9875         * gdbarch.c: Regenerate.
9876         * gdbarch.h: Regenerate.
9877         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9878         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9879         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9880         type of "name" parameter to const char * from char *.
9881         * skip.c (skip_function_pc): Ditto.
9882         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9883         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9884         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9885         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9886         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9887         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9888         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9889         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9890         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9891
9892 2012-02-02  Pedro Alves  <palves@redhat.com>
9893
9894         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9895         the current inferior has no execution.  Make sure the current
9896         remote process matches gdb's current inferior.
9897
9898 2012-02-02  Tom Tromey  <tromey@redhat.com>
9899
9900         PR gdb/13405:
9901         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9902         read-only memory.
9903
9904 2012-02-02  Tom Tromey  <tromey@redhat.com>
9905
9906         PR gdb/9307:
9907         * symtab.c (lookup_language_this): Set block_found.
9908
9909 2012-02-01  Tom Tromey  <tromey@redhat.com>
9910
9911         PR gdb/13431:
9912         * jit.c (struct jit_inferior_data): Rewrite.
9913         (struct jit_objfile_data): New.
9914         (get_jit_objfile_data): New function.
9915         (add_objfile_entry): Update.
9916         (jit_read_descriptor): Return int.  Replace descriptor_addr
9917         argument with inf_data.  Update.  Don't call error.
9918         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9919         descriptor here.
9920         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9921         (jit_reset_inferior_data_and_breakpoints)
9922         (jit_inferior_created_observer): Remove.
9923         (jit_inferior_exit_hook): Update.
9924         (jit_executable_changed_observer): Remove.
9925         (jit_event_handler): Update.
9926         (free_objfile_data): Reset inferior data if needed.
9927         (_initialize_jit): Update.
9928
9929 2012-02-01  Tom Tromey  <tromey@redhat.com>
9930
9931         * jit.c (bfd_open_from_target_memory): Move higher in file.
9932
9933 2012-02-01  Tristan Gingold  <gingold@adacore.com>
9934
9935         * libunwind-frame.c (libunwind_load): Display message if dlopen
9936         failed.
9937
9938 2012-02-01  Gary Benson  <gbenson@redhat.com>
9939
9940         * symtab.h (symbol_found_callback_ftype): New typedef.
9941         (iterate_over_symbols): Use the above.
9942         * symtab.c (iterate_over_symbols): Likewise.
9943         * language.h (language_defn->la_iterate_over_symbols): Likewise.
9944         * ada-lang.c (ada_iterate_over_symbols): Likewise.
9945         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9946         (iterate_name_matcher): Document return values.
9947         (collect_one_symbol): Likewise.
9948         (collect_function_symbols): Likewise.
9949         (collect_symbols): Likewise.
9950
9951 2012-02-01  Tom Tromey  <tromey@redhat.com>
9952
9953         * ada-lang.c (resolve_subexp): Update.
9954         (ada_lookup_symbol_list): Add 'full_search' argument.
9955         (ada_iterate_over_symbols): Pass 0 as full_search argument to
9956         ada_lookup_symbol_list.
9957         (ada_lookup_encoded_symbol): Update.
9958         (get_var_value): Update.
9959         * ada-exp.y (block_lookup): Update.
9960         (write_var_or_type): Update.
9961         (write_name_assoc): Update.
9962         * ada-lang.h (ada_lookup_symbol_list): Update.
9963
9964 2012-01-31  Tom Tromey  <tromey@redhat.com>
9965
9966         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9967         comment.
9968
9969 2012-01-31  Doug Evans  <dje@google.com>
9970
9971         * symtab.h: Remove outdated comment.
9972         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9973
9974 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9975
9976         Fix build error in Darwin port.
9977         * i386-darwin-nat.c: Include i386-nat.h.
9978
9979 2012-01-30  Tom Tromey  <tromey@redhat.com>
9980
9981         PR breakpoints/13568:
9982         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9983         argument.  Check for recursive includes.
9984         (dwarf_decode_macros): Create an include hash.
9985
9986 2012-01-30  Michael Eager  <eager@eagercon.com>
9987
9988         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9989         * ppc-linux-tdep.c: Include glibc-tdep.h.
9990         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9991         (powerpc_linux_in_plt_stub): New function.
9992         (powerpc_linux_in_dynsym_resolve_code): New function.
9993         (ppc_skip_trampoline_code): New function.
9994         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9995         Use glibc_skip_solib_resolver.
9996
9997 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9998
9999         Code cleanup: Make 1440 bytes of data segment read-only.
10000         * arch-utils.c (endian_enum): Make it const char *const [].
10001         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10002         Likewise.
10003         * breakpoint.c (always_inserted_enums): Likewise.
10004         * cli/cli-cmds.c (script_ext_enums): Likewise.
10005         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10006         enumlist parameter const char *const *.
10007         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10008         const char *const *.
10009         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10010         parameter const char *const *.
10011         * cris-tdep.c (cris_modes): Make it const char *const [].
10012         * filesystem.c (target_file_system_kinds): Likewise.
10013         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10014         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10015         (can_use_displaced_stepping_enum, scheduler_enums)
10016         (exec_direction_names): Likewise.
10017         * language.c (_initialize_language): Make the type_or_range_names and
10018         case_sensitive_names variables const char *const [].
10019         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10020         * python/python.c (python_excp_enums): Likewise.
10021         * remote.c (interrupt_sequence_modes): Likewise.
10022         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10023         * serial.c (logbase_enums): Likewise.
10024         * sh-tdep.c (sh_cc_enum): Likewise.
10025         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10026         Likewise.
10027         * symtab.c (multiple_symbols_modes): Likewise.
10028         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10029         Likewise.
10030         * utils.c (internal_problem_modes): Likewise.
10031
10032 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10033
10034         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10035         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10036         result.
10037
10038 2012-01-27  Doug Evans  <dje@google.com>
10039
10040         * configure.ac (with_python): Fix absolute path handling for win32.
10041         * configure: Regenerate.
10042
10043 2012-01-26  Doug Evans  <dje@google.com>
10044
10045         * symtab.c: Whitespace cleanup, no code changes.
10046
10047         * symtab.c (lookup_symbol_in_language): Improve comment.
10048         (lookup_symbol_aux): Fix comment.
10049
10050         * psymtab.c (add_psymbol_to_list): Result is now "void".
10051         * psympriv.h (add_psymbol_to_list): Update.
10052
10053         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10054
10055 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10056
10057         Do not open script filenames twice.
10058         * cli/cli-cmds.c (source_script_from_stream): Pass to
10059         source_python_script also STREAM.
10060         * python/py-auto-load.c (source_section_scripts): Pass to
10061         source_python_script_for_objfile also STREAM.
10062         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10063         also INPUT.
10064         * python/python-internal.h (source_python_script_for_objfile): New
10065         parameter file, rename parameter file to filename.
10066         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10067         instead if !_WIN32.  Update the function comment.
10068         (source_python_script, source_python_script_for_objfile)
10069         (source_python_script): New parameter file, rename parameter file to
10070         filename.  Pass FILENAME to python_run_simple_file.
10071         * python/python.h (source_python_script): New parameter file, rename
10072         parameter file to filename.
10073
10074 2012-01-26  Pedro Alves  <palves@redhat.com>
10075
10076         * corelow.c (core_has_fake_pid): Delete.
10077         (core_close): Delete references to `core_has_fake_pid'.
10078         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10079         (core_open): Delete references to `core_has_fake_pid'.
10080         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10081         the removed global.
10082
10083 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10084
10085         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10086         Remove language parameter from name_matcher.  Adjust the comment.
10087         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10088         Remove language parameter.
10089         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10090         * linespec.c (iterate_name_matcher): Likewise.
10091         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10092         name_matcher.  Adjust call accordingly.
10093         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10094         (maintenance_check_symtabs): Adjust type of parameter "fun".
10095         * psymtab.h (maintenance_check_symtabs): Likewise.
10096
10097 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10098
10099         * language.h (symbol_name_match_p_ftype): New typedef.
10100         (struct language_defn): Replace field la_symbol_name_compare
10101         by la_get_symbol_name_match_p.
10102         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10103         (ada_language_defn): Use it.
10104         * linespec.c (struct symbol_matcher_data): New type.
10105         (iterate_name_matcher): Rewrite.
10106         (iterate_over_all_matching_symtabs): Pass a pointer to
10107         a symbol_matcher_data struct to expand_symtabs_matching
10108         instead of just the lookup name.
10109         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10110         opencl-lang.c, p-lang.c, language.c: Delete field
10111         la_symbol_name_compare, and replace by NULL for new field
10112         la_get_symbol_name_match_p.
10113         * symfile.h (struct quick_symbol_functions): Update comment.
10114
10115 2012-01-25  Tom Tromey  <tromey@redhat.com>
10116
10117         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10118         dereferencing.
10119
10120 2012-01-24  Tom Tromey  <tromey@redhat.com>
10121
10122         PR symtab/12406:
10123         * solib.c (update_solib_list): Update the program space's
10124         added_solibs and deleted_solibs fields.
10125         * progspace.h (struct program_space) <added_solibs,
10126         deleted_solibs>: New fields.
10127         (clear_program_space_solib_cache): Declare.
10128         * progspace.c (release_program_space): Call
10129         clear_program_space_solib_cache.
10130         (clear_program_space_solib_cache): New function.
10131         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10132         bpstat_stop_status.  Use handle_solib_event.
10133         * breakpoint.c: Include gdb_regex.h.
10134         (print_solib_event): New function.
10135         (bpstat_print): Use print_solib_event.
10136         (bpstat_stop_status): Add special case for bp_shlib_event.
10137         (handle_solib_event): New function.
10138         (bpstat_what): Use handle_solib_event.
10139         (struct solib_catchpoint): New.
10140         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10141         (breakpoint_hit_catch_solib, check_status_catch_solib)
10142         (print_it_catch_solib, print_one_catch_solib)
10143         (print_mention_catch_solib, print_recreate_catch_solib): New
10144         functions.
10145         (catch_solib_breakpoint_ops): New global.
10146         (catch_load_or_unload, catch_load_command_1)
10147         (catch_unload_command_1): New functions.
10148         (internal_bkpt_check_status): Add special case for
10149         bp_shlib_event.
10150         (internal_bkpt_print_it): Use print_solib_event.
10151         (initialize_breakpoint_ops): Initialize
10152         catch_solib_breakpoint_ops.
10153         (_initialize_breakpoint): Register "catch load" and "catch
10154         unload".
10155         * breakpoint.h (handle_solib_event): Declare.
10156         * NEWS: Add entry for "catch load" and "catch unload".
10157
10158 2012-01-24  Tom Tromey  <tromey@redhat.com>
10159
10160         * ada-lang.c: Include gdb_vecs.h.
10161         * charset.c: Include gdb_vecs.h.
10162         * tracepoint.h: Include gdb_vecs.h.
10163         * gdb_vecs.h: New file.
10164
10165 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10166
10167         * breakpoint.c (breakpoint_hit_catch_fork)
10168         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10169         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10170         * infrun.c (inferior_has_forked, inferior_has_vforked)
10171         (inferior_has_execd, inferior_has_called_syscall): Delete.
10172         (handle_syscall_event): Get syscall_number from the execution
10173         control state's wait status.
10174         (wait_for_inferior): Don't clear syscall_number.
10175
10176 2012-01-24  Pedro Alves  <palves@redhat.com>
10177
10178         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10179         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10180         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10181         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10182         `ws' parameter.
10183         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10184         false for events other than TARGET_SIGNAL_TRAP.
10185         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10186         Add `ws' parameter.
10187         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10188         events other than TARGET_SIGNAL_TRAP.
10189         (tracepoint_breakpoint_hit): Add `ws' parameter.
10190         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10191         parameter.
10192         (bpstat_stop_status): Same.
10193         (pc_at_non_inline_function): Same.
10194         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10195         to pass the current event's waitstatus to bpstat_stop_status
10196         and pc_at_non_inline_function.
10197
10198 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10199
10200         Code cleanup.
10201         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10202         Update the function comment for it.
10203         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10204         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10205         for STREAM.
10206
10207 2012-01-24  Pedro Alves  <palves@redhat.com>
10208
10209         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10210         outside `bs->stop' block.
10211         (bpstat_what): Rework bp_shlib_event handling.
10212         (internal_bkpt_check_status): If the breakpoint is a
10213         bp_shlib_event, then set bs->stop and bs->print if
10214         stop_on_solib_events is set.
10215
10216 2012-01-24  Gary Benson  <gbenson@redhat.com>
10217
10218         Delete #if 0'd out code.
10219         * stack.c (print_frame_label_vars): Remove.
10220         (catch_info): Likewise.
10221         (_initialize_stack): Remove "info catch" command.
10222         * NEWS: Mention the above.
10223
10224 2012-01-24  Pedro Alves  <palves@redhat.com>
10225
10226         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10227         it.
10228         (remote_notice_new_inferior): If the remote end doesn't support
10229         the multiprocess extensions, then the PID is fake.
10230         (add_current_inferior_and_thread): New.
10231         (remote_start_remote): Use it.
10232         (extended_remote_attach_1): Adjust.
10233         (extended_remote_create_inferior_1): Use
10234         add_current_inferior_and_thread.
10235
10236 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10237
10238         Fix watchpoints to be specific for each inferior.
10239         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10240         current_program_space.
10241         * i386-nat.c (i386_inferior_data_cleanup): New.
10242         (i386_inferior_data_get): Replace variable inf_data_local by an
10243         inferior_data call.
10244         (i386_use_watchpoints): Initialize i386_inferior_data.
10245         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10246         specific iterate_over_lwps.
10247
10248 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10249
10250         Fix watchpoints across inferior fork.
10251         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10252         comment for linux_nat_iterate_watchpoint_lwps.
10253         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10254         linux_nat_iterate_watchpoint_lwps.
10255         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10256         * i386-linux-nat.c (update_debug_registers_callback): Update the
10257         comment for linux_nat_iterate_watchpoint_lwps.
10258         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10259         linux_nat_iterate_watchpoint_lwps.
10260         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10261         * i386-nat.c: Include inferior.h.
10262         (dr_mirror): Remove.
10263         (i386_inferior_data, struct i386_inferior_data)
10264         (i386_inferior_data_get): New.
10265         (i386_debug_reg_state): Use i386_inferior_data_get.
10266         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10267         (i386_insert_watchpoint, i386_remove_watchpoint)
10268         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10269         (i386_remove_hw_breakpoint): New variable state, use
10270         i386_debug_reg_state instead of DR_MIRROR.
10271         * linux-nat.c (delete_lwp): New declaration.
10272         (num_lwps): Move here from downwards.
10273         (delete_lwp_cleanup): New.
10274         (linux_child_follow_fork): Create new child_lp, call
10275         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10276         PTRACE_DETACH.
10277         (num_lwps): Move upwards.
10278         (linux_nat_iterate_watchpoint_lwps): New.
10279         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10280         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10281
10282 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10283
10284         GDB 7.4 released.
10285
10286 2012-01-23  Pedro Alves  <palves@redhat.com>
10287
10288         * top.c (caution): Rename to ...
10289         (confirm): ... this.
10290         (show_caution): Rename to ...
10291         (show_confirm): ... this.
10292         (quit_cover): Adjust.
10293         (init_main): Adjust.
10294         * top.h (caution): Rename to ...
10295         (confirm): ... this.
10296         * utils.c (internal_vproblem, defaulted_query): Adjust.
10297
10298 2012-01-23  Pedro Alves  <palves@redhat.com>
10299
10300         * top.c (caution): Update comment.
10301         (execute_command): Don't consider the current value of `caution'.
10302
10303 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10304
10305         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10306
10307 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10308
10309         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10310         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10311         * target.c (target_fileio_pwrite): Remove buffer address from
10312         debug output.
10313         (target_fileio_pread): Likewise.
10314
10315 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10316
10317         * NEWS: Document remote "info proc" and "generate-core-file".
10318
10319 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10320
10321         * gdbarch.sh (find_memory_regions): New callback.
10322         * gdbarch.c, gdbarch.h: Regenerate.
10323
10324         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10325         callback before falling back to target method.
10326
10327         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10328         (linux_target_install_ops): No longer install it.
10329
10330         * linux-tdep.c (linux_find_memory_regions): New function.
10331         (linux_init_abi): Install it.
10332
10333 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10334
10335         * gdbarch.sh (make_corefile_notes): New architecture callback.
10336         * gdbarch.c: Regenerate.
10337         * gdbarch.h: Likewise.
10338
10339         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10340         before target_make_corefile_notes.  If NULL is returned, the
10341         target does not support core file generation.
10342
10343         * linux-nat.c: Include "linux-tdep.h".
10344         (find_signalled_thread, find_stop_signal): Remove.
10345         (linux_nat_do_thread_registers): Likewise.
10346         (struct linux_nat_corefile_thread_data): Likewise.
10347         (linux_nat_corefile_thread_callback): Likewise.
10348         (iterate_over_spus): Likewise.
10349         (struct linux_spu_corefile_data): Likewise.
10350         (linux_spu_corefile_callback): Likewise.
10351         (linux_spu_make_corefile_notes): Likewise.
10352         (linux_nat_collect_thread_registers): New function.
10353         (linux_nat_make_corefile_notes): Replace contents by call to
10354         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10355         as native-only callback.
10356
10357         * linux-tdep.h: Include "bfd.h".
10358         (struct regcache): Add forward declaration.
10359         (linux_collect_thread_registers_ftype): New typedef.
10360         (linux_make_corefile_notes): Add prototype.
10361         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10362         "regset.h", and "elf-bfd.h".
10363         (find_signalled_thread, find_stop_signal): New functions.
10364         (linux_spu_make_corefile_notes): Likewise.
10365         (linux_collect_thread_registers): Likewise.
10366         (struct linux_corefile_thread_data): New data structure.
10367         (linux_corefile_thread_callback): New funcion.
10368         (linux_make_corefile_notes): Likewise.
10369         (linux_make_corefile_notes_1): Likewise.
10370         (linux_init_abi): Install it.
10371
10372 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10373
10374         * gdbarch.sh (info_proc): New callback.
10375         * gdbarch.c, gdbarch.h: Regenerate.
10376
10377         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10378         before falling back to the target info_proc callback.
10379
10380         * linux-nat.c: Do not include "cli/cli-utils.h".
10381         (linux_nat_info_proc): Remove.
10382         (linux_target_install_ops): No longer install it.
10383
10384         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10385         (read_mapping): New function.
10386         (linux_info_proc): Likewise.
10387         (linux_init_abi): Install it.
10388
10389 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10390
10391         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10392         * infcmd.c: (info_proc_cmd_1): New function.
10393         (info_proc_cmd): New function, moved here from equivalent routine
10394         orignally in linux-nat.c.
10395         (info_proc_cmd_mappings): Likewise.
10396         (info_proc_cmd_stat): Likewise.
10397         (info_proc_cmd_status): Likewise.
10398         (info_proc_cmd_cwd): Likewise.
10399         (info_proc_cmd_cmdline): Likewise.
10400         (info_proc_cmd_exe): Likewise.
10401         (info_proc_cmd_all): Likewise.
10402         (_initialize_infcmd): Install "info proc" command and subcommands.
10403
10404         * target.h (struct target_ops): Add to_info_proc.
10405         (target_info_proc): Add prototype.
10406         * target.c (target_info_proc): New function.
10407
10408         * procfs.c (procfs_info_proc): Add prototype.
10409         (info_proc_cmd): Rename into ...
10410         (procfs_info_proc): ... this.  Update argument types as appropriate
10411         for a to_info_proc implementation.  Handle "what" argument.
10412         (procfs_target): Install procfs_info_proc.
10413         (_initialize_procfs): No longer install "info proc" command.
10414
10415         * linux-nat.c: (enum info_proc_what): Remove.
10416         (linux_nat_info_proc_cmd_1): Rename into ...
10417         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10418         for a to_info_proc implementation.
10419         (linux_nat_info_proc_cmd): Remove.
10420         (linux_nat_info_proc_cmd_mappings): Likewise.
10421         (linux_nat_info_proc_cmd_stat): Likewise.
10422         (linux_nat_info_proc_cmd_status): Likewise.
10423         (linux_nat_info_proc_cmd_cwd): Likewise.
10424         (linux_nat_info_proc_cmd_cmdline): Likewise.
10425         (linux_nat_info_proc_cmd_exe): Likewise.
10426         (linux_nat_info_proc_cmd_all): Likewise.
10427         (linux_target_install_ops): Install linux_nat_info_proc.
10428         (_initialize_linux_nat): No longer install "info proc" command
10429         and subcommands.
10430
10431 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10432
10433         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10434         * config.in, configure: Regenerate.
10435
10436         * target.h (struct target_ops): Add to_fileio_readlink.
10437         (target_fileio_readlink): Add prototype.
10438         * target.c (target_fileio_readlink): New function.
10439
10440         * inf-child.c: Conditionally include <sys/param.h>.
10441         (inf_child_fileio_readlink): New function.
10442         (inf_child_target): Install it.
10443
10444         * remote.c (PACKET_vFile_readlink): New enum value.
10445         (remote_hostio_readlink): New function.
10446         (init_remote_ops): Install it.
10447         (_initialize_remote): Handle vFile:readlink packet type.
10448
10449 2012-01-20  Pedro Alves  <palves@redhat.com>
10450             Ulrich Weigand  <ulrich.weigand@linaro.org>
10451
10452         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10453         * config.in, configure: Regenerate.
10454
10455         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10456         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10457         (target_fileio_open): Add prototype.
10458         (target_fileio_pwrite): Likewise.
10459         (target_fileio_pread): Likewise.
10460         (target_fileio_close): Likewise.
10461         (target_fileio_unlink): Likewise.
10462         (target_fileio_read_alloc): Likewise.
10463         (target_fileio_read_stralloc): Likewise.
10464
10465         * target.c: Include "gdb/fileio.h".
10466         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10467         (default_fileio_target): New function.
10468         (target_fileio_open): Likewise.
10469         (target_fileio_pwrite): Likewise.
10470         (target_fileio_pread): Likewise.
10471         (target_fileio_close): Likewise.
10472         (target_fileio_unlink): Likewise.
10473         (target_fileio_close_cleanup): Likewise.
10474         (target_fileio_read_alloc_1): Likewise.
10475         (target_fileio_read_alloc): Likewise.
10476         (target_fileio_read_stralloc): Likewise.
10477
10478         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10479         <fcntl.h>, and <unistd.h>.
10480         (inf_child_fileio_open_flags_to_host): New function.
10481         (inf_child_errno_to_fileio_error): Likewise.
10482         (inf_child_fileio_open): Likewise.
10483         (inf_child_fileio_pwrite): Likewise.
10484         (inf_child_fileio_pread): Likewise.
10485         (inf_child_fileio_close): Likewise.
10486         (inf_child_fileio_unlink): Likewise.
10487         (inf_child_target): Install to_fileio routines.
10488
10489         * remote.c (init_remote_ops): Install to_fileio routines.
10490
10491 2012-01-20  Pedro Alves  <palves@redhat.com>
10492             Ulrich Weigand  <ulrich.weigand@linaro.org>
10493
10494         * remote.c (remote_multi_process_p): Only check for multi-process
10495         protocol feature, do not check for extended protocol.
10496         (remote_supports_multi_process): Check for extended protocol here.
10497         (set_general_process): Likewise.
10498         (extended_remote_kill): Likewise.
10499         (remote_pid_to_str): Likewise.
10500         (remote_query_supported): Always query multiprocess mode.
10501
10502 2012-01-20  Pedro Alves  <palves@redhat.com>
10503             Ulrich Weigand  <ulrich.weigand@linaro.org>
10504
10505         * inferior.h (struct inferior): Add fake_pid_p.
10506         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10507         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10508         magic_null_ptid since the remote side doesn't provide a real PID.
10509
10510 2012-01-19  Tom Tromey  <tromey@redhat.com>
10511
10512         * NEWS: Combine the two Python sections.
10513
10514 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10515
10516         * target.h (target_close): Update comment on the target's unpush state.
10517
10518 2012-01-19  Pedro Alves  <palves@redhat.com>
10519
10520         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10521         linux_nat_async directly instead of going through the target
10522         vector.
10523         * target.c (unpush_target): Close target after unpushing it, not
10524         before.
10525
10526 2012-01-19  Gary Benson  <gbenson@redhat.com>
10527
10528         * mdebugread.c (sort_blocks): Replace integer constants with ones
10529         derived from FIRST_LOCAL_BLOCK.
10530
10531 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10532             Jan Kratochvil  <jan.kratochvil@redhat.com>
10533
10534         PR gdb/9538
10535         * symfile.c (find_separate_debug_file): New function.
10536         (terminate_after_last_dir_separator): Likewise.
10537         (find_separate_debug_file_by_debuglink): Also try realpath.
10538         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10539         * configure: Regenerate.
10540         * config.in: Regenerate.
10541
10542 2012-01-18  Doug Evans  <dje@google.com>
10543
10544         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10545         (main.o): Remove rule.
10546         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10547         (--with-sysroot): Rewrite.
10548         * configure: Regenerate.
10549         * config.in: Regenerate.
10550
10551 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10552
10553         * parse.c (initialize_expout): New function.
10554         (reallocate_expout): Likewise.
10555         (parse_exp_in_context): Use `initialize_expout' and
10556         `reallocate_expout' when appropriate.
10557
10558 2012-01-18  Pedro Alves  <palves@redhat.com>
10559
10560         * record.c (struct record_breakpoint, record_breakpoint_p)
10561         (record_breakpoints): New.
10562         (record_insert_breakpoint, record_remove_breakpoint): Manage
10563         record breakpoints list.  Only remove breakpoints from the
10564         inferior if they had been inserted there in the first place.
10565
10566 2012-01-17  Doug Evans  <dje@google.com>
10567
10568         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10569         if we know we don't have a file name to look for.
10570
10571 2012-01-17  Pedro Alves  <palves@redhat.com>
10572
10573         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10574         the frame's stop reason is UNWIND_UNAVAILABLE.
10575
10576 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10577
10578         Fix compilation error.
10579         * m2-exp.y (yyerror): Use ANSI C prototype.
10580
10581 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10582
10583         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10584         (growbuf_by_size): Likewise.
10585         (yyerror): Likewise.
10586         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10587         (modblock): Remove variable (was #if 0'ed).
10588         (parse_number): Convert prototype from K&R to ANSI C.
10589         (yyerror): Likewise.
10590         * objc-exp.y (parse_number): Likewise.
10591         (yyerror): Likewise.
10592         (yylex): Remove #if 0'ed code.
10593         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10594         (yyerror): Likewise.
10595
10596 2012-01-16  Tom Tromey  <tromey@redhat.com>
10597
10598         * NEWS: Add item.
10599         * symtab.h (compare_filenames_for_search): Declare.
10600         * symtab.c (compare_filenames_for_search): New function.
10601         (iterate_over_some_symtabs): Use it.
10602         * symfile.h (struct quick_symbol_functions)
10603         <map_symtabs_matching_filename>: Change spec.
10604         * psymtab.c (partial_map_symtabs_matching_filename): Use
10605         compare_filenames_for_search.  Update for new spec.
10606         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10607         compare_filenames_for_search.  Update for new spec.
10608         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10609
10610 2012-01-16  Tom Tromey  <tromey@redhat.com>
10611
10612         PR python/13281:
10613         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10614         (struct main_type) <flag_flag_enum>: New field.
10615         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10616         * NEWS: Add entries.
10617         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10618         enums.
10619         * python/lib/gdb/printing.py (_EnumInstance): New class.
10620         (FlagEnumerationPrinter): Likewise.
10621
10622 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10623
10624         * breakpoint.c (create_sals_from_address_default): New function.
10625         (create_breakpoints_sal_default): Likewise.
10626         (decode_linespec_default): Likewise.
10627         (is_marker_spec): Removed.
10628         (strace_marker_p): New function.
10629         (init_breakpoint_sal): Using `strace_marker_p' instead of
10630         `is_marker_spec'.
10631         (create_breakpoint): Call method `create_sals_from_address' from
10632         breakpoint_ops, replacing code that created SALs conditionally
10633         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10634         replacing code that created breakpoints conditionally on the type
10635         wanted.
10636         (base_breakpoint_create_sals_from_address): New function.
10637         (base_breakpoint_create_breakpoints_sal): Likewise.
10638         (base_breakpoint_decode_linespec): Likewise.
10639         (base_breakpoint_ops): Add methods
10640         `base_breakpoint_create_sals_from_address',
10641         `base_breakpoint_create_breakpoints_sal' and
10642         `base_breakpoint_decode_linespec'.
10643         (bkpt_create_sals_from_address): New function.
10644         (bkpt_create_breakpoints_sal): Likewise.
10645         (bkpt_decode_linespec): Likewise.
10646         (tracepoint_create_sals_from_address): Likewise.
10647         (tracepoint_create_breakpoints_sal): Likewise.
10648         (tracepoint_decode_linespec): Likewise.
10649         (strace_marker_create_sals_from_address): Likewise.
10650         (strace_marker_create_breakpoints_sal): Likewise.
10651         (strace_marker_decode_linespec): Likewise.
10652         (strace_marker_breakpoint_ops): New variable.
10653         (addr_string_to_sals): Remove `marker_spec'.  Call method
10654         `decode_linespec' from breakpoint_ops, replacing code that decoded
10655         an address string into a SAL.  Use `strace_marker_p' instead of
10656         `marker_spec'.
10657         (strace_command): Decide whether we are dealing with a static
10658         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10659         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10660         * breakpoint.h (linespec_result, linespec_sals): New forward
10661         declarations.
10662         (breakpoint_ops) <create_sals_from_address>,
10663         <create_breakpoints_sal>, <decode_linespec>: New methods.
10664
10665 2012-01-14  Doug Evans  <dje@google.com>
10666
10667         * NEWS: Update text for "maint set python print-stack".
10668         It is deprecated in gdb 7.4 and deleted in 7.5.
10669
10670 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10671
10672         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10673         including curses.h.
10674
10675 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10676
10677         * configure: Regenerate.
10678         * config.in: Regenerate.
10679
10680 2012-01-12  Keith Seitz  <keiths@redhat.com>
10681
10682         PR mi/10586
10683         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10684         (ANONYMOUS_UNION_NAME): Define.
10685         (is_path_expr_parent): New function.
10686         (get_path_expr_parent): New function.
10687         (is_anonymous_child): New function.
10688         (create_child_with_value): If the child is anonymous and without
10689         a name, assign an object name to it.
10690         (c_describe_child): Use get_path_expr_parent to determine
10691         the parent expression.
10692         If there field represents an anonymous struct or union and
10693         has no name, set an appropriate display name and expression.
10694         (cplus_describe_child): Likewise.
10695
10696 2012-01-12  Pedro Alves  <palves@redhat.com>
10697
10698         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10699         available when %ebp is found to be zero (outermost).
10700
10701 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10702
10703         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10704         an internal gdb_static_assert.
10705         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10706
10707 2012-01-11  Tom Tromey  <tromey@redhat.com>
10708
10709         PR gdb/9598:
10710         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10711         catch" and "catch throw".
10712
10713 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10714
10715         * blockframe.c (block_innermost_frame): Start search from selected
10716         frame, if present, or otherwise the current frame.
10717
10718         * c-exp.y (variable): Update innermost_block for
10719         'block COLONCOLON NAME' clause.
10720         * m2-exp.y (variable): Ditto.
10721         * objc-exp.y (variable): Ditto.
10722
10723 2012-01-10  Tom Tromey  <tromey@redhat.com>
10724
10725         PR python/13199:
10726         * python/python.c (finish_python_initialization): Set sys.argv.
10727
10728 2012-01-10  Doug Evans  <dje@google.com>
10729
10730         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10731         "want_line_info".  All callers updated.
10732         (dwarf_decode_lines_1): New function.
10733         (handle_DW_AT_stmt_list): Add function comment.
10734         New arg "want_line_info".  All callers updated.
10735         (read_file_scope,read_type_unit_scope): Move comment from
10736         handle_DW_AT_stmt_list to here.
10737
10738 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10739
10740         Fix regression after libiberty/ update for GCC PR 6057 and others.
10741         * c-exp.y (operator) <OPERATOR DELETE>
10742         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10743         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10744         (make_builtin_type, make_name): New variable i, add gdb_assert.
10745         (operator) <OPERATOR NEW>: Update ARGS to 3.
10746         (operator) <OPERATOR DELETE>: Add trailing space.
10747         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10748         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10749         * cp-support.c (cp_canonicalize_string): Check NULL from
10750         cp_comp_to_string, call warning and return.
10751
10752 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10753
10754         Fix duplicate .o files after omitting libbfd.a.
10755         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10756         (SFILES): Add corelow.c.
10757         (COMMON_OBS): Add corelow.o.
10758         (ALLDEPFILES): Remove corelow.c.
10759         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10760         * config/alpha/alpha-osf3.mh: Likewise.
10761         * config/alpha/fbsd.mh: Likewise.
10762         * config/arm/nbsdaout.mh: Likewise.
10763         * config/arm/nbsdelf.mh: Likewise.
10764         * config/i386/i386gnu.mh: Likewise.
10765         * config/ia64/hpux.mh: Likewise.
10766         * config/ia64/linux.mh: Likewise.
10767         * config/m32r/linux.mh: Likewise.
10768         * config/m68k/linux.mh: Likewise.
10769         * config/mips/irix5.mh: Likewise.
10770         * config/mips/irix6.mh: Likewise.
10771         * config/pa/hpux.mh: Likewise.
10772         * config/pa/linux.mh: Likewise.
10773         * config/powerpc/aix.mh: Likewise.
10774         * config/sparc/linux.mh: Likewise.
10775         * config/sparc/linux64.mh: Likewise.
10776         * config/sparc/sol2.mh: Likewise.
10777         * config/vax/vax.mh: Likewise.
10778         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10779         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10780         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10781         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10782         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10783         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10784         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10785         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10786         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10787         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10788         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10789         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10790         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10791         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10792         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10793         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10794         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10795         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10796         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10797         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10798         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10799         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10800         corelow.o from gdb_target_obs.
10801         * corefile.c (core_target): Update the comment on NULL value.
10802         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10803         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10804         MATCHES.  Drop YUMMY set on NULL.
10805         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10806         reclaim CORE_DATA if it is already NULL.
10807
10808 2012-01-09  Doug Evans  <dje@google.com>
10809
10810         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10811         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10812
10813 2012-01-09  Keith Seitz  <keiths@redhat.com>
10814
10815         * breakpoint.c (wrapper.h): Don't include.
10816
10817 2012-01-09  Keith Seitz  <keiths@redhat.com>
10818
10819         * Makefile.in (SFILES): Remove wrapper.c.
10820         (HFILES_NO_SRCDIR): Remove wrapper.h.
10821         (COMMON_OBS): Remove wrapper.o.
10822         * cli/cli-interp.c: Don't inlude wrapper.h.
10823         * corelow.c: Likewise.
10824         (core_open): Replace gdb_target_find_new_threads with
10825         TRY_CATCH around target_find_new_threads.
10826         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10827         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10828         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10829         evaluate_expression.
10830         (varobj_set_value): Likewise for evaluate_expression and
10831         value_assign.
10832         (install_new_variable): Likewise for value_fetch_lazy.
10833         (adjust_value_for_child_access): Likewise for value_ind.
10834         (c_describe_child): Likewise for value_subscript and
10835         value_ind.
10836         (c_value_of_root): Likewise for evaluate_expression.
10837         * wrapper.c: Remove.
10838         * wrapper.h: Remove.
10839
10840 2012-01-09  Doug Evans  <dje@google.com>
10841
10842         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10843         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10844         "abfd" args with "section".  All callers updated.
10845         Error checking code moved ...
10846         (error_check_comp_unit_head): ... here.  New function.
10847         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10848         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10849         (create_debug_types_hash_table): Simplify by using
10850         read_and_check_type_unit_head.
10851
10852         * parser-defs.h (namecopy): Delete.
10853         * parse.c (namecopy, namecopy_size): Move into copy_name.
10854
10855 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10856
10857         Partially fix duplicate .o files after omitting libbfd.a.
10858         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10859         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10860         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10861         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10862         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10863         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10864         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10865
10866 2012-01-09  Pedro Alves  <palves@redhat.com>
10867
10868         * MAINTAINERS: Update my email address.
10869
10870 2012-01-08  Doug Evans  <dje@google.com>
10871
10872         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10873         n_type_units.  Rename type_comp_units to all_type_units.
10874         All uses updated.
10875         (add_signatured_type_cu_to_table): Renamed from
10876         add_signatured_type_cu_to_list.  All callers updated.
10877
10878         * gdbtypes.h (struct cplus_struct_type): Delete member
10879         nfn_fields_total.  All uses removed.
10880
10881 2012-01-06  Doug Evans  <dje@google.com>
10882
10883         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10884         to top of file.
10885         (dwarf2_find_comp_unit): Delete.
10886         (process_psymtab_comp_unit): Make result "void".
10887         Delete args buffer, info_ptr, buffer_size, and replace with
10888         "section".  All callers updated.
10889         (dwarf2_build_psymtabs_hard): Simplify.
10890
10891 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10892             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10893
10894         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10895         before `struct gdb_exception'.
10896         * breakpoint.c (update_global_location_list_nothrow)
10897         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10898         * cp-abi.c (value_rtti_type): Likewise.
10899         * cp-support.c (cp_validate_operator): Likewise.
10900         * infrun.c (insert_exception_resume_breakpoint)
10901         (check_exception_resume, keep_going): Likewise.
10902         * mi-interp.c (mi_breakpoint_created)
10903         (mi_breakpoint_modified): Likewise.
10904         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10905         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10906         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10907
10908 2012-01-05  Doug Evans  <dje@google.com>
10909
10910         * dwarf2read.c (statement_prologue): Delete, unused.
10911
10912         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10913         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10914
10915         * dwarf2read.c (comp_unit_header): Delete, unused.
10916
10917 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10918
10919         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10920         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10921
10922 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10923
10924         * infrun.c (normal_stop): Don't skip calling the normal_stop
10925         observers if the thread was doing a multi-step, but stopped for
10926         some reason other than stepping.
10927
10928 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
10929
10930         * cli/cli-decode.h: Add comments.
10931         (CMD_LIST_AMBIGUOUS): Moved to command.h
10932         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10933         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10934         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10935         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10936         (add_com, add_com_alias, add_info, add_info_alias)
10937         (complete_on_cmdlist, complete_on_enum, help_list): Remove
10938         declarations.
10939         * command.h: Add and adjust comments.
10940         (CMD_LIST_AMBIGUOUS): Moved here.
10941         (help_cmd, help_cmd_list): Delete declarations.
10942
10943 2012-01-04  Doug Evans  <dje@google.com>
10944
10945         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10946         All callers updated.
10947         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10948         Replace all arguments with "per_cu".  All callers updated.
10949
10950         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10951
10952         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10953         New arg "per_cu".  All callers updated.
10954
10955         Delete #if 0'd out code.
10956         * language.c (binop_result_type): Delete.
10957         (simple_type, ordered_type, same_type, integral_type): Delete.
10958         (numeric_type, character_type, string_type, boolean_type): Delete.
10959         (float_type, structured_type): Delete.
10960         * language.h: Update.
10961
10962 2012-01-04  Tom Tromey  <tromey@redhat.com>
10963
10964         * python/py-value.c (valpy_binop): Initialize 'res_val'.
10965
10966 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10967
10968         * corefile.c (close_exec_file): Delete.
10969         (reopen_exec_file): Remove commented out code that seems related
10970         to close_exec_file, which is being deleted here.
10971         * inferior.h (close_exec_file): Delete.
10972         * fork-child.c (fork_inferior): Remove call to fork_inferior.
10973
10974 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10975
10976         * ada-lang.c: #include "cli/cli-utils.h".
10977         (get_selections): Use skip_spaces.
10978         (ada_get_next_arg): Use skip_spaces and skip_to_space.
10979         (catch_ada_exception_command_split): Use skip_spaces.
10980         (ada_decode_assert_location): Likewise.
10981
10982 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10983
10984         * linespec.c (decode_line_internal): Check for C++ or Java
10985         compound constructs only if the current language is C, C++
10986         or Java.
10987
10988 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10989
10990         Revert:
10991         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10992                     Joel Brobecker  <brobecker@adacore.com>
10993         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10994         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10995         3 times.
10996         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10997         fall through into AT_ENTRY_POINT.
10998         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10999         DUMMY_ADDR with it.
11000         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11001         PPC_INSN_SIZE skip to 3 times.
11002
11003 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11004
11005         * linespec.c (add_minsym): Preserve function descriptors.
11006
11007 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11008
11009         * breakpoint.c (all_locations_are_pending): Consider locations
11010         in program spaces executing during startup pending as well.
11011
11012 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11013
11014         Copyright year update in most files of the GDB Project.
11015
11016 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11017
11018         * copyright.sh: Delete.
11019         * copyright.py: Rewrite.
11020
11021 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11022
11023         * gnulib/extra/update-copyright: New file, imported from gnulib.
11024
11025 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11026
11027         * README (Copyright and License Notices): New section.
11028
11029 2012-01-03  Tom Tromey  <tromey@redhat.com>
11030
11031         PR python/12533:
11032         * python/py-value.c (valpy_dereference, valpy_get_address
11033         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11034         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11035         (valpy_absolute, valpy_richcompare): Free intermediate values.
11036
11037 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11038
11039         * ada-lang.c: Reformat the copyright notice.
11040
11041 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11042
11043         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11044         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11045         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11046         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11047         Revert this part of:
11048         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11049         Build gdb directly from *.o files not using libgdb.a.
11050         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11051
11052 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11053
11054         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11055         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11056         Reformat the copyright header.
11057
11058 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11059
11060         Revert this part of:
11061         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11062         Remove the gdbtui binary.
11063         * gdb.c (main): Remove args.interpreter_p initialization.
11064         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11065         * main.h (struct captured_main_args): Remove interpreter_p.
11066
11067 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11068
11069         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11070
11071 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11072
11073         * top.c (print_gdb_version): Update copyright year.
11074
11075 2012-01-02  Yao Qi  <yao@codesourcery.com>
11076
11077         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11078
11079 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11080             Joel Brobecker  <brobecker@adacore.com>
11081
11082         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11083         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11084         3 times.
11085         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11086         fall through into AT_ENTRY_POINT.
11087         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11088         DUMMY_ADDR with it.
11089         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11090         PPC_INSN_SIZE skip to 3 times.
11091
11092 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11093
11094         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11095         the return value.
11096         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11097
11098 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11099
11100         Build gdb directly from *.o files not using libgdb.a.
11101         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11102         (COMMON_OBS): Remove solib-target.o.
11103         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11104         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11105         (LIBGDB_OBS, libgdb.a): Move it above.
11106         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11107         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11108         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11109         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11110         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11111         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11112         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11113         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11114         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11115         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11116         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11117         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11118         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11119         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11120         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11121         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11122         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11123         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11124         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11125         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11126         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11127         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11128         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11129         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11130         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11131         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11132         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11133
11134 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11135
11136         Remove the gdbtui binary.
11137         * .gitignore (/gdbtui): Remove.
11138         * Makefile.in (TUI): Remove.
11139         (SUBDIR_TUI_OBS): Remove tui-main.o.
11140         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11141         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11142         (tui-main.o): Remove.
11143         (all_object_files): Remove tui-main.o.
11144         * NEWS: New note for the gdbtui removal.
11145         * configure: Rebuilt.
11146         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11147         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11148         CONFIG_UNINSTALL respectively.
11149         * gdb.c (main): Remove args.interpreter_p initialization.
11150         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11151         * main.h (struct captured_main_args): Remove interpreter_p.
11152         * tui/tui-main.c: Remove.
11153
11154 2012-01-01  Doug Evans  <dje@google.com>
11155
11156         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11157         (dwarf2_physname, read_import_statement): Ditto.
11158         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11159         (process_structure_scope read_subroutine_type): Ditto.
11160         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11161         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11162         (dwarf2_fetch_die_location_block): Ditto.
11163         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11164
11165         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11166         All callers updated.
11167         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11168         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11169         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11170
11171         * dwarf2read.c (load_cu): Move assert to more useful location.
11172
11173         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11174         All callers updated.
11175
11176         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11177         (dwarf2_elf_names): Minor reformat.
11178         (dwarf2_per_cu_data): Tweak comment.
11179         (dwarf2_read_section): Fix comment.
11180         (create_all_comp_units): Fix comment.
11181         (load_full_comp_unit): Fix comment.
11182         (process_full_comp_unit): Fix comment.
11183         (read_signatured_type): Fix comment.
11184
11185 For older changes see ChangeLog-2011.
11186 \f
11187 Local Variables:
11188 mode: change-log
11189 left-margin: 8
11190 fill-column: 74
11191 version-control: never
11192 coding: utf-8
11193 End: