* frame.c (put_frame_register): Don't use temporary buffer.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-11-05  Tom Tromey  <tromey@redhat.com>
2
3         * frame.c (put_frame_register): Don't use temporary buffer.
4
5 2012-11-05  Pedro Alves  <palves@redhat.com>
6
7         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
8         child.  Clear 'pending_detach'.
9         * infrun.c (handle_vfork_child_exec_or_exit): Clear
10         'pending_detach' in the vfork parent.
11
12 2012-11-05  Doug Evans  <dje@google.com>
13
14         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
15         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
16         * dwarf2read.c: #include "elf-bfd.h".
17         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
18         (dwop_section_names): Renamed from dwo_section names.  All uses
19         updated.  Add entries for .debug_cu_index, .debug_tu_index.
20         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
21         All uses updated.
22         (struct dwp_sections): New type.
23         (struct virtual_dwo_sections): New type.
24         (struct dwp_hash_table): New type.
25         (struct dwp_file): New type.
26         (init_cutu_and_read_dies): Ensure DWO info/types section has been
27         read in.  Handle DWOs coming from DWP files.
28         (lookup_dwo_file_slot): New function.
29         (dwarf2_locate_dwo_sections): Move definition closer to use.
30         (create_dwo_debug_info_hash_table_reader): Renamed from
31         create_debug_info_hash_table_reader.  All callers updated.
32         (create_dwo_debug_info_hash_table): Renamed from
33         create_debug_info_hash_table.  All callers updated.
34         (create_dwp_hash_table): New function.
35         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
36         (lookup_dwo_in_dwp): New function.
37         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
38         is_dwp.  All callers updated.
39         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
40         (open_and_init_dwo_file): Renamed from init_dwo_file.
41         All callers updated.
42         (lookup_dwo_file): Delete.
43         (dwarf2_locate_dwp_sections): New function.
44         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
45         (allocate_dwp_loaded_cutus_table): New function.
46         (open_and_init_dwp_file): New function.
47         (lookup_dwo_cutu): New function.
48         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
49
50 2012-11-03  Yao Qi  <yao@codesourcery.com>
51
52         Fix PR gdb/14617.
53         * breakpoint.c (trace_pass_set_count): Call
54         observer_notify_breakpoint_modified instead of
55         observer_notify_tracepoint_modified.
56         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
57
58 2012-11-02  Tom Tromey  <tromey@redhat.com>
59
60         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
61         argument to complete_on_enum.
62
63 2012-11-02  Tom Tromey  <tromey@redhat.com>
64
65         * configure: Rebuild.
66         * configure.ac (build_warnings): Add -Wempty-body.
67         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
68         * remote.c (handle_notification): Use braces for empty 'else' body.
69         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
70         'else' body.
71         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
72         'else' body.
73         * solib-som.c (som_relocate_section_addresses): Use braces
74         for empty 'else' body.
75         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
76         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
77
78 2012-11-02  Pedro Alves  <palves@redhat.com>
79
80         PR gdb/14766
81
82         * infrun.c (handle_inferior_event)
83         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
84         null_ptid before handling a vfork child exec or exit.  Switch to
85         the event ptid afterwards.
86
87 2012-11-02  Yao Qi  <yao@codesourcery.com>
88
89         * std-operator.def: Remove OP_LABELED.
90         * eval.c: Remove the declaration of 'get_label'.
91         (get_label): Remove.
92         (evaluate_struct_tuple): Remove code handling OP_LABELED.
93         Update comment.
94         Remove local variable 'variantno' and related code.
95         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
96         with 'fieldno'.
97         * expprint.c (print_subexp_standard): Likewise.
98         (dump_subexp_body_standard): Likewise.
99         * parse.c (operator_length_standard): Likewise.
100
101 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
102
103         Incorporate ARI web page generator into GDB sources.
104         * contrib/ari/create-web-ari-in-src.sh: New file.
105         * contrib/ari/gdb_ari.sh: New file.
106         * contrib/ari/gdb_find.sh: New file.
107         * contrib/ari/update-web-ari.sh: New file.
108
109 2012-10-31  Tom Tromey  <tromey@redhat.com>
110
111         * gdbarch.c: Rebuild.
112         * gdbarch.sh: Remove references to gdbarch_swap.
113         * corelow.c (core_open): Remove obsolete comment.
114
115 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
116
117         PR cli/14772
118         * c-typeprint.c (c_print_type): Don't print a space for vector
119         types, this is handled within the suffix.
120         (c_type_print_varspec_suffix): Add a space to vector suffix.
121
122 2012-10-26  Pedro Alves  <palves@redhat.com>
123
124         * amd64-tdep.c (amd64_relocate_instruction): Use
125         store_unsigned_integer instead of memcpy.
126         * i386-tdep.c (i386_relocate_instruction): Ditto.
127
128 2012-10-26  Pedro Alves  <palves@redhat.com>
129
130         * infrun.c (handle_inferior_event): Merge handling of
131         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
132         switch case.
133
134 2012-10-26  Pedro Alves  <palves@redhat.com>
135
136         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
137         Remove comment.
138
139 2012-10-26  Pedro Alves  <palves@redhat.com>
140
141         * target.c (target_waitstatus_to_string): Handle
142         TARGET_WAITKIND_VFORK_DONE.
143
144 2012-10-26  Pedro Alves  <palves@redhat.com>
145
146         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
147         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
148
149 2012-10-24  Tristan Gingold  <gingold@adacore.com>
150
151         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
152         Add comments.
153
154 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
155
156         * ravenscar-thread.c (ravenscar_wait): Only update the list
157         of threads and inferior_ptid if the inferior is still alive.
158
159 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
160
161         * ada-lang.c (is_known_support_routine): Use lbasename when
162         matching the symtab's filename against
163         known_runtime_file_name_patterns.
164
165 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
166
167         * ada-lang.c (ada_same_array_size_p): New function.
168         (ada_promote_array_of_integrals): New function.
169         (coerce_for_assign): Add handling of arrays where the elements
170         are integrals of a smaller size than the size of the target
171         array element type.
172
173 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
174
175         * doublest.c (convert_doublest_to_floatformat): Fix comparison
176         against maximum exponent value.
177
178 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
179
180         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
181         "unwind-seh.c".
182
183 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
184
185         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
186         strip typedef layer when computing the fixed type's field type,
187         only when computing its size.
188
189 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
190
191         PR gdb/12783
192         * i386-tdep.c (i386_return_value): Handle complex double and long
193         double.
194
195 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
196
197         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
198         New local variable args_len.
199         Quote the name of the executable when computing the command line.
200
201 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
202
203         PR gdb/12796
204         PR gdb/12798
205         PR gdb/12800
206         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
207         AMD64_FTAG_REGNUM.
208         * amd64-tdep.c (amd64_classify): Classify complex types.
209         (amd64_return_value): Handle the COMPLEX_X87 class.
210
211 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
212
213         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
214         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
215
216 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
217
218         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
219         function.
220         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
221         to amd64_windows_auto_wide_charset.
222
223 2012-10-23  Yao Qi  <yao@codesourcery.com>
224
225         * event-top.c (mark_async_signal_handler_wrapper): Remove.
226         * event-top.h: Remove its declaration.
227         (async_request_quit): Call mark_async_signal_handler instead of
228         mark_async_signal_handler_wrapper.
229         (async_do_nothing, async_disconnect): Likewise.
230         (async_stop_sig): Likewise.
231         * remote.c (handle_remote_sigint): Likewise.
232         (handle_remote_sigint_twice): Likewise.
233
234 2012-10-23  Yao Qi  <yao@codesourcery.com>
235
236         * event-top.c (sigint_token, sighup_token): Replace 'void *'
237         with 'static struct async_signal_handler *'.
238         (sighup_token, sigquit_token, sigstp_token): Likewise.
239
240 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
241
242         * gdbarch.sh (function_list): Use 'pstring' when printing
243         a variable which could return NULL.
244         * gdbarch.c: Regenerate.
245
246 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
247             Tom Tromey  <tromey@redhat.com>
248
249         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
250         inneffective if condition by gdb assertion.  Add function
251         description comment.
252
253 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
254
255         * parser-defs.h (struct exp_descriptor): Document constraint
256         on return value for "op_name" callbacks.
257
258 2012-10-18  Tom Tromey  <tromey@redhat.com>
259
260         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
261         * symtab.c (iterate_over_some_symtabs): Constify.
262         * source.h (symtab_to_fullname): Return 'const char *'.
263         * source.c (symtab_to_fullname): Return 'const char *'.
264         * python/py-symtab.c (stpy_fullname): Constify.
265         * cli/cli-cmds.c (edit_command): Constify.
266         * breakpoint.c (print_breakpoint_location)
267         (update_static_tracepoint): Constify.
268
269 2012-10-18  Tom Tromey  <tromey@redhat.com>
270
271         * breakpoint.c (compare_breakpoints): Fix comparison.
272
273 2012-10-18  Tom Tromey  <tromey@redhat.com>
274
275         * valprint.c (generic_emit_char, generic_printstr): Pass size of
276         gdb_wchar_t to convert_between_encodings.
277
278 2012-10-17  Yao Qi  <yao@codesourcery.com>
279
280         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
281         more parameter 'inferior'.
282         * corefile.c (write_memory_with_notification): Caller update.
283
284         * mi/mi-cmd-var.c: Include "mi-main.h".
285         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
286         to 1 and restore it later.
287         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
288         and "data-write-memory-bytes.
289         * mi/mi-interp.c: Include objfiles.h.
290         (mi_interpreter_init): Call observer_attach_memory_changed.
291         (mi_memory_changed): New.
292         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
293         New field.
294
295         * NEWS: Mention new MI notification "memory-changed".
296
297 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
298
299         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
300
301 2012-10-15  Doug Evans  <dje@google.com>
302
303         New option -nh: inhibit loading of ~/.gdbinit.
304         * NEWS: Mention -nh.
305         * main.c (captured_main): Recognize and process -nh.
306         (print_gdb_help): Mention -nh.
307         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
308
309 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
310
311         PR backtrace/14646
312         PR gdb/14647
313         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
314         pc_regnum_from_eax.
315         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
316         nor pc_regnum_from_eax.
317         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
318         nor pc_regnum_from_eax.
319
320 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
321
322         Fix entry values resolving in inlined frames.
323         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
324         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
325         entries of FRAME.
326
327 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
328
329         * configure.ac: Build with -DMS_WIN64 if building with Python
330         enabled using GCC on amd64-windows.
331         * configure: Regenerate.
332
333 2012-10-15  Tom Tromey  <tromey@redhat.com>
334
335         PR python/14635:
336         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
337         to Py_None.
338
339 2012-10-15  Tom Tromey  <tromey@redhat.com>
340
341         PR python/14634:
342         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
343
344 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
345
346         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
347         reset thread numbering back to 1.
348
349 2012-10-11  Doug Evans  <dje@google.com>
350
351         PR breakpoints/14643.
352         * linespec.c (struct ls_parser): New member keyword_ok.
353         (linespec_lexer_lex_string): Add comment.
354         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
355         for one.
356         (parse_linespec): Set keyword_ok.
357
358 2012-10-10  Doug Evans  <dje@google.com>
359
360         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
361         "0x" prefix on address in log message.
362
363         * dwarf2read.c (read_1_byte): Add const to buf parameter.
364         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
365         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
366         (lookup_dwo_file): Add const to dwo_name parameter.
367         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
368
369 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
370
371         Fix crash during stepping on ppc32.
372         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
373         SYM.
374
375 2012-10-03  Doug Evans  <dje@google.com>
376
377         PR symtab/14601
378         * buildsym.c (buildsym_init): Reset using_directives to NULL.
379
380 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
381
382         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
383         output and use uint32_t not long to ensure 4 byte size.
384
385 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
386
387         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
388         unref'ed it.
389
390 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
391
392         * target.c (simple_search_memory): Include access length in
393         warning message.
394
395 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
396             Edjunior Machado  <emachado@linux.vnet.ibm.com>
397
398         PR gdb/13989
399         * solib.c (solib_find): Prevent GDB from loading native libraries when
400         debugging a cross-target corefile.
401
402 2012-09-28  selven  <pcthegreat@gmail.com>
403
404         Make definition match declaration.
405
406         * regcache.c (regcache_register_status): Change return type to
407         enum register_status.
408
409 2012-09-28  Yao Qi  <yao@codesourcery.com>
410
411         * mi/mi-main.c (mi_cmd_data_write_memory): Call
412         write_memory_with_notification instead of write_memory.
413         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
414         instead of target_write_memory.
415
416 2012-09-28  Yao Qi  <yao@codesourcery.com>
417
418         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
419         when the length of content is not an even number.
420
421 2012-09-27  Tom Tromey  <tromey@redhat.com>
422
423         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
424         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
425
426 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
427
428         * sol-thread.c (sol_thread_fetch_registers)
429         (sol_thread_store_registers): Delete commented out code.
430
431 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
432
433         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
434         Move these functions to sparc-sol-thread.c.
435         * sparc-sol-thread.c: New file.
436         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
437         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
438         configurations.
439         * configure: Regenerate.
440
441 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
442
443         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
444         Remove commented-out code.
445
446 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
447
448         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
449         Enable this code for sparc hosts only.
450
451 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
452
453         * procfs.h (procfs_find_LDT_entry): Add declaration.
454         * sol-thread.c (ps_lgetLDT): Delete local declaration of
455         function procfs_find_LDT_entry.
456
457 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
458
459         * procfs.c (proc_get_LDT_entry): Make static.
460
461 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
462
463         * procfs.c (proc_find_memory_regions): Fix declaration.
464
465 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
466
467         * amd64-tdep.c (amd64_return_value): Revert previous change
468         that used TYPE_LENGTH directly.
469         * bfin-tdep.c (bfin_extract_return_value): Likewise.
470         (bfin_store_return_value): Likewise.
471         * cris-tdep.c (cris_store_return_value): Likewise.
472         (cris_extract_return_value): Likewise.
473         * h8300-tdep.c (h8300_extract_return_value): Likewise.
474         * hppa-tdep.c (hppa64_return_value): Likewise.
475         * lm32-tdep.c (lm32_store_return_value): Likewise.
476         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
477         * spu-tdep.c (spu_value_from_register): Likewise.
478         * vax-tdep.c (vax_return_value): Likewise.
479
480 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
481
482         * gdbtypes.c (lookup_array_range_type): Expand parameters
483         LOW_BOUND and HIGH_BOUND to LONGEST.
484         (lookup_string_range_type): Likewise.
485         * gdbtypes.h (lookup_array_range_type): Likewise.
486         (lookup_string_range_type): Likewise.
487         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
488         Expand HIGHBOUND to ssize_t.
489         (value_string): Likewise.
490         * value.h (value_cstring): Expand parameter LEN to ssize_t.
491         (value_string): Likewise.
492
493 2012-09-27  Yao Qi  <yao@codesourcery.com>
494
495         PR breakpoints/13898
496         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
497         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
498         per breakpoint type.
499
500 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
501
502         * procfs.c: Add gdb_bfd header.
503         * rs6000-nat.c: Likewise.
504         * solib-pa64.c: Likewise.
505         * spu-linux-nat.c: Likewise.
506         * windows-nat.c: Likewise.
507
508 2012-09-26  Tom Tromey  <tromey@redhat.com>
509
510         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
511
512 2012-09-26  Tom Tromey  <tromey@redhat.com>
513
514         * dwarf2read.c (mark_common_block_symbol_computed): New function.
515         (read_common_block): Handle child DIEs with
516         DW_AT_data_member_location.
517         (new_symbol_full): Add special case for common blocks.
518
519 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
520             Tom Tromey  <tromey@redhat.com>
521
522         * dwarf2read.c (read_common_block): Rewrite.
523         (new_symbol_full): Handle DW_TAG_common_block.
524         * f-lang.c (head_common_list, find_common_for_function):
525         Remove.
526         * f-lang.h (struct common_entry, struct saved_f77_common,
527         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
528         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
529         BLANK_COMMON_NAME_LOCAL): Remove.
530         (struct common_block): New.
531         * f-valprint.c (list_all_visible_commons): Remove.
532         (info_common_command_for_block): New function.
533         (info_common_command): Use it.
534         * stack.c (iterate_over_block_locals): Special case for
535         COMMON_BLOCK_DOMAIN.
536         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
537         constant.
538         (struct general_symbol_info) <value.common_block>: New field.
539         (SYMBOL_VALUE_COMMON_BLOCK): New define.
540
541 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
542             Tom Tromey  <tromey@redhat.com>
543
544         * f-lang.c (allocate_saved_bf_node,
545         allocate_saved_function_node, allocate_saved_f77_common_node,
546         allocate_common_entry_node, tail_common_list, current_common,
547         saved_bf_list, saved_bf_list_end, current_head_bf_list,
548         tmp_bf_ptr, add_common_block, add_common_entry,
549         find_first_common_named, patch_common_entries,
550         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
551         global_remote_debug, get_bf_for_fcn, saved_function_list,
552         saved_function_list_end, clear_function_list, struct saved_fcn,
553         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
554         SAVED_BF, SAVED_BF_PTR): Remove.
555         * f-lang.h (tail_common_list, current_common,
556         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
557         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
558         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
559         real_main_c_value): Remove.
560         * f-valprint.c (there_is_a_visible_common_named): Remove.
561
562 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
563
564         * breakpoint.c (update_global_location_list): Ignore previous
565         duplicate status of a breakpoint when starting a new scan for
566         duplicate breakpoints.
567
568 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
569         PR breakpoints/14419
570         * arm-tdep.c (arm_skip_prologue): Extending producer check to
571         support LLVM compiler.
572
573 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
574
575         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
576         * bfin-tdep.c (bfin_extract_return_value): Likewise.
577         (bfin_store_return_value): Likewise.
578         * cris-tdep.c (cris_store_return_value): Likewise.
579         (cris_extract_return_value): Likewise.
580         * h8300-tdep.c (h8300_extract_return_value): Likewise.
581         * hppa-tdep.c (hppa64_return_value): Likewise.
582         * lm32-tdep.c (lm32_store_return_value): Likewise.
583         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
584         * spu-tdep.c (spu_value_from_register): Likewise.
585         * vax-tdep.c (vax_return_value): Likewise.
586
587 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
588
589         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
590         parameter LEN to ssize_t.
591
592 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
593
594         * ada-valprint.c (ada_val_print_1): Eliminate single-use
595         variable LEN.
596         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
597         directly.
598         (alpha_store_return_value): Likewise.
599         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
600         (amd64_push_arguments): Likewise.
601         * ax-gdb.c (gen_trace_static_fields): Likewise.
602         (gen_traced_pop): Likewise.
603         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
604         * breakpoint.c (update_watchpoint): Likewise.
605         * findcmd.c (parse_find_args): Use local variable for type
606         instead of length.
607         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
608         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
609         (h8300_store_return_value): Likewise.
610         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
611         Use i386_darwin_arg_type_alignment directly.
612         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
613         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
614         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
615         (m68hc11_extract_return_value): Likewise.
616         * mep-tdep.c (mep_push_dummy_call): Likewise.
617         * printcmd.c (float_type_from_length): Likewise.
618         * s390-tdep.c (s390_value_from_register): Likewise.
619         * stack.c (read_frame_arg): Likewise.
620         * tracepoint.c (encode_actions_1): Likewise.
621         * valops.c (value_fetch_lazy): Use local variable for type
622         instead of length.  Use TYPE_LENGTH directly.
623         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
624
625 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
626
627         * symtab.c (skip_prologue_sal): Fix typo in comment.
628
629 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
630
631         * linespec.c (create_sals_line_offset): Fix typo in comment.
632
633 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
634
635         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
636         use plongest to print the array size.
637
638 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
639
640         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
641         * p-valprint.c (pascal_type_print_base): Likewise.
642
643 2012-09-22  Yao Qi  <yao@codesourcery.com>
644
645         * remote.c (remote_get_trace_status): Remove setting default
646         values of fields of 'ts'.
647
648 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
649
650         Fix internal error on canonicalization of clang types.
651         * cp-name-parser.y (operator): New comment at make_operator call for
652         new, delete, new[] and delete[].
653         (exp): Use "sizeof ".  Add new comment at make_operator call.
654
655 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
656
657         Fix disassemble without parameters in tailcall frame.
658         * cli/cli-cmds.c (disassemble_current_function): Use
659         get_frame_address_in_block.
660
661 2012-09-21  Tom Tromey  <tromey@redhat.com>
662
663         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
664         TYPE_CODE_UNION>: Unify, removing a goto.
665
666 2012-09-21  Tom Tromey  <tromey@redhat.com>
667
668         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
669
670 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
671
672         * findvar.c (read_frame_register_value): Mark the result value as
673         optimized out if any of the input registers have been optimized out.
674
675 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
676
677         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
678
679 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
680
681         * eval.c (evaluate_subexp_standard): Eliminate single-use
682         variable LOWER.
683
684 2012-09-21  Yao Qi  <yao@codesourcery.com>
685
686         * mi/mi-interp.c: Declare mi_record_changed.
687         (mi_interpreter_init): Call observer_attach_record_changed.
688         (mi_record_changed): New.
689         * record.c (record_open): Call observer_notify_record_changed.
690         (cmd_record_stop): Call observer_notify_record_changed.
691         * NEWS: Mention it.
692
693 2012-09-20  Tom Tromey  <tromey@redhat.com>
694
695         * NEWS: Update.
696         * python/python.c (finalize_python): New function.
697         (_initialize_python): Make a final cleanup.
698
699 2012-09-19  Doug Evans  <dje@google.com>
700
701         * buildsym.h (param_symbols): Delete, unused.
702         (context_stack): Delete member "params", unused.
703         * buildsym.c (push_context): Update.
704         * dwarf2read.c (read_func_scope): Update.
705
706 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
707
708         * sh-tdep.c (sh_register_convert_to_virtual)
709         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
710         all callers.  Just do a memcpy if not the little-endian case.
711
712         * h8300-tdep.c (h8300_gdbarch_init): Invoke
713         set_gdbarch_double_format and set_gdbarch_long_double_format.
714         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
715         set_gdbarch_double_format.
716         * sh-tdep.c (sh_gdbarch_init): Likewise.
717
718         * NEWS: Document the removal of SH's 'regs' command.
719         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
720         command.
721
722 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
723
724         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
725         `jump'.
726
727 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
728
729         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
730         language when iterating over symbols.
731
732 2012-09-18  Yao Qi  <yao@codesourcery.com>
733
734         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
735         (mi_interpreter_init): Call observer_attach_tsv_created and
736         observer_attach_tsv_deleted.
737         (mi_tsv_created, mi_tsv_deleted): New.
738         * tracepoint.c (delete_trace_state_variable): Call
739         observer_notify_tsv_deleted.
740         (trace_variable_command): Call observer_notify_tsv_created.
741         (delete_trace_variable_command): Call
742         observer_notify_tsv_deleted.
743         (create_tsv_from_upload): Call observer_notify_tsv_created.
744         * NEWS: Mention it.
745
746 2012-09-18  Yao Qi  <yao@codesourcery.com>
747
748         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
749         if traceframe changed.
750         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
751         "trace-find".
752         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
753         (mi_interpreter_init): Hook mi_traceframe_changed to observer
754         'traceframe_changed'.
755         (mi_traceframe_changed): New.
756         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
757         New field.
758         * NEWS: Mention the new MI notification.
759
760 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
761
762         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
763
764 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
765
766         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
767         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
768         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
769         Extend code also for PaX support.  Convert all gdb_assert to warning
770         calls.
771
772 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
773
774         Implement auto-load user conveniences suggested by Doug Evans.
775         * auto-load.c: Include top.h.
776         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
777         (_initialize_auto_load): New variable scripts_directory_help.  Mention
778         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
779         scripts-directory.  Document in online help one can use also files for
780         set auto-load safe-path.
781         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
782         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
783
784 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
785
786         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
787         of LEN.
788
789 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
790
791         * m2-valprint.c (m2_print_array_contents): Eliminate variable
792         ELTLEN and use TYPE_LENGTH directly.
793         (m2_val_print): Likewise.
794         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
795         variable LEN and use TYPE_LENGTH directly.
796         (m68k_svr4_store_return_value): Likewise.
797         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
798         ARGLEN and use TYPE_LENGTH directly.
799         (mips_o64_push_dummy_call): Likewise.
800         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
801         variable LENGTH and use TYPE_LENGTH directly.
802         (s390_function_arg_float): Likewise.
803         (s390_function_arg_integer): Likewise.
804         (s390_push_dummy_call): Likewise.
805         (s390_return_value_convention): Likewise.
806         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
807         TYPE_LENGTH directly.
808
809 2012-09-17  Yao Qi  <yao@codesourcery.com>
810
811         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
812         Update comment to add_setshow_integer_cmd.
813         * cli/cli-setshow.c (do_set_command): Handle case
814         'var_zuinteger_unlimited'.
815         (do_show_command): Likewise.
816         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
817         for command 'remotetimeout'.
818         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
819         to var_integer.
820         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
821         for command 'set listsize'.
822
823 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
824
825         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
826         variable LEN.
827
828 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
829
830         PR 14119
831         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
832         (frame_pop): Drop also TAILCALL_FRAME frames.
833         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
834
835 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
836             Pedro Alves  <palves@redhat.com>
837
838         PR 14548
839         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
840         function start if we are already at function start.  Both for
841         reverse-next and for reverse-step into function without line number
842         info.
843
844 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
845
846         Code cleanup - rename 'inline' depth to 'artificial' depth.
847         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
848         frame_id_artificial_p, extend the comment.
849         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
850         * frame.c (fprint_frame_id): Rename at a user, change debug output
851         text to "artificial=".
852         (skip_inlined_frames): Rename to ...
853         (skip_artificial_frames): ... here.  Extend the comment.
854         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
855         (frame_id_inlined_p): Rename to ...
856         (frame_id_artificial_p): ... here.  Rename at a user.
857         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
858         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
859         at a user.
860         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
861         Extend the comment.
862         (frame_id_inlined_p): Rename to ...
863         (frame_id_artificial_p): ... here.
864         * inline-frame.c (inline_frame_this_id): Rename at a user.
865
866 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
867
868         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
869         vector variables using vector_size syntax rather than array
870         syntax.
871
872 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
873
874         * valarith.c (value_concat): Replace unsafe ALLOCA with
875         XMALLOC/XFREE.
876
877 2012-09-14  Pedro Alves  <palves@redhat.com>
878
879         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
880
881 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
882
883         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
884         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
885         data-directory as appropriate.
886
887 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
888
889         * printcmd.c (ui_printf): Eliminate single-use variable
890         PARAM_LEN.
891
892 2012-09-14  Yao Qi  <yao@codesourcery.com>
893             Pedro Alves  <palves@redhat.com>
894
895         * valops.c (value_assign): Move observer_notify_target_changed
896         below to replace reinit_frame_cache.
897
898 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
899
900         Refactor Python "gdb" module into a proper Python package, by
901         introducing a new "_gdb" module for code implemented in C, and
902         using reload/__import__ instead of exec.
903         * python/lib/gdb/__init__.py: Import * from _gdb.
904         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
905         prompt_hook, sys.argv): Moved from finish_python_initialization.
906         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
907         (packages, auto_load_packages): New list and function replacing
908         module_dict and auto-loading code, using __file__ instead of
909         gdb.PYTHONDIR and reload/__import__ instead of exec.
910         (GdbSetPythonDirectory): Replacing function of the same name
911         from finish_python_initialization, using reload/__import__ instead
912         of exec, as well as call auto_load_packages.
913         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
914         gdb_python_module and not gdb_module.
915         * python/python-internal.h (gdb_python_module): Declare.
916         * python/python.c (gdb_python_module): New global.
917         (before_prompt_hook): Check gdb_python_module and not gdb_module.
918         (_initialize_python): Rename gdb module to _gdb.
919         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
920         (finish_python_initialization): Move Python code to
921         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
922         __main__.
923
924 2012-09-13  Pedro Alves  <palves@redhat.com>
925
926         * Makefile.in (COMMON_OBS): Add registry.o.
927         * registry.c: New file.
928         * registry.h (struct registry_container): Declare.
929         (registry_data_callback): New typedef.
930         (struct registry_data, struct registry_data_registration, struct
931         registry_data_registry): New type.
932         (register_data_with_cleanup, registry_alloc_data)
933         (registry_callback_adaptor, registry_clear_data)
934         (registry_container_free_data, registry_set_data, registry_data):
935         Declare.
936         (DEFINE_REGISTRY): Refactor structures and functions as shims over
937         the new common structures and functions.
938         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
939         callback typedefs.
940
941 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
942
943         * remote.c (remote_insert_hw_breakpoint): Throw exception if
944         there is an error inserting hardware breakpoints and use the
945         error message from the target.
946
947         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
948         Catch this exception and print the error message contained within. Do not
949         print the default hardware error breakpoint message in this case.
950
951 2012-09-12  Doug Evans  <dje@google.com>
952
953         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
954         cu == NULL.
955
956 2012-09-11  Doug Evans  <dje@google.com>
957
958         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
959         .gdb_index symbol attributes if there are none.
960
961 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
962
963         * symtab.h (struct minimal_symbol) [has_size]: New field.
964         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
965         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
966         * printcmd.c (build_address_symbolic): Only filter out zero-sized
967         minimal symbols if the symbol's size is actually known.
968         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
969         of msymbol's size field.  Add comment.
970         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
971         SET_MSYMBOL_SIZE to set the minimal symbol size.
972
973 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
974
975         * minsyms.c (install_minimal_symbols): Use memset to fill entire
976         minimal_symbol struct object, rather than setting some of its
977         fields one by one.
978
979 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
980
981         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
982         passed_a_ptr flag when displaying typedef types.
983
984 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
985
986         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
987         the optimized_out flag is preserved.
988
989 2012-09-10  Anthony Green  <green@moxielogic.com>
990
991         * moxie-tdep.c (moxie_analyze_prologue): Update for function
992         prologue changes in GCC.
993
994 2012-09-10  Keith Seitz  <keiths@redhat.com>
995
996         PR gdb/13483
997         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
998         (BOOL_CONVERSION_BADNESS): ... this.
999         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1000         (rank_one_type): Allow all boolean conversions
1001         permitted by the standard.
1002
1003 2012-09-06  Tom Tromey  <tromey@redhat.com>
1004
1005         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1006         Don't decref py_objfile.
1007
1008 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
1009
1010         Do not enable -lmcheck by default when Python is enabled with
1011         threading support.
1012         * configure.ac: (python_has_threads) New variable, by testing
1013         if WITH_THREAD is defined in Python.h.
1014         Move --enable-lmcheck after --with-python.
1015         Do not enable -lmcheck by default if python_has_threads=yes.
1016         Warn if --enable-lmcheck and python_has_threads=yes.
1017         * configure: Regenerate.
1018
1019 2012-08-31  Yao Qi  <yao@codesourcery.com>
1020
1021         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1022         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1023         Update some commands.
1024         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1025         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1026         to 1.
1027
1028 2012-08-31  Yao Qi  <yao@codesourcery.com>
1029
1030         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1031
1032 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1033
1034         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1035
1036 2012-08-29  Doug Evans  <dje@google.com>
1037
1038         * main.c (print_gdb_help): Remove reference to
1039         --use-deprecated-index-sections.
1040
1041 2012-08-28  Yao Qi  <yao@codesourcery.com>
1042
1043         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1044         (init_cmds): Call add_setshow_uinteger_cmd for command
1045         'max-user-call-depth'.
1046         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1047         declaration of 'max_user_call_depth'.
1048         * frame.c (backtrace_limit): Add 'unsigned'.
1049         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1050         'limit'.
1051         * remote.c (remoteaddresssize): Add 'unsigned'.
1052         (remote_address_masked): Change local var 'address_size' to
1053         'unsigned'.
1054         (_initialize_remote): Call add_setshow_uinteger_cmd for
1055         'remoteaddresssize'.
1056         * top.c (history_size): Add 'unsigned'.
1057         (show_commands): Change local variables to 'unsigned'.
1058         (set_history_size_command): Don't check history_size is negative.
1059         Adjust the condition to call unstifle_history and set history_size
1060         to UNIT_MAX.
1061
1062 2012-08-28  Pedro Alves  <palves@redhat.com>
1063
1064         PR gdb/14428
1065
1066         * infcmd.c (default_print_one_register_info): New, factored out
1067         from default_print_registers_info.
1068         (default_print_registers_info): Use it.  Mark value unavailable if
1069         necessary.
1070         (registers_info): Print user registers with
1071         default_print_one_register_info.
1072
1073 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1074
1075         PR tui/14486
1076         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1077         is not NULL before referencing it.
1078
1079 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1080
1081         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1082         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1083         original PC for it.
1084
1085 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1086             Jan Kratochvil  <jan.kratochvil@redhat.com>
1087
1088         * auto-load.c (auto_load_objfile_script): Rename to ...
1089         (auto_load_objfile_script_1): ... here, change variable realname to
1090         parameter realname, document it, add return value, add variable retval.
1091         (auto_load_objfile_script): New function.
1092
1093 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1094
1095         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1096         followed by a whitespace.
1097
1098 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1099
1100         PR gdb/14494.
1101         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1102         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1103         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1104         here.
1105
1106 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1107
1108         * memattr.c (create_mem_region): Fix memory region overlapping
1109         checking.
1110
1111 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1112
1113         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1114         with xmalloc/cleanup.
1115         * mt-tdep.c (mt_push_dummy_call): Likewise.
1116         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1117         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1118
1119 2012-08-24  Yao Qi  <yao@codesourcery.com>
1120
1121         * jv-exp.y (push_expression_name): Add "." at the end of error
1122         message.
1123
1124 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1125
1126         Document how to return from "python-interactive" to GDB.
1127         * python/python.c (_initialize_python): Update documentation.
1128
1129 2012-08-23  Pedro Alves  <palves@redhat.com>
1130
1131         * infrun.c (_initialize_infrun) <handle command help text>:
1132         Mention that multiple signals are supported.
1133
1134 2012-08-23  Pedro Alves  <palves@redhat.com>
1135
1136         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1137         string.
1138
1139 2012-08-23  Yao Qi  <yao@codesourcery.com>
1140
1141         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1142         (tfind_1): Don't call registers_changed, set_traceframe_num,
1143         and clear_traceframe_info.
1144         Call set_current_traceframe.
1145         (set_current_traceframe): call set_traceframe_num.
1146
1147 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1148
1149         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1150         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1151
1152 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1153
1154         Enable readline in Python in a GDB-specific way and block the
1155         standard Python readline module to prevent conflicts with GDB.
1156         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1157         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1158         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1159         * python/py-gdb-readline.c: New file.
1160         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1161         prototype.
1162         * python/python.c (_initialize_python): Call
1163         gdbpy_initialize_gdb_readline.
1164
1165 2012-08-22  Keith Seitz  <keiths@redhat.com>
1166
1167         * defs.h: Include build-gnulib/config.h
1168
1169 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1170
1171         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1172         and blx pc.
1173
1174 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1175
1176         Add a new "python-interactive" command that starts a standard
1177         Python interactive prompt with "pi" as alias, and add "py" as
1178         an alias to "python".
1179         * NEWS: Mention the new commands.
1180         * python/python.c (eval_python_command): New function.
1181         (python_interactive_command): For "python-interactive" with
1182         arguments, call eval_python_command.  For "python-interactive"
1183         without arguments, call PyRun_InteractiveLoop.
1184         (_initialize_python): Add "python-interactive" command with
1185         "pi" as alias, and add "py" as an alias to "python".
1186
1187 2012-08-22  Tom Tromey  <tromey@redhat.com>
1188
1189         * defs.h (quit_flag): Don't declare.
1190         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1191         (QUIT): Use new functions.
1192         * event-top.c (command_handler): Use clear_quit_flag.
1193         (handle_sigint): Use set_quit_flag.
1194         (async_request_quit): Use check_quit_flag.  Don't check
1195         immediate_quit.
1196         * exceptions.c (throw_exception): Use clear_quit_flag.
1197         * main.c (captured_main): Use clear_quit_flag.
1198         * python/python.c (clear_quit_flag, set_quit_flag)
1199         (check_quit_flag): New functions.
1200         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1201         clear_quit_flag.
1202         * remote.c (remote_wait_as): Use check_quit_flag,
1203         clear_quit_flag.
1204         (remote_start_remote): Call QUIT.
1205         * symfile.c (load_progress): Use check_quit_flag.
1206         * top.c (command_loop): Use clear_quit_flag.
1207         (command_line_input): Call QUIT.
1208         * utils.c (quit_flag): Conditionally define.
1209         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1210         functions.
1211         (prompt_for_continue): Call QUIT.  Use quit, not
1212         async_request_quit.
1213         * remote-mips.c (mips_expect_timeout): Call QUIT.
1214         * monitor.c (monitor_expect): Call QUIT.
1215
1216 2012-08-22  Tom Tromey  <tromey@redhat.com>
1217
1218         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1219         (async_init_signals): Update.
1220         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1221         (SIGWINCH_HANDLER_BODY): Remove.
1222
1223 2012-08-22  Tom Tromey  <tromey@redhat.com>
1224
1225         * jit.c (jit_object_close_impl): Don't malloc the objfile
1226         name.
1227         * objfiles.c (allocate_objfile): Don't malloc the objfile
1228         name.
1229         (free_objfile): Don't free the objfile name.
1230         * objfiles.h (struct objfile) <name>: Update comment.
1231         * symfile.c (reread_symbols): Fix reference counting.  Don't
1232         malloc objfile name.
1233
1234 2012-08-22  Tom Tromey  <tromey@redhat.com>
1235
1236         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1237         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1238         (symfile_bfd_open): Likewise.
1239         (generic_load): Likewise.
1240         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1241         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1242         gdb_bfd_open.
1243         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1244         Use gdb_bfd_open.
1245         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1246         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1247         (pmon_load_fast): Likewise.
1248         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1249         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1250         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1251         (macho_check_dsym): Likewise.
1252         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1253         (m32r_upload_command): Likewise.
1254         * gdb_bfd.h (gdb_bfd_cache): Declare.
1255         * gdb_bfd.c (struct gdb_bfd_data): New.
1256         (gdb_bfd_cache): New global.
1257         (struct gdb_bfd_cache_search): New.
1258         (hash_bfd): New function.
1259         (eq_bfd): Likewise.
1260         (gdb_bfd_open): Likewise.
1261         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1262         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1263         gdb_bfd_data.
1264         * exec.c (exec_file_attach): Use gdb_bfd_open.
1265         * dsrec.c (load_srec): Use gdb_bfd_open.
1266
1267 2012-08-22  Tom Tromey  <tromey@redhat.com>
1268
1269         * dwarf2read.c (macro_start_file): Update.
1270         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1271         (free_objfile_per_bfd_storage): Destroy macro_cache.
1272         (allocate_objfile, free_objfile): Update.
1273         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1274         New field.
1275         (struct objfile) <macro_cache>: Remove.
1276         * symfile.c (reread_symbols): Update.
1277         * symmisc.c (print_symbol_bcache_statistics): Update.
1278         (print_objfile_statistics): Update.
1279
1280 2012-08-22  Tom Tromey  <tromey@redhat.com>
1281
1282         * elfread.c (elf_symtab_read): Update.
1283         * objfiles.c (objfiles_bfd_data): New global.
1284         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1285         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1286         (allocate_objfile, free_objfile): Update.
1287         (_initialize_objfiles): Initialize objfiles_bfd_data.
1288         * objfiles.h (struct objfile_per_bfd_storage): New.
1289         (struct objfile) <per_bfd>: New field.
1290         <filename_cache>: Remove.
1291         (set_objfile_per_bfd): Declare.
1292         * symfile.c (reread_symbols): Update.  Call
1293         set_objfile_per_bfd.
1294         (allocate_symtab): Update.
1295         * symmisc.c (print_symbol_bcache_statistics): Update.
1296         (print_objfile_statistics): Print the size of the BFD obstack.
1297
1298 2012-08-22  Tom Tromey  <tromey@redhat.com>
1299
1300         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1301         * gdb_bfd.c: Use DEFINE_REGISTRY.
1302         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1303         (gdb_bfd_ref): Call bfd_alloc_data.
1304         (gdb_bfd_unref): Call bfd_free_data.
1305
1306 2012-08-22  Tom Tromey  <tromey@redhat.com>
1307
1308         * registry.h (struct registry_fields): New.
1309         (REGISTRY_FIELDS): Redefine.
1310         (REGISTRY_ACCESS_FIELD): New macro.
1311         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1312         functions.
1313
1314 2012-08-22  Tom Tromey  <tromey@redhat.com>
1315
1316         * auto-load.c (_initialize_auto_load): Update.
1317         * solib-svr4.c (_initialize_svr4_solib): Update
1318         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1319         * solib-darwin.c (_initialize_darwin_solib): Update.
1320         * registry.h: New file.
1321         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1322         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1323         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1324         (register_program_space_data_with_cleanup)
1325         (register_program_space_data, program_space_alloc_data)
1326         (clear_program_space_data, set_program_space_data)
1327         (program_space_data): Don't declare.
1328         * progspace.c: Use DEFINE_REGISTRY.
1329         (struct program_space_data, struct
1330         program_space_data_registration, struct
1331         program_space_data_registry, program_space_data_registry)
1332         (register_program_space_data_with_cleanup)
1333         (register_program_space_data, program_space_alloc_data)
1334         (program_space_free_data, clear_program_space_data)
1335         (set_program_space_data, program_space_data): Remove.
1336         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1337         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1338         (register_objfile_data_with_cleanup, register_objfile_data)
1339         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1340         declare.
1341         * objfiles.c: Use DEFINE_REGISTRY.
1342         (struct objfile_data, struct objfile_data_registration, struct
1343         objfile_data_registry, objfile_data_registry)
1344         (register_objfile_data_with_cleanup, register_objfile_data)
1345         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1346         (set_objfile_data, objfile_data): Remove.
1347         (_initialize_objfiles): Update.
1348         * jit.c (_initialize_jit): Update.
1349         * inflow.c (_initialize_inflow): Update.
1350         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1351         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1352         (register_inferior_data_with_cleanup, register_inferior_data)
1353         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1354         declare.
1355         * inferior.c: Use DEFINE_REGISTRY.
1356         (struct inferior_data, struct inferior_data_registration, struct
1357         inferior_data_registry, inferior_data_registry)
1358         (register_inferior_data_with_cleanup, register_inferior_data)
1359         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1360         (set_inferior_data, inferior_data): Remove.
1361         * auxv.c (_initialize_auxv): Update.
1362         * ada-lang.c (_initialize_ada_language): Update.
1363         * breakpoint.c (_initialize_breakpoint): Update.
1364         * i386-nat.c (i386_use_watchpoints): Update.
1365
1366 2012-08-22  Tom Tromey  <tromey@redhat.com>
1367
1368         * exec.c (exec_close, exec_file_attach): Update.
1369         (add_to_section_table): Initialize 'key' field.
1370         (add_target_sections, remove_target_sections): Add 'key' argument.
1371         * exec.h (add_target_sections, remove_target_sections): Add
1372         'key' argument.
1373         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1374         (reload_shared_libraries_1): Update.
1375         * target.h (struct target_section) <key>: New field.
1376
1377 2012-08-22  Tom Tromey  <tromey@redhat.com>
1378
1379         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1380
1381 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1382
1383         * symfile.c (allocate_symtab): Use host_address_to_string
1384         function instead of cast of pointer to long which is not
1385         compatible with x86_64-w64-mingw32 build.
1386
1387 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1388
1389         * mips-tdep.c (is_octeon): New function.
1390         (is_octeon_bbit_op): New function.
1391         (mips32_next_pc): Handle Octeon's bbit instructions.
1392         (mips32_instruction_has_delay_slot): Likewise.
1393
1394 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1395
1396         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1397         before the function.
1398
1399 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1400
1401         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1402
1403 2012-08-19  Keith Seitz  <keiths@redhat.com>
1404
1405         PR c++/14365
1406         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1407         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1408
1409 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1410
1411         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1412         The typo broke "make TAGS".
1413
1414 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1415
1416         GDB 7.5 released.
1417
1418 2012-08-17  Keith Seitz  <keiths@redhat.com>
1419
1420         PR c++/13356
1421         * gdbtypes.c (strict_type_checking): New variable.
1422         (show_strict_type_checking): New function.
1423         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1424         if strict type checking is disabled.
1425         (_initialize_gdbtypes): Add "check type" subcommand.
1426         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1427
1428 2012-08-17  Keith Seitz  <keiths@redhat.com>
1429
1430         * language.h (type_mode): Remove.
1431         (type_check): Remove.
1432         (struct language_defn): Remove la_type_check.
1433         (STRICT_TYPE): Remove unused macro.
1434         (type_error): Remove.
1435         * language.c (set_type_range_case): Renamed to ...
1436         (set_range_case): ... this.  Update all callers.
1437         Remove type_mode/type_check.
1438         (type_mode): Remove.
1439         (type_check): Remove.
1440         (show_type_command): Remove.
1441         (set_type_command): Remove.
1442         (language_info): Remove type checking output.
1443         (type_error): Remove unused function.
1444         (range_error): Update comment.
1445         (unknown_language_defn): Remove la_type_check.
1446         (auto_language_defn): Likewise.
1447         (local_language_defn): Likewise.
1448         (_initialize_language): Remove "check type" subcommand.
1449         * ada-lang.c (ada_language_defn): Remove la_type_check.
1450         * c-lang.c (c_language_defn): Likewise.
1451         (cplus_language_defn): Likewise.
1452         (asm_language_defn): Likewise.
1453         (minimal_language_defn): Likewise.
1454         * d-lang.c (d_language_defn): Likewise.
1455         * f-lang.c (f_language_defn): Likewise.
1456         * go-lang.c (go_language_defn): Likewise.
1457         * jv-lang.c (java_language_defn): Likewise.
1458         * m2-lang.c (m2_language_defn): Likewise.
1459         * objc-lang.c (objc_language_defn): Likewise.
1460         * opencl-lang.c (opencl_language_defn): Likewise.
1461         * p-lang.c (pascal_language_defn): Likewise.
1462
1463 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1464
1465         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1466
1467 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1468
1469         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1470         New function.
1471         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1472         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1473         to access the bsp and bspstore registers if not.
1474
1475 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1476
1477         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1478         * breakpoint.c (detach_breakpoints): Change pid parameter into
1479         a ptid.  Adjust code accordingly.
1480         * infrun.c (handle_inferior_event): Delete variable child_pid.
1481         Update call to detach_breakpoints to pass the child ptid for
1482         fork events.
1483         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1484         assert that inferior_ptid's lwp is zero.
1485         (linux_handle_extended_wait): Update call to detach_breakpoints.
1486         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1487         detach_breakpoints.
1488
1489 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1490
1491         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1492         parent, only call detach_breakpoints if tts.tts_event ==
1493         TTEVT_VFORK.
1494
1495 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1496
1497         * dwarf2-frame.c (dwarf2_frame_cache): Use
1498         get_frame_address_in_block instead of get_frame_pc as
1499         the bound for executing the frame's FDE.
1500
1501 2012-08-16  Yao Qi  <yao@codesourcery.com>
1502
1503         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1504         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1505         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1506         (c_type_print_varspec_suffix): Likewise.
1507         * eval.c (evaluate_subexp_standard): Likewise.
1508         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1509         (f_type_print_varspec_suffix): Likewise.
1510         * gdbtypes.c (is_scalar_type): Likewise.
1511         (recursive_dump_type): Likewise.
1512         * infcall.c (value_arg_coerce): Likewise.
1513         * m2-valprint.c (m2_val_print): Likewise.
1514         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1515         (pascal_type_print_varspec_suffix): Likewise.
1516         (pascal_type_print_base): Likewise.
1517         * p-valprint.c (pascal_val_print): Likewise.
1518         (pascal_val_print): Likewise.
1519         * valops.c (value_slice): Likewise.
1520         * valprint.c (scalar_type_p): Likewise.
1521         * valarith.c (value_bitstring_subscript): Remove.
1522         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1523         Remove comment on TYPE_CODE_BITSTRING.
1524
1525         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1526         TYPE_CODE_BITSTRING.
1527
1528         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1529         slot 0.
1530
1531 2012-08-16  Yao Qi  <yao@codesourcery.com>
1532
1533         * tracepoint.c (trace_find_none_command): Remove.
1534         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1535
1536 2012-08-16  Yao Qi  <yao@codesourcery.com>
1537
1538         * remote.c (handle_notification): Remove parameter 'length'.
1539         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1540
1541 2012-08-15  Keith Seitz  <keiths@redhat.com>
1542
1543         * gdbtypes.c (opaque_type_resolution): Make static.
1544         Add missing comment.
1545         (overload_debug): Add missing comment.
1546         (show_opaque_type_resolution): Likewise.
1547         (show_overload_debug): Likewise.
1548         (print_bit_vector): Remove unnecessary forward declaration.
1549         (print_arg_types): Likewise.
1550         (dump_fn_fieldlists): Likewise.
1551         (print_cplus_stuff): Likewise.
1552
1553 2012-08-15  Tom Tromey  <tromey@redhat.com>
1554
1555         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1556         (gdb_bfd_ref): Initialize new field.
1557         (gdb_bfd_unref): Unref the archive BFD.
1558         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1559         parent archive.
1560
1561 2012-08-15  Tom Tromey  <tromey@redhat.com>
1562
1563         PR python/14387:
1564         * python/py-bpevent.c (create_breakpoint_event_object): Update
1565         comment.
1566         * python/py-event.c (evpy_add_attribute): Update comment.
1567         * python/py-exitedevent.c (create_exited_event_object): Fix
1568         reference counting and error handling.
1569         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1570         Fix reference counting.
1571         * python/py-signalevent.c (create_signal_event_object): Fix
1572         reference counting and error handling.
1573         * python/py-stopevent.c (emit_stop_event): Fix reference
1574         counting.
1575         * python/py-threadevent.c (get_event_thread): Return a
1576         borrowed reference.
1577         * python/py-type.c (convert_field): Fix reference counting.
1578
1579 2012-08-15  Tom Tromey  <tromey@redhat.com>
1580
1581         * dwarf2read.c (dwarf_decode_macro_bytes)
1582         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1583         as hash key.
1584
1585 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1586
1587         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1588         stepi, nexti, finish, next, step, jump, and continue commands.
1589         * infrun.c (_initialize_infrun): Update help text for the handle
1590         command.
1591
1592 2012-08-14  Doug Evans  <dje@google.com>
1593
1594         * gdbtypes.c (struct extra): Delete, unused.
1595
1596         * gdbtypes.c: Whitespace cleanup.
1597         (address_space_name_to_int): Remove "extern" from definition.
1598         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1599
1600         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1601         TYPE_POINTER_TYPE (type).
1602
1603 2012-08-14  Gary Benson  <gbenson@redhat.com>
1604
1605         * solib-svr4.c (svr4_free_library_list): Use free_so.
1606
1607 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1608
1609         * .gitignore: Add go-exp.c.
1610
1611 2012-08-13  Doug Evans  <dje@google.com>
1612
1613         * value.c (show_convenience): Tweak comment.
1614         (_initialize_values): Mention convenience functions in the help text
1615         for "show convenience".
1616
1617 2012-08-13  Yao Qi  <yao@codesourcery.com>
1618
1619         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1620         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1621         TERNOP_SLICE_COUNT.
1622         * eval.c (evaluate_subexp_standard): Likewise.
1623         * expprint.c (print_subexp_standard): Likewise.
1624         (dump_subexp_body_standard): Likewise.
1625         * parse.c (operator_length_standard): Likewise.
1626
1627 2012-08-13  Yao Qi  <yao@codesourcery.com>
1628
1629         * std-operator.def: Remove OP_BITSTRING.
1630         * breakpoint.c (watchpoint_exp_is_const): Update.
1631         * eval.c (evaluate_subexp_standard): Remove handling to
1632         OP_BITSTRING.
1633         * expprint.c (print_subexp_standard): Likewise.
1634         (dump_subexp_body_standard): Likewise.
1635         * parse.c (operator_length_standard): Likewise.
1636         * valops.c (value_bitstring): Remove.
1637         * value.h: Remove the declaration of 'value_bitstring'.
1638
1639 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1640
1641         * linespec.c (find_methods): Remove unused variables `i1' and
1642         `name_len'.
1643         (decode_line_full): Likewise for `arg_start'.
1644
1645 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1646
1647         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1648         (zlib_decompress_section): Likewise for `section_data'.
1649         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1650
1651 2012-08-10  Doug Evans  <dje@google.com>
1652
1653         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1654         * NEWS: Document them.
1655         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1656         function/strfns.py.
1657         * python/py-type.c (typy_array_1): New function.
1658         (typy_array): Call it.
1659         (typy_vector): New function.
1660         (type_object_methods): Add "vector".
1661         * python/lib/gdb/function/__init__.py: New file.
1662         * python/lib/gdb/function/strfns.py: New file.
1663
1664 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1665
1666         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1667         for TYPE_FIELD_BITPOS.
1668         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1669
1670 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1671
1672         PR cli/10436:
1673         * common/vec.h (VEC_merge): Define.
1674         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1675         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1676         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1677         * completer.c: Include gdb_signals.h.
1678         (signal_completer): Define.
1679         * completer.h (signal_completer): Add prototype.
1680         * infcmd.c (_initialize_infcmd): Assign the command
1681         completer for "signal" to handle_completer.
1682         * infrun.c: Include completer.h.
1683         (handle_completer): Define.
1684         (_initialize_infrun): Declare a new local variable c.  Store the
1685         result of add_com("handle") to it.  Assign the command
1686         completer for "handle" to handle_completer.
1687
1688 2012-08-09  Yao Qi  <yao@codesourcery.com>
1689
1690         * cli/cli-decode.c (set_cmd_prefix): New.
1691         (lookup_cmd_for_prefixlist): New.
1692         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1693         of each cmd_list_element in *prefixlist.
1694         (add_setshow_cmd_full): set_cmd_prefix.
1695         (add_alias_cmd): Likewise.
1696         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1697         Declare 'auto_boolean_enums'.
1698         * cli/cli-setshow.c: Include "observer.h".
1699         (notify_command_param_changed_p): New.
1700         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1701         Remove 'static'.
1702         (do_setshow_command): Split it to ...
1703         (do_set_command, do_show_command): ... them.  New.
1704         (do_set_command): Call observer_notify_command_param_changed if
1705         notify_command_param_changed_p returns true.
1706         (cmd_show_list): Caller update.
1707         * auto-load.c (set_auto_load_cmd): Likewise.
1708         * remote.c (show_remote_cmd): Likewise.
1709         * cli/cli-setshow.h: Update declarations.
1710         * top.c (execute_command): Call do_set_command and do_show_command.
1711
1712         * NEWS: Mention new MI notification.
1713         * mi/mi-interp.c: Declare mi_command_param_changed.
1714         (mi_interpreter_init): Attach mi_command_param_changed to
1715         observer command_param_changed.
1716         (mi_command_param_changed): New.
1717         Remove mi_suppress_breakpoint_notifications.
1718         Define global variable mi_suppress_notification.
1719         (mi_breakpoint_created): Update.
1720         (mi_breakpoint_deleted): Likewise.
1721         (mi_breakpoint_modified): Likewise.
1722         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1723         'gdb-set' and set mi_suppress_notification.
1724         * mi/mi-main.h: (mi_suppress_notification): New struct.
1725
1726 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1727             Jan Kratochvil  <jan.kratochvil@redhat.com>
1728
1729         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1730
1731 2012-08-09  Yao Qi  <yao@codesourcery.com>
1732
1733         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1734         (skiplist): Move it to skip.c.
1735         (init_cmd_lists): Remove code setting enablebreaklist and
1736         skiplist to NULL.
1737         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1738         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1739         skiplist.
1740         * gdbcmd.h: Likewise.
1741         * skip.c (_initialize_step_skip): Move 'skiplist' from
1742         cli/cli-cmds.c.
1743
1744 2012-08-09  Yao Qi  <yao@codesourcery.com>
1745
1746         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1747         * gnu-nat.c, symfile.c: Likewise.
1748
1749 2012-08-08  Aaron Gamble  <agamble@google.com>
1750
1751         * utils.c (prompt_for_continue_wait_time): New static global.
1752         (make_command_stats_cleanup): Initialize it.
1753         (report_command_stats): Subtract time waiting for user.
1754         (prompt_for_continue): Track time waiting for user.
1755         (defaulted_query): Track time waiting for user.
1756
1757 2012-08-08  Doug Evans  <dje@google.com>
1758
1759         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1760         UNOP_MEMVAL_TYPE.
1761         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1762         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1763         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1764         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1765         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1766         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1767         elt.
1768         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1769         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1770         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1771         (dump_prefix_expression): Handle OP_TYPE.
1772
1773 2012-08-08  Keith Seitz  <keiths@redhat.com>
1774
1775         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1776         addr_start.
1777
1778 2012-08-08  Doug Evans  <dje@google.com>
1779
1780         * linux-thread-db.c: #include "gdb_vecs.h".
1781         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1782         updated.
1783         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1784         (thread_db_load_search): Use a vector to iterate over path elements.
1785         Handle text appearing after "$pdir".
1786
1787         * gdb_string.h: Moved to ...
1788         * common/gdb_string.h: ... here.
1789         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1790         gdb_string.h and gdb_assert.h.
1791
1792 2012-08-08  Yao Qi  <yao@codesourcery.com>
1793
1794         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1795         (tic6x_value_to_register): Likewise.
1796         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1797         and set_gdbarch_value_to_register.
1798
1799 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1800             Jean-Marc Saffroy  <saffroy@gmail.com>
1801
1802         PR 11804
1803         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1804         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1805         * gcore.c (gcore_create_callback): New function comment.  Add modified
1806         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1807         according to MODIFIED.
1808         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1809         the passed modified value to FUNC.
1810         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1811         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1812         first.  New variables modified and has_anonymous.  Parse the lines of
1813         smaps file.  Add the passed MODIFIED value to FUNC.
1814         * procfs.c (find_memory_regions_callback): Add the passed modified
1815         value.
1816
1817 2012-08-06  Tom Tromey  <tromey@redhat.com>
1818
1819         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1820         (dwarf2_frame_cache): Use it.
1821         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1822         cache initialization constraint.
1823
1824 2012-08-06  Tom Tromey  <tromey@redhat.com>
1825
1826         PR python/14386:
1827         * varobj.c (update_dynamic_varobj_children): Don't call
1828         PyIter_Check.
1829
1830 2012-08-06  Tom Tromey  <tromey@redhat.com>
1831
1832         PR cli/14392:
1833         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1834
1835 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1836
1837         * NEWS: New entry for 'cd' default parameters.
1838         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1839
1840 2012-08-03  Tom Tromey  <tromey@redhat.com>
1841
1842         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1843         return.
1844
1845 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1846
1847         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1848         to attempting lseek/write.
1849         (inf_child_fileio_pread): Likewise for pread.
1850
1851 2012-08-02  Yao Qi  <yao@codesourcery.com>
1852
1853         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1854         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1855         add_setshow_zinteger_cmd.
1856         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1857         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1858         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1859         instead of add_setshow_zinteger_cmd.
1860         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1861         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1862         instead of add_setshow_zinteger_cmd.
1863         * frame.c (frame_debug): Add 'unsigned'.
1864         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1865         add_setshow_zinteger_cmd.
1866         * frame.h: Update the declaration of 'frame_debug'.
1867         * gdbtypes.c (overload_debug): Add 'unsigned'.
1868         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1869         add_setshow_zinteger_cmd.
1870         * inferior.h: Update declaration of 'debug_infrun'.
1871         * infrun.c (debug_infrun): Add 'unsigned'.
1872         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1873         add_setshow_zinteger_cmd.
1874         * jit.c (jit_debug): Add 'unsigned'.
1875         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1876         add_setshow_zinteger_cmd.
1877         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1878         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1879         instead of add_setshow_zinteger_cmd.
1880         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1881         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1882         add_setshow_zinteger_cmd.
1883         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1884         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1885         instead of add_setshow_zinteger_cmd.
1886         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1887         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1888         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1889         intead of add_setshow_zinteger_cmd.
1890         * mips-tdep.c (mips_debug): Add 'unsigned'.
1891         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1892         instead of add_setshow_zinteger_cmd.
1893         * monitor.c (monitor_debug): Add 'unsigned'.
1894         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1895         add_setshow_zinteger_cmd.
1896         * observer.c (observer_debug): Add 'unsigned'.
1897         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1898         add_setshow_zinteger_cmd.
1899         * parse.c (expressiondebug): Add 'unsigned'.
1900         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1901         add_setshow_zinteger_cmd.
1902         * record.c (record_debug): Add 'unsigned'.
1903         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1904         add_setshow_zinteger_cmd.
1905         * record.h: Update the declaration of 'record_debug'.
1906         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1907         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1908         add_setshow_zinteger_cmd.
1909         * serial.c (global_serial_debug_p): Add 'unsigned'.
1910         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1911         add_setshow_zinteger_cmd.
1912         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1913         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1914         add_setshow_zinteger_cmd.
1915         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1916         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1917         add_setshow_zinteger_cmd.
1918         * target.c (targetdebug): Add 'unsigned'.
1919         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1920         add_setshow_zinteger_cmd.
1921         * valops.c (overload_debug): Add 'unsigned'.
1922         * varobj.c (varobjdebug): Add 'unsigned'.
1923         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1924         add_setshow_zinteger_cmd.
1925         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1926         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1927         instead of add_setshow_zinteger_cmd.
1928
1929         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1930         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1931         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1932         instead of add_setshow_zinteger_cmd.
1933         * gdbarch.c, gdbarch.h: Re-generated.
1934
1935 2012-08-02  Yao Qi  <yao@codesourcery.com>
1936
1937         * nto-tdep.c: Don't include cli/cli-decode.h and
1938         cli/cli-cmds.h.
1939         (_initialize_nto_tdep): Remove.
1940         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1941         Remove field.
1942         Remove macro nto_internal_debugging.
1943
1944 2012-08-01  Richard Henderson  <rth@redhat.com>
1945
1946         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1947         (mep-*-*) [gdb_target_obs]: Likewise.
1948
1949 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
1950
1951         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1952         linux_get_siginfo_type.
1953
1954 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1955
1956         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1957         AT_ENTRY_POINT.
1958         (call_function_by_hand) <ON_STACK>: Call write_memory with
1959         gdbarch_breakpoint_from_pc, if possible.
1960         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1961         here.
1962
1963 2012-07-31  Yao Qi  <yao@codesourcery.com>
1964
1965         * tracepoint.c: Add 'static' for some variables.
1966
1967 2012-07-31  Yao Qi  <yao@codesourcery.com>
1968
1969         * go32-nat.c: Declare _initialize_go32_nat.
1970         * ser-go32.c: Declare _initialize_ser_dos.
1971         * top.c (do_chdir_cleanup): Add 'static'.
1972
1973 2012-07-30  Keith Seitz  <keiths@redhat.com>
1974
1975         * linespec.c (linespec_lex_number): A number followed
1976         by quotes is a valid number, too.
1977
1978 2012-07-30  Tom Tromey  <tromey@redhat.com>
1979
1980         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1981
1982 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
1983
1984         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1985         attempt to 4-byte-align HW breakpoint addresses for Thumb.
1986
1987 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
1988
1989         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1990         invalid or reevaluated to prevent prevent references to possibly
1991         delete'd type objects being left in the varobj.
1992
1993 2012-07-27  Tom Tromey  <tromey@redhat.com>
1994             Jan Kratochvil  <jan.kratochvil@redhat.com>
1995
1996         * copying.awk: Print buffer-read-only and vi ro markers.
1997         * copying.c: Rebuild.
1998         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1999         * gdbarch.c, gdbarch.h: Rebuild.
2000         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2001         buffer-read-only and vi ro markers.
2002         * features/arm-with-iwmmxt.c: Rebuild.
2003         * features/arm-with-m-fpa-layout.c: Rebuild.
2004         * features/arm-with-m-vfp-d16.c: Rebuild.
2005         * features/arm-with-m.c: Rebuild.
2006         * features/arm-with-neon.c: Rebuild.
2007         * features/arm-with-vfpv2.c: Rebuild.
2008         * features/arm-with-vfpv3.c: Rebuild.
2009         * features/i386/amd64-avx-linux.c: Rebuild.
2010         * features/i386/amd64-avx.c: Rebuild.
2011         * features/i386/amd64-linux.c: Rebuild.
2012         * features/i386/amd64.c: Rebuild.
2013         * features/i386/i386-avx-linux.c: Rebuild.
2014         * features/i386/i386-avx.c: Rebuild.
2015         * features/i386/i386-linux.c: Rebuild.
2016         * features/i386/i386-mmx-linux.c: Rebuild.
2017         * features/i386/i386-mmx.c: Rebuild.
2018         * features/i386/i386.c: Rebuild.
2019         * features/i386/x32-avx-linux.c: Rebuild.
2020         * features/i386/x32-avx.c: Rebuild.
2021         * features/i386/x32-linux.c: Rebuild.
2022         * features/i386/x32.c: Rebuild.
2023         * features/mips-dsp-linux.c: Rebuild.
2024         * features/mips-linux.c: Rebuild.
2025         * features/mips64-dsp-linux.c: Rebuild.
2026         * features/mips64-linux.c: Rebuild.
2027         * features/rs6000/powerpc-32.c: Rebuild.
2028         * features/rs6000/powerpc-32l.c: Rebuild.
2029         * features/rs6000/powerpc-403.c: Rebuild.
2030         * features/rs6000/powerpc-403gc.c: Rebuild.
2031         * features/rs6000/powerpc-405.c: Rebuild.
2032         * features/rs6000/powerpc-505.c: Rebuild.
2033         * features/rs6000/powerpc-601.c: Rebuild.
2034         * features/rs6000/powerpc-602.c: Rebuild.
2035         * features/rs6000/powerpc-603.c: Rebuild.
2036         * features/rs6000/powerpc-604.c: Rebuild.
2037         * features/rs6000/powerpc-64.c: Rebuild.
2038         * features/rs6000/powerpc-64l.c: Rebuild.
2039         * features/rs6000/powerpc-7400.c: Rebuild.
2040         * features/rs6000/powerpc-750.c: Rebuild.
2041         * features/rs6000/powerpc-860.c: Rebuild.
2042         * features/rs6000/powerpc-altivec32.c: Rebuild.
2043         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2044         * features/rs6000/powerpc-altivec64.c: Rebuild.
2045         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2046         * features/rs6000/powerpc-cell32l.c: Rebuild.
2047         * features/rs6000/powerpc-cell64l.c: Rebuild.
2048         * features/rs6000/powerpc-e500.c: Rebuild.
2049         * features/rs6000/powerpc-e500l.c: Rebuild.
2050         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2051         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2052         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2053         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2054         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2055         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2056         * features/rs6000/powerpc-vsx32.c: Rebuild.
2057         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2058         * features/rs6000/powerpc-vsx64.c: Rebuild.
2059         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2060         * features/rs6000/rs6000.c: Rebuild.
2061         * features/s390-linux32.c: Rebuild.
2062         * features/s390-linux32v1.c: Rebuild.
2063         * features/s390-linux32v2.c: Rebuild.
2064         * features/s390-linux64.c: Rebuild.
2065         * features/s390-linux64v1.c: Rebuild.
2066         * features/s390-linux64v2.c: Rebuild.
2067         * features/s390x-linux64.c: Rebuild.
2068         * features/s390x-linux64v1.c: Rebuild.
2069         * features/s390x-linux64v2.c: Rebuild.
2070         * features/tic6x-c62x-linux.c: Rebuild.
2071         * features/tic6x-c62x.c: Rebuild.
2072         * features/tic6x-c64x-linux.c: Rebuild.
2073         * features/tic6x-c64x.c: Rebuild.
2074         * features/tic6x-c64xp-linux.c: Rebuild.
2075         * features/tic6x-c64xp.c: Rebuild.
2076
2077 2012-07-27  Tom Tromey  <tromey@redhat.com>
2078
2079         * c-exp.y (classify_name): Avoid assignment in condition.
2080
2081 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2082
2083         * amd64-windows-tdep.c: Include "frame.h".
2084         (amd64_windows_skip_trampoline_code): New function.
2085         (amd64_windows_init_abi): Add trampoline registration.
2086
2087 2012-07-27  Yao Qi  <yao@codesourcery.com>
2088
2089         * tracepoint.c (cur_traceframe_number): Remove.
2090         (set_tfile_traceframe): Remove.
2091         (tfile_trace_find, tfile_fetch_registers): Update callers.
2092         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2093         (tfile_open, tfile_trace_find): Likewise.
2094
2095 2012-07-27  Yao Qi  <yao@codesourcery.com>
2096
2097         * thread.c (switch_to_thread): Don't call registers_changed.
2098
2099 2012-07-26  Tom Tromey  <tromey@redhat.com>
2100
2101         * Makefile.in (SFILES): Remove objc-exp.y.
2102         (YYFILES): Remove objc-exp.c.
2103         (YYOBJ): Remove objc-exp.o.
2104         (local-maintainer-clean): Don't mention objc-exp.c.
2105         * c-exp.y: Include objc-lang.h.
2106         (%union) <class>: New field.
2107         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2108         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2109         Objective C productions.
2110         (msglist, msgarglist, msgarg): New productions.
2111         (array_mod, func_mod, operator): Clone productions for
2112         OBJC_LBRAC.
2113         (parse_string_or_char): Handle '@' strings.
2114         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2115         (classify_name): Check la_name_of_this.  Recognize ObjC class
2116         names.
2117         * objc-exp.y: Remove.
2118         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2119         * objc-lang.h (objc_parse, objc_error): Don't declare.
2120
2121 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2122
2123         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2124
2125 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2126
2127         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2128         and decrement.
2129
2130 2012-07-26  Tom Tromey  <tromey@redhat.com>
2131
2132         * copying.c: Rebuild.
2133         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2134         'no_class'.
2135
2136 2012-07-26  Tom Tromey  <tromey@redhat.com>
2137
2138         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2139         immediate_quit.
2140         (print_objfile_statistics): Likewise.
2141         (maintenance_print_symbols): Likewise.
2142         (maintenance_print_msymbols): Likewise.
2143         (maintenance_print_objfiles): Likewise.
2144         * psymtab.c (print_partial_symbols): Call QUIT.
2145         (maintenance_print_psymbols): Likewise.  Don't modify
2146         immediate_quit.
2147         * copying.c (show_copying_command): Don't modify immediate_quit.
2148         (show_warranty_command): Likewise.
2149         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2150
2151 2012-07-26  Keith Seitz  <keiths@redhat.com>
2152
2153         * linespec.c (linespec_lexer_lex_number): The input
2154         is also a valid number if the next character is a comma
2155         or colon.
2156
2157 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2158
2159         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2160         configure options.
2161
2162 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2163
2164         * machoread.c: Include gdb_bfd.h.
2165
2166 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2167
2168         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2169         offset.
2170
2171 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2172
2173         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2174         SIZE to size_t.
2175         (dwarf2_evaluate_loc_desc): Likewise.
2176         (dwarf2_loc_desc_needs_frame): Likewise.
2177         (locexpr_describe_location_1): Likewise.
2178         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2179         size_t.
2180         (struct dwarf2_loclist_baton): Likewise.
2181         * dwarf2read.c (struct dwarf_block): Likewise.
2182         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2183         (decode_locdesc): Expand SIZE and I to size_t.
2184
2185 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2186
2187         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2188
2189 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2190
2191         * doublest.c (convert_doublest_to_floatformat): If the exponent
2192         is too small, treat the value as zero.  If the exponent is too
2193         large, treat the value as infinity.
2194
2195 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2196
2197         * configure.ac: Add --enable-lmcheck configure option.
2198         * configure: Regenerate.
2199
2200 2012-07-25  Tom Tromey  <tromey@redhat.com>
2201
2202         * NEWS: Mention maint info bfds.
2203         * gdb_bfd.c (all_bfds): New global.
2204         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2205         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2206         New functions.
2207
2208 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2209
2210         * configure.tgt: Add v850*-*-rtems*.
2211
2212 2012-07-25  Tom Tromey  <tromey@redhat.com>
2213
2214         * macrotab.c (macro_bcache_str): Remove cast.
2215
2216 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2217
2218         * linespec.c (linespec_lexer_lex_number): Update comments,
2219         change the return and add check to make sure the input is
2220         the decimal numbers.
2221         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2222         false, call linespec_lexer_lex_string.
2223
2224 2012-07-24  Tom Tromey  <tromey@redhat.com>
2225
2226         * symfile.c (symbol_file_add): Don't open BFD twice.
2227
2228 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2229
2230         * breakpoint.c (create_breakpoint): Store condition for pending
2231         breakpoints.
2232
2233 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2234
2235         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2236         (m68k_return_value): Handle complex types like structures.
2237         (m68k_svr4_return_value): Likewise.
2238
2239 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2240
2241         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2242         parameters to bfd_get_section_name.
2243
2244 2012-07-24  Yao Qi  <yao@codesourcery.com>
2245
2246         * cli/cli-setshow.c: Handle case 'var_uinteger'
2247         and 'var_zuninteger' together.  Handle case 'var_integer' and
2248         'var_zinteger' together.
2249
2250 2012-07-23  Keith Seitz  <keiths@redhat.com>
2251
2252         * linespec.c (convert_linespec_to_sal): Don't add
2253         any symbols to the result vector if symbol_to_sal
2254         returns zero.
2255
2256 2012-07-23  Keith Seitz  <keiths@redhat.com>
2257
2258         * linespec.c (decode_objc): Record the function name
2259         in the linespec.
2260
2261 2012-07-23  Tom Tromey  <tromey@redhat.com>
2262
2263         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2264         counting.
2265         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2266         (map_vmap): Acquire a reference to the BFD.
2267
2268 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2269
2270         * p-valprint.c (pascal_object_print_value): Replace potentially
2271         unsafe alloca with xmalloc/xfree.
2272         * valops.c (search_struct_method): Likewise.
2273
2274 2012-07-23  Tom Tromey  <tromey@redhat.com>
2275
2276         * solib-svr4.c (enable_break): Update.
2277         * bfd-target.h (target_bfd_reopen): Update documentation.
2278
2279 2012-07-23  Tom Tromey  <tromey@redhat.com>
2280
2281         * symfile.c (separate_debug_file_exists): Update.
2282         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2283         (reread_symbols): Update.
2284         * elfread.c (build_id_verify): Update.
2285         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2286         bfd_open_maybe_remote.
2287
2288 2012-07-23  Tom Tromey  <tromey@redhat.com>
2289
2290         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2291
2292 2012-07-23  Tom Tromey  <tromey@redhat.com>
2293
2294         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2295         and 'abfd'.
2296         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2297         and 'abfd'.
2298         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2299         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2300         'abfd'.
2301         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2302         * objfiles.c (allocate_objfile): Acquire a new reference.
2303         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2304         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2305         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2306         a cleanup for 'nbfd'.
2307         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2308         for 'nbfd'.
2309         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2310         make a cleanup for 'abfd'.
2311         (symbol_file_add): Make a BFD cleanup.
2312
2313 2012-07-23  Tom Tromey  <tromey@redhat.com>
2314
2315         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2316         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2317         * corelow.c (core_open): Use gdb_bfd_fopen.
2318         * dsrec.c (load_srec): Use gdb_bfd_openr.
2319         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2320         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2321         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2322         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2323         (gdb_bfd_fdopenr): New functions.
2324         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2325         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2326         (gdb_bfd_fdopenr): Declare.
2327         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2328         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2329         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2330         gdb_bfd_openr_next_archived_file.
2331         (macho_check_dsym): Use gdb_bfd_openr.
2332         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2333         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2334         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2335         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2336         gdb_bfd_openr.
2337         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2338         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2339         gdb_bfd_openr_next_archived_file.
2340         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2341         Use gdb_bfd_openr.
2342         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2343         gdb_bfd_openr.
2344         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2345         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2346         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2347         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2348         (symfile_bfd_open): Use gdb_bfd_fopen.
2349         (generic_load): Use gdb_bfd_openr.
2350         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2351
2352 2012-07-23  Tom Tromey  <tromey@redhat.com>
2353
2354         * bfd-target.c (target_bfd_reopen): Update.
2355         * cli/cli-dump.c (bfd_openr_with_cleanup)
2356         (bfd_openw_with_cleanup): Update.
2357         * corelow.c (core_open): Update.
2358         * dsrec.c (load_srec): Update.
2359         * exec.c (exec_file_attach): Update.
2360         * gcore.c (create_gcore_bfd): Update.
2361         * gdb_bfd.c (gdb_bfd_ref): Return void.
2362         (gdb_bfd_open): Update.
2363         * gdb_bfd.h (gdb_bfd_ref): Return void.
2364         Update comments.
2365         * jit.c (jit_bfd_try_read_symtab): Update.
2366         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2367         * machoread.c (macho_symfile_read_all_oso): Update.
2368         (macho_check_dsym): Update.
2369         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2370         * remote-m32r-sdi.c (m32r_load): Update.
2371         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2372         * rs6000-nat.c (add_vmap): Update.
2373         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2374         Update.
2375         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2376         * solib-spu.c (spu_bfd_open): Update.
2377         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2378         * spu-linux-nat.c (spu_bfd_open): Update.
2379         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2380         (generic_load): Update.
2381         * windows-nat.c (windows_make_so): Update.
2382
2383 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2384
2385         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2386
2387 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2388
2389         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2390         SIGTRAMP_FRAME unwinding.
2391
2392 2012-07-20  Doug Evans  <dje@google.com>
2393
2394         * NEWS: Document new options "set/show use-deprecated-index-sections",
2395         and delete reference to --use-deprecated-index-sections.
2396         * symfile.h (use_deprecated_index_sections): Delete.
2397         * dwarf2read.c (use_deprecated_index_sections): Make static.
2398         (read_index_from_section): Update wording of how to load
2399         deprecated index sections.
2400         (_initialize_dwarf2_read): New options
2401         "set/show use-deprecated-index-sections".
2402         * main.c (captured_main): Delete --use-deprecated-index-sections.
2403
2404 2012-07-20  Pedro Alves  <palves@redhat.com>
2405
2406         PR threads/11692
2407         PR gdb/12203
2408
2409         * infrun.c (handle_inferior_event) <new thread>: Don't special
2410         case minus_one_ptid.
2411         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2412         * linux-thread-db.c (thread_get_info_callback): Don't return early
2413         if the thread is zombie.
2414         (thread_from_lwp): Change return type to void.  Rewrite stale
2415         comment.
2416         (attach_thread): Don't return early if the thread is zombie,
2417         instead set its "dying" flag.
2418         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2419         (find_new_threads_callback): Don't return early if the thread is
2420         zombie.
2421
2422 2012-07-20  Pedro Alves  <palves@redhat.com>
2423
2424         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2425         * target.c (target_wait): Likewise.
2426         (str_comma_list_concat_elem, do_option, target_options_to_string):
2427         New functions.
2428         * target.h (target_options_to_string): Declare.
2429
2430 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2431             Tom Tromey  <tromey@redhat.com>
2432
2433         * dwarf2read.c (dwarf_decode_macros)
2434         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2435         DW_MACRO_GNU_transparent_include_alt>: New cases.
2436         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2437         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2438
2439 2012-07-20  Tom Tromey  <tromey@redhat.com>
2440
2441         * dwarf2read.c (try_open_dwo_file): Don't call
2442         gdb_bfd_stash_filename.
2443
2444 2012-07-20  Pedro Alves  <palves@redhat.com>
2445
2446         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2447         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2448         (i386_process_record): Tweak description comments.
2449
2450 2012-07-20  Pedro Alves  <palves@redhat.com>
2451
2452         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2453         (i386_process_record): Use record_read_memory.
2454         * record.c (record_read_memory): New function.
2455         (record_arch_list_add_mem, record_exec_insn): Use
2456         record_read_memory.
2457         * record.h (record_read_memory): Declare.
2458
2459 2012-07-20  Yao Qi  <yao@codesourcery.com>
2460
2461         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2462         NULL for xfree.
2463
2464 2012-07-19  Pedro Alves  <palves@redhat.com>
2465
2466         * record.c (record_resume): Ask the target beneath to report all
2467         signals.
2468
2469 2012-07-19  Doug Evans  <dje@google.com>
2470
2471         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2472         there's no section at address zero.
2473         (dwarf2_record_block_ranges): Ditto.
2474
2475 2012-07-19  Yao Qi  <yao@codesourcery.com>
2476
2477         * command.h, remote.c: Fix a typo in comment.
2478
2479 2012-07-19  Tom Tromey  <tromey@redhat.com>
2480
2481         PR exp/13206:
2482         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2483         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2484         OP_DECLTYPE>: New cases.
2485         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2486         (type_exp): Add new productions.
2487         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2488         and decltype.
2489         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2490         New case.
2491         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2492         OP_DECLTYPE>: New case.
2493         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2494         New case.
2495         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2496         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2497
2498 2012-07-19  Tom Tromey  <tromey@redhat.com>
2499
2500         * c-exp.y (enum token_flags): New.
2501         (struct token) <cxx_only>: Remove.
2502         <flags>: New field.
2503         (tokentab3, tokentab2, ident_tokens): Update.
2504         (lex_one_token): Update.  Handle FLAG_SHADOW.
2505
2506 2012-07-19  Tom Tromey  <tromey@redhat.com>
2507
2508         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2509         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2510         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2511         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2512         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2513         type_exp production where appropriate.
2514         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2515         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2516         <UNOP_MEMVAL_TYPE>: New case.
2517         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2518         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2519         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2520         <UNOP_MEMVAL_TYPE>: New case.
2521         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2522         UNOP_REINTERPRET_CAST>: Update.
2523         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2524         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2525         UNOP_REINTERPRET_CAST>: Update.
2526         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2527         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2528         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2529         constants.
2530
2531 2012-07-19  Yao Qi  <yao@codesourcery.com>
2532             Jan Kratochvil <jan.kratochvil@redhat.com>
2533
2534         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2535         and case 'var_optional_filename' together.
2536         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2537         instead of add_setshow_optional_filename_cmd for setshow command
2538         'args'.  Set completer for 'set args'.
2539
2540 2012-07-18  Doug Evans  <dje@google.com>
2541
2542         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2543         * common/gdb_vecs.c: New file, contents from utils.c.
2544         * common/host-defs.h: New file, contents from defs.h.
2545         * utils.h: New file, contents from defs.h.
2546         * defs.h: Move all declarations of objects defined in utils.c
2547         to utils.h (except QUIT() and related).
2548         #include "utils.h", "host-defs.h".
2549         * probe.h (probe_p): Move here from gdb_vecs.h.
2550         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2551         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2552         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2553         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2554         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2555         (COMMON_OBS): Add gdb_vecs.o.
2556         (gdb_vecs.o): New rule.
2557
2558 2012-07-18  Keith Seitz  <keiths@redhat.com>
2559
2560         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2561         parameter.  If non-zero, use SYMNAME as the canonical name
2562         for the SaL.
2563         Update all callers.
2564         (convert_linespec_to_sals): Use add_sal_to_sals for
2565         expressions, too.
2566         (decode_line_full): No need to "fill in missing canonical names"
2567         anymore. Simply make cleanups for the allocated names.
2568
2569 2012-07-18  Keith Seitz  <keiths@redhat.com>
2570
2571         * linespec.c (struct linespec): Constify expression,
2572         source_filename, function_name, and label_name.
2573         (symbol_not_found_error): Make all parameters const.
2574         (linespec_parser_delete): No need to check for NULL
2575         when using xfree. Cast const char * to char * for xfree.
2576
2577 2012-07-18  Keith Seitz  <keiths@redhat.com>
2578
2579         * breakpoint.c (invalid_thread_id_error): New function.
2580         (find_condition_and_thread): Use invalid_thread_id_error.
2581         (watch_command_1): Likewise.
2582
2583 2012-07-18  Tom Tromey  <tromey@redhat.com>
2584
2585         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2586         * contrib/cc-with-tweaks.sh: New file.
2587
2588 2012-07-18  Tom Tromey  <tromey@redhat.com>
2589
2590         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2591         (locate_dwz_sections): Recognize .gdb_index.
2592         (create_cus_from_index_list): New function.
2593         (create_cus_from_index): Use it.  Handle .dwz data.
2594         (read_index_from_section): New function, extracted from
2595         dwarf2_read_index.
2596         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2597         if needed.
2598
2599 2012-07-18  Tom Tromey  <tromey@redhat.com>
2600
2601         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2602         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2603         <is_dwz>: New field.
2604         (struct dwz_file): New.
2605         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2606         (locate_dwz_sections, dwarf2_get_dwz_file)
2607         (get_abbrev_section_for_cu): New functions.
2608         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2609         (read_and_check_type_unit_head): Add abbrev_section argument.
2610         (create_debug_types_hash_table): Update.
2611         (init_cutu_and_read_dies): Use proper abbrev section.
2612         (init_cutu_and_read_dies_no_follow): Likewise.
2613         (set_partial_user): Do nothing if PST==NULL.
2614         (read_comp_units_from_section): New function.
2615         (create_all_comp_units): Use it.
2616         (scan_partial_symbols, partial_die_parent_scope): Update.
2617         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2618         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2619         (find_partial_die): Add offset_in_dwz argument.  Update.
2620         (guess_partial_die_structure_name, fixup_partial_die): Update.
2621         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2622         DW_FORM_GNU_strp_alt.
2623         (read_indirect_string_from_dwz): New function.
2624         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2625         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2626         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2627         (follow_die_offset): Add offset_in_dwz argument.
2628         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2629         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2630         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2631         Handle new macro forms.
2632         (dwarf_decode_macros): Update.
2633         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2634         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2635         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2636         (create_debug_types_hash_table): Use correct abbrev section.
2637         (get_debug_line_section): New function.
2638         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2639         (process_full_comp_unit): Pass 'required' argument to
2640         end_symtab_get_static_block.
2641         * buildsym.h (end_symtab_get_static_block): Update.
2642         * buildsym.c (end_symtab_get_static_block): Add 'required'
2643         argument.
2644         (end_symtab, end_expandable_symtab): Update.
2645
2646 2012-07-18  Tom Tromey  <tromey@redhat.com>
2647
2648         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2649         (pagesize): Remove.
2650         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2651         (zlib_decompress_section): Remove.
2652         (dwarf2_read_section): Use gdb_bfd_map_section.
2653         (munmap_section_buffer): Remove.
2654         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2655         munmap_section_buffer.
2656         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2657         (struct gdb_bfd_section_data): New.
2658         (free_one_bfd_section): New function.
2659         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2660         (get_section_descriptor, zlib_decompress_section)
2661         (gdb_bfd_map_section): New functions.
2662         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2663
2664 2012-07-18  Tom Tromey  <tromey@redhat.com>
2665
2666         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2667
2668 2012-07-18  Tom Tromey  <tromey@redhat.com>
2669
2670         * gdb_bfd.c (struct gdb_bfd_data): New.
2671         (gdb_bfd_cache): New global.
2672         (struct gdb_bfd_cache_search): New.
2673         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2674         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2675         * gdb_bfd.h (gdb_bfd_open): Declare.
2676
2677 2012-07-18  Tom Tromey  <tromey@redhat.com>
2678
2679         * utils.c (make_cleanup_bfd_unref): Rename from
2680         make_cleanup_bfd_close.
2681         * defs.h (make_cleanup_bfd_unref): Rename from
2682         make_cleanup_bfd_close.
2683         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2684         (bfd_openw_with_cleanup): Update.
2685         * corelow.c (core_open): Update.
2686         * dsrec.c (load_srec): Update.
2687         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2688         * remote-m32r-sdi.c (m32r_load): Update.
2689         * remote-mips.c (mips_load_srec): Update.
2690         (pmon_load_fast): Update.
2691         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2692         Update.
2693         (darwin_bfd_open): Update.
2694         * solib.c (solib_bfd_fopen): Update.
2695         * symfile-mem.c (symbol_file_add_from_memory): Update.
2696         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2697         (symfile_bfd_open): Update.
2698         (generic_load): Update.
2699
2700 2012-07-18  Tom Tromey  <tromey@redhat.com>
2701
2702         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2703         (pmon_load_fast): Likewise.
2704         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2705         (m32r_upload_command): Likewise.
2706         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2707         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2708         Use make_cleanup_bfd_close.
2709
2710 2012-07-18  Tom Tromey  <tromey@redhat.com>
2711
2712         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2713         gdb_bfd_stash_filename.
2714         (load_command): Open the new BFD before freeing the old.
2715         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2716         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2717         Call gdb_bfd_stash_filename.
2718         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2719         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2720         gdb_bfd_stash_filename.
2721         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2722         Free found_pathname.
2723         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2724         gdb_bfd_stash_filename.
2725         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2726         * machoread.c (macho_add_oso_symfile): Call
2727         gdb_bfd_stash_filename.
2728         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2729         gdb_bfd_stash_filename.
2730         (macho_check_dsym): Don't copy filename.  Call
2731         gdb_bfd_stash_filename.
2732         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2733         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2734         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2735         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2736         * exec.c (exec_close): Don't free the BFD's filename.
2737         (exec_file_attach): Don't copy the filename.  Call
2738         gdb_bfd_stash_filename.
2739         * corelow.c (core_close): Don't free the BFD's filename.
2740         (core_open): Call gdb_bfd_stash_filename.
2741         * corefile.c (reopen_exec_file): Remove #if 0 code.
2742         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2743         pathname.
2744         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2745
2746 2012-07-18  Tom Tromey  <tromey@redhat.com>
2747
2748         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2749         gdb_bfd_unref.
2750         (free_dwo_file): Use gdb_bfd_unref.
2751         * cli/cli-dump.c: Include gdb_bfd.h.
2752         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2753         (bfd_openr_with_cleanup): Likewise.
2754         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2755         gdb_bfd_unref.
2756         * utils.c: Include gdb_bfd.h.
2757         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2758         * symfile.c: Include gdb_bfd.h.
2759         (separate_debug_file_exists): Use gdb_bfd_unref.
2760         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2761         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2762         (generic_load): Use gdb_bfd_ref.
2763         (reread_symbols): Use gdb_bfd_unref.
2764         * symfile-mem.c: Include gdb_bfd.h.
2765         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2766         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2767         * solib.c: Include gdb_bfd.h.
2768         (solib_bfd_fopen): Use gdb_bfd_ref.
2769         (solib_bfd_open): Use gdb_bfd_unref.
2770         (free_so_symbols): Use gdb_bfd_unref.
2771         (reload_shared_libraries_1): Use gdb_bfd_unref.
2772         * solib-spu.c: Include gdb_bfd.h.
2773         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2774         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2775         gdb_bfd_unref.
2776         * solib-frv.c: Include gdb_bfd.h.
2777         (enable_break2): Use gdb_bfd_unref.
2778         * solib-dsbt.c: Include gdb_bfd.h.
2779         (enable_break2): Use gdb_bfd_unref.
2780         * solib-darwin.c: Include gdb_bfd.h.
2781         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2782         gdb_bfd_unref.
2783         (darwin_bfd_open): Use gdb_bfd_unref.
2784         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2785         * remote-mips.c: Include gdb_bfd.h.
2786         (mips_load_srec): Use gdb_bfd_ref.
2787         (pmon_load_fast): Use gdb_bfd_ref.
2788         * remote-m32r-sdi.c: Include gdb_bfd.h.
2789         (m32r_load): Use gdb_bfd_ref.
2790         * record.c: Include gdb_bfd.h.
2791         (record_save_cleanups): Use gdb_bfd_unref.
2792         (cmd_record_save): Use gdb_bfd_unref.
2793         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2794         gdb_bfd_unref.
2795         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2796         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2797         * objfiles.c: Include gdb_bfd.h.
2798         (free_objfile): Use gdb_bfd_unref.
2799         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2800         gdb_bfd.c.
2801         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2802         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2803         (macho_check_dsym): Likewise.
2804         * m32r-rom.c: Include gdb_bfd.h.
2805         (m32r_load): Use gdb_bfd_ref.
2806         (m32r_upload_command): Use gdb_bfd_ref.
2807         * jit.c: Include gdb_bfd.h.
2808         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2809         * gdb_bfd.h: New file.
2810         * gdb_bfd.c: New file.
2811         * gcore.c: Include gdb_bfd.h.
2812         (create_gcore_bfd): Use gdb_bfd_ref.
2813         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2814         (gcore_command): Use gdb_bfd_unref.
2815         * exec.c: Include gdb_bfd.h.
2816         (exec_close): Use gdb_bfd_unref.
2817         (exec_close_1): Use gdb_bfd_unref.
2818         (exec_file_attach): Use gdb_bfd_ref.
2819         * elfread.c: Include gdb_bfd.h.
2820         (build_id_verify): Use gdb_bfd_unref.
2821         * dsrec.c: Include gdb_bfd.h.
2822         (load_srec): Use gdb_bfd_ref.
2823         * corelow.c: Include gdb_bfd.h.
2824         (core_close): Use gdb_bfd_unref.
2825         (core_open): Use gdb_bfd_ref.
2826         * bfd-target.c: Include gdb_bfd.h.
2827         (target_bfd_xclose): Use gdb_bfd_unref.
2828         (target_bfd_reopen): Use gdb_bfd_ref.
2829         * Makefile.in (SFILES): Add gdb_bfd.c.
2830         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2831         (COMMON_OBS): Add gdb_bfd.o.
2832
2833 2012-07-18  Keith Seitz  <keiths@redhat.com>
2834
2835         * breakpoint.c (find_condition_and_thread): Initialize
2836         TASK and REST.
2837         (create_breakpiont): find_condition_and_thread will now
2838         initialize COND_STRING, THREAD, and REST (and TASK).
2839         (addr_string_to_sals): Likewise.
2840
2841 2012-07-18  Pedro Alves  <palves@redhat.com>
2842
2843         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2844         Pull the single step breakpoints out of the target.
2845
2846 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2847
2848         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2849         * stap-probe.c (compile_probe_arg): Likewise.
2850
2851 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2852
2853         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2854         (elf_compile_to_ax): Likewise.
2855         * infrun.c (insert_exception_resume_from_probe): Likewise.
2856         (check_exception_resume): Remove `objfile' variable.
2857         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2858         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2859         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2860         (compare_entries): Rename to...
2861         (compare_probes): ...this.  Adjust function to work with
2862         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2863         respectively.
2864         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2865         `VEC (probe_p) *'.
2866         (print_ui_out_info): Adjust argument to be `struct probe *'.
2867         (info_probes_for_ops): Adjust internal computations to use
2868         `VEC (probe_p) *'.
2869         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2870         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2871         gen_info_probes_table_values>: Remove `objfile' argument.
2872         (struct probe) <objfile>: New field.
2873         (find_probe_by_pc): Remove `objfile' argument.
2874         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2875         (stap_get_probe_argument_count): Likewise.
2876         (stap_get_arg): Likewise.
2877         (stap_evaluate_probe_argument): Likewise.
2878         (stap_compile_to_ax): Likewise.
2879         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2880         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2881         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2882         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2883         sym_compile_to_ax>: Likewise.
2884
2885 2012-07-18  Terry Guo  <terry.guo@arm.com>
2886
2887         PR 14329
2888         * defs.h (GDB_MI_MSG_WIDTH): New.
2889         * ser_base (ser_base_read_error_fd): New function.
2890         (do_ser_base_readchar): Poll error file descriptor as well as
2891         standard output.
2892         (generic_readchar): Refactor error handling.
2893
2894 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2895
2896         * NEWS: Create a new section for the next release branch.
2897         Rename the section of the current branch, now that it has
2898         been cut.
2899
2900 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2901
2902         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2903         * version.in: Bump version to 7.5.50.20120718-cvs.
2904
2905 2012-07-17  Keith Seitz  <keiths@redhat.com>
2906
2907         * linespec.c (linespec_parse_line_offset): Make parameter
2908         const.
2909
2910 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2911
2912         PR 11914
2913         * f-valprint.c (info_common_command): New variable frame_id.
2914         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2915         * printcmd.c (print_variable_and_value): Extend function comment.
2916         Add comment for invalidated FRAME.
2917         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2918         FI form FRAME_ID after each print_frame_local_vars.
2919         (struct print_variable_and_value_data): Change frame to frame_id.
2920         (do_print_variable_and_value): New variable frame, initialize it from
2921         p->frame_id.  Add comment for invalidated FRAME.
2922         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2923         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2924         for invalidated FRAME.
2925
2926 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2927             Pedro Alves  <palves@redhat.com>
2928
2929         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2930         loop.
2931
2932 2012-07-16  Tom Tromey  <tromey@redhat.com>
2933
2934         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2935
2936 2012-07-15  Doug Evans  <dje@google.com>
2937
2938         * dwarf2read.c (stmt_list_hash): New struct.
2939         (type_unit_group): Embed "per_cu" member, remove pointer.
2940         New union member "t", move member "tus" into it, all uses updated.
2941         New member "hash", replaces member "line_offset, all uses updated.
2942         (quick_file_names): Replace member "offset" with "hash", all uses
2943         updated.
2944         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2945         (hash_file_name_entry, eq_file_name_entry): Call them.
2946         (hash_type_unit_group, eq_type_unit_group): Ditto.
2947         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2948         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2949         (dw2_get_file_names): Update.
2950         (create_type_unit_group): Replace "per_cu" arg with "cu".
2951         All callers updated.  Fix "quick" (.gdb_index) handling.
2952         (get_type_unit_group): Replace "per_cu" arg with "cu".
2953         All callers updated.
2954         (build_type_unit_groups): Don't reset tu_stats.
2955
2956         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2957         "tab_cur_size".  Change member "tab" to be a htab_t.
2958         (create_filename_seen_cache): Update.
2959         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2960         (filename_seen): Update.
2961
2962 2012-07-13  Doug Evans  <dje@google.com>
2963
2964         * symtab.c (filename_seen): Update comment.
2965
2966 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2967             Doug Evans  <dje@google.com>
2968
2969         * buildsym.c (end_symtab_1): Split it to ...
2970         (end_symtab_get_static_block): ... this ...
2971         (end_symtab_from_static_block): ... and this function.
2972         (end_symtab, end_expandable_symtab): Call them.
2973         * buildsym.h (end_symtab_get_static_block)
2974         (end_symtab_from_static_block): New declarations.
2975         * dwarf2read.c (process_full_comp_unit): New variable static_block.
2976         Set its valid CU ranges.
2977
2978 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2979
2980         * dwarf2loc.c (disassemble_dwarf_expression): Handle
2981         DW_OP_GNU_parameter_ref.
2982
2983 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2984
2985         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2986         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2987
2988 2012-07-13  Doug Evans  <dje@google.com>
2989
2990         * symtab.c (output_source_filename): Delete unnecessary forward decl.
2991         (filename_seen_cache): New struct.
2992         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2993         (create_filename_seen_cache): New function.
2994         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2995         (filename_seen): Delete arg "first".  New arg "cache".  All callers
2996         updated.
2997         (output_source_filename_data): New struct.
2998         (output_source_filename): Delete arg "first".  New arg "data".
2999         All callers updated.
3000         (sources_info): Delete local "first".  New locals "data", "cleanups".
3001         Rewrite to use filename_seen_cache.
3002         (add_partial_filename_data): Delete member "first".  New member
3003         "filename_seen_cache".  All uses updated.
3004         (make_source_files_completion_list): Rewrite to use
3005         filename_seen_cache.
3006
3007 2012-07-12  Doug Evans  <dje@google.com>
3008
3009         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3010
3011 2012-07-10  Doug Evans  <dje@google.com>
3012
3013         PR gdb/13498
3014         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3015         all_type_unit_groups, type_unit_groups, tu_stats.
3016         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3017         All uses updated.  Add type_unit_group to union "s".
3018         (type_unit_group): New struct.
3019         (IS_TYPE_UNIT_GROUP): New macro.
3020         (abbrev_table): Delete unused member "section".
3021         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3022         (dw2_get_cu): Assert not used with type_unit_group.
3023         (dw2_get_primary_cu): New function.
3024         (dw2_build_type_unit_groups_reader): New function.
3025         (dw2_build_type_unit_groups): New function.
3026         (dw2_get_file_names): Assert not called on type units.
3027         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3028         Redo loop to iterate over type unit groups instead of type units.
3029         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3030         (read_abbrev_offset): New function.
3031         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3032         updated.
3033         (create_partial_symtab): New function.
3034         (process_psymtab_comp_unit_reader): Assert not used with type units.
3035         Call create_partial_symtab.
3036         (process_psymtab_type_unit): Delete.
3037         (hash_type_unit_group, eq_type_unit_group): New functions.
3038         (allocate_type_unit_groups_table): New function.
3039         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3040         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3041         (create_type_unit_group, get_type_unit_group): New functions.
3042         (tu_abbrev_offset): New struct.
3043         (sort_tu_by_abbrev_offset): New function.
3044         (add_type_unit_group_to_table): New function.
3045         (build_type_unit_groups): New function.
3046         (build_type_psymtabs_reader): New function.
3047         (build_type_psymtab_dependencies): New function.
3048         (build_type_psymtabs): Rewrite.
3049         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3050         is seen in a type unit.
3051         (process_queue): Move symtab expansion debugging printfs here.
3052         Call process_full_type_unit for type units.
3053         (compute_symtab_includes): Assert not called for type units.
3054         (process_cu_includes): Don't call compute_symtab_includes for
3055         type units.
3056         (process_full_type_unit): New function.
3057         (process_imported_unit_die): Flag an error if called for type units.
3058         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3059         updated.  Assert not called for type units.
3060         (read_file_scope): Call dwarf2_start_symtab.
3061         (setup_type_unit_groups): New function.
3062         (read_type_unit_scope): Rewrite.
3063         (abbrev_table_read_table): Initialize abbrev_table->offset.
3064         (abbrev_table_free_cleanup): New function.
3065         (dwarf2_start_symtab): New function.
3066         (load_full_type_unit): Assert not called for type unit groups.
3067         * buildsym.c (finish_block_internal): New arg "expandable".
3068         All callers updated.
3069         (start_symtab): Move most contents to ...
3070         (restart_symtab): ... here.  New function.
3071         (reset_symtab_globals): New function.
3072         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3073         Call reset_symtab_globals.
3074         (end_symtab, end_expandable_symtab): New functions.
3075         (set_missing_symtab, augment_type_symtab): New functions.
3076         * buildsym.h (end_expandable_symtab): Declare.
3077         (augment_type_symtab, restart_symtab): Declare.
3078         * psympriv.h (struct partial_symtab): New member "anonymous".
3079         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3080         anonymous psymtabs.
3081         (read_psymtabs_with_filename): Ditto.
3082         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3083         (expand_symtabs_matching_via_partial): Ditto.
3084         (dump_psymtab): Update.
3085         * dictionary.c (dict_add_pending): New function.
3086         * dictionary.h (dict_add_pending): Declare.
3087
3088 2012-07-09  Doug Evans  <dje@google.com>
3089
3090         * buildsym.c (start_subfile): Remove unnecessary check for
3091         name == NULL.
3092
3093         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3094
3095         * dwarf2read.c (load_full_type_unit): Simplify.
3096
3097         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3098         to struct signatured_type **.  All uses updated.
3099
3100         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3101         All callers updated.
3102
3103 2012-07-09  Tom Tromey  <tromey@redhat.com>
3104
3105         * c-exp.y (check_parameter_typelist): New function.
3106         (parameter_typelist): Call it.
3107         * eval.c (make_params): Handle '(void)' case.
3108         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3109         '(void)' case.
3110
3111 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3112
3113         * common/linux-ptrace.c: Include gdb_assert.h.
3114         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3115         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3116         stdint.h.
3117         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3118         functions.
3119         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3120         * linux-nat.c (linux_child_post_attach)
3121         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3122
3123 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3124
3125         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3126         nptl <2.7 bug workaround for core files.
3127
3128 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3129
3130         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3131         clearing.
3132         (save_siginfo): Remove.
3133         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3134         call.
3135         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3136         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3137         * linux-nat.h (struct lwp_info): Remove field siginfo.
3138
3139 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3140
3141         Code cleanup for the next patch.
3142         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3143         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3144         call for it.
3145         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3146         (ia64_linux_stopped_data_address):
3147         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3148         the return value.
3149         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3150         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3151         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3152         call for it.
3153
3154 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3155
3156         PR 14321
3157         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3158         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3159
3160 2012-07-06  Tom Tromey  <tromey@redhat.com>
3161
3162         * c-exp.y (DOTDOTDOT): New token.
3163         (func_mod, exp): Use parameter_typelist.
3164         (parameter_typelist): New production.
3165         (tokentab3): Add "..." token.
3166         * eval.c (make_params): Handle varargs.
3167         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3168         varargs.
3169
3170 2012-07-06  Tom Tromey  <tromey@redhat.com>
3171
3172         PR exp/9608:
3173         * c-exp.y (%union) <tvec>: Change type.
3174         (func_mod): Now uses <tvec> type.
3175         (exp): Update for tvec change.
3176         (direct_abs_decl): Push the typelist.
3177         (func_mod): Return a typelist.
3178         (nonempty_typelist): Update for tvec change.
3179         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3180         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3181         * parse.c (pop_type_list): New function.
3182         (push_typelist): New function.
3183         (follow_types): Handle tp_function_with_arguments.
3184         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3185         (enum type_pieces) <tp_function_with_arguments>: New constant.
3186         (union type_stack_elt) <typelist_val>: New field.
3187         (push_typelist): Declare.
3188
3189 2012-07-06  Tom Tromey  <tromey@redhat.com>
3190
3191         * c-exp.y (%union) <type_stack>: New field.
3192         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3193         (ptr_operator_ts): New production.
3194         (ptype): Update.
3195         * parse.c (type_stack_reserve): New function.
3196         (check_type_stack_depth): Use it.
3197         (pop_type_stack, append_type_stack, push_type_stack)
3198         (get_type_stack, type_stack_cleanup): New functions.
3199         (follow_types): Handle tp_type_stack.
3200         (_initialize_parse): Simplify initialization.
3201         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3202         constant.
3203         (union type_stack_elt) <stack_val>: New field.
3204         (get_type_stack, append_type_stack, push_type_stack)
3205         (type_stack_cleanup): Declare.
3206
3207 2012-07-06  Tom Tromey  <tromey@redhat.com>
3208
3209         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3210         Remove.
3211         (struct type_stack): New.
3212         * parse.c (type_stack, type_stack_size, type_stack_depth):
3213         Remove.
3214         (type_stack): New global.
3215         (parse_exp_in_context, check_type_stack_depth)
3216         (insert_into_type_stack, insert_type, push_type, push_type_int)
3217         (insert_type_address_space, pop_type, pop_type_int)
3218         (_initialize_parse): Update.
3219
3220 2012-07-06  Tom Tromey  <tromey@redhat.com>
3221
3222         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3223         Remove %type.
3224
3225 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3226
3227         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3228
3229 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3230             Jan Kratochvil  <jan.kratochvil@redhat.com>
3231
3232         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3233         alloca with xmalloc/xfree.
3234
3235 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3236
3237         * MAINTAINERS (Write After Approval): Add myself to the list.
3238
3239 2012-07-05  Doug Evans  <dje@google.com>
3240
3241         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3242
3243 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3244
3245         * ax-gdb.c (cli/cli-utils.h): New include.
3246         (linespec.h): Ditto.
3247         (agent_eval_command_one): New function.
3248         (agent_command_1): Ditto.
3249         (agent_command): Call function agent_command_1.
3250         (agent_eval_command): Ditto.
3251         (_initialize_ax_gdb): Change help for "maint agent"
3252         and "maint agent-eval".
3253
3254 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3255
3256         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3257         * cli/cli-utils.c (check_for_argument): New function.
3258         * cli/cli-utils.h (check_for_argument): Ditto.
3259
3260 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3261
3262         * NEWS: Mention x32 ABI support.
3263
3264 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3265
3266         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3267         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3268
3269         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3270         and pc_regnum_from_eax to -1.  Update SP regnum from
3271         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3272         needed.
3273
3274         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3275         pc_regnum_from_eax.
3276
3277 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3278
3279         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3280         * dwarf2expr.h: Include gdbtypes.h.
3281         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3282         these forward declarations.
3283         (cu_offset, sect_offset): Move these ...
3284         * gdbtypes.h: Remove include dwarf2expr.h.
3285         (cu_offset, sect_offset): ... here.
3286
3287 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3288
3289         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3290         (amd64_linux_sigtramp_code): This.
3291         (amd64_x32_linux_sigtramp_code): New.
3292         (LINUX_SIGTRAMP_LEN): Updated.
3293         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3294
3295 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3296
3297         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3298
3299 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3300
3301         * config.in: Regenerate.
3302         * configure: Regenerate.
3303         * configure.ac: Remove check for gnu/libc-version.h.
3304         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3305         gnu/libc-version.h.
3306         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3307         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3308         inferior_has_bug.  Extend the comment.
3309
3310 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3311
3312         * linux-thread-db.c (inferior_has_bug): New function.
3313         (thread_db_find_new_threads_silently): Return boolean as checked by
3314         inferior_has_bug, describe it in the comments.
3315         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3316         earlier.  Abort the initialization if it returned non-zero.
3317         (thread_db_new_objfile): Exclude debug files.
3318         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3319         if UNTIL_NO_NEW,
3320
3321 2012-07-02  Doug Evans  <dje@google.com>
3322
3323         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3324         related to queue management.
3325
3326         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3327         instead of "debug dwarf2-die" in debugging printfs.
3328         (create_debug_info_hash_table_reader): Ditto.
3329         (create_debug_info_hash_table): Ditto.
3330         (init_dwo_file): Ditto.
3331         (init_cutu_and_read_dies): Add debugging printf.
3332         (init_cutu_and_read_dies_no_follow): Ditto.
3333         (process_psymtab_comp_unit_reader): Ditto.
3334
3335 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3336
3337         Add target-side support for dynamic printf.
3338         * NEWS: Mention the additional style.
3339         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3340         (struct bp_location): New field cmd_bytecode.
3341         * breakpoint.c: Include format.h.
3342         (disconnected_dprintf): New global.
3343         (parse_cmd_to_aexpr): New function.
3344         (build_target_command_list): New function.
3345         (insert_bp_location): Call it.
3346         (remove_breakpoints_pid): Skip dprintf breakpoints.
3347         (print_one_breakpoint_location): Ditto.
3348         (dprintf_style_agent): New global.
3349         (dprintf_style_enums): Add dprintf_style_agent.
3350         (update_dprintf_command_list): Add agent case.
3351         (agent_printf_command): New function.
3352         (_initialize_breakpoint): Add new commands.
3353         * common/ax.def (printf): New bytecode.
3354         * ax.h (ax_string): Declare.
3355         * ax-gdb.h (gen_printf): Declare.
3356         * ax-gdb.c: Include cli-utils.h, format.h.
3357         (gen_printf): New function.
3358         (maint_agent_print_command): New function.
3359         (_initialize_ax_gdb): Add maint agent-printf command.
3360         * ax-general.c (ax_string): New function.
3361         (ax_print): Add printf disassembly.
3362         * Makefile.in (SFILES): Add format.c
3363         (COMMON_OBS): Add format.o.
3364         * common/format.h: New file.
3365         * common/format.c: New file.
3366         * printcmd.c: Include format.h.
3367         (ui_printf): Call parse_format_string.
3368         * remote.c (remote_state): New field breakpoint_commands.
3369         (PACKET_BreakpointCommands): New enum.
3370         (remote_breakpoint_commands_feature): New function.
3371         (remote_protocol_features): Add new BreakpointCommands entry.
3372         (remote_can_run_breakpoint_commands): New function.
3373         (remote_add_target_side_commands): New function.
3374         (remote_insert_breakpoint): Call it.
3375         (remote_insert_hw_breakpoint): Ditto.
3376         (_initialize_remote): Add new packet configuration for
3377         target-side breakpoint commands.
3378         * target.h (struct target_ops): New field
3379         to_can_run_breakpoint_commands.
3380         (target_can_run_breakpoint_commands): New macro.
3381         * target.c (update_current_target): Handle
3382         to_can_run_breakpoint_commands.
3383
3384 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3385
3386         Execute -ix and -iex only after system and user gdbinit files.
3387         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3388         processing down after gdbinit files.
3389
3390 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3391
3392         Add fnmatch-gnu module.
3393         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3394         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3395         * gnulib/aclocal.m4: Regenerate.
3396         * gnulib/config.in: Regenerate.
3397         * gnulib/configure: Regenerate.
3398         * gnulib/import/dummy.c: Remove.
3399         * gnulib/import/Makefile.am: Regenerate.
3400         * gnulib/import/Makefile.in: Likewise.
3401         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3402         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3403         * gnulib/import/alloca.c: New file.
3404         * gnulib/import/alloca.in.h: Likewise.
3405         * gnulib/import/config.charset: Likewise.
3406         * gnulib/import/fnmatch.c: Likewise.
3407         * gnulib/import/fnmatch.in.h: Likewise.
3408         * gnulib/import/fnmatch_loop.c: Likewise.
3409         * gnulib/import/localcharset.c: Likewise.
3410         * gnulib/import/localcharset.h: Likewise.
3411         * gnulib/import/m4/alloca.m4: Likewise.
3412         * gnulib/import/m4/codeset.m4: Likewise.
3413         * gnulib/import/m4/configmake.m4: Likewise.
3414         * gnulib/import/m4/fcntl-o.m4: Likewise.
3415         * gnulib/import/m4/fnmatch.m4: Likewise.
3416         * gnulib/import/m4/glibc21.m4: Likewise.
3417         * gnulib/import/m4/localcharset.m4: Likewise.
3418         * gnulib/import/m4/locale-fr.m4: Likewise.
3419         * gnulib/import/m4/locale-ja.m4: Likewise.
3420         * gnulib/import/m4/locale-zh.m4: Likewise.
3421         * gnulib/import/m4/mbrtowc.m4: Likewise.
3422         * gnulib/import/m4/mbsinit.m4: Likewise.
3423         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3424         * gnulib/import/m4/mbstate_t.m4: Likewise.
3425         * gnulib/import/m4/stdbool.m4: Likewise.
3426         * gnulib/import/m4/wchar_h.m4: Likewise.
3427         * gnulib/import/m4/wctype_h.m4: Likewise.
3428         * gnulib/import/m4/wint_t.m4: Likewise.
3429         * gnulib/import/mbrtowc.c: Likewise.
3430         * gnulib/import/mbsinit.c: Likewise.
3431         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3432         * gnulib/import/mbsrtowcs-state.c: Likewise.
3433         * gnulib/import/mbsrtowcs.c: Likewise.
3434         * gnulib/import/ref-add.sin: Likewise.
3435         * gnulib/import/ref-del.sin: Likewise.
3436         * gnulib/import/stdbool.in.h: Likewise.
3437         * gnulib/import/streq.h: Likewise.
3438         * gnulib/import/strnlen1.c: Likewise.
3439         * gnulib/import/strnlen1.h: Likewise.
3440         * gnulib/import/verify.h: Likewise.
3441         * gnulib/import/wchar.in.h: Likewise.
3442         * gnulib/import/wctype.in.h: Likewise.
3443
3444 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3445
3446         Support shell wildcards for 'set auto-load safe-path'.
3447         * auto-load.c: Include fnmatch.h.
3448         (filename_is_in_dir): Rename to ...
3449         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3450         it.  Update function comment.  Rename dir_len to pattern_len.  New
3451         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3452         messages.  Use gdb_filename_fnmatch.
3453         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3454         pattern.
3455         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3456         * defs.h (gdb_filename_fnmatch): New declaration.
3457         * utils.c: Include fnmatch.h.
3458         (gdb_filename_fnmatch): New function.
3459
3460 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3461
3462         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3463         `-probe' and `-probe-stap' options.
3464
3465 2012-07-01  Yao Qi  <yao@codesourcery.com>
3466
3467         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3468         always_inserted_off, and always_inserted_enums.
3469         Change always_inserted_mode's type to 'enum auto_boolean'.
3470         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3471         callers.
3472         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3473         of add_setshow_enum_cmd.
3474         * infrun.c: Remove can_use_displaced_stepping_auto,
3475         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3476         can_use_displaced_stepping_enum.
3477         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3478         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3479         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3480         add_setshow_enum_cmd.
3481
3482 2012-06-30  Doug Evans  <dje@google.com>
3483
3484         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3485         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3486         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3487
3488 2012-06-29  Doug Evans  <dje@google.com>
3489
3490         * linespec.c: #include "stack.h".
3491         (decode_line_with_current_source): Moved here from symtab.c and
3492         renamed from decode_line_spec.  All callers updated.
3493         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3494         renamed from decode_line_spec_1.  All callers updated.
3495         * linespec.h (decode_line_with_current_source): Move declaration here
3496         from symtab.h and renamed from decode_line_spec.
3497         (decode_line_with_last_displayed): Move declaration here from symtab.h
3498         and renamed from decode_line_spec_1.
3499         * macrocmd.c: #include "linespec.h".
3500         * symtab.c: Remove #include "linespec.h".
3501
3502 2012-06-28  Doug Evans  <dje@google.com>
3503
3504         * dwarf2read.c (get_cu_length): New function.
3505         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3506         (create_debug_types_hash_table): Ditto.
3507         (init_cutu_and_read_dies): Ditto.
3508         (init_cutu_and_read_dies_no_follow): Ditto.
3509
3510         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3511
3512         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3513         (struct abbrev_table): Define.
3514         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3515         abbrev_table.
3516         (init_cutu_and_read_dies): Update.
3517         (abbrev_table_alloc_abbrev): New function.  Replaces
3518         dwarf_alloc_abbrev.  All callers updated.
3519         (abbrev_table_add_abbrev): New function.
3520         (abbrev_table_lookup_abbrev): New function.  Replaces
3521         dwarf2_lookup_abbrev.  All callers updated.
3522         (abbrev_table_read_table): New function.  Contents moved here from
3523         dwarf2_read_abbrevs.
3524         (dwarf2_read_abbrevs): Call it.
3525         (abbrev_table_free): New function.
3526         (dwarf2_free_abbrev_table): Call it.
3527
3528 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3529
3530         * osdata.c (info_osdata_command): Filter out "Title" columns
3531         from non-MI uses.
3532         * common/linux-osdata.c (struct osdata_type): Add title field.
3533         (osdata_table): Add titles to each entry.
3534         (linux_command_xfer_osdata): Add a column for title data.
3535
3536 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3537
3538         Make logging work for MI.
3539         * NEWS: Mention it.
3540         * interps.h (interp_set_logging_ftype): New typedef.
3541         (struct interp_procs): New field set_logging_proc.
3542         (current_interp_set_logging): Declare.
3543         * interps.c (current_interp_set_logging): New function.
3544         * cli/cli-logging.c: Include interps.h.
3545         (set_logging_redirect): Call current_interp_set_logging.
3546         (pop_output_files): Ditto.
3547         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3548         * mi/mi-console.h (mi_console_set_raw): Declare.
3549         * mi/mi-console.c (mi_console_set_raw): New function.
3550         * mi/mi-interp.c (saved_raw_stdout): New global.
3551         (mi_set_logging): New function.
3552         (_initialize_mi_interp): Add it to interp procs.
3553
3554 2012-06-28  Doug Evans  <dje@google.com>
3555
3556         * symtab.c (lookup_symbol_aux_objfile): Use
3557         ALL_OBJFILE_PRIMARY_SYMTABS.
3558
3559         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3560
3561 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3562
3563         * common/buffer.c: Include inttypes.h and stdint.h.
3564         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3565
3566 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3567             Pedro Alves  <palves@redhat.com>
3568
3569         * gdbthread.h (ALL_THREADS): New macro.
3570         (thread_list): Declare.
3571         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3572         going, but instead fall through to the stepping handling.
3573         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3574         the passed in signal.  Adjust debug output.
3575         (resume_callback): Rename to ...
3576         (linux_nat_resume_callback): ... this.  Pass the thread's last
3577         stop signal, if in "pass" state.
3578         (linux_nat_resume): Adjust to rename.
3579         (stop_wait_callback): New assertion.  Don't respawn signals;
3580         instead let the LWP remain with SIGNALLED set.
3581         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3582         * remote.c (append_pending_thread_resumptions): New.
3583         (remote_vcont_resume): Call it.
3584         * target.h (target_resume): Extend comment.
3585
3586 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3587
3588         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3589
3590 2012-06-27  Doug Evans  <dje@google.com>
3591
3592         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3593         Delete have_addr_base, unused.  All uses updated.
3594         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3595         (dwarf2_get_pc_bounds): Add ranges_base.
3596         (dwarf2_record_block_ranges): Ditto.
3597
3598 2012-06-27  Tom Tromey  <tromey@redhat.com>
3599
3600         PR macros/7961:
3601         * varobj.c (varobj_create): Update.
3602         (varobj_set_value): Update.
3603         * tracepoint.c (validate_actionline): Update.
3604         (encode_actions_1): Update.
3605         * parse.c (parse_exp_1): Add 'pc' argument.
3606         (parse_exp_in_context): Add 'pc' argument.  Change how
3607         expression_context_pc is set.
3608         (parse_expression): Update.
3609         (parse_field_expression): Update.
3610         * expression.h (parse_exp_1): Update.
3611         * eval.c (parse_to_comma_and_eval): Update.
3612         * breakpoint.c (set_breakpoint_condition): Update.
3613         (update_watchpoint): Update.
3614         (init_breakpoint_sal): Update
3615         (find_condition_and_thread): Update.
3616         (watch_command_1): Update.
3617         (update_breakpoint_locations): Update.
3618         * ada-lang.c (ada_read_renaming_var_value): Update.
3619         (create_excep_cond_exprs): Update.
3620
3621 2012-06-27  Doug Evans  <dje@google.com>
3622
3623         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3624         type units.
3625
3626 2012-06-26  Doug Evans  <dje@google.com>
3627
3628         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3629         prototype.
3630         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3631         updated.
3632         (read_and_check_comp_unit_head): Ditto.
3633         (read_and_check_type_unit_head): Ditto.
3634
3635 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3636
3637         New attribute 'last' for gdb.Symtab_and_line.
3638         * NEWS (Python Scripting): Add entry about the new attribute.
3639         * python/py-symtab.c (salpy_get_last): New function which
3640         implements the get method for the 'last' attribute of
3641         gdb.Symtab_and_line.
3642         (sal_object_getset): Add entry for the 'last' attribute.
3643
3644 2012-06-26  Doug Evans  <dje@google.com>
3645
3646         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3647         (dwo_sections): Add macinfo, macro.
3648         (dwarf2_locate_dwo_sections): Watch for macro sections.
3649         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3650         All callers updated.  Handle DWO files.
3651
3652         * NEWS: Mention new options "set debug dwarf2-read" and
3653         "set debug symtab-create".
3654         * dwarf2read.c (dwarf2_read_debug): New static global.
3655         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3656         (process_queue): Ditto.
3657         (process_full_comp_unit): Ditto.
3658         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3659         * elfread.c (elf_symfile_read): Add debugging printf.
3660         * minsyms.c (install_minimal_symbols): Ditto.
3661         * psymtab.c (allocate_psymtab): Ditto.
3662         * symfile.c (allocate_symtab): Ditto.
3663         * symtab.c (symtab_create_debug): New global.
3664         (_initialize_symtab): Add new option "set debug symtab-create".
3665         * symtab.h (symtab_create_debug): Declare.
3666
3667         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3668         (lookup_dwo_type_unit): Ditto.
3669
3670 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3671             H.J. Lu  <hongjiu.lu@intel.com>
3672
3673         * amd64-linux-nat.c: Include <sys/user.h>.
3674         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3675         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3676         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3677
3678         * configure.ac: Check if the fs_base and gs_base members of
3679         `struct user_regs_struct' exist.
3680         * config.in: Regenerated.
3681         * configure: Likewise.
3682
3683 2012-06-25  Michael Eager  <eager@eagercon.com>
3684
3685         PR python/14291
3686         * python/python.c (gdbpy_write): Check for interrupted output.
3687
3688 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3689
3690         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3691         register as a stack alignment in ARM mode.
3692
3693 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3694
3695         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3696         * gnulib/config.in: Regenerate.
3697         * gnulib/configure: Likewise.
3698         * gnulib/import/m4/extensions.m4: Update it.
3699         * gnulib/import/m4/gnulib-common.m4: Likewise.
3700         * gnulib/import/m4/memmem.m4: Likewise.
3701         * gnulib/import/m4/mmap-anon.m4: Likewise.
3702         * gnulib/import/m4/multiarch.m4: Likewise.
3703         * gnulib/import/stdint.in.h: Likewise.
3704
3705 2012-06-24  Yao Qi  <yao@codesourcery.com>
3706
3707         * corefile.c (write_memory_with_notification): New.
3708         * gdbcore.h: Declare write_memory_with_notification.
3709         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3710         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3711         * valops.c (value_assign): Likewise.
3712         * python/py-inferior.c (infpy_write_memory): Call
3713         'write_memory_with_notification'.
3714
3715 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3716
3717         * cc-with-index.sh: Use also -ex "set auto-load no".
3718
3719 2012-06-23  Doug Evans  <dje@google.com>
3720
3721         PR 14125
3722         * NEWS: Document additions to .gdb_index.
3723         * dwarf2read.c: #include "gdb/gdb-index.h".
3724         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3725         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3726         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3727         (dwarf2_read_index): Recognize version 7.
3728         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3729         block_kind, domain): All callers updated.
3730         (dw2_find_symbol_file): Handle new index CU values.
3731         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3732         (add_index_entry): New args is_static, kind.  All callers updated.
3733         (offset_type_compare, uniquify_cu_indices): New functions
3734         (symbol_kind): New function.
3735         (write_psymtabs_to_index): Remove duplicate CU values.
3736         (write_psymtabs_to_index): Write .gdb_index version 7.
3737
3738 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3739
3740         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3741         * configure: Regenerate.
3742
3743 2012-06-20  Yao Qi  <yao@codesourcery.com>
3744
3745         * python/py-inferior.c: Update comments of infpy_read_memory
3746         and infpy_write_memory.
3747
3748 2012-06-19  Tom Tromey  <tromey@redhat.com>
3749
3750         PR exp/9514:
3751         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3752         (push_type_address_space): Remove.
3753         * parse.c (insert_into_type_stack): New function.
3754         (insert_type): Likewise.
3755         (insert_type_address_space): Rename from push_type_address_space.
3756         Insert tp_space_identifier.
3757         * c-exp.y (ptr_operator): New production.
3758         (abs_decl): Use ptr_operator.
3759         (space_identifier): Call insert_type_address_space.
3760         (ptype): Don't use const_or_volatile_or_space_identifier.
3761         (const_or_volatile_noopt): Call insert_type.
3762         (conversion_type_id, conversion_declarator): New productions.
3763         (operator): Use conversion_type_id.
3764
3765 2012-06-18  Doug Evans  <dje@google.com>
3766
3767         * symtab.h (minimal_symbol): New member created_by_gdb.
3768         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3769         created by gdb.
3770         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3771         (search_symbols): Call it instead of lookup_symbol.
3772         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3773
3774         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3775         Adjust address for DW_OP_GNU_addr_index.
3776         * dwarf2expr.h (dwarf_expr_context): Update comment.
3777         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3778         all callers updated.  Handle TLS vars described with
3779         DW_OP_GNU_const_index.
3780         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3781         and DW_OP_GNU_const_index.
3782         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3783
3784         * block.c (find_block_in_blockvector): Make explicit the fact that we
3785         ignore GLOBAL_BLOCK.
3786
3787 2012-06-18  Tom Tromey  <tromey@redhat.com>
3788
3789         * c-exp.y (operator): Remove trailing space after "delete" and
3790         "delete[]".
3791
3792 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3793             Jan Kratochvil  <jan.kratochvil@redhat.com>
3794
3795         Switch i386 and derived targets to ON_STACK.
3796         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3797         (amd64_dicos_init_abi): Remove its installment.
3798         * dicos-tdep.c (dicos_init_abi): Remove the
3799         set_gdbarch_call_dummy_location call.  Update the comment here.
3800         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3801         (i386_dicos_init_abi): Remove its installment.
3802         * i386-tdep.c (i386_push_dummy_code): New function.
3803         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3804         i386_push_dummy_code.
3805
3806 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3807
3808         Remove stale dummy frames.
3809         * breakpoint.c: Include dummy-frame.h.
3810         (longjmp_breakpoint_ops): New variable.
3811         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3812         bp_longjmp_call_dummy.
3813         (bpstat_what, bptype_string, print_one_breakpoint_location)
3814         (init_bp_location): Support bp_longjmp_call_dummy.
3815         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3816         (set_longjmp_breakpoint_for_call_dummy)
3817         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3818         functions.
3819         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3820         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3821         FIXME comment and extend the other comment for bp_call_dummy.
3822         (set_longjmp_breakpoint_for_call_dummy)
3823         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3824         * dummy-frame.c: Include gdbthread.h.
3825         (pop_dummy_frame_bpt): New function.
3826         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3827         (dummy_frame_discard): New function.
3828         (cleanup_dummy_frames): Update the comment about longjmps.
3829         * dummy-frame.h (dummy_frame_discard): New declaration.
3830         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3831         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3832         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3833         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3834         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3835         keep_going if IS_LONGJMP and there is no other reason to stop.
3836
3837 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3838
3839         * remote-sim.c (sim_command_completer): Initialize
3840         variable 'result'.
3841
3842 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3843
3844         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3845         * dwarf2loc.c (call_site_parameter_matches): Support
3846         CALL_SITE_PARAMETER_PARAM_OFFSET.
3847         (needs_dwarf_reg_entry_value): Push stub value.
3848         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3849         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3850         * gdbtypes.h (enum call_site_parameter_kind): New item
3851         CALL_SITE_PARAMETER_PARAM_OFFSET.
3852         (struct call_site.parameter.u): New field param_offset.
3853
3854 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3855
3856         Code cleanup: Generalize call_site.parameter key.
3857         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3858         variable dwarf_reg.  New variable kind_u.  Update parameters to
3859         push_dwarf_reg_entry_value.
3860         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3861         * dwarf2expr.h (enum call_site_parameter_kind)
3862         (union call_site_parameter_u): Forward declarations.
3863         (struct dwarf_expr_context_funcs): Update parameters and their
3864         description for push_dwarf_reg_entry_value.
3865         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3866         * dwarf2loc.c (call_site_parameter_matches): New function.
3867         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3868         description.  Use call_site_parameter_matches.
3869         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3870         Update parameters and their description.
3871         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3872         New variable kind_u.  Adjust the caller for updated parameters.
3873         (needs_dwarf_reg_entry_value): Update parameters.
3874         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3875         instead of attr.  Update for the changed fields of struct
3876         call_site_parameter.
3877         * gdbtypes.h: Include dwarf2expr.h.
3878         (enum call_site_parameter_kind): New.
3879         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3880         fb_offset into new union u.
3881
3882 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3883
3884         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3885         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3886         for x32.
3887
3888 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3889
3890         * amd64-linux-nat.c (compat_x32_clock_t): New.
3891         (compat_x32_siginfo_t): Likewise.
3892         (compat_x32_siginfo_from_siginfo): Likewise.
3893         (siginfo_from_compat_x32_siginfo): Likewise.
3894         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3895         and siginfo_from_compat_x32_siginfo for x32.
3896
3897 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3898
3899         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3900
3901 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3902
3903         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3904         instead of gdbarch_ptr_bit.
3905         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3906         (amd64_supply_native_gregset): Likewise.
3907         (amd64_collect_native_gregset): Likewise.
3908         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3909         (amd64_supply_xsave): Likewise.
3910         (amd64_collect_fxsave): Likewise.
3911         (amd64_collect_xsave): Likewise.
3912
3913 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3914
3915         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3916         (amd64_linux_read_description): Check DS segment register for
3917         x32 process.
3918
3919 2012-06-15  Tom Tromey  <tromey@redhat.com>
3920
3921         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3922         init_cutu_and_read_dies.
3923
3924 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3925
3926         * MAINTAINERS (Write After Approval): Add myself to the list.
3927
3928 2012-06-15  Tom Tromey  <tromey@redhat.com>
3929
3930         * valops.c (value_find_oload_method_list): Now static.
3931         * value.h (value_find_oload_method_list): Don't declare.
3932
3933 2012-06-15  Tom Tromey  <tromey@redhat.com>
3934
3935         * valops.c (find_overload_match): Use value_ind.
3936
3937 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
3938
3939         * infrun.c (handle_inferior_event): Correct indentation.
3940
3941 2012-06-14  Doug Evans  <dje@google.com>
3942
3943         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3944         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3945         All uses updated.
3946         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
3947         updated.  Handle DEBUG_LOC_START_LENGTH.
3948         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3949         (loclist_describe_location): Ditto.
3950
3951 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
3952
3953         PR backtrace/13866
3954         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3955         after hiding inline functions.
3956
3957 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3958
3959         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3960         _initialize_inf_ttrace.
3961
3962 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3963
3964         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3965         _initialize_hppa_hpux_nat.
3966
3967 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3968
3969         * remote-sim.c (sim_command_completer): Change type of return
3970         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
3971
3972 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3973             Jan Kratochvil  <jan.kratochvil@redhat.com>
3974
3975         PR tdep/14222
3976         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3977         stack on a 16-byte boundary.
3978
3979 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
3980
3981         * jit.c (finalize_symtab): Set function's return type to 'void' by
3982         default.
3983
3984 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3985             H.J. Lu  <hongjiu.lu@intel.com>
3986
3987         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3988         Move bits common to both the classic LP64 and the new x32 ILP32
3989         ABI here.
3990         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3991         (amd64_x32_linux_init_abi): New function.
3992         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3993         subtype.
3994
3995         * i386-tdep.h (i386_pseudo_register_name): New prototype.
3996         * i386-tdep.c (i386_pseudo_register_name): Make public.
3997         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3998         * amd64-tdep.c (amd64_dword_names): Add "eip".
3999         (amd64_x32_pseudo_register_type): New function
4000         (amd64_x32_init_abi): New function.
4001
4002 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4003
4004         PR build/14003
4005         * inferior.h (struct inferior_suspend_state): Comment out.
4006         (struct inferior): Comment out the field suspend.
4007         * infrun.c (struct infcall_suspend_state): Comment out the field
4008         inferior_suspend.
4009         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4010         out its assignment.
4011
4012 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4013
4014         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4015         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4016         function comment.  Return ERROR for unresolved cases.  Implement
4017         returning proper NAME.
4018         (yylex): Accept also NAME from classify_inner_name.
4019         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4020         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4021         LOC_TYPEDEF type.
4022         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4023
4024 2012-06-13  Tom Tromey  <tromey@redhat.com>
4025
4026         * breakpoint.c (condition_completer): New function.
4027         (_initialize_breakpoint): Use it.
4028         * value.c (complete_internalvar): New function.
4029         * value.h (complete_internalvar): Declare.
4030
4031 2012-06-13  Tom Tromey  <tromey@redhat.com>
4032
4033         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4034         * breakpoint.c (catch_syscall_completer): Return a VEC.
4035         * cli/cli-cmds.c (complete_command): Update.
4036         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4037         (complete_on_enum): Likewise.
4038         * command.h: Include gdb_vecs.h.
4039         (completer_ftype): Change return type.
4040         (complete_on_cmdlist, complete_on_enum): Likewise.
4041         * completer.c (noop_completer, filename_completer)
4042         (location_completer): Return a VEC.
4043         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4044         to a VEC.
4045         (expression_completer, complete_line_internal, complete_line)
4046         (command_completer): Return a VEC.
4047         (gdb_completion_word_break_characters, line_completion_function):
4048         Update.
4049         * completer.h: Include gdb_vecs.h.
4050         (complete_line, noop_completer, filename_completer)
4051         (expression_completer, location_completer, command_completer):
4052         Update.
4053         * f-lang.c (f_word_break_characters): Return a VEC.
4054         * interps.c (interpreter_completer): Return a VEC.
4055         * language.h (struct language_defn)
4056         <la_make_symbol_completion_list>: Return a VEC.
4057         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4058         * symtab.c (free_completion_list): Take a VEC.
4059         (return_val_size, return_val_index): Remove.
4060         (return_val): Now a VEC.
4061         (completion_list_add_name): Update.
4062         (default_make_symbol_completion_list_break_on)
4063         (default_make_symbol_completion_list, make_symbol_completion_list)
4064         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4065         Return a VEC.
4066         (add_filename_to_list): Update.
4067         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4068         <list>: Now a VEC.
4069         (maybe_add_partial_symtab_filename): Update.
4070         (make_source_files_completion_list): Return a VEC.
4071         * symtab.h (default_make_symbol_completion_list_break_on)
4072         (default_make_symbol_completion_list, make_symbol_completion_list)
4073         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4074         (make_source_files_completion_list): Update.
4075
4076 2012-06-13  Tom Tromey  <tromey@redhat.com>
4077
4078         * breakpoint.c (add_catch_command): Use completer_ftype.
4079         * breakpoint.h: Include command.h.
4080         (add_catch_command): Use completer_ftype.
4081         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4082         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4083         Use completer_ftype.
4084         * command.h (completer_ftype): New typedef.
4085         (set_cmd_completer): Use it.
4086         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4087         completer_ftype.
4088
4089 2012-06-13  Pedro Alves  <palves@redhat.com>
4090
4091         Partial revert of previous change.
4092
4093         * serial.c (scb_base): New global.
4094         (serial_for_fd): New.
4095         (serial_open, serial_fdopen_ops): Link new serial in open serials
4096         chain.
4097         (do_serial_close): Unlink serial from the open serials chain.
4098
4099 2012-06-12  Pedro Alves  <palves@redhat.com>
4100
4101         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4102         threads here.
4103         (prepare_for_detach): No longer context switch here in non-stop
4104         mode.
4105         (fetch_inferior_event): Ditto.
4106         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4107         to the event thread before removing breakpoints.  Switch to the
4108         event thread before inserting breakpoints and resuming.
4109         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4110         event thread before resuming.
4111         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4112         Switch to the event thread before removing breakpoints.
4113
4114 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4115
4116         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4117         special characters correctly for the Windows shells.  See
4118         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4119         report.
4120         [!__MINGW32__]: Remove extra double quote character from special
4121         characters.
4122
4123 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4124
4125         * ui-out.h: Remove #if 0 declarations.
4126         * ui-out.c: Remove #if 0 functions.
4127
4128 2012-06-11  Pedro Alves  <palves@redhat.com>
4129
4130         * ser-base.c (run_async_handler_and_reschedule): New.
4131         (fd_event, push_event): Use it.
4132         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4133         reference count to 1.
4134         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4135         instead of xfree.
4136         (serial_is_open, serial_ref, serial_unref): New.
4137         * serial.h (serial_open): Adjust comment.
4138         (serial_is_open): Declare.
4139         (serial_close): Adjust comment.
4140         (serial_ref, serial_unref) Declare.
4141         (struct serial): New field 'refcnt'.
4142
4143 2012-06-11  Pedro Alves  <palves@redhat.com>
4144
4145         Remove #if 0'd "connect" command, and unnecessary associated
4146         refcounting and serial reuse bits.
4147
4148         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4149         * serial.c (last_serial_opened): Delete.
4150         (scb_base): Delete.
4151         (serial_open): Adjust.
4152         (serial_for_fd): Delete.
4153         (serial_fdopen_ops, do_serial_close): Adjust.
4154         (serial_fdopen_ops): Adjust.
4155
4156 2012-06-11  Pedro Alves  <palves@redhat.com>
4157
4158         * serial.c (do_serial_close): Remove early return when SCB is
4159         null.
4160
4161 2012-06-11  Tom Tromey  <tromey@redhat.com>
4162
4163         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4164
4165 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4166
4167         Fix regression by the "ambiguous linespec" series.
4168         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4169         get_last_displayed_symtab and get_last_displayed_line and depending
4170         on CURSAL.
4171
4172 2012-06-11  Tom Tromey  <tromey@redhat.com>
4173
4174         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4175         (dw2_find_symbol_file): Use it.
4176
4177 2012-06-11  Michael Eager  <eager@eagercon.com>
4178
4179         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4180         * mips-linux-tdep.h (mips_signals): New
4181
4182 2012-06-11  Tom Tromey  <tromey@redhat.com>
4183
4184         * infrun.c (handle_inferior_event)
4185         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4186         breakpoint.
4187         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4188         exception logic in all cases.  Update comments.
4189         (insert_longjmp_resume_breakpoint): Set the exception resume
4190         breakpoint.
4191
4192 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4193
4194         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4195
4196 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4197
4198         * valarith.c (binop_types_user_defined_p): Fix a typo.
4199
4200 2012-06-08  Yao Qi  <yao@codesourcery.com>
4201             Chung-Lin Tang <cltang@codesourcery.com>
4202
4203         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4204         * arch-utils.h: Declare.
4205         * gdbarch.sh: Add return_in_first_hidden_param_p.
4206         * gdbarch.c, gdbarch.h: Regenerated.
4207         * infcall.c (call_function_by_hand): Call
4208         gdbarch_return_in_first_hidden_param_p instead of
4209         language_pass_by_reference.
4210
4211         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4212         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4213         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4214         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4215         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4216         `cplus_return_struct_by_reference'.
4217         (tic6x_return_value): Handle language cplusplus.
4218         (tic6x_return_in_first_hidden_param_p): New.
4219         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4220
4221 2012-06-07  Doug Evans  <dje@google.com>
4222
4223         * dwarf2read.c (dwarf2_cu): Add comment.
4224
4225 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4226
4227         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4228         variable.
4229         (mips_eabi_push_dummy_call): Likewise.
4230         (mips_n32n64_push_dummy_call): Likewise.
4231         (mips_o32_push_dummy_call): Likewise.
4232         (mips_o64_push_dummy_call): Likewise.
4233
4234 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4235
4236         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4237
4238 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4239
4240         * mips-tdep.c (mips_pseudo_register_type): Use
4241         mips_float_register_p.
4242
4243 2012-06-06  Pedro Alves  <palves@redhat.com>
4244
4245         * infrun.c (handle_inferior_event): Remove calls to
4246         reinit_frame_cache that follow a context_switch call.
4247
4248 2012-06-06  Pedro Alves  <palves@redhat.com>
4249
4250         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4251         context_switch and remove stale comment.
4252
4253 2012-06-06  Pedro Alves  <palves@redhat.com>
4254
4255         * infrun.c (struct execution_control_state): Remove
4256         `new_thread_event' field.
4257         (handle_inferior_event): Simplify new threads handling; don't
4258         resume the inferior if we find a new thread.
4259
4260 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4261
4262         * NEWS: Document the deprecation of SH's 'regs' command.
4263         * inferior.h (all_registers_info): Add function declaration.
4264         * sh-tdep.c (sh_show_regs): Remove variable.
4265         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4266         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4267         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4268         (sh_show_regs_command): Remove functions.
4269         (sh_gdbarch_init): Don't set sh_show_regs.
4270         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4271         'info all-registers'.
4272         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4273         (sh64_show_regs): Remove functions.
4274         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4275
4276 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4277
4278         * configure.ac: Move development=true below AC_INIT.
4279         * configure: Regenerate.
4280
4281 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4282
4283         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4284         gdb_stdout.
4285
4286 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4287
4288         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4289         argument as ssize_t.
4290         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4291         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4292         * target.c (target_read_stack, target_write_memory)
4293         (target_write_raw_memory): Likewise.
4294         * target.h (target_read_stack, target_write_memory)
4295         (target_write_raw_memory): Likewise.
4296
4297 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4298
4299         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4300         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4301         * target.c (target_read_memory): Change LEN to ssize_t.
4302         * target.h (target_read_memory): Change LEN to ssize_t.
4303
4304 2012-06-05  Pedro Alves  <palves@redhat.com>
4305
4306         PR backtrace/13866
4307
4308         * breakpoint.c (until_break_command): Only fetch the selected
4309         frame after decode_line_1.
4310
4311 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4312
4313         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4314         event breakpoint at _start, __start or main if a program
4315         interpreter is not found.
4316
4317 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4318
4319         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4320         Add declaration.
4321         * windows-tdep.c: #include "objfiles.h".
4322         (windows_iterate_over_objfiles_in_search_order): New function.
4323         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4324         iterate_over_objfiles_in_search_order gdbarch method to
4325         windows_iterate_over_objfiles_in_search_order.
4326         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4327
4328 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4329
4330         * gdbarch.sh: Add generation of
4331         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4332         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4333         (iterate_over_objfiles_in_search_order): New gdbarch method.
4334         * gdbarch.h, gdbarch.c: Regenerate.
4335         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4336         Add declaration.
4337         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4338         New function.
4339         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4340         out of lookup_symbol_aux_symtabs.
4341         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4342         call to lookup_symbol_aux_objfile.
4343         (struct global_sym_lookup_data): New type.
4344         (lookup_symbol_global_iterator_cb): New function.
4345         (lookup_symbol_global): Search for symbol using
4346         gdbarch_iterate_over_objfiles_in_search_order and
4347         lookup_symbol_global_iterator_cb.
4348         * findvar.c (struct minsym_lookup_data): New type.
4349         (minsym_lookup_iterator_cb): New function.
4350         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4351         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4352         and minsym_lookup_iterator_cb.
4353
4354 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4355
4356         Revert the following patch:
4357         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4358         try locating the symbol in the symbol's own objfile first, before
4359         extending the search to all objfiles.
4360         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4361         out of lookup_symbol_aux_symtabs.
4362         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4363         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4364         Do not search EXCLUDE_OBJFILE.
4365         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4366         (lookup_symbol_global): Search for matches in the block's objfile
4367         first, before searching all other objfiles.
4368
4369 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4370
4371         * breakpoint.c (find_condition_and_thread): Stop parsing
4372         as soon as the first invalid keyword is found.
4373
4374 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4375
4376         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4377
4378 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4379
4380         * config/djgpp/djcheck.sh: Add copyright header.
4381
4382 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4383
4384         * copyright.py (update_files, main): Fix path to update-copyright
4385         script.
4386
4387 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4388
4389         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4390         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4391         for which a reminder to update by hand is printed.
4392
4393 2012-06-04  Doug Evans  <dje@google.com>
4394
4395         * buildsym.c (make_blockvector): Add comment.
4396
4397 2012-06-04  Pedro Alves  <palves@redhat.com>
4398
4399         * arch-utils.c (default_gdb_signal_from_target): Delete.
4400         * arch-utils.h (default_gdb_signal_from_target): Delete.
4401         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4402         gdbarch_gdb_signal_from_target_p.
4403         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4404         predicate).
4405         * gdbarch.h: Regenerate.
4406         * gdbarch.c: Regenerate.
4407
4408 2012-06-04  Pedro Alves  <palves@redhat.com>
4409
4410         * gdbarch.sh (gdb_signal_from_target): Mention that the
4411         implementation of the method must be host independent.
4412         * gdbarch.h: Regenerate.
4413
4414 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4415
4416         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4417         parameters.
4418         (target_read_memory_bfd): New function.
4419         (symbol_file_add_from_memory): Use it.
4420
4421 2012-06-03  Doug Evans  <dje@google.com>
4422
4423         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4424         of primary symtab.
4425         (basic_lookup_transparent_type): Ditto.
4426
4427         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4428         (ALL_PRIMARY_SYMTABS): Use it.
4429         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4430         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4431         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4432         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4433         (basic_lookup_transparent_type): Ditto.
4434
4435 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4436
4437         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4438         it to optimize resolution of demangled name.
4439
4440 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4441
4442         * configure.ac (development): Define new variable.
4443         Call AC_CHECK_LIB for mcheck if $development.
4444         (ERROR_ON_WARNING): Enable it by default only if $development.
4445         * config.in: Regenerate.
4446         * configure: Regenerate.
4447
4448 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4449
4450         * target.c (target_read_memory): Make LEN argument as size_t.
4451         * target.h (target_read_memory): Likewise.
4452
4453 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4454
4455         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4456
4457 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4458
4459         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4460         BookE interface for PowerPC server processors if not available
4461         in the Linux Kernel.
4462
4463 2012-05-31  Keith Seitz  <keiths@redhat.com>
4464
4465         * linespec.c (decode_objc): Add cleanup to free
4466         INFO.FILE_SYMTABS.
4467         (find_linespec_symbols): Add cleanup to free CLASSES.
4468         * symfile.c (find_separate_debug_file_by_debuglink): Add
4469         cleanup to free DEBUGLINK.
4470         * ui-out.c (clear_header_list): No need to check if
4471         HEADER_NEXT.COLHDR is NULL.
4472         Free HEADER_NEXT.COL_NAME.
4473
4474 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4475
4476         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4477         warning.
4478
4479 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4480
4481         * configure.host (gdb_host_cpu): Handle tilegx*.
4482         (gdb_host): Handle tilegx-*-linux*.
4483         * tilegx-linux-nat.c: New file.
4484         * config/tilegx/linux.mh: New file.
4485
4486 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4487
4488         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4489         tilegx-linux-tdep.o.
4490         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4491         tilegx-linux-tdep.c.
4492         * configure.tgt: Handle tilegx-*-linux*.
4493         * tilegx-tdep.h: New file.
4494         * tilegx-tdep.c: New file.
4495         * tilegx-linux-tdep.c: New file.
4496         * regformats/reg-tilegx.dat: New file.
4497
4498 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4499
4500         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4501         accounting of hw watchpoints on ppc.
4502
4503 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4504
4505         * source.c (openp): Expand tilde in path entries.
4506
4507 2012-05-29  Doug Evans  <dje@google.com>
4508
4509         * buildsym.c (block_compar): Fix comment.
4510         (end_symtab): Fix and clarify some comments.
4511
4512         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4513         cleanup_undefined_types.
4514         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4515         All callers updated.
4516
4517 2012-05-29  Tom Tromey  <tromey@redhat.com>
4518
4519         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4520         fails.
4521         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4522         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4523         fails.
4524         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4525         fails.
4526
4527 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4528
4529         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4530         (struct darwin_info): ... New struct.
4531         (solib_darwin_pspace_data): New variable.
4532         (darwin_pspace_data_cleanup): New function.
4533         (get_darwin_info): Likewise.
4534         (darwin_dyld_version_ok, darwin_load_image_infos)
4535         (darwin_solib_get_all_image_info_addr_at_init)
4536         (darwin_solib_read_all_image_info_addr): Add info argument.
4537         Adjust code.
4538         (darwin_current_sos): Use per pspace structure.
4539         (darwin_solib_create_inferior_hook): Likewise.
4540         (darwin_clear_solib): Likewise.
4541         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4542
4543 2012-05-28  Pedro Alves  <palves@redhat.com>
4544
4545         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4546         block that uses them.  Clear ecss before handling each event.
4547
4548 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4549
4550         * solib-svr4.c (svr4_current_sos): New comment on
4551         svr4_current_sos_via_xfer_libraries fall back.
4552
4553 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4554
4555         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4556         it as a fallback for TYPE_IS_OPAQUE.
4557         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4558         symbols for lookup_symbol.
4559
4560 2012-05-24  John Steele Scott  <toojays@toojays.net>
4561
4562         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4563         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4564         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4565         (check_producer): ... this new function, which also checks for ICC
4566         and caches the result.
4567         (producer_is_icc): New function.
4568         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4569         producer was ICC.
4570
4571 2012-05-24  Pedro Alves  <palves@redhat.com>
4572
4573         PR gdb/7205
4574
4575         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4576         (default_gdb_signal_to_target): ... this.  Add comment.
4577         (default_gdb_signal_from_host): Rename to ...
4578         (default_gdb_signal_from_target): ... this.  Add comment.
4579         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4580         (default_gdb_signal_to_target): ... this.
4581         (default_gdb_signal_from_host): Rename to ...
4582         (default_gdb_signal_from_target): ... this.
4583         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4584         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4585         (gdb_signal_from_target): ... this.  Adjust to
4586         default_gdb_signal_from_host naming change.  Extend comment.
4587         (gdb_signal_to_host): Rename to ...
4588         (gdb_signal_to_target): ... this.  Adjust to
4589         default_gdb_signal_to_host naming change.
4590         * gdbarch.h, gdbarch.c: Renegerate.
4591
4592 2012-05-24  Pedro Alves  <palves@redhat.com>
4593
4594         PR gdb/7205
4595
4596         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4597
4598 2012-05-24  Pedro Alves  <palves@redhat.com>
4599
4600         PR gdb/7205
4601
4602         Replace target_signal with gdb_signal throughout.
4603
4604 2012-05-24  Pedro Alves  <palves@redhat.com>
4605
4606         PR tui/14159
4607
4608         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4609         string, instead of reusing the va_list argument.
4610
4611 2012-05-24  Tom Tromey  <tromey@redhat.com>
4612
4613         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4614         Remove.
4615
4616 2012-05-23  Doug Evans  <dje@google.com>
4617
4618         * symtab.c (search_symbols): Formatting fixes.
4619         (print_symbol_info): Formatting fixes.
4620
4621         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4622         int64_t change to leb128 API.
4623         (read_encoded_value, decode_frame_entry_1): Ditto.
4624         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4625         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4626         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4627         (execute_stack_op): Ditto.
4628         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4629         (safe_read_uleb128, safe_read_sleb128): Ditto.
4630         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4631         (dwarf2_compile_expr_to_ax): Ditto.
4632         (locexpr_describe_location_piece): Ditto.
4633         (disassemble_dwarf_expression): Ditto.
4634         (locexpr_describe_location_1): Ditto.
4635
4636 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4637             Kwok Cheung Yeung  <kcy@codesourcery.com>
4638
4639         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4640         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4641         (mi-cmd-info.o): New rule.
4642         * osdata.h (info_osdata_command): New declaration.
4643         * osdata.c (info_osdata_command): Change to non-static.
4644         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4645         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4646         * mi/mi-cmd-info.c: New file.
4647
4648 2012-05-23  Doug Evans  <dje@google.com>
4649
4650         * symtab.c (search_symbols): Pass NULL for file_matcher to
4651         expand_symtabs_matching if there are no files to match.
4652
4653         * gdbtypes.c (lookup_typename): Simplify.
4654
4655 2012-05-23  Pedro Alves  <palves@redhat.com>
4656
4657         * arch-utils.h (default_target_signal_to_host): Delete.
4658         * arch-utils.c (default_target_signal_to_host): Delete.
4659         * gdbarch.sh (target_signal_to_host): Remove.
4660         * gdbarch.h, gdbarch.c: Regenerate.
4661
4662 2012-05-22  Doug Evans  <dje@google.com>
4663
4664         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4665         "const gdb_byte *".
4666         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4667         (execute_cfa_program): Update to match API of leb128 functions.
4668         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4669         "const gdb_byte *".
4670         (read_unsigned_leb128, read_signed_leb128): Delete.
4671         (read_initial_length): Change type of buf argument to
4672         "const gdb_byte *".
4673         (read_encoded_value): Update to match API of leb128 functions.
4674         (decode_frame_entry): Change result to "const gdb_byte *", and
4675         similarly for "start" parameter.
4676         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4677         (dwarf2_build_frame_info): Change local frame_ptr to
4678         "const gdb_byte *".
4679         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4680         read_uleb128, read_sleb128.  All callers updated.
4681         (safe_skip_leb128): New function.
4682         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4683         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4684         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4685         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4686         read_uleb128, read_sleb128.
4687         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4688         (execute_stack_op): Update to match API of leb128 functions.
4689         * dwarf2expr.h: #include "leb128.h".
4690         (read_uleb128, read_sleb128): Delete.
4691         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4692         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4693         * dwarf2loc.c (debug_loc_kind): New enum.
4694         (decode_debug_loc_addresses): New function.
4695         (decode_debug_loc_dwo_addresses): New function.
4696         (dwarf2_find_location_expression): Rewrite.
4697         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4698         (locexpr_describe_location_piece): Ditto.
4699         (disassemble_dwarf_expression): Ditto.
4700         (locexpr_describe_location_1): Ditto.
4701         (loclist_describe_location): Rewrite.
4702         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4703         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4704         (dwarf2_section_buffer_overflow_complaint): Renamed from
4705         dwarf2_macros_too_long_complaint.  All callers updated.
4706         (skip_leb128): Delete.
4707         (init_cu_die_reader): Initialize reader->buffer_end.
4708         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4709         (skip_form_bytes): New arg buffer_end.  All callers updated.
4710         Replace call to skip_leb128 with gdb_skip_leb128.
4711         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4712         (fill_in_loclist_baton): Initialize baton->from_dwo.
4713
4714 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4715
4716         * mips-linux-nat.c (mips_linux_read_description): Use a more
4717         verbose error message.
4718
4719 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4720
4721         * NEWS: Add MIPS/Linux DSP support.
4722         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4723         (SIGCONTEXT_DSPCTL): New macro.
4724         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4725         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4726         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4727         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4728         (N64_SIGCONTEXT_HI3): Likewise.
4729         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4730         (N64_SIGCONTEXT_LO3): Likewise.
4731         (N64_SIGCONTEXT_DSPCTL): Likewise.
4732         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4733         (mips_linux_o32_sigframe_init): Handle DSP registers.
4734         (mips_linux_n32n64_sigframe_init): Likewise.
4735
4736 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4737
4738         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4739         call to abort.
4740
4741 2012-05-22  Pedro Alves  <palves@redhat.com>
4742
4743         * target.h (store_waitstatus): Move declaration ...
4744         * inf-child.h (store_waitstatus): ... here.
4745         * target.c: Move inclusion of gdb_wait.h, and ...
4746         (store_waitstatus): ... this ...
4747         * inf-child.c: ... here.
4748         * linux-nat.c: Include inf-child.h.
4749         * rs6000-nat.c: Include inf-child.h.
4750         * spu-linux-nat.c: Include inf-child.h.
4751
4752 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4753
4754         * tracepoint.c (start_tracing): Add missing i18n markup.
4755         (stop_tracing, set_trace_user): Ditto.
4756         (set_trace_notes, set_trace_stop_notes): Ditto.
4757
4758 2012-05-21  Tom Tromey  <tromey@redhat.com>
4759
4760         PR c++/7173:
4761         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4762         types.
4763         * value.h (value_cast_pointers): Update.
4764         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4765         (value_cast): Update.
4766         (update_search_result): New function.
4767         (do_search_struct_field): New, from search_struct_field.  Check
4768         for ambiguous results.
4769         (search_struct_field): Rewrite.
4770         * infcall.c (value_arg_coerce): Update.
4771         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4772         value_cast_pointers.
4773         * ada-lang.c (ada_convert_actual): Update.
4774
4775 2012-05-21  Tom Tromey  <tromey@redhat.com>
4776
4777         * macroexp.c (macro_stringify): Terminate the string.
4778
4779 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4780
4781         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4782         Describe it.
4783         * auto-load.c (auto_load_expand_dir_vars): New function.
4784         (auto_load_safe_path_vec_update): Use it, remove the
4785         substitute_path_component call thanks to it.
4786         (auto_load_objfile_script): Remove the debug_file_directory processing.
4787         Use auto_load_expand_dir_vars, remove the substitute_path_component
4788         call thanks to it.
4789         * configure: Regenerate.
4790         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4791         path.  Escape $ also for $debugdir.
4792         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4793         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4794
4795 2012-05-20  Doug Evans  <dje@google.com>
4796
4797         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4798         before use.  Check for symtab->includes == NULL before scanning it.
4799
4800 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4801
4802         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4803
4804 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4805
4806         * NEWS: Add microMIPS support and "set mips compression",
4807         "show mips compression" commands.
4808         * mips-tdep.h (mips_isa): New enum.
4809         (gdbarch_tdep): Add mips_isa.
4810         (mips_pc_is_mips16): Update prototype.
4811         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4812         * mips-tdep.c (mips_compression_mips16): New variable.
4813         (mips_compression_micromips): Likewise.
4814         (mips_compression_strings): Likewise.
4815         (mips_compression_string): Likewise.
4816         (is_mips16_isa, is_micromips_isa): New functions.
4817         (is_mips16_addr): Rename to...
4818         (is_compact_addr): ... this.
4819         (unmake_mips16_addr): Likewise to...
4820         (unmake_compact_addr): ... this.
4821         (make_mips16_addr): Likewise to...
4822         (make_compact_addr): ... this.
4823         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4824         functions.
4825         (mips_elf_make_msymbol_special): Handle microMIPS code.
4826         (msymbol_is_special): Rename to...
4827         (msymbol_is_mips16): ... this.
4828         (mips_make_symbol_special, mips_pc_is_mips16): Update
4829         accordingly.
4830         (msymbol_is_mips, msymbol_is_micromips): New functions.
4831         (mips16_to_32_reg): Rename to...
4832         (mips_reg3_to_reg): ... this.
4833         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4834         (mips_pc_isa): Likewise.
4835         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4836         code.
4837         (mips_fetch_instruction): Pass return status instead of printing
4838         an error message if requested.  Handle microMIPS code.  Bail out
4839         on an invalid ISA.
4840         (micromips_op): New macro.
4841         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4842         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4843         (b6s4_op, b7s3_reg): Likewise.
4844         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4845         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4846         (mips_insn_size): New function.
4847         (mips32_next_pc): Update mips_fetch_instruction call.
4848         (micromips_relative_offset7): New function.
4849         (micromips_relative_offset10): Likewise.
4850         (micromips_relative_offset16): Likewise.
4851         (micromips_pc_insn_size): Likewise.
4852         (micromips_bc1_pc): Likewise.
4853         (micromips_next_pc): Likewise.
4854         (unpack_mips16): Update mips_fetch_instruction call.
4855         (extended_mips16_next_pc): Update according to change to
4856         mips16_to_32_reg.
4857         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4858         code.
4859         (mips16_scan_prologue): Update mips_fetch_instruction call.
4860         Update according to change to mips16_to_32_reg.
4861         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4862         (mips_insn16_frame_base_sniffer): Likewise.
4863         (micromips_decode_imm9): New function.
4864         (micromips_scan_prologue): Likewise.
4865         (mips_micro_frame_cache): Likewise.
4866         (mips_micro_frame_this_id): Likewise.
4867         (mips_micro_frame_prev_register): Likewise.
4868         (mips_micro_frame_sniffer): Likewise.
4869         (mips_micro_frame_unwind): New variable.
4870         (mips_micro_frame_base_address): New function.
4871         (mips_micro_frame_base): New variable.
4872         (mips_micro_frame_base_sniffer): New function.
4873         (mips32_scan_prologue): Update mips_fetch_instruction call.
4874         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4875         rather than for MIPS16.
4876         (mips_insn32_frame_base_sniffer): Likewise.
4877         (mips_addr_bits_remove): Handle microMIPS code.
4878         (deal_with_atomic_sequence): Rename to...
4879         (mips_deal_with_atomic_sequence): ... this.  Update the type
4880         of the variable used to hold an instruction.  Remove the ISA bit
4881         check.  Update mips_fetch_instruction call.
4882         (micromips_deal_with_atomic_sequence): New function.
4883         (deal_with_atomic_sequence): Likewise.
4884         (mips_about_to_return): Handle microMIPS code.  Update
4885         mips_fetch_instruction call.
4886         (heuristic_proc_start): Check for the standard MIPS ISA rather
4887         than for MIPS16.  Update mips_pc_is_mips16 and
4888         mips_fetch_instruction calls.  Handle microMIPS code.
4889         (mips_push_dummy_code): Handle microMIPS code.
4890         (mips_eabi_push_dummy_call): Likewise.
4891         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4892         (mips_o64_push_dummy_call): Handle microMIPS code.
4893         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4894         (is_delayed): Remove function.
4895         (mips_single_step_through_delay): Replace the call to is_delayed
4896         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4897         Handle microMIPS code.
4898         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4899         microMIPS code.
4900         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4901         call.
4902         (micromips_in_function_epilogue_p): New function.
4903         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4904         call.
4905         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4906         Handle microMIPS.
4907         (gdb_print_insn_mips): Likewise.
4908         (mips_breakpoint_from_pc): Likewise.
4909         (mips_remote_breakpoint_from_pc): New function.
4910         (mips32_instruction_has_delay_slot): Simplify making use of the
4911         updated mips_fetch_instruction interface.
4912         (micromips_instruction_has_delay_slot): New function.
4913         (mips16_instruction_has_delay_slot): Simplify making use of the
4914         updated mips_fetch_instruction interface.
4915         (mips_adjust_breakpoint_address): Check for the standard MIPS
4916         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4917         calls.  Handle microMIPS code.
4918         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4919         (mips_skip_trampoline_code): Handle microMIPS code.
4920         (global_mips_compression): New function.
4921         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4922         file flags.  Register the microMIPS remote breakpoint handler
4923         and heuristic frame unwinder.
4924         (show_mips_compression): New function.
4925         (_initialize_mips_tdep): Add the "set mips compression" and
4926         "show mips compression" commands.
4927
4928 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4929
4930         * ada-lang.c:
4931         * ada-tasks.c:
4932         * ada-varobj.c:
4933         * amd64-darwin-tdep.c:
4934         * arm-symbian-tdep.c:
4935         * arm-tdep.c:
4936         * avr-tdep.c:
4937         * ax-gdb.c:
4938         * bfin-linux-tdep.c:
4939         * breakpoint.c:
4940         * c-valprint.c:
4941         * cli/cli-cmds.c:
4942         * coffread.c:
4943         * cp-support.c:
4944         * cris-tdep.c:
4945         * dwarf2-frame-tailcall.c:
4946         * dwarf2-frame.c:
4947         * dwarf2expr.c:
4948         * dwarf2loc.c:
4949         * dwarf2read.c:
4950         * elfread.c:
4951         * eval.c:
4952         * expprint.c:
4953         * f-valprint.c:
4954         * frv-tdep.c:
4955         * h8300-tdep.c:
4956         * hppa-hpux-tdep.c:
4957         * hppa-tdep.c:
4958         * hppanbsd-tdep.c:
4959         * i386-nto-tdep.c:
4960         * i386-tdep.c:
4961         * i387-tdep.c:
4962         * ia64-tdep.c:
4963         * jit.c:
4964         * linespec.c:
4965         * linux-tdep.c:
4966         * lm32-tdep.c:
4967         * m2-valprint.c:
4968         * m32c-tdep.c:
4969         * m32r-rom.c:
4970         * m32r-tdep.c:
4971         * m68k-tdep.c:
4972         * m68klinux-tdep.c:
4973         * mi/mi-main.c:
4974         * microblaze-tdep.c:
4975         * mips-linux-tdep.c:
4976         * mips-tdep.c:
4977         * mn10300-tdep.c:
4978         * p-valprint.c:
4979         * parse.c:
4980         * ppc-linux-tdep.c:
4981         * ppc-sysv-tdep.c:
4982         * printcmd.c:
4983         * python/py-finishbreakpoint.c:
4984         * python/py-inferior.c:
4985         * python/py-infthread.c:
4986         * python/py-type.c:
4987         * python/python.c:
4988         * remote-fileio.c:
4989         * remote-m32r-sdi.c:
4990         * remote-mips.c:
4991         * reverse.c:
4992         * rl78-tdep.c:
4993         * rs6000-aix-tdep.c:
4994         * rs6000-tdep.c:
4995         * s390-tdep.c:
4996         * score-tdep.c:
4997         * sh64-tdep.c:
4998         * skip.c:
4999         * solib-darwin.c:
5000         * solib-dsbt.c:
5001         * solib-frv.c:
5002         * sparc-tdep.c:
5003         * spu-multiarch.c:
5004         * spu-tdep.c:
5005         * stack.c:
5006         * symfile.c:
5007         * symtab.c:
5008         * tic6x-tdep.c:
5009         * tracepoint.c:
5010         * v850-tdep.c:
5011         * valarith.c:
5012         * valprint.c:
5013         * value.c:
5014         * xcoffread.c:
5015         * xtensa-tdep.c:
5016         * ada-lang.c:
5017         * ada-tasks.c:
5018         * ada-varobj.c:
5019         * amd64-darwin-tdep.c:
5020         * arm-symbian-tdep.c:
5021         * arm-tdep.c: Delete unused variables.
5022
5023 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5024
5025         Rename $ddir to $datadir.
5026         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5027         * auto-load.c (auto_load_safe_path_vec_update)
5028         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5029         * configure: Regenerate.
5030         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5031         Likewise.  Remove the 'use $ddir' help string.
5032
5033 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5034
5035         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5036         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5037
5038 2012-05-18  Tom Tromey  <tromey@redhat.com>
5039
5040         PR exp/13907:
5041         * valprint.h (struct value_print_options) <symbol_print>: New
5042         field.
5043         * valprint.c (user_print_options): Add default for symbol_print.
5044         (show_symbol_print): New function.
5045         (generic_val_print): Respect symbol_print.
5046         (_initialize_valprint): Add "print symbol" setting.
5047         * f-valprint.c (f_val_print): Respect symbol_print.
5048         * c-valprint.c (c_val_print): Respect symbol_print.
5049         * NEWS: Update.
5050         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5051         zero-size symbols.
5052         (print_address_demangle): Return int.
5053         * defs.h: (print_address_symbolic): Return int.
5054         * value.h (print_address_demangle): Return int.
5055
5056 2012-05-18  Tom Tromey  <tromey@redhat.com>
5057
5058         * valprint.c (val_print_string): Don't print leading space.
5059         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5060         print space before string or vtbl.
5061         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5062         before string.
5063         * jv-valprint.c (java_value_print): Print space before string.
5064         * go-valprint.c (print_go_string): Print space before string.
5065         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5066         space before string.
5067         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5068         space before string or vtbl.
5069         * auxv.c (fprint_target_auxv): Print space after address.
5070
5071 2012-05-18  Tom Tromey  <tromey@redhat.com>
5072
5073         * printcmd.c (print_address_demangle): Remove special case for 0.
5074
5075 2012-05-18  Tom Tromey  <tromey@redhat.com>
5076
5077         * printcmd.c (print_address_demangle): Add 'opts' argument.
5078         * p-valprint.c (pascal_val_print): Update.
5079         * jv-valprint.c (java_val_print): Update.
5080         * value.h: Update.
5081         * valprint.c (generic_val_print): Update.
5082         (print_function_pointer_address): Add 'options' argument.  Remove
5083         'addressprint' argument.  Update.
5084         * m2-valprint.c (print_unpacked_pointer): Update.
5085         * gnu-v3-abi.c (print_one_vtable): Update.
5086         (gnuv3_print_method_ptr): Update.
5087         * f-valprint.c (f_val_print): Update.
5088         * cp-valprint.c (cp_print_value_fields): Update.
5089         * valprint.h (print_function_pointer_address): Update.
5090         * c-valprint.c (c_val_print): Update.
5091
5092 2012-05-18  Tom Tromey  <tromey@redhat.com>
5093
5094         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5095         directly corresponding to the found psymtab.
5096         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5097         (dw2_find_pc_sect_symtab): Use it.
5098         * block.h (blockvector_contains_pc): Declare.
5099         * block.c (find_block_in_blockvector): New function.
5100         (blockvector_for_pc_sect): Use it.
5101         (blockvector_contains_pc): New function.
5102
5103 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5104
5105         * mips-tdep.h (mips_write_pc): New prototype.
5106         * mips-tdep.c (mips_write_pc): Make external, add description.
5107         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5108         add description.
5109
5110 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5111
5112         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5113         mips_regnum->pc.
5114         (mips_unwind_pc, mips_write_pc): Likewise.
5115         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5116         gdbarch_read_pc.
5117
5118 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5119
5120         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5121         proc_warn, proc_error, proc_get_status, proc_flags,
5122         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5123         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5124         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5125         proc_stop_process, proc_wait_for_stop, proc_run_process,
5126         proc_set_traced_signals, proc_set_traced_faults,
5127         proc_set_traced_sysentry, proc_set_traced_sysexit,
5128         proc_set_held_signals, proc_get_held_signals,
5129         proc_get_traced_signals, proc_get_traced_faults,
5130         proc_get_traced_sysentry, proc_get_traced_sysexit,
5131         proc_clear_current_fault, proc_set_current_signal,
5132         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5133         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5134         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5135         proc_get_current_thread, proc_get_current_thread,
5136         proc_get_current_thread, proc_update_threads,
5137         proc_update_threads, proc_update_threads, proc_update_threads,
5138         proc_iterate_over_threads, procfs_find_new_threads,
5139         procfs_pid_to_str): Make static.  Remove advance declaration.
5140         (proc_cursig): Make static.  Conditionalized defintion on
5141         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5142         (proc_syscall, proc_set_kill_on_last_close,
5143         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5144         proc_get_pending_signals, proc_get_signal_actions,
5145         proc_trace_signal, proc_ignore_signal): Delete.
5146
5147 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5148
5149         * coffread.c (cs_section_address): Passing proper argument for
5150         `bfd_get_section_vma'.
5151         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5152         `bfd_get_section_flags'.
5153         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5154         `bfd_get_section_vma'.
5155
5156 2012-05-16  Tom Tromey  <tromey@redhat.com>
5157
5158         PR macros/13205:
5159         * macrotab.h: (macro_define_special): Declare.
5160         (enum macro_special_kind): New.
5161         (struct macro_definition) <argc, replacement>: Update comments.
5162         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5163         (macro_define_object_internal): New function.
5164         (macro_define_object): Use it.
5165         (macro_define_special): New function.
5166         (fixup_definition): New function.
5167         (macro_lookup_definition, foreach_macro_in_scope)
5168         (foreach_macro): Use fixup_definition.
5169         * macroexp.h (macro_stringify): Declare.
5170         * macroexp.c (free_buffer_return_text): New function.
5171         (stringify): Constify "arg".
5172         (macro_stringify): New function.
5173         * dwarf2read.c (macro_start_file): Call macro_define_special.
5174
5175 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5176             Maciej W. Rozycki  <macro@mips.com>
5177
5178         * breakpoint.h (bp_location): Add related_address member.
5179         * inferior.h (get_return_value): Take a pointer to struct value
5180         instead of struct type for the function requested.
5181         * value.h (using_struct_return): Likewise.
5182         * gdbarch.sh (return_value): Take a pointer to struct value
5183         instead of struct type for the function requested.
5184         * breakpoint.c (set_breakpoint_location_function): Initialize
5185         related_address for bp_gnu_ifunc_resolver breakpoints.
5186         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5187         requested function's address to gdbarch_return_value.
5188         * eval.c (evaluate_subexp_standard): Pass the requested
5189         function's address to using_struct_return.
5190         * infcall.c (call_function_by_hand): Pass the requested
5191         function's address to using_struct_return and
5192         gdbarch_return_value.
5193         * infcmd.c (get_return_value): Take a pointer to struct value
5194         instead of struct type for the function requested.
5195         (print_return_value): Update accordingly.
5196         (finish_command_continuation): Likewise.
5197         * stack.c (return_command): Pass the requested function's
5198         address to using_struct_return and gdbarch_return_value.
5199         * value.c (using_struct_return): Take a pointer to struct value
5200         instead of struct type for the function requested.  Pass the
5201         requested function's address to gdbarch_return_value.
5202         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5203         New function_value member, replacing function_type.
5204         (bpfinishpy_dealloc): Update accordingly.
5205         (bpfinishpy_pre_stop_hook): Likewise.
5206         (bpfinishpy_init): Likewise.  Record the requested function's
5207         address.
5208         * mips-tdep.c (mips_fval_reg): New enum.
5209         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5210         words put in GP registers.
5211         (mips_o64_push_dummy_call): Update a comment.
5212         (mips_o32_return_value): Take a pointer to struct value instead
5213         of struct type for the function requested and use it to check if
5214         using the MIPS16 calling convention.  Return the designated
5215         general purpose registers for floating-point values returned in
5216         MIPS16 mode.
5217         (mips_o64_return_value): Likewise.
5218         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5219         (ppc_sysv_abi_broken_return_value): Likewise.
5220         (ppc64_sysv_abi_return_value): Likewise.
5221         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5222         value instead of struct type for the function requested.
5223         * amd64-tdep.c (amd64_return_value): Likewise.
5224         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5225         * arm-tdep.c (arm_return_value): Likewise.
5226         * avr-tdep.c (avr_return_value): Likewise.
5227         * bfin-tdep.c (bfin_return_value): Likewise.
5228         * cris-tdep.c (cris_return_value): Likewise.
5229         * frv-tdep.c (frv_return_value): Likewise.
5230         * h8300-tdep.c (h8300_return_value): Likewise.
5231         (h8300h_return_value): Likewise.
5232         * hppa-tdep.c (hppa32_return_value): Likewise.
5233         (hppa64_return_value): Likewise.
5234         * i386-tdep.c (i386_return_value): Likewise.
5235         * ia64-tdep.c (ia64_return_value): Likewise.
5236         * iq2000-tdep.c (iq2000_return_value): Likewise.
5237         * lm32-tdep.c (lm32_return_value): Likewise.
5238         * m32c-tdep.c (m32c_return_value): Likewise.
5239         * m32r-tdep.c (m32r_return_value): Likewise.
5240         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5241         * m68k-tdep.c (m68k_return_value): Likewise.
5242         (m68k_svr4_return_value): Likewise.
5243         * m88k-tdep.c (m88k_return_value): Likewise.
5244         * mep-tdep.c (mep_return_value): Likewise.
5245         * microblaze-tdep.c (microblaze_return_value): Likewise.
5246         * mn10300-tdep.c (mn10300_return_value): Likewise.
5247         * moxie-tdep.c (moxie_return_value): Likewise.
5248         * mt-tdep.c (mt_return_value): Likewise.
5249         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5250         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5251         (ppc_sysv_abi_broken_return_value): Likewise.
5252         (ppc64_sysv_abi_return_value): Likewise.
5253         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5254         * rl78-tdep.c (rl78_return_value): Likewise.
5255         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5256         * rx-tdep.c (rx_return_value): Likewise.
5257         * s390-tdep.c (s390_return_value): Likewise.
5258         * score-tdep.c (score_return_value): Likewise.
5259         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5260         (sh_return_value_fpu): Likewise.
5261         * sh64-tdep.c (sh64_return_value): Likewise.
5262         * sparc-tdep.c (sparc32_return_value): Likewise.
5263         * sparc64-tdep.c (sparc64_return_value): Likewise.
5264         * spu-tdep.c (spu_return_value): Likewise.
5265         * tic6x-tdep.c (tic6x_return_value): Likewise.
5266         * v850-tdep.c (v850_return_value): Likewise.
5267         * vax-tdep.c (vax_return_value): Likewise.
5268         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5269         * xtensa-tdep.c (xtensa_return_value): Likewise.
5270         * gdbarch.c: Regenerate.
5271         * gdbarch.h: Regenerate.
5272
5273 2012-05-15  Tom Tromey  <tromey@redhat.com>
5274
5275         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5276
5277 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5278
5279         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5280         of command in two error message.
5281
5282 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5283
5284         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5285
5286 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5287
5288         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5289
5290 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5291
5292         * NEWS (show auto-load scripts-directory): Add forgotten command.
5293
5294 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5295
5296         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5297         parameters.
5298
5299 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5300
5301         * amd64-tdep.c: Include features/i386/x32.c and
5302         features/i386/x32-avx.c.
5303         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5304         initialize_tdesc_x32_avx.
5305
5306 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5307
5308         Add dynamic printf.
5309         * breakpoint.h (enum bptype): New type bp_dprintf.
5310         (struct breakpoint): New field extra_string.
5311         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5312         (create_breakpoint): Add extra_string arg.
5313         * breakpoint.c (dprintf_breakpoint_ops): New.
5314         (is_breakpoint): Add bp_dprintf.
5315         (bpstat_what): Add dprintf case.
5316         (bptype_string): Ditto.
5317         (print_one_breakpoint_location): Ditto.
5318         (init_bp_location): Ditto.
5319         (bkpt_print_mention): Ditto.
5320         (dprintf_style_enums): New array.
5321         (dprintf_style): New global.
5322         (dprintf_function): New global.
5323         (dprintf_channel): New global.
5324         (update_dprintf_command_list): New function.
5325         (update_dprintf_commands): New function.
5326         (init_breakpoint_sal): Add extra_string argument, handle it.
5327         (create_breakpoint_sal): Add extra_string argument.
5328         (create_breakpoints_sal): Add extra_string argument, update callers.
5329         (find_condition_and_thread): Add extra argument.
5330         (create_breakpoint): Add extra_string argument, record it.
5331         (dprintf_command): New function.
5332         (break_command_1): Add arg to create_breakpoint call.
5333         (handle_gnu_v3_exceptions): Ditto.
5334         (trace_command): Ditto.
5335         (ftrace_command): Ditto.
5336         (strace_command): Ditto.
5337         (bkpt_print_mention): Add dprintf case.
5338         (create_breakpoint_sal_default): Add extra_string argument.
5339         (_initialize_breakpoint): Add new commands.
5340         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5341         * python/py-breakpoint.c (bppy_init): Ditto.
5342         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5343
5344 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5345
5346         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5347
5348 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5349
5350         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5351         unsigned long long.
5352
5353 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5354
5355         Add a new function gdb.find_pc_line to the Python API.
5356         * NEWS (Python Scripting): Add entry about the new function.
5357         * python/python.c (gdbpy_find_pc_line): New function which
5358         implements gdb.find_pc_line.
5359         (GdbMethods): Add entry for the new function.
5360
5361 2012-05-12  Pedro Alves  <palves@redhat.com>
5362
5363         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5364         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5365
5366 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5367
5368         * inferior.c: Include completer.h
5369         (initialize_inferiors): Set completer of add-inferior to
5370         filename_completer.
5371
5372 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5373
5374         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5375         gdbarch_ptr_bit for x32 core dump.
5376
5377 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5378
5379         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5380         and features/i386/x32-avx-linux.c.
5381
5382 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5383             Kwok Cheung Yeung  <kcy@codesourcery.com>
5384
5385         * NEWS: Describe new info os commands.
5386         * common/linux-osdata.c (PID_T, TIME_T): Define.
5387         (MAX_PID_T_STRLEN): New.
5388         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5389         MAX_PID_T_STRLEN.
5390         (command_from_pid): Add comment.  Change to use PID_T.
5391         (commandline_from_pid):  Change to use PID_T.
5392         (user_from_pid): Add comment.
5393         (get_process_owner): Add comment. Change to use PID_T and
5394         MAX_PID_T_STRLEN.
5395         (get_number_of_cpu_cores): Add comment.
5396         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5397         MAX_PID_T_STRLEN.
5398         (linux_xfer_osdata_processes): Change to use PID_T and
5399         MAX_PID_T_STRLEN.
5400         (compare_processes): New function.
5401         (linux_xfer_osdata_processgroups): New function.
5402         (linux_xfer_osdata_threads): Change to use PID_T.
5403         (linux_xfer_osdata_fds): New function.
5404         (format_socket_state, print_sockets): New functions.
5405         (union socket_addr): New union.
5406         (linux_xfer_osdata_isockets): New function.
5407         (time_from_time_t, group_from_gid): New functions.
5408         (linux_xfer_osdata_shm): New function.
5409         (linux_xfer_osdata_sem): New function.
5410         (linux_xfer_osdata_msg): New function.
5411         (linux_xfer_osdata_modules): New function.
5412         (osdata_table): Add new entries.
5413         * common/buffer.c (buffer_xml_printf): Add support for long and
5414         long long format specifiers.
5415
5416 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5417
5418         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5419         (tdesc_x32_avx_linux): Likewise.
5420
5421 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5422
5423         Implement multi-component --with-auto-load-dir.
5424         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5425         entries.
5426         (--with-auto-load-safe-path): Update the default value description.
5427         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5428         New.
5429         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5430         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5431         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5432         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5433         "set auto-load scripts-directory".
5434         * config.in: Regenerate.
5435         * configure: Regenerate.
5436         * configure.ac (--with-auto-load-dir): New configure option.
5437         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5438
5439 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5440
5441         Provide $ddir substitution for --with-auto-load-safe-path.
5442         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5443         entries.
5444         * auto-load.c: Include observer.h.
5445         (auto_load_safe_path_vec_update): Call substitute_path_component for
5446         each component.  New variable ddir_subst.
5447         (auto_load_gdb_datadir_changed): New function.
5448         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5449         AUTO_LOAD_SAFE_PATH.  New comment.
5450         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5451         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5452         * config.in: Regenerate.
5453         * configure: Regenerate.
5454         * configure.ac (--auto-load-safe-path): Rename
5455         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5456         GDB_DATADIR/auto-load.
5457         * defs.h (substitute_path_component): New declaration.
5458         * top.c: Include observer.h.
5459         (set_gdb_datadir): New function.
5460         (init_main): Install it for "set data-directory".
5461         * utils.c (substitute_path_component): New function.
5462
5463 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5464
5465         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5466         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5467         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5468         DEBUG_FILE_DIRECTORY.
5469
5470 2012-05-10  Tom Tromey  <tromey@redhat.com>
5471
5472         * dwarf2read.c (recursively_write_psymbols): New function.
5473         (write_psymtabs_to_index): Use it.
5474
5475         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5476         field.
5477         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5478         (load_partial_comp_unit): Update.
5479         (queue_comp_unit): Add argument 'pretend_language'.
5480         (process_queue): Update.
5481         (psymtab_to_symtab_1): Skip dependencies that have a user.
5482         (load_partial_comp_unit_reader): Give meaning to the 'data'
5483         argument.
5484         (load_full_comp_unit): Add 'pretend_language' argument.
5485         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5486         language on CU.
5487         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5488         Update.
5489         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5490         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5491         Update.
5492         (prepare_one_comp_unit): Add 'pretend_language' argument.
5493
5494         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5495         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5496         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5497         (dw2_do_instantiate_symtab): Check whether symtab was read in
5498         before queueing.
5499         (dw2_instantiate_symtab): Add assertion.  Call
5500         process_cu_includes.
5501         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5502         (partial_symtab_p): New typedef.
5503         (set_partial_user): New function.
5504         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5505         (scan_partial_symbols): Add imported CU to imported_symtabs.
5506         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5507         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5508         (get_symtab, recursively_compute_inclusions)
5509         (compute_symtab_includes, process_cu_includes)
5510         (process_imported_unit_die): New functions.
5511         (process_die) <DW_TAG_imported_unit>: New case.
5512         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5513
5514         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5515         comment.
5516         (struct partial_die_info) <locdesc>: Remove.
5517         <d>: New field.
5518         (process_psymtab_comp_unit): Add 'read_partial' argument.
5519         Update.
5520         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5521         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5522         (add_partial_symbol): Update.
5523         (process_die): Handle DW_TAG_partial_unit.
5524         (read_file_scope): Update comment.
5525         (load_partial_dies): Handle DW_TAG_imported_unit.
5526         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5527         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5528
5529 2012-05-10  Tom Tromey  <tromey@redhat.com>
5530
5531         * cc-with-dwz.sh: New file.
5532
5533 2012-05-10  Tom Tromey  <tromey@redhat.com>
5534
5535         * symtab.h (struct symtab) <includes, user>: New fields.
5536         * block.h (struct block_iterator) <d, idx, which>: New fields.
5537         * block.c (initialize_block_iterator, find_iterator_symtab)
5538         (block_iterator_step, block_iter_name_step)
5539         (block_iter_match_step): New functions.
5540         (block_iterator_first, block_iterator_next)
5541         (block_iter_name_first, block_iter_name_next)
5542         (block_iter_match_first, block_iter_match_next): Rewrite.
5543         (get_block_symtab): New function.
5544
5545 2012-05-10  Tom Tromey  <tromey@redhat.com>
5546
5547         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5548         set_block_symtab.
5549         * jit.c (finalize_symtab): Use allocate_global_block,
5550         set_block_symtab.
5551         * buildsym.c (finish_block_internal): New function, from old
5552         finish_block.
5553         (finish_block): Rewrite.
5554         (end_symtab): Use finish_block_internal, set_block_symtab.
5555         * block.h (struct global_block): New.
5556         (allocate_global_block, set_block_symtab): Declare.
5557         * block.c (allocate_global_block, set_block_symtab): New
5558         functions.
5559
5560 2012-05-10  Tom Tromey  <tromey@redhat.com>
5561
5562         * psymtab.c (partial_map_expand_apply): Add assertion.
5563         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5564         (psymtab_to_symtab): Find unshared psymtab.
5565         (dump_psymtab): Print including psymtabs.
5566         (recursively_search_psymtabs): New function.
5567         (expand_symtabs_matching_via_partial): Use it.
5568         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5569         fields.
5570         (enum psymtab_search_status): New.
5571
5572 2012-05-10  Tom Tromey  <tromey@redhat.com>
5573
5574         * tracepoint.c (scope_info): Update.
5575         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5576         (find_pc_sect_symtab, search_symbols)
5577         (default_make_symbol_completion_list_break_on)
5578         (make_file_symbol_completion_list): Update.
5579         * symmisc.c (dump_symtab_1): Update.
5580         * stack.c (print_frame_args, iterate_over_block_locals)
5581         (print_frame_labels, iterate_over_block_arg_vars): Update.
5582         * python/py-block.c (block_object) <dict>: Remove.
5583         <block>: New field.
5584         <iter>: Change type.
5585         (blpy_iter): Update.
5586         (blpy_block_syms_iternext): Update.
5587         * psymtab.c (map_block): Use block iterators.
5588         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5589         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5590         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5591         * infrun.c (check_exception_resume): Update.
5592         * cp-support.c (make_symbol_overload_list_block): Update.
5593         * coffread.c (patch_opaque_types): Update.
5594         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5595         * block.h (struct block_iterator): New.
5596         (block_iterator_first, block_iterator_next, block_iter_name_first)
5597         (block_iter_name_next, block_iter_match_first)
5598         (block_iter_match_next): Declare.
5599         (ALL_BLOCK_SYMBOLS): Redefine.
5600         * block.c (block_iterator_first, block_iterator_next)
5601         (block_iter_name_first, block_iter_name_next)
5602         (block_iter_match_first, block_iter_match_next): New functions.
5603         * ada-lang.c (ada_add_block_symbols)
5604         (ada_make_symbol_completion_list): Use block iterator.
5605
5606 2012-05-10  Tom Tromey  <tromey@redhat.com>
5607
5608         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5609         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5610         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5611         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5612         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5613         Update.
5614
5615 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5616
5617         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5618         print-file-var-lib2.c, print-file-var-main.c and
5619         print-file-var.exp (located in gdb/testsuite/gdb.base).
5620
5621 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5622
5623         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5624         try locating the symbol in the symbol's own objfile first, before
5625         extending the search to all objfiles.
5626         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5627         out of lookup_symbol_aux_symtabs.
5628         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5629         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5630         Do not search EXCLUDE_OBJFILE.
5631         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5632         (lookup_symbol_global): Search for matches in the block's objfile
5633         first, before searching all other objfiles.
5634
5635 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5636
5637         * printcmd.c (set_command): Add pre/post inc/dec.
5638
5639 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5640
5641         * gdb.1: Document -ex option.
5642
5643 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5644
5645         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5646         * inferior.h (AT_SYMBOL): Delete.
5647
5648 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5649
5650         * mips-tdep.c (mips_push_dummy_code): New function.
5651         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5652         ON_STACK and install mips_push_dummy_code as our gdbarch
5653         push_dummy_code routine.
5654
5655 2012-05-09  Pedro Alves  <palves@redhat.com>
5656
5657         * target.c (set_maintenance_target_async_permitted): Rename to ...
5658         (set_target_async_command): ... this.
5659         (show_maintenance_target_async_permitted): Rename to ...
5660         (show_target_async_command): ... this.
5661         (initialize_targets): Adjust.
5662
5663 2012-05-08  Doug Evans  <dje@google.com>
5664
5665         * go-exp.y (classify_name): Add missing assignment of fields of
5666         yylval.ssym.
5667
5668 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5669
5670         Display the ">" prompt in interactive mode while reading canned
5671         commands, even when the current interpreter is MI.
5672
5673         * interps.c (interp_set_temp): New function.
5674
5675         * interps.h (interp_set_temp): Add prototype.
5676
5677         * cli/cli-script.c (restore_interp): New cleanup function.
5678         (read_command_lines): Temporarily override the current interpreter
5679         with CLI and arrange for restoring the original one.
5680
5681 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5682
5683         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5684
5685 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5686
5687         * probe.c (parse_probes): Move conditional to check for
5688         debuginfo files from here...
5689         * stap-probe.c (stap_get_probes): ... to here.
5690
5691 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5692             H.J. Lu  <hongjiu.lu@intel.com>
5693
5694         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5695         `movl %esp, %ebp' for the X32 ABI.
5696
5697 2012-05-07  Tom Tromey  <tromey@redhat.com>
5698
5699         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5700         get_DW_TAG_name.
5701         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5702         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5703         (dwarf_stack_op_name): Remove.
5704         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5705         (decode_locdesc): Use get_DW_OP_name.
5706         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5707         (dwarf2_compile_expr_to_ax): Likewise.
5708         (disassemble_dwarf_expression): Likewise.
5709         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5710
5711 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5712
5713         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5714         (sh_linux_sigtramp_cache): New function.
5715         (sh_linux_sigreturn_init): New function.
5716         (sh_linux_rt_sigreturn_init): New function.
5717         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5718         patterns.
5719         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5720         syscall codes.
5721         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5722         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5723         (sh_linux_init_abi): Add init calls to register new tramp_frame
5724         definitions under 32-bit SH, update comments.
5725
5726 2012-05-07  Pedro Alves  <palves@redhat.com>
5727
5728         PR gdb/10952
5729
5730         * amd64-linux-tdep.c: Include glibc-tdep.h.
5731         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5732         gdbarch_skip_solib_resolver callback.
5733
5734 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5735
5736         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5737         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5738         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5739         (add_auto_load_safe_path): Change the error message.
5740         (_initialize_auto_load): Change the "safe-path" help text.
5741         * configure: Regenerate
5742         * configure.ac (--without-auto-load-safe-path): Set
5743         WITH_AUTO_LOAD_SAFE_PATH to /.
5744
5745 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5746
5747         * stap-probe.h: Do not include unecessary `probe.h'.
5748
5749 2012-05-05  Alan Modra  <amodra@gmail.com>
5750
5751         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5752         bfd_und_section_ptr.
5753         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5754         and bfd_com_section_ptr.
5755
5756 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5757
5758         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5759
5760 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5761
5762         * windows-nat.h (segment_register_p_ftype): New typedef.
5763         (windows_set_segment_register_p): Add declaration.
5764         * windows-nat.c (segment_register_p): New static global.
5765         (windows_set_segment_register_p): New function.
5766         (do_windows_fetch_inferior_registers): Add special handling
5767         for segment registers.
5768         * amd64-windows-nat.c: #include "amd64-tdep.h".
5769         (amd64_windows_segment_register_p): New function.
5770         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5771         * i386-windows-nat.c: #include "i386-tdep.h".
5772         (i386_windows_segment_register_p): New function.
5773         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5774
5775 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5776
5777         * printcmd.c (set_command): Emit a warning if the expression is not
5778         an assignment.
5779
5780 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5781
5782         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5783         Make static.
5784
5785 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5786
5787         * stap-probe.c (stap_is_operator): Change declaration.
5788         (stap_get_opcode): Change return value.
5789         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5790         `stap_parse_argument_1'.
5791
5792 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5793
5794         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5795         debug log.
5796
5797 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5798
5799         Add two new methods global_block and static_block to gdb.Symtab
5800         objects.
5801         * NEWS (Python scripting): Add entry about the new methods.
5802         * python/py-symtab.c (stpy_global_block): New function which
5803         implements the gdb.Symtab.global_block() method.
5804         (stpy_static_block): New function which implements the
5805         gdb.Symtab.static_block() method.
5806         (symtab_object_methods): Add entries for the two new methods.
5807
5808 2012-05-03  Doug Evans  <dje@google.com>
5809
5810         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5811         files.
5812
5813 2012-05-03  Yao Qi  <yao@codesourcery.com>
5814
5815         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5816         space.
5817         (i386_process_record): Ditto.
5818
5819 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5820
5821         * infcall.c (unwind_on_signal_p): Make static.
5822
5823 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5824
5825         * sol-thread.c (solaris_pid_to_str): Make static.
5826         (_initialize_sol_thread): Add prototype.
5827
5828 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5829
5830         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5831
5832 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5833
5834         * MAINTAINERS: Remove myself.
5835
5836 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5837
5838         Fix --without-auto-load-safe-path for MS-Windows host platform.
5839         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5840
5841 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5842
5843         * gdb_curses.h: Undefine KEY_EVENT before including curses
5844         headers.  Move "#undef MOUSE_MOVED" before any curses header
5845         inclusion.
5846
5847 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5848
5849         * features/i386/i386-mmx-linux.c: Regenerate.
5850         * features/rs6000/powerpc-32.c: Likewise.
5851         * features/rs6000/powerpc-32l.c: Likewise.
5852         * features/rs6000/powerpc-403.c: Likewise.
5853         * features/rs6000/powerpc-403gc.c: Likewise.
5854         * features/rs6000/powerpc-405.c: Likewise.
5855         * features/rs6000/powerpc-505.c: Likewise.
5856         * features/rs6000/powerpc-601.c: Likewise.
5857         * features/rs6000/powerpc-602.c: Likewise.
5858         * features/rs6000/powerpc-603.c: Likewise.
5859         * features/rs6000/powerpc-604.c: Likewise.
5860         * features/rs6000/powerpc-64.c: Likewise.
5861         * features/rs6000/powerpc-64l.c: Likewise.
5862         * features/rs6000/powerpc-750.c: Likewise.
5863         * features/rs6000/powerpc-860.c: Likewise.
5864         * features/rs6000/powerpc-e500.c: Likewise.
5865         * features/rs6000/powerpc-e500l.c: Likewise.
5866         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5867         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5868         * features/rs6000/rs6000.c: Likewise.
5869
5870 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5871
5872         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5873         variable.
5874         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5875         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5876         (stap_parse_argument) <e>: Likewise.
5877         (handle_stap_probe) <byte_order>: Likewise.
5878
5879 2012-04-30  Doug Evans  <dje@google.com>
5880
5881         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5882         init_and_read_dies_worker.  All callers updated.
5883         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5884         replaced with init_cutu_and_read_dies.
5885         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5886         (find_partial_die): Remove FIXME.  Don't free current CU.
5887
5888 2012-04-30  Sterling Augustine  <saugustine@google.com>
5889
5890         * contrib: New directory.
5891         * contrib/test_pubnames_and_indexes.py: New file.
5892
5893 2012-04-30  Doug Evans  <dje@google.com>
5894
5895         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5896         All callers updated.
5897         (init_cu_die_reader): Verify the section is non-empty.
5898         (dwarf_decode_line_header): Don't dereference section->asection
5899         until we know the section is present.
5900
5901 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5902
5903         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5904         probes.
5905
5906 2012-04-29  Yao Qi  <yao@codesourcery.com>
5907
5908         * gdb-code-style.el: New hook gdb-markup-hook
5909         and gdb-comment-hook.
5910
5911 2012-04-28  Doug Evans  <dje@google.com>
5912
5913         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5914         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5915         objfile->obfd.
5916         * symfile.h (dwarf2_debug_sections): New member addr.
5917         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5918         (ctx_no_get_addr_index): New function.
5919         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5920         (ctx_no_get_addr_index): Declare.
5921         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5922         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5923         (dwarf_expr_ctx_funcs): Update.
5924         (needs_get_addr_index): New function.
5925         (needs_frame_ctx_funcs): Update.
5926         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5927         * dwarf2read.c: #include "gdbcore.h".
5928         (dwarf2_per_objfile): New members addr, dwo_files.
5929         (dwarf2_elf_names): Add entry for addr.
5930         (struct dwo_section_names): New type.
5931         (dwo_section_names): New static global.
5932         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5933         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5934         old debug_types_section member updated to use this.
5935         Rename member debug_types_section to info_or_types_section,
5936         all uses updated.
5937         (signatured_type): Rename member type_offset to type_offset_in_tu,
5938         all uses updated.  New member type_offset_in_section.
5939         (struct dwo_sections): New type.
5940         (struct dwo_unit): New type.
5941         (struct dwo_file): New type.
5942         (die_reader_specs): New member dwo_file.
5943         (dwarf2_locate_sections): Watch for .debug_addr.
5944         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5945         (dwarf2_read_section): Get bfd of section from bfd's asection,
5946         instead of objfile.
5947         (create_cus_from_index): Initialize the_cu->info_or_types_section.
5948         (create_signatured_type_table_from_index): Initialize
5949         sig_type->info_or_types_section.
5950         (dw2_get_file_names): Statement lists for type units with DWO files
5951         live in the DWO file.
5952         (create_debug_types_hash_table): New function.
5953         (create_all_type_units): Rewrite.
5954         (init_cu_die_reader): New arg dwo_file, all callers updated.
5955         (init_and_read_dies_worker): Get section from
5956         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
5957         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5958         continue reading the CU/TU from there.
5959         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5960         updated.  Get section from this_cu->info_or_types_section.
5961         (create_all_comp_units): Initialize this_cu->info_or_types_section.
5962         (skip_one_die): New cases DW_FORM_GNU_addr_index,
5963         DW_FORM_GNU_str_index.
5964         (hash_dwo_file, eq_dwo_file): New functions.
5965         (allocate_dwo_file_hash_table): New function.
5966         (hash_dwo_unit, eq_dwo_unit): New functions.
5967         (allocate_dwo_unit_table): New function.
5968         (dwarf2_locate_dwo_sections): New function.
5969         (struct create_dwo_info_table_data): New type.
5970         (create_debug_info_hash_table_reader): New function.
5971         (create_debug_info_hash_table): New function.
5972         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5973         (lookup_dwo_file): New function.
5974         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5975         (free_dwo_file, free_dwo_file_cleanup): New functions.
5976         (free_dwo_file_from_slot, free_dwo_files): New functions.
5977         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5978         (dwarf2_record_block_ranges): Ditto.
5979         (read_partial_die): Ditto.
5980         (process_enumeration_scope): Update to use type_offset_in_section.
5981         (read_full_die_1): New function.
5982         (read_full_die): Rewrite.
5983         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5984         DW_FORM_GNU_str_index.
5985         (read_addr_index_1, read_addr_index): New functions.
5986         (read_addr_index_from_leb128): New function.
5987         (struct dwarf2_read_addr_index_data): New type.
5988         (dwarf2_read_addr_index_reader): New function.
5989         (dwarf2_read_addr_index): New function.
5990         (read_str_index): New function.
5991         (leb128_size): New function.
5992         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5993         If processing a type unit from a DWO file, get the line section
5994         from the DWO file.
5995         (var_decode_location): Watch for DW_OP_GNU_addr_index.
5996         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5997         DW_FORM_GNU_str_index.
5998         (lookup_die_type): Check whether section offset of type's die is
5999         known before looking it up.  Remove assert.  Condition can
6000         legimately happen for inter-cu type references.
6001         (dwarf_attr_name): Handle Fission attributes.
6002         (dwarf_form_name): Handle Fission forms.
6003         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6004         DW_FORM_GNU_str_index.
6005         (follow_die_sig): Update to use type_offset_in_section.
6006         (decode_locdesc): New case DW_OP_GNU_addr_index.
6007         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6008         DW_FORM_GNU_str_index.
6009         (cu_debug_loc_section): New function.
6010         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6011         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6012         Free DWO files if present.
6013         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6014
6015         Refactor DIE reading.
6016         * dwarf2read.c (dwarf2_per_objfile): Replace members
6017         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6018         (die_reader_specs): New member "die_section".  Temporarily make
6019         member "buffer" non-const, pending constifying all info_ptr uses.
6020         (die_reader_func_ftype): New typedef.
6021         (dw2_get_file_names_reader): New function.
6022         (dw2_get_file_names): Rewrite.
6023         (read_and_check_type_unit_head): Rename arg type_offset to
6024         type_offset_in_tu.
6025         (create_all_type_units): Improve debugging message.
6026         Improve dummy type unit check.
6027         (init_cu_die_reader): New arg "section".  All callers updated.
6028         (init_and_read_dies_worker): New function.
6029         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6030         (init_cutu_and_read_dies_no_follow): New function.
6031         (init_cutu_and_read_dies_simple): New function.
6032         (process_psymtab_comp_unit_reader): New function.
6033         (process_psymtab_comp_unit): Delete args section,
6034         is_debug_types_section.  Rewrite.  All callers updated.
6035         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6036         All callers updated.  Rewrite.
6037         (load_partial_comp_unit_reader): New function.
6038         (load_partial_comp_unit): Rewrite.
6039         (skip_children): New arg reader.  Delete args buffer, cu.
6040         All callers updated.
6041         (skip_one_die): New arg reader.  Delete args buffer, cu.
6042         All callers updated.
6043         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6044         All callers updated.
6045         (load_full_comp_unit_reader): New function.
6046         (load_full_comp_unit): Rewrite.
6047         (read_comp_unit): Delete.
6048         (read_die_and_children_1): Delete, contents moved ...
6049         (read_die_and_children): ... here.
6050         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6051         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6052         All callers updated.
6053         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6054         All callers updated.
6055         (find_partial_die): Rewrite load_all_dies support.
6056         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6057         All callers updated.
6058         (read_attribute): New arg reader.  Delete args abfd, cu.
6059         All callers updated.
6060         (load_full_type_unit): Add assert.
6061         (read_signatured_type_reader): New function.
6062         (read_signatured_type): Rewrite.
6063         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6064         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6065         All callers updated.  Set per_cu->cu = NULL after freeing it.
6066         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6067         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6068         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6069         (set_die_type): Update.
6070         (get_die_type_at_offset): Update.
6071         (read_file_scope): Call prepare_one_comp_unit.
6072         (read_type_unit_scope): Ditto.
6073         (prepare_one_comp_unit): Set producer if present.
6074
6075 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6076
6077         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6078          gettext function on `error'.
6079
6080 2012-04-27  Doug Evans  <dje@google.com>
6081
6082         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6083         is empty.
6084
6085 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6086             Tom Tromey  <tromey@redhat.com>
6087
6088         * breakpoint.c (struct breakpoint_objfile_data)
6089         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6090         <exception_probes>: New fields.
6091         (free_breakpoint_probes): New function.
6092         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6093         `_Unwind_DebugHook'.
6094         (create_exception_master_breakpoint): Likewise.
6095         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6096         * infrun.c: Including necessary header files for handling SystemTap
6097         probes.
6098         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6099         via SystemTap probes.
6100         (check_exception_resume): Remove `func' argument.  Handle exception
6101         unwinding breakpoint set via a SystemTap probe.
6102         (insert_exception_resume_from_probe): New function.
6103
6104 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6105             Tom Tromey  <tromey@redhat.com>
6106             Jan Kratochvil  <jan.kratochvil@redhat.com>
6107
6108         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6109         (COMMON_OBS): Likewise.
6110         (HFILES_NO_SRCDIR): Add `probe'.
6111         * NEWS: Mention support for static and SystemTap probes.
6112         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6113         SystemTap probes' arguments parser.
6114         * arm-linux-tdep.c: Including headers needed to perform the parsing
6115         of SystemTap probes' arguments.
6116         (arm_stap_is_single_operand): New function.
6117         (arm_stap_parse_special_token): Likewise.
6118         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6119         probes' arguments parser.
6120         * ax-gdb.c (require_rvalue): Removing static declaration.
6121         (gen_expr): Likewise.
6122         * ax-gdb.h (gen_expr): Declaring function.
6123         (require_rvalue): Likewise.
6124         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6125         (bkpt_probe_breakpoint_ops): New variable.
6126         (momentary_breakpoint_from_master): Set the `probe' value.
6127         (add_location_to_breakpoint): Likewise.
6128         (break_command_1): Using proper breakpoint_ops according to the
6129         argument passed by the user in the command line.
6130         (bkpt_probe_insert_location): New function.
6131         (bkpt_probe_remove_location): Likewise.
6132         (bkpt_probe_create_sals_from_address): Likewise.
6133         (bkpt_probe_decode_linespec): Likewise.
6134         (tracepoint_probe_create_sals_from_address): Likewise.
6135         (tracepoint_probe_decode_linespec): Likewise.
6136         (tracepoint_probe_breakpoint_ops): New variable.
6137         (trace_command): Using proper breakpoint_ops according to the
6138         argument passed by the user in the command line.
6139         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6140         static probes on breakpoints and tracepoints.
6141         * breakpoint.h (struct bp_location) <probe>: New field.
6142         * cli-utils.c (skip_spaces_const): New function.
6143         (extract_arg): Likewise.
6144         * cli-utils.h (skip_spaces_const): Likewise.
6145         (extract_arg): Likewise.
6146         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6147         * configure.ac: Append `stap-probe.o' to be generated when ELF
6148         support is present.
6149         * configure: Regenerate.
6150         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6151         * elfread.c: Include `probe.h' and `arch-utils.h'.
6152         (probe_key): New variable.
6153         (elf_get_probes): New function.
6154         (elf_get_probe_argument_count): Likewise.
6155         (elf_evaluate_probe_argument): Likewise.
6156         (elf_compile_to_ax): Likewise.
6157         (elf_symfile_relocate_probe): Likewise.
6158         (stap_probe_key_free): Likewise.
6159         (elf_probe_fns): New variable.
6160         (elf_sym_fns): Add `sym_probe_fns' value.
6161         (elf_sym_fns_lazy_psyms): Likewise.
6162         (elf_sym_fns_gdb_index): Likewise.
6163         (_initialize_elfread): Initialize objfile cache for static
6164         probes.
6165         * gdb_vecs.h (struct probe): New forward declaration.
6166         (probe_p): New VEC declaration.
6167         * gdbarch.c: Regenerate.
6168         * gdbarch.h: Regenerate.
6169         * gdbarch.sh (stap_integer_prefix): New variable.
6170         (stap_integer_suffix): Likewise.
6171         (stap_register_prefix): Likewise.
6172         (stap_register_suffix): Likewise.
6173         (stap_register_indirection_prefix): Likewise.
6174         (stap_register_indirection_suffix): Likewise.
6175         (stap_gdb_register_prefix): Likewise.
6176         (stap_gdb_register_suffix): Likewise.
6177         (stap_is_single_operand): New function.
6178         (stap_parse_special_token): Likewise.
6179         (struct stap_parse_info): Forward declaration.
6180         * i386-tdep.c: Including headers needed to perform the parsing
6181         of SystemTap probes' arguments.
6182         (i386_stap_is_single_operand): New function.
6183         (i386_stap_parse_special_token): Likewise.
6184         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6185         probes' arguments parser.
6186         * i386-tdep.h (i386_stap_is_single_operand): New function.
6187         (i386_stap_parse_special_token): Likewise.
6188         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6189         * mipsread.c (ecoff_sym_fns): Likewise.
6190         * objfiles.c (objfile_relocate1): Support relocation for static
6191         probes.
6192         * parse.c (prefixify_expression): Remove static declaration.
6193         (initialize_expout): Likewise.
6194         (reallocate_expout): Likewise.
6195         * parser-defs.h (initialize_expout): Declare function.
6196         (reallocate_expout): Likewise.
6197         (prefixify_expression): Likewise.
6198         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6199         of SystemTap probes' arguments.
6200         (ppc_stap_is_single_operand): New function.
6201         (ppc_stap_parse_special_token): Likewise.
6202         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6203         probes' arguments parser.
6204         * probe.c: New file, for generic statically defined probe support.
6205         * probe.h: Likewise.
6206         * s390-tdep.c: Including headers needed to perform the parsing of
6207         SystemTap probes' arguments.
6208         (s390_stap_is_single_operand): New function.
6209         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6210         probes' arguments parser.
6211         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6212         * stap-probe.c: New file, for SystemTap probe support.
6213         * stap-probe.h: Likewise.
6214         * symfile.h: Include `gdb_vecs.h'.
6215         (struct sym_probe_fns): New struct.
6216         (struct sym_fns) <sym_probe_fns>: New field.
6217         * symtab.c (init_sal): Initialize `probe' field.
6218         * symtab.h (struct probe): Forward declaration.
6219         (struct symtab_and_line) <probe>: New field.
6220         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6221         locations.
6222         (stop_tracing): Likewise.
6223         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6224
6225 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6226             Tom Tromey  <tromey@redhat.com>
6227
6228         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6229         and to compile agent expressions.
6230         * infrun.c (siginfo_make_value): New argument `ignore'.
6231         (siginfo_funcs): New struct.
6232         (_initialize_infrun): New argument when calling
6233         `create_internalvar_type_lazy'.
6234         * thread.c (thread_id_make_value): New argument `ignore'.
6235         (thread_funcs): New struct.
6236         (_initialize_thread): New argument when calling
6237         `create_internalvar_type_lazy'.
6238         * tracepoint.c (sdata_make_value): New argument `ignore'.
6239         (sdata_funcs): New struct.
6240         (_initialize_tracepoint): New argument when calling
6241         `create_internalvar_type_lazy'.
6242         * value.c (make_value): New struct.
6243         (create_internalvar_type_lazy): New argument `data'.
6244         (compile_internalvar_to_ax): New function.
6245         (value_of_internalvar): Properly handling `make_value' case.
6246         (clear_internalvar): Likewise.
6247         (show_convenience): Adding `TRY_CATCH' block.
6248         * value.h (internalvar_make_value): Delete, replace by...
6249         (struct internalvar_funcs): ... this.
6250         (create_internalvar_type_lazy) <fun>: Delete argument.
6251         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6252         (compile_internalvar_to_ax): New function.
6253         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6254         (tlb_funcs): New struct.
6255         (_initialize_windows_tdep): New argument when calling
6256         `create_internalvar_type_lazy'.
6257
6258 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6259
6260         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6261         see whether it is an address or a constant offset from DW_AT_low_pc.
6262         (dwarf2_record_block_ranges): Likewise.
6263         (read_partial_die): Likewise.
6264
6265 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6266
6267         * MAINTAINERS (Write After Approval): Add myself to the list.
6268
6269 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6270
6271         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6272         (proc_prettyprint_signal): Likewise.
6273         (proc_prettyprint_faultset): Likewise.
6274         (proc_prettyprint_fault): Likewise.
6275         (proc_prettyprint_actionset): Likewise.
6276         (proc_prettyprint_flags): Move to new proc-flags.c section.
6277         (proc_prettyfprint_flags): New prototype.
6278         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6279         (proc_syscall, proc_cursig): Likewise.
6280         (proc_set_kill_on_last_close): Likewise.
6281         (proc_unset_kill_on_last_close): Likewise.
6282         (proc_set_watchpoint): Make static.
6283         (proc_delete_dead_threads): Likewise.
6284         (procfs_set_watchpoint): Likewise.
6285         (_initialize_procfs): Add prototype.
6286         * proc-events.c: Include proc-utils.h.
6287         (init_syscall_table): Make static.
6288         * proc-api.c (_initialize_proc_api): Add prototype.
6289         * proc-flags.c: Include proc-utils.h.
6290
6291 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6292
6293         * configure.ac: Add AC_ARG_PROGRAM.
6294         * configure: Regenerate.
6295
6296 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6297
6298         Fix DW_AT_lower_bound defaults for DWARF-4+.
6299         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6300         high.  New variable low_default_is_valid.  Implement DWARF-4+
6301         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6302         no default by the DWARF standard.
6303
6304 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6305             Maciej W. Rozycki  <macro@codesourcery.com>
6306
6307         * infrun.c (handle_inferior_event): Move the check for return
6308         trampolines ahead of the check for function trampolines.
6309         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6310         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6311         (mips_str_mips16_ret_stub): Likewise.
6312         (mips_str_call_fp_stub): Likewise.
6313         (mips_str_call_stub): Likewise.
6314         (mips_str_fn_stub): Likewise.
6315         (mips_str_pic): Likewise.
6316         (mips_in_frame_stub): New function.
6317         (mips_unwind_pc): Return the return address rather than the PC
6318         if the PC of an intermediate frame is inside a call thunk.
6319         (mips_is_stub_suffix): New function.
6320         (mips_is_stub_mode): Likewise.
6321         (mips_get_mips16_fn_stub_pc): Likewise.
6322         (mips_skip_mips16_trampoline_code): Update to handle all the
6323         currently generated stub types.  Don't recurse into __fn_stub
6324         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6325         Use cooked register accesses.
6326         (mips_in_return_stub): Reintroduce function.
6327         (mips_skip_trampoline_code): Traverse trampolines recursively.
6328         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6329
6330 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6331
6332         GDB 7.4.1 released.
6333
6334 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6335
6336         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6337         * features/arm-with-m-vfp-d16.xml: New file. Describes
6338         Cortex-M with VFPv4-sp-d16 FPU register layout.
6339         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6340         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6341         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6342         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6343         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6344
6345 2012-04-25  Doug Evans  <dje@google.com>
6346
6347         * cli/cli-decode.c (print_doc_line): Use stream instead of
6348         current_uiout.
6349
6350 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6351
6352         * features/arm-with-iwmmxt.c: Regenerate.
6353         * features/arm-with-m-fpa-layout.c: Likewise.
6354         * features/arm-with-m.c: Likewise.
6355         * features/arm-with-neon.c: Likewise.
6356         * features/arm-with-vfpv2.c: Likewise.
6357         * features/arm-with-vfpv3.c: Likewise.
6358         * features/mips-dsp-linux.c: Likewise.
6359         * features/mips-linux.c: Likewise.
6360         * features/mips64-dsp-linux.c: Likewise.
6361         * features/mips64-linux.c: Likewise.
6362         * features/s390-linux32.c: Likewise.
6363         * features/s390-linux32v1.c: Likewise.
6364         * features/s390-linux32v2.c: Likewise.
6365         * features/s390-linux64.c: Likewise.
6366         * features/s390-linux64v1.c: Likewise.
6367         * features/s390-linux64v2.c: Likewise.
6368         * features/s390x-linux64.c: Likewise.
6369         * features/s390x-linux64v1.c: Likewise.
6370         * features/s390x-linux64v2.c: Likewise.
6371         * features/tic6x-c62x-linux.c: Likewise.
6372         * features/tic6x-c62x.c: Likewise.
6373         * features/tic6x-c64x-linux.c: Likewise.
6374         * features/tic6x-c64x.c: Likewise.
6375         * features/tic6x-c64xp-linux.c: Likewise.
6376         * features/tic6x-c64xp.c: Likewise.
6377         * target-descriptions.c: Only generate `field_type' and `type'
6378         variables when needed.
6379
6380 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6381
6382         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6383
6384 2012-04-25  Doug Evans  <dje@google.com>
6385
6386         Initial pass at Go language support.
6387         * NEWS: Mention Go.
6388         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6389         go-valprint.c.
6390         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6391         (YYFILES): Add go-exp.c.
6392         (YYOBJ): Add go-exp.o.
6393         (local-maintainer-clean): Delete go-exp.c.
6394         * defs.h (enum language): Add language_go.
6395         * dwarf2read.c: #include "go-lang.h".
6396         (fixup_go_packaging): New function.
6397         (process_full_comp_unit): Call it when processing Go CUs.
6398         (dwarf2_physname): Add Go support.
6399         (read_file_scope): Handle missing language spec for GNU Go.
6400         (set_cu_language): Handle DW_LANG_Go.
6401         * go-exp.y: New file.
6402         * go-lang.h: New file.
6403         * go-lang.c: New file.
6404         * go-typeprint.c: New file.
6405         * go-valprint.c: New file.
6406         * symtab.c: #include "go-lang.h".
6407         (symbol_set_language): Handle language_go.
6408         (symbol_find_demangled_name, symbol_set_names): Ditto.
6409         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6410
6411 2012-04-24  Jim Meyering  <meyering@redhat.com>
6412
6413         avoid a few strncpy-induced buffer overruns
6414         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6415         fname and psargs before trying to concatenate.
6416         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6417         "name" before applying strchr.
6418
6419 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6420
6421         * CONTRIBUTE: Use unified diff instead of context diff when
6422         generating patches.
6423
6424 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6425
6426         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6427         code.  Handle JR.HB correctly.
6428
6429 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6430
6431         * mips-tdep.c
6432         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6433         with the other MIPS16 helpers.
6434
6435 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6436
6437         * observer.sh: Conditionally declare `args', thus cleaning up
6438         unused instances of this variable.
6439
6440 2012-04-24  Yao Qi  <yao@codesourcery.com>
6441
6442         Revert this patch to allow breakpoint always-inserted
6443         in record target.
6444         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6445         * breakpoint.c: Include record.h.
6446         (breakpoints_always_inserted_mode): Return false when the record
6447         target is in use.
6448
6449         * breakpoint.c (iterate_over_bp_locations): New.
6450         * breakpoint.h: Declare.
6451         New typedef walk_bp_location_callback.
6452         * record.c (record_open): Call record_init_record_breakpoints.
6453         (record_sync_record_breakpoints): New.
6454         (record_init_record_breakpoints): New.
6455         * NEWS: Mention supporting breakpoint always-inserted mode in
6456         record target.
6457
6458 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6459
6460         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6461         any thread.
6462
6463 2012-04-24  Yao Qi  <yao@codesourcery.com>
6464
6465         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6466         (is_catchpoint): ... it.
6467         (print_one_breakpoint_location): Caller update.
6468         * breakpoint.h: Update declaration.
6469
6470 2012-04-23  David S. Miller  <davem@davemloft.net>
6471
6472         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6473
6474 2012-04-23  Tom Tromey  <tromey@redhat.com>
6475
6476         * buildsym.c (add_free_pendings): Remove.
6477         * buildsym.h (add_free_pendings): Remove.
6478
6479 2012-04-23  Doug Evans  <dje@google.com>
6480
6481         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6482         attr.u.unsnd instead of attr.u.addr.
6483         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6484         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6485         DW_FORM_ref_udata.
6486         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6487         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6488         DW_FORM_ref_udata.
6489         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6490
6491 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6492
6493         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6494         (mips_o32_return_value): Likewise.
6495         (mips_o64_return_value): Likewise.
6496
6497 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6498
6499         * ada-lang.c (ada_evaluate_subexp): Add cases for
6500         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6501         their treatment in eval.c.
6502
6503 2012-04-21  David S. Miller  <davem@davemloft.net>
6504
6505         * sparc-tdep.c (X_DISP10): Define.
6506         (sparc_analyze_control_transfer): Handle compare-and-branch.
6507
6508 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6509
6510         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6511         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6512
6513 2012-04-20  Nigel Stephens  <nigel@mips.com>
6514             Maciej W. Rozycki  <macro@codesourcery.com>
6515
6516         * mips-tdep.c (mips_float_register_p): New function.
6517         (mips_convert_register_float_case_p): Use mips_float_register_p.
6518         (mips_register_type): Likewise.
6519         (mips_print_register): Likewise.
6520         (print_gp_register_row): Likewise.
6521         (mips_print_registers_info): Likewise.
6522
6523 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6524
6525         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6526         of mips16 symbols.
6527
6528 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6529
6530         * MAINTAINERS (Write After Approval): Add myself to the list.
6531
6532 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6533
6534         * MAINTAINERS: Update my e-mail address.
6535
6536 2012-04-20  Pedro Alves  <palves@redhat.com>
6537
6538         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6539         $srcdir.
6540         * configure: Regenerate.
6541
6542 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6543
6544         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6545         declaration.
6546         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6547
6548 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6549
6550         Fix compilation compatibility with python-2.4
6551         * python/py-type.c (convert_field): Cast ADDRSTRING for
6552         PyObject_SetAttrString as non-const.  New comment.
6553
6554 2012-04-19  Tom Tromey  <tromey@redhat.com>
6555
6556         * top.c (quit_target): Use all_cleanups.
6557         * main.c (captured_command_loop): Use all_cleanups.
6558         * exceptions.c (throw_exception): Use all_cleanups.
6559
6560 2012-04-19  Pedro Alves  <palves@redhat.com>
6561
6562         * Makefile.in (GNULIB_BUILDDIR): New.
6563         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6564         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6565         (CLEANDIRS). Remove gnulib/import.
6566         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6567         (all-lib): Ditto.
6568         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6569         (gnulib/import/Makefile): Replace gnulib/import with
6570         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6571         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6572         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6573         acx_configure_dir.m4.
6574         * acinclude.m4: Include acx_configure_dir.m4.
6575         * acx_configure_dir.m4: New file.
6576         * aclocal.m4: Regenerate.
6577         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6578         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6579         (GNULIB): New variable.
6580         (GNULIB_STDINT_H): Adjust.
6581         (AC_OUTPUT): Don't output gnulib/Makefile.
6582         * gdb/defs.h: Include build-gnulib/config.h.
6583         * aclocal.m4: Regenerate.
6584         * config.in: Regenerate.
6585         * configure: Regenerate.
6586
6587         * gnulib/Makefile.in: New file.
6588         * gnulib/configure.ac: New file.
6589         * gnulib/aclocal.m4: New file.
6590         * gnulib/config.in: New file.
6591         * gnulib/configure: New file.
6592         * gnulib/: Re-run gnulib-tool to adjust.
6593
6594 2012-04-19  Doug Evans  <dje@google.com>
6595
6596         * cleanups.h (struct cleanup): Move to cleanups.c.
6597         (make_cleanup_dtor_ftype): New typedef.
6598         (make_cleanup_dtor): Use it.
6599         (ALL_CLEANUPS): Replace with ...
6600         (all_cleanups): ... this.  Declare.  All uses updated.
6601         * cleanups.c: #include "gdb_assert.h".
6602         (sentinel_cleanup): New static global.
6603         (SENTINEL_CLEANUP): Define.
6604         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6605         (make_my_cleanup2): Assert result is non-NULL.
6606         (all_cleanups): New function.
6607         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6608         of NULL.
6609
6610 2012-04-19  Pedro Alves  <palves@redhat.com>
6611
6612         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6613         Adjust paths to gnulib imported files.
6614
6615 2012-04-19  Pedro Alves  <palves@redhat.com>
6616
6617         * gnulib/: Move whole directory ...
6618         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6619         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6620         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6621         (aclocal_m4_deps): Adjust.
6622         * aclocal.m4: Regenerate.
6623         * configure: Regenerate.
6624         * configure.ac: Adjust AC_OUTPUT output.
6625
6626 2012-04-19  Yao Qi  <yao@codesourcery.com>
6627
6628         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6629         (vec.o): New rule.
6630         * vec.c: Move it ...
6631         * common/vec.c: ... here.
6632         * vec.h: Move it ...
6633         * common/vec.h: ... here.
6634
6635 2012-04-19  Yao Qi  <yao@codesourcery.com>
6636
6637         * gdb-code-style.el: New.
6638
6639 2012-04-18  Pedro Alves  <palves@redhat.com>
6640
6641         Update gnulib from latest git.
6642         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6643
6644         * gnulib/Makefile.am: Update.
6645         * gnulib/dummy.c: Update.
6646         * gnulib/extra/arg-nonnull.h: Update.
6647         * gnulib/extra/c++defs.h: Update.
6648         * gnulib/extra/update-copyright: Update.
6649         * gnulib/extra/warn-on-use.h: Update.
6650         * gnulib/inttypes.in.h: Update.
6651         * gnulib/m4/00gnulib.m4: Update.
6652         * gnulib/m4/extensions.m4: Update.
6653         * gnulib/m4/gnulib-cache.m4: Update.
6654         * gnulib/m4/gnulib-common.m4: Update.
6655         * gnulib/m4/gnulib-comp.m4: Update.
6656         * gnulib/m4/gnulib-tool.m4: Update.
6657         * gnulib/m4/include_next.m4: Update.
6658         * gnulib/m4/inttypes-pri.m4: Update.
6659         * gnulib/m4/inttypes.m4: Update.
6660         * gnulib/m4/longlong.m4: Update.
6661         * gnulib/m4/memchr.m4: Update.
6662         * gnulib/m4/memmem.m4: Update.
6663         * gnulib/m4/mmap-anon.m4: Update.
6664         * gnulib/m4/multiarch.m4: Update.
6665         * gnulib/m4/onceonly.m4: Update.
6666         * gnulib/m4/stddef_h.m4: Update.
6667         * gnulib/m4/stdint.m4: Update.
6668         * gnulib/m4/string_h.m4: Update.
6669         * gnulib/m4/warn-on-use.m4: Update.
6670         * gnulib/m4/wchar_h.m4: Update.
6671         * gnulib/m4/wchar_t.m4: Update.
6672         * gnulib/m4/wint_t.m4: Update.
6673         * gnulib/memchr.c: Update.
6674         * gnulib/memmem.c: Update.
6675         * gnulib/stddef.in.h: Update.
6676         * gnulib/stdint.in.h: Update.
6677         * gnulib/str-two-way.h: Update.
6678         * gnulib/string.in.h: Update.
6679         * gnulib/wchar.in.h: Update.
6680
6681         * gnulib/extra/arg-nonnull.h: Delete.
6682         * gnulib/extra/c++defs.h: Delete.
6683         * gnulib/extra/warn-on-use.h: Delete.
6684         * gnulib/m4/wchar_h.m4: Delete.
6685         * gnulib/m4/wint_t.m4: Delete.
6686         * gnulib/wchar.in.h: Delete.
6687
6688         * gnulib/extra/snippets/arg-nonnull.h: New.
6689         * gnulib/extra/snippets/c++defs.h: New.
6690         * gnulib/extra/snippets/warn-on-use.h: New.
6691
6692         * aclocal.m4: Regenerate.
6693         * config.in: Regenerate.
6694         * configure: Regenerate.
6695         * gnulib/Makefile.in: Regenerate.
6696
6697 2012-04-18  Pedro Alves  <palves@redhat.com>
6698
6699         Reimport the update-copyright module from gnulib
6700         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6701
6702         * configure: Regenerate.
6703         * gnulib/Makefile.am: Update.
6704         * gnulib/Makefile.in: Regenerate.
6705         * gnulib/extra/update-copyright: Update.
6706         * gnulib/m4/gnulib-cache.m4: Update.
6707         * gnulib/m4/gnulib-comp.m4: Update.
6708
6709 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6710
6711         * configure.ac (aix): Put -lpthread into libs.
6712         * configure: Regenerate.
6713
6714 2012-04-18  Tom Tromey  <tromey@redhat.com>
6715
6716         * linespec.c (convert_linespec_to_sals): Don't use
6717         SYMBOL_OBJ_SECTION.
6718         (compare_msymbols): Arguments are minsym_and_objfile, not
6719         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6720
6721 2012-04-18  Pedro Alves  <palves@redhat.com>
6722
6723         Revert gnulib/ part of:
6724         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6725         Copyright year update in most files (performed by copyright.sh).
6726
6727 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6728
6729         Fix 64-bit constants on 32-bit hosts.
6730         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6731         from unsigned long to ULONGEST.
6732         (read_signed_leb128): Change declaration return type from long to
6733         LONGEST.
6734         (dwarf2_const_value_attr): Change declaration parameter value from long
6735         to LONGEST.
6736         (dwarf2_compute_name): Change variable value from long to LONGEST.
6737         (read_unsigned_leb128): Change return type, variable result and some
6738         casts from unsigned long to ULONGEST.
6739         (read_signed_leb128): Change return type, variable result and some
6740         casts from long to LONGEST.
6741         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6742         value from long to LONGEST.
6743         (dwarf2_const_value): Change variable value from long to LONGEST.
6744         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6745         plongest and hex_string.
6746         * symtab.h (struct general_symbol_info): Change ivalue from long to
6747         LONGEST, remove the comment.
6748         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6749         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6750
6751 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6752
6753         PR symtab/7259:
6754         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6755         * ada-lang.c (ada_discrete_type_high_bound)
6756         (ada_discrete_type_low_bound): Fix function comment.  Use
6757         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6758         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6759         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6760         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6761         Use TYPE_FIELD_ENUMVAL.
6762         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6763         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6764         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6765         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6766         TYPE_CODE_ENUM.
6767         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6768         * dwarf2read.c (process_enumeration_scope): Likewise.
6769         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6770         field.bitpos.
6771         (class StructMainTypePrettyPrinter): Support also
6772         FIELD_LOC_KIND_ENUMVAL.
6773         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6774         TYPE_CODE_ENUM.
6775         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6776         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6777         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6778         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6779         field enumval.
6780         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6781         accommodate enumval.
6782         (struct call_site): Adjust loc_kind to accommodate enumval.
6783         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6784         (TYPE_FIELD_ENUMVAL): New macros.
6785         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6786         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6787         TYPE_CODE_ENUM.
6788         * p-typeprint.c (pascal_type_print_base): Likewise.
6789         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6790         enumval.
6791         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6792         * python/py-type.c (convert_field): New variable addrstring.  Use
6793         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6794         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6795         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6796         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6797         TYPE_CODE_ENUM.
6798         * valprint.c (generic_val_print): Likewise.
6799
6800 2012-04-17  Doug Evans  <dje@google.com>
6801
6802         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6803
6804         * dwarf2read.c: Whitespace fixes.
6805         (lookup_signatured_type): Tweak comment.
6806         (get_die_type_at_offset): Fix comment.
6807
6808 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6809
6810         * xcoffread.c (xcoff_secnum_to_sections): New function.
6811         (secnum_to_section, secnum_to_bfd_section): Reimplement
6812         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6813         into "n_scnum".
6814         (RECORD_MINIMAL_SYMBOL): Delete.
6815         (record_minimal_symbol): New function.
6816         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6817         by call to record_minimal_symbol and set misc_func_recorded
6818         to 1.  Set last_csect_sec to the XCOFF section index instead
6819         of GDB's section_offset index.  Update calls to
6820         prim_record_minimal_symbol_and_info to pass the BFD section
6821         as well.
6822
6823 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6824
6825         * xcoffread.c (read_xcoff_symtab): Delete variables
6826         last_csect_val and last_csect_sec and associated code.
6827
6828 2012-04-17  Doug Evans  <dje@google.com>
6829
6830         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6831         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6832         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6833         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6834
6835         * cleanups.h: New file.
6836         * cleanups.c: New file.
6837         * Makefile.in (SFILES): Add cleanups.c.
6838         (HFILES_NO_SRCDIR): Add cleanups.h.
6839         (COMMON_OBS): Add cleanups.o.
6840         * defs.h (struct cleanup): Moved to cleanups.h.
6841         (do_cleanups,do_final_cleanups): Ditto.
6842         (discard_cleanups,discard_final_cleanups): Ditto
6843         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6844         (save_cleanups,save_final_cleanups): Ditto.
6845         (restore_cleanups,restore_final_cleanups): Ditto.
6846         (null_cleanup): Ditto.
6847         (make_my_cleanup,make_my_cleanup2): Ditto.
6848         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6849         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6850         (do_cleanups,do_final_cleanups): Ditto.
6851         (discard_cleanups,discard_final_cleanups): Ditto
6852         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6853         (save_cleanups,save_final_cleanups): Ditto.
6854         (restore_cleanups,restore_final_cleanups): Ditto.
6855         (null_cleanup): Ditto.
6856         (make_my_cleanup,make_my_cleanup2): Ditto.
6857         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6858
6859         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6860         make_my_cleanup.
6861         (make_cleanup_dyn_string_delete): Ditto.
6862         (make_cleanup_ui_file_delete): Ditto.
6863         (make_cleanup_ui_out_redirect_pop): Ditto.
6864         (make_cleanup_free_section_addr_info): Ditto.
6865         (make_cleanup_restore_integer): Ditto.
6866         (make_cleanup_unpush_target): Ditto.
6867         (make_cleanup_value_free_to_mark): Ditto.
6868         (make_cleanup_value_free): Ditto.
6869         (make_cleanup_free_so): Ditto.
6870
6871 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6872
6873         New option "set debug auto-load".
6874         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6875         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6876         (auto_load_safe_path_vec_update)
6877         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6878         if DEBUG_AUTO_LOAD.
6879         (file_is_auto_load_safe): New parameters debug_fmt and ....
6880         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6881         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6882         caller by explanatory string.
6883         (_initialize_auto_load): Register "set debug auto-load".
6884         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6885         and ....
6886         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6887         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6888         by explanatory string.
6889         * main.c (captured_main): Likewise.
6890         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6891         (source_section_scripts): Likewise.
6892
6893 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6894
6895         New option "set auto-load safe-path".
6896         * NEWS: New commands "set auto-load safe-path"
6897         and "show auto-load safe-path".
6898         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6899         (auto_load_safe_path, auto_load_safe_path_vec)
6900         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6901         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6902         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6903         (source_gdb_script_for_objfile): New variable is_safe.  Call
6904         file_is_auto_load_safe.  Return if it is not.
6905         (struct loaded_script): New field loaded.
6906         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6907         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6908         output "Missing" to "No".
6909         (_initialize_auto_load): New variable cmd.  Initialize
6910         auto_load_safe_path.  Register "set auto-load safe-path",
6911         "show auto-load safe-path" and "add-auto-load-safe-path".
6912         * auto-load.h (maybe_add_script): Add parameter loaded.
6913         (file_is_auto_load_safe): New declaration.
6914         * config.in: Regenerate.
6915         * configure: Regenerate.
6916         * configure.ac: New parameters --with-auto-load-safe-path
6917         and --without-auto-load-safe-path.
6918         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6919         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6920         * main.c (captured_main): Check file_is_auto_load_safe for
6921         LOCAL_GDBINIT.
6922         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6923         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6924         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6925         not.
6926
6927 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6928
6929         auto-load: Implementation.
6930         * NEWS: New descriptions for "info auto-load",
6931         "info auto-load gdb-scripts", "info auto-load python-scripts",
6932         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6933         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6934         and "show auto-load-scripts".  New description for "set auto-load",
6935         "show auto-load", "set auto-load gdb-scripts",
6936         "show auto-load gdb-scripts", "set auto-load python-scripts",
6937         "show auto-load python-scripts", "set auto-load local-gdbinit",
6938         "show auto-load local-gdbinit", "set auto-load libthread-db" and
6939         "show auto-load libthread-db".
6940         * auto-load.c: Remove include python/python-internal.h.  Add includes
6941         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6942         cli/cli-setshow.h.
6943         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6944         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6945         (gdbpy_global_auto_load): Rename to ...
6946         (global_auto_load): ... here.
6947         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6948         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6949         (script_language_gdb, source_gdb_script_for_objfile): New.
6950         (struct loaded_script): New field language.
6951         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6952         LANGUAGE.
6953         (maybe_add_script): Add parameter language.  Drop redundant
6954         entry.full_path initialization.  Initialize entry.language and
6955         (*slot)->language.
6956         (auto_load_objfile_script): Change parameter suffix to language.
6957         Remove the call of maybe_add_script.
6958         Call language->source_script_for_objfile.
6959         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6960         New.
6961         (collect_matching_scripts): Adjust it for
6962         struct collect_matching_scripts_data.
6963         (auto_load_info_scripts_pattern_nl): New variable.
6964         (info_auto_load_scripts): Rename to ...
6965         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
6966         for struct collect_matching_scripts_data.
6967         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6968         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6969         (auto_load_show_cmdlist_get, info_auto_load_cmd)
6970         (auto_load_info_cmdlist_get): New.
6971         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6972         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
6973         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6974         "info auto-load local-gdbinit".
6975         * auto-load.h (struct script_language): New.
6976         (gdbpy_global_auto_load): Rename to ...
6977         (global_auto_load): ... here.
6978         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6979         (auto_load_local_gdbinit_loaded): New declarations.
6980         (maybe_add_script): New parameter language.
6981         (auto_load_objfile_script): Change parameter suffix to language.
6982         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6983         (auto_load_info_scripts, auto_load_set_cmdlist_get)
6984         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6985         declarations.
6986         * linux-thread-db.c: Include auto-load.h and ctype.h.
6987         (auto_load_thread_db, show_auto_load_thread_db): New.
6988         (struct thread_db_info): New field filename.
6989         (delete_thread_db_info): Call xfree for FILENAME.
6990         (try_thread_db_load): Initialize FILENAME.
6991         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6992         if !AUTO_LOAD_THREAD_DB.
6993         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6994         (_initialize_thread_db): Install auto_load_thread_db
6995         as "set auto-load libthread-db" and install info_auto_load_libthread_db
6996         as "info auto-load libthread-db".
6997         * main.c (captured_main): Rename gdbpy_global_auto_load to
6998         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6999         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7000         (print_gdb_help): Extend the help for 'local init file'.
7001         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7002         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7003         (auto_load_scripts): Rename to ...
7004         (auto_load_python_scripts): ... here, update the comment.
7005         (gdbpy_load_auto_script_for_objfile): New declaration.
7006         (show_auto_load_python_scripts, script_language_python)
7007         (gdbpy_load_auto_script_for_objfile): New.
7008         (source_section_scripts): Refactor the code.
7009         (load_auto_scripts_for_objfile): Rename to ...
7010         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7011         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7012         (info_auto_load_python_scripts): New.
7013         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7014         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7015         Register "set auto-load-scripts" as its deprecated alias.  Register
7016         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7017         its deprecated alias.
7018         (load_auto_scripts_for_objfile): Rename to ...
7019         (gdbpy_load_auto_scripts_for_objfile): ... here.
7020         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7021         (gdbpy_load_auto_scripts_for_objfile): ... here.
7022
7023 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7024
7025         auto-load: Move files.
7026         * Makefile.in (SFILES): Add auto-load.c.
7027         (HFILES_NO_SRCDIR): Add auto-load.h.
7028         (COMMON_OBS): Add auto-load.o.
7029         (distclean): Change .gdbinit for gdb-gdb.gdb.
7030         * auto-load.c: New file, with parts from python/py-auto-load.c.
7031         * auto-load.h: New file, with parts from python/python.h.
7032         * configure: Regenerate.
7033         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7034         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7035         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7036         * main.c: Include auto-load.h.
7037         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7038         command.h, observer.h and progspace.h to auto-load.c.  Add include
7039         auto-load.h.
7040         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7041         (struct loaded_script, auto_load_pspace_data)
7042         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7043         (hash_loaded_script_entry, eq_loaded_script_entry)
7044         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7045         (maybe_add_script): Move to auto-load.c.
7046         (source_section_scripts): Change maybe_add_script parameters passing,
7047         use script_not_found_warning_print.
7048         (clear_section_scripts, auto_load_objfile_script)
7049         (auto_load_new_objfile, loaded_script_ptr)
7050         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7051         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7052         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7053         auto_load_new_objfile and info_auto_load_scripts initizations to
7054         auto-load.c.
7055         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7056
7057 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7058
7059         Code cleanup.
7060         * charset.c (find_charset_names): Remove variables ix and elt.
7061         Use free_char_ptr_vec.
7062         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7063         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7064         debugdir_end.  New variable debugdir_len.
7065         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7066         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7067         declarations.
7068         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7069         and elt.  Use free_char_ptr_vec.
7070         * source.c (add_path): Remove variables argv, arg and argv_index.
7071         New variables dir_vec, back_to, ix and name.
7072         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7073         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7074         no longer expecting DIRNAME_SEPARATOR.
7075         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7076         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7077         no longer expecting DIRNAME_SEPARATOR.
7078         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7079         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7080         debugdir_end.
7081         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7082         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7083         (dirnames_to_char_ptr_vec): New functions.
7084
7085 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7086
7087         Code cleanup.
7088         * source.c (add_path): Remove always true conditional 'p == 0' and
7089         unindent its code block.
7090
7091 2012-04-17  Pedro Alves  <palves@redhat.com>
7092
7093         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7094         (FIELD_BITPOS_LVAL): ... this.
7095         (FIELD_BITPOS): New.
7096         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7097         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7098         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7099         SET_FIELD_BITPOS.
7100         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7101         SET_FIELD_BITPOS.
7102         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7103         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7104         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7105         SET_FIELD_BITPOS.
7106
7107 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7108
7109         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7110         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7111         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7112         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7113         * jv-lang.c (java_link_class_type): Likewise, once.
7114         * stabsread.c (read_enum_type): Likewise.
7115
7116 2012-04-16  Yao Qi  <yao@codesourcery.com>
7117
7118         * common/agent.c (agent_run_command): Add one more parameter `len'.
7119         Update callers.
7120         * common/agent.h: Update declaration.
7121         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7122         Update.
7123         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7124
7125 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7126
7127         PR mi/13393
7128         * value.c (value_actual_type): New function.
7129         * value.h (value_actual_type): New declaration.
7130         * varobj.c (update_type_if_necessary): New function.
7131         (varobj_create): Call value_actual_type instead of
7132         value_type.
7133         (install_dynamic_child): distinct changed and type changed MI variable
7134         objects.
7135         (update_dynamic_varobj_children): Updated for install_dynamic_child
7136         change.  All callers updated.
7137         (varobj_update): Support for MI variable object type change if
7138         the value changed and RTTI is used to determine the type.
7139         (create_child_with_value): Call value_actual_type instead of
7140         value_type.
7141         (adjust_value_for_child_access): Extended with a new parameter which
7142         specify whether the given value should be casted to enclosing type.
7143         All callers updated.
7144
7145 2012-04-14  Yao Qi  <yao@codesourcery.com>
7146
7147         Import gnulib module inttypes from git
7148         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7149         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7150         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7151         gnulib/m4/inttypes-pri.m4
7152         * aclocal.m4, config.in, configure: Regenerated.
7153         * gnulib/Makefile.am: Update.
7154         * gnulib/Makefile.in: Update.
7155         * gnulib/m4/gnulib-cache.m4: Update.
7156         * gnulib/m4/gnulib-comp.m4: Update.
7157         * gnulib/inttypes.in.h: New.
7158         * gnulib/m4/inttypes-pri.m4: New.
7159         * gnulib/m4/inttypes.m4: New.
7160
7161 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7162
7163         * infrun.c (resume): Update PC address to the real PC after
7164         preparing to do displaced stepping.
7165
7166 2012-04-12  Doug Evans  <dje@google.com>
7167
7168         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7169         All callers updated.
7170
7171 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7172
7173         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7174
7175 2012-04-12  Doug Evans  <dje@google.com>
7176
7177         * dwarf2read.c (create_all_type_units): Renamed from
7178         create_debug_types_hash_table.  All callers updated.
7179
7180         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7181         local type_sig to sig_type, type_offset to type_offset_in_tu.
7182         (hash_signatured_type): Renamed from hash_type_signature,
7183         all callers updated.
7184         (eq_signatured_type): Renamed from eq_type_signature,
7185         all callers updated.
7186         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7187         (process_enumeration_scope): Ditto.
7188         (lookup_signatured_type_at_offset): Ditto.
7189         (load_full_type_unit, read_signatured_type): Ditto.
7190
7191 2012-04-12  Yao Qi  <yao@codesourcery.com>
7192
7193         * remote.c (async_remote_interrupt): Correct function name in
7194         debug message.
7195         (async_remote_interrupt_twice): Ditto.
7196
7197 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7198
7199         * source.c (find_and_open_source): Consistently pass resulting
7200         full path through xfullpath.
7201
7202 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7203
7204         Provide more specific displaced-stepping memory error message.
7205         * infrun.c (displaced_step_prepare): New variable status.  Call
7206         target_read_memory instead of read_memory, provide more specific
7207         error message.
7208
7209 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7210
7211         PR gdb/13901
7212         * darwin-nat.c (darwin_execvp): Revert previous patch.
7213
7214 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7215
7216         PR gdb/13901
7217         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7218         in case of change.
7219
7220 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7221
7222         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7223         warning.
7224
7225 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7226
7227         New command 'explore' which helps explore values and types in
7228         scope.
7229         * NEWS: Add an entry about the new 'explore' command.
7230         * data-directory/Makefile.in: Add gdb/command/explore.py
7231         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7232         command using the GDB Python API.
7233
7234 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7235
7236         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7237         extension in jump target calculation.
7238
7239 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7240
7241         * mips-tdep.c (mips32_next_pc): Handle JALX.
7242
7243 2012-04-10  Yao Qi  <yao@codesourcery.com>
7244
7245         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7246
7247 2012-04-10  Yao Qi  <yao@codesourcery.com>
7248
7249         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7250         and gnulib/m4/gnulib-tool.m4.
7251
7252 2012-04-10  Doug Evans  <dje@google.com>
7253
7254         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7255         (load_partial_dies): Clarify comment.
7256         (find_partial_die): Support rereading type units.
7257         Clarify CU handling, if we know offset is in CU, don't search for the
7258         containing CU.  Add comment regarding memory waste.
7259
7260 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7261
7262         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7263         i386/x32-avx and i386/x32-avx-linux.
7264         (i386/x32-expedite): New.
7265         (i386/x32-linux-expedite): Likewise.
7266         (i386/x32-avx-expedite): Likewise.
7267         (i386/x32-avx-linux-expedite): Likewise.
7268         ($(outdir)/i386/x32.dat): Likewise.
7269         ($(outdir)/i386/x32-linux.dat): Likewise.
7270         ($(outdir)/i386/x32-avx.dat): Likewise.
7271         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7272
7273         * features/i386/x32-avx-linux.xml: New file.
7274         * features/i386/x32-avx.xml: Likewise.
7275         * features/i386/x32-core.xml: Likewise.
7276         * features/i386/x32-linux.xml: Likewise.
7277         * features/i386/x32.xml: Likewise.
7278
7279         * features/i386/x32-avx-linux.c: New.  Generated.
7280         * features/i386/x32-avx.c: Likewise.
7281         * features/i386/x32-linux.c: Likewise.
7282         * features/i386/x32.c: Likewise.
7283         * regformats/i386/x32-avx-linux.dat: Likewise.
7284         * regformats/i386/x32-avx.dat: Likewise.
7285         * regformats/i386/x32-linux.dat: Likewise.
7286         * regformats/i386/x32.dat: Likewise.
7287
7288 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7289
7290         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7291         code to kill the inferior.
7292
7293 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7294
7295         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7296         defines.
7297         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7298         defines.
7299         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7300         (yyvsp): New defines.
7301         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7302         defines.
7303         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7304         defines.
7305         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7306         defines.
7307         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7308         defines.
7309         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7310         defines.
7311
7312 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7313
7314         * sparc64-tdep.c (sparc64_store_arguments)
7315         (sparc64_store_arguments): Fix coding style.
7316
7317 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7318
7319         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7320         complex floats, adjust some related comments and tighten a related
7321         assertion.
7322         (sparc64_extract_return_value): Handle complex floats.
7323
7324 2012-04-07  Doug Evans  <dje@google.com>
7325
7326         * dwarf2read.c (load_partial_dies): Change condition to assert.
7327
7328 2012-04-06  Doug Evans  <dje@google.com>
7329
7330         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7331         "mov %rsp,%rbp".
7332
7333 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7334
7335         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7336         fencepost error.
7337         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7338         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7339         architecture.
7340
7341 2012-04-05  Keith Seitz  <keiths@redhat.com>
7342
7343         * linespec.c (decode_compound): Remove.
7344         (enum offset_relative_sign): New enum.
7345         (struct line_offset): New struct.
7346         (struct linespec): New struct.
7347         (struct linespec_state): Move file_symtabs,
7348         user_filename, and user_function into struct linespec.
7349         Make result an anonymous struct holding vectors of
7350         symbolp and minsym_and_objfile_d.
7351         Add language member.
7352         (enum ls_token_type): New enum.
7353         (linespec_keywords): New array.
7354         (struct ls_token): New struct.
7355         (struct ls_parser): New struct.
7356         (linespec_lexer_lex_number): New function.
7357         (linespec_lexer_lex_keyword): New function.
7358         (is_ada_operator): New function.
7359         (skip_quote_char): New function.
7360         (copy_token_string): New function.
7361         (is_closing_quote_enclosed): New function.
7362         (find_parameter_list_end): New function.
7363         (linespec_lexer_lex_string): New function.
7364         (linespec_lexer_lex_one): New function.
7365         (linespec_lexer_consume_token): New function.
7366         (linespec_lexer_peek_token): New function.
7367         (cplusplus_error): Remove unused function.
7368         (find_methods): Update comment.
7369         (find_toplevel_char): Return const.
7370         (is_objc_method_format): Remove unused function.
7371         (find_toplevel_string): New function.
7372         (is_linespec_boundary): Remove.
7373         (symbol_not_found_error): New function.
7374         (find_method_overload_end): Remove function.
7375         (unexpected_linespec_error): New function.
7376         (keep_name_info): Remove.
7377         (linespec_parse_line_offset): New function.
7378         (linespec_parse_basic): New function.
7379         (canonicalize_linespec): New function.
7380         (decode_line_internal): Remove.
7381         (create_sals_line_offset): New function adapted from
7382         decode_all_digits.
7383         (convert_linespec_to_sals): New function.
7384         (parse_linespec): New function.
7385         (linespec_parser_new): New function.
7386         (linespec_state_destructor): Change parameter type to
7387         struct linespec_state *.
7388         Add language parameter.
7389         Remove freeing of moved members.
7390         (linespec_parser_delete): New function.
7391         (decode_line_full): Use parse_linespec and linespec_parser_new.
7392         (decode_line_1): Likewise.
7393         (decode_indirect): Rename to ...
7394         (linespec_expression_to_pc): ... this and rewrite
7395         to simply find CORE_ADDR, storing this result for later
7396         conversion to SALs.
7397         (locate_first_half): Remove.
7398         (deocde_objc): Add parameter LS.
7399         Initialize new struct collect_info members.
7400         Handle minimal symbols, too.
7401         (decode_compound): Delete.
7402         (lookup_prefix_sym): Rewrite.
7403         (compare_msymbols): New function.
7404         (find_method): Rewrite.
7405         Do not call cplusplus_error.
7406         (symtabs_from_filename): Rewrite.
7407         (collect_function_symbols): Delete.
7408         (find_function_symbols): Rewrite without ARGPTR-style
7409         processing.
7410         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7411         (decode_dollar): Adapted and renamed to ...
7412         (linespec_parse_variable): ... this.
7413         (find_linespec_symbols): New function.
7414         (decode_label): Adapted and renamed to ...
7415         (find_label_symbols): ... this.
7416         (decode_digits_list_mode): Add and use LS argument.
7417         (decode_digits_ordinary): Likewise.
7418         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7419         If in list mode, allow any symbol class.  Otherwise, only
7420         permit LOC_BLOCK symbols.
7421         (minsym_found): Update comments.
7422         (search_minsyms_for_name): Do not convert the matching symbol
7423         into a SAL.  Simply push the symbol and objfile into the
7424         result vector.
7425         (decode_variable): Delete. Contents adapted into
7426         find_linespec_symbols.
7427
7428         * cp-support.c (SKIP_SPACE): Remove.
7429         (operator_tokens): Remove unused global.
7430         (cp_validate_operator): Remove.
7431         * cp-support.h (cp_validate_operator): Remove declaration.
7432
7433 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7434
7435         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7436         for TYPE_VPTR_FIELDNO.
7437         * valprint.c (valprint_check_validity): Make it global, move the
7438         function comment ...
7439         * value.h (valprint_check_validity): ... to this new declaration.
7440
7441 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7442
7443         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7444         the STATE32 api for i386 state.
7445         (i386_darwin_store_inferior_registers): Likewise.
7446
7447 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7448
7449         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7450         SS offset.
7451         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7452         format_string.
7453
7454 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7455
7456         PR gdb/13901
7457         * darwin-nat.c (darwin_execvp): Set binary preference.
7458
7459 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7460
7461         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7462
7463 2012-03-30  Tom Tromey  <tromey@redhat.com>
7464
7465         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7466         of TRY_CATCH.  Fix error handling.
7467         * python/py-value.c (convert_value_from_python): Move 'old'
7468         declaration to innermost scope.
7469
7470 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7471             Andrey Smirnov  <andrew.smirnov@gmail.com>
7472
7473         -Wshadow warning fix.
7474         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7475         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7476         Adjust code accordingly.
7477
7478 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7479
7480         * ada-lang.c (symbol_completion_add): Rename parameter
7481         "encoded" into "encoded_p".  Ajust code and documentation
7482         accordingly.
7483
7484 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7485             Andrey Smirnov  <andrew.smirnov@gmail.com>
7486
7487         -Wshadow warning fix.
7488         * ada-lang.c (symbol_completion_add): Rename parameter
7489         "wild_match" into wild_match_p.  Update code and documentation
7490         accordingly.
7491
7492 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7493
7494         * ada-lang.c (symbol_completion_match): Rename parameter
7495         "encoded" into "encoded_p".  Ajust code and documentation
7496         accordingly.
7497
7498 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7499             Andrey Smirnov  <andrew.smirnov@gmail.com>
7500
7501         -Wshadow warning fix.
7502         * ada-lang.c (symbol_completion_match): Rename parameter
7503         "wild_match" into "wild_match_p".  Adjust code and function
7504         documentation accordingly.
7505
7506 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7507             Andrey Smirnov  <andrew.smirnov@gmail.com>
7508
7509         -Wshadow warning fix.
7510         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7511         "symbol_info" into "info".  Adjust code accordingly.
7512         (ada_lookup_symbol): Likewise.
7513
7514 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7515
7516         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7517         of this function's documentation.
7518
7519 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7520             Andrey Smirnov  <andrew.smirnov@gmail.com>
7521
7522         -Wshadow warning fix.
7523         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7524         variable into "wild_match_p".  Adjust code accordingly.
7525
7526 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7527             Andrey Smirnov  <andrew.smirnov@gmail.com>
7528
7529         -Wshadow warning fix.
7530         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7531         parameter into "wild_match_p".  Adjust code accordingly.
7532         Document this parameter in the function description.
7533
7534 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7535             Andrey Smirnov  <andrew.smirnov@gmail.com>
7536
7537         -Wshadow warning fix.
7538         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7539         "wild_match" parameter to "wild_match_p" (-Wshadow).
7540
7541 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7542
7543         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7544         in function documentation.
7545
7546 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7547             Andrey Smirnov  <andrew.smirnov@gmail.com>
7548
7549         -Wshadow warning fix.
7550         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7551         variable into wild_match_p.  Adjust code accordingly.
7552
7553 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7554             Andrey Smirnov  <andrew.smirnov@gmail.com>
7555
7556         * ada-valprint.c (ada_val_print_1): Move the code handling
7557         TYPE_CODE_ENUM inside its own lexical block.  Declare
7558         variables len and val there, instead of in the function's
7559         top level block.  Avoid declaring deref_val again in a way
7560         that shadows another variable of the same name declared
7561         in one of the up-level blocks.  Just re-use the up-level
7562         variable instead.
7563
7564 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7565
7566         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7567         Replace block_found argument by symbol_info.  Adjust
7568         implementation accordingly.  Add function documentation.
7569         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7570         Fix documentation.
7571         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7572         * ada-exp.y (write_object_renaming): Adjust to new
7573         ada_lookup_encoded_symbol API.
7574
7575 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7576
7577         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7578         documentation.
7579
7580 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7581
7582         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7583         (v850_register_name): Add the mpu and fpu register names.
7584         (v850e_register_name): Add the mpu and fpu register names.
7585         (v850e2_register_name): New function.
7586         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7587         bfd_mach_v850e2v3.
7588
7589 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7590
7591         * NEWS: Add entry for Ada varobj support.
7592
7593 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7594
7595         * varobj.c (default_value_is_changeable_p): New function,
7596         extracted from varobj_value_is_changeable_p.  Add declaration.
7597         (ada_value_is_changeable_p): New function, extracted from
7598         varobj_value_is_changeable_p.  Add declaration.
7599         (struct language_specific): New field "value_is_changeable_p".
7600         (languages): Add entries for new field.
7601         (varobj_create): Set language before calling install_new_value.
7602         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7603         "value_is_changeable_p" language callback.
7604
7605 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7606
7607         * ada-varobj.h, ada-varobj.c: New files.
7608         * Makefile.in (SFILES): Add ada-varobj.c.
7609         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7610         (COMMON_OBS): Add ada-varobj.o.
7611
7612 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7613
7614         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7615         (struct language_specific): New field "value_has_mutated".
7616         (languages): Set field "value_has_mutated" in each entry of array.
7617         (varobj_value_has_mutated): New function.
7618         (varobj_udpdate): Add handling of type mutation.
7619         (value_of_root): Add handling of type mutation.
7620         (ada_value_has_mutated): New function.
7621
7622 2012-03-28  Pedro Alves  <palves@redhat.com>
7623
7624         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7625         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7626
7627 2012-03-28  Tom Tromey  <tromey@redhat.com>
7628
7629         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7630         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7631         before returning.
7632
7633 2012-03-28  Tom Tromey  <tromey@redhat.com>
7634
7635         * .dir-locals.el: New file.
7636
7637 2012-03-28  Pedro Alves  <palves@redhat.com>
7638
7639         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7640
7641 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7642
7643         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7644         handling for r0.
7645
7646 2012-03-27  Pedro Alves  <palves@redhat.com>
7647
7648         Eliminate struct ui_stream.
7649
7650         * ui-out.h (struct ui_stream): Delete.
7651         (ui_out_field_stream): Adjust prototype.
7652         (ui_out_stream_new, ui_out_stream_delete)
7653         (make_cleanup_ui_out_stream_delete): Delete declarations.
7654         * ui-out.c (ui_out_field_stream): Change prototype to take a
7655         ui_file instead of a ui_stream.  Adjust.
7656         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7657         (make_cleanup_ui_out_stream_delete): Delete.
7658         * breakpoint.c (print_breakpoint_location)
7659         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7660         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7661         * disasm.c (dump_insns): Ditto.
7662         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7663         prototype.
7664         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7665         ui_stream/ui_out_stream_new.
7666         * infcmd.c (print_return_value): Ditto.
7667         * osdata.c (info_osdata_command): Don't allocate a local
7668         ui_stream.
7669         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7670         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7671         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7672         allocate a local ui_stream.
7673         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7674         instead of ui_stream/ui_out_stream_new.
7675         (list_args_or_locals): Don't allocate a local ui_stream.
7676         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7677         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7678         ui_stream/ui_out_stream_new.
7679         * cli/cli-setshow.c (do_setshow_command): Ditto.
7680
7681 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7682
7683         * arm-linux-tdep.c (arm_linux_init_abi): Call
7684         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7685         * arm-tdep.c (arm_process_record): New function.
7686         (deallocate_reg_mem): New function.
7687         (decode_insn): New function.
7688         (thumb_record_branch): New function.
7689         (thumb_record_ldm_stm_swi(): New function.
7690         (thumb_record_misc): New function.
7691         (thumb_record_ld_st_stack): New function.
7692         (thumb_record_ld_st_imm_offset): New function.
7693         (thumb_record_ld_st_reg_offset(): New function.
7694         (thumb_record_add_sub_cmp_mov): New function.
7695         (thumb_record_shift_add_sub): New function.
7696         (arm_record_coproc_data_proc): New function.
7697         (arm_record_coproc): New function.
7698         (arm_record_b_bl): New function.
7699         (arm_record_ld_st_multiple): New function.
7700         (arm_record_ld_st_reg_offset): New function.
7701         (arm_record_ld_st_imm_offset): New function.
7702         (arm_record_data_proc_imm): New function.
7703         (arm_record_data_proc_misc_ld_str): New function.
7704         (arm_record_extension_space): New function.
7705         (arm_record_strx): New function.
7706         (sbo_sbz): New function.
7707         (struct insn_decode_record): New structure for arm insn record.
7708         (REG_ALLOC): New macro for reg allocations.
7709         (MEM_ALLOC): New macro for memory allocations.
7710         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7711
7712 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7713
7714         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7715         (store_register): Likewise.
7716
7717 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7718
7719         * MAINTAINERS (Write After Approval): Add myself to the list.
7720
7721 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7722
7723         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7724         Describe also the option "auto".
7725
7726 2012-03-22  Richard Henderson  <rth@redhat.com>
7727
7728         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7729         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7730
7731 2012-03-22  Richard Henderson  <rth@redhat.com>
7732
7733         * jit.c (jit_read_code_entry): Compute alignment and offset of
7734         int64_t member before computing entry_size.
7735
7736 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7737
7738         Python scripting: Add new method Value.referenced_value to
7739         gdb.Value which can dereference pointer as well as reference
7740         values.
7741         * NEWS: Add entry under 'Python scripting' about the new method
7742         Value.referenced_value on gdb.Value objects.
7743         * python/py-value.c (valpy_referenced_value): New function
7744         defining a new method on gdb.Value objects which can dereference
7745         pointer and reference values.
7746
7747 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7748
7749         * MAINTAINERS (Write After Approval): Add myself to the list.
7750
7751 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7752
7753         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7754         in addition to "main".
7755
7756 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7757
7758         * expression.h (op_name): Add declaration.
7759         * expprint.c (op_name): Remove declaration.  Make non-static.
7760         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7761
7762 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7763
7764         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7765         of struct siginfo.
7766         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7767         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7768         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7769         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7770         (linux_nat_get_siginfo): Likewise.
7771         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7772         (linux_nat_get_siginfo): Likewise.
7773         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7774         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7775         * procfs.c (gdb_siginfo_t): Likewise.
7776
7777 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7778
7779         * .gitignore: Ignore more files.
7780
7781 2012-03-20  Pedro Alves  <palves@redhat.com>
7782
7783         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7784         returns.
7785
7786 2012-03-20  Yao Qi  <yao@codesourcery.com>
7787
7788         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7789         comment.
7790
7791 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7792
7793         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7794         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7795         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7796         sect_offset.
7797         * dwarf2expr.h (cu_offset, sect_offset): New types.
7798         (struct dwarf_expr_context_funcs) <dwarf_call>
7799         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7800         sect_offset.
7801         (struct dwarf_expr_context) <len>: Improve the comment.
7802         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7803         cu_offset and sect_offset.
7804         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7805         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7806         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7807         * dwarf2loc.h: Include dwarf2expr.h.
7808         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7809         and sect_offset.
7810         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7811         Improve the comment.
7812         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7813         (struct signatured_type, struct line_header, struct partial_die_info)
7814         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7815         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7816         (get_die_type_at_offset, create_cus_from_index)
7817         (create_signatured_type_table_from_index, dw2_get_file_names)
7818         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7819         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7820         (create_debug_types_hash_table, process_psymtab_comp_unit)
7821         (load_partial_comp_unit, create_all_comp_units)
7822         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7823         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7824         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7825         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7826         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7827         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7828         (find_partial_die, read_attribute_value, lookup_die_type)
7829         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7830         (is_ref_attr): New function comment.
7831         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7832         Use cu_offset and sect_offset.
7833         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7834         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7835         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7836         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7837         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7838         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7839         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7840         sect_offset.
7841
7842 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7843
7844         Code cleanup.
7845         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7846         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7847         with xfree.
7848         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7849
7850 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7851
7852         * NEWS: Describe new options --init-command=FILE, -ix and
7853         --init-eval-command=COMMAND, -iex.
7854         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7855         CMDARG_INIT_COMMAND.
7856         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7857         "init-command", "init-eval-command", "ix" and "iex" to the variable
7858         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7859         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7860         (print_gdb_help): Describe --init-command=FILE, -ix and
7861         --init-eval-command=COMMAND, -iex.
7862
7863 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7864
7865         Code cleanup.
7866         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7867         (cmdarg_s, VEC (cmdarg_s)): New.
7868         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7869         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7870         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7871         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7872         of CMDARG.
7873
7874 2012-03-19  Tom Tromey  <tromey@redhat.com>
7875
7876         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7877
7878 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7879
7880         PR symtab/13777
7881         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7882         GCC >=4.5.
7883
7884 2012-03-16  Chris January  <chris.january@allinea.com>
7885
7886         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7887         of clear.
7888
7889 2012-03-16  Chris January  <chris.january@allinea.com>
7890
7891         * source.c (add_path): Use memmove instead of strcpy because the
7892         strings overlap.
7893
7894 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7895
7896         * value.h (set_value_parent): Add declaration.
7897         * value.c (set_value_parent): New function.
7898         (value_address): If VALUE->PARENT is not NULL, then use it as
7899         the base address instead of VALUE->LOCATION.address.
7900         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7901         the same as OBJ's address.  Adjust V's offset accordingly.
7902         Set V's parent.
7903
7904 2012-03-16  Gary Benson  <gbenson@redhat.com>
7905
7906         PR breakpoints/10738
7907         * dwarf2read.c (use_deprecated_index_sections): New global.
7908         (struct partial_die_info): New member may_be_inlined.
7909         (read_partial_die): Set may_be_inlined where appropriate.
7910         (add_partial_subprogram): Add partial symbols for partial
7911         DIEs that may be inlined.
7912         (new_symbol_full): Add inlined subroutines to the current
7913         scope.
7914         (write_psymtabs_to_index): Bump version number.
7915         (dwarf2_read_index): Read only version 6 indices unless
7916         use_deprecated_index_sections is set.
7917         * linespec.c (symbol_and_data_callback): New structure.
7918         (iterate_inline_only): New function.
7919         (iterate_over_all_matching_symtabs): New argument
7920         "include_inline".  If nonzero, also call the callback for
7921         symbols representing inlined subroutines.
7922         (lookup_prefix_sym): Pass extra argument to the above.
7923         (find_function_symbols): Likewise.
7924         (add_matching_symbols_to_info): Likewise.
7925         * NEWS: Mention that GDB can now set breakpoints on inlined
7926         functions.
7927
7928 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7929
7930         * p-typeprint.c (pascal_type_print_method_args):
7931         Fix display of parameter of methods.
7932
7933 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7934
7935         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7936         Add missing prototype.
7937
7938 2012-03-16  Yao Qi  <yao@codesourcery.com>
7939             Jan Kratochvil  <jan.kratochvil@redhat.com>
7940
7941         Fix false compilation warning.
7942         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7943
7944 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
7945             Pedro Alves  <pedro@codesourcery.com>
7946
7947         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7948         (arm_register_g_packet_guesses): New function.
7949         (arm_gdbarch_init): Don't force a target description with
7950         registers when the executable is detected as M-profile.  Instead
7951         set gdbarch->tdep->is_m.  Register `g' packet guesses.
7952         (_initialize_arm_tdep): Initialize the new target description.
7953         * features/arm-with-m-fpa-layout.xml: New description.
7954         * features/arm-with-m-fpa-layout.c: New, generated.
7955
7956 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
7957
7958         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7959         Update function description.
7960         (insert_bp_location): Do not wipe bl->target_info out.
7961         * mem-break.c: #include "gdb_string.h".
7962         (default_memory_insert_breakpoint): Do not call target_read_memory
7963         with a pointer to the breakpoint's shadow_contents buffer.  Use
7964         a local buffer instead.
7965         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7966
7967 2012-03-15  Tom Tromey  <tromey@redhat.com>
7968
7969         * NEWS: Mention "info vtbl", not "info vtable".
7970         * cp-support.c (info_vtbl_command): Fix comment.
7971         (_initialize_cp_support): Fix text.
7972
7973 2012-03-15  Tom Tromey  <tromey@redhat.com>
7974
7975         * cp-valprint.c (cp_print_value_fields): Use
7976         print_function_pointer_address for vtable slot.
7977
7978 2012-03-15  Tom Tromey  <tromey@redhat.com>
7979
7980         * gnu-v3-abi.c (struct value_and_voffset): New.
7981         (hash_value_and_voffset, eq_value_and_voffset)
7982         (compare_value_and_voffset, compute_vtable_size)
7983         (print_one_vtable, gnuv3_print_vtable): New functions.
7984         (init_gnuv3_ops): Initialize 'print_vtable' field.
7985         * cp-support.c (info_vtbl_command): New function.
7986         (_initialize_cp_support): Add "info vtbl".
7987         * cp-abi.h (cplus_print_vtable): Declare.
7988         (struct cp_abi_ops) <print_vtable>: New field.
7989         * cp-abi.c (cplus_print_vtable): New function.
7990         * NEWS: Update.
7991
7992 2012-03-15  Tom Tromey  <tromey@redhat.com>
7993
7994         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7995         iterate_over_symbols.
7996
7997 2012-03-14  Doug Evans  <dje@google.com>
7998
7999         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8000         DW_OP_GNU_parameter_ref.
8001
8002 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8003
8004         Fix double prompt of 'interpreter-exec mi'.
8005         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8006         (mi_interpreter_resume): use it.
8007         (mi_execute_command_input_handler): New function.
8008         * mi/mi-main.c (mi_execute_command): Move prompt printing to
8009         mi_execute_command_input_handler.
8010
8011 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8012
8013         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8014         prototype.
8015         (darwin_debug_port_info): Make static.
8016         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8017         * machoread.c (_initialize_machoread): Add prototype.
8018         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8019         (i386_darwin_set_control, i386_darwin_get_control)
8020         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8021         i386_darwin_get_status, i386_darwin_get_control):
8022         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8023
8024 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8025
8026         * ax-gdb.c (gen_usual_unary): Remove special handling of
8027         enum and bool types.
8028
8029 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8030
8031         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8032
8033 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8034
8035         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8036
8037 2012-03-13  Chris January  <chris.january@allinea.com>
8038
8039         * aix-thread.c (fill_sprs): Store the floating point registers
8040         at the correct offsets into vals.
8041
8042 2012-03-13  Doug Evans  <dje@google.com>
8043
8044         * NEWS: Mention symbol-reloading has been deleted.
8045         * symfile.c (symbol_reloading): Delete.
8046         (show_symbol_reloading): Delete.
8047         (_initialize_symfile): Delete set/show symbol-reloading.
8048
8049         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8050         read_in_chain until we have successfully read it in.
8051         (load_full_comp_unit): Ditto.
8052         (read_signatured_type): Add comment.
8053
8054 2012-03-13  Chris January  <chris.january@allinea.com>
8055
8056         * stabsread.c (fix_common_block): Change type of valu argument
8057         to CORE_ADDR.
8058
8059 2012-03-13  Chris January  <chris.january@allinea.com>
8060
8061         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8062         instruction.
8063
8064 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8065
8066         * common/linux-procfs.c (linux_proc_get_int): New, from
8067         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8068         field.
8069         (linux_proc_get_tgid): Only call linux_proc_get_int.
8070         (linux_proc_get_tracerpid): New.
8071         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8072         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8073         linux_proc_pid_has_state.
8074         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8075         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8076         (linux_ptrace_attach_warnings): New.
8077         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8078         New declaration.
8079         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8080         (linux_nat_attach): New variables ex, buffer, message and message_s.
8081         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8082
8083 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8084
8085         * Makefile.in (linux-ptrace.o): New.
8086         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8087         from linux-nat.c.
8088         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8089         * common/linux-ptrace.c: New file.
8090         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8091         * config/arm/linux.mh: Likewise.
8092         * config/i386/linux.mh: Likewise.
8093         * config/i386/linux64.mh: Likewise.
8094         * config/ia64/linux.mh: Likewise.
8095         * config/m32r/linux.mh: Likewise.
8096         * config/m68k/linux.mh: Likewise.
8097         * config/mips/linux.mh: Likewise.
8098         * config/pa/linux.mh: Likewise.
8099         * config/powerpc/linux.mh: Likewise.
8100         * config/powerpc/ppc64-linux.mh: Likewise.
8101         * config/powerpc/spu-linux.mh: Likewise.
8102         * config/s390/s390.mh: Likewise.
8103         * config/sparc/linux.mh: Likewise.
8104         * config/sparc/linux64.mh: Likewise.
8105         * config/xtensa/linux.mh: Likewise.
8106         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8107         common/linux-procfs.c.
8108         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8109
8110 2012-03-13  Hui Zhu  <teawater@gmail.com>
8111             Pedro Alves  <palves@redhat.com>
8112
8113         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8114         CREATE_BREAKPOINT_FLAGS_INSERTED.
8115         (create_breakpoint_sal, create_breakpoints_sal)
8116         (base_breakpoint_create_breakpoints_sal)
8117         (tracepoint_create_breakpoints_sal)
8118         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8119         down.
8120         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8121         (ftrace_command, strace_command): Adjust.
8122         (create_tracepoint_from_upload): Pass
8123         CREATE_BREAKPOINT_FLAGS_INSERTED.
8124         * breakpoint.h (enum breakpoint_create_flags): New.
8125         (create_breakpoint): New flags parameter.
8126         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8127         * python/py-breakpoint.c (bppy_init): Adjust.
8128         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8129         * spu-tdep.c (spu_catch_start): Adjust.
8130
8131 2012-03-13  Pedro Alves  <palves@redhat.com>
8132             Hui Zhu  <teawater@gmail.com>
8133             Yao Qi  <yao@codesourcery.com>
8134
8135         * remote.c (struct remote_state): New field `starting_up'.
8136         (remote_start_remote): Set and clear it.
8137         (remote_can_download_tracepoint): If starting up, return false.
8138
8139 2012-03-13  Yao Qi  <yao@codesourcery.com>
8140
8141         * inferior.h (struct inferior): Remove fields any_syscall_count,
8142         syscalls_counts and total_syscalls_count.  Move them to new
8143         struct catch_syscall_inferior_data in breakpoint.c.
8144         * breakpoint.c: Call DEF_VEC_I(int).
8145         (struct catch_syscall_inferior_data): New.
8146         (get_catch_syscall_inferior_data): New.
8147         (catch_syscall_inferior_data_cleanup): New.
8148         (insert_catch_syscall): Update to access data in
8149         struct catch_syscall_inferior_data.
8150         (insert_catch_syscall): Likewise.
8151         (remove_catch_syscall): Likewise.
8152         (remove_catch_syscall): Likewise.
8153         (is_syscall_catchpoint_enabled): Likewise.
8154         (add_catch_command): Likewise.
8155         (_initialize_breakpoint): Register cleanup.
8156         * breakpoint.h: Removed DEF_VEC_I(int).
8157         * dwarf2loc.c: Call DEF_VEC_I(int).
8158         * mi/mi-main.c: Likewise.
8159
8160 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8161
8162         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8163
8164 2012-03-12  Chris January  <chris.january@allinea.com>
8165
8166         * aix-thread.c (_initialize_aix_thread): Add prototype.
8167         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8168         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8169
8170 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8171
8172         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8173         include of "amd64-nat.h".
8174
8175 2012-03-12  Tom Tromey  <tromey@redhat.com>
8176
8177         * buildsym.c (record_pending_block): Now static.
8178         * buildsym.h: (record_pending_block): Remove.
8179
8180 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8181
8182         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8183
8184 2012-03-09  Tom Tromey  <tromey@redhat.com>
8185
8186         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8187         producer_is_gxx_lt_4_6>: New fields.
8188         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8189
8190 2012-03-09  Tom Tromey  <tromey@redhat.com>
8191
8192         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8193
8194 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8195
8196         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8197         prototype.
8198
8199 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8200
8201         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8202
8203 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8204
8205         Fix -Wmissing-prototypes build.
8206         * arm-linux-nat.c (get_thread_id): Make it static.
8207         * xtensa-linux-nat.c (get_thread_id): Likewise.
8208
8209 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8210
8211         * server.c (process_point_options): If a conditional expression
8212         is found, only print a message if remote_debug is nonzero.
8213
8214 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8215
8216         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8217         of internal error for unknown/unsupported types.
8218
8219 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8220
8221         Fix CU relative vs. absolute DIE offsets.
8222         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8223         offset to offset_in_cu.
8224         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8225         TYPE_OFFSET.
8226         (dwarf2_fetch_die_location_block): Rename parameter offset to
8227         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8228
8229 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8230
8231         * libunwind-frame.c: Rename to ...
8232         * ia64-libunwind-tdep.c: ... here.
8233         * libunwind-frame.h: Rename to ...
8234         * ia64-libunwind-tdep.h: ... here.
8235         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8236         ia64-libunwind-tdep.h.
8237         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8238         * README (--with-libunwind): Rename to ...
8239         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8240         * config.in: Regenerate.
8241         * configure: Regenerate.
8242         * configure.ac: New option --with-libunwind-ia64, make the
8243         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8244         Remove AC_DEFINE for HAVE_LIBUNWIND.
8245         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8246         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8247         Rename libunwind-frame in the general comment.
8248         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8249         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8250         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8251         the general comment.
8252         * ia64-tdep.c: Rename libunwind-frame.h #include to
8253         ia64-libunwind-tdep.h.
8254         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8255         (ia64_libunwind_descr): Rename libunwind-frame to
8256         ia64-libunwind-tdep in these function comments.
8257         * ia64-tdep.h: Rename libunwind-frame.h #include to
8258         ia64-libunwind-tdep.h.
8259         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8260         ia64-libunwind-tdep in that data comment.
8261
8262 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8263
8264         * libunwind-frame.h (struct frame_unwind): New declaration.
8265
8266 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8267
8268         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8269         "set breakpoint condition-evaluation" command.
8270
8271 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8272
8273         * sparc-stub.c: Move to stubs/
8274         * sh-stub.c: Likewise.
8275         * m68k-stub.c: Likewise.
8276         * m32r-stub.c: Likewise.
8277         * i386-stub.c: Likewise.
8278
8279 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8280
8281         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8282         linux_get_siginfo_type.
8283
8284         * m68klinux-nat.c: Include "gdb_proc_service.h".
8285         (PTRACE_GET_THREAD_AREA): Define.
8286         (ps_get_thread_area): New function.
8287
8288 2012-03-08  Yao Qi  <yao@codesourcery.com>
8289
8290         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8291         `xsnprintf'.
8292         (remote_query_attached): Likewise.
8293         (remote_static_tracepoint_marker_at): Likewise.
8294         (remote_set_permissions): Likewise.
8295         (remote_detach_1, extended_remote_attach_1): Likewise.
8296         (send_g_packet, remote_vkill): Likewise.
8297         (extended_remote_disable_randomization): Likewise.
8298         (remote_add_target_side_condition): Likewise.
8299         (remote_insert_breakpoint): Likewise.
8300         (remote_remove_breakpoint): Likewise.
8301         (remote_insert_watchpoint): Likewise.
8302         (remote_remove_watchpoint): Likewise.
8303         (remote_insert_hw_breakpoint): Likewise.
8304         (remote_insert_hw_breakpoint): Likewise.
8305         (remote_remove_hw_breakpoint): Likewise.
8306         (remote_download_command_source): Likewise.
8307         (remote_download_tracepoint): Likewise.
8308         (remote_download_trace_state_variable): Likewise.
8309         (remote_disable_tracepoint): Likewise.
8310         (remote_trace_set_readonly_regions): Likewise.
8311         (remote_get_tracepoint_status): Likewise.
8312         (remote_trace_find): Likewise.
8313         (remote_get_trace_state_variable_value): Likewise.
8314         (remote_set_disconnected_tracing): Likewise.
8315         (remote_set_circular_trace_buffer): Likewise.
8316         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8317         (remote_use_agent): Likewise.
8318         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8319         Update callers.
8320
8321 2012-03-07  Pedro Alves  <palves@redhat.com>
8322
8323         * NEWS: Mention QProgramSignals.
8324         * inferior.h (update_signals_program_target): Declare.
8325         * infrun.c: (update_signals_program_target): New.
8326         (handle_command): Update the target of the new program signals
8327         array changes.
8328         * remote.c (PACKET_QProgramSignals): New enum.
8329         (last_program_signals_packet): New global.
8330         (remote_program_signals): New.
8331         (remote_start_remote): Update the target with the program signals
8332         list.
8333         (remote_protocol_features): Add entry for QPassSignals.
8334         (remote_open_1): Free anc clear last_program_signals_packet.
8335         (init_remote_ops): Install remote_program_signals.
8336         * target.c (update_current_target): Adjust.
8337         (target_program_signals): New.
8338         * target.h (struct target_ops) <to_program_signals>: New field.
8339         (target_program_signals): Declare.
8340
8341 2012-03-07  Pedro Alves  <palves@redhat.com>
8342
8343         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8344         extensions.
8345
8346 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8347
8348         * m68klinux-nat.c (getregs_supplies): Make static.
8349         (getfpregs_supplies): Likewise.
8350         (have_ptrace_getregs): Likewise.
8351
8352 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8353
8354         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8355         in call to get_die_type_at_offset.
8356
8357 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8358
8359         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8360         * mi/mi-cmd-disas.c: Ditto.
8361         * mi/mi-cmd-env.c: Ditto.
8362         * mi/mi-cmd-file.c: Ditto.
8363         * mi/mi-cmd-stack.c: Ditto.
8364         * mi/mi-cmd-target.c: Ditto.
8365         * mi/mi-cmd-var.c: Ditto.
8366         * mi/mi-cmds.c: Ditto.
8367         * mi/mi-cmds.h: Ditto.
8368         * mi/mi-console.c: Ditto.
8369         * mi/mi-getopt.c: Ditto.
8370         * mi/mi-getopt.h: Ditto.
8371         * mi/mi-interp.c: Ditto.
8372         * mi/mi-main.c: Ditto.
8373         * mi/mi-out.c: Ditto.
8374         * mi/mi-parse.c: Ditto.
8375         * mi/mi-parse.h: Ditto.
8376         * mi/mi-symbol-cmds.c: Ditto.
8377
8378         * mi/mi-getopt.h: Move mi_opt struct up.
8379         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8380         return.
8381         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8382
8383 2012-03-06  Tom Tromey  <tromey@redhat.com>
8384
8385         * proc-service.c (ps_pglobal_lookup): Set the current program
8386         space.
8387
8388 2012-03-06  Pedro Alves  <palves@redhat.com>
8389
8390         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8391
8392 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8393
8394         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8395
8396 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8397
8398         Code cleanup.
8399         * common/linux-osdata.c (linux_common_core_of_thread): New function
8400         comment.
8401         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8402         call by linux_common_core_of_thread.
8403         (linux_nat_core_of_thread_1): Remove.
8404         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8405         * linux-thread-db.c: Include linux-osdata.h.
8406         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8407         linux_common_core_of_thread.
8408
8409 2012-03-05  Tom Tromey  <tromey@redhat.com>
8410
8411         * value.c (value_primitive_field): Don't fetch contents for
8412         non-virtual bases.
8413
8414 2012-03-05  Tom Tromey  <tromey@redhat.com>
8415
8416         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8417
8418 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8419
8420         * s390-nat.c: Include "gregset.h".
8421
8422 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8423
8424         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8425         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8426         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8427         load also LIBUNWIND_SO_7.
8428
8429 2012-03-05  Pedro Alves  <palves@redhat.com>
8430
8431         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8432         is not NULL, and remove resulting dead code.
8433
8434 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8435
8436         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8437         prologue to sh_analyze_prologue.
8438         (sh_analyze_prologue): Make better use of such an upper limit, and
8439         generally be more cautious about accessing memory.
8440
8441 2012-03-05  Tom Tromey  <tromey@redhat.com>
8442
8443         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8444         _initialize_ia64_hpux_tdep.
8445
8446 2012-03-05  Pedro Alves  <palves@redhat.com>
8447
8448         PR gdb/13766
8449
8450         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8451         the register state is clear, supply explicit zero, instead of
8452         marking the register unavailable.
8453
8454 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8455
8456         * NEWS: Mention OpenVMS ia64 new target.
8457
8458 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8459
8460         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8461         (ia64_unw_accessors, ia64_unw_rse_accessors)
8462         (ia64_libunwind_descr): Declare.
8463         * ia64-vms-tdep.c: New file.
8464         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8465         (ia64_libunwind_descr): Make them public.
8466         * configure.tgt: Add ia64-*-*vms*.
8467         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8468         (ALLDEPFILES): Add ia64-vms-tdep.c
8469
8470 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8471
8472         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8473         * remote.c (PACKET_qXfer_uib): New enum value.
8474         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8475         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8476         (_initialize_remote): Call add_packet_config_cmd for
8477         xfer:uib packet.
8478
8479 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8480
8481         * osabi.c (gdb_osabi_names): Add OpenVMS.
8482         (generic_elf_osabi_sniffer): Likewise.
8483         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8484
8485 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8486
8487         Removed unused code.
8488         * libunwind-frame.c (libunwind_frame_unwind)
8489         (libunwind_frame_base_address): Remove.
8490         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8491
8492 2012-03-04  Yao Qi  <yao@codesourcery.com>
8493
8494         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8495         remove trailing new line.
8496         (agent_run_command, agent_run_command): Add _ markup.
8497         (agent_capability_check): Likewise.
8498
8499 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8500
8501         * breakpoint.c (set_condition_evaluation_mode): Set
8502         CONDITION_EVALUATION_MODE unconditionally.
8503
8504 2012-03-03  Yao Qi  <yao@codesourcery.com>
8505
8506         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8507         * common/agent.h: Update declaration.
8508         * inf-child.c (inf_child_use_agent): New.
8509         (inf_child_can_use_agent): New.
8510         (inf_child_target): Initialize fields `to_use_agent'
8511         and `to_can_use_agent'.
8512         * agent.c (agent_new_objfile): New.
8513         (_initialize_agent): Add agent_new_objfile to new_objfile
8514         observer.
8515
8516         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8517         New.
8518         (linux_target_install_ops): Initialize field
8519         `to_static_tracepoint_markers_by_strid'.
8520         * remote.c (free_current_marker): Move it to ...
8521         * tracepoint.c (free_current_marker): ... here.  New.
8522         (cleanup_target_stop): New.
8523         * tracepoint.h: Declare free_current_marker.
8524         * NEWS: Add one entry about `info static-tracepoint-marker'.
8525
8526 2012-03-03  Yao Qi  <yao@codesourcery.com>
8527
8528         * common/agent.c (agent_loaded_p): New.
8529         (agent_look_up_symbols): New global.
8530         * common/agent.h: Declare agent_loaded_p.
8531
8532 2012-03-03  Yao Qi  <yao@codesourcery.com>
8533
8534         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8535         (agent_capability_check, agent_capability_invalidate): New.
8536         (symbol_list): New array element.
8537         * common/agent.h (enum agent_capa): New.
8538         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8539
8540 2012-03-03  Yao Qi  <yao@codesourcery.com>
8541
8542         * target.h (struct target_ops) <to_use_agent>: New field.
8543         (struct target_ops) <to_can_use_agent>: New field.
8544         (target_use_agent, target_can_use_agent): New macro.
8545         * target.c (update_current_target): Update.
8546         * remote.c: New enum `PACKET_QAgent'.
8547         (remote_protocol_features): Add a new element.
8548         (remote_use_agent, remote_can_use_agent): New.
8549         (init_remote_ops): Initialize field `can_use_agent' with
8550         remote_can_use_agent.  Intiailize field `use_agent' with
8551         remote_use_agent.
8552         * common/agent.c (use_agent): New global.
8553         * common/agent.h: Declare it.
8554         * tracepoint.c (info_static_tracepoint_markers_command): Add
8555         comment.
8556         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8557         (COMMON_OBS): Add common/agent.o and agent.o
8558         (common-agent.o): New rule.
8559         * agent.c: New.
8560
8561 2012-03-03  Yao Qi  <yao@codesourcery.com>
8562
8563         * common/agent.c: New.
8564         * common/agent.h: New.
8565         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8566         AC_CHECK_HEADERS.
8567         * configure, configh.in: Regenerated.
8568
8569 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8570
8571         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8572         unless it exists for this architecture.
8573
8574 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8575
8576         * language.h (struct language_defn): New "method" la_read_var_value.
8577         * findvar.c: #include "language.h".
8578         (default_read_var_value): Renames read_var_value.  Rewrite
8579         function description.
8580         (read_var_value): New function.
8581         * value.h (default_read_var_value): Add prototype.
8582         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8583         New functions.
8584         (ada_language_defn): Add entry for la_read_var_value.
8585         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8586         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8587         language_defn structures to add entry for new la_read_var_value
8588         field.
8589
8590 2012-03-02  Tom Tromey  <tromey@redhat.com>
8591             Pedro Alves  <palves@redhat.com>
8592
8593         PR breakpoints/13776:
8594         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8595         breakpoints.
8596         (delete_longjmp_breakpoint_at_next_stop): New.
8597         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8598         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8599         before deleting the inferior.  Add comments.
8600         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8601         breakpoints immediately, but only on next stop.  Move that code
8602         next to where we mark other breakpoints for deletion.
8603
8604 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8605
8606         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8607         marker.
8608         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8609         violation.
8610
8611 2012-03-02  Pedro Alves  <palves@redhat.com>
8612
8613         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8614
8615 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8616
8617         Fix -Wmissing-prototypes build.
8618         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8619         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8620         (gdbsim_has_memory): Likewise.
8621
8622 2012-03-02  Yao Qi  <yao@codesourcery.com>
8623
8624         Fix -Wmissing-prototypes build.
8625         * charset.c (phony_iconv_open): Make static.
8626         (phony_iconv_close, phony_iconv): Likewise.
8627         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8628         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8629         prototype.
8630         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8631         * ser-mingw.c (create_select_thread): Make static.
8632         * windows-termcap.c (tgetent): New prototype.
8633         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8634
8635 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8636
8637         Fix -Wmissing-prototypes build.
8638         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8639         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8640         (_initialize_loadable): New prototypes.
8641
8642 2012-03-02  Doug Evans  <dje@google.com>
8643
8644         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8645         abbrev table, read_comp_unit will do it.
8646
8647 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8648
8649         Fix -Wmissing-prototypes build.
8650         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8651         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8652         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8653         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8654         (_initialize_arm_symbian_tdep): New prototype.
8655         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8656         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8657         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8658         static.
8659         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8660         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8661         prototype.
8662         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8663         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8664         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8665         static.
8666         * moxie-tdep.c (moxie_process_record): Likewise.
8667         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8668         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8669         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8670         (_initialize_rl78_tdep): New prototype.
8671         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8672         (_initialize_rx_tdep): New prototype.
8673         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8674         (_initialize_darwin_solib): New prototype.
8675         * solib-spu.c: Include solib-spu.h.
8676         (_initialize_spu_solib): New prototype.
8677         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8678         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8679         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8680         (tic6x_software_single_step): Make it static.
8681         (_initialize_tic6x_tdep): New prototype.
8682
8683 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8684
8685         Fix -Wmissing-prototypes build.
8686         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8687         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8688
8689 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8690
8691         Fix -Wmissing-prototypes build.
8692         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8693         (frv_have_stopped_data_address): Remove.
8694
8695 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8696
8697         Fix -Wmissing-prototypes build.
8698         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8699         * sh-tdep.c: Include sh64-tdep.h.
8700         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8701         * sh64-tdep.c: Include sh64-tdep.h.
8702         * sh64-tdep.h: New file.
8703
8704 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8705
8706         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8707
8708 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8709
8710         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8711         sp_regnum once the gdbarch_init_osabi hook has been called.
8712
8713 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8714
8715         * mips-tdep.c (mips32_bc1_pc): New function.
8716         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8717         BPOSGE32 and BPOSGE64 instructions.
8718         (deal_with_atomic_sequence): Likewise.
8719         (mips32_instruction_has_delay_slot): Likewise.
8720
8721 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8722             Chris Dearman  <chris@mips.com>
8723             Maciej W. Rozycki  <macro@codesourcery.com>
8724             Joseph Myers  <joseph@codesourcery.com>
8725
8726         * features/mips-dsp.xml: New file.
8727         * features/mips64-dsp.xml: New file.
8728         * features/mips-dsp-linux.xml: New file.
8729         * features/mips64-dsp-linux.xml: New file.
8730         * features/Makefile (WHICH): Add mips-dsp-linux and
8731         mips64-dsp-linux.
8732         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8733         * features/mips-dsp-linux.c: New file.
8734         * features/mips64-dsp-linux.c: New file.
8735         * regformats/mips-dsp-linux.dat: New file.
8736         * regformats/mips64-dsp-linux.dat: New file.
8737         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8738         registers.
8739         (mips64_linux_register_addr): Likewise.
8740         (mips64_linux_regsets_fetch_registers): Likewise.
8741         (mips64_linux_regsets_store_registers): Likewise.
8742         (mips64_linux_fetch_registers): Update call to
8743         mips64_linux_regsets_fetch_registers.
8744         (mips64_linux_store_registers): Update call to
8745         mips64_linux_regsets_store_registers.
8746         (mips_linux_read_description): Probe for DSP registers.
8747         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8748         and initialize_tdesc_mips64_dsp_linux.
8749         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8750         Remove padding of no longer used embedded register slots.
8751         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8752         (MIPS_RESTART_REGNUM): Redefine enum value.
8753         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8754         strings.
8755         (mips_tx39_reg_names): Likewise.
8756         (mips_linux_reg_names): New array of register names for Linux
8757         targets.
8758         (mips_register_name): Check for a null pointer in
8759         mips_processor_reg_names and return an empty string.
8760         (mips_register_type): Exclude embedded registers for the IRIX
8761         and Linux ABIs.
8762         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8763         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8764         DSP registers.
8765         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8766         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8767         (mips_gdbarch_init): Likewise.  Initialize internal register
8768         indices for the Linux ABI.  Use dynamic numbers to refer to
8769         registers, as applicable, while parsing the target description.
8770         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8771
8772 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8773
8774         * frame.h (read_frame_register_unsigned): Fix typo in function
8775         description.
8776
8777 2012-03-01  Pedro Alves  <palves@redhat.com>
8778
8779         * jit-reader.in [!__cplusplus]
8780         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8781
8782 2012-03-01  Pedro Alves  <palves@redhat.com>
8783
8784         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8785         * configure: Regenerate.
8786
8787 2012-03-01  Pedro Alves  <palves@redhat.com>
8788
8789         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8790         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8791         (ftrace_command, strace_command): Make static.
8792         * d-lang.c (_initialize_d_language): Declare.
8793         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8794         * dwarf2loc.c (_initialize_dwarf2loc):
8795         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8796         * exec.c (exec_get_section_table): Make static.
8797         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8798         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8799         * inferior.c (remove_inferior_command, add_inferior_command)
8800         (clone_inferior_command): Make static.
8801         * linux-nat.c (linux_nat_thread_address_space)
8802         (linux_nat_core_of_thread): Make static.
8803         * linux-tdep.c (_initialize_linux_tdep): Declare.
8804         * objc-lang.c (_initialize_objc_lang): Declare.
8805         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8806         Make static.
8807         (_initialize_opencl_language): Declare.
8808         * record.c (_initialize_record): Declare.
8809         * remote.c (demand_private_info, remote_get_tib_address)
8810         (remote_supports_cond_tracepoints)
8811         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8812         Make static.
8813         * skip.c (_initialize_step_skip): Declare.
8814         * symtab.c (skip_prologue_using_lineinfo): Make static.
8815         * tracepoint.c (delete_trace_state_variable)
8816         (trace_variable_command, delete_trace_variable_command)
8817         (get_uploaded_tsv, find_matching_tracepoint_location)
8818         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8819         Make static.
8820         * value.c (pack_unsigned_long): Make static.
8821         * varobj.c (varobj_ensure_python_env): Make static.
8822         * windows-tdep.c (_initialize_windows_tdep): Declare.
8823         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8824
8825 2012-03-01  Pedro Alves  <palves@redhat.com>
8826
8827         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8828         gdbarch parameter.
8829         (linux_init_abi): Install it as has_shared_address_space gdbarch
8830         callback.
8831
8832 2012-03-01  Pedro Alves  <palves@redhat.com>
8833
8834         * observer.c (observer_test_first_notification_function)
8835         (observer_test_second_notification_function)
8836         (observer_test_third_notification_function): Add declarations.
8837
8838 2012-03-01  Pedro Alves  <palves@redhat.com>
8839
8840         * common/signals.c (default_target_signal_to_host)
8841         (default_target_signal_from_host): Move ...
8842         * arch-utils.c: ... here.
8843         * arch-utils.h (default_target_signal_to_host)
8844         (default_target_signal_from_host): Declare.
8845
8846         * common/signals.c (target_signal_from_command): Move ...
8847         * infrun.c: ... here.
8848         * inferior.h (target_signal_from_command): Declare.
8849         * target.h (target_signal_from_command)
8850         (default_target_signal_from_host, default_target_signal_to_host):
8851         Delete declarations.
8852
8853         * common/signals.c (_initialize_signals): Delete.
8854
8855 2012-03-01  Pedro Alves  <palves@redhat.com>
8856
8857         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8858         both __cplusplus and !__cplusplus.
8859
8860 2012-03-01  Pedro Alves  <palves@redhat.com>
8861
8862         * psymtab.c (find_and_open_source): Delete declaration.
8863         * source.c (find_and_open_source): Move comment ...
8864         * source.h (find_and_open_source): ... to this new declaration.
8865
8866 2012-03-01  Pedro Alves  <palves@redhat.com>
8867
8868         * inline-frame.c: Include inline-frame.h.
8869
8870 2012-03-01  Pedro Alves  <palves@redhat.com>
8871
8872         * tui/tui-data.c (set_gen_win_origin): Delete.
8873         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8874         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8875
8876 2012-03-01  Pedro Alves  <palves@redhat.com>
8877
8878         * remote.c (encode_actions): Delete declaration.
8879         * tracepoint.c (encode_actions): Make extern.
8880         * tracepoint.h (encode_actions): Declare.
8881
8882 2012-03-01  Pedro Alves  <palves@redhat.com>
8883
8884         * python/py-breakpoint.c: Include python.h.
8885         * python/py-continueevent.c (create_continue_event_object): Make
8886         static.
8887         * python/py-lazy-string.c (stpy_get_type): Make static.
8888         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8889         Make static.
8890         * python/py-utils.c (unicode_to_target_python_string): Make
8891         static.
8892         * python/py-value.c: Include python.h.
8893
8894 2012-03-01  Pedro Alves  <palves@redhat.com>
8895
8896         * inferior.c (delete_threads_of_inferior): Delete.
8897
8898 2012-03-01  Pedro Alves  <palves@redhat.com>
8899
8900         Import fallback definitions from glibc.
8901
8902         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8903         ps_prochandle): Forward declare.
8904         (ps_err_e): Use glibc's comments.
8905         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8906         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8907         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8908         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8909         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8910         (struct ps_prochandle): Adjust comment.
8911
8912 2012-03-01  Pedro Alves  <palves@redhat.com>
8913
8914         * ada-lang.c (ada_modulus_from_name): Delete.
8915         * ada-lex.l (lexer_init): Make static.
8916
8917 2012-03-01  Pedro Alves  <palves@redhat.com>
8918
8919         PR gdb/13767
8920
8921         * frame.c (read_frame_register_unsigned): New.
8922         * frame.h (read_frame_register_unsigned): Declare.
8923         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8924         Handle it.
8925         (print_i387_control_word): New parameter `control_p'.  Handle it.
8926         (i387_print_float_info): Handle unavailable float registers.
8927
8928 2012-03-01  Keith Seitz  <keiths@redhat.com>
8929
8930         * linespec.c (decode_line_2): Sort the list of methods
8931         alphabetically before presenting the user with a selection
8932         menu.
8933
8934 2012-03-01  Doug Evans  <dje@google.com>
8935
8936         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8937         has_namespace_info.
8938         (dwarf2_read_abbrevs): Remove corresponding initialization.
8939
8940 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
8941
8942         * NEWS: Mention new python command class gdb.COMMAND_USER.
8943         * cli/cli-cmds.c (show_user): Print error when used on a python
8944         command.
8945         (init_cli_cmds): Update documentation strings for "show user" and
8946         "set/show max-user-call-depth" to clarify that it does not apply to
8947         python commands.
8948         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8949         error check.
8950         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8951         gdb python api.
8952         * top.c (execute_command): Only execute a user-defined command as a
8953         legacy macro if c->user_commands is set.
8954
8955 2012-03-01  Tom Tromey  <tromey@redhat.com>
8956
8957         * valprint.h (struct generic_val_print_decorations): New.
8958         (generic_val_print): Declare.
8959         * valprint.c (generic_val_print): New function.
8960         * p-valprint.c (p_decorations): New global.
8961         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8962         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8963         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8964         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8965         * m2-valprint.c (m2_decorations): New global.
8966         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8967         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8968         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8969         TYPE_CODE_ERROR>: Call generic_val_print.
8970         * f-valprint.c (f_decorations): New global.
8971         (f_val_print): Use print_function_pointer_address.
8972         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8973         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8974         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8975         generic_val_print.
8976         * c-valprint.c (c_decorations): New global.
8977         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8978         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8979         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8980         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8981         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8982         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8983         case.
8984
8985 2012-03-01  Tom Tromey  <tromey@redhat.com>
8986
8987         * valprint.c (val_print): Update.
8988         * p-valprint (pascal_val_print): Return void.
8989         * p-lang.h (pascal_val_print): Return void.
8990         * m2-valprint.c (m2_val_print): Return void.
8991         * m2-lang.h (m2_val_print): Return void.
8992         * language.h (struct language_defn) <la_val_print>: Return void.
8993         * language.c (unk_lang_val_print): Return void.
8994         * jv-valprint.c (java_val_print): Return void.
8995         * jv-lang.h (java_val_print): Return void.
8996         * f-valprint.c (f_val_print): Return void.
8997         * f-lang.h (f_val_print): Return void.
8998         * d-valprint.c (d_val_print): Return void.
8999         (dynamic_array_type): Update.
9000         * d-lang.h (d_val_print): Return void.
9001         * c-valprint.c (c_val_print): Return void.
9002         * c-lang.h (c_val_print): Return void.
9003         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9004         void.
9005         * ada-lang.h (ada_val_print): Return void.
9006
9007 2012-03-01  Tom Tromey  <tromey@redhat.com>
9008
9009         * value.h (val_print): Return void.
9010         * valprint.c (val_print): Return void.
9011
9012 2012-03-01  Tom Tromey  <tromey@redhat.com>
9013
9014         * value.h (common_val_print): Return void.
9015         * valprint.c (common_val_print): Return void.
9016
9017 2012-03-01  Tom Tromey  <tromey@redhat.com>
9018
9019         * value.h (value_print): Return void.
9020         * valprint.c (value_print): Return void.
9021         * p-valprint.c (pascal_value_print): Return void.
9022         * p-lang.h (pascal_value_print): Return void.
9023         * language.h (struct language_defn) <la_value_print>: Return
9024         void.
9025         * language.c (unk_lang_value_print): Return void.
9026         * jv-valprint.c (java_value_print): Return void.
9027         * jv-lang.h (java_value_print): Return void.
9028         * f-valprint.c (c_value_print): Don't declare.
9029         Include c-lang.h.
9030         * c-valprint.c (c_value_print): Return void.
9031         * c-lang.h (c_value_print): Return void.
9032         * ada-valprint.c (ada_value_print): Return void.
9033         * ada-lang.h (ada_value_print): Return void.
9034
9035 2012-03-01  Tom Tromey  <tromey@redhat.com>
9036
9037         * value.c (value_primitive_field): Handle virtual base classes.
9038
9039 2012-03-01  Tom Tromey  <tromey@redhat.com>
9040
9041         * gdbtypes.h (struct vbase): Remove.
9042
9043 2012-03-01  Tom Tromey  <tromey@redhat.com>
9044
9045         * c-valprint.c (print_function_pointer_address): Move...
9046         * valprint.c: ... here.  Make non-static.
9047         * m2-valprint.c (print_function_pointer_address): Remove.
9048         * valprint.h (print_function_pointer_address): Declare.
9049
9050 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9051
9052         * NEWS: Document the fact that one can provide a condition when
9053         creating an Ada exception catchpoint.
9054
9055 2012-03-01  Tom Tromey  <tromey@redhat.com>
9056
9057         * valprint.c (val_print_type_code_flags): Fix placement of
9058         trailing brace.
9059
9060 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9061
9062         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9063         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9064         environment variable before calling update-copyright.
9065
9066 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9067
9068         * gnulib/extra/update-copyright: Update to the latest from
9069         gnulib's git repository.
9070         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9071         variable to 2 instead of 1.
9072
9073 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9074
9075         * varobj.c (c_value_of_variable): Remove dead code.
9076
9077 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9078
9079         * ada-lex.p (processId): Do not modify already encoded IDs.
9080         Update function documentation.
9081
9082 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9083
9084         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9085         "name" with "struct symbol *name_sym".
9086         * ada-exp.y (write_var_or_type): Update call to
9087         ada_find_renaming_symbol.
9088         "name" with "struct symbol *name_sym". Adjust Implementation
9089         accordingly.  Adjust the function documentation.
9090
9091 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9092
9093         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9094         * ada-lang.c (ada_find_any_type): Add advance declaration.
9095         Make static.  Replace ada_find_any_symbol by
9096         ada_find_any_type_symbol.
9097         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9098         Improve function description.  Make static.
9099         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9100         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9101
9102 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9103
9104         * ada-lang.c (struct tag_args): Delete.
9105         (ada_get_tsd_type): Function body moved up in source file.
9106         (ada_tag_name_1, ada_tag_name_2): Delete.
9107         (ada_get_tsd_from_tag): New function.
9108         (ada_tag_name_from_tsd): New function.
9109         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9110         to determine the tag name.
9111
9112 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9113
9114         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9115         declaration.
9116         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9117         function.
9118
9119 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9120
9121         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9122
9123 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9124
9125         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9126         full searches.
9127
9128 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9129
9130         * ada-lang.c (constrained_packed_array_type): If there is a
9131         parallel XA type, use it to determine the array index type.
9132
9133 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9134
9135         * ada-valprint.c (ada_val_print_1): If our value is a reference
9136         to an array descriptor, dereference it before converting it
9137         to a simple array.
9138
9139 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9140
9141         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9142         creating fixed value.
9143         (ada_value_ind, ada_coerce_ref, assign_component)
9144         (ada_evaluate_subexp): Remove call to unwrap_value before
9145         call to ada_to_fixed_value.
9146
9147 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9148
9149         * ada-lang.c (to_fixed_array_type): Set result's type name.
9150
9151 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9152
9153         * ada-lang.c (catch_ada_exception_command_split): Add new
9154         argument cond_string.  Add support for condition at end of
9155         "catch exception" commands.
9156         (ada_decode_exception_location): Add new argument cond_string.
9157         Update call to catch_ada_exception_command_split.
9158         (create_ada_exception_catchpoint): Add new argument cond_string.
9159         Set the breakpoint condition if needed.
9160         (catch_ada_exception_command): Update call to
9161         ada_decode_exception_location.
9162         (ada_decode_assert_location): Add function documentation.
9163         Add support for condition at end of "catch assert" command.
9164         (catch_assert_command): Update calls to ada_decode_assert_location
9165         and create_ada_exception_catchpoint.
9166
9167 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9168
9169         Fix disp-step-syscall.exp: fork: single step over fork.
9170         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9171         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9172         comment, change parameters gdbarch and ptid to regcache.  Remove
9173         parameter regcache, initialize gdbarch from regcache here.
9174         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9175         New functions.
9176         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9177         instead.
9178         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9179         'syscall'.  Make the 'int' check more strict.
9180
9181 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9182
9183         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9184         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9185         (i386_linux_intx80_sysenter_syscall_record): ... here.
9186         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9187         Use the renamed function name.
9188
9189 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9190
9191         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9192         * breakpoint.c (until_break_command): Likewise.
9193         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9194         * infcall.c (call_function_by_hand): Likewise.
9195         * infcmd.c (finish_forward): Likewise.
9196         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9197
9198 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9199
9200         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9201         avoid variable assignments inside condition.
9202
9203 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9204
9205         Fix static analysis issue found by cppcheck.
9206         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9207         uninitialized BUF for size 2.
9208
9209 2012-02-27  Chris Dearman  <chris@mips.com>
9210             Nathan Froyd  <froydnj@codesourcery.com>
9211             Maciej W. Rozycki  <macro@codesourcery.com>
9212
9213         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9214         (mips16_instruction_has_delay_slot): Likewise.
9215         (mips_segment_boundary): Likewise.
9216         (mips_adjust_breakpoint_address): Likewise.
9217         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9218
9219 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9220             Maciej W. Rozycki  <macro@codesourcery.com>
9221
9222         * infrun.c (handle_inferior_event): Don't proceed through
9223         shared library trampolines if stepping at the machine
9224         instruction level.
9225
9226 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9227
9228         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9229         too.
9230
9231 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9232
9233         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9234         (sh_stub_unwind_sniffer): New functions.
9235         (sh_stub_unwind): New variable.
9236         (sh_gdbarch_init): Wire everything.
9237
9238 2012-02-27  Pedro Alves  <palves@redhat.com>
9239
9240         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9241         (linux_nat_post_attach_wait): Adjust to use
9242         linux_proc_pid_is_stopped.
9243         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9244         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9245         based on pid_is_stopped from both linux-nat.c and
9246         gdbserver/linux-low.c, and renamed.
9247
9248 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9249
9250         * remote.c (remote_watchpoint_addr_within_range): New function.
9251         (init_remote_ops): Use it.
9252
9253 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9254
9255         * target.h (target_watchpoint_addr_within_range): Document macro.
9256
9257 2012-02-24  Pedro Alves  <palves@redhat.com>
9258
9259         * stack.c (set_last_displayed_sal): Issue internal_error instead
9260         of warning, and issue it after clearing the last displayed sal.
9261
9262 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9263             Pedro Alves  <palves@redhat.com>
9264
9265         * breakpoint.c (until_break_command): Install breakpoints after
9266         all frame manipulations.
9267
9268 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9269
9270         * remote.c (remote_supports_cond_breakpoints): New forward
9271         declaration.
9272         (remote_add_target_side_condition): New function.
9273         (remote_insert_breakpoint): Add target-side breakpoint
9274         conditional if supported.
9275         (remote_insert_hw_breakpoint): Likewise.
9276         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9277         hook.
9278
9279         * target.c (update_current_target): Inherit
9280         to_supports_evaluation_of_breakpoint_conditions.
9281         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9282
9283         * target.h (struct target_ops)
9284         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9285         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9286
9287         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9288         (condition_evaluation_both, condition_evaluation_auto,
9289         condition_evaluation_host, condition_evaluation_target,
9290         condition_evaluation_enums, condition_evaluation_mode_1,
9291         condition_evaluation_mode): New static globals.
9292         (translate_condition_evaluation_mode): New function.
9293         (breakpoint_condition_evaluation_mode): New function.
9294         (gdb_evaluates_breakpoint_condition_p): New function.
9295         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9296         (mark_breakpoint_modified): New function.
9297         (mark_breakpoint_location_modified): New function.
9298         (set_condition_evaluation_mode): New function.
9299         (show_condition_evaluation_mode): New function.
9300         (bp_location_compare_addrs): New function.
9301         (get_first_location_gte_addr): New helper function.
9302         (set_breakpoint_condition): Free condition bytecode if locations
9303         has become unconditional.  Call mark_breakpoint_modified (...).
9304         (condition_command): Call update_global_location_list (1) for
9305         breakpoints.
9306         (breakpoint_xfer_memory): Use is_breakpoint (...).
9307         (is_breakpoint): New function.
9308         (parse_cond_to_aexpr): New function.
9309         (build_target_condition_list): New function.
9310         (insert_bp_location): Handle target-side conditional
9311         breakpoints and call build_target_condition_list (...).
9312         (update_inserted_breakpoint_locations): New function.
9313         (insert_breakpoint_locations): Handle target-side conditional
9314         breakpoints.
9315         (bpstat_check_breakpoint_conditions): Add comment.
9316         (bp_condition_evaluator): New function.
9317         (bp_location_condition_evaluator): New function.
9318         (print_breakpoint_location): Print information on where the condition
9319         will be evaluated.
9320         (print_one_breakpoint_location): Likewise.
9321         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9322         breakpoint location.
9323         (force_breakpoint_reinsertion): New functions.
9324         (update_global_location_list): Handle target-side breakpoint
9325         conditions.
9326         Reinsert locations that are already inserted if conditions have
9327         changed.
9328         (bp_location_dtor): Free agent expression bytecode.
9329         (disable_breakpoint): Call mark_breakpoint_modified (...).
9330         Call update_global_location_list (...) with parameter 1 for breakpoints.
9331         (disable_command): Call mark_breakpoint_location_modified (...).
9332         Call update_global_location_list (...) with parameter 1 for breakpoints.
9333         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9334         (enable_command): mark_breakpoint_location_modified (...).
9335         (_initialize_breakpoint): Update documentation and add
9336         condition-evaluation breakpoint subcommand.
9337
9338         * breakpoint.h: Include ax.h.
9339         (condition_list): New data structure.
9340         (condition_status): New enum.
9341         (bp_target_info) <cond_list>: New field.
9342         (bp_location) <condition_changed, cond_bytecode>: New fields.
9343         (is_breakpoint): New prototype.
9344
9345 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9346
9347         * remote.c (remote_state) <cond_breakpoints>: New field.
9348         (PACKET_ConditionalBreakpoints): New enum.
9349         (remote_cond_breakpoint_feature): New function.
9350         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9351         (remote_supports_cond_breakpoints): New function.
9352         (_initialize_remote): Add new packet configuration for
9353         target-side conditional breakpoints.
9354
9355 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9356
9357         * NEWS: Mention target-side conditional breakpoint support,
9358         new condition-evaluation breakpoint subcommand and remote
9359         packet extensions.
9360
9361 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9362
9363         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9364         number.
9365
9366 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9367
9368         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9369         (after_prologue): Remove.
9370
9371 2012-02-23  Tom Tromey  <tromey@redhat.com>
9372
9373         * jv-valprint.c (java_val_print): Remove dead code.
9374
9375 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9376
9377         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9378         known_tasks_element and known_tasks_length fields.
9379         (read_known_tasks_array): Change argument type.  Use pointer type
9380         and number of elements from DATA.  Adjust.
9381         (read_known_tasks_list): Likewise.
9382         (get_known_tasks_addr): Remove.
9383         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9384         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9385         type and array length.  Merge former get_known_tasks_addr code.
9386
9387 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9388
9389         PR backtrace/13716
9390         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9391         it after set_momentary_breakpoint.
9392
9393 2012-02-22  Sterling Augustine  <saugustine@google.com>
9394
9395         PR 13689:
9396         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9397
9398 2012-02-22  Gary Benson  <gbenson@redhat.com>
9399
9400         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9401         (find_slot_in_mapped_hash): Likewise.
9402
9403 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9404
9405         PR build/13638
9406         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9407         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9408         * configure: Regenerate.
9409
9410 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9411             Pedro Alves  <palves@redhat.com>
9412
9413         * ia64-tdep.c: Do not include libunwind-ia64.h.
9414         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9415         Include libunwind-ia64.h instead of libunwind.h.
9416         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9417         for libunwind.h existence.
9418         * configure, config.in: Regenerate.
9419
9420 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9421
9422         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9423         instead of value_rtti_target_type.
9424         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9425         instead of value_rtti_target_type.
9426         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9427         value_rtti_target_type.
9428         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9429         (value_rtti_target_type): Rename to ...
9430         (value_rtti_indirect_type): ... here and make it indirect.  Update
9431         function comment.
9432         * value.c (readjust_indirect_value_type): New function.
9433         (coerce_ref): Support for enclosing type setting for references
9434         with readjust_indirect_value_type.
9435         * value.h (readjust_value_type): New declaration.
9436         (value_rtti_target_type): Rename to ...
9437         (value_rtti_indirect_type): ... here.
9438
9439 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9440
9441         * MAINTAINERS (Write After Approval): Add myself to the list.
9442
9443 2012-02-20  Doug Evans  <dje@google.com>
9444
9445         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9446         Rename objfile_p_char parameter to objfilep.
9447         (build_objfile_section_table): Result is now void.  All callers
9448         updated.
9449         * objfiles.h (struct objfile): Tweak comments, whitespace.
9450         (build_objfile_section_table): Update.
9451
9452         * elfread.c (elf_symfile_segments): Fix warning text.
9453
9454 2012-02-20  Tom Tromey  <tromey@redhat.com>
9455
9456         PR gdb/13498:
9457         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9458         particular set of file names once.
9459         (dw2_map_symbol_filenames): Likewise.
9460
9461 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9462
9463         Code cleanup.
9464         * main.c (write_files): Remove the declaration.
9465         (external_editor_command): Move the declaration ...
9466         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9467
9468 2012-02-20  Tom Tromey  <tromey@redhat.com>
9469
9470         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9471         extraneous block.
9472
9473 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9474
9475         * darwin-nat.h (enum darwin_msg_state): Add comments.
9476
9477 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9478
9479         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9480         value.
9481
9482 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9483
9484         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9485         between function description and implementation.
9486
9487 2012-02-17  Tom Tromey  <tromey@redhat.com>
9488
9489         PR python/12070:
9490         * python/py-event.c (event_object_getset): New global.
9491         (event_object_type): Reference it.
9492         * python/py-type.c (field_object_getset): New global.
9493         (field_object_type): Reference it.
9494         * python/python-internal.h (gdb_py_generic_dict): Declare.
9495         * python/py-utils.c (gdb_py_generic_dict): New function.
9496
9497 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9498
9499         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9500
9501 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9502
9503         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9504         TYPE_CALLING_CONVENTION annotation.
9505
9506 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9507
9508         * MAINTAINERS: Add rx to target ISA section.
9509         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9510         (ALLDEPFILES): Add rx-tdep.c.
9511
9512 2012-02-16  Tom Tromey  <tromey@redhat.com>
9513
9514         * symfile.c (symbol_file_add_main_1): Use inferior's
9515         symfile_flags.
9516         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9517         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9518         inferior.
9519         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9520         inferior.
9521         (follow_exec): Use inferior's symfile_flags.
9522         * inferior.h (struct inferior) <symfile_flags>: New field.
9523
9524 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9525
9526         PR gdb/9734:
9527         * remote-sim.c (gdbsim_create_inferior): Call error() when
9528         sim_create_inferior() fails.
9529
9530 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9531
9532         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9533
9534 2012-02-16  Tom Tromey  <tromey@redhat.com>
9535
9536         PR c++/13653:
9537         * thread.c (struct current_thread_cleanup) <was_removable>: New
9538         field.
9539         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9540         (make_cleanup_restore_current_thread): Initialize new field.
9541
9542 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9543
9544         * MAINTAINERS: Add rl78 to target ISA section.
9545         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9546         (ALLDEPFILES): Add rl78-tdep.c.
9547         * NEWS: Mention rl78 as a new target.
9548
9549 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9550
9551         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9552         data.
9553         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9554
9555 2012-02-15  Tom Tromey  <tromey@redhat.com>
9556
9557         PR gdb/12659:
9558         * infcmd.c (registers_info): Print just the current register's
9559         name.
9560
9561 2012-02-15  Tom Tromey  <tromey@redhat.com>
9562
9563         * python/py-symbol.c (sympy_value): Use _().
9564
9565 2012-02-15  Pedro Alves  <palves@redhat.com>
9566
9567         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9568         output to be like native targets'.
9569         (remote_pid_to_str): Special case the null ptid.
9570
9571 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9572
9573         * NEWS: Mention enable count command.
9574         * breakpoint.h (struct breakpoint): New field enable_count.
9575         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9576         (enable_breakpoint): Add arg to call.
9577         (struct disp_data): New struct.
9578         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9579         (do_map_enable_once_breakpoint): Create a struct and pass it.
9580         (do_map_enable_delete_breakpoint): Ditto.
9581         (do_map_enable_count_breakpoint): New function.
9582         (enable_count_command): New function.
9583         (bpstat_stop_status): Decrement enable_count.
9584         (print_one_breakpoint_location): Report enable count.
9585         (_initialize_breakpoint): Add enable count command.
9586
9587 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9588
9589         * rl78-tdep.c (reggroups.h): Include.
9590         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9591         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9592         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9593         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9594         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9595         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9596         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9597         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9598         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9599         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9600         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9601         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9602         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9603         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9604         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9605         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9606         beginning of register list.
9607         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9608         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9609         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9610         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9611         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9612         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9613         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9614         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9615         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9616         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9617         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9618         the pseudo registers.  Rearrange other pseudo registers too so
9619         that the bank registers appear at the end.
9620         (rl78_register_type): Account for the fact that the byte sized
9621         bank registers are now pseudo-registers.
9622         (rl78_register_name): Rearrange the register name array.  Make
9623         initial set of raw banked registers inaccessible.
9624         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9625         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9626         case for copying bytes back and forth between raw and pseudo
9627         versions of the banked registers.  Update other cases to reflect
9628         the changed names.
9629         (rl78_return_value): Update to account for changed names of
9630         raw registers.
9631         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9632         rl78_register_sim_regno().
9633
9634 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9635
9636         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9637         the name parameter being passed to find_pc_partial_function().
9638
9639 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9640
9641         * MAINTAINERS: Step down from being ia64 target maintainer.
9642
9643 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9644
9645         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9646         compilation warning.
9647
9648 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9649
9650         Fix crash on loaded shlibs without loaded exec_bfd.
9651         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9652         (set_section_command): Replace exec_bfd by p->bfd.
9653
9654 2012-02-10  Tom Tromey  <tromey@redhat.com>
9655
9656         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9657         when we have a C++ qualified name.
9658
9659 2012-02-10  Pedro Alves  <palves@redhat.com>
9660
9661         * inferior.c (inferior_pid_to_str): New.
9662         (print_inferior, inferior_command): Use it.
9663
9664 2012-02-10  Pedro Alves  <palves@redhat.com>
9665
9666         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9667         the test CFLAGS.
9668         * configure: Regenerate.
9669
9670 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9671
9672         * linespec.c (decode_line_internal): Fix comment correctness.
9673
9674 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9675
9676         PR gdb/12953
9677         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9678         * amd64bsd-nat.c: Add support for debug registers (adapted from
9679         i386bsd-nat.c).
9680         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9681         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9682         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9683         (amd64bsd_dr_get_control): New functions.
9684         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9685         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9686         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9687         watchpoints initialization.
9688         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9689
9690 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9691
9692         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9693         flds_bnds.fields.
9694         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9695
9696 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9697
9698         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9699
9700 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9701
9702         * language.h (symbol_name_cmp_ftype): Renames
9703         symbol_name_match_p_ftype.
9704         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9705         la_get_symbol_name_match_p.
9706         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9707         ada_get_symbol_name_match_p.  Update comment.
9708         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9709         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9710         Renames symbol_name_match_p.  Update field type.
9711         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9712         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9713         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9714         "la_get_symbol_name_cmp" in comments.
9715         * language.c: Likewise.
9716
9717 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9718
9719         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9720         %eflags offset.
9721         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9722         (amd64_sol2_gregset32_reg_offs): Likewise.
9723
9724 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9725
9726         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9727         of the returned BFD is allocated by GDB.
9728
9729 2012-02-07  Tom Tromey  <tromey@redhat.com>
9730
9731         PR python/12027:
9732         * python/python-internal.h (frame_object_type): Declare.
9733         * python/py-symbol.c (sympy_needs_frame): New function.
9734         (sympy_value): New function.
9735         (symbol_object_getset): Add "needs_frame".
9736         (symbol_object_methods): Add "value".
9737         * python/py-frame.c (frame_object_type): No longer static.
9738
9739 2012-02-07  Tom Tromey  <tromey@redhat.com>
9740
9741         PR python/13599:
9742         * python/py-symbol.c (sympy_line): New function.
9743         (symbol_object_getset): Add "line".
9744
9745 2012-02-07  Tom Tromey  <tromey@redhat.com>
9746
9747         * charset.c (find_charset_names): Check 'in' against NULL.
9748
9749 2012-02-06  Doug Evans  <dje@google.com>
9750
9751         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9752         and fields.name members from char * to const char *.  All uses updated.
9753         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9754         from char * to const char *.  All uses updated.
9755         (type_name_no_tag): Update.
9756         (lookup_unsigned_typename, lookup_signed_typename): Update.
9757         * gdbtypes.c (type_name_no_tag): Change result type
9758         from char * to const char *.  All callers updated.
9759         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9760         name parameter from char * to const char *.
9761         * symtab.h (struct cplus_specific): Change type of demangled_name
9762         member from char * to const char *.  All uses updated.
9763         (struct general_symbol_info): Change type of name and
9764         mangled_lang.demangled_name members from char * to const char *.
9765         All uses updated.
9766         (symbol_get_demangled_name, symbol_natural_name): Update.
9767         (symbol_demangled_name, symbol_search_name): Update.
9768         * symtab.c (symbol_get_demangled_name): Change result type
9769         from char * to const char *.  All callers updated.
9770         (symbol_natural_name, symbol_demangled_name): Ditto.
9771         (symbol_search_name): Ditto.
9772         (completion_list_add_name): Change type of symname,sym_text,
9773         text,word parameters from char * to const char *.
9774         (completion_list_objc_symbol): Change type of sym_text,
9775         text,word parameters from char * to const char *.
9776         * ada-lang.c (find_struct_field): Change type of name parameter
9777         from char * to const char *.
9778         (encoded_ordered_before): Similarly for N0,N1 parameters.
9779         (old_renaming_is_invisible): Similarly for function_name parameter.
9780         (ada_type_name): Change result type from char * to const char *.
9781         All callers updated.
9782         * ada-lang.h (ada_type_name): Update.
9783         * buildsym.c (hashname): Change type of name parameter
9784         from char * to const char *.
9785         * buildsym.h (hashname): Update.
9786         * dbxread.c (end_psymtab): Change type of include_list parameter
9787         from char ** to const char **.
9788         * dwarf2read.c (determine_prefix): Change result type
9789         from char * to const char *.  All callers updated.
9790         * f-lang.c (find_common_for_function): Change type of name, funcname
9791         parameters from char * to const char *.
9792         * f-lang.c (find_common_for_function): Update.
9793         * f-valprint.c (list_all_visible_commons): Change type of funcname
9794         parameters from char * to const char *.
9795         * gdbarch.sh (static_transform_name): Change type of name parameter
9796         and result from char * to const char *.
9797         * gdbarch.c: Regenerate.
9798         * gdbarch.h: Regenerate.
9799         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9800         of name parameter from char * to const char *.
9801         * jv-lang.c (java_primitive_type_from_name): Ditto.
9802         (java_demangled_signature_length): Similarly for signature parameter.
9803         (java_demangled_signature_copy): Ditto.
9804         (java_demangle_type_signature): Ditto.
9805         * jv-lang.h (java_primitive_type_from_name): Update.
9806         (java_demangle_type_signature): Update.
9807         * objc-lang.c (specialcmp): Change type of a,b parameters
9808         from char * to const char *.
9809         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9810         from char * to const char *.  All callers updated.
9811         * p-lang.h (is_pascal_string_type): Update.
9812         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9813         of name parameter from char * to const char *.
9814         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9815         * utils.c (fprintf_symbol_filtered): Ditto.
9816         * defs.h (fprintf_symbol_filtered): Update.
9817         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9818         * stabsread.h (end_psymtab): Update.
9819         * stack.c (find_frame_funname): Change type of funname parameter
9820         from char ** to const char **.
9821         * stack.h (find_frame_funname): Update.
9822         * typeprint.c (type_print): Change type of varstring parameter
9823         from char * to const char *.
9824         * value.h (type_print): Update.
9825         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9826         from char * to const char *.  All callers updated.
9827         (xcoff_end_psymtab): Change type of include_list parameter
9828         from char ** to const char **.  All callers updated.
9829         (swap_sym): Similarly for name parameter.  All callers updated.
9830         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9831         Use xstrdup.
9832         (process_coff_symbol): Use xstrdup.
9833         * stabsread.c (stabs_method_name_from_physname): Renamed from
9834         update_method_name_from_physname.  Change result type from void
9835         to char *.  All callers updated.
9836         (read_member_functions): In has_destructor case, store name in objfile
9837         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9838
9839 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9840
9841         * configure: Rebuild.
9842         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9843         LDFLAGS.
9844
9845 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9846
9847         * configure.tgt (rl78-*-elf): New target.
9848         * rl78-tdep.c: New file.
9849
9850 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9851
9852         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9853         and continue the loop.  Add QUIT statement.
9854
9855 2012-02-03  Tom Tromey  <tromey@redhat.com>
9856
9857         PR gdb/13596:
9858         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9859         bfd_lookup_symbol_from_symtab.
9860         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9861         gdb_bfd_lookup_symbol_from_symtab.
9862
9863 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9864
9865         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9866         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9867         symbol.  Add assertion that sym2 is never NULL.
9868
9869 2012-02-02  Doug Evans  <dje@google.com>
9870
9871         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9872         "name" parameter to const char ** from char **.  All callers updated.
9873         (find_pc_partial_function): Ditto.
9874         (cache_pc_function_name): Change type to const char * from char *.
9875         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9876         (find_pc_partial_function): Update.
9877         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9878         type of "name" parameter to const char * from char *.
9879         All uses updated.
9880         * arch-utils.c (generic_in_solib_return_trampoline): Change
9881         type of "name" parameter to const char * from char *.
9882         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9883         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9884         type of "name" parameter to const char * from char *.
9885         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9886         * gdbarch.c: Regenerate.
9887         * gdbarch.h: Regenerate.
9888         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9889         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9890         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9891         type of "name" parameter to const char * from char *.
9892         * skip.c (skip_function_pc): Ditto.
9893         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9894         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9895         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9896         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9897         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9898         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9899         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9900         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9901         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9902
9903 2012-02-02  Pedro Alves  <palves@redhat.com>
9904
9905         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9906         the current inferior has no execution.  Make sure the current
9907         remote process matches gdb's current inferior.
9908
9909 2012-02-02  Tom Tromey  <tromey@redhat.com>
9910
9911         PR gdb/13405:
9912         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9913         read-only memory.
9914
9915 2012-02-02  Tom Tromey  <tromey@redhat.com>
9916
9917         PR gdb/9307:
9918         * symtab.c (lookup_language_this): Set block_found.
9919
9920 2012-02-01  Tom Tromey  <tromey@redhat.com>
9921
9922         PR gdb/13431:
9923         * jit.c (struct jit_inferior_data): Rewrite.
9924         (struct jit_objfile_data): New.
9925         (get_jit_objfile_data): New function.
9926         (add_objfile_entry): Update.
9927         (jit_read_descriptor): Return int.  Replace descriptor_addr
9928         argument with inf_data.  Update.  Don't call error.
9929         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9930         descriptor here.
9931         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9932         (jit_reset_inferior_data_and_breakpoints)
9933         (jit_inferior_created_observer): Remove.
9934         (jit_inferior_exit_hook): Update.
9935         (jit_executable_changed_observer): Remove.
9936         (jit_event_handler): Update.
9937         (free_objfile_data): Reset inferior data if needed.
9938         (_initialize_jit): Update.
9939
9940 2012-02-01  Tom Tromey  <tromey@redhat.com>
9941
9942         * jit.c (bfd_open_from_target_memory): Move higher in file.
9943
9944 2012-02-01  Tristan Gingold  <gingold@adacore.com>
9945
9946         * libunwind-frame.c (libunwind_load): Display message if dlopen
9947         failed.
9948
9949 2012-02-01  Gary Benson  <gbenson@redhat.com>
9950
9951         * symtab.h (symbol_found_callback_ftype): New typedef.
9952         (iterate_over_symbols): Use the above.
9953         * symtab.c (iterate_over_symbols): Likewise.
9954         * language.h (language_defn->la_iterate_over_symbols): Likewise.
9955         * ada-lang.c (ada_iterate_over_symbols): Likewise.
9956         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9957         (iterate_name_matcher): Document return values.
9958         (collect_one_symbol): Likewise.
9959         (collect_function_symbols): Likewise.
9960         (collect_symbols): Likewise.
9961
9962 2012-02-01  Tom Tromey  <tromey@redhat.com>
9963
9964         * ada-lang.c (resolve_subexp): Update.
9965         (ada_lookup_symbol_list): Add 'full_search' argument.
9966         (ada_iterate_over_symbols): Pass 0 as full_search argument to
9967         ada_lookup_symbol_list.
9968         (ada_lookup_encoded_symbol): Update.
9969         (get_var_value): Update.
9970         * ada-exp.y (block_lookup): Update.
9971         (write_var_or_type): Update.
9972         (write_name_assoc): Update.
9973         * ada-lang.h (ada_lookup_symbol_list): Update.
9974
9975 2012-01-31  Tom Tromey  <tromey@redhat.com>
9976
9977         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9978         comment.
9979
9980 2012-01-31  Doug Evans  <dje@google.com>
9981
9982         * symtab.h: Remove outdated comment.
9983         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9984
9985 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9986
9987         Fix build error in Darwin port.
9988         * i386-darwin-nat.c: Include i386-nat.h.
9989
9990 2012-01-30  Tom Tromey  <tromey@redhat.com>
9991
9992         PR breakpoints/13568:
9993         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9994         argument.  Check for recursive includes.
9995         (dwarf_decode_macros): Create an include hash.
9996
9997 2012-01-30  Michael Eager  <eager@eagercon.com>
9998
9999         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10000         * ppc-linux-tdep.c: Include glibc-tdep.h.
10001         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10002         (powerpc_linux_in_plt_stub): New function.
10003         (powerpc_linux_in_dynsym_resolve_code): New function.
10004         (ppc_skip_trampoline_code): New function.
10005         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10006         Use glibc_skip_solib_resolver.
10007
10008 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10009
10010         Code cleanup: Make 1440 bytes of data segment read-only.
10011         * arch-utils.c (endian_enum): Make it const char *const [].
10012         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10013         Likewise.
10014         * breakpoint.c (always_inserted_enums): Likewise.
10015         * cli/cli-cmds.c (script_ext_enums): Likewise.
10016         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10017         enumlist parameter const char *const *.
10018         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10019         const char *const *.
10020         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10021         parameter const char *const *.
10022         * cris-tdep.c (cris_modes): Make it const char *const [].
10023         * filesystem.c (target_file_system_kinds): Likewise.
10024         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10025         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10026         (can_use_displaced_stepping_enum, scheduler_enums)
10027         (exec_direction_names): Likewise.
10028         * language.c (_initialize_language): Make the type_or_range_names and
10029         case_sensitive_names variables const char *const [].
10030         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10031         * python/python.c (python_excp_enums): Likewise.
10032         * remote.c (interrupt_sequence_modes): Likewise.
10033         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10034         * serial.c (logbase_enums): Likewise.
10035         * sh-tdep.c (sh_cc_enum): Likewise.
10036         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10037         Likewise.
10038         * symtab.c (multiple_symbols_modes): Likewise.
10039         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10040         Likewise.
10041         * utils.c (internal_problem_modes): Likewise.
10042
10043 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10044
10045         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10046         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10047         result.
10048
10049 2012-01-27  Doug Evans  <dje@google.com>
10050
10051         * configure.ac (with_python): Fix absolute path handling for win32.
10052         * configure: Regenerate.
10053
10054 2012-01-26  Doug Evans  <dje@google.com>
10055
10056         * symtab.c: Whitespace cleanup, no code changes.
10057
10058         * symtab.c (lookup_symbol_in_language): Improve comment.
10059         (lookup_symbol_aux): Fix comment.
10060
10061         * psymtab.c (add_psymbol_to_list): Result is now "void".
10062         * psympriv.h (add_psymbol_to_list): Update.
10063
10064         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10065
10066 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10067
10068         Do not open script filenames twice.
10069         * cli/cli-cmds.c (source_script_from_stream): Pass to
10070         source_python_script also STREAM.
10071         * python/py-auto-load.c (source_section_scripts): Pass to
10072         source_python_script_for_objfile also STREAM.
10073         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10074         also INPUT.
10075         * python/python-internal.h (source_python_script_for_objfile): New
10076         parameter file, rename parameter file to filename.
10077         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10078         instead if !_WIN32.  Update the function comment.
10079         (source_python_script, source_python_script_for_objfile)
10080         (source_python_script): New parameter file, rename parameter file to
10081         filename.  Pass FILENAME to python_run_simple_file.
10082         * python/python.h (source_python_script): New parameter file, rename
10083         parameter file to filename.
10084
10085 2012-01-26  Pedro Alves  <palves@redhat.com>
10086
10087         * corelow.c (core_has_fake_pid): Delete.
10088         (core_close): Delete references to `core_has_fake_pid'.
10089         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10090         (core_open): Delete references to `core_has_fake_pid'.
10091         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10092         the removed global.
10093
10094 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10095
10096         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10097         Remove language parameter from name_matcher.  Adjust the comment.
10098         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10099         Remove language parameter.
10100         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10101         * linespec.c (iterate_name_matcher): Likewise.
10102         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10103         name_matcher.  Adjust call accordingly.
10104         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10105         (maintenance_check_symtabs): Adjust type of parameter "fun".
10106         * psymtab.h (maintenance_check_symtabs): Likewise.
10107
10108 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10109
10110         * language.h (symbol_name_match_p_ftype): New typedef.
10111         (struct language_defn): Replace field la_symbol_name_compare
10112         by la_get_symbol_name_match_p.
10113         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10114         (ada_language_defn): Use it.
10115         * linespec.c (struct symbol_matcher_data): New type.
10116         (iterate_name_matcher): Rewrite.
10117         (iterate_over_all_matching_symtabs): Pass a pointer to
10118         a symbol_matcher_data struct to expand_symtabs_matching
10119         instead of just the lookup name.
10120         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10121         opencl-lang.c, p-lang.c, language.c: Delete field
10122         la_symbol_name_compare, and replace by NULL for new field
10123         la_get_symbol_name_match_p.
10124         * symfile.h (struct quick_symbol_functions): Update comment.
10125
10126 2012-01-25  Tom Tromey  <tromey@redhat.com>
10127
10128         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10129         dereferencing.
10130
10131 2012-01-24  Tom Tromey  <tromey@redhat.com>
10132
10133         PR symtab/12406:
10134         * solib.c (update_solib_list): Update the program space's
10135         added_solibs and deleted_solibs fields.
10136         * progspace.h (struct program_space) <added_solibs,
10137         deleted_solibs>: New fields.
10138         (clear_program_space_solib_cache): Declare.
10139         * progspace.c (release_program_space): Call
10140         clear_program_space_solib_cache.
10141         (clear_program_space_solib_cache): New function.
10142         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10143         bpstat_stop_status.  Use handle_solib_event.
10144         * breakpoint.c: Include gdb_regex.h.
10145         (print_solib_event): New function.
10146         (bpstat_print): Use print_solib_event.
10147         (bpstat_stop_status): Add special case for bp_shlib_event.
10148         (handle_solib_event): New function.
10149         (bpstat_what): Use handle_solib_event.
10150         (struct solib_catchpoint): New.
10151         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10152         (breakpoint_hit_catch_solib, check_status_catch_solib)
10153         (print_it_catch_solib, print_one_catch_solib)
10154         (print_mention_catch_solib, print_recreate_catch_solib): New
10155         functions.
10156         (catch_solib_breakpoint_ops): New global.
10157         (catch_load_or_unload, catch_load_command_1)
10158         (catch_unload_command_1): New functions.
10159         (internal_bkpt_check_status): Add special case for
10160         bp_shlib_event.
10161         (internal_bkpt_print_it): Use print_solib_event.
10162         (initialize_breakpoint_ops): Initialize
10163         catch_solib_breakpoint_ops.
10164         (_initialize_breakpoint): Register "catch load" and "catch
10165         unload".
10166         * breakpoint.h (handle_solib_event): Declare.
10167         * NEWS: Add entry for "catch load" and "catch unload".
10168
10169 2012-01-24  Tom Tromey  <tromey@redhat.com>
10170
10171         * ada-lang.c: Include gdb_vecs.h.
10172         * charset.c: Include gdb_vecs.h.
10173         * tracepoint.h: Include gdb_vecs.h.
10174         * gdb_vecs.h: New file.
10175
10176 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10177
10178         * breakpoint.c (breakpoint_hit_catch_fork)
10179         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10180         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10181         * infrun.c (inferior_has_forked, inferior_has_vforked)
10182         (inferior_has_execd, inferior_has_called_syscall): Delete.
10183         (handle_syscall_event): Get syscall_number from the execution
10184         control state's wait status.
10185         (wait_for_inferior): Don't clear syscall_number.
10186
10187 2012-01-24  Pedro Alves  <palves@redhat.com>
10188
10189         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10190         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10191         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10192         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10193         `ws' parameter.
10194         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10195         false for events other than TARGET_SIGNAL_TRAP.
10196         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10197         Add `ws' parameter.
10198         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10199         events other than TARGET_SIGNAL_TRAP.
10200         (tracepoint_breakpoint_hit): Add `ws' parameter.
10201         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10202         parameter.
10203         (bpstat_stop_status): Same.
10204         (pc_at_non_inline_function): Same.
10205         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10206         to pass the current event's waitstatus to bpstat_stop_status
10207         and pc_at_non_inline_function.
10208
10209 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10210
10211         Code cleanup.
10212         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10213         Update the function comment for it.
10214         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10215         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10216         for STREAM.
10217
10218 2012-01-24  Pedro Alves  <palves@redhat.com>
10219
10220         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10221         outside `bs->stop' block.
10222         (bpstat_what): Rework bp_shlib_event handling.
10223         (internal_bkpt_check_status): If the breakpoint is a
10224         bp_shlib_event, then set bs->stop and bs->print if
10225         stop_on_solib_events is set.
10226
10227 2012-01-24  Gary Benson  <gbenson@redhat.com>
10228
10229         Delete #if 0'd out code.
10230         * stack.c (print_frame_label_vars): Remove.
10231         (catch_info): Likewise.
10232         (_initialize_stack): Remove "info catch" command.
10233         * NEWS: Mention the above.
10234
10235 2012-01-24  Pedro Alves  <palves@redhat.com>
10236
10237         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10238         it.
10239         (remote_notice_new_inferior): If the remote end doesn't support
10240         the multiprocess extensions, then the PID is fake.
10241         (add_current_inferior_and_thread): New.
10242         (remote_start_remote): Use it.
10243         (extended_remote_attach_1): Adjust.
10244         (extended_remote_create_inferior_1): Use
10245         add_current_inferior_and_thread.
10246
10247 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10248
10249         Fix watchpoints to be specific for each inferior.
10250         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10251         current_program_space.
10252         * i386-nat.c (i386_inferior_data_cleanup): New.
10253         (i386_inferior_data_get): Replace variable inf_data_local by an
10254         inferior_data call.
10255         (i386_use_watchpoints): Initialize i386_inferior_data.
10256         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10257         specific iterate_over_lwps.
10258
10259 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10260
10261         Fix watchpoints across inferior fork.
10262         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10263         comment for linux_nat_iterate_watchpoint_lwps.
10264         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10265         linux_nat_iterate_watchpoint_lwps.
10266         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10267         * i386-linux-nat.c (update_debug_registers_callback): Update the
10268         comment for linux_nat_iterate_watchpoint_lwps.
10269         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10270         linux_nat_iterate_watchpoint_lwps.
10271         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10272         * i386-nat.c: Include inferior.h.
10273         (dr_mirror): Remove.
10274         (i386_inferior_data, struct i386_inferior_data)
10275         (i386_inferior_data_get): New.
10276         (i386_debug_reg_state): Use i386_inferior_data_get.
10277         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10278         (i386_insert_watchpoint, i386_remove_watchpoint)
10279         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10280         (i386_remove_hw_breakpoint): New variable state, use
10281         i386_debug_reg_state instead of DR_MIRROR.
10282         * linux-nat.c (delete_lwp): New declaration.
10283         (num_lwps): Move here from downwards.
10284         (delete_lwp_cleanup): New.
10285         (linux_child_follow_fork): Create new child_lp, call
10286         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10287         PTRACE_DETACH.
10288         (num_lwps): Move upwards.
10289         (linux_nat_iterate_watchpoint_lwps): New.
10290         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10291         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10292
10293 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10294
10295         GDB 7.4 released.
10296
10297 2012-01-23  Pedro Alves  <palves@redhat.com>
10298
10299         * top.c (caution): Rename to ...
10300         (confirm): ... this.
10301         (show_caution): Rename to ...
10302         (show_confirm): ... this.
10303         (quit_cover): Adjust.
10304         (init_main): Adjust.
10305         * top.h (caution): Rename to ...
10306         (confirm): ... this.
10307         * utils.c (internal_vproblem, defaulted_query): Adjust.
10308
10309 2012-01-23  Pedro Alves  <palves@redhat.com>
10310
10311         * top.c (caution): Update comment.
10312         (execute_command): Don't consider the current value of `caution'.
10313
10314 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10315
10316         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10317
10318 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10319
10320         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10321         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10322         * target.c (target_fileio_pwrite): Remove buffer address from
10323         debug output.
10324         (target_fileio_pread): Likewise.
10325
10326 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10327
10328         * NEWS: Document remote "info proc" and "generate-core-file".
10329
10330 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10331
10332         * gdbarch.sh (find_memory_regions): New callback.
10333         * gdbarch.c, gdbarch.h: Regenerate.
10334
10335         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10336         callback before falling back to target method.
10337
10338         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10339         (linux_target_install_ops): No longer install it.
10340
10341         * linux-tdep.c (linux_find_memory_regions): New function.
10342         (linux_init_abi): Install it.
10343
10344 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10345
10346         * gdbarch.sh (make_corefile_notes): New architecture callback.
10347         * gdbarch.c: Regenerate.
10348         * gdbarch.h: Likewise.
10349
10350         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10351         before target_make_corefile_notes.  If NULL is returned, the
10352         target does not support core file generation.
10353
10354         * linux-nat.c: Include "linux-tdep.h".
10355         (find_signalled_thread, find_stop_signal): Remove.
10356         (linux_nat_do_thread_registers): Likewise.
10357         (struct linux_nat_corefile_thread_data): Likewise.
10358         (linux_nat_corefile_thread_callback): Likewise.
10359         (iterate_over_spus): Likewise.
10360         (struct linux_spu_corefile_data): Likewise.
10361         (linux_spu_corefile_callback): Likewise.
10362         (linux_spu_make_corefile_notes): Likewise.
10363         (linux_nat_collect_thread_registers): New function.
10364         (linux_nat_make_corefile_notes): Replace contents by call to
10365         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10366         as native-only callback.
10367
10368         * linux-tdep.h: Include "bfd.h".
10369         (struct regcache): Add forward declaration.
10370         (linux_collect_thread_registers_ftype): New typedef.
10371         (linux_make_corefile_notes): Add prototype.
10372         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10373         "regset.h", and "elf-bfd.h".
10374         (find_signalled_thread, find_stop_signal): New functions.
10375         (linux_spu_make_corefile_notes): Likewise.
10376         (linux_collect_thread_registers): Likewise.
10377         (struct linux_corefile_thread_data): New data structure.
10378         (linux_corefile_thread_callback): New funcion.
10379         (linux_make_corefile_notes): Likewise.
10380         (linux_make_corefile_notes_1): Likewise.
10381         (linux_init_abi): Install it.
10382
10383 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10384
10385         * gdbarch.sh (info_proc): New callback.
10386         * gdbarch.c, gdbarch.h: Regenerate.
10387
10388         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10389         before falling back to the target info_proc callback.
10390
10391         * linux-nat.c: Do not include "cli/cli-utils.h".
10392         (linux_nat_info_proc): Remove.
10393         (linux_target_install_ops): No longer install it.
10394
10395         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10396         (read_mapping): New function.
10397         (linux_info_proc): Likewise.
10398         (linux_init_abi): Install it.
10399
10400 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10401
10402         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10403         * infcmd.c: (info_proc_cmd_1): New function.
10404         (info_proc_cmd): New function, moved here from equivalent routine
10405         orignally in linux-nat.c.
10406         (info_proc_cmd_mappings): Likewise.
10407         (info_proc_cmd_stat): Likewise.
10408         (info_proc_cmd_status): Likewise.
10409         (info_proc_cmd_cwd): Likewise.
10410         (info_proc_cmd_cmdline): Likewise.
10411         (info_proc_cmd_exe): Likewise.
10412         (info_proc_cmd_all): Likewise.
10413         (_initialize_infcmd): Install "info proc" command and subcommands.
10414
10415         * target.h (struct target_ops): Add to_info_proc.
10416         (target_info_proc): Add prototype.
10417         * target.c (target_info_proc): New function.
10418
10419         * procfs.c (procfs_info_proc): Add prototype.
10420         (info_proc_cmd): Rename into ...
10421         (procfs_info_proc): ... this.  Update argument types as appropriate
10422         for a to_info_proc implementation.  Handle "what" argument.
10423         (procfs_target): Install procfs_info_proc.
10424         (_initialize_procfs): No longer install "info proc" command.
10425
10426         * linux-nat.c: (enum info_proc_what): Remove.
10427         (linux_nat_info_proc_cmd_1): Rename into ...
10428         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10429         for a to_info_proc implementation.
10430         (linux_nat_info_proc_cmd): Remove.
10431         (linux_nat_info_proc_cmd_mappings): Likewise.
10432         (linux_nat_info_proc_cmd_stat): Likewise.
10433         (linux_nat_info_proc_cmd_status): Likewise.
10434         (linux_nat_info_proc_cmd_cwd): Likewise.
10435         (linux_nat_info_proc_cmd_cmdline): Likewise.
10436         (linux_nat_info_proc_cmd_exe): Likewise.
10437         (linux_nat_info_proc_cmd_all): Likewise.
10438         (linux_target_install_ops): Install linux_nat_info_proc.
10439         (_initialize_linux_nat): No longer install "info proc" command
10440         and subcommands.
10441
10442 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10443
10444         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10445         * config.in, configure: Regenerate.
10446
10447         * target.h (struct target_ops): Add to_fileio_readlink.
10448         (target_fileio_readlink): Add prototype.
10449         * target.c (target_fileio_readlink): New function.
10450
10451         * inf-child.c: Conditionally include <sys/param.h>.
10452         (inf_child_fileio_readlink): New function.
10453         (inf_child_target): Install it.
10454
10455         * remote.c (PACKET_vFile_readlink): New enum value.
10456         (remote_hostio_readlink): New function.
10457         (init_remote_ops): Install it.
10458         (_initialize_remote): Handle vFile:readlink packet type.
10459
10460 2012-01-20  Pedro Alves  <palves@redhat.com>
10461             Ulrich Weigand  <ulrich.weigand@linaro.org>
10462
10463         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10464         * config.in, configure: Regenerate.
10465
10466         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10467         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10468         (target_fileio_open): Add prototype.
10469         (target_fileio_pwrite): Likewise.
10470         (target_fileio_pread): Likewise.
10471         (target_fileio_close): Likewise.
10472         (target_fileio_unlink): Likewise.
10473         (target_fileio_read_alloc): Likewise.
10474         (target_fileio_read_stralloc): Likewise.
10475
10476         * target.c: Include "gdb/fileio.h".
10477         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10478         (default_fileio_target): New function.
10479         (target_fileio_open): Likewise.
10480         (target_fileio_pwrite): Likewise.
10481         (target_fileio_pread): Likewise.
10482         (target_fileio_close): Likewise.
10483         (target_fileio_unlink): Likewise.
10484         (target_fileio_close_cleanup): Likewise.
10485         (target_fileio_read_alloc_1): Likewise.
10486         (target_fileio_read_alloc): Likewise.
10487         (target_fileio_read_stralloc): Likewise.
10488
10489         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10490         <fcntl.h>, and <unistd.h>.
10491         (inf_child_fileio_open_flags_to_host): New function.
10492         (inf_child_errno_to_fileio_error): Likewise.
10493         (inf_child_fileio_open): Likewise.
10494         (inf_child_fileio_pwrite): Likewise.
10495         (inf_child_fileio_pread): Likewise.
10496         (inf_child_fileio_close): Likewise.
10497         (inf_child_fileio_unlink): Likewise.
10498         (inf_child_target): Install to_fileio routines.
10499
10500         * remote.c (init_remote_ops): Install to_fileio routines.
10501
10502 2012-01-20  Pedro Alves  <palves@redhat.com>
10503             Ulrich Weigand  <ulrich.weigand@linaro.org>
10504
10505         * remote.c (remote_multi_process_p): Only check for multi-process
10506         protocol feature, do not check for extended protocol.
10507         (remote_supports_multi_process): Check for extended protocol here.
10508         (set_general_process): Likewise.
10509         (extended_remote_kill): Likewise.
10510         (remote_pid_to_str): Likewise.
10511         (remote_query_supported): Always query multiprocess mode.
10512
10513 2012-01-20  Pedro Alves  <palves@redhat.com>
10514             Ulrich Weigand  <ulrich.weigand@linaro.org>
10515
10516         * inferior.h (struct inferior): Add fake_pid_p.
10517         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10518         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10519         magic_null_ptid since the remote side doesn't provide a real PID.
10520
10521 2012-01-19  Tom Tromey  <tromey@redhat.com>
10522
10523         * NEWS: Combine the two Python sections.
10524
10525 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10526
10527         * target.h (target_close): Update comment on the target's unpush state.
10528
10529 2012-01-19  Pedro Alves  <palves@redhat.com>
10530
10531         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10532         linux_nat_async directly instead of going through the target
10533         vector.
10534         * target.c (unpush_target): Close target after unpushing it, not
10535         before.
10536
10537 2012-01-19  Gary Benson  <gbenson@redhat.com>
10538
10539         * mdebugread.c (sort_blocks): Replace integer constants with ones
10540         derived from FIRST_LOCAL_BLOCK.
10541
10542 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10543             Jan Kratochvil  <jan.kratochvil@redhat.com>
10544
10545         PR gdb/9538
10546         * symfile.c (find_separate_debug_file): New function.
10547         (terminate_after_last_dir_separator): Likewise.
10548         (find_separate_debug_file_by_debuglink): Also try realpath.
10549         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10550         * configure: Regenerate.
10551         * config.in: Regenerate.
10552
10553 2012-01-18  Doug Evans  <dje@google.com>
10554
10555         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10556         (main.o): Remove rule.
10557         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10558         (--with-sysroot): Rewrite.
10559         * configure: Regenerate.
10560         * config.in: Regenerate.
10561
10562 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10563
10564         * parse.c (initialize_expout): New function.
10565         (reallocate_expout): Likewise.
10566         (parse_exp_in_context): Use `initialize_expout' and
10567         `reallocate_expout' when appropriate.
10568
10569 2012-01-18  Pedro Alves  <palves@redhat.com>
10570
10571         * record.c (struct record_breakpoint, record_breakpoint_p)
10572         (record_breakpoints): New.
10573         (record_insert_breakpoint, record_remove_breakpoint): Manage
10574         record breakpoints list.  Only remove breakpoints from the
10575         inferior if they had been inserted there in the first place.
10576
10577 2012-01-17  Doug Evans  <dje@google.com>
10578
10579         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10580         if we know we don't have a file name to look for.
10581
10582 2012-01-17  Pedro Alves  <palves@redhat.com>
10583
10584         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10585         the frame's stop reason is UNWIND_UNAVAILABLE.
10586
10587 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10588
10589         Fix compilation error.
10590         * m2-exp.y (yyerror): Use ANSI C prototype.
10591
10592 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10593
10594         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10595         (growbuf_by_size): Likewise.
10596         (yyerror): Likewise.
10597         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10598         (modblock): Remove variable (was #if 0'ed).
10599         (parse_number): Convert prototype from K&R to ANSI C.
10600         (yyerror): Likewise.
10601         * objc-exp.y (parse_number): Likewise.
10602         (yyerror): Likewise.
10603         (yylex): Remove #if 0'ed code.
10604         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10605         (yyerror): Likewise.
10606
10607 2012-01-16  Tom Tromey  <tromey@redhat.com>
10608
10609         * NEWS: Add item.
10610         * symtab.h (compare_filenames_for_search): Declare.
10611         * symtab.c (compare_filenames_for_search): New function.
10612         (iterate_over_some_symtabs): Use it.
10613         * symfile.h (struct quick_symbol_functions)
10614         <map_symtabs_matching_filename>: Change spec.
10615         * psymtab.c (partial_map_symtabs_matching_filename): Use
10616         compare_filenames_for_search.  Update for new spec.
10617         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10618         compare_filenames_for_search.  Update for new spec.
10619         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10620
10621 2012-01-16  Tom Tromey  <tromey@redhat.com>
10622
10623         PR python/13281:
10624         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10625         (struct main_type) <flag_flag_enum>: New field.
10626         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10627         * NEWS: Add entries.
10628         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10629         enums.
10630         * python/lib/gdb/printing.py (_EnumInstance): New class.
10631         (FlagEnumerationPrinter): Likewise.
10632
10633 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10634
10635         * breakpoint.c (create_sals_from_address_default): New function.
10636         (create_breakpoints_sal_default): Likewise.
10637         (decode_linespec_default): Likewise.
10638         (is_marker_spec): Removed.
10639         (strace_marker_p): New function.
10640         (init_breakpoint_sal): Using `strace_marker_p' instead of
10641         `is_marker_spec'.
10642         (create_breakpoint): Call method `create_sals_from_address' from
10643         breakpoint_ops, replacing code that created SALs conditionally
10644         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10645         replacing code that created breakpoints conditionally on the type
10646         wanted.
10647         (base_breakpoint_create_sals_from_address): New function.
10648         (base_breakpoint_create_breakpoints_sal): Likewise.
10649         (base_breakpoint_decode_linespec): Likewise.
10650         (base_breakpoint_ops): Add methods
10651         `base_breakpoint_create_sals_from_address',
10652         `base_breakpoint_create_breakpoints_sal' and
10653         `base_breakpoint_decode_linespec'.
10654         (bkpt_create_sals_from_address): New function.
10655         (bkpt_create_breakpoints_sal): Likewise.
10656         (bkpt_decode_linespec): Likewise.
10657         (tracepoint_create_sals_from_address): Likewise.
10658         (tracepoint_create_breakpoints_sal): Likewise.
10659         (tracepoint_decode_linespec): Likewise.
10660         (strace_marker_create_sals_from_address): Likewise.
10661         (strace_marker_create_breakpoints_sal): Likewise.
10662         (strace_marker_decode_linespec): Likewise.
10663         (strace_marker_breakpoint_ops): New variable.
10664         (addr_string_to_sals): Remove `marker_spec'.  Call method
10665         `decode_linespec' from breakpoint_ops, replacing code that decoded
10666         an address string into a SAL.  Use `strace_marker_p' instead of
10667         `marker_spec'.
10668         (strace_command): Decide whether we are dealing with a static
10669         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10670         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10671         * breakpoint.h (linespec_result, linespec_sals): New forward
10672         declarations.
10673         (breakpoint_ops) <create_sals_from_address>,
10674         <create_breakpoints_sal>, <decode_linespec>: New methods.
10675
10676 2012-01-14  Doug Evans  <dje@google.com>
10677
10678         * NEWS: Update text for "maint set python print-stack".
10679         It is deprecated in gdb 7.4 and deleted in 7.5.
10680
10681 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10682
10683         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10684         including curses.h.
10685
10686 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10687
10688         * configure: Regenerate.
10689         * config.in: Regenerate.
10690
10691 2012-01-12  Keith Seitz  <keiths@redhat.com>
10692
10693         PR mi/10586
10694         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10695         (ANONYMOUS_UNION_NAME): Define.
10696         (is_path_expr_parent): New function.
10697         (get_path_expr_parent): New function.
10698         (is_anonymous_child): New function.
10699         (create_child_with_value): If the child is anonymous and without
10700         a name, assign an object name to it.
10701         (c_describe_child): Use get_path_expr_parent to determine
10702         the parent expression.
10703         If there field represents an anonymous struct or union and
10704         has no name, set an appropriate display name and expression.
10705         (cplus_describe_child): Likewise.
10706
10707 2012-01-12  Pedro Alves  <palves@redhat.com>
10708
10709         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10710         available when %ebp is found to be zero (outermost).
10711
10712 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10713
10714         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10715         an internal gdb_static_assert.
10716         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10717
10718 2012-01-11  Tom Tromey  <tromey@redhat.com>
10719
10720         PR gdb/9598:
10721         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10722         catch" and "catch throw".
10723
10724 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10725
10726         * blockframe.c (block_innermost_frame): Start search from selected
10727         frame, if present, or otherwise the current frame.
10728
10729         * c-exp.y (variable): Update innermost_block for
10730         'block COLONCOLON NAME' clause.
10731         * m2-exp.y (variable): Ditto.
10732         * objc-exp.y (variable): Ditto.
10733
10734 2012-01-10  Tom Tromey  <tromey@redhat.com>
10735
10736         PR python/13199:
10737         * python/python.c (finish_python_initialization): Set sys.argv.
10738
10739 2012-01-10  Doug Evans  <dje@google.com>
10740
10741         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10742         "want_line_info".  All callers updated.
10743         (dwarf_decode_lines_1): New function.
10744         (handle_DW_AT_stmt_list): Add function comment.
10745         New arg "want_line_info".  All callers updated.
10746         (read_file_scope,read_type_unit_scope): Move comment from
10747         handle_DW_AT_stmt_list to here.
10748
10749 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10750
10751         Fix regression after libiberty/ update for GCC PR 6057 and others.
10752         * c-exp.y (operator) <OPERATOR DELETE>
10753         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10754         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10755         (make_builtin_type, make_name): New variable i, add gdb_assert.
10756         (operator) <OPERATOR NEW>: Update ARGS to 3.
10757         (operator) <OPERATOR DELETE>: Add trailing space.
10758         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10759         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10760         * cp-support.c (cp_canonicalize_string): Check NULL from
10761         cp_comp_to_string, call warning and return.
10762
10763 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10764
10765         Fix duplicate .o files after omitting libbfd.a.
10766         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10767         (SFILES): Add corelow.c.
10768         (COMMON_OBS): Add corelow.o.
10769         (ALLDEPFILES): Remove corelow.c.
10770         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10771         * config/alpha/alpha-osf3.mh: Likewise.
10772         * config/alpha/fbsd.mh: Likewise.
10773         * config/arm/nbsdaout.mh: Likewise.
10774         * config/arm/nbsdelf.mh: Likewise.
10775         * config/i386/i386gnu.mh: Likewise.
10776         * config/ia64/hpux.mh: Likewise.
10777         * config/ia64/linux.mh: Likewise.
10778         * config/m32r/linux.mh: Likewise.
10779         * config/m68k/linux.mh: Likewise.
10780         * config/mips/irix5.mh: Likewise.
10781         * config/mips/irix6.mh: Likewise.
10782         * config/pa/hpux.mh: Likewise.
10783         * config/pa/linux.mh: Likewise.
10784         * config/powerpc/aix.mh: Likewise.
10785         * config/sparc/linux.mh: Likewise.
10786         * config/sparc/linux64.mh: Likewise.
10787         * config/sparc/sol2.mh: Likewise.
10788         * config/vax/vax.mh: Likewise.
10789         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10790         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10791         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10792         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10793         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10794         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10795         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10796         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10797         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10798         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10799         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10800         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10801         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10802         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10803         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10804         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10805         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10806         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10807         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10808         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10809         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10810         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10811         corelow.o from gdb_target_obs.
10812         * corefile.c (core_target): Update the comment on NULL value.
10813         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10814         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10815         MATCHES.  Drop YUMMY set on NULL.
10816         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10817         reclaim CORE_DATA if it is already NULL.
10818
10819 2012-01-09  Doug Evans  <dje@google.com>
10820
10821         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10822         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10823
10824 2012-01-09  Keith Seitz  <keiths@redhat.com>
10825
10826         * breakpoint.c (wrapper.h): Don't include.
10827
10828 2012-01-09  Keith Seitz  <keiths@redhat.com>
10829
10830         * Makefile.in (SFILES): Remove wrapper.c.
10831         (HFILES_NO_SRCDIR): Remove wrapper.h.
10832         (COMMON_OBS): Remove wrapper.o.
10833         * cli/cli-interp.c: Don't inlude wrapper.h.
10834         * corelow.c: Likewise.
10835         (core_open): Replace gdb_target_find_new_threads with
10836         TRY_CATCH around target_find_new_threads.
10837         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10838         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10839         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10840         evaluate_expression.
10841         (varobj_set_value): Likewise for evaluate_expression and
10842         value_assign.
10843         (install_new_variable): Likewise for value_fetch_lazy.
10844         (adjust_value_for_child_access): Likewise for value_ind.
10845         (c_describe_child): Likewise for value_subscript and
10846         value_ind.
10847         (c_value_of_root): Likewise for evaluate_expression.
10848         * wrapper.c: Remove.
10849         * wrapper.h: Remove.
10850
10851 2012-01-09  Doug Evans  <dje@google.com>
10852
10853         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10854         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10855         "abfd" args with "section".  All callers updated.
10856         Error checking code moved ...
10857         (error_check_comp_unit_head): ... here.  New function.
10858         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10859         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10860         (create_debug_types_hash_table): Simplify by using
10861         read_and_check_type_unit_head.
10862
10863         * parser-defs.h (namecopy): Delete.
10864         * parse.c (namecopy, namecopy_size): Move into copy_name.
10865
10866 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10867
10868         Partially fix duplicate .o files after omitting libbfd.a.
10869         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10870         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10871         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10872         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10873         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10874         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10875         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10876
10877 2012-01-09  Pedro Alves  <palves@redhat.com>
10878
10879         * MAINTAINERS: Update my email address.
10880
10881 2012-01-08  Doug Evans  <dje@google.com>
10882
10883         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10884         n_type_units.  Rename type_comp_units to all_type_units.
10885         All uses updated.
10886         (add_signatured_type_cu_to_table): Renamed from
10887         add_signatured_type_cu_to_list.  All callers updated.
10888
10889         * gdbtypes.h (struct cplus_struct_type): Delete member
10890         nfn_fields_total.  All uses removed.
10891
10892 2012-01-06  Doug Evans  <dje@google.com>
10893
10894         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10895         to top of file.
10896         (dwarf2_find_comp_unit): Delete.
10897         (process_psymtab_comp_unit): Make result "void".
10898         Delete args buffer, info_ptr, buffer_size, and replace with
10899         "section".  All callers updated.
10900         (dwarf2_build_psymtabs_hard): Simplify.
10901
10902 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10903             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10904
10905         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10906         before `struct gdb_exception'.
10907         * breakpoint.c (update_global_location_list_nothrow)
10908         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10909         * cp-abi.c (value_rtti_type): Likewise.
10910         * cp-support.c (cp_validate_operator): Likewise.
10911         * infrun.c (insert_exception_resume_breakpoint)
10912         (check_exception_resume, keep_going): Likewise.
10913         * mi-interp.c (mi_breakpoint_created)
10914         (mi_breakpoint_modified): Likewise.
10915         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10916         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10917         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10918
10919 2012-01-05  Doug Evans  <dje@google.com>
10920
10921         * dwarf2read.c (statement_prologue): Delete, unused.
10922
10923         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10924         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10925
10926         * dwarf2read.c (comp_unit_header): Delete, unused.
10927
10928 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10929
10930         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10931         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10932
10933 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10934
10935         * infrun.c (normal_stop): Don't skip calling the normal_stop
10936         observers if the thread was doing a multi-step, but stopped for
10937         some reason other than stepping.
10938
10939 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
10940
10941         * cli/cli-decode.h: Add comments.
10942         (CMD_LIST_AMBIGUOUS): Moved to command.h
10943         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10944         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10945         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10946         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10947         (add_com, add_com_alias, add_info, add_info_alias)
10948         (complete_on_cmdlist, complete_on_enum, help_list): Remove
10949         declarations.
10950         * command.h: Add and adjust comments.
10951         (CMD_LIST_AMBIGUOUS): Moved here.
10952         (help_cmd, help_cmd_list): Delete declarations.
10953
10954 2012-01-04  Doug Evans  <dje@google.com>
10955
10956         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10957         All callers updated.
10958         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10959         Replace all arguments with "per_cu".  All callers updated.
10960
10961         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10962
10963         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10964         New arg "per_cu".  All callers updated.
10965
10966         Delete #if 0'd out code.
10967         * language.c (binop_result_type): Delete.
10968         (simple_type, ordered_type, same_type, integral_type): Delete.
10969         (numeric_type, character_type, string_type, boolean_type): Delete.
10970         (float_type, structured_type): Delete.
10971         * language.h: Update.
10972
10973 2012-01-04  Tom Tromey  <tromey@redhat.com>
10974
10975         * python/py-value.c (valpy_binop): Initialize 'res_val'.
10976
10977 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10978
10979         * corefile.c (close_exec_file): Delete.
10980         (reopen_exec_file): Remove commented out code that seems related
10981         to close_exec_file, which is being deleted here.
10982         * inferior.h (close_exec_file): Delete.
10983         * fork-child.c (fork_inferior): Remove call to fork_inferior.
10984
10985 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10986
10987         * ada-lang.c: #include "cli/cli-utils.h".
10988         (get_selections): Use skip_spaces.
10989         (ada_get_next_arg): Use skip_spaces and skip_to_space.
10990         (catch_ada_exception_command_split): Use skip_spaces.
10991         (ada_decode_assert_location): Likewise.
10992
10993 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10994
10995         * linespec.c (decode_line_internal): Check for C++ or Java
10996         compound constructs only if the current language is C, C++
10997         or Java.
10998
10999 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11000
11001         Revert:
11002         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11003                     Joel Brobecker  <brobecker@adacore.com>
11004         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11005         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11006         3 times.
11007         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11008         fall through into AT_ENTRY_POINT.
11009         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11010         DUMMY_ADDR with it.
11011         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11012         PPC_INSN_SIZE skip to 3 times.
11013
11014 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11015
11016         * linespec.c (add_minsym): Preserve function descriptors.
11017
11018 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11019
11020         * breakpoint.c (all_locations_are_pending): Consider locations
11021         in program spaces executing during startup pending as well.
11022
11023 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11024
11025         Copyright year update in most files of the GDB Project.
11026
11027 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11028
11029         * copyright.sh: Delete.
11030         * copyright.py: Rewrite.
11031
11032 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11033
11034         * gnulib/extra/update-copyright: New file, imported from gnulib.
11035
11036 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11037
11038         * README (Copyright and License Notices): New section.
11039
11040 2012-01-03  Tom Tromey  <tromey@redhat.com>
11041
11042         PR python/12533:
11043         * python/py-value.c (valpy_dereference, valpy_get_address
11044         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11045         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11046         (valpy_absolute, valpy_richcompare): Free intermediate values.
11047
11048 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11049
11050         * ada-lang.c: Reformat the copyright notice.
11051
11052 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11053
11054         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11055         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11056         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11057         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11058         Revert this part of:
11059         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11060         Build gdb directly from *.o files not using libgdb.a.
11061         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11062
11063 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11064
11065         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11066         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11067         Reformat the copyright header.
11068
11069 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11070
11071         Revert this part of:
11072         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11073         Remove the gdbtui binary.
11074         * gdb.c (main): Remove args.interpreter_p initialization.
11075         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11076         * main.h (struct captured_main_args): Remove interpreter_p.
11077
11078 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11079
11080         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11081
11082 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11083
11084         * top.c (print_gdb_version): Update copyright year.
11085
11086 2012-01-02  Yao Qi  <yao@codesourcery.com>
11087
11088         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11089
11090 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11091             Joel Brobecker  <brobecker@adacore.com>
11092
11093         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11094         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11095         3 times.
11096         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11097         fall through into AT_ENTRY_POINT.
11098         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11099         DUMMY_ADDR with it.
11100         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11101         PPC_INSN_SIZE skip to 3 times.
11102
11103 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11104
11105         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11106         the return value.
11107         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11108
11109 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11110
11111         Build gdb directly from *.o files not using libgdb.a.
11112         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11113         (COMMON_OBS): Remove solib-target.o.
11114         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11115         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11116         (LIBGDB_OBS, libgdb.a): Move it above.
11117         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11118         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11119         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11120         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11121         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11122         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11123         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11124         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11125         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11126         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11127         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11128         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11129         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11130         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11131         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11132         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11133         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11134         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11135         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11136         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11137         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11138         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11139         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11140         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11141         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11142         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11143         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11144
11145 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11146
11147         Remove the gdbtui binary.
11148         * .gitignore (/gdbtui): Remove.
11149         * Makefile.in (TUI): Remove.
11150         (SUBDIR_TUI_OBS): Remove tui-main.o.
11151         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11152         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11153         (tui-main.o): Remove.
11154         (all_object_files): Remove tui-main.o.
11155         * NEWS: New note for the gdbtui removal.
11156         * configure: Rebuilt.
11157         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11158         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11159         CONFIG_UNINSTALL respectively.
11160         * gdb.c (main): Remove args.interpreter_p initialization.
11161         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11162         * main.h (struct captured_main_args): Remove interpreter_p.
11163         * tui/tui-main.c: Remove.
11164
11165 2012-01-01  Doug Evans  <dje@google.com>
11166
11167         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11168         (dwarf2_physname, read_import_statement): Ditto.
11169         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11170         (process_structure_scope read_subroutine_type): Ditto.
11171         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11172         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11173         (dwarf2_fetch_die_location_block): Ditto.
11174         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11175
11176         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11177         All callers updated.
11178         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11179         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11180         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11181
11182         * dwarf2read.c (load_cu): Move assert to more useful location.
11183
11184         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11185         All callers updated.
11186
11187         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11188         (dwarf2_elf_names): Minor reformat.
11189         (dwarf2_per_cu_data): Tweak comment.
11190         (dwarf2_read_section): Fix comment.
11191         (create_all_comp_units): Fix comment.
11192         (load_full_comp_unit): Fix comment.
11193         (process_full_comp_unit): Fix comment.
11194         (read_signatured_type): Fix comment.
11195
11196 For older changes see ChangeLog-2011.
11197 \f
11198 Local Variables:
11199 mode: change-log
11200 left-margin: 8
11201 fill-column: 74
11202 version-control: never
11203 coding: utf-8
11204 End: