gdb/
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-11-06  Pedro Alves  <palves@redhat.com>
2
3         PR gdb/14810
4
5         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
6
7 2012-11-06  Pierre Muller  <muller@sourceware.org>
8
9         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
10         is not executable.
11
12 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
13
14         * gnulib/update-gnulib.sh: New script.
15
16 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
17
18         * MAINTAINERS: Update my email address.
19
20 2012-11-05  Tom Tromey  <tromey@redhat.com>
21
22         * frame.c (put_frame_register): Don't use temporary buffer.
23
24 2012-11-05  Pedro Alves  <palves@redhat.com>
25
26         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
27         child.  Clear 'pending_detach'.
28         * infrun.c (handle_vfork_child_exec_or_exit): Clear
29         'pending_detach' in the vfork parent.
30
31 2012-11-05  Doug Evans  <dje@google.com>
32
33         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
34         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
35         * dwarf2read.c: #include "elf-bfd.h".
36         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
37         (dwop_section_names): Renamed from dwo_section names.  All uses
38         updated.  Add entries for .debug_cu_index, .debug_tu_index.
39         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
40         All uses updated.
41         (struct dwp_sections): New type.
42         (struct virtual_dwo_sections): New type.
43         (struct dwp_hash_table): New type.
44         (struct dwp_file): New type.
45         (init_cutu_and_read_dies): Ensure DWO info/types section has been
46         read in.  Handle DWOs coming from DWP files.
47         (lookup_dwo_file_slot): New function.
48         (dwarf2_locate_dwo_sections): Move definition closer to use.
49         (create_dwo_debug_info_hash_table_reader): Renamed from
50         create_debug_info_hash_table_reader.  All callers updated.
51         (create_dwo_debug_info_hash_table): Renamed from
52         create_debug_info_hash_table.  All callers updated.
53         (create_dwp_hash_table): New function.
54         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
55         (lookup_dwo_in_dwp): New function.
56         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
57         is_dwp.  All callers updated.
58         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
59         (open_and_init_dwo_file): Renamed from init_dwo_file.
60         All callers updated.
61         (lookup_dwo_file): Delete.
62         (dwarf2_locate_dwp_sections): New function.
63         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
64         (allocate_dwp_loaded_cutus_table): New function.
65         (open_and_init_dwp_file): New function.
66         (lookup_dwo_cutu): New function.
67         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
68
69 2012-11-03  Yao Qi  <yao@codesourcery.com>
70
71         Fix PR gdb/14617.
72         * breakpoint.c (trace_pass_set_count): Call
73         observer_notify_breakpoint_modified instead of
74         observer_notify_tracepoint_modified.
75         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
76
77 2012-11-02  Tom Tromey  <tromey@redhat.com>
78
79         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
80         argument to complete_on_enum.
81
82 2012-11-02  Tom Tromey  <tromey@redhat.com>
83
84         * configure: Rebuild.
85         * configure.ac (build_warnings): Add -Wempty-body.
86         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
87         * remote.c (handle_notification): Use braces for empty 'else' body.
88         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
89         'else' body.
90         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
91         'else' body.
92         * solib-som.c (som_relocate_section_addresses): Use braces
93         for empty 'else' body.
94         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
95         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
96
97 2012-11-02  Pedro Alves  <palves@redhat.com>
98
99         PR gdb/14766
100
101         * infrun.c (handle_inferior_event)
102         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
103         null_ptid before handling a vfork child exec or exit.  Switch to
104         the event ptid afterwards.
105
106 2012-11-02  Yao Qi  <yao@codesourcery.com>
107
108         * std-operator.def: Remove OP_LABELED.
109         * eval.c: Remove the declaration of 'get_label'.
110         (get_label): Remove.
111         (evaluate_struct_tuple): Remove code handling OP_LABELED.
112         Update comment.
113         Remove local variable 'variantno' and related code.
114         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
115         with 'fieldno'.
116         * expprint.c (print_subexp_standard): Likewise.
117         (dump_subexp_body_standard): Likewise.
118         * parse.c (operator_length_standard): Likewise.
119
120 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
121
122         Incorporate ARI web page generator into GDB sources.
123         * contrib/ari/create-web-ari-in-src.sh: New file.
124         * contrib/ari/gdb_ari.sh: New file.
125         * contrib/ari/gdb_find.sh: New file.
126         * contrib/ari/update-web-ari.sh: New file.
127
128 2012-10-31  Tom Tromey  <tromey@redhat.com>
129
130         * gdbarch.c: Rebuild.
131         * gdbarch.sh: Remove references to gdbarch_swap.
132         * corelow.c (core_open): Remove obsolete comment.
133
134 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
135
136         PR cli/14772
137         * c-typeprint.c (c_print_type): Don't print a space for vector
138         types, this is handled within the suffix.
139         (c_type_print_varspec_suffix): Add a space to vector suffix.
140
141 2012-10-26  Pedro Alves  <palves@redhat.com>
142
143         * amd64-tdep.c (amd64_relocate_instruction): Use
144         store_unsigned_integer instead of memcpy.
145         * i386-tdep.c (i386_relocate_instruction): Ditto.
146
147 2012-10-26  Pedro Alves  <palves@redhat.com>
148
149         * infrun.c (handle_inferior_event): Merge handling of
150         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
151         switch case.
152
153 2012-10-26  Pedro Alves  <palves@redhat.com>
154
155         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
156         Remove comment.
157
158 2012-10-26  Pedro Alves  <palves@redhat.com>
159
160         * target.c (target_waitstatus_to_string): Handle
161         TARGET_WAITKIND_VFORK_DONE.
162
163 2012-10-26  Pedro Alves  <palves@redhat.com>
164
165         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
166         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
167
168 2012-10-24  Tristan Gingold  <gingold@adacore.com>
169
170         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
171         Add comments.
172
173 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
174
175         * ravenscar-thread.c (ravenscar_wait): Only update the list
176         of threads and inferior_ptid if the inferior is still alive.
177
178 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
179
180         * ada-lang.c (is_known_support_routine): Use lbasename when
181         matching the symtab's filename against
182         known_runtime_file_name_patterns.
183
184 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
185
186         * ada-lang.c (ada_same_array_size_p): New function.
187         (ada_promote_array_of_integrals): New function.
188         (coerce_for_assign): Add handling of arrays where the elements
189         are integrals of a smaller size than the size of the target
190         array element type.
191
192 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
193
194         * doublest.c (convert_doublest_to_floatformat): Fix comparison
195         against maximum exponent value.
196
197 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
198
199         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
200         "unwind-seh.c".
201
202 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
203
204         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
205         strip typedef layer when computing the fixed type's field type,
206         only when computing its size.
207
208 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
209
210         PR gdb/12783
211         * i386-tdep.c (i386_return_value): Handle complex double and long
212         double.
213
214 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
215
216         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
217         New local variable args_len.
218         Quote the name of the executable when computing the command line.
219
220 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
221
222         PR gdb/12796
223         PR gdb/12798
224         PR gdb/12800
225         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
226         AMD64_FTAG_REGNUM.
227         * amd64-tdep.c (amd64_classify): Classify complex types.
228         (amd64_return_value): Handle the COMPLEX_X87 class.
229
230 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
231
232         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
233         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
234
235 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
236
237         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
238         function.
239         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
240         to amd64_windows_auto_wide_charset.
241
242 2012-10-23  Yao Qi  <yao@codesourcery.com>
243
244         * event-top.c (mark_async_signal_handler_wrapper): Remove.
245         * event-top.h: Remove its declaration.
246         (async_request_quit): Call mark_async_signal_handler instead of
247         mark_async_signal_handler_wrapper.
248         (async_do_nothing, async_disconnect): Likewise.
249         (async_stop_sig): Likewise.
250         * remote.c (handle_remote_sigint): Likewise.
251         (handle_remote_sigint_twice): Likewise.
252
253 2012-10-23  Yao Qi  <yao@codesourcery.com>
254
255         * event-top.c (sigint_token, sighup_token): Replace 'void *'
256         with 'static struct async_signal_handler *'.
257         (sighup_token, sigquit_token, sigstp_token): Likewise.
258
259 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
260
261         * gdbarch.sh (function_list): Use 'pstring' when printing
262         a variable which could return NULL.
263         * gdbarch.c: Regenerate.
264
265 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
266             Tom Tromey  <tromey@redhat.com>
267
268         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
269         inneffective if condition by gdb assertion.  Add function
270         description comment.
271
272 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
273
274         * parser-defs.h (struct exp_descriptor): Document constraint
275         on return value for "op_name" callbacks.
276
277 2012-10-18  Tom Tromey  <tromey@redhat.com>
278
279         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
280         * symtab.c (iterate_over_some_symtabs): Constify.
281         * source.h (symtab_to_fullname): Return 'const char *'.
282         * source.c (symtab_to_fullname): Return 'const char *'.
283         * python/py-symtab.c (stpy_fullname): Constify.
284         * cli/cli-cmds.c (edit_command): Constify.
285         * breakpoint.c (print_breakpoint_location)
286         (update_static_tracepoint): Constify.
287
288 2012-10-18  Tom Tromey  <tromey@redhat.com>
289
290         * breakpoint.c (compare_breakpoints): Fix comparison.
291
292 2012-10-18  Tom Tromey  <tromey@redhat.com>
293
294         * valprint.c (generic_emit_char, generic_printstr): Pass size of
295         gdb_wchar_t to convert_between_encodings.
296
297 2012-10-17  Yao Qi  <yao@codesourcery.com>
298
299         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
300         more parameter 'inferior'.
301         * corefile.c (write_memory_with_notification): Caller update.
302
303         * mi/mi-cmd-var.c: Include "mi-main.h".
304         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
305         to 1 and restore it later.
306         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
307         and "data-write-memory-bytes.
308         * mi/mi-interp.c: Include objfiles.h.
309         (mi_interpreter_init): Call observer_attach_memory_changed.
310         (mi_memory_changed): New.
311         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
312         New field.
313
314         * NEWS: Mention new MI notification "memory-changed".
315
316 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
317
318         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
319
320 2012-10-15  Doug Evans  <dje@google.com>
321
322         New option -nh: inhibit loading of ~/.gdbinit.
323         * NEWS: Mention -nh.
324         * main.c (captured_main): Recognize and process -nh.
325         (print_gdb_help): Mention -nh.
326         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
327
328 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
329
330         PR backtrace/14646
331         PR gdb/14647
332         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
333         pc_regnum_from_eax.
334         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
335         nor pc_regnum_from_eax.
336         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
337         nor pc_regnum_from_eax.
338
339 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
340
341         Fix entry values resolving in inlined frames.
342         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
343         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
344         entries of FRAME.
345
346 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
347
348         * configure.ac: Build with -DMS_WIN64 if building with Python
349         enabled using GCC on amd64-windows.
350         * configure: Regenerate.
351
352 2012-10-15  Tom Tromey  <tromey@redhat.com>
353
354         PR python/14635:
355         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
356         to Py_None.
357
358 2012-10-15  Tom Tromey  <tromey@redhat.com>
359
360         PR python/14634:
361         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
362
363 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
364
365         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
366         reset thread numbering back to 1.
367
368 2012-10-11  Doug Evans  <dje@google.com>
369
370         PR breakpoints/14643.
371         * linespec.c (struct ls_parser): New member keyword_ok.
372         (linespec_lexer_lex_string): Add comment.
373         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
374         for one.
375         (parse_linespec): Set keyword_ok.
376
377 2012-10-10  Doug Evans  <dje@google.com>
378
379         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
380         "0x" prefix on address in log message.
381
382         * dwarf2read.c (read_1_byte): Add const to buf parameter.
383         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
384         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
385         (lookup_dwo_file): Add const to dwo_name parameter.
386         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
387
388 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
389
390         Fix crash during stepping on ppc32.
391         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
392         SYM.
393
394 2012-10-03  Doug Evans  <dje@google.com>
395
396         PR symtab/14601
397         * buildsym.c (buildsym_init): Reset using_directives to NULL.
398
399 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
400
401         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
402         output and use uint32_t not long to ensure 4 byte size.
403
404 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
405
406         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
407         unref'ed it.
408
409 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
410
411         * target.c (simple_search_memory): Include access length in
412         warning message.
413
414 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
415             Edjunior Machado  <emachado@linux.vnet.ibm.com>
416
417         PR gdb/13989
418         * solib.c (solib_find): Prevent GDB from loading native libraries when
419         debugging a cross-target corefile.
420
421 2012-09-28  selven  <pcthegreat@gmail.com>
422
423         Make definition match declaration.
424
425         * regcache.c (regcache_register_status): Change return type to
426         enum register_status.
427
428 2012-09-28  Yao Qi  <yao@codesourcery.com>
429
430         * mi/mi-main.c (mi_cmd_data_write_memory): Call
431         write_memory_with_notification instead of write_memory.
432         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
433         instead of target_write_memory.
434
435 2012-09-28  Yao Qi  <yao@codesourcery.com>
436
437         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
438         when the length of content is not an even number.
439
440 2012-09-27  Tom Tromey  <tromey@redhat.com>
441
442         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
443         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
444
445 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
446
447         * sol-thread.c (sol_thread_fetch_registers)
448         (sol_thread_store_registers): Delete commented out code.
449
450 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
451
452         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
453         Move these functions to sparc-sol-thread.c.
454         * sparc-sol-thread.c: New file.
455         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
456         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
457         configurations.
458         * configure: Regenerate.
459
460 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
461
462         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
463         Remove commented-out code.
464
465 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
466
467         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
468         Enable this code for sparc hosts only.
469
470 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
471
472         * procfs.h (procfs_find_LDT_entry): Add declaration.
473         * sol-thread.c (ps_lgetLDT): Delete local declaration of
474         function procfs_find_LDT_entry.
475
476 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
477
478         * procfs.c (proc_get_LDT_entry): Make static.
479
480 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
481
482         * procfs.c (proc_find_memory_regions): Fix declaration.
483
484 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
485
486         * amd64-tdep.c (amd64_return_value): Revert previous change
487         that used TYPE_LENGTH directly.
488         * bfin-tdep.c (bfin_extract_return_value): Likewise.
489         (bfin_store_return_value): Likewise.
490         * cris-tdep.c (cris_store_return_value): Likewise.
491         (cris_extract_return_value): Likewise.
492         * h8300-tdep.c (h8300_extract_return_value): Likewise.
493         * hppa-tdep.c (hppa64_return_value): Likewise.
494         * lm32-tdep.c (lm32_store_return_value): Likewise.
495         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
496         * spu-tdep.c (spu_value_from_register): Likewise.
497         * vax-tdep.c (vax_return_value): Likewise.
498
499 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
500
501         * gdbtypes.c (lookup_array_range_type): Expand parameters
502         LOW_BOUND and HIGH_BOUND to LONGEST.
503         (lookup_string_range_type): Likewise.
504         * gdbtypes.h (lookup_array_range_type): Likewise.
505         (lookup_string_range_type): Likewise.
506         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
507         Expand HIGHBOUND to ssize_t.
508         (value_string): Likewise.
509         * value.h (value_cstring): Expand parameter LEN to ssize_t.
510         (value_string): Likewise.
511
512 2012-09-27  Yao Qi  <yao@codesourcery.com>
513
514         PR breakpoints/13898
515         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
516         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
517         per breakpoint type.
518
519 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
520
521         * procfs.c: Add gdb_bfd header.
522         * rs6000-nat.c: Likewise.
523         * solib-pa64.c: Likewise.
524         * spu-linux-nat.c: Likewise.
525         * windows-nat.c: Likewise.
526
527 2012-09-26  Tom Tromey  <tromey@redhat.com>
528
529         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
530
531 2012-09-26  Tom Tromey  <tromey@redhat.com>
532
533         * dwarf2read.c (mark_common_block_symbol_computed): New function.
534         (read_common_block): Handle child DIEs with
535         DW_AT_data_member_location.
536         (new_symbol_full): Add special case for common blocks.
537
538 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
539             Tom Tromey  <tromey@redhat.com>
540
541         * dwarf2read.c (read_common_block): Rewrite.
542         (new_symbol_full): Handle DW_TAG_common_block.
543         * f-lang.c (head_common_list, find_common_for_function):
544         Remove.
545         * f-lang.h (struct common_entry, struct saved_f77_common,
546         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
547         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
548         BLANK_COMMON_NAME_LOCAL): Remove.
549         (struct common_block): New.
550         * f-valprint.c (list_all_visible_commons): Remove.
551         (info_common_command_for_block): New function.
552         (info_common_command): Use it.
553         * stack.c (iterate_over_block_locals): Special case for
554         COMMON_BLOCK_DOMAIN.
555         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
556         constant.
557         (struct general_symbol_info) <value.common_block>: New field.
558         (SYMBOL_VALUE_COMMON_BLOCK): New define.
559
560 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
561             Tom Tromey  <tromey@redhat.com>
562
563         * f-lang.c (allocate_saved_bf_node,
564         allocate_saved_function_node, allocate_saved_f77_common_node,
565         allocate_common_entry_node, tail_common_list, current_common,
566         saved_bf_list, saved_bf_list_end, current_head_bf_list,
567         tmp_bf_ptr, add_common_block, add_common_entry,
568         find_first_common_named, patch_common_entries,
569         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
570         global_remote_debug, get_bf_for_fcn, saved_function_list,
571         saved_function_list_end, clear_function_list, struct saved_fcn,
572         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
573         SAVED_BF, SAVED_BF_PTR): Remove.
574         * f-lang.h (tail_common_list, current_common,
575         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
576         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
577         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
578         real_main_c_value): Remove.
579         * f-valprint.c (there_is_a_visible_common_named): Remove.
580
581 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
582
583         * breakpoint.c (update_global_location_list): Ignore previous
584         duplicate status of a breakpoint when starting a new scan for
585         duplicate breakpoints.
586
587 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
588         PR breakpoints/14419
589         * arm-tdep.c (arm_skip_prologue): Extending producer check to
590         support LLVM compiler.
591
592 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
593
594         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
595         * bfin-tdep.c (bfin_extract_return_value): Likewise.
596         (bfin_store_return_value): Likewise.
597         * cris-tdep.c (cris_store_return_value): Likewise.
598         (cris_extract_return_value): Likewise.
599         * h8300-tdep.c (h8300_extract_return_value): Likewise.
600         * hppa-tdep.c (hppa64_return_value): Likewise.
601         * lm32-tdep.c (lm32_store_return_value): Likewise.
602         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
603         * spu-tdep.c (spu_value_from_register): Likewise.
604         * vax-tdep.c (vax_return_value): Likewise.
605
606 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
607
608         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
609         parameter LEN to ssize_t.
610
611 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
612
613         * ada-valprint.c (ada_val_print_1): Eliminate single-use
614         variable LEN.
615         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
616         directly.
617         (alpha_store_return_value): Likewise.
618         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
619         (amd64_push_arguments): Likewise.
620         * ax-gdb.c (gen_trace_static_fields): Likewise.
621         (gen_traced_pop): Likewise.
622         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
623         * breakpoint.c (update_watchpoint): Likewise.
624         * findcmd.c (parse_find_args): Use local variable for type
625         instead of length.
626         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
627         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
628         (h8300_store_return_value): Likewise.
629         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
630         Use i386_darwin_arg_type_alignment directly.
631         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
632         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
633         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
634         (m68hc11_extract_return_value): Likewise.
635         * mep-tdep.c (mep_push_dummy_call): Likewise.
636         * printcmd.c (float_type_from_length): Likewise.
637         * s390-tdep.c (s390_value_from_register): Likewise.
638         * stack.c (read_frame_arg): Likewise.
639         * tracepoint.c (encode_actions_1): Likewise.
640         * valops.c (value_fetch_lazy): Use local variable for type
641         instead of length.  Use TYPE_LENGTH directly.
642         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
643
644 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
645
646         * symtab.c (skip_prologue_sal): Fix typo in comment.
647
648 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
649
650         * linespec.c (create_sals_line_offset): Fix typo in comment.
651
652 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
653
654         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
655         use plongest to print the array size.
656
657 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
658
659         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
660         * p-valprint.c (pascal_type_print_base): Likewise.
661
662 2012-09-22  Yao Qi  <yao@codesourcery.com>
663
664         * remote.c (remote_get_trace_status): Remove setting default
665         values of fields of 'ts'.
666
667 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
668
669         Fix internal error on canonicalization of clang types.
670         * cp-name-parser.y (operator): New comment at make_operator call for
671         new, delete, new[] and delete[].
672         (exp): Use "sizeof ".  Add new comment at make_operator call.
673
674 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
675
676         Fix disassemble without parameters in tailcall frame.
677         * cli/cli-cmds.c (disassemble_current_function): Use
678         get_frame_address_in_block.
679
680 2012-09-21  Tom Tromey  <tromey@redhat.com>
681
682         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
683         TYPE_CODE_UNION>: Unify, removing a goto.
684
685 2012-09-21  Tom Tromey  <tromey@redhat.com>
686
687         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
688
689 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
690
691         * findvar.c (read_frame_register_value): Mark the result value as
692         optimized out if any of the input registers have been optimized out.
693
694 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
695
696         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
697
698 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
699
700         * eval.c (evaluate_subexp_standard): Eliminate single-use
701         variable LOWER.
702
703 2012-09-21  Yao Qi  <yao@codesourcery.com>
704
705         * mi/mi-interp.c: Declare mi_record_changed.
706         (mi_interpreter_init): Call observer_attach_record_changed.
707         (mi_record_changed): New.
708         * record.c (record_open): Call observer_notify_record_changed.
709         (cmd_record_stop): Call observer_notify_record_changed.
710         * NEWS: Mention it.
711
712 2012-09-20  Tom Tromey  <tromey@redhat.com>
713
714         * NEWS: Update.
715         * python/python.c (finalize_python): New function.
716         (_initialize_python): Make a final cleanup.
717
718 2012-09-19  Doug Evans  <dje@google.com>
719
720         * buildsym.h (param_symbols): Delete, unused.
721         (context_stack): Delete member "params", unused.
722         * buildsym.c (push_context): Update.
723         * dwarf2read.c (read_func_scope): Update.
724
725 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
726
727         * sh-tdep.c (sh_register_convert_to_virtual)
728         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
729         all callers.  Just do a memcpy if not the little-endian case.
730
731         * h8300-tdep.c (h8300_gdbarch_init): Invoke
732         set_gdbarch_double_format and set_gdbarch_long_double_format.
733         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
734         set_gdbarch_double_format.
735         * sh-tdep.c (sh_gdbarch_init): Likewise.
736
737         * NEWS: Document the removal of SH's 'regs' command.
738         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
739         command.
740
741 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
742
743         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
744         `jump'.
745
746 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
747
748         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
749         language when iterating over symbols.
750
751 2012-09-18  Yao Qi  <yao@codesourcery.com>
752
753         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
754         (mi_interpreter_init): Call observer_attach_tsv_created and
755         observer_attach_tsv_deleted.
756         (mi_tsv_created, mi_tsv_deleted): New.
757         * tracepoint.c (delete_trace_state_variable): Call
758         observer_notify_tsv_deleted.
759         (trace_variable_command): Call observer_notify_tsv_created.
760         (delete_trace_variable_command): Call
761         observer_notify_tsv_deleted.
762         (create_tsv_from_upload): Call observer_notify_tsv_created.
763         * NEWS: Mention it.
764
765 2012-09-18  Yao Qi  <yao@codesourcery.com>
766
767         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
768         if traceframe changed.
769         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
770         "trace-find".
771         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
772         (mi_interpreter_init): Hook mi_traceframe_changed to observer
773         'traceframe_changed'.
774         (mi_traceframe_changed): New.
775         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
776         New field.
777         * NEWS: Mention the new MI notification.
778
779 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
780
781         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
782
783 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
784
785         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
786         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
787         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
788         Extend code also for PaX support.  Convert all gdb_assert to warning
789         calls.
790
791 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
792
793         Implement auto-load user conveniences suggested by Doug Evans.
794         * auto-load.c: Include top.h.
795         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
796         (_initialize_auto_load): New variable scripts_directory_help.  Mention
797         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
798         scripts-directory.  Document in online help one can use also files for
799         set auto-load safe-path.
800         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
801         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
802
803 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
804
805         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
806         of LEN.
807
808 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
809
810         * m2-valprint.c (m2_print_array_contents): Eliminate variable
811         ELTLEN and use TYPE_LENGTH directly.
812         (m2_val_print): Likewise.
813         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
814         variable LEN and use TYPE_LENGTH directly.
815         (m68k_svr4_store_return_value): Likewise.
816         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
817         ARGLEN and use TYPE_LENGTH directly.
818         (mips_o64_push_dummy_call): Likewise.
819         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
820         variable LENGTH and use TYPE_LENGTH directly.
821         (s390_function_arg_float): Likewise.
822         (s390_function_arg_integer): Likewise.
823         (s390_push_dummy_call): Likewise.
824         (s390_return_value_convention): Likewise.
825         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
826         TYPE_LENGTH directly.
827
828 2012-09-17  Yao Qi  <yao@codesourcery.com>
829
830         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
831         Update comment to add_setshow_integer_cmd.
832         * cli/cli-setshow.c (do_set_command): Handle case
833         'var_zuinteger_unlimited'.
834         (do_show_command): Likewise.
835         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
836         for command 'remotetimeout'.
837         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
838         to var_integer.
839         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
840         for command 'set listsize'.
841
842 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
843
844         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
845         variable LEN.
846
847 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
848
849         PR 14119
850         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
851         (frame_pop): Drop also TAILCALL_FRAME frames.
852         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
853
854 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
855             Pedro Alves  <palves@redhat.com>
856
857         PR 14548
858         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
859         function start if we are already at function start.  Both for
860         reverse-next and for reverse-step into function without line number
861         info.
862
863 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
864
865         Code cleanup - rename 'inline' depth to 'artificial' depth.
866         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
867         frame_id_artificial_p, extend the comment.
868         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
869         * frame.c (fprint_frame_id): Rename at a user, change debug output
870         text to "artificial=".
871         (skip_inlined_frames): Rename to ...
872         (skip_artificial_frames): ... here.  Extend the comment.
873         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
874         (frame_id_inlined_p): Rename to ...
875         (frame_id_artificial_p): ... here.  Rename at a user.
876         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
877         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
878         at a user.
879         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
880         Extend the comment.
881         (frame_id_inlined_p): Rename to ...
882         (frame_id_artificial_p): ... here.
883         * inline-frame.c (inline_frame_this_id): Rename at a user.
884
885 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
886
887         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
888         vector variables using vector_size syntax rather than array
889         syntax.
890
891 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
892
893         * valarith.c (value_concat): Replace unsafe ALLOCA with
894         XMALLOC/XFREE.
895
896 2012-09-14  Pedro Alves  <palves@redhat.com>
897
898         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
899
900 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
901
902         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
903         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
904         data-directory as appropriate.
905
906 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
907
908         * printcmd.c (ui_printf): Eliminate single-use variable
909         PARAM_LEN.
910
911 2012-09-14  Yao Qi  <yao@codesourcery.com>
912             Pedro Alves  <palves@redhat.com>
913
914         * valops.c (value_assign): Move observer_notify_target_changed
915         below to replace reinit_frame_cache.
916
917 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
918
919         Refactor Python "gdb" module into a proper Python package, by
920         introducing a new "_gdb" module for code implemented in C, and
921         using reload/__import__ instead of exec.
922         * python/lib/gdb/__init__.py: Import * from _gdb.
923         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
924         prompt_hook, sys.argv): Moved from finish_python_initialization.
925         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
926         (packages, auto_load_packages): New list and function replacing
927         module_dict and auto-loading code, using __file__ instead of
928         gdb.PYTHONDIR and reload/__import__ instead of exec.
929         (GdbSetPythonDirectory): Replacing function of the same name
930         from finish_python_initialization, using reload/__import__ instead
931         of exec, as well as call auto_load_packages.
932         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
933         gdb_python_module and not gdb_module.
934         * python/python-internal.h (gdb_python_module): Declare.
935         * python/python.c (gdb_python_module): New global.
936         (before_prompt_hook): Check gdb_python_module and not gdb_module.
937         (_initialize_python): Rename gdb module to _gdb.
938         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
939         (finish_python_initialization): Move Python code to
940         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
941         __main__.
942
943 2012-09-13  Pedro Alves  <palves@redhat.com>
944
945         * Makefile.in (COMMON_OBS): Add registry.o.
946         * registry.c: New file.
947         * registry.h (struct registry_container): Declare.
948         (registry_data_callback): New typedef.
949         (struct registry_data, struct registry_data_registration, struct
950         registry_data_registry): New type.
951         (register_data_with_cleanup, registry_alloc_data)
952         (registry_callback_adaptor, registry_clear_data)
953         (registry_container_free_data, registry_set_data, registry_data):
954         Declare.
955         (DEFINE_REGISTRY): Refactor structures and functions as shims over
956         the new common structures and functions.
957         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
958         callback typedefs.
959
960 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
961
962         * remote.c (remote_insert_hw_breakpoint): Throw exception if
963         there is an error inserting hardware breakpoints and use the
964         error message from the target.
965
966         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
967         Catch this exception and print the error message contained within. Do not
968         print the default hardware error breakpoint message in this case.
969
970 2012-09-12  Doug Evans  <dje@google.com>
971
972         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
973         cu == NULL.
974
975 2012-09-11  Doug Evans  <dje@google.com>
976
977         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
978         .gdb_index symbol attributes if there are none.
979
980 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
981
982         * symtab.h (struct minimal_symbol) [has_size]: New field.
983         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
984         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
985         * printcmd.c (build_address_symbolic): Only filter out zero-sized
986         minimal symbols if the symbol's size is actually known.
987         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
988         of msymbol's size field.  Add comment.
989         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
990         SET_MSYMBOL_SIZE to set the minimal symbol size.
991
992 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
993
994         * minsyms.c (install_minimal_symbols): Use memset to fill entire
995         minimal_symbol struct object, rather than setting some of its
996         fields one by one.
997
998 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
999
1000         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1001         passed_a_ptr flag when displaying typedef types.
1002
1003 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
1004
1005         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1006         the optimized_out flag is preserved.
1007
1008 2012-09-10  Anthony Green  <green@moxielogic.com>
1009
1010         * moxie-tdep.c (moxie_analyze_prologue): Update for function
1011         prologue changes in GCC.
1012
1013 2012-09-10  Keith Seitz  <keiths@redhat.com>
1014
1015         PR gdb/13483
1016         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1017         (BOOL_CONVERSION_BADNESS): ... this.
1018         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1019         (rank_one_type): Allow all boolean conversions
1020         permitted by the standard.
1021
1022 2012-09-06  Tom Tromey  <tromey@redhat.com>
1023
1024         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1025         Don't decref py_objfile.
1026
1027 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
1028
1029         Do not enable -lmcheck by default when Python is enabled with
1030         threading support.
1031         * configure.ac: (python_has_threads) New variable, by testing
1032         if WITH_THREAD is defined in Python.h.
1033         Move --enable-lmcheck after --with-python.
1034         Do not enable -lmcheck by default if python_has_threads=yes.
1035         Warn if --enable-lmcheck and python_has_threads=yes.
1036         * configure: Regenerate.
1037
1038 2012-08-31  Yao Qi  <yao@codesourcery.com>
1039
1040         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1041         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1042         Update some commands.
1043         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1044         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1045         to 1.
1046
1047 2012-08-31  Yao Qi  <yao@codesourcery.com>
1048
1049         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1050
1051 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1052
1053         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1054
1055 2012-08-29  Doug Evans  <dje@google.com>
1056
1057         * main.c (print_gdb_help): Remove reference to
1058         --use-deprecated-index-sections.
1059
1060 2012-08-28  Yao Qi  <yao@codesourcery.com>
1061
1062         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1063         (init_cmds): Call add_setshow_uinteger_cmd for command
1064         'max-user-call-depth'.
1065         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1066         declaration of 'max_user_call_depth'.
1067         * frame.c (backtrace_limit): Add 'unsigned'.
1068         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1069         'limit'.
1070         * remote.c (remoteaddresssize): Add 'unsigned'.
1071         (remote_address_masked): Change local var 'address_size' to
1072         'unsigned'.
1073         (_initialize_remote): Call add_setshow_uinteger_cmd for
1074         'remoteaddresssize'.
1075         * top.c (history_size): Add 'unsigned'.
1076         (show_commands): Change local variables to 'unsigned'.
1077         (set_history_size_command): Don't check history_size is negative.
1078         Adjust the condition to call unstifle_history and set history_size
1079         to UNIT_MAX.
1080
1081 2012-08-28  Pedro Alves  <palves@redhat.com>
1082
1083         PR gdb/14428
1084
1085         * infcmd.c (default_print_one_register_info): New, factored out
1086         from default_print_registers_info.
1087         (default_print_registers_info): Use it.  Mark value unavailable if
1088         necessary.
1089         (registers_info): Print user registers with
1090         default_print_one_register_info.
1091
1092 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1093
1094         PR tui/14486
1095         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1096         is not NULL before referencing it.
1097
1098 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1099
1100         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1101         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1102         original PC for it.
1103
1104 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1105             Jan Kratochvil  <jan.kratochvil@redhat.com>
1106
1107         * auto-load.c (auto_load_objfile_script): Rename to ...
1108         (auto_load_objfile_script_1): ... here, change variable realname to
1109         parameter realname, document it, add return value, add variable retval.
1110         (auto_load_objfile_script): New function.
1111
1112 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1113
1114         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1115         followed by a whitespace.
1116
1117 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1118
1119         PR gdb/14494.
1120         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1121         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1122         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1123         here.
1124
1125 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1126
1127         * memattr.c (create_mem_region): Fix memory region overlapping
1128         checking.
1129
1130 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1131
1132         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1133         with xmalloc/cleanup.
1134         * mt-tdep.c (mt_push_dummy_call): Likewise.
1135         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1136         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1137
1138 2012-08-24  Yao Qi  <yao@codesourcery.com>
1139
1140         * jv-exp.y (push_expression_name): Add "." at the end of error
1141         message.
1142
1143 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1144
1145         Document how to return from "python-interactive" to GDB.
1146         * python/python.c (_initialize_python): Update documentation.
1147
1148 2012-08-23  Pedro Alves  <palves@redhat.com>
1149
1150         * infrun.c (_initialize_infrun) <handle command help text>:
1151         Mention that multiple signals are supported.
1152
1153 2012-08-23  Pedro Alves  <palves@redhat.com>
1154
1155         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1156         string.
1157
1158 2012-08-23  Yao Qi  <yao@codesourcery.com>
1159
1160         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1161         (tfind_1): Don't call registers_changed, set_traceframe_num,
1162         and clear_traceframe_info.
1163         Call set_current_traceframe.
1164         (set_current_traceframe): call set_traceframe_num.
1165
1166 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1167
1168         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1169         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1170
1171 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1172
1173         Enable readline in Python in a GDB-specific way and block the
1174         standard Python readline module to prevent conflicts with GDB.
1175         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1176         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1177         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1178         * python/py-gdb-readline.c: New file.
1179         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1180         prototype.
1181         * python/python.c (_initialize_python): Call
1182         gdbpy_initialize_gdb_readline.
1183
1184 2012-08-22  Keith Seitz  <keiths@redhat.com>
1185
1186         * defs.h: Include build-gnulib/config.h
1187
1188 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1189
1190         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1191         and blx pc.
1192
1193 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1194
1195         Add a new "python-interactive" command that starts a standard
1196         Python interactive prompt with "pi" as alias, and add "py" as
1197         an alias to "python".
1198         * NEWS: Mention the new commands.
1199         * python/python.c (eval_python_command): New function.
1200         (python_interactive_command): For "python-interactive" with
1201         arguments, call eval_python_command.  For "python-interactive"
1202         without arguments, call PyRun_InteractiveLoop.
1203         (_initialize_python): Add "python-interactive" command with
1204         "pi" as alias, and add "py" as an alias to "python".
1205
1206 2012-08-22  Tom Tromey  <tromey@redhat.com>
1207
1208         * defs.h (quit_flag): Don't declare.
1209         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1210         (QUIT): Use new functions.
1211         * event-top.c (command_handler): Use clear_quit_flag.
1212         (handle_sigint): Use set_quit_flag.
1213         (async_request_quit): Use check_quit_flag.  Don't check
1214         immediate_quit.
1215         * exceptions.c (throw_exception): Use clear_quit_flag.
1216         * main.c (captured_main): Use clear_quit_flag.
1217         * python/python.c (clear_quit_flag, set_quit_flag)
1218         (check_quit_flag): New functions.
1219         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1220         clear_quit_flag.
1221         * remote.c (remote_wait_as): Use check_quit_flag,
1222         clear_quit_flag.
1223         (remote_start_remote): Call QUIT.
1224         * symfile.c (load_progress): Use check_quit_flag.
1225         * top.c (command_loop): Use clear_quit_flag.
1226         (command_line_input): Call QUIT.
1227         * utils.c (quit_flag): Conditionally define.
1228         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1229         functions.
1230         (prompt_for_continue): Call QUIT.  Use quit, not
1231         async_request_quit.
1232         * remote-mips.c (mips_expect_timeout): Call QUIT.
1233         * monitor.c (monitor_expect): Call QUIT.
1234
1235 2012-08-22  Tom Tromey  <tromey@redhat.com>
1236
1237         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1238         (async_init_signals): Update.
1239         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1240         (SIGWINCH_HANDLER_BODY): Remove.
1241
1242 2012-08-22  Tom Tromey  <tromey@redhat.com>
1243
1244         * jit.c (jit_object_close_impl): Don't malloc the objfile
1245         name.
1246         * objfiles.c (allocate_objfile): Don't malloc the objfile
1247         name.
1248         (free_objfile): Don't free the objfile name.
1249         * objfiles.h (struct objfile) <name>: Update comment.
1250         * symfile.c (reread_symbols): Fix reference counting.  Don't
1251         malloc objfile name.
1252
1253 2012-08-22  Tom Tromey  <tromey@redhat.com>
1254
1255         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1256         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1257         (symfile_bfd_open): Likewise.
1258         (generic_load): Likewise.
1259         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1260         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1261         gdb_bfd_open.
1262         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1263         Use gdb_bfd_open.
1264         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1265         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1266         (pmon_load_fast): Likewise.
1267         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1268         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1269         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1270         (macho_check_dsym): Likewise.
1271         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1272         (m32r_upload_command): Likewise.
1273         * gdb_bfd.h (gdb_bfd_cache): Declare.
1274         * gdb_bfd.c (struct gdb_bfd_data): New.
1275         (gdb_bfd_cache): New global.
1276         (struct gdb_bfd_cache_search): New.
1277         (hash_bfd): New function.
1278         (eq_bfd): Likewise.
1279         (gdb_bfd_open): Likewise.
1280         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1281         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1282         gdb_bfd_data.
1283         * exec.c (exec_file_attach): Use gdb_bfd_open.
1284         * dsrec.c (load_srec): Use gdb_bfd_open.
1285
1286 2012-08-22  Tom Tromey  <tromey@redhat.com>
1287
1288         * dwarf2read.c (macro_start_file): Update.
1289         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1290         (free_objfile_per_bfd_storage): Destroy macro_cache.
1291         (allocate_objfile, free_objfile): Update.
1292         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1293         New field.
1294         (struct objfile) <macro_cache>: Remove.
1295         * symfile.c (reread_symbols): Update.
1296         * symmisc.c (print_symbol_bcache_statistics): Update.
1297         (print_objfile_statistics): Update.
1298
1299 2012-08-22  Tom Tromey  <tromey@redhat.com>
1300
1301         * elfread.c (elf_symtab_read): Update.
1302         * objfiles.c (objfiles_bfd_data): New global.
1303         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1304         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1305         (allocate_objfile, free_objfile): Update.
1306         (_initialize_objfiles): Initialize objfiles_bfd_data.
1307         * objfiles.h (struct objfile_per_bfd_storage): New.
1308         (struct objfile) <per_bfd>: New field.
1309         <filename_cache>: Remove.
1310         (set_objfile_per_bfd): Declare.
1311         * symfile.c (reread_symbols): Update.  Call
1312         set_objfile_per_bfd.
1313         (allocate_symtab): Update.
1314         * symmisc.c (print_symbol_bcache_statistics): Update.
1315         (print_objfile_statistics): Print the size of the BFD obstack.
1316
1317 2012-08-22  Tom Tromey  <tromey@redhat.com>
1318
1319         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1320         * gdb_bfd.c: Use DEFINE_REGISTRY.
1321         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1322         (gdb_bfd_ref): Call bfd_alloc_data.
1323         (gdb_bfd_unref): Call bfd_free_data.
1324
1325 2012-08-22  Tom Tromey  <tromey@redhat.com>
1326
1327         * registry.h (struct registry_fields): New.
1328         (REGISTRY_FIELDS): Redefine.
1329         (REGISTRY_ACCESS_FIELD): New macro.
1330         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1331         functions.
1332
1333 2012-08-22  Tom Tromey  <tromey@redhat.com>
1334
1335         * auto-load.c (_initialize_auto_load): Update.
1336         * solib-svr4.c (_initialize_svr4_solib): Update
1337         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1338         * solib-darwin.c (_initialize_darwin_solib): Update.
1339         * registry.h: New file.
1340         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1341         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1342         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1343         (register_program_space_data_with_cleanup)
1344         (register_program_space_data, program_space_alloc_data)
1345         (clear_program_space_data, set_program_space_data)
1346         (program_space_data): Don't declare.
1347         * progspace.c: Use DEFINE_REGISTRY.
1348         (struct program_space_data, struct
1349         program_space_data_registration, struct
1350         program_space_data_registry, program_space_data_registry)
1351         (register_program_space_data_with_cleanup)
1352         (register_program_space_data, program_space_alloc_data)
1353         (program_space_free_data, clear_program_space_data)
1354         (set_program_space_data, program_space_data): Remove.
1355         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1356         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1357         (register_objfile_data_with_cleanup, register_objfile_data)
1358         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1359         declare.
1360         * objfiles.c: Use DEFINE_REGISTRY.
1361         (struct objfile_data, struct objfile_data_registration, struct
1362         objfile_data_registry, objfile_data_registry)
1363         (register_objfile_data_with_cleanup, register_objfile_data)
1364         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1365         (set_objfile_data, objfile_data): Remove.
1366         (_initialize_objfiles): Update.
1367         * jit.c (_initialize_jit): Update.
1368         * inflow.c (_initialize_inflow): Update.
1369         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1370         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1371         (register_inferior_data_with_cleanup, register_inferior_data)
1372         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1373         declare.
1374         * inferior.c: Use DEFINE_REGISTRY.
1375         (struct inferior_data, struct inferior_data_registration, struct
1376         inferior_data_registry, inferior_data_registry)
1377         (register_inferior_data_with_cleanup, register_inferior_data)
1378         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1379         (set_inferior_data, inferior_data): Remove.
1380         * auxv.c (_initialize_auxv): Update.
1381         * ada-lang.c (_initialize_ada_language): Update.
1382         * breakpoint.c (_initialize_breakpoint): Update.
1383         * i386-nat.c (i386_use_watchpoints): Update.
1384
1385 2012-08-22  Tom Tromey  <tromey@redhat.com>
1386
1387         * exec.c (exec_close, exec_file_attach): Update.
1388         (add_to_section_table): Initialize 'key' field.
1389         (add_target_sections, remove_target_sections): Add 'key' argument.
1390         * exec.h (add_target_sections, remove_target_sections): Add
1391         'key' argument.
1392         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1393         (reload_shared_libraries_1): Update.
1394         * target.h (struct target_section) <key>: New field.
1395
1396 2012-08-22  Tom Tromey  <tromey@redhat.com>
1397
1398         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1399
1400 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1401
1402         * symfile.c (allocate_symtab): Use host_address_to_string
1403         function instead of cast of pointer to long which is not
1404         compatible with x86_64-w64-mingw32 build.
1405
1406 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1407
1408         * mips-tdep.c (is_octeon): New function.
1409         (is_octeon_bbit_op): New function.
1410         (mips32_next_pc): Handle Octeon's bbit instructions.
1411         (mips32_instruction_has_delay_slot): Likewise.
1412
1413 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1414
1415         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1416         before the function.
1417
1418 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1419
1420         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1421
1422 2012-08-19  Keith Seitz  <keiths@redhat.com>
1423
1424         PR c++/14365
1425         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1426         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1427
1428 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1429
1430         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1431         The typo broke "make TAGS".
1432
1433 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1434
1435         GDB 7.5 released.
1436
1437 2012-08-17  Keith Seitz  <keiths@redhat.com>
1438
1439         PR c++/13356
1440         * gdbtypes.c (strict_type_checking): New variable.
1441         (show_strict_type_checking): New function.
1442         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1443         if strict type checking is disabled.
1444         (_initialize_gdbtypes): Add "check type" subcommand.
1445         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1446
1447 2012-08-17  Keith Seitz  <keiths@redhat.com>
1448
1449         * language.h (type_mode): Remove.
1450         (type_check): Remove.
1451         (struct language_defn): Remove la_type_check.
1452         (STRICT_TYPE): Remove unused macro.
1453         (type_error): Remove.
1454         * language.c (set_type_range_case): Renamed to ...
1455         (set_range_case): ... this.  Update all callers.
1456         Remove type_mode/type_check.
1457         (type_mode): Remove.
1458         (type_check): Remove.
1459         (show_type_command): Remove.
1460         (set_type_command): Remove.
1461         (language_info): Remove type checking output.
1462         (type_error): Remove unused function.
1463         (range_error): Update comment.
1464         (unknown_language_defn): Remove la_type_check.
1465         (auto_language_defn): Likewise.
1466         (local_language_defn): Likewise.
1467         (_initialize_language): Remove "check type" subcommand.
1468         * ada-lang.c (ada_language_defn): Remove la_type_check.
1469         * c-lang.c (c_language_defn): Likewise.
1470         (cplus_language_defn): Likewise.
1471         (asm_language_defn): Likewise.
1472         (minimal_language_defn): Likewise.
1473         * d-lang.c (d_language_defn): Likewise.
1474         * f-lang.c (f_language_defn): Likewise.
1475         * go-lang.c (go_language_defn): Likewise.
1476         * jv-lang.c (java_language_defn): Likewise.
1477         * m2-lang.c (m2_language_defn): Likewise.
1478         * objc-lang.c (objc_language_defn): Likewise.
1479         * opencl-lang.c (opencl_language_defn): Likewise.
1480         * p-lang.c (pascal_language_defn): Likewise.
1481
1482 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1483
1484         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1485
1486 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1487
1488         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1489         New function.
1490         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1491         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1492         to access the bsp and bspstore registers if not.
1493
1494 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1495
1496         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1497         * breakpoint.c (detach_breakpoints): Change pid parameter into
1498         a ptid.  Adjust code accordingly.
1499         * infrun.c (handle_inferior_event): Delete variable child_pid.
1500         Update call to detach_breakpoints to pass the child ptid for
1501         fork events.
1502         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1503         assert that inferior_ptid's lwp is zero.
1504         (linux_handle_extended_wait): Update call to detach_breakpoints.
1505         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1506         detach_breakpoints.
1507
1508 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1509
1510         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1511         parent, only call detach_breakpoints if tts.tts_event ==
1512         TTEVT_VFORK.
1513
1514 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1515
1516         * dwarf2-frame.c (dwarf2_frame_cache): Use
1517         get_frame_address_in_block instead of get_frame_pc as
1518         the bound for executing the frame's FDE.
1519
1520 2012-08-16  Yao Qi  <yao@codesourcery.com>
1521
1522         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1523         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1524         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1525         (c_type_print_varspec_suffix): Likewise.
1526         * eval.c (evaluate_subexp_standard): Likewise.
1527         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1528         (f_type_print_varspec_suffix): Likewise.
1529         * gdbtypes.c (is_scalar_type): Likewise.
1530         (recursive_dump_type): Likewise.
1531         * infcall.c (value_arg_coerce): Likewise.
1532         * m2-valprint.c (m2_val_print): Likewise.
1533         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1534         (pascal_type_print_varspec_suffix): Likewise.
1535         (pascal_type_print_base): Likewise.
1536         * p-valprint.c (pascal_val_print): Likewise.
1537         (pascal_val_print): Likewise.
1538         * valops.c (value_slice): Likewise.
1539         * valprint.c (scalar_type_p): Likewise.
1540         * valarith.c (value_bitstring_subscript): Remove.
1541         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1542         Remove comment on TYPE_CODE_BITSTRING.
1543
1544         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1545         TYPE_CODE_BITSTRING.
1546
1547         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1548         slot 0.
1549
1550 2012-08-16  Yao Qi  <yao@codesourcery.com>
1551
1552         * tracepoint.c (trace_find_none_command): Remove.
1553         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1554
1555 2012-08-16  Yao Qi  <yao@codesourcery.com>
1556
1557         * remote.c (handle_notification): Remove parameter 'length'.
1558         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1559
1560 2012-08-15  Keith Seitz  <keiths@redhat.com>
1561
1562         * gdbtypes.c (opaque_type_resolution): Make static.
1563         Add missing comment.
1564         (overload_debug): Add missing comment.
1565         (show_opaque_type_resolution): Likewise.
1566         (show_overload_debug): Likewise.
1567         (print_bit_vector): Remove unnecessary forward declaration.
1568         (print_arg_types): Likewise.
1569         (dump_fn_fieldlists): Likewise.
1570         (print_cplus_stuff): Likewise.
1571
1572 2012-08-15  Tom Tromey  <tromey@redhat.com>
1573
1574         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1575         (gdb_bfd_ref): Initialize new field.
1576         (gdb_bfd_unref): Unref the archive BFD.
1577         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1578         parent archive.
1579
1580 2012-08-15  Tom Tromey  <tromey@redhat.com>
1581
1582         PR python/14387:
1583         * python/py-bpevent.c (create_breakpoint_event_object): Update
1584         comment.
1585         * python/py-event.c (evpy_add_attribute): Update comment.
1586         * python/py-exitedevent.c (create_exited_event_object): Fix
1587         reference counting and error handling.
1588         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1589         Fix reference counting.
1590         * python/py-signalevent.c (create_signal_event_object): Fix
1591         reference counting and error handling.
1592         * python/py-stopevent.c (emit_stop_event): Fix reference
1593         counting.
1594         * python/py-threadevent.c (get_event_thread): Return a
1595         borrowed reference.
1596         * python/py-type.c (convert_field): Fix reference counting.
1597
1598 2012-08-15  Tom Tromey  <tromey@redhat.com>
1599
1600         * dwarf2read.c (dwarf_decode_macro_bytes)
1601         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1602         as hash key.
1603
1604 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1605
1606         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1607         stepi, nexti, finish, next, step, jump, and continue commands.
1608         * infrun.c (_initialize_infrun): Update help text for the handle
1609         command.
1610
1611 2012-08-14  Doug Evans  <dje@google.com>
1612
1613         * gdbtypes.c (struct extra): Delete, unused.
1614
1615         * gdbtypes.c: Whitespace cleanup.
1616         (address_space_name_to_int): Remove "extern" from definition.
1617         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1618
1619         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1620         TYPE_POINTER_TYPE (type).
1621
1622 2012-08-14  Gary Benson  <gbenson@redhat.com>
1623
1624         * solib-svr4.c (svr4_free_library_list): Use free_so.
1625
1626 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1627
1628         * .gitignore: Add go-exp.c.
1629
1630 2012-08-13  Doug Evans  <dje@google.com>
1631
1632         * value.c (show_convenience): Tweak comment.
1633         (_initialize_values): Mention convenience functions in the help text
1634         for "show convenience".
1635
1636 2012-08-13  Yao Qi  <yao@codesourcery.com>
1637
1638         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1639         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1640         TERNOP_SLICE_COUNT.
1641         * eval.c (evaluate_subexp_standard): Likewise.
1642         * expprint.c (print_subexp_standard): Likewise.
1643         (dump_subexp_body_standard): Likewise.
1644         * parse.c (operator_length_standard): Likewise.
1645
1646 2012-08-13  Yao Qi  <yao@codesourcery.com>
1647
1648         * std-operator.def: Remove OP_BITSTRING.
1649         * breakpoint.c (watchpoint_exp_is_const): Update.
1650         * eval.c (evaluate_subexp_standard): Remove handling to
1651         OP_BITSTRING.
1652         * expprint.c (print_subexp_standard): Likewise.
1653         (dump_subexp_body_standard): Likewise.
1654         * parse.c (operator_length_standard): Likewise.
1655         * valops.c (value_bitstring): Remove.
1656         * value.h: Remove the declaration of 'value_bitstring'.
1657
1658 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1659
1660         * linespec.c (find_methods): Remove unused variables `i1' and
1661         `name_len'.
1662         (decode_line_full): Likewise for `arg_start'.
1663
1664 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1665
1666         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1667         (zlib_decompress_section): Likewise for `section_data'.
1668         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1669
1670 2012-08-10  Doug Evans  <dje@google.com>
1671
1672         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1673         * NEWS: Document them.
1674         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1675         function/strfns.py.
1676         * python/py-type.c (typy_array_1): New function.
1677         (typy_array): Call it.
1678         (typy_vector): New function.
1679         (type_object_methods): Add "vector".
1680         * python/lib/gdb/function/__init__.py: New file.
1681         * python/lib/gdb/function/strfns.py: New file.
1682
1683 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1684
1685         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1686         for TYPE_FIELD_BITPOS.
1687         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1688
1689 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1690
1691         PR cli/10436:
1692         * common/vec.h (VEC_merge): Define.
1693         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1694         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1695         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1696         * completer.c: Include gdb_signals.h.
1697         (signal_completer): Define.
1698         * completer.h (signal_completer): Add prototype.
1699         * infcmd.c (_initialize_infcmd): Assign the command
1700         completer for "signal" to handle_completer.
1701         * infrun.c: Include completer.h.
1702         (handle_completer): Define.
1703         (_initialize_infrun): Declare a new local variable c.  Store the
1704         result of add_com("handle") to it.  Assign the command
1705         completer for "handle" to handle_completer.
1706
1707 2012-08-09  Yao Qi  <yao@codesourcery.com>
1708
1709         * cli/cli-decode.c (set_cmd_prefix): New.
1710         (lookup_cmd_for_prefixlist): New.
1711         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1712         of each cmd_list_element in *prefixlist.
1713         (add_setshow_cmd_full): set_cmd_prefix.
1714         (add_alias_cmd): Likewise.
1715         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1716         Declare 'auto_boolean_enums'.
1717         * cli/cli-setshow.c: Include "observer.h".
1718         (notify_command_param_changed_p): New.
1719         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1720         Remove 'static'.
1721         (do_setshow_command): Split it to ...
1722         (do_set_command, do_show_command): ... them.  New.
1723         (do_set_command): Call observer_notify_command_param_changed if
1724         notify_command_param_changed_p returns true.
1725         (cmd_show_list): Caller update.
1726         * auto-load.c (set_auto_load_cmd): Likewise.
1727         * remote.c (show_remote_cmd): Likewise.
1728         * cli/cli-setshow.h: Update declarations.
1729         * top.c (execute_command): Call do_set_command and do_show_command.
1730
1731         * NEWS: Mention new MI notification.
1732         * mi/mi-interp.c: Declare mi_command_param_changed.
1733         (mi_interpreter_init): Attach mi_command_param_changed to
1734         observer command_param_changed.
1735         (mi_command_param_changed): New.
1736         Remove mi_suppress_breakpoint_notifications.
1737         Define global variable mi_suppress_notification.
1738         (mi_breakpoint_created): Update.
1739         (mi_breakpoint_deleted): Likewise.
1740         (mi_breakpoint_modified): Likewise.
1741         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1742         'gdb-set' and set mi_suppress_notification.
1743         * mi/mi-main.h: (mi_suppress_notification): New struct.
1744
1745 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1746             Jan Kratochvil  <jan.kratochvil@redhat.com>
1747
1748         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1749
1750 2012-08-09  Yao Qi  <yao@codesourcery.com>
1751
1752         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1753         (skiplist): Move it to skip.c.
1754         (init_cmd_lists): Remove code setting enablebreaklist and
1755         skiplist to NULL.
1756         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1757         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1758         skiplist.
1759         * gdbcmd.h: Likewise.
1760         * skip.c (_initialize_step_skip): Move 'skiplist' from
1761         cli/cli-cmds.c.
1762
1763 2012-08-09  Yao Qi  <yao@codesourcery.com>
1764
1765         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1766         * gnu-nat.c, symfile.c: Likewise.
1767
1768 2012-08-08  Aaron Gamble  <agamble@google.com>
1769
1770         * utils.c (prompt_for_continue_wait_time): New static global.
1771         (make_command_stats_cleanup): Initialize it.
1772         (report_command_stats): Subtract time waiting for user.
1773         (prompt_for_continue): Track time waiting for user.
1774         (defaulted_query): Track time waiting for user.
1775
1776 2012-08-08  Doug Evans  <dje@google.com>
1777
1778         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1779         UNOP_MEMVAL_TYPE.
1780         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1781         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1782         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1783         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1784         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1785         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1786         elt.
1787         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1788         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1789         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1790         (dump_prefix_expression): Handle OP_TYPE.
1791
1792 2012-08-08  Keith Seitz  <keiths@redhat.com>
1793
1794         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1795         addr_start.
1796
1797 2012-08-08  Doug Evans  <dje@google.com>
1798
1799         * linux-thread-db.c: #include "gdb_vecs.h".
1800         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1801         updated.
1802         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1803         (thread_db_load_search): Use a vector to iterate over path elements.
1804         Handle text appearing after "$pdir".
1805
1806         * gdb_string.h: Moved to ...
1807         * common/gdb_string.h: ... here.
1808         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1809         gdb_string.h and gdb_assert.h.
1810
1811 2012-08-08  Yao Qi  <yao@codesourcery.com>
1812
1813         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1814         (tic6x_value_to_register): Likewise.
1815         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1816         and set_gdbarch_value_to_register.
1817
1818 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1819             Jean-Marc Saffroy  <saffroy@gmail.com>
1820
1821         PR 11804
1822         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1823         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1824         * gcore.c (gcore_create_callback): New function comment.  Add modified
1825         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1826         according to MODIFIED.
1827         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1828         the passed modified value to FUNC.
1829         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1830         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1831         first.  New variables modified and has_anonymous.  Parse the lines of
1832         smaps file.  Add the passed MODIFIED value to FUNC.
1833         * procfs.c (find_memory_regions_callback): Add the passed modified
1834         value.
1835
1836 2012-08-06  Tom Tromey  <tromey@redhat.com>
1837
1838         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1839         (dwarf2_frame_cache): Use it.
1840         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1841         cache initialization constraint.
1842
1843 2012-08-06  Tom Tromey  <tromey@redhat.com>
1844
1845         PR python/14386:
1846         * varobj.c (update_dynamic_varobj_children): Don't call
1847         PyIter_Check.
1848
1849 2012-08-06  Tom Tromey  <tromey@redhat.com>
1850
1851         PR cli/14392:
1852         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1853
1854 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1855
1856         * NEWS: New entry for 'cd' default parameters.
1857         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1858
1859 2012-08-03  Tom Tromey  <tromey@redhat.com>
1860
1861         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1862         return.
1863
1864 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1865
1866         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1867         to attempting lseek/write.
1868         (inf_child_fileio_pread): Likewise for pread.
1869
1870 2012-08-02  Yao Qi  <yao@codesourcery.com>
1871
1872         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1873         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1874         add_setshow_zinteger_cmd.
1875         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1876         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1877         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1878         instead of add_setshow_zinteger_cmd.
1879         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1880         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1881         instead of add_setshow_zinteger_cmd.
1882         * frame.c (frame_debug): Add 'unsigned'.
1883         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1884         add_setshow_zinteger_cmd.
1885         * frame.h: Update the declaration of 'frame_debug'.
1886         * gdbtypes.c (overload_debug): Add 'unsigned'.
1887         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1888         add_setshow_zinteger_cmd.
1889         * inferior.h: Update declaration of 'debug_infrun'.
1890         * infrun.c (debug_infrun): Add 'unsigned'.
1891         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1892         add_setshow_zinteger_cmd.
1893         * jit.c (jit_debug): Add 'unsigned'.
1894         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1895         add_setshow_zinteger_cmd.
1896         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1897         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1898         instead of add_setshow_zinteger_cmd.
1899         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1900         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1901         add_setshow_zinteger_cmd.
1902         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1903         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1904         instead of add_setshow_zinteger_cmd.
1905         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1906         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1907         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1908         intead of add_setshow_zinteger_cmd.
1909         * mips-tdep.c (mips_debug): Add 'unsigned'.
1910         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1911         instead of add_setshow_zinteger_cmd.
1912         * monitor.c (monitor_debug): Add 'unsigned'.
1913         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1914         add_setshow_zinteger_cmd.
1915         * observer.c (observer_debug): Add 'unsigned'.
1916         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1917         add_setshow_zinteger_cmd.
1918         * parse.c (expressiondebug): Add 'unsigned'.
1919         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1920         add_setshow_zinteger_cmd.
1921         * record.c (record_debug): Add 'unsigned'.
1922         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1923         add_setshow_zinteger_cmd.
1924         * record.h: Update the declaration of 'record_debug'.
1925         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1926         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1927         add_setshow_zinteger_cmd.
1928         * serial.c (global_serial_debug_p): Add 'unsigned'.
1929         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1930         add_setshow_zinteger_cmd.
1931         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1932         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1933         add_setshow_zinteger_cmd.
1934         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1935         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1936         add_setshow_zinteger_cmd.
1937         * target.c (targetdebug): Add 'unsigned'.
1938         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1939         add_setshow_zinteger_cmd.
1940         * valops.c (overload_debug): Add 'unsigned'.
1941         * varobj.c (varobjdebug): Add 'unsigned'.
1942         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1943         add_setshow_zinteger_cmd.
1944         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1945         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1946         instead of add_setshow_zinteger_cmd.
1947
1948         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1949         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1950         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1951         instead of add_setshow_zinteger_cmd.
1952         * gdbarch.c, gdbarch.h: Re-generated.
1953
1954 2012-08-02  Yao Qi  <yao@codesourcery.com>
1955
1956         * nto-tdep.c: Don't include cli/cli-decode.h and
1957         cli/cli-cmds.h.
1958         (_initialize_nto_tdep): Remove.
1959         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1960         Remove field.
1961         Remove macro nto_internal_debugging.
1962
1963 2012-08-01  Richard Henderson  <rth@redhat.com>
1964
1965         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1966         (mep-*-*) [gdb_target_obs]: Likewise.
1967
1968 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
1969
1970         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1971         linux_get_siginfo_type.
1972
1973 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1974
1975         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1976         AT_ENTRY_POINT.
1977         (call_function_by_hand) <ON_STACK>: Call write_memory with
1978         gdbarch_breakpoint_from_pc, if possible.
1979         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1980         here.
1981
1982 2012-07-31  Yao Qi  <yao@codesourcery.com>
1983
1984         * tracepoint.c: Add 'static' for some variables.
1985
1986 2012-07-31  Yao Qi  <yao@codesourcery.com>
1987
1988         * go32-nat.c: Declare _initialize_go32_nat.
1989         * ser-go32.c: Declare _initialize_ser_dos.
1990         * top.c (do_chdir_cleanup): Add 'static'.
1991
1992 2012-07-30  Keith Seitz  <keiths@redhat.com>
1993
1994         * linespec.c (linespec_lex_number): A number followed
1995         by quotes is a valid number, too.
1996
1997 2012-07-30  Tom Tromey  <tromey@redhat.com>
1998
1999         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2000
2001 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
2002
2003         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2004         attempt to 4-byte-align HW breakpoint addresses for Thumb.
2005
2006 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
2007
2008         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2009         invalid or reevaluated to prevent prevent references to possibly
2010         delete'd type objects being left in the varobj.
2011
2012 2012-07-27  Tom Tromey  <tromey@redhat.com>
2013             Jan Kratochvil  <jan.kratochvil@redhat.com>
2014
2015         * copying.awk: Print buffer-read-only and vi ro markers.
2016         * copying.c: Rebuild.
2017         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2018         * gdbarch.c, gdbarch.h: Rebuild.
2019         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2020         buffer-read-only and vi ro markers.
2021         * features/arm-with-iwmmxt.c: Rebuild.
2022         * features/arm-with-m-fpa-layout.c: Rebuild.
2023         * features/arm-with-m-vfp-d16.c: Rebuild.
2024         * features/arm-with-m.c: Rebuild.
2025         * features/arm-with-neon.c: Rebuild.
2026         * features/arm-with-vfpv2.c: Rebuild.
2027         * features/arm-with-vfpv3.c: Rebuild.
2028         * features/i386/amd64-avx-linux.c: Rebuild.
2029         * features/i386/amd64-avx.c: Rebuild.
2030         * features/i386/amd64-linux.c: Rebuild.
2031         * features/i386/amd64.c: Rebuild.
2032         * features/i386/i386-avx-linux.c: Rebuild.
2033         * features/i386/i386-avx.c: Rebuild.
2034         * features/i386/i386-linux.c: Rebuild.
2035         * features/i386/i386-mmx-linux.c: Rebuild.
2036         * features/i386/i386-mmx.c: Rebuild.
2037         * features/i386/i386.c: Rebuild.
2038         * features/i386/x32-avx-linux.c: Rebuild.
2039         * features/i386/x32-avx.c: Rebuild.
2040         * features/i386/x32-linux.c: Rebuild.
2041         * features/i386/x32.c: Rebuild.
2042         * features/mips-dsp-linux.c: Rebuild.
2043         * features/mips-linux.c: Rebuild.
2044         * features/mips64-dsp-linux.c: Rebuild.
2045         * features/mips64-linux.c: Rebuild.
2046         * features/rs6000/powerpc-32.c: Rebuild.
2047         * features/rs6000/powerpc-32l.c: Rebuild.
2048         * features/rs6000/powerpc-403.c: Rebuild.
2049         * features/rs6000/powerpc-403gc.c: Rebuild.
2050         * features/rs6000/powerpc-405.c: Rebuild.
2051         * features/rs6000/powerpc-505.c: Rebuild.
2052         * features/rs6000/powerpc-601.c: Rebuild.
2053         * features/rs6000/powerpc-602.c: Rebuild.
2054         * features/rs6000/powerpc-603.c: Rebuild.
2055         * features/rs6000/powerpc-604.c: Rebuild.
2056         * features/rs6000/powerpc-64.c: Rebuild.
2057         * features/rs6000/powerpc-64l.c: Rebuild.
2058         * features/rs6000/powerpc-7400.c: Rebuild.
2059         * features/rs6000/powerpc-750.c: Rebuild.
2060         * features/rs6000/powerpc-860.c: Rebuild.
2061         * features/rs6000/powerpc-altivec32.c: Rebuild.
2062         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2063         * features/rs6000/powerpc-altivec64.c: Rebuild.
2064         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2065         * features/rs6000/powerpc-cell32l.c: Rebuild.
2066         * features/rs6000/powerpc-cell64l.c: Rebuild.
2067         * features/rs6000/powerpc-e500.c: Rebuild.
2068         * features/rs6000/powerpc-e500l.c: Rebuild.
2069         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2070         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2071         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2072         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2073         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2074         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2075         * features/rs6000/powerpc-vsx32.c: Rebuild.
2076         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2077         * features/rs6000/powerpc-vsx64.c: Rebuild.
2078         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2079         * features/rs6000/rs6000.c: Rebuild.
2080         * features/s390-linux32.c: Rebuild.
2081         * features/s390-linux32v1.c: Rebuild.
2082         * features/s390-linux32v2.c: Rebuild.
2083         * features/s390-linux64.c: Rebuild.
2084         * features/s390-linux64v1.c: Rebuild.
2085         * features/s390-linux64v2.c: Rebuild.
2086         * features/s390x-linux64.c: Rebuild.
2087         * features/s390x-linux64v1.c: Rebuild.
2088         * features/s390x-linux64v2.c: Rebuild.
2089         * features/tic6x-c62x-linux.c: Rebuild.
2090         * features/tic6x-c62x.c: Rebuild.
2091         * features/tic6x-c64x-linux.c: Rebuild.
2092         * features/tic6x-c64x.c: Rebuild.
2093         * features/tic6x-c64xp-linux.c: Rebuild.
2094         * features/tic6x-c64xp.c: Rebuild.
2095
2096 2012-07-27  Tom Tromey  <tromey@redhat.com>
2097
2098         * c-exp.y (classify_name): Avoid assignment in condition.
2099
2100 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2101
2102         * amd64-windows-tdep.c: Include "frame.h".
2103         (amd64_windows_skip_trampoline_code): New function.
2104         (amd64_windows_init_abi): Add trampoline registration.
2105
2106 2012-07-27  Yao Qi  <yao@codesourcery.com>
2107
2108         * tracepoint.c (cur_traceframe_number): Remove.
2109         (set_tfile_traceframe): Remove.
2110         (tfile_trace_find, tfile_fetch_registers): Update callers.
2111         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2112         (tfile_open, tfile_trace_find): Likewise.
2113
2114 2012-07-27  Yao Qi  <yao@codesourcery.com>
2115
2116         * thread.c (switch_to_thread): Don't call registers_changed.
2117
2118 2012-07-26  Tom Tromey  <tromey@redhat.com>
2119
2120         * Makefile.in (SFILES): Remove objc-exp.y.
2121         (YYFILES): Remove objc-exp.c.
2122         (YYOBJ): Remove objc-exp.o.
2123         (local-maintainer-clean): Don't mention objc-exp.c.
2124         * c-exp.y: Include objc-lang.h.
2125         (%union) <class>: New field.
2126         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2127         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2128         Objective C productions.
2129         (msglist, msgarglist, msgarg): New productions.
2130         (array_mod, func_mod, operator): Clone productions for
2131         OBJC_LBRAC.
2132         (parse_string_or_char): Handle '@' strings.
2133         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2134         (classify_name): Check la_name_of_this.  Recognize ObjC class
2135         names.
2136         * objc-exp.y: Remove.
2137         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2138         * objc-lang.h (objc_parse, objc_error): Don't declare.
2139
2140 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2141
2142         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2143
2144 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2145
2146         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2147         and decrement.
2148
2149 2012-07-26  Tom Tromey  <tromey@redhat.com>
2150
2151         * copying.c: Rebuild.
2152         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2153         'no_class'.
2154
2155 2012-07-26  Tom Tromey  <tromey@redhat.com>
2156
2157         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2158         immediate_quit.
2159         (print_objfile_statistics): Likewise.
2160         (maintenance_print_symbols): Likewise.
2161         (maintenance_print_msymbols): Likewise.
2162         (maintenance_print_objfiles): Likewise.
2163         * psymtab.c (print_partial_symbols): Call QUIT.
2164         (maintenance_print_psymbols): Likewise.  Don't modify
2165         immediate_quit.
2166         * copying.c (show_copying_command): Don't modify immediate_quit.
2167         (show_warranty_command): Likewise.
2168         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2169
2170 2012-07-26  Keith Seitz  <keiths@redhat.com>
2171
2172         * linespec.c (linespec_lexer_lex_number): The input
2173         is also a valid number if the next character is a comma
2174         or colon.
2175
2176 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2177
2178         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2179         configure options.
2180
2181 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2182
2183         * machoread.c: Include gdb_bfd.h.
2184
2185 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2186
2187         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2188         offset.
2189
2190 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2191
2192         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2193         SIZE to size_t.
2194         (dwarf2_evaluate_loc_desc): Likewise.
2195         (dwarf2_loc_desc_needs_frame): Likewise.
2196         (locexpr_describe_location_1): Likewise.
2197         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2198         size_t.
2199         (struct dwarf2_loclist_baton): Likewise.
2200         * dwarf2read.c (struct dwarf_block): Likewise.
2201         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2202         (decode_locdesc): Expand SIZE and I to size_t.
2203
2204 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2205
2206         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2207
2208 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2209
2210         * doublest.c (convert_doublest_to_floatformat): If the exponent
2211         is too small, treat the value as zero.  If the exponent is too
2212         large, treat the value as infinity.
2213
2214 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2215
2216         * configure.ac: Add --enable-lmcheck configure option.
2217         * configure: Regenerate.
2218
2219 2012-07-25  Tom Tromey  <tromey@redhat.com>
2220
2221         * NEWS: Mention maint info bfds.
2222         * gdb_bfd.c (all_bfds): New global.
2223         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2224         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2225         New functions.
2226
2227 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2228
2229         * configure.tgt: Add v850*-*-rtems*.
2230
2231 2012-07-25  Tom Tromey  <tromey@redhat.com>
2232
2233         * macrotab.c (macro_bcache_str): Remove cast.
2234
2235 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2236
2237         * linespec.c (linespec_lexer_lex_number): Update comments,
2238         change the return and add check to make sure the input is
2239         the decimal numbers.
2240         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2241         false, call linespec_lexer_lex_string.
2242
2243 2012-07-24  Tom Tromey  <tromey@redhat.com>
2244
2245         * symfile.c (symbol_file_add): Don't open BFD twice.
2246
2247 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2248
2249         * breakpoint.c (create_breakpoint): Store condition for pending
2250         breakpoints.
2251
2252 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2253
2254         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2255         (m68k_return_value): Handle complex types like structures.
2256         (m68k_svr4_return_value): Likewise.
2257
2258 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2259
2260         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2261         parameters to bfd_get_section_name.
2262
2263 2012-07-24  Yao Qi  <yao@codesourcery.com>
2264
2265         * cli/cli-setshow.c: Handle case 'var_uinteger'
2266         and 'var_zuninteger' together.  Handle case 'var_integer' and
2267         'var_zinteger' together.
2268
2269 2012-07-23  Keith Seitz  <keiths@redhat.com>
2270
2271         * linespec.c (convert_linespec_to_sal): Don't add
2272         any symbols to the result vector if symbol_to_sal
2273         returns zero.
2274
2275 2012-07-23  Keith Seitz  <keiths@redhat.com>
2276
2277         * linespec.c (decode_objc): Record the function name
2278         in the linespec.
2279
2280 2012-07-23  Tom Tromey  <tromey@redhat.com>
2281
2282         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2283         counting.
2284         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2285         (map_vmap): Acquire a reference to the BFD.
2286
2287 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2288
2289         * p-valprint.c (pascal_object_print_value): Replace potentially
2290         unsafe alloca with xmalloc/xfree.
2291         * valops.c (search_struct_method): Likewise.
2292
2293 2012-07-23  Tom Tromey  <tromey@redhat.com>
2294
2295         * solib-svr4.c (enable_break): Update.
2296         * bfd-target.h (target_bfd_reopen): Update documentation.
2297
2298 2012-07-23  Tom Tromey  <tromey@redhat.com>
2299
2300         * symfile.c (separate_debug_file_exists): Update.
2301         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2302         (reread_symbols): Update.
2303         * elfread.c (build_id_verify): Update.
2304         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2305         bfd_open_maybe_remote.
2306
2307 2012-07-23  Tom Tromey  <tromey@redhat.com>
2308
2309         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2310
2311 2012-07-23  Tom Tromey  <tromey@redhat.com>
2312
2313         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2314         and 'abfd'.
2315         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2316         and 'abfd'.
2317         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2318         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2319         'abfd'.
2320         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2321         * objfiles.c (allocate_objfile): Acquire a new reference.
2322         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2323         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2324         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2325         a cleanup for 'nbfd'.
2326         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2327         for 'nbfd'.
2328         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2329         make a cleanup for 'abfd'.
2330         (symbol_file_add): Make a BFD cleanup.
2331
2332 2012-07-23  Tom Tromey  <tromey@redhat.com>
2333
2334         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2335         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2336         * corelow.c (core_open): Use gdb_bfd_fopen.
2337         * dsrec.c (load_srec): Use gdb_bfd_openr.
2338         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2339         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2340         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2341         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2342         (gdb_bfd_fdopenr): New functions.
2343         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2344         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2345         (gdb_bfd_fdopenr): Declare.
2346         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2347         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2348         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2349         gdb_bfd_openr_next_archived_file.
2350         (macho_check_dsym): Use gdb_bfd_openr.
2351         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2352         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2353         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2354         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2355         gdb_bfd_openr.
2356         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2357         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2358         gdb_bfd_openr_next_archived_file.
2359         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2360         Use gdb_bfd_openr.
2361         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2362         gdb_bfd_openr.
2363         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2364         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2365         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2366         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2367         (symfile_bfd_open): Use gdb_bfd_fopen.
2368         (generic_load): Use gdb_bfd_openr.
2369         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2370
2371 2012-07-23  Tom Tromey  <tromey@redhat.com>
2372
2373         * bfd-target.c (target_bfd_reopen): Update.
2374         * cli/cli-dump.c (bfd_openr_with_cleanup)
2375         (bfd_openw_with_cleanup): Update.
2376         * corelow.c (core_open): Update.
2377         * dsrec.c (load_srec): Update.
2378         * exec.c (exec_file_attach): Update.
2379         * gcore.c (create_gcore_bfd): Update.
2380         * gdb_bfd.c (gdb_bfd_ref): Return void.
2381         (gdb_bfd_open): Update.
2382         * gdb_bfd.h (gdb_bfd_ref): Return void.
2383         Update comments.
2384         * jit.c (jit_bfd_try_read_symtab): Update.
2385         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2386         * machoread.c (macho_symfile_read_all_oso): Update.
2387         (macho_check_dsym): Update.
2388         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2389         * remote-m32r-sdi.c (m32r_load): Update.
2390         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2391         * rs6000-nat.c (add_vmap): Update.
2392         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2393         Update.
2394         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2395         * solib-spu.c (spu_bfd_open): Update.
2396         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2397         * spu-linux-nat.c (spu_bfd_open): Update.
2398         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2399         (generic_load): Update.
2400         * windows-nat.c (windows_make_so): Update.
2401
2402 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2403
2404         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2405
2406 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2407
2408         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2409         SIGTRAMP_FRAME unwinding.
2410
2411 2012-07-20  Doug Evans  <dje@google.com>
2412
2413         * NEWS: Document new options "set/show use-deprecated-index-sections",
2414         and delete reference to --use-deprecated-index-sections.
2415         * symfile.h (use_deprecated_index_sections): Delete.
2416         * dwarf2read.c (use_deprecated_index_sections): Make static.
2417         (read_index_from_section): Update wording of how to load
2418         deprecated index sections.
2419         (_initialize_dwarf2_read): New options
2420         "set/show use-deprecated-index-sections".
2421         * main.c (captured_main): Delete --use-deprecated-index-sections.
2422
2423 2012-07-20  Pedro Alves  <palves@redhat.com>
2424
2425         PR threads/11692
2426         PR gdb/12203
2427
2428         * infrun.c (handle_inferior_event) <new thread>: Don't special
2429         case minus_one_ptid.
2430         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2431         * linux-thread-db.c (thread_get_info_callback): Don't return early
2432         if the thread is zombie.
2433         (thread_from_lwp): Change return type to void.  Rewrite stale
2434         comment.
2435         (attach_thread): Don't return early if the thread is zombie,
2436         instead set its "dying" flag.
2437         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2438         (find_new_threads_callback): Don't return early if the thread is
2439         zombie.
2440
2441 2012-07-20  Pedro Alves  <palves@redhat.com>
2442
2443         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2444         * target.c (target_wait): Likewise.
2445         (str_comma_list_concat_elem, do_option, target_options_to_string):
2446         New functions.
2447         * target.h (target_options_to_string): Declare.
2448
2449 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2450             Tom Tromey  <tromey@redhat.com>
2451
2452         * dwarf2read.c (dwarf_decode_macros)
2453         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2454         DW_MACRO_GNU_transparent_include_alt>: New cases.
2455         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2456         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2457
2458 2012-07-20  Tom Tromey  <tromey@redhat.com>
2459
2460         * dwarf2read.c (try_open_dwo_file): Don't call
2461         gdb_bfd_stash_filename.
2462
2463 2012-07-20  Pedro Alves  <palves@redhat.com>
2464
2465         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2466         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2467         (i386_process_record): Tweak description comments.
2468
2469 2012-07-20  Pedro Alves  <palves@redhat.com>
2470
2471         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2472         (i386_process_record): Use record_read_memory.
2473         * record.c (record_read_memory): New function.
2474         (record_arch_list_add_mem, record_exec_insn): Use
2475         record_read_memory.
2476         * record.h (record_read_memory): Declare.
2477
2478 2012-07-20  Yao Qi  <yao@codesourcery.com>
2479
2480         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2481         NULL for xfree.
2482
2483 2012-07-19  Pedro Alves  <palves@redhat.com>
2484
2485         * record.c (record_resume): Ask the target beneath to report all
2486         signals.
2487
2488 2012-07-19  Doug Evans  <dje@google.com>
2489
2490         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2491         there's no section at address zero.
2492         (dwarf2_record_block_ranges): Ditto.
2493
2494 2012-07-19  Yao Qi  <yao@codesourcery.com>
2495
2496         * command.h, remote.c: Fix a typo in comment.
2497
2498 2012-07-19  Tom Tromey  <tromey@redhat.com>
2499
2500         PR exp/13206:
2501         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2502         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2503         OP_DECLTYPE>: New cases.
2504         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2505         (type_exp): Add new productions.
2506         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2507         and decltype.
2508         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2509         New case.
2510         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2511         OP_DECLTYPE>: New case.
2512         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2513         New case.
2514         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2515         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2516
2517 2012-07-19  Tom Tromey  <tromey@redhat.com>
2518
2519         * c-exp.y (enum token_flags): New.
2520         (struct token) <cxx_only>: Remove.
2521         <flags>: New field.
2522         (tokentab3, tokentab2, ident_tokens): Update.
2523         (lex_one_token): Update.  Handle FLAG_SHADOW.
2524
2525 2012-07-19  Tom Tromey  <tromey@redhat.com>
2526
2527         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2528         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2529         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2530         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2531         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2532         type_exp production where appropriate.
2533         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2534         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2535         <UNOP_MEMVAL_TYPE>: New case.
2536         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2537         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2538         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2539         <UNOP_MEMVAL_TYPE>: New case.
2540         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2541         UNOP_REINTERPRET_CAST>: Update.
2542         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2543         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2544         UNOP_REINTERPRET_CAST>: Update.
2545         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2546         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2547         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2548         constants.
2549
2550 2012-07-19  Yao Qi  <yao@codesourcery.com>
2551             Jan Kratochvil <jan.kratochvil@redhat.com>
2552
2553         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2554         and case 'var_optional_filename' together.
2555         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2556         instead of add_setshow_optional_filename_cmd for setshow command
2557         'args'.  Set completer for 'set args'.
2558
2559 2012-07-18  Doug Evans  <dje@google.com>
2560
2561         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2562         * common/gdb_vecs.c: New file, contents from utils.c.
2563         * common/host-defs.h: New file, contents from defs.h.
2564         * utils.h: New file, contents from defs.h.
2565         * defs.h: Move all declarations of objects defined in utils.c
2566         to utils.h (except QUIT() and related).
2567         #include "utils.h", "host-defs.h".
2568         * probe.h (probe_p): Move here from gdb_vecs.h.
2569         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2570         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2571         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2572         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2573         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2574         (COMMON_OBS): Add gdb_vecs.o.
2575         (gdb_vecs.o): New rule.
2576
2577 2012-07-18  Keith Seitz  <keiths@redhat.com>
2578
2579         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2580         parameter.  If non-zero, use SYMNAME as the canonical name
2581         for the SaL.
2582         Update all callers.
2583         (convert_linespec_to_sals): Use add_sal_to_sals for
2584         expressions, too.
2585         (decode_line_full): No need to "fill in missing canonical names"
2586         anymore. Simply make cleanups for the allocated names.
2587
2588 2012-07-18  Keith Seitz  <keiths@redhat.com>
2589
2590         * linespec.c (struct linespec): Constify expression,
2591         source_filename, function_name, and label_name.
2592         (symbol_not_found_error): Make all parameters const.
2593         (linespec_parser_delete): No need to check for NULL
2594         when using xfree. Cast const char * to char * for xfree.
2595
2596 2012-07-18  Keith Seitz  <keiths@redhat.com>
2597
2598         * breakpoint.c (invalid_thread_id_error): New function.
2599         (find_condition_and_thread): Use invalid_thread_id_error.
2600         (watch_command_1): Likewise.
2601
2602 2012-07-18  Tom Tromey  <tromey@redhat.com>
2603
2604         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2605         * contrib/cc-with-tweaks.sh: New file.
2606
2607 2012-07-18  Tom Tromey  <tromey@redhat.com>
2608
2609         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2610         (locate_dwz_sections): Recognize .gdb_index.
2611         (create_cus_from_index_list): New function.
2612         (create_cus_from_index): Use it.  Handle .dwz data.
2613         (read_index_from_section): New function, extracted from
2614         dwarf2_read_index.
2615         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2616         if needed.
2617
2618 2012-07-18  Tom Tromey  <tromey@redhat.com>
2619
2620         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2621         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2622         <is_dwz>: New field.
2623         (struct dwz_file): New.
2624         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2625         (locate_dwz_sections, dwarf2_get_dwz_file)
2626         (get_abbrev_section_for_cu): New functions.
2627         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2628         (read_and_check_type_unit_head): Add abbrev_section argument.
2629         (create_debug_types_hash_table): Update.
2630         (init_cutu_and_read_dies): Use proper abbrev section.
2631         (init_cutu_and_read_dies_no_follow): Likewise.
2632         (set_partial_user): Do nothing if PST==NULL.
2633         (read_comp_units_from_section): New function.
2634         (create_all_comp_units): Use it.
2635         (scan_partial_symbols, partial_die_parent_scope): Update.
2636         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2637         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2638         (find_partial_die): Add offset_in_dwz argument.  Update.
2639         (guess_partial_die_structure_name, fixup_partial_die): Update.
2640         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2641         DW_FORM_GNU_strp_alt.
2642         (read_indirect_string_from_dwz): New function.
2643         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2644         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2645         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2646         (follow_die_offset): Add offset_in_dwz argument.
2647         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2648         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2649         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2650         Handle new macro forms.
2651         (dwarf_decode_macros): Update.
2652         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2653         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2654         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2655         (create_debug_types_hash_table): Use correct abbrev section.
2656         (get_debug_line_section): New function.
2657         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2658         (process_full_comp_unit): Pass 'required' argument to
2659         end_symtab_get_static_block.
2660         * buildsym.h (end_symtab_get_static_block): Update.
2661         * buildsym.c (end_symtab_get_static_block): Add 'required'
2662         argument.
2663         (end_symtab, end_expandable_symtab): Update.
2664
2665 2012-07-18  Tom Tromey  <tromey@redhat.com>
2666
2667         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2668         (pagesize): Remove.
2669         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2670         (zlib_decompress_section): Remove.
2671         (dwarf2_read_section): Use gdb_bfd_map_section.
2672         (munmap_section_buffer): Remove.
2673         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2674         munmap_section_buffer.
2675         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2676         (struct gdb_bfd_section_data): New.
2677         (free_one_bfd_section): New function.
2678         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2679         (get_section_descriptor, zlib_decompress_section)
2680         (gdb_bfd_map_section): New functions.
2681         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2682
2683 2012-07-18  Tom Tromey  <tromey@redhat.com>
2684
2685         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2686
2687 2012-07-18  Tom Tromey  <tromey@redhat.com>
2688
2689         * gdb_bfd.c (struct gdb_bfd_data): New.
2690         (gdb_bfd_cache): New global.
2691         (struct gdb_bfd_cache_search): New.
2692         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2693         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2694         * gdb_bfd.h (gdb_bfd_open): Declare.
2695
2696 2012-07-18  Tom Tromey  <tromey@redhat.com>
2697
2698         * utils.c (make_cleanup_bfd_unref): Rename from
2699         make_cleanup_bfd_close.
2700         * defs.h (make_cleanup_bfd_unref): Rename from
2701         make_cleanup_bfd_close.
2702         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2703         (bfd_openw_with_cleanup): Update.
2704         * corelow.c (core_open): Update.
2705         * dsrec.c (load_srec): Update.
2706         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2707         * remote-m32r-sdi.c (m32r_load): Update.
2708         * remote-mips.c (mips_load_srec): Update.
2709         (pmon_load_fast): Update.
2710         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2711         Update.
2712         (darwin_bfd_open): Update.
2713         * solib.c (solib_bfd_fopen): Update.
2714         * symfile-mem.c (symbol_file_add_from_memory): Update.
2715         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2716         (symfile_bfd_open): Update.
2717         (generic_load): Update.
2718
2719 2012-07-18  Tom Tromey  <tromey@redhat.com>
2720
2721         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2722         (pmon_load_fast): Likewise.
2723         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2724         (m32r_upload_command): Likewise.
2725         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2726         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2727         Use make_cleanup_bfd_close.
2728
2729 2012-07-18  Tom Tromey  <tromey@redhat.com>
2730
2731         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2732         gdb_bfd_stash_filename.
2733         (load_command): Open the new BFD before freeing the old.
2734         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2735         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2736         Call gdb_bfd_stash_filename.
2737         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2738         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2739         gdb_bfd_stash_filename.
2740         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2741         Free found_pathname.
2742         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2743         gdb_bfd_stash_filename.
2744         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2745         * machoread.c (macho_add_oso_symfile): Call
2746         gdb_bfd_stash_filename.
2747         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2748         gdb_bfd_stash_filename.
2749         (macho_check_dsym): Don't copy filename.  Call
2750         gdb_bfd_stash_filename.
2751         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2752         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2753         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2754         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2755         * exec.c (exec_close): Don't free the BFD's filename.
2756         (exec_file_attach): Don't copy the filename.  Call
2757         gdb_bfd_stash_filename.
2758         * corelow.c (core_close): Don't free the BFD's filename.
2759         (core_open): Call gdb_bfd_stash_filename.
2760         * corefile.c (reopen_exec_file): Remove #if 0 code.
2761         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2762         pathname.
2763         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2764
2765 2012-07-18  Tom Tromey  <tromey@redhat.com>
2766
2767         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2768         gdb_bfd_unref.
2769         (free_dwo_file): Use gdb_bfd_unref.
2770         * cli/cli-dump.c: Include gdb_bfd.h.
2771         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2772         (bfd_openr_with_cleanup): Likewise.
2773         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2774         gdb_bfd_unref.
2775         * utils.c: Include gdb_bfd.h.
2776         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2777         * symfile.c: Include gdb_bfd.h.
2778         (separate_debug_file_exists): Use gdb_bfd_unref.
2779         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2780         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2781         (generic_load): Use gdb_bfd_ref.
2782         (reread_symbols): Use gdb_bfd_unref.
2783         * symfile-mem.c: Include gdb_bfd.h.
2784         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2785         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2786         * solib.c: Include gdb_bfd.h.
2787         (solib_bfd_fopen): Use gdb_bfd_ref.
2788         (solib_bfd_open): Use gdb_bfd_unref.
2789         (free_so_symbols): Use gdb_bfd_unref.
2790         (reload_shared_libraries_1): Use gdb_bfd_unref.
2791         * solib-spu.c: Include gdb_bfd.h.
2792         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2793         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2794         gdb_bfd_unref.
2795         * solib-frv.c: Include gdb_bfd.h.
2796         (enable_break2): Use gdb_bfd_unref.
2797         * solib-dsbt.c: Include gdb_bfd.h.
2798         (enable_break2): Use gdb_bfd_unref.
2799         * solib-darwin.c: Include gdb_bfd.h.
2800         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2801         gdb_bfd_unref.
2802         (darwin_bfd_open): Use gdb_bfd_unref.
2803         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2804         * remote-mips.c: Include gdb_bfd.h.
2805         (mips_load_srec): Use gdb_bfd_ref.
2806         (pmon_load_fast): Use gdb_bfd_ref.
2807         * remote-m32r-sdi.c: Include gdb_bfd.h.
2808         (m32r_load): Use gdb_bfd_ref.
2809         * record.c: Include gdb_bfd.h.
2810         (record_save_cleanups): Use gdb_bfd_unref.
2811         (cmd_record_save): Use gdb_bfd_unref.
2812         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2813         gdb_bfd_unref.
2814         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2815         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2816         * objfiles.c: Include gdb_bfd.h.
2817         (free_objfile): Use gdb_bfd_unref.
2818         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2819         gdb_bfd.c.
2820         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2821         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2822         (macho_check_dsym): Likewise.
2823         * m32r-rom.c: Include gdb_bfd.h.
2824         (m32r_load): Use gdb_bfd_ref.
2825         (m32r_upload_command): Use gdb_bfd_ref.
2826         * jit.c: Include gdb_bfd.h.
2827         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2828         * gdb_bfd.h: New file.
2829         * gdb_bfd.c: New file.
2830         * gcore.c: Include gdb_bfd.h.
2831         (create_gcore_bfd): Use gdb_bfd_ref.
2832         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2833         (gcore_command): Use gdb_bfd_unref.
2834         * exec.c: Include gdb_bfd.h.
2835         (exec_close): Use gdb_bfd_unref.
2836         (exec_close_1): Use gdb_bfd_unref.
2837         (exec_file_attach): Use gdb_bfd_ref.
2838         * elfread.c: Include gdb_bfd.h.
2839         (build_id_verify): Use gdb_bfd_unref.
2840         * dsrec.c: Include gdb_bfd.h.
2841         (load_srec): Use gdb_bfd_ref.
2842         * corelow.c: Include gdb_bfd.h.
2843         (core_close): Use gdb_bfd_unref.
2844         (core_open): Use gdb_bfd_ref.
2845         * bfd-target.c: Include gdb_bfd.h.
2846         (target_bfd_xclose): Use gdb_bfd_unref.
2847         (target_bfd_reopen): Use gdb_bfd_ref.
2848         * Makefile.in (SFILES): Add gdb_bfd.c.
2849         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2850         (COMMON_OBS): Add gdb_bfd.o.
2851
2852 2012-07-18  Keith Seitz  <keiths@redhat.com>
2853
2854         * breakpoint.c (find_condition_and_thread): Initialize
2855         TASK and REST.
2856         (create_breakpiont): find_condition_and_thread will now
2857         initialize COND_STRING, THREAD, and REST (and TASK).
2858         (addr_string_to_sals): Likewise.
2859
2860 2012-07-18  Pedro Alves  <palves@redhat.com>
2861
2862         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2863         Pull the single step breakpoints out of the target.
2864
2865 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2866
2867         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2868         * stap-probe.c (compile_probe_arg): Likewise.
2869
2870 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2871
2872         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2873         (elf_compile_to_ax): Likewise.
2874         * infrun.c (insert_exception_resume_from_probe): Likewise.
2875         (check_exception_resume): Remove `objfile' variable.
2876         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2877         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2878         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2879         (compare_entries): Rename to...
2880         (compare_probes): ...this.  Adjust function to work with
2881         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2882         respectively.
2883         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2884         `VEC (probe_p) *'.
2885         (print_ui_out_info): Adjust argument to be `struct probe *'.
2886         (info_probes_for_ops): Adjust internal computations to use
2887         `VEC (probe_p) *'.
2888         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2889         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2890         gen_info_probes_table_values>: Remove `objfile' argument.
2891         (struct probe) <objfile>: New field.
2892         (find_probe_by_pc): Remove `objfile' argument.
2893         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2894         (stap_get_probe_argument_count): Likewise.
2895         (stap_get_arg): Likewise.
2896         (stap_evaluate_probe_argument): Likewise.
2897         (stap_compile_to_ax): Likewise.
2898         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2899         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2900         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2901         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2902         sym_compile_to_ax>: Likewise.
2903
2904 2012-07-18  Terry Guo  <terry.guo@arm.com>
2905
2906         PR 14329
2907         * defs.h (GDB_MI_MSG_WIDTH): New.
2908         * ser_base (ser_base_read_error_fd): New function.
2909         (do_ser_base_readchar): Poll error file descriptor as well as
2910         standard output.
2911         (generic_readchar): Refactor error handling.
2912
2913 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2914
2915         * NEWS: Create a new section for the next release branch.
2916         Rename the section of the current branch, now that it has
2917         been cut.
2918
2919 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2920
2921         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2922         * version.in: Bump version to 7.5.50.20120718-cvs.
2923
2924 2012-07-17  Keith Seitz  <keiths@redhat.com>
2925
2926         * linespec.c (linespec_parse_line_offset): Make parameter
2927         const.
2928
2929 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2930
2931         PR 11914
2932         * f-valprint.c (info_common_command): New variable frame_id.
2933         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2934         * printcmd.c (print_variable_and_value): Extend function comment.
2935         Add comment for invalidated FRAME.
2936         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2937         FI form FRAME_ID after each print_frame_local_vars.
2938         (struct print_variable_and_value_data): Change frame to frame_id.
2939         (do_print_variable_and_value): New variable frame, initialize it from
2940         p->frame_id.  Add comment for invalidated FRAME.
2941         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2942         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2943         for invalidated FRAME.
2944
2945 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2946             Pedro Alves  <palves@redhat.com>
2947
2948         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2949         loop.
2950
2951 2012-07-16  Tom Tromey  <tromey@redhat.com>
2952
2953         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2954
2955 2012-07-15  Doug Evans  <dje@google.com>
2956
2957         * dwarf2read.c (stmt_list_hash): New struct.
2958         (type_unit_group): Embed "per_cu" member, remove pointer.
2959         New union member "t", move member "tus" into it, all uses updated.
2960         New member "hash", replaces member "line_offset, all uses updated.
2961         (quick_file_names): Replace member "offset" with "hash", all uses
2962         updated.
2963         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2964         (hash_file_name_entry, eq_file_name_entry): Call them.
2965         (hash_type_unit_group, eq_type_unit_group): Ditto.
2966         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2967         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2968         (dw2_get_file_names): Update.
2969         (create_type_unit_group): Replace "per_cu" arg with "cu".
2970         All callers updated.  Fix "quick" (.gdb_index) handling.
2971         (get_type_unit_group): Replace "per_cu" arg with "cu".
2972         All callers updated.
2973         (build_type_unit_groups): Don't reset tu_stats.
2974
2975         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2976         "tab_cur_size".  Change member "tab" to be a htab_t.
2977         (create_filename_seen_cache): Update.
2978         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2979         (filename_seen): Update.
2980
2981 2012-07-13  Doug Evans  <dje@google.com>
2982
2983         * symtab.c (filename_seen): Update comment.
2984
2985 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2986             Doug Evans  <dje@google.com>
2987
2988         * buildsym.c (end_symtab_1): Split it to ...
2989         (end_symtab_get_static_block): ... this ...
2990         (end_symtab_from_static_block): ... and this function.
2991         (end_symtab, end_expandable_symtab): Call them.
2992         * buildsym.h (end_symtab_get_static_block)
2993         (end_symtab_from_static_block): New declarations.
2994         * dwarf2read.c (process_full_comp_unit): New variable static_block.
2995         Set its valid CU ranges.
2996
2997 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2998
2999         * dwarf2loc.c (disassemble_dwarf_expression): Handle
3000         DW_OP_GNU_parameter_ref.
3001
3002 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3003
3004         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3005         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3006
3007 2012-07-13  Doug Evans  <dje@google.com>
3008
3009         * symtab.c (output_source_filename): Delete unnecessary forward decl.
3010         (filename_seen_cache): New struct.
3011         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3012         (create_filename_seen_cache): New function.
3013         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3014         (filename_seen): Delete arg "first".  New arg "cache".  All callers
3015         updated.
3016         (output_source_filename_data): New struct.
3017         (output_source_filename): Delete arg "first".  New arg "data".
3018         All callers updated.
3019         (sources_info): Delete local "first".  New locals "data", "cleanups".
3020         Rewrite to use filename_seen_cache.
3021         (add_partial_filename_data): Delete member "first".  New member
3022         "filename_seen_cache".  All uses updated.
3023         (make_source_files_completion_list): Rewrite to use
3024         filename_seen_cache.
3025
3026 2012-07-12  Doug Evans  <dje@google.com>
3027
3028         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3029
3030 2012-07-10  Doug Evans  <dje@google.com>
3031
3032         PR gdb/13498
3033         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3034         all_type_unit_groups, type_unit_groups, tu_stats.
3035         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3036         All uses updated.  Add type_unit_group to union "s".
3037         (type_unit_group): New struct.
3038         (IS_TYPE_UNIT_GROUP): New macro.
3039         (abbrev_table): Delete unused member "section".
3040         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3041         (dw2_get_cu): Assert not used with type_unit_group.
3042         (dw2_get_primary_cu): New function.
3043         (dw2_build_type_unit_groups_reader): New function.
3044         (dw2_build_type_unit_groups): New function.
3045         (dw2_get_file_names): Assert not called on type units.
3046         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3047         Redo loop to iterate over type unit groups instead of type units.
3048         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3049         (read_abbrev_offset): New function.
3050         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3051         updated.
3052         (create_partial_symtab): New function.
3053         (process_psymtab_comp_unit_reader): Assert not used with type units.
3054         Call create_partial_symtab.
3055         (process_psymtab_type_unit): Delete.
3056         (hash_type_unit_group, eq_type_unit_group): New functions.
3057         (allocate_type_unit_groups_table): New function.
3058         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3059         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3060         (create_type_unit_group, get_type_unit_group): New functions.
3061         (tu_abbrev_offset): New struct.
3062         (sort_tu_by_abbrev_offset): New function.
3063         (add_type_unit_group_to_table): New function.
3064         (build_type_unit_groups): New function.
3065         (build_type_psymtabs_reader): New function.
3066         (build_type_psymtab_dependencies): New function.
3067         (build_type_psymtabs): Rewrite.
3068         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3069         is seen in a type unit.
3070         (process_queue): Move symtab expansion debugging printfs here.
3071         Call process_full_type_unit for type units.
3072         (compute_symtab_includes): Assert not called for type units.
3073         (process_cu_includes): Don't call compute_symtab_includes for
3074         type units.
3075         (process_full_type_unit): New function.
3076         (process_imported_unit_die): Flag an error if called for type units.
3077         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3078         updated.  Assert not called for type units.
3079         (read_file_scope): Call dwarf2_start_symtab.
3080         (setup_type_unit_groups): New function.
3081         (read_type_unit_scope): Rewrite.
3082         (abbrev_table_read_table): Initialize abbrev_table->offset.
3083         (abbrev_table_free_cleanup): New function.
3084         (dwarf2_start_symtab): New function.
3085         (load_full_type_unit): Assert not called for type unit groups.
3086         * buildsym.c (finish_block_internal): New arg "expandable".
3087         All callers updated.
3088         (start_symtab): Move most contents to ...
3089         (restart_symtab): ... here.  New function.
3090         (reset_symtab_globals): New function.
3091         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3092         Call reset_symtab_globals.
3093         (end_symtab, end_expandable_symtab): New functions.
3094         (set_missing_symtab, augment_type_symtab): New functions.
3095         * buildsym.h (end_expandable_symtab): Declare.
3096         (augment_type_symtab, restart_symtab): Declare.
3097         * psympriv.h (struct partial_symtab): New member "anonymous".
3098         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3099         anonymous psymtabs.
3100         (read_psymtabs_with_filename): Ditto.
3101         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3102         (expand_symtabs_matching_via_partial): Ditto.
3103         (dump_psymtab): Update.
3104         * dictionary.c (dict_add_pending): New function.
3105         * dictionary.h (dict_add_pending): Declare.
3106
3107 2012-07-09  Doug Evans  <dje@google.com>
3108
3109         * buildsym.c (start_subfile): Remove unnecessary check for
3110         name == NULL.
3111
3112         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3113
3114         * dwarf2read.c (load_full_type_unit): Simplify.
3115
3116         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3117         to struct signatured_type **.  All uses updated.
3118
3119         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3120         All callers updated.
3121
3122 2012-07-09  Tom Tromey  <tromey@redhat.com>
3123
3124         * c-exp.y (check_parameter_typelist): New function.
3125         (parameter_typelist): Call it.
3126         * eval.c (make_params): Handle '(void)' case.
3127         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3128         '(void)' case.
3129
3130 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3131
3132         * common/linux-ptrace.c: Include gdb_assert.h.
3133         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3134         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3135         stdint.h.
3136         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3137         functions.
3138         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3139         * linux-nat.c (linux_child_post_attach)
3140         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3141
3142 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3143
3144         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3145         nptl <2.7 bug workaround for core files.
3146
3147 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3148
3149         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3150         clearing.
3151         (save_siginfo): Remove.
3152         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3153         call.
3154         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3155         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3156         * linux-nat.h (struct lwp_info): Remove field siginfo.
3157
3158 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3159
3160         Code cleanup for the next patch.
3161         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3162         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3163         call for it.
3164         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3165         (ia64_linux_stopped_data_address):
3166         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3167         the return value.
3168         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3169         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3170         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3171         call for it.
3172
3173 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3174
3175         PR 14321
3176         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3177         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3178
3179 2012-07-06  Tom Tromey  <tromey@redhat.com>
3180
3181         * c-exp.y (DOTDOTDOT): New token.
3182         (func_mod, exp): Use parameter_typelist.
3183         (parameter_typelist): New production.
3184         (tokentab3): Add "..." token.
3185         * eval.c (make_params): Handle varargs.
3186         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3187         varargs.
3188
3189 2012-07-06  Tom Tromey  <tromey@redhat.com>
3190
3191         PR exp/9608:
3192         * c-exp.y (%union) <tvec>: Change type.
3193         (func_mod): Now uses <tvec> type.
3194         (exp): Update for tvec change.
3195         (direct_abs_decl): Push the typelist.
3196         (func_mod): Return a typelist.
3197         (nonempty_typelist): Update for tvec change.
3198         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3199         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3200         * parse.c (pop_type_list): New function.
3201         (push_typelist): New function.
3202         (follow_types): Handle tp_function_with_arguments.
3203         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3204         (enum type_pieces) <tp_function_with_arguments>: New constant.
3205         (union type_stack_elt) <typelist_val>: New field.
3206         (push_typelist): Declare.
3207
3208 2012-07-06  Tom Tromey  <tromey@redhat.com>
3209
3210         * c-exp.y (%union) <type_stack>: New field.
3211         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3212         (ptr_operator_ts): New production.
3213         (ptype): Update.
3214         * parse.c (type_stack_reserve): New function.
3215         (check_type_stack_depth): Use it.
3216         (pop_type_stack, append_type_stack, push_type_stack)
3217         (get_type_stack, type_stack_cleanup): New functions.
3218         (follow_types): Handle tp_type_stack.
3219         (_initialize_parse): Simplify initialization.
3220         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3221         constant.
3222         (union type_stack_elt) <stack_val>: New field.
3223         (get_type_stack, append_type_stack, push_type_stack)
3224         (type_stack_cleanup): Declare.
3225
3226 2012-07-06  Tom Tromey  <tromey@redhat.com>
3227
3228         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3229         Remove.
3230         (struct type_stack): New.
3231         * parse.c (type_stack, type_stack_size, type_stack_depth):
3232         Remove.
3233         (type_stack): New global.
3234         (parse_exp_in_context, check_type_stack_depth)
3235         (insert_into_type_stack, insert_type, push_type, push_type_int)
3236         (insert_type_address_space, pop_type, pop_type_int)
3237         (_initialize_parse): Update.
3238
3239 2012-07-06  Tom Tromey  <tromey@redhat.com>
3240
3241         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3242         Remove %type.
3243
3244 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3245
3246         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3247
3248 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3249             Jan Kratochvil  <jan.kratochvil@redhat.com>
3250
3251         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3252         alloca with xmalloc/xfree.
3253
3254 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3255
3256         * MAINTAINERS (Write After Approval): Add myself to the list.
3257
3258 2012-07-05  Doug Evans  <dje@google.com>
3259
3260         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3261
3262 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3263
3264         * ax-gdb.c (cli/cli-utils.h): New include.
3265         (linespec.h): Ditto.
3266         (agent_eval_command_one): New function.
3267         (agent_command_1): Ditto.
3268         (agent_command): Call function agent_command_1.
3269         (agent_eval_command): Ditto.
3270         (_initialize_ax_gdb): Change help for "maint agent"
3271         and "maint agent-eval".
3272
3273 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3274
3275         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3276         * cli/cli-utils.c (check_for_argument): New function.
3277         * cli/cli-utils.h (check_for_argument): Ditto.
3278
3279 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3280
3281         * NEWS: Mention x32 ABI support.
3282
3283 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3284
3285         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3286         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3287
3288         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3289         and pc_regnum_from_eax to -1.  Update SP regnum from
3290         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3291         needed.
3292
3293         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3294         pc_regnum_from_eax.
3295
3296 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3297
3298         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3299         * dwarf2expr.h: Include gdbtypes.h.
3300         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3301         these forward declarations.
3302         (cu_offset, sect_offset): Move these ...
3303         * gdbtypes.h: Remove include dwarf2expr.h.
3304         (cu_offset, sect_offset): ... here.
3305
3306 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3307
3308         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3309         (amd64_linux_sigtramp_code): This.
3310         (amd64_x32_linux_sigtramp_code): New.
3311         (LINUX_SIGTRAMP_LEN): Updated.
3312         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3313
3314 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3315
3316         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3317
3318 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3319
3320         * config.in: Regenerate.
3321         * configure: Regenerate.
3322         * configure.ac: Remove check for gnu/libc-version.h.
3323         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3324         gnu/libc-version.h.
3325         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3326         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3327         inferior_has_bug.  Extend the comment.
3328
3329 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3330
3331         * linux-thread-db.c (inferior_has_bug): New function.
3332         (thread_db_find_new_threads_silently): Return boolean as checked by
3333         inferior_has_bug, describe it in the comments.
3334         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3335         earlier.  Abort the initialization if it returned non-zero.
3336         (thread_db_new_objfile): Exclude debug files.
3337         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3338         if UNTIL_NO_NEW,
3339
3340 2012-07-02  Doug Evans  <dje@google.com>
3341
3342         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3343         related to queue management.
3344
3345         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3346         instead of "debug dwarf2-die" in debugging printfs.
3347         (create_debug_info_hash_table_reader): Ditto.
3348         (create_debug_info_hash_table): Ditto.
3349         (init_dwo_file): Ditto.
3350         (init_cutu_and_read_dies): Add debugging printf.
3351         (init_cutu_and_read_dies_no_follow): Ditto.
3352         (process_psymtab_comp_unit_reader): Ditto.
3353
3354 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3355
3356         Add target-side support for dynamic printf.
3357         * NEWS: Mention the additional style.
3358         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3359         (struct bp_location): New field cmd_bytecode.
3360         * breakpoint.c: Include format.h.
3361         (disconnected_dprintf): New global.
3362         (parse_cmd_to_aexpr): New function.
3363         (build_target_command_list): New function.
3364         (insert_bp_location): Call it.
3365         (remove_breakpoints_pid): Skip dprintf breakpoints.
3366         (print_one_breakpoint_location): Ditto.
3367         (dprintf_style_agent): New global.
3368         (dprintf_style_enums): Add dprintf_style_agent.
3369         (update_dprintf_command_list): Add agent case.
3370         (agent_printf_command): New function.
3371         (_initialize_breakpoint): Add new commands.
3372         * common/ax.def (printf): New bytecode.
3373         * ax.h (ax_string): Declare.
3374         * ax-gdb.h (gen_printf): Declare.
3375         * ax-gdb.c: Include cli-utils.h, format.h.
3376         (gen_printf): New function.
3377         (maint_agent_print_command): New function.
3378         (_initialize_ax_gdb): Add maint agent-printf command.
3379         * ax-general.c (ax_string): New function.
3380         (ax_print): Add printf disassembly.
3381         * Makefile.in (SFILES): Add format.c
3382         (COMMON_OBS): Add format.o.
3383         * common/format.h: New file.
3384         * common/format.c: New file.
3385         * printcmd.c: Include format.h.
3386         (ui_printf): Call parse_format_string.
3387         * remote.c (remote_state): New field breakpoint_commands.
3388         (PACKET_BreakpointCommands): New enum.
3389         (remote_breakpoint_commands_feature): New function.
3390         (remote_protocol_features): Add new BreakpointCommands entry.
3391         (remote_can_run_breakpoint_commands): New function.
3392         (remote_add_target_side_commands): New function.
3393         (remote_insert_breakpoint): Call it.
3394         (remote_insert_hw_breakpoint): Ditto.
3395         (_initialize_remote): Add new packet configuration for
3396         target-side breakpoint commands.
3397         * target.h (struct target_ops): New field
3398         to_can_run_breakpoint_commands.
3399         (target_can_run_breakpoint_commands): New macro.
3400         * target.c (update_current_target): Handle
3401         to_can_run_breakpoint_commands.
3402
3403 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3404
3405         Execute -ix and -iex only after system and user gdbinit files.
3406         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3407         processing down after gdbinit files.
3408
3409 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3410
3411         Add fnmatch-gnu module.
3412         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3413         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3414         * gnulib/aclocal.m4: Regenerate.
3415         * gnulib/config.in: Regenerate.
3416         * gnulib/configure: Regenerate.
3417         * gnulib/import/dummy.c: Remove.
3418         * gnulib/import/Makefile.am: Regenerate.
3419         * gnulib/import/Makefile.in: Likewise.
3420         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3421         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3422         * gnulib/import/alloca.c: New file.
3423         * gnulib/import/alloca.in.h: Likewise.
3424         * gnulib/import/config.charset: Likewise.
3425         * gnulib/import/fnmatch.c: Likewise.
3426         * gnulib/import/fnmatch.in.h: Likewise.
3427         * gnulib/import/fnmatch_loop.c: Likewise.
3428         * gnulib/import/localcharset.c: Likewise.
3429         * gnulib/import/localcharset.h: Likewise.
3430         * gnulib/import/m4/alloca.m4: Likewise.
3431         * gnulib/import/m4/codeset.m4: Likewise.
3432         * gnulib/import/m4/configmake.m4: Likewise.
3433         * gnulib/import/m4/fcntl-o.m4: Likewise.
3434         * gnulib/import/m4/fnmatch.m4: Likewise.
3435         * gnulib/import/m4/glibc21.m4: Likewise.
3436         * gnulib/import/m4/localcharset.m4: Likewise.
3437         * gnulib/import/m4/locale-fr.m4: Likewise.
3438         * gnulib/import/m4/locale-ja.m4: Likewise.
3439         * gnulib/import/m4/locale-zh.m4: Likewise.
3440         * gnulib/import/m4/mbrtowc.m4: Likewise.
3441         * gnulib/import/m4/mbsinit.m4: Likewise.
3442         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3443         * gnulib/import/m4/mbstate_t.m4: Likewise.
3444         * gnulib/import/m4/stdbool.m4: Likewise.
3445         * gnulib/import/m4/wchar_h.m4: Likewise.
3446         * gnulib/import/m4/wctype_h.m4: Likewise.
3447         * gnulib/import/m4/wint_t.m4: Likewise.
3448         * gnulib/import/mbrtowc.c: Likewise.
3449         * gnulib/import/mbsinit.c: Likewise.
3450         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3451         * gnulib/import/mbsrtowcs-state.c: Likewise.
3452         * gnulib/import/mbsrtowcs.c: Likewise.
3453         * gnulib/import/ref-add.sin: Likewise.
3454         * gnulib/import/ref-del.sin: Likewise.
3455         * gnulib/import/stdbool.in.h: Likewise.
3456         * gnulib/import/streq.h: Likewise.
3457         * gnulib/import/strnlen1.c: Likewise.
3458         * gnulib/import/strnlen1.h: Likewise.
3459         * gnulib/import/verify.h: Likewise.
3460         * gnulib/import/wchar.in.h: Likewise.
3461         * gnulib/import/wctype.in.h: Likewise.
3462
3463 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3464
3465         Support shell wildcards for 'set auto-load safe-path'.
3466         * auto-load.c: Include fnmatch.h.
3467         (filename_is_in_dir): Rename to ...
3468         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3469         it.  Update function comment.  Rename dir_len to pattern_len.  New
3470         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3471         messages.  Use gdb_filename_fnmatch.
3472         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3473         pattern.
3474         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3475         * defs.h (gdb_filename_fnmatch): New declaration.
3476         * utils.c: Include fnmatch.h.
3477         (gdb_filename_fnmatch): New function.
3478
3479 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3480
3481         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3482         `-probe' and `-probe-stap' options.
3483
3484 2012-07-01  Yao Qi  <yao@codesourcery.com>
3485
3486         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3487         always_inserted_off, and always_inserted_enums.
3488         Change always_inserted_mode's type to 'enum auto_boolean'.
3489         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3490         callers.
3491         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3492         of add_setshow_enum_cmd.
3493         * infrun.c: Remove can_use_displaced_stepping_auto,
3494         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3495         can_use_displaced_stepping_enum.
3496         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3497         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3498         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3499         add_setshow_enum_cmd.
3500
3501 2012-06-30  Doug Evans  <dje@google.com>
3502
3503         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3504         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3505         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3506
3507 2012-06-29  Doug Evans  <dje@google.com>
3508
3509         * linespec.c: #include "stack.h".
3510         (decode_line_with_current_source): Moved here from symtab.c and
3511         renamed from decode_line_spec.  All callers updated.
3512         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3513         renamed from decode_line_spec_1.  All callers updated.
3514         * linespec.h (decode_line_with_current_source): Move declaration here
3515         from symtab.h and renamed from decode_line_spec.
3516         (decode_line_with_last_displayed): Move declaration here from symtab.h
3517         and renamed from decode_line_spec_1.
3518         * macrocmd.c: #include "linespec.h".
3519         * symtab.c: Remove #include "linespec.h".
3520
3521 2012-06-28  Doug Evans  <dje@google.com>
3522
3523         * dwarf2read.c (get_cu_length): New function.
3524         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3525         (create_debug_types_hash_table): Ditto.
3526         (init_cutu_and_read_dies): Ditto.
3527         (init_cutu_and_read_dies_no_follow): Ditto.
3528
3529         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3530
3531         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3532         (struct abbrev_table): Define.
3533         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3534         abbrev_table.
3535         (init_cutu_and_read_dies): Update.
3536         (abbrev_table_alloc_abbrev): New function.  Replaces
3537         dwarf_alloc_abbrev.  All callers updated.
3538         (abbrev_table_add_abbrev): New function.
3539         (abbrev_table_lookup_abbrev): New function.  Replaces
3540         dwarf2_lookup_abbrev.  All callers updated.
3541         (abbrev_table_read_table): New function.  Contents moved here from
3542         dwarf2_read_abbrevs.
3543         (dwarf2_read_abbrevs): Call it.
3544         (abbrev_table_free): New function.
3545         (dwarf2_free_abbrev_table): Call it.
3546
3547 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3548
3549         * osdata.c (info_osdata_command): Filter out "Title" columns
3550         from non-MI uses.
3551         * common/linux-osdata.c (struct osdata_type): Add title field.
3552         (osdata_table): Add titles to each entry.
3553         (linux_command_xfer_osdata): Add a column for title data.
3554
3555 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3556
3557         Make logging work for MI.
3558         * NEWS: Mention it.
3559         * interps.h (interp_set_logging_ftype): New typedef.
3560         (struct interp_procs): New field set_logging_proc.
3561         (current_interp_set_logging): Declare.
3562         * interps.c (current_interp_set_logging): New function.
3563         * cli/cli-logging.c: Include interps.h.
3564         (set_logging_redirect): Call current_interp_set_logging.
3565         (pop_output_files): Ditto.
3566         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3567         * mi/mi-console.h (mi_console_set_raw): Declare.
3568         * mi/mi-console.c (mi_console_set_raw): New function.
3569         * mi/mi-interp.c (saved_raw_stdout): New global.
3570         (mi_set_logging): New function.
3571         (_initialize_mi_interp): Add it to interp procs.
3572
3573 2012-06-28  Doug Evans  <dje@google.com>
3574
3575         * symtab.c (lookup_symbol_aux_objfile): Use
3576         ALL_OBJFILE_PRIMARY_SYMTABS.
3577
3578         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3579
3580 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3581
3582         * common/buffer.c: Include inttypes.h and stdint.h.
3583         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3584
3585 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3586             Pedro Alves  <palves@redhat.com>
3587
3588         * gdbthread.h (ALL_THREADS): New macro.
3589         (thread_list): Declare.
3590         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3591         going, but instead fall through to the stepping handling.
3592         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3593         the passed in signal.  Adjust debug output.
3594         (resume_callback): Rename to ...
3595         (linux_nat_resume_callback): ... this.  Pass the thread's last
3596         stop signal, if in "pass" state.
3597         (linux_nat_resume): Adjust to rename.
3598         (stop_wait_callback): New assertion.  Don't respawn signals;
3599         instead let the LWP remain with SIGNALLED set.
3600         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3601         * remote.c (append_pending_thread_resumptions): New.
3602         (remote_vcont_resume): Call it.
3603         * target.h (target_resume): Extend comment.
3604
3605 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3606
3607         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3608
3609 2012-06-27  Doug Evans  <dje@google.com>
3610
3611         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3612         Delete have_addr_base, unused.  All uses updated.
3613         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3614         (dwarf2_get_pc_bounds): Add ranges_base.
3615         (dwarf2_record_block_ranges): Ditto.
3616
3617 2012-06-27  Tom Tromey  <tromey@redhat.com>
3618
3619         PR macros/7961:
3620         * varobj.c (varobj_create): Update.
3621         (varobj_set_value): Update.
3622         * tracepoint.c (validate_actionline): Update.
3623         (encode_actions_1): Update.
3624         * parse.c (parse_exp_1): Add 'pc' argument.
3625         (parse_exp_in_context): Add 'pc' argument.  Change how
3626         expression_context_pc is set.
3627         (parse_expression): Update.
3628         (parse_field_expression): Update.
3629         * expression.h (parse_exp_1): Update.
3630         * eval.c (parse_to_comma_and_eval): Update.
3631         * breakpoint.c (set_breakpoint_condition): Update.
3632         (update_watchpoint): Update.
3633         (init_breakpoint_sal): Update
3634         (find_condition_and_thread): Update.
3635         (watch_command_1): Update.
3636         (update_breakpoint_locations): Update.
3637         * ada-lang.c (ada_read_renaming_var_value): Update.
3638         (create_excep_cond_exprs): Update.
3639
3640 2012-06-27  Doug Evans  <dje@google.com>
3641
3642         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3643         type units.
3644
3645 2012-06-26  Doug Evans  <dje@google.com>
3646
3647         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3648         prototype.
3649         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3650         updated.
3651         (read_and_check_comp_unit_head): Ditto.
3652         (read_and_check_type_unit_head): Ditto.
3653
3654 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3655
3656         New attribute 'last' for gdb.Symtab_and_line.
3657         * NEWS (Python Scripting): Add entry about the new attribute.
3658         * python/py-symtab.c (salpy_get_last): New function which
3659         implements the get method for the 'last' attribute of
3660         gdb.Symtab_and_line.
3661         (sal_object_getset): Add entry for the 'last' attribute.
3662
3663 2012-06-26  Doug Evans  <dje@google.com>
3664
3665         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3666         (dwo_sections): Add macinfo, macro.
3667         (dwarf2_locate_dwo_sections): Watch for macro sections.
3668         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3669         All callers updated.  Handle DWO files.
3670
3671         * NEWS: Mention new options "set debug dwarf2-read" and
3672         "set debug symtab-create".
3673         * dwarf2read.c (dwarf2_read_debug): New static global.
3674         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3675         (process_queue): Ditto.
3676         (process_full_comp_unit): Ditto.
3677         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3678         * elfread.c (elf_symfile_read): Add debugging printf.
3679         * minsyms.c (install_minimal_symbols): Ditto.
3680         * psymtab.c (allocate_psymtab): Ditto.
3681         * symfile.c (allocate_symtab): Ditto.
3682         * symtab.c (symtab_create_debug): New global.
3683         (_initialize_symtab): Add new option "set debug symtab-create".
3684         * symtab.h (symtab_create_debug): Declare.
3685
3686         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3687         (lookup_dwo_type_unit): Ditto.
3688
3689 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3690             H.J. Lu  <hongjiu.lu@intel.com>
3691
3692         * amd64-linux-nat.c: Include <sys/user.h>.
3693         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3694         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3695         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3696
3697         * configure.ac: Check if the fs_base and gs_base members of
3698         `struct user_regs_struct' exist.
3699         * config.in: Regenerated.
3700         * configure: Likewise.
3701
3702 2012-06-25  Michael Eager  <eager@eagercon.com>
3703
3704         PR python/14291
3705         * python/python.c (gdbpy_write): Check for interrupted output.
3706
3707 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3708
3709         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3710         register as a stack alignment in ARM mode.
3711
3712 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3713
3714         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3715         * gnulib/config.in: Regenerate.
3716         * gnulib/configure: Likewise.
3717         * gnulib/import/m4/extensions.m4: Update it.
3718         * gnulib/import/m4/gnulib-common.m4: Likewise.
3719         * gnulib/import/m4/memmem.m4: Likewise.
3720         * gnulib/import/m4/mmap-anon.m4: Likewise.
3721         * gnulib/import/m4/multiarch.m4: Likewise.
3722         * gnulib/import/stdint.in.h: Likewise.
3723
3724 2012-06-24  Yao Qi  <yao@codesourcery.com>
3725
3726         * corefile.c (write_memory_with_notification): New.
3727         * gdbcore.h: Declare write_memory_with_notification.
3728         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3729         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3730         * valops.c (value_assign): Likewise.
3731         * python/py-inferior.c (infpy_write_memory): Call
3732         'write_memory_with_notification'.
3733
3734 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3735
3736         * cc-with-index.sh: Use also -ex "set auto-load no".
3737
3738 2012-06-23  Doug Evans  <dje@google.com>
3739
3740         PR 14125
3741         * NEWS: Document additions to .gdb_index.
3742         * dwarf2read.c: #include "gdb/gdb-index.h".
3743         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3744         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3745         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3746         (dwarf2_read_index): Recognize version 7.
3747         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3748         block_kind, domain): All callers updated.
3749         (dw2_find_symbol_file): Handle new index CU values.
3750         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3751         (add_index_entry): New args is_static, kind.  All callers updated.
3752         (offset_type_compare, uniquify_cu_indices): New functions
3753         (symbol_kind): New function.
3754         (write_psymtabs_to_index): Remove duplicate CU values.
3755         (write_psymtabs_to_index): Write .gdb_index version 7.
3756
3757 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3758
3759         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3760         * configure: Regenerate.
3761
3762 2012-06-20  Yao Qi  <yao@codesourcery.com>
3763
3764         * python/py-inferior.c: Update comments of infpy_read_memory
3765         and infpy_write_memory.
3766
3767 2012-06-19  Tom Tromey  <tromey@redhat.com>
3768
3769         PR exp/9514:
3770         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3771         (push_type_address_space): Remove.
3772         * parse.c (insert_into_type_stack): New function.
3773         (insert_type): Likewise.
3774         (insert_type_address_space): Rename from push_type_address_space.
3775         Insert tp_space_identifier.
3776         * c-exp.y (ptr_operator): New production.
3777         (abs_decl): Use ptr_operator.
3778         (space_identifier): Call insert_type_address_space.
3779         (ptype): Don't use const_or_volatile_or_space_identifier.
3780         (const_or_volatile_noopt): Call insert_type.
3781         (conversion_type_id, conversion_declarator): New productions.
3782         (operator): Use conversion_type_id.
3783
3784 2012-06-18  Doug Evans  <dje@google.com>
3785
3786         * symtab.h (minimal_symbol): New member created_by_gdb.
3787         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3788         created by gdb.
3789         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3790         (search_symbols): Call it instead of lookup_symbol.
3791         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3792
3793         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3794         Adjust address for DW_OP_GNU_addr_index.
3795         * dwarf2expr.h (dwarf_expr_context): Update comment.
3796         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3797         all callers updated.  Handle TLS vars described with
3798         DW_OP_GNU_const_index.
3799         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3800         and DW_OP_GNU_const_index.
3801         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3802
3803         * block.c (find_block_in_blockvector): Make explicit the fact that we
3804         ignore GLOBAL_BLOCK.
3805
3806 2012-06-18  Tom Tromey  <tromey@redhat.com>
3807
3808         * c-exp.y (operator): Remove trailing space after "delete" and
3809         "delete[]".
3810
3811 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3812             Jan Kratochvil  <jan.kratochvil@redhat.com>
3813
3814         Switch i386 and derived targets to ON_STACK.
3815         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3816         (amd64_dicos_init_abi): Remove its installment.
3817         * dicos-tdep.c (dicos_init_abi): Remove the
3818         set_gdbarch_call_dummy_location call.  Update the comment here.
3819         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3820         (i386_dicos_init_abi): Remove its installment.
3821         * i386-tdep.c (i386_push_dummy_code): New function.
3822         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3823         i386_push_dummy_code.
3824
3825 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3826
3827         Remove stale dummy frames.
3828         * breakpoint.c: Include dummy-frame.h.
3829         (longjmp_breakpoint_ops): New variable.
3830         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3831         bp_longjmp_call_dummy.
3832         (bpstat_what, bptype_string, print_one_breakpoint_location)
3833         (init_bp_location): Support bp_longjmp_call_dummy.
3834         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3835         (set_longjmp_breakpoint_for_call_dummy)
3836         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3837         functions.
3838         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3839         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3840         FIXME comment and extend the other comment for bp_call_dummy.
3841         (set_longjmp_breakpoint_for_call_dummy)
3842         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3843         * dummy-frame.c: Include gdbthread.h.
3844         (pop_dummy_frame_bpt): New function.
3845         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3846         (dummy_frame_discard): New function.
3847         (cleanup_dummy_frames): Update the comment about longjmps.
3848         * dummy-frame.h (dummy_frame_discard): New declaration.
3849         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3850         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3851         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3852         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3853         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3854         keep_going if IS_LONGJMP and there is no other reason to stop.
3855
3856 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3857
3858         * remote-sim.c (sim_command_completer): Initialize
3859         variable 'result'.
3860
3861 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3862
3863         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3864         * dwarf2loc.c (call_site_parameter_matches): Support
3865         CALL_SITE_PARAMETER_PARAM_OFFSET.
3866         (needs_dwarf_reg_entry_value): Push stub value.
3867         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3868         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3869         * gdbtypes.h (enum call_site_parameter_kind): New item
3870         CALL_SITE_PARAMETER_PARAM_OFFSET.
3871         (struct call_site.parameter.u): New field param_offset.
3872
3873 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3874
3875         Code cleanup: Generalize call_site.parameter key.
3876         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3877         variable dwarf_reg.  New variable kind_u.  Update parameters to
3878         push_dwarf_reg_entry_value.
3879         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3880         * dwarf2expr.h (enum call_site_parameter_kind)
3881         (union call_site_parameter_u): Forward declarations.
3882         (struct dwarf_expr_context_funcs): Update parameters and their
3883         description for push_dwarf_reg_entry_value.
3884         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3885         * dwarf2loc.c (call_site_parameter_matches): New function.
3886         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3887         description.  Use call_site_parameter_matches.
3888         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3889         Update parameters and their description.
3890         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3891         New variable kind_u.  Adjust the caller for updated parameters.
3892         (needs_dwarf_reg_entry_value): Update parameters.
3893         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3894         instead of attr.  Update for the changed fields of struct
3895         call_site_parameter.
3896         * gdbtypes.h: Include dwarf2expr.h.
3897         (enum call_site_parameter_kind): New.
3898         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3899         fb_offset into new union u.
3900
3901 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3902
3903         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3904         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3905         for x32.
3906
3907 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3908
3909         * amd64-linux-nat.c (compat_x32_clock_t): New.
3910         (compat_x32_siginfo_t): Likewise.
3911         (compat_x32_siginfo_from_siginfo): Likewise.
3912         (siginfo_from_compat_x32_siginfo): Likewise.
3913         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3914         and siginfo_from_compat_x32_siginfo for x32.
3915
3916 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3917
3918         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3919
3920 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3921
3922         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3923         instead of gdbarch_ptr_bit.
3924         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3925         (amd64_supply_native_gregset): Likewise.
3926         (amd64_collect_native_gregset): Likewise.
3927         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3928         (amd64_supply_xsave): Likewise.
3929         (amd64_collect_fxsave): Likewise.
3930         (amd64_collect_xsave): Likewise.
3931
3932 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3933
3934         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3935         (amd64_linux_read_description): Check DS segment register for
3936         x32 process.
3937
3938 2012-06-15  Tom Tromey  <tromey@redhat.com>
3939
3940         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3941         init_cutu_and_read_dies.
3942
3943 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3944
3945         * MAINTAINERS (Write After Approval): Add myself to the list.
3946
3947 2012-06-15  Tom Tromey  <tromey@redhat.com>
3948
3949         * valops.c (value_find_oload_method_list): Now static.
3950         * value.h (value_find_oload_method_list): Don't declare.
3951
3952 2012-06-15  Tom Tromey  <tromey@redhat.com>
3953
3954         * valops.c (find_overload_match): Use value_ind.
3955
3956 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
3957
3958         * infrun.c (handle_inferior_event): Correct indentation.
3959
3960 2012-06-14  Doug Evans  <dje@google.com>
3961
3962         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3963         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3964         All uses updated.
3965         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
3966         updated.  Handle DEBUG_LOC_START_LENGTH.
3967         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3968         (loclist_describe_location): Ditto.
3969
3970 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
3971
3972         PR backtrace/13866
3973         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3974         after hiding inline functions.
3975
3976 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3977
3978         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3979         _initialize_inf_ttrace.
3980
3981 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3982
3983         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3984         _initialize_hppa_hpux_nat.
3985
3986 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3987
3988         * remote-sim.c (sim_command_completer): Change type of return
3989         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
3990
3991 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3992             Jan Kratochvil  <jan.kratochvil@redhat.com>
3993
3994         PR tdep/14222
3995         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3996         stack on a 16-byte boundary.
3997
3998 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
3999
4000         * jit.c (finalize_symtab): Set function's return type to 'void' by
4001         default.
4002
4003 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4004             H.J. Lu  <hongjiu.lu@intel.com>
4005
4006         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4007         Move bits common to both the classic LP64 and the new x32 ILP32
4008         ABI here.
4009         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4010         (amd64_x32_linux_init_abi): New function.
4011         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4012         subtype.
4013
4014         * i386-tdep.h (i386_pseudo_register_name): New prototype.
4015         * i386-tdep.c (i386_pseudo_register_name): Make public.
4016         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4017         * amd64-tdep.c (amd64_dword_names): Add "eip".
4018         (amd64_x32_pseudo_register_type): New function
4019         (amd64_x32_init_abi): New function.
4020
4021 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4022
4023         PR build/14003
4024         * inferior.h (struct inferior_suspend_state): Comment out.
4025         (struct inferior): Comment out the field suspend.
4026         * infrun.c (struct infcall_suspend_state): Comment out the field
4027         inferior_suspend.
4028         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4029         out its assignment.
4030
4031 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4032
4033         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4034         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4035         function comment.  Return ERROR for unresolved cases.  Implement
4036         returning proper NAME.
4037         (yylex): Accept also NAME from classify_inner_name.
4038         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4039         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4040         LOC_TYPEDEF type.
4041         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4042
4043 2012-06-13  Tom Tromey  <tromey@redhat.com>
4044
4045         * breakpoint.c (condition_completer): New function.
4046         (_initialize_breakpoint): Use it.
4047         * value.c (complete_internalvar): New function.
4048         * value.h (complete_internalvar): Declare.
4049
4050 2012-06-13  Tom Tromey  <tromey@redhat.com>
4051
4052         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4053         * breakpoint.c (catch_syscall_completer): Return a VEC.
4054         * cli/cli-cmds.c (complete_command): Update.
4055         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4056         (complete_on_enum): Likewise.
4057         * command.h: Include gdb_vecs.h.
4058         (completer_ftype): Change return type.
4059         (complete_on_cmdlist, complete_on_enum): Likewise.
4060         * completer.c (noop_completer, filename_completer)
4061         (location_completer): Return a VEC.
4062         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4063         to a VEC.
4064         (expression_completer, complete_line_internal, complete_line)
4065         (command_completer): Return a VEC.
4066         (gdb_completion_word_break_characters, line_completion_function):
4067         Update.
4068         * completer.h: Include gdb_vecs.h.
4069         (complete_line, noop_completer, filename_completer)
4070         (expression_completer, location_completer, command_completer):
4071         Update.
4072         * f-lang.c (f_word_break_characters): Return a VEC.
4073         * interps.c (interpreter_completer): Return a VEC.
4074         * language.h (struct language_defn)
4075         <la_make_symbol_completion_list>: Return a VEC.
4076         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4077         * symtab.c (free_completion_list): Take a VEC.
4078         (return_val_size, return_val_index): Remove.
4079         (return_val): Now a VEC.
4080         (completion_list_add_name): Update.
4081         (default_make_symbol_completion_list_break_on)
4082         (default_make_symbol_completion_list, make_symbol_completion_list)
4083         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4084         Return a VEC.
4085         (add_filename_to_list): Update.
4086         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4087         <list>: Now a VEC.
4088         (maybe_add_partial_symtab_filename): Update.
4089         (make_source_files_completion_list): Return a VEC.
4090         * symtab.h (default_make_symbol_completion_list_break_on)
4091         (default_make_symbol_completion_list, make_symbol_completion_list)
4092         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4093         (make_source_files_completion_list): Update.
4094
4095 2012-06-13  Tom Tromey  <tromey@redhat.com>
4096
4097         * breakpoint.c (add_catch_command): Use completer_ftype.
4098         * breakpoint.h: Include command.h.
4099         (add_catch_command): Use completer_ftype.
4100         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4101         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4102         Use completer_ftype.
4103         * command.h (completer_ftype): New typedef.
4104         (set_cmd_completer): Use it.
4105         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4106         completer_ftype.
4107
4108 2012-06-13  Pedro Alves  <palves@redhat.com>
4109
4110         Partial revert of previous change.
4111
4112         * serial.c (scb_base): New global.
4113         (serial_for_fd): New.
4114         (serial_open, serial_fdopen_ops): Link new serial in open serials
4115         chain.
4116         (do_serial_close): Unlink serial from the open serials chain.
4117
4118 2012-06-12  Pedro Alves  <palves@redhat.com>
4119
4120         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4121         threads here.
4122         (prepare_for_detach): No longer context switch here in non-stop
4123         mode.
4124         (fetch_inferior_event): Ditto.
4125         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4126         to the event thread before removing breakpoints.  Switch to the
4127         event thread before inserting breakpoints and resuming.
4128         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4129         event thread before resuming.
4130         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4131         Switch to the event thread before removing breakpoints.
4132
4133 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4134
4135         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4136         special characters correctly for the Windows shells.  See
4137         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4138         report.
4139         [!__MINGW32__]: Remove extra double quote character from special
4140         characters.
4141
4142 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4143
4144         * ui-out.h: Remove #if 0 declarations.
4145         * ui-out.c: Remove #if 0 functions.
4146
4147 2012-06-11  Pedro Alves  <palves@redhat.com>
4148
4149         * ser-base.c (run_async_handler_and_reschedule): New.
4150         (fd_event, push_event): Use it.
4151         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4152         reference count to 1.
4153         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4154         instead of xfree.
4155         (serial_is_open, serial_ref, serial_unref): New.
4156         * serial.h (serial_open): Adjust comment.
4157         (serial_is_open): Declare.
4158         (serial_close): Adjust comment.
4159         (serial_ref, serial_unref) Declare.
4160         (struct serial): New field 'refcnt'.
4161
4162 2012-06-11  Pedro Alves  <palves@redhat.com>
4163
4164         Remove #if 0'd "connect" command, and unnecessary associated
4165         refcounting and serial reuse bits.
4166
4167         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4168         * serial.c (last_serial_opened): Delete.
4169         (scb_base): Delete.
4170         (serial_open): Adjust.
4171         (serial_for_fd): Delete.
4172         (serial_fdopen_ops, do_serial_close): Adjust.
4173         (serial_fdopen_ops): Adjust.
4174
4175 2012-06-11  Pedro Alves  <palves@redhat.com>
4176
4177         * serial.c (do_serial_close): Remove early return when SCB is
4178         null.
4179
4180 2012-06-11  Tom Tromey  <tromey@redhat.com>
4181
4182         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4183
4184 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4185
4186         Fix regression by the "ambiguous linespec" series.
4187         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4188         get_last_displayed_symtab and get_last_displayed_line and depending
4189         on CURSAL.
4190
4191 2012-06-11  Tom Tromey  <tromey@redhat.com>
4192
4193         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4194         (dw2_find_symbol_file): Use it.
4195
4196 2012-06-11  Michael Eager  <eager@eagercon.com>
4197
4198         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4199         * mips-linux-tdep.h (mips_signals): New
4200
4201 2012-06-11  Tom Tromey  <tromey@redhat.com>
4202
4203         * infrun.c (handle_inferior_event)
4204         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4205         breakpoint.
4206         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4207         exception logic in all cases.  Update comments.
4208         (insert_longjmp_resume_breakpoint): Set the exception resume
4209         breakpoint.
4210
4211 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4212
4213         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4214
4215 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4216
4217         * valarith.c (binop_types_user_defined_p): Fix a typo.
4218
4219 2012-06-08  Yao Qi  <yao@codesourcery.com>
4220             Chung-Lin Tang <cltang@codesourcery.com>
4221
4222         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4223         * arch-utils.h: Declare.
4224         * gdbarch.sh: Add return_in_first_hidden_param_p.
4225         * gdbarch.c, gdbarch.h: Regenerated.
4226         * infcall.c (call_function_by_hand): Call
4227         gdbarch_return_in_first_hidden_param_p instead of
4228         language_pass_by_reference.
4229
4230         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4231         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4232         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4233         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4234         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4235         `cplus_return_struct_by_reference'.
4236         (tic6x_return_value): Handle language cplusplus.
4237         (tic6x_return_in_first_hidden_param_p): New.
4238         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4239
4240 2012-06-07  Doug Evans  <dje@google.com>
4241
4242         * dwarf2read.c (dwarf2_cu): Add comment.
4243
4244 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4245
4246         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4247         variable.
4248         (mips_eabi_push_dummy_call): Likewise.
4249         (mips_n32n64_push_dummy_call): Likewise.
4250         (mips_o32_push_dummy_call): Likewise.
4251         (mips_o64_push_dummy_call): Likewise.
4252
4253 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4254
4255         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4256
4257 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4258
4259         * mips-tdep.c (mips_pseudo_register_type): Use
4260         mips_float_register_p.
4261
4262 2012-06-06  Pedro Alves  <palves@redhat.com>
4263
4264         * infrun.c (handle_inferior_event): Remove calls to
4265         reinit_frame_cache that follow a context_switch call.
4266
4267 2012-06-06  Pedro Alves  <palves@redhat.com>
4268
4269         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4270         context_switch and remove stale comment.
4271
4272 2012-06-06  Pedro Alves  <palves@redhat.com>
4273
4274         * infrun.c (struct execution_control_state): Remove
4275         `new_thread_event' field.
4276         (handle_inferior_event): Simplify new threads handling; don't
4277         resume the inferior if we find a new thread.
4278
4279 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4280
4281         * NEWS: Document the deprecation of SH's 'regs' command.
4282         * inferior.h (all_registers_info): Add function declaration.
4283         * sh-tdep.c (sh_show_regs): Remove variable.
4284         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4285         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4286         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4287         (sh_show_regs_command): Remove functions.
4288         (sh_gdbarch_init): Don't set sh_show_regs.
4289         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4290         'info all-registers'.
4291         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4292         (sh64_show_regs): Remove functions.
4293         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4294
4295 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4296
4297         * configure.ac: Move development=true below AC_INIT.
4298         * configure: Regenerate.
4299
4300 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4301
4302         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4303         gdb_stdout.
4304
4305 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4306
4307         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4308         argument as ssize_t.
4309         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4310         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4311         * target.c (target_read_stack, target_write_memory)
4312         (target_write_raw_memory): Likewise.
4313         * target.h (target_read_stack, target_write_memory)
4314         (target_write_raw_memory): Likewise.
4315
4316 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4317
4318         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4319         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4320         * target.c (target_read_memory): Change LEN to ssize_t.
4321         * target.h (target_read_memory): Change LEN to ssize_t.
4322
4323 2012-06-05  Pedro Alves  <palves@redhat.com>
4324
4325         PR backtrace/13866
4326
4327         * breakpoint.c (until_break_command): Only fetch the selected
4328         frame after decode_line_1.
4329
4330 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4331
4332         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4333         event breakpoint at _start, __start or main if a program
4334         interpreter is not found.
4335
4336 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4337
4338         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4339         Add declaration.
4340         * windows-tdep.c: #include "objfiles.h".
4341         (windows_iterate_over_objfiles_in_search_order): New function.
4342         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4343         iterate_over_objfiles_in_search_order gdbarch method to
4344         windows_iterate_over_objfiles_in_search_order.
4345         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4346
4347 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4348
4349         * gdbarch.sh: Add generation of
4350         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4351         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4352         (iterate_over_objfiles_in_search_order): New gdbarch method.
4353         * gdbarch.h, gdbarch.c: Regenerate.
4354         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4355         Add declaration.
4356         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4357         New function.
4358         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4359         out of lookup_symbol_aux_symtabs.
4360         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4361         call to lookup_symbol_aux_objfile.
4362         (struct global_sym_lookup_data): New type.
4363         (lookup_symbol_global_iterator_cb): New function.
4364         (lookup_symbol_global): Search for symbol using
4365         gdbarch_iterate_over_objfiles_in_search_order and
4366         lookup_symbol_global_iterator_cb.
4367         * findvar.c (struct minsym_lookup_data): New type.
4368         (minsym_lookup_iterator_cb): New function.
4369         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4370         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4371         and minsym_lookup_iterator_cb.
4372
4373 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4374
4375         Revert the following patch:
4376         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4377         try locating the symbol in the symbol's own objfile first, before
4378         extending the search to all objfiles.
4379         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4380         out of lookup_symbol_aux_symtabs.
4381         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4382         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4383         Do not search EXCLUDE_OBJFILE.
4384         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4385         (lookup_symbol_global): Search for matches in the block's objfile
4386         first, before searching all other objfiles.
4387
4388 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4389
4390         * breakpoint.c (find_condition_and_thread): Stop parsing
4391         as soon as the first invalid keyword is found.
4392
4393 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4394
4395         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4396
4397 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4398
4399         * config/djgpp/djcheck.sh: Add copyright header.
4400
4401 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4402
4403         * copyright.py (update_files, main): Fix path to update-copyright
4404         script.
4405
4406 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4407
4408         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4409         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4410         for which a reminder to update by hand is printed.
4411
4412 2012-06-04  Doug Evans  <dje@google.com>
4413
4414         * buildsym.c (make_blockvector): Add comment.
4415
4416 2012-06-04  Pedro Alves  <palves@redhat.com>
4417
4418         * arch-utils.c (default_gdb_signal_from_target): Delete.
4419         * arch-utils.h (default_gdb_signal_from_target): Delete.
4420         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4421         gdbarch_gdb_signal_from_target_p.
4422         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4423         predicate).
4424         * gdbarch.h: Regenerate.
4425         * gdbarch.c: Regenerate.
4426
4427 2012-06-04  Pedro Alves  <palves@redhat.com>
4428
4429         * gdbarch.sh (gdb_signal_from_target): Mention that the
4430         implementation of the method must be host independent.
4431         * gdbarch.h: Regenerate.
4432
4433 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4434
4435         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4436         parameters.
4437         (target_read_memory_bfd): New function.
4438         (symbol_file_add_from_memory): Use it.
4439
4440 2012-06-03  Doug Evans  <dje@google.com>
4441
4442         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4443         of primary symtab.
4444         (basic_lookup_transparent_type): Ditto.
4445
4446         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4447         (ALL_PRIMARY_SYMTABS): Use it.
4448         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4449         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4450         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4451         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4452         (basic_lookup_transparent_type): Ditto.
4453
4454 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4455
4456         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4457         it to optimize resolution of demangled name.
4458
4459 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4460
4461         * configure.ac (development): Define new variable.
4462         Call AC_CHECK_LIB for mcheck if $development.
4463         (ERROR_ON_WARNING): Enable it by default only if $development.
4464         * config.in: Regenerate.
4465         * configure: Regenerate.
4466
4467 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4468
4469         * target.c (target_read_memory): Make LEN argument as size_t.
4470         * target.h (target_read_memory): Likewise.
4471
4472 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4473
4474         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4475
4476 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4477
4478         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4479         BookE interface for PowerPC server processors if not available
4480         in the Linux Kernel.
4481
4482 2012-05-31  Keith Seitz  <keiths@redhat.com>
4483
4484         * linespec.c (decode_objc): Add cleanup to free
4485         INFO.FILE_SYMTABS.
4486         (find_linespec_symbols): Add cleanup to free CLASSES.
4487         * symfile.c (find_separate_debug_file_by_debuglink): Add
4488         cleanup to free DEBUGLINK.
4489         * ui-out.c (clear_header_list): No need to check if
4490         HEADER_NEXT.COLHDR is NULL.
4491         Free HEADER_NEXT.COL_NAME.
4492
4493 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4494
4495         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4496         warning.
4497
4498 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4499
4500         * configure.host (gdb_host_cpu): Handle tilegx*.
4501         (gdb_host): Handle tilegx-*-linux*.
4502         * tilegx-linux-nat.c: New file.
4503         * config/tilegx/linux.mh: New file.
4504
4505 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4506
4507         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4508         tilegx-linux-tdep.o.
4509         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4510         tilegx-linux-tdep.c.
4511         * configure.tgt: Handle tilegx-*-linux*.
4512         * tilegx-tdep.h: New file.
4513         * tilegx-tdep.c: New file.
4514         * tilegx-linux-tdep.c: New file.
4515         * regformats/reg-tilegx.dat: New file.
4516
4517 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4518
4519         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4520         accounting of hw watchpoints on ppc.
4521
4522 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4523
4524         * source.c (openp): Expand tilde in path entries.
4525
4526 2012-05-29  Doug Evans  <dje@google.com>
4527
4528         * buildsym.c (block_compar): Fix comment.
4529         (end_symtab): Fix and clarify some comments.
4530
4531         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4532         cleanup_undefined_types.
4533         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4534         All callers updated.
4535
4536 2012-05-29  Tom Tromey  <tromey@redhat.com>
4537
4538         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4539         fails.
4540         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4541         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4542         fails.
4543         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4544         fails.
4545
4546 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4547
4548         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4549         (struct darwin_info): ... New struct.
4550         (solib_darwin_pspace_data): New variable.
4551         (darwin_pspace_data_cleanup): New function.
4552         (get_darwin_info): Likewise.
4553         (darwin_dyld_version_ok, darwin_load_image_infos)
4554         (darwin_solib_get_all_image_info_addr_at_init)
4555         (darwin_solib_read_all_image_info_addr): Add info argument.
4556         Adjust code.
4557         (darwin_current_sos): Use per pspace structure.
4558         (darwin_solib_create_inferior_hook): Likewise.
4559         (darwin_clear_solib): Likewise.
4560         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4561
4562 2012-05-28  Pedro Alves  <palves@redhat.com>
4563
4564         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4565         block that uses them.  Clear ecss before handling each event.
4566
4567 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4568
4569         * solib-svr4.c (svr4_current_sos): New comment on
4570         svr4_current_sos_via_xfer_libraries fall back.
4571
4572 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4573
4574         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4575         it as a fallback for TYPE_IS_OPAQUE.
4576         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4577         symbols for lookup_symbol.
4578
4579 2012-05-24  John Steele Scott  <toojays@toojays.net>
4580
4581         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4582         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4583         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4584         (check_producer): ... this new function, which also checks for ICC
4585         and caches the result.
4586         (producer_is_icc): New function.
4587         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4588         producer was ICC.
4589
4590 2012-05-24  Pedro Alves  <palves@redhat.com>
4591
4592         PR gdb/7205
4593
4594         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4595         (default_gdb_signal_to_target): ... this.  Add comment.
4596         (default_gdb_signal_from_host): Rename to ...
4597         (default_gdb_signal_from_target): ... this.  Add comment.
4598         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4599         (default_gdb_signal_to_target): ... this.
4600         (default_gdb_signal_from_host): Rename to ...
4601         (default_gdb_signal_from_target): ... this.
4602         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4603         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4604         (gdb_signal_from_target): ... this.  Adjust to
4605         default_gdb_signal_from_host naming change.  Extend comment.
4606         (gdb_signal_to_host): Rename to ...
4607         (gdb_signal_to_target): ... this.  Adjust to
4608         default_gdb_signal_to_host naming change.
4609         * gdbarch.h, gdbarch.c: Renegerate.
4610
4611 2012-05-24  Pedro Alves  <palves@redhat.com>
4612
4613         PR gdb/7205
4614
4615         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4616
4617 2012-05-24  Pedro Alves  <palves@redhat.com>
4618
4619         PR gdb/7205
4620
4621         Replace target_signal with gdb_signal throughout.
4622
4623 2012-05-24  Pedro Alves  <palves@redhat.com>
4624
4625         PR tui/14159
4626
4627         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4628         string, instead of reusing the va_list argument.
4629
4630 2012-05-24  Tom Tromey  <tromey@redhat.com>
4631
4632         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4633         Remove.
4634
4635 2012-05-23  Doug Evans  <dje@google.com>
4636
4637         * symtab.c (search_symbols): Formatting fixes.
4638         (print_symbol_info): Formatting fixes.
4639
4640         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4641         int64_t change to leb128 API.
4642         (read_encoded_value, decode_frame_entry_1): Ditto.
4643         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4644         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4645         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4646         (execute_stack_op): Ditto.
4647         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4648         (safe_read_uleb128, safe_read_sleb128): Ditto.
4649         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4650         (dwarf2_compile_expr_to_ax): Ditto.
4651         (locexpr_describe_location_piece): Ditto.
4652         (disassemble_dwarf_expression): Ditto.
4653         (locexpr_describe_location_1): Ditto.
4654
4655 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4656             Kwok Cheung Yeung  <kcy@codesourcery.com>
4657
4658         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4659         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4660         (mi-cmd-info.o): New rule.
4661         * osdata.h (info_osdata_command): New declaration.
4662         * osdata.c (info_osdata_command): Change to non-static.
4663         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4664         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4665         * mi/mi-cmd-info.c: New file.
4666
4667 2012-05-23  Doug Evans  <dje@google.com>
4668
4669         * symtab.c (search_symbols): Pass NULL for file_matcher to
4670         expand_symtabs_matching if there are no files to match.
4671
4672         * gdbtypes.c (lookup_typename): Simplify.
4673
4674 2012-05-23  Pedro Alves  <palves@redhat.com>
4675
4676         * arch-utils.h (default_target_signal_to_host): Delete.
4677         * arch-utils.c (default_target_signal_to_host): Delete.
4678         * gdbarch.sh (target_signal_to_host): Remove.
4679         * gdbarch.h, gdbarch.c: Regenerate.
4680
4681 2012-05-22  Doug Evans  <dje@google.com>
4682
4683         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4684         "const gdb_byte *".
4685         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4686         (execute_cfa_program): Update to match API of leb128 functions.
4687         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4688         "const gdb_byte *".
4689         (read_unsigned_leb128, read_signed_leb128): Delete.
4690         (read_initial_length): Change type of buf argument to
4691         "const gdb_byte *".
4692         (read_encoded_value): Update to match API of leb128 functions.
4693         (decode_frame_entry): Change result to "const gdb_byte *", and
4694         similarly for "start" parameter.
4695         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4696         (dwarf2_build_frame_info): Change local frame_ptr to
4697         "const gdb_byte *".
4698         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4699         read_uleb128, read_sleb128.  All callers updated.
4700         (safe_skip_leb128): New function.
4701         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4702         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4703         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4704         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4705         read_uleb128, read_sleb128.
4706         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4707         (execute_stack_op): Update to match API of leb128 functions.
4708         * dwarf2expr.h: #include "leb128.h".
4709         (read_uleb128, read_sleb128): Delete.
4710         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4711         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4712         * dwarf2loc.c (debug_loc_kind): New enum.
4713         (decode_debug_loc_addresses): New function.
4714         (decode_debug_loc_dwo_addresses): New function.
4715         (dwarf2_find_location_expression): Rewrite.
4716         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4717         (locexpr_describe_location_piece): Ditto.
4718         (disassemble_dwarf_expression): Ditto.
4719         (locexpr_describe_location_1): Ditto.
4720         (loclist_describe_location): Rewrite.
4721         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4722         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4723         (dwarf2_section_buffer_overflow_complaint): Renamed from
4724         dwarf2_macros_too_long_complaint.  All callers updated.
4725         (skip_leb128): Delete.
4726         (init_cu_die_reader): Initialize reader->buffer_end.
4727         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4728         (skip_form_bytes): New arg buffer_end.  All callers updated.
4729         Replace call to skip_leb128 with gdb_skip_leb128.
4730         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4731         (fill_in_loclist_baton): Initialize baton->from_dwo.
4732
4733 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4734
4735         * mips-linux-nat.c (mips_linux_read_description): Use a more
4736         verbose error message.
4737
4738 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4739
4740         * NEWS: Add MIPS/Linux DSP support.
4741         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4742         (SIGCONTEXT_DSPCTL): New macro.
4743         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4744         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4745         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4746         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4747         (N64_SIGCONTEXT_HI3): Likewise.
4748         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4749         (N64_SIGCONTEXT_LO3): Likewise.
4750         (N64_SIGCONTEXT_DSPCTL): Likewise.
4751         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4752         (mips_linux_o32_sigframe_init): Handle DSP registers.
4753         (mips_linux_n32n64_sigframe_init): Likewise.
4754
4755 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4756
4757         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4758         call to abort.
4759
4760 2012-05-22  Pedro Alves  <palves@redhat.com>
4761
4762         * target.h (store_waitstatus): Move declaration ...
4763         * inf-child.h (store_waitstatus): ... here.
4764         * target.c: Move inclusion of gdb_wait.h, and ...
4765         (store_waitstatus): ... this ...
4766         * inf-child.c: ... here.
4767         * linux-nat.c: Include inf-child.h.
4768         * rs6000-nat.c: Include inf-child.h.
4769         * spu-linux-nat.c: Include inf-child.h.
4770
4771 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4772
4773         * tracepoint.c (start_tracing): Add missing i18n markup.
4774         (stop_tracing, set_trace_user): Ditto.
4775         (set_trace_notes, set_trace_stop_notes): Ditto.
4776
4777 2012-05-21  Tom Tromey  <tromey@redhat.com>
4778
4779         PR c++/7173:
4780         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4781         types.
4782         * value.h (value_cast_pointers): Update.
4783         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4784         (value_cast): Update.
4785         (update_search_result): New function.
4786         (do_search_struct_field): New, from search_struct_field.  Check
4787         for ambiguous results.
4788         (search_struct_field): Rewrite.
4789         * infcall.c (value_arg_coerce): Update.
4790         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4791         value_cast_pointers.
4792         * ada-lang.c (ada_convert_actual): Update.
4793
4794 2012-05-21  Tom Tromey  <tromey@redhat.com>
4795
4796         * macroexp.c (macro_stringify): Terminate the string.
4797
4798 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4799
4800         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4801         Describe it.
4802         * auto-load.c (auto_load_expand_dir_vars): New function.
4803         (auto_load_safe_path_vec_update): Use it, remove the
4804         substitute_path_component call thanks to it.
4805         (auto_load_objfile_script): Remove the debug_file_directory processing.
4806         Use auto_load_expand_dir_vars, remove the substitute_path_component
4807         call thanks to it.
4808         * configure: Regenerate.
4809         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4810         path.  Escape $ also for $debugdir.
4811         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4812         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4813
4814 2012-05-20  Doug Evans  <dje@google.com>
4815
4816         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4817         before use.  Check for symtab->includes == NULL before scanning it.
4818
4819 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4820
4821         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4822
4823 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4824
4825         * NEWS: Add microMIPS support and "set mips compression",
4826         "show mips compression" commands.
4827         * mips-tdep.h (mips_isa): New enum.
4828         (gdbarch_tdep): Add mips_isa.
4829         (mips_pc_is_mips16): Update prototype.
4830         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4831         * mips-tdep.c (mips_compression_mips16): New variable.
4832         (mips_compression_micromips): Likewise.
4833         (mips_compression_strings): Likewise.
4834         (mips_compression_string): Likewise.
4835         (is_mips16_isa, is_micromips_isa): New functions.
4836         (is_mips16_addr): Rename to...
4837         (is_compact_addr): ... this.
4838         (unmake_mips16_addr): Likewise to...
4839         (unmake_compact_addr): ... this.
4840         (make_mips16_addr): Likewise to...
4841         (make_compact_addr): ... this.
4842         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4843         functions.
4844         (mips_elf_make_msymbol_special): Handle microMIPS code.
4845         (msymbol_is_special): Rename to...
4846         (msymbol_is_mips16): ... this.
4847         (mips_make_symbol_special, mips_pc_is_mips16): Update
4848         accordingly.
4849         (msymbol_is_mips, msymbol_is_micromips): New functions.
4850         (mips16_to_32_reg): Rename to...
4851         (mips_reg3_to_reg): ... this.
4852         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4853         (mips_pc_isa): Likewise.
4854         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4855         code.
4856         (mips_fetch_instruction): Pass return status instead of printing
4857         an error message if requested.  Handle microMIPS code.  Bail out
4858         on an invalid ISA.
4859         (micromips_op): New macro.
4860         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4861         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4862         (b6s4_op, b7s3_reg): Likewise.
4863         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4864         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4865         (mips_insn_size): New function.
4866         (mips32_next_pc): Update mips_fetch_instruction call.
4867         (micromips_relative_offset7): New function.
4868         (micromips_relative_offset10): Likewise.
4869         (micromips_relative_offset16): Likewise.
4870         (micromips_pc_insn_size): Likewise.
4871         (micromips_bc1_pc): Likewise.
4872         (micromips_next_pc): Likewise.
4873         (unpack_mips16): Update mips_fetch_instruction call.
4874         (extended_mips16_next_pc): Update according to change to
4875         mips16_to_32_reg.
4876         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4877         code.
4878         (mips16_scan_prologue): Update mips_fetch_instruction call.
4879         Update according to change to mips16_to_32_reg.
4880         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4881         (mips_insn16_frame_base_sniffer): Likewise.
4882         (micromips_decode_imm9): New function.
4883         (micromips_scan_prologue): Likewise.
4884         (mips_micro_frame_cache): Likewise.
4885         (mips_micro_frame_this_id): Likewise.
4886         (mips_micro_frame_prev_register): Likewise.
4887         (mips_micro_frame_sniffer): Likewise.
4888         (mips_micro_frame_unwind): New variable.
4889         (mips_micro_frame_base_address): New function.
4890         (mips_micro_frame_base): New variable.
4891         (mips_micro_frame_base_sniffer): New function.
4892         (mips32_scan_prologue): Update mips_fetch_instruction call.
4893         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4894         rather than for MIPS16.
4895         (mips_insn32_frame_base_sniffer): Likewise.
4896         (mips_addr_bits_remove): Handle microMIPS code.
4897         (deal_with_atomic_sequence): Rename to...
4898         (mips_deal_with_atomic_sequence): ... this.  Update the type
4899         of the variable used to hold an instruction.  Remove the ISA bit
4900         check.  Update mips_fetch_instruction call.
4901         (micromips_deal_with_atomic_sequence): New function.
4902         (deal_with_atomic_sequence): Likewise.
4903         (mips_about_to_return): Handle microMIPS code.  Update
4904         mips_fetch_instruction call.
4905         (heuristic_proc_start): Check for the standard MIPS ISA rather
4906         than for MIPS16.  Update mips_pc_is_mips16 and
4907         mips_fetch_instruction calls.  Handle microMIPS code.
4908         (mips_push_dummy_code): Handle microMIPS code.
4909         (mips_eabi_push_dummy_call): Likewise.
4910         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4911         (mips_o64_push_dummy_call): Handle microMIPS code.
4912         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4913         (is_delayed): Remove function.
4914         (mips_single_step_through_delay): Replace the call to is_delayed
4915         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4916         Handle microMIPS code.
4917         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4918         microMIPS code.
4919         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4920         call.
4921         (micromips_in_function_epilogue_p): New function.
4922         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4923         call.
4924         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4925         Handle microMIPS.
4926         (gdb_print_insn_mips): Likewise.
4927         (mips_breakpoint_from_pc): Likewise.
4928         (mips_remote_breakpoint_from_pc): New function.
4929         (mips32_instruction_has_delay_slot): Simplify making use of the
4930         updated mips_fetch_instruction interface.
4931         (micromips_instruction_has_delay_slot): New function.
4932         (mips16_instruction_has_delay_slot): Simplify making use of the
4933         updated mips_fetch_instruction interface.
4934         (mips_adjust_breakpoint_address): Check for the standard MIPS
4935         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4936         calls.  Handle microMIPS code.
4937         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4938         (mips_skip_trampoline_code): Handle microMIPS code.
4939         (global_mips_compression): New function.
4940         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4941         file flags.  Register the microMIPS remote breakpoint handler
4942         and heuristic frame unwinder.
4943         (show_mips_compression): New function.
4944         (_initialize_mips_tdep): Add the "set mips compression" and
4945         "show mips compression" commands.
4946
4947 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4948
4949         * ada-lang.c:
4950         * ada-tasks.c:
4951         * ada-varobj.c:
4952         * amd64-darwin-tdep.c:
4953         * arm-symbian-tdep.c:
4954         * arm-tdep.c:
4955         * avr-tdep.c:
4956         * ax-gdb.c:
4957         * bfin-linux-tdep.c:
4958         * breakpoint.c:
4959         * c-valprint.c:
4960         * cli/cli-cmds.c:
4961         * coffread.c:
4962         * cp-support.c:
4963         * cris-tdep.c:
4964         * dwarf2-frame-tailcall.c:
4965         * dwarf2-frame.c:
4966         * dwarf2expr.c:
4967         * dwarf2loc.c:
4968         * dwarf2read.c:
4969         * elfread.c:
4970         * eval.c:
4971         * expprint.c:
4972         * f-valprint.c:
4973         * frv-tdep.c:
4974         * h8300-tdep.c:
4975         * hppa-hpux-tdep.c:
4976         * hppa-tdep.c:
4977         * hppanbsd-tdep.c:
4978         * i386-nto-tdep.c:
4979         * i386-tdep.c:
4980         * i387-tdep.c:
4981         * ia64-tdep.c:
4982         * jit.c:
4983         * linespec.c:
4984         * linux-tdep.c:
4985         * lm32-tdep.c:
4986         * m2-valprint.c:
4987         * m32c-tdep.c:
4988         * m32r-rom.c:
4989         * m32r-tdep.c:
4990         * m68k-tdep.c:
4991         * m68klinux-tdep.c:
4992         * mi/mi-main.c:
4993         * microblaze-tdep.c:
4994         * mips-linux-tdep.c:
4995         * mips-tdep.c:
4996         * mn10300-tdep.c:
4997         * p-valprint.c:
4998         * parse.c:
4999         * ppc-linux-tdep.c:
5000         * ppc-sysv-tdep.c:
5001         * printcmd.c:
5002         * python/py-finishbreakpoint.c:
5003         * python/py-inferior.c:
5004         * python/py-infthread.c:
5005         * python/py-type.c:
5006         * python/python.c:
5007         * remote-fileio.c:
5008         * remote-m32r-sdi.c:
5009         * remote-mips.c:
5010         * reverse.c:
5011         * rl78-tdep.c:
5012         * rs6000-aix-tdep.c:
5013         * rs6000-tdep.c:
5014         * s390-tdep.c:
5015         * score-tdep.c:
5016         * sh64-tdep.c:
5017         * skip.c:
5018         * solib-darwin.c:
5019         * solib-dsbt.c:
5020         * solib-frv.c:
5021         * sparc-tdep.c:
5022         * spu-multiarch.c:
5023         * spu-tdep.c:
5024         * stack.c:
5025         * symfile.c:
5026         * symtab.c:
5027         * tic6x-tdep.c:
5028         * tracepoint.c:
5029         * v850-tdep.c:
5030         * valarith.c:
5031         * valprint.c:
5032         * value.c:
5033         * xcoffread.c:
5034         * xtensa-tdep.c:
5035         * ada-lang.c:
5036         * ada-tasks.c:
5037         * ada-varobj.c:
5038         * amd64-darwin-tdep.c:
5039         * arm-symbian-tdep.c:
5040         * arm-tdep.c: Delete unused variables.
5041
5042 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5043
5044         Rename $ddir to $datadir.
5045         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5046         * auto-load.c (auto_load_safe_path_vec_update)
5047         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5048         * configure: Regenerate.
5049         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5050         Likewise.  Remove the 'use $ddir' help string.
5051
5052 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5053
5054         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5055         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5056
5057 2012-05-18  Tom Tromey  <tromey@redhat.com>
5058
5059         PR exp/13907:
5060         * valprint.h (struct value_print_options) <symbol_print>: New
5061         field.
5062         * valprint.c (user_print_options): Add default for symbol_print.
5063         (show_symbol_print): New function.
5064         (generic_val_print): Respect symbol_print.
5065         (_initialize_valprint): Add "print symbol" setting.
5066         * f-valprint.c (f_val_print): Respect symbol_print.
5067         * c-valprint.c (c_val_print): Respect symbol_print.
5068         * NEWS: Update.
5069         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5070         zero-size symbols.
5071         (print_address_demangle): Return int.
5072         * defs.h: (print_address_symbolic): Return int.
5073         * value.h (print_address_demangle): Return int.
5074
5075 2012-05-18  Tom Tromey  <tromey@redhat.com>
5076
5077         * valprint.c (val_print_string): Don't print leading space.
5078         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5079         print space before string or vtbl.
5080         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5081         before string.
5082         * jv-valprint.c (java_value_print): Print space before string.
5083         * go-valprint.c (print_go_string): Print space before string.
5084         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5085         space before string.
5086         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5087         space before string or vtbl.
5088         * auxv.c (fprint_target_auxv): Print space after address.
5089
5090 2012-05-18  Tom Tromey  <tromey@redhat.com>
5091
5092         * printcmd.c (print_address_demangle): Remove special case for 0.
5093
5094 2012-05-18  Tom Tromey  <tromey@redhat.com>
5095
5096         * printcmd.c (print_address_demangle): Add 'opts' argument.
5097         * p-valprint.c (pascal_val_print): Update.
5098         * jv-valprint.c (java_val_print): Update.
5099         * value.h: Update.
5100         * valprint.c (generic_val_print): Update.
5101         (print_function_pointer_address): Add 'options' argument.  Remove
5102         'addressprint' argument.  Update.
5103         * m2-valprint.c (print_unpacked_pointer): Update.
5104         * gnu-v3-abi.c (print_one_vtable): Update.
5105         (gnuv3_print_method_ptr): Update.
5106         * f-valprint.c (f_val_print): Update.
5107         * cp-valprint.c (cp_print_value_fields): Update.
5108         * valprint.h (print_function_pointer_address): Update.
5109         * c-valprint.c (c_val_print): Update.
5110
5111 2012-05-18  Tom Tromey  <tromey@redhat.com>
5112
5113         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5114         directly corresponding to the found psymtab.
5115         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5116         (dw2_find_pc_sect_symtab): Use it.
5117         * block.h (blockvector_contains_pc): Declare.
5118         * block.c (find_block_in_blockvector): New function.
5119         (blockvector_for_pc_sect): Use it.
5120         (blockvector_contains_pc): New function.
5121
5122 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5123
5124         * mips-tdep.h (mips_write_pc): New prototype.
5125         * mips-tdep.c (mips_write_pc): Make external, add description.
5126         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5127         add description.
5128
5129 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5130
5131         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5132         mips_regnum->pc.
5133         (mips_unwind_pc, mips_write_pc): Likewise.
5134         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5135         gdbarch_read_pc.
5136
5137 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5138
5139         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5140         proc_warn, proc_error, proc_get_status, proc_flags,
5141         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5142         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5143         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5144         proc_stop_process, proc_wait_for_stop, proc_run_process,
5145         proc_set_traced_signals, proc_set_traced_faults,
5146         proc_set_traced_sysentry, proc_set_traced_sysexit,
5147         proc_set_held_signals, proc_get_held_signals,
5148         proc_get_traced_signals, proc_get_traced_faults,
5149         proc_get_traced_sysentry, proc_get_traced_sysexit,
5150         proc_clear_current_fault, proc_set_current_signal,
5151         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5152         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5153         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5154         proc_get_current_thread, proc_get_current_thread,
5155         proc_get_current_thread, proc_update_threads,
5156         proc_update_threads, proc_update_threads, proc_update_threads,
5157         proc_iterate_over_threads, procfs_find_new_threads,
5158         procfs_pid_to_str): Make static.  Remove advance declaration.
5159         (proc_cursig): Make static.  Conditionalized defintion on
5160         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5161         (proc_syscall, proc_set_kill_on_last_close,
5162         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5163         proc_get_pending_signals, proc_get_signal_actions,
5164         proc_trace_signal, proc_ignore_signal): Delete.
5165
5166 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5167
5168         * coffread.c (cs_section_address): Passing proper argument for
5169         `bfd_get_section_vma'.
5170         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5171         `bfd_get_section_flags'.
5172         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5173         `bfd_get_section_vma'.
5174
5175 2012-05-16  Tom Tromey  <tromey@redhat.com>
5176
5177         PR macros/13205:
5178         * macrotab.h: (macro_define_special): Declare.
5179         (enum macro_special_kind): New.
5180         (struct macro_definition) <argc, replacement>: Update comments.
5181         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5182         (macro_define_object_internal): New function.
5183         (macro_define_object): Use it.
5184         (macro_define_special): New function.
5185         (fixup_definition): New function.
5186         (macro_lookup_definition, foreach_macro_in_scope)
5187         (foreach_macro): Use fixup_definition.
5188         * macroexp.h (macro_stringify): Declare.
5189         * macroexp.c (free_buffer_return_text): New function.
5190         (stringify): Constify "arg".
5191         (macro_stringify): New function.
5192         * dwarf2read.c (macro_start_file): Call macro_define_special.
5193
5194 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5195             Maciej W. Rozycki  <macro@mips.com>
5196
5197         * breakpoint.h (bp_location): Add related_address member.
5198         * inferior.h (get_return_value): Take a pointer to struct value
5199         instead of struct type for the function requested.
5200         * value.h (using_struct_return): Likewise.
5201         * gdbarch.sh (return_value): Take a pointer to struct value
5202         instead of struct type for the function requested.
5203         * breakpoint.c (set_breakpoint_location_function): Initialize
5204         related_address for bp_gnu_ifunc_resolver breakpoints.
5205         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5206         requested function's address to gdbarch_return_value.
5207         * eval.c (evaluate_subexp_standard): Pass the requested
5208         function's address to using_struct_return.
5209         * infcall.c (call_function_by_hand): Pass the requested
5210         function's address to using_struct_return and
5211         gdbarch_return_value.
5212         * infcmd.c (get_return_value): Take a pointer to struct value
5213         instead of struct type for the function requested.
5214         (print_return_value): Update accordingly.
5215         (finish_command_continuation): Likewise.
5216         * stack.c (return_command): Pass the requested function's
5217         address to using_struct_return and gdbarch_return_value.
5218         * value.c (using_struct_return): Take a pointer to struct value
5219         instead of struct type for the function requested.  Pass the
5220         requested function's address to gdbarch_return_value.
5221         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5222         New function_value member, replacing function_type.
5223         (bpfinishpy_dealloc): Update accordingly.
5224         (bpfinishpy_pre_stop_hook): Likewise.
5225         (bpfinishpy_init): Likewise.  Record the requested function's
5226         address.
5227         * mips-tdep.c (mips_fval_reg): New enum.
5228         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5229         words put in GP registers.
5230         (mips_o64_push_dummy_call): Update a comment.
5231         (mips_o32_return_value): Take a pointer to struct value instead
5232         of struct type for the function requested and use it to check if
5233         using the MIPS16 calling convention.  Return the designated
5234         general purpose registers for floating-point values returned in
5235         MIPS16 mode.
5236         (mips_o64_return_value): Likewise.
5237         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5238         (ppc_sysv_abi_broken_return_value): Likewise.
5239         (ppc64_sysv_abi_return_value): Likewise.
5240         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5241         value instead of struct type for the function requested.
5242         * amd64-tdep.c (amd64_return_value): Likewise.
5243         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5244         * arm-tdep.c (arm_return_value): Likewise.
5245         * avr-tdep.c (avr_return_value): Likewise.
5246         * bfin-tdep.c (bfin_return_value): Likewise.
5247         * cris-tdep.c (cris_return_value): Likewise.
5248         * frv-tdep.c (frv_return_value): Likewise.
5249         * h8300-tdep.c (h8300_return_value): Likewise.
5250         (h8300h_return_value): Likewise.
5251         * hppa-tdep.c (hppa32_return_value): Likewise.
5252         (hppa64_return_value): Likewise.
5253         * i386-tdep.c (i386_return_value): Likewise.
5254         * ia64-tdep.c (ia64_return_value): Likewise.
5255         * iq2000-tdep.c (iq2000_return_value): Likewise.
5256         * lm32-tdep.c (lm32_return_value): Likewise.
5257         * m32c-tdep.c (m32c_return_value): Likewise.
5258         * m32r-tdep.c (m32r_return_value): Likewise.
5259         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5260         * m68k-tdep.c (m68k_return_value): Likewise.
5261         (m68k_svr4_return_value): Likewise.
5262         * m88k-tdep.c (m88k_return_value): Likewise.
5263         * mep-tdep.c (mep_return_value): Likewise.
5264         * microblaze-tdep.c (microblaze_return_value): Likewise.
5265         * mn10300-tdep.c (mn10300_return_value): Likewise.
5266         * moxie-tdep.c (moxie_return_value): Likewise.
5267         * mt-tdep.c (mt_return_value): Likewise.
5268         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5269         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5270         (ppc_sysv_abi_broken_return_value): Likewise.
5271         (ppc64_sysv_abi_return_value): Likewise.
5272         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5273         * rl78-tdep.c (rl78_return_value): Likewise.
5274         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5275         * rx-tdep.c (rx_return_value): Likewise.
5276         * s390-tdep.c (s390_return_value): Likewise.
5277         * score-tdep.c (score_return_value): Likewise.
5278         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5279         (sh_return_value_fpu): Likewise.
5280         * sh64-tdep.c (sh64_return_value): Likewise.
5281         * sparc-tdep.c (sparc32_return_value): Likewise.
5282         * sparc64-tdep.c (sparc64_return_value): Likewise.
5283         * spu-tdep.c (spu_return_value): Likewise.
5284         * tic6x-tdep.c (tic6x_return_value): Likewise.
5285         * v850-tdep.c (v850_return_value): Likewise.
5286         * vax-tdep.c (vax_return_value): Likewise.
5287         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5288         * xtensa-tdep.c (xtensa_return_value): Likewise.
5289         * gdbarch.c: Regenerate.
5290         * gdbarch.h: Regenerate.
5291
5292 2012-05-15  Tom Tromey  <tromey@redhat.com>
5293
5294         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5295
5296 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5297
5298         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5299         of command in two error message.
5300
5301 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5302
5303         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5304
5305 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5306
5307         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5308
5309 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5310
5311         * NEWS (show auto-load scripts-directory): Add forgotten command.
5312
5313 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5314
5315         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5316         parameters.
5317
5318 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5319
5320         * amd64-tdep.c: Include features/i386/x32.c and
5321         features/i386/x32-avx.c.
5322         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5323         initialize_tdesc_x32_avx.
5324
5325 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5326
5327         Add dynamic printf.
5328         * breakpoint.h (enum bptype): New type bp_dprintf.
5329         (struct breakpoint): New field extra_string.
5330         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5331         (create_breakpoint): Add extra_string arg.
5332         * breakpoint.c (dprintf_breakpoint_ops): New.
5333         (is_breakpoint): Add bp_dprintf.
5334         (bpstat_what): Add dprintf case.
5335         (bptype_string): Ditto.
5336         (print_one_breakpoint_location): Ditto.
5337         (init_bp_location): Ditto.
5338         (bkpt_print_mention): Ditto.
5339         (dprintf_style_enums): New array.
5340         (dprintf_style): New global.
5341         (dprintf_function): New global.
5342         (dprintf_channel): New global.
5343         (update_dprintf_command_list): New function.
5344         (update_dprintf_commands): New function.
5345         (init_breakpoint_sal): Add extra_string argument, handle it.
5346         (create_breakpoint_sal): Add extra_string argument.
5347         (create_breakpoints_sal): Add extra_string argument, update callers.
5348         (find_condition_and_thread): Add extra argument.
5349         (create_breakpoint): Add extra_string argument, record it.
5350         (dprintf_command): New function.
5351         (break_command_1): Add arg to create_breakpoint call.
5352         (handle_gnu_v3_exceptions): Ditto.
5353         (trace_command): Ditto.
5354         (ftrace_command): Ditto.
5355         (strace_command): Ditto.
5356         (bkpt_print_mention): Add dprintf case.
5357         (create_breakpoint_sal_default): Add extra_string argument.
5358         (_initialize_breakpoint): Add new commands.
5359         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5360         * python/py-breakpoint.c (bppy_init): Ditto.
5361         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5362
5363 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5364
5365         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5366
5367 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5368
5369         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5370         unsigned long long.
5371
5372 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5373
5374         Add a new function gdb.find_pc_line to the Python API.
5375         * NEWS (Python Scripting): Add entry about the new function.
5376         * python/python.c (gdbpy_find_pc_line): New function which
5377         implements gdb.find_pc_line.
5378         (GdbMethods): Add entry for the new function.
5379
5380 2012-05-12  Pedro Alves  <palves@redhat.com>
5381
5382         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5383         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5384
5385 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5386
5387         * inferior.c: Include completer.h
5388         (initialize_inferiors): Set completer of add-inferior to
5389         filename_completer.
5390
5391 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5392
5393         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5394         gdbarch_ptr_bit for x32 core dump.
5395
5396 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5397
5398         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5399         and features/i386/x32-avx-linux.c.
5400
5401 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5402             Kwok Cheung Yeung  <kcy@codesourcery.com>
5403
5404         * NEWS: Describe new info os commands.
5405         * common/linux-osdata.c (PID_T, TIME_T): Define.
5406         (MAX_PID_T_STRLEN): New.
5407         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5408         MAX_PID_T_STRLEN.
5409         (command_from_pid): Add comment.  Change to use PID_T.
5410         (commandline_from_pid):  Change to use PID_T.
5411         (user_from_pid): Add comment.
5412         (get_process_owner): Add comment. Change to use PID_T and
5413         MAX_PID_T_STRLEN.
5414         (get_number_of_cpu_cores): Add comment.
5415         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5416         MAX_PID_T_STRLEN.
5417         (linux_xfer_osdata_processes): Change to use PID_T and
5418         MAX_PID_T_STRLEN.
5419         (compare_processes): New function.
5420         (linux_xfer_osdata_processgroups): New function.
5421         (linux_xfer_osdata_threads): Change to use PID_T.
5422         (linux_xfer_osdata_fds): New function.
5423         (format_socket_state, print_sockets): New functions.
5424         (union socket_addr): New union.
5425         (linux_xfer_osdata_isockets): New function.
5426         (time_from_time_t, group_from_gid): New functions.
5427         (linux_xfer_osdata_shm): New function.
5428         (linux_xfer_osdata_sem): New function.
5429         (linux_xfer_osdata_msg): New function.
5430         (linux_xfer_osdata_modules): New function.
5431         (osdata_table): Add new entries.
5432         * common/buffer.c (buffer_xml_printf): Add support for long and
5433         long long format specifiers.
5434
5435 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5436
5437         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5438         (tdesc_x32_avx_linux): Likewise.
5439
5440 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5441
5442         Implement multi-component --with-auto-load-dir.
5443         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5444         entries.
5445         (--with-auto-load-safe-path): Update the default value description.
5446         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5447         New.
5448         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5449         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5450         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5451         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5452         "set auto-load scripts-directory".
5453         * config.in: Regenerate.
5454         * configure: Regenerate.
5455         * configure.ac (--with-auto-load-dir): New configure option.
5456         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5457
5458 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5459
5460         Provide $ddir substitution for --with-auto-load-safe-path.
5461         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5462         entries.
5463         * auto-load.c: Include observer.h.
5464         (auto_load_safe_path_vec_update): Call substitute_path_component for
5465         each component.  New variable ddir_subst.
5466         (auto_load_gdb_datadir_changed): New function.
5467         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5468         AUTO_LOAD_SAFE_PATH.  New comment.
5469         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5470         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5471         * config.in: Regenerate.
5472         * configure: Regenerate.
5473         * configure.ac (--auto-load-safe-path): Rename
5474         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5475         GDB_DATADIR/auto-load.
5476         * defs.h (substitute_path_component): New declaration.
5477         * top.c: Include observer.h.
5478         (set_gdb_datadir): New function.
5479         (init_main): Install it for "set data-directory".
5480         * utils.c (substitute_path_component): New function.
5481
5482 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5483
5484         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5485         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5486         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5487         DEBUG_FILE_DIRECTORY.
5488
5489 2012-05-10  Tom Tromey  <tromey@redhat.com>
5490
5491         * dwarf2read.c (recursively_write_psymbols): New function.
5492         (write_psymtabs_to_index): Use it.
5493
5494         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5495         field.
5496         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5497         (load_partial_comp_unit): Update.
5498         (queue_comp_unit): Add argument 'pretend_language'.
5499         (process_queue): Update.
5500         (psymtab_to_symtab_1): Skip dependencies that have a user.
5501         (load_partial_comp_unit_reader): Give meaning to the 'data'
5502         argument.
5503         (load_full_comp_unit): Add 'pretend_language' argument.
5504         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5505         language on CU.
5506         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5507         Update.
5508         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5509         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5510         Update.
5511         (prepare_one_comp_unit): Add 'pretend_language' argument.
5512
5513         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5514         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5515         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5516         (dw2_do_instantiate_symtab): Check whether symtab was read in
5517         before queueing.
5518         (dw2_instantiate_symtab): Add assertion.  Call
5519         process_cu_includes.
5520         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5521         (partial_symtab_p): New typedef.
5522         (set_partial_user): New function.
5523         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5524         (scan_partial_symbols): Add imported CU to imported_symtabs.
5525         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5526         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5527         (get_symtab, recursively_compute_inclusions)
5528         (compute_symtab_includes, process_cu_includes)
5529         (process_imported_unit_die): New functions.
5530         (process_die) <DW_TAG_imported_unit>: New case.
5531         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5532
5533         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5534         comment.
5535         (struct partial_die_info) <locdesc>: Remove.
5536         <d>: New field.
5537         (process_psymtab_comp_unit): Add 'read_partial' argument.
5538         Update.
5539         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5540         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5541         (add_partial_symbol): Update.
5542         (process_die): Handle DW_TAG_partial_unit.
5543         (read_file_scope): Update comment.
5544         (load_partial_dies): Handle DW_TAG_imported_unit.
5545         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5546         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5547
5548 2012-05-10  Tom Tromey  <tromey@redhat.com>
5549
5550         * cc-with-dwz.sh: New file.
5551
5552 2012-05-10  Tom Tromey  <tromey@redhat.com>
5553
5554         * symtab.h (struct symtab) <includes, user>: New fields.
5555         * block.h (struct block_iterator) <d, idx, which>: New fields.
5556         * block.c (initialize_block_iterator, find_iterator_symtab)
5557         (block_iterator_step, block_iter_name_step)
5558         (block_iter_match_step): New functions.
5559         (block_iterator_first, block_iterator_next)
5560         (block_iter_name_first, block_iter_name_next)
5561         (block_iter_match_first, block_iter_match_next): Rewrite.
5562         (get_block_symtab): New function.
5563
5564 2012-05-10  Tom Tromey  <tromey@redhat.com>
5565
5566         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5567         set_block_symtab.
5568         * jit.c (finalize_symtab): Use allocate_global_block,
5569         set_block_symtab.
5570         * buildsym.c (finish_block_internal): New function, from old
5571         finish_block.
5572         (finish_block): Rewrite.
5573         (end_symtab): Use finish_block_internal, set_block_symtab.
5574         * block.h (struct global_block): New.
5575         (allocate_global_block, set_block_symtab): Declare.
5576         * block.c (allocate_global_block, set_block_symtab): New
5577         functions.
5578
5579 2012-05-10  Tom Tromey  <tromey@redhat.com>
5580
5581         * psymtab.c (partial_map_expand_apply): Add assertion.
5582         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5583         (psymtab_to_symtab): Find unshared psymtab.
5584         (dump_psymtab): Print including psymtabs.
5585         (recursively_search_psymtabs): New function.
5586         (expand_symtabs_matching_via_partial): Use it.
5587         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5588         fields.
5589         (enum psymtab_search_status): New.
5590
5591 2012-05-10  Tom Tromey  <tromey@redhat.com>
5592
5593         * tracepoint.c (scope_info): Update.
5594         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5595         (find_pc_sect_symtab, search_symbols)
5596         (default_make_symbol_completion_list_break_on)
5597         (make_file_symbol_completion_list): Update.
5598         * symmisc.c (dump_symtab_1): Update.
5599         * stack.c (print_frame_args, iterate_over_block_locals)
5600         (print_frame_labels, iterate_over_block_arg_vars): Update.
5601         * python/py-block.c (block_object) <dict>: Remove.
5602         <block>: New field.
5603         <iter>: Change type.
5604         (blpy_iter): Update.
5605         (blpy_block_syms_iternext): Update.
5606         * psymtab.c (map_block): Use block iterators.
5607         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5608         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5609         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5610         * infrun.c (check_exception_resume): Update.
5611         * cp-support.c (make_symbol_overload_list_block): Update.
5612         * coffread.c (patch_opaque_types): Update.
5613         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5614         * block.h (struct block_iterator): New.
5615         (block_iterator_first, block_iterator_next, block_iter_name_first)
5616         (block_iter_name_next, block_iter_match_first)
5617         (block_iter_match_next): Declare.
5618         (ALL_BLOCK_SYMBOLS): Redefine.
5619         * block.c (block_iterator_first, block_iterator_next)
5620         (block_iter_name_first, block_iter_name_next)
5621         (block_iter_match_first, block_iter_match_next): New functions.
5622         * ada-lang.c (ada_add_block_symbols)
5623         (ada_make_symbol_completion_list): Use block iterator.
5624
5625 2012-05-10  Tom Tromey  <tromey@redhat.com>
5626
5627         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5628         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5629         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5630         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5631         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5632         Update.
5633
5634 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5635
5636         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5637         print-file-var-lib2.c, print-file-var-main.c and
5638         print-file-var.exp (located in gdb/testsuite/gdb.base).
5639
5640 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5641
5642         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5643         try locating the symbol in the symbol's own objfile first, before
5644         extending the search to all objfiles.
5645         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5646         out of lookup_symbol_aux_symtabs.
5647         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5648         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5649         Do not search EXCLUDE_OBJFILE.
5650         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5651         (lookup_symbol_global): Search for matches in the block's objfile
5652         first, before searching all other objfiles.
5653
5654 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5655
5656         * printcmd.c (set_command): Add pre/post inc/dec.
5657
5658 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5659
5660         * gdb.1: Document -ex option.
5661
5662 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5663
5664         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5665         * inferior.h (AT_SYMBOL): Delete.
5666
5667 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5668
5669         * mips-tdep.c (mips_push_dummy_code): New function.
5670         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5671         ON_STACK and install mips_push_dummy_code as our gdbarch
5672         push_dummy_code routine.
5673
5674 2012-05-09  Pedro Alves  <palves@redhat.com>
5675
5676         * target.c (set_maintenance_target_async_permitted): Rename to ...
5677         (set_target_async_command): ... this.
5678         (show_maintenance_target_async_permitted): Rename to ...
5679         (show_target_async_command): ... this.
5680         (initialize_targets): Adjust.
5681
5682 2012-05-08  Doug Evans  <dje@google.com>
5683
5684         * go-exp.y (classify_name): Add missing assignment of fields of
5685         yylval.ssym.
5686
5687 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5688
5689         Display the ">" prompt in interactive mode while reading canned
5690         commands, even when the current interpreter is MI.
5691
5692         * interps.c (interp_set_temp): New function.
5693
5694         * interps.h (interp_set_temp): Add prototype.
5695
5696         * cli/cli-script.c (restore_interp): New cleanup function.
5697         (read_command_lines): Temporarily override the current interpreter
5698         with CLI and arrange for restoring the original one.
5699
5700 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5701
5702         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5703
5704 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5705
5706         * probe.c (parse_probes): Move conditional to check for
5707         debuginfo files from here...
5708         * stap-probe.c (stap_get_probes): ... to here.
5709
5710 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5711             H.J. Lu  <hongjiu.lu@intel.com>
5712
5713         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5714         `movl %esp, %ebp' for the X32 ABI.
5715
5716 2012-05-07  Tom Tromey  <tromey@redhat.com>
5717
5718         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5719         get_DW_TAG_name.
5720         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5721         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5722         (dwarf_stack_op_name): Remove.
5723         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5724         (decode_locdesc): Use get_DW_OP_name.
5725         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5726         (dwarf2_compile_expr_to_ax): Likewise.
5727         (disassemble_dwarf_expression): Likewise.
5728         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5729
5730 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5731
5732         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5733         (sh_linux_sigtramp_cache): New function.
5734         (sh_linux_sigreturn_init): New function.
5735         (sh_linux_rt_sigreturn_init): New function.
5736         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5737         patterns.
5738         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5739         syscall codes.
5740         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5741         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5742         (sh_linux_init_abi): Add init calls to register new tramp_frame
5743         definitions under 32-bit SH, update comments.
5744
5745 2012-05-07  Pedro Alves  <palves@redhat.com>
5746
5747         PR gdb/10952
5748
5749         * amd64-linux-tdep.c: Include glibc-tdep.h.
5750         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5751         gdbarch_skip_solib_resolver callback.
5752
5753 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5754
5755         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5756         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5757         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5758         (add_auto_load_safe_path): Change the error message.
5759         (_initialize_auto_load): Change the "safe-path" help text.
5760         * configure: Regenerate
5761         * configure.ac (--without-auto-load-safe-path): Set
5762         WITH_AUTO_LOAD_SAFE_PATH to /.
5763
5764 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5765
5766         * stap-probe.h: Do not include unecessary `probe.h'.
5767
5768 2012-05-05  Alan Modra  <amodra@gmail.com>
5769
5770         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5771         bfd_und_section_ptr.
5772         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5773         and bfd_com_section_ptr.
5774
5775 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5776
5777         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5778
5779 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5780
5781         * windows-nat.h (segment_register_p_ftype): New typedef.
5782         (windows_set_segment_register_p): Add declaration.
5783         * windows-nat.c (segment_register_p): New static global.
5784         (windows_set_segment_register_p): New function.
5785         (do_windows_fetch_inferior_registers): Add special handling
5786         for segment registers.
5787         * amd64-windows-nat.c: #include "amd64-tdep.h".
5788         (amd64_windows_segment_register_p): New function.
5789         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5790         * i386-windows-nat.c: #include "i386-tdep.h".
5791         (i386_windows_segment_register_p): New function.
5792         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5793
5794 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5795
5796         * printcmd.c (set_command): Emit a warning if the expression is not
5797         an assignment.
5798
5799 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5800
5801         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5802         Make static.
5803
5804 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5805
5806         * stap-probe.c (stap_is_operator): Change declaration.
5807         (stap_get_opcode): Change return value.
5808         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5809         `stap_parse_argument_1'.
5810
5811 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5812
5813         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5814         debug log.
5815
5816 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5817
5818         Add two new methods global_block and static_block to gdb.Symtab
5819         objects.
5820         * NEWS (Python scripting): Add entry about the new methods.
5821         * python/py-symtab.c (stpy_global_block): New function which
5822         implements the gdb.Symtab.global_block() method.
5823         (stpy_static_block): New function which implements the
5824         gdb.Symtab.static_block() method.
5825         (symtab_object_methods): Add entries for the two new methods.
5826
5827 2012-05-03  Doug Evans  <dje@google.com>
5828
5829         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5830         files.
5831
5832 2012-05-03  Yao Qi  <yao@codesourcery.com>
5833
5834         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5835         space.
5836         (i386_process_record): Ditto.
5837
5838 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5839
5840         * infcall.c (unwind_on_signal_p): Make static.
5841
5842 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5843
5844         * sol-thread.c (solaris_pid_to_str): Make static.
5845         (_initialize_sol_thread): Add prototype.
5846
5847 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5848
5849         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5850
5851 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5852
5853         * MAINTAINERS: Remove myself.
5854
5855 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5856
5857         Fix --without-auto-load-safe-path for MS-Windows host platform.
5858         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5859
5860 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5861
5862         * gdb_curses.h: Undefine KEY_EVENT before including curses
5863         headers.  Move "#undef MOUSE_MOVED" before any curses header
5864         inclusion.
5865
5866 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5867
5868         * features/i386/i386-mmx-linux.c: Regenerate.
5869         * features/rs6000/powerpc-32.c: Likewise.
5870         * features/rs6000/powerpc-32l.c: Likewise.
5871         * features/rs6000/powerpc-403.c: Likewise.
5872         * features/rs6000/powerpc-403gc.c: Likewise.
5873         * features/rs6000/powerpc-405.c: Likewise.
5874         * features/rs6000/powerpc-505.c: Likewise.
5875         * features/rs6000/powerpc-601.c: Likewise.
5876         * features/rs6000/powerpc-602.c: Likewise.
5877         * features/rs6000/powerpc-603.c: Likewise.
5878         * features/rs6000/powerpc-604.c: Likewise.
5879         * features/rs6000/powerpc-64.c: Likewise.
5880         * features/rs6000/powerpc-64l.c: Likewise.
5881         * features/rs6000/powerpc-750.c: Likewise.
5882         * features/rs6000/powerpc-860.c: Likewise.
5883         * features/rs6000/powerpc-e500.c: Likewise.
5884         * features/rs6000/powerpc-e500l.c: Likewise.
5885         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5886         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5887         * features/rs6000/rs6000.c: Likewise.
5888
5889 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5890
5891         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5892         variable.
5893         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5894         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5895         (stap_parse_argument) <e>: Likewise.
5896         (handle_stap_probe) <byte_order>: Likewise.
5897
5898 2012-04-30  Doug Evans  <dje@google.com>
5899
5900         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5901         init_and_read_dies_worker.  All callers updated.
5902         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5903         replaced with init_cutu_and_read_dies.
5904         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5905         (find_partial_die): Remove FIXME.  Don't free current CU.
5906
5907 2012-04-30  Sterling Augustine  <saugustine@google.com>
5908
5909         * contrib: New directory.
5910         * contrib/test_pubnames_and_indexes.py: New file.
5911
5912 2012-04-30  Doug Evans  <dje@google.com>
5913
5914         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5915         All callers updated.
5916         (init_cu_die_reader): Verify the section is non-empty.
5917         (dwarf_decode_line_header): Don't dereference section->asection
5918         until we know the section is present.
5919
5920 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5921
5922         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5923         probes.
5924
5925 2012-04-29  Yao Qi  <yao@codesourcery.com>
5926
5927         * gdb-code-style.el: New hook gdb-markup-hook
5928         and gdb-comment-hook.
5929
5930 2012-04-28  Doug Evans  <dje@google.com>
5931
5932         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5933         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5934         objfile->obfd.
5935         * symfile.h (dwarf2_debug_sections): New member addr.
5936         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5937         (ctx_no_get_addr_index): New function.
5938         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5939         (ctx_no_get_addr_index): Declare.
5940         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5941         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5942         (dwarf_expr_ctx_funcs): Update.
5943         (needs_get_addr_index): New function.
5944         (needs_frame_ctx_funcs): Update.
5945         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5946         * dwarf2read.c: #include "gdbcore.h".
5947         (dwarf2_per_objfile): New members addr, dwo_files.
5948         (dwarf2_elf_names): Add entry for addr.
5949         (struct dwo_section_names): New type.
5950         (dwo_section_names): New static global.
5951         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5952         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5953         old debug_types_section member updated to use this.
5954         Rename member debug_types_section to info_or_types_section,
5955         all uses updated.
5956         (signatured_type): Rename member type_offset to type_offset_in_tu,
5957         all uses updated.  New member type_offset_in_section.
5958         (struct dwo_sections): New type.
5959         (struct dwo_unit): New type.
5960         (struct dwo_file): New type.
5961         (die_reader_specs): New member dwo_file.
5962         (dwarf2_locate_sections): Watch for .debug_addr.
5963         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5964         (dwarf2_read_section): Get bfd of section from bfd's asection,
5965         instead of objfile.
5966         (create_cus_from_index): Initialize the_cu->info_or_types_section.
5967         (create_signatured_type_table_from_index): Initialize
5968         sig_type->info_or_types_section.
5969         (dw2_get_file_names): Statement lists for type units with DWO files
5970         live in the DWO file.
5971         (create_debug_types_hash_table): New function.
5972         (create_all_type_units): Rewrite.
5973         (init_cu_die_reader): New arg dwo_file, all callers updated.
5974         (init_and_read_dies_worker): Get section from
5975         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
5976         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5977         continue reading the CU/TU from there.
5978         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5979         updated.  Get section from this_cu->info_or_types_section.
5980         (create_all_comp_units): Initialize this_cu->info_or_types_section.
5981         (skip_one_die): New cases DW_FORM_GNU_addr_index,
5982         DW_FORM_GNU_str_index.
5983         (hash_dwo_file, eq_dwo_file): New functions.
5984         (allocate_dwo_file_hash_table): New function.
5985         (hash_dwo_unit, eq_dwo_unit): New functions.
5986         (allocate_dwo_unit_table): New function.
5987         (dwarf2_locate_dwo_sections): New function.
5988         (struct create_dwo_info_table_data): New type.
5989         (create_debug_info_hash_table_reader): New function.
5990         (create_debug_info_hash_table): New function.
5991         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5992         (lookup_dwo_file): New function.
5993         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5994         (free_dwo_file, free_dwo_file_cleanup): New functions.
5995         (free_dwo_file_from_slot, free_dwo_files): New functions.
5996         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5997         (dwarf2_record_block_ranges): Ditto.
5998         (read_partial_die): Ditto.
5999         (process_enumeration_scope): Update to use type_offset_in_section.
6000         (read_full_die_1): New function.
6001         (read_full_die): Rewrite.
6002         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6003         DW_FORM_GNU_str_index.
6004         (read_addr_index_1, read_addr_index): New functions.
6005         (read_addr_index_from_leb128): New function.
6006         (struct dwarf2_read_addr_index_data): New type.
6007         (dwarf2_read_addr_index_reader): New function.
6008         (dwarf2_read_addr_index): New function.
6009         (read_str_index): New function.
6010         (leb128_size): New function.
6011         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6012         If processing a type unit from a DWO file, get the line section
6013         from the DWO file.
6014         (var_decode_location): Watch for DW_OP_GNU_addr_index.
6015         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6016         DW_FORM_GNU_str_index.
6017         (lookup_die_type): Check whether section offset of type's die is
6018         known before looking it up.  Remove assert.  Condition can
6019         legimately happen for inter-cu type references.
6020         (dwarf_attr_name): Handle Fission attributes.
6021         (dwarf_form_name): Handle Fission forms.
6022         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6023         DW_FORM_GNU_str_index.
6024         (follow_die_sig): Update to use type_offset_in_section.
6025         (decode_locdesc): New case DW_OP_GNU_addr_index.
6026         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6027         DW_FORM_GNU_str_index.
6028         (cu_debug_loc_section): New function.
6029         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6030         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6031         Free DWO files if present.
6032         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6033
6034         Refactor DIE reading.
6035         * dwarf2read.c (dwarf2_per_objfile): Replace members
6036         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6037         (die_reader_specs): New member "die_section".  Temporarily make
6038         member "buffer" non-const, pending constifying all info_ptr uses.
6039         (die_reader_func_ftype): New typedef.
6040         (dw2_get_file_names_reader): New function.
6041         (dw2_get_file_names): Rewrite.
6042         (read_and_check_type_unit_head): Rename arg type_offset to
6043         type_offset_in_tu.
6044         (create_all_type_units): Improve debugging message.
6045         Improve dummy type unit check.
6046         (init_cu_die_reader): New arg "section".  All callers updated.
6047         (init_and_read_dies_worker): New function.
6048         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6049         (init_cutu_and_read_dies_no_follow): New function.
6050         (init_cutu_and_read_dies_simple): New function.
6051         (process_psymtab_comp_unit_reader): New function.
6052         (process_psymtab_comp_unit): Delete args section,
6053         is_debug_types_section.  Rewrite.  All callers updated.
6054         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6055         All callers updated.  Rewrite.
6056         (load_partial_comp_unit_reader): New function.
6057         (load_partial_comp_unit): Rewrite.
6058         (skip_children): New arg reader.  Delete args buffer, cu.
6059         All callers updated.
6060         (skip_one_die): New arg reader.  Delete args buffer, cu.
6061         All callers updated.
6062         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6063         All callers updated.
6064         (load_full_comp_unit_reader): New function.
6065         (load_full_comp_unit): Rewrite.
6066         (read_comp_unit): Delete.
6067         (read_die_and_children_1): Delete, contents moved ...
6068         (read_die_and_children): ... here.
6069         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6070         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6071         All callers updated.
6072         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6073         All callers updated.
6074         (find_partial_die): Rewrite load_all_dies support.
6075         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6076         All callers updated.
6077         (read_attribute): New arg reader.  Delete args abfd, cu.
6078         All callers updated.
6079         (load_full_type_unit): Add assert.
6080         (read_signatured_type_reader): New function.
6081         (read_signatured_type): Rewrite.
6082         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6083         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6084         All callers updated.  Set per_cu->cu = NULL after freeing it.
6085         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6086         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6087         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6088         (set_die_type): Update.
6089         (get_die_type_at_offset): Update.
6090         (read_file_scope): Call prepare_one_comp_unit.
6091         (read_type_unit_scope): Ditto.
6092         (prepare_one_comp_unit): Set producer if present.
6093
6094 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6095
6096         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6097          gettext function on `error'.
6098
6099 2012-04-27  Doug Evans  <dje@google.com>
6100
6101         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6102         is empty.
6103
6104 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6105             Tom Tromey  <tromey@redhat.com>
6106
6107         * breakpoint.c (struct breakpoint_objfile_data)
6108         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6109         <exception_probes>: New fields.
6110         (free_breakpoint_probes): New function.
6111         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6112         `_Unwind_DebugHook'.
6113         (create_exception_master_breakpoint): Likewise.
6114         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6115         * infrun.c: Including necessary header files for handling SystemTap
6116         probes.
6117         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6118         via SystemTap probes.
6119         (check_exception_resume): Remove `func' argument.  Handle exception
6120         unwinding breakpoint set via a SystemTap probe.
6121         (insert_exception_resume_from_probe): New function.
6122
6123 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6124             Tom Tromey  <tromey@redhat.com>
6125             Jan Kratochvil  <jan.kratochvil@redhat.com>
6126
6127         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6128         (COMMON_OBS): Likewise.
6129         (HFILES_NO_SRCDIR): Add `probe'.
6130         * NEWS: Mention support for static and SystemTap probes.
6131         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6132         SystemTap probes' arguments parser.
6133         * arm-linux-tdep.c: Including headers needed to perform the parsing
6134         of SystemTap probes' arguments.
6135         (arm_stap_is_single_operand): New function.
6136         (arm_stap_parse_special_token): Likewise.
6137         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6138         probes' arguments parser.
6139         * ax-gdb.c (require_rvalue): Removing static declaration.
6140         (gen_expr): Likewise.
6141         * ax-gdb.h (gen_expr): Declaring function.
6142         (require_rvalue): Likewise.
6143         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6144         (bkpt_probe_breakpoint_ops): New variable.
6145         (momentary_breakpoint_from_master): Set the `probe' value.
6146         (add_location_to_breakpoint): Likewise.
6147         (break_command_1): Using proper breakpoint_ops according to the
6148         argument passed by the user in the command line.
6149         (bkpt_probe_insert_location): New function.
6150         (bkpt_probe_remove_location): Likewise.
6151         (bkpt_probe_create_sals_from_address): Likewise.
6152         (bkpt_probe_decode_linespec): Likewise.
6153         (tracepoint_probe_create_sals_from_address): Likewise.
6154         (tracepoint_probe_decode_linespec): Likewise.
6155         (tracepoint_probe_breakpoint_ops): New variable.
6156         (trace_command): Using proper breakpoint_ops according to the
6157         argument passed by the user in the command line.
6158         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6159         static probes on breakpoints and tracepoints.
6160         * breakpoint.h (struct bp_location) <probe>: New field.
6161         * cli-utils.c (skip_spaces_const): New function.
6162         (extract_arg): Likewise.
6163         * cli-utils.h (skip_spaces_const): Likewise.
6164         (extract_arg): Likewise.
6165         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6166         * configure.ac: Append `stap-probe.o' to be generated when ELF
6167         support is present.
6168         * configure: Regenerate.
6169         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6170         * elfread.c: Include `probe.h' and `arch-utils.h'.
6171         (probe_key): New variable.
6172         (elf_get_probes): New function.
6173         (elf_get_probe_argument_count): Likewise.
6174         (elf_evaluate_probe_argument): Likewise.
6175         (elf_compile_to_ax): Likewise.
6176         (elf_symfile_relocate_probe): Likewise.
6177         (stap_probe_key_free): Likewise.
6178         (elf_probe_fns): New variable.
6179         (elf_sym_fns): Add `sym_probe_fns' value.
6180         (elf_sym_fns_lazy_psyms): Likewise.
6181         (elf_sym_fns_gdb_index): Likewise.
6182         (_initialize_elfread): Initialize objfile cache for static
6183         probes.
6184         * gdb_vecs.h (struct probe): New forward declaration.
6185         (probe_p): New VEC declaration.
6186         * gdbarch.c: Regenerate.
6187         * gdbarch.h: Regenerate.
6188         * gdbarch.sh (stap_integer_prefix): New variable.
6189         (stap_integer_suffix): Likewise.
6190         (stap_register_prefix): Likewise.
6191         (stap_register_suffix): Likewise.
6192         (stap_register_indirection_prefix): Likewise.
6193         (stap_register_indirection_suffix): Likewise.
6194         (stap_gdb_register_prefix): Likewise.
6195         (stap_gdb_register_suffix): Likewise.
6196         (stap_is_single_operand): New function.
6197         (stap_parse_special_token): Likewise.
6198         (struct stap_parse_info): Forward declaration.
6199         * i386-tdep.c: Including headers needed to perform the parsing
6200         of SystemTap probes' arguments.
6201         (i386_stap_is_single_operand): New function.
6202         (i386_stap_parse_special_token): Likewise.
6203         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6204         probes' arguments parser.
6205         * i386-tdep.h (i386_stap_is_single_operand): New function.
6206         (i386_stap_parse_special_token): Likewise.
6207         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6208         * mipsread.c (ecoff_sym_fns): Likewise.
6209         * objfiles.c (objfile_relocate1): Support relocation for static
6210         probes.
6211         * parse.c (prefixify_expression): Remove static declaration.
6212         (initialize_expout): Likewise.
6213         (reallocate_expout): Likewise.
6214         * parser-defs.h (initialize_expout): Declare function.
6215         (reallocate_expout): Likewise.
6216         (prefixify_expression): Likewise.
6217         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6218         of SystemTap probes' arguments.
6219         (ppc_stap_is_single_operand): New function.
6220         (ppc_stap_parse_special_token): Likewise.
6221         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6222         probes' arguments parser.
6223         * probe.c: New file, for generic statically defined probe support.
6224         * probe.h: Likewise.
6225         * s390-tdep.c: Including headers needed to perform the parsing of
6226         SystemTap probes' arguments.
6227         (s390_stap_is_single_operand): New function.
6228         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6229         probes' arguments parser.
6230         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6231         * stap-probe.c: New file, for SystemTap probe support.
6232         * stap-probe.h: Likewise.
6233         * symfile.h: Include `gdb_vecs.h'.
6234         (struct sym_probe_fns): New struct.
6235         (struct sym_fns) <sym_probe_fns>: New field.
6236         * symtab.c (init_sal): Initialize `probe' field.
6237         * symtab.h (struct probe): Forward declaration.
6238         (struct symtab_and_line) <probe>: New field.
6239         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6240         locations.
6241         (stop_tracing): Likewise.
6242         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6243
6244 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6245             Tom Tromey  <tromey@redhat.com>
6246
6247         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6248         and to compile agent expressions.
6249         * infrun.c (siginfo_make_value): New argument `ignore'.
6250         (siginfo_funcs): New struct.
6251         (_initialize_infrun): New argument when calling
6252         `create_internalvar_type_lazy'.
6253         * thread.c (thread_id_make_value): New argument `ignore'.
6254         (thread_funcs): New struct.
6255         (_initialize_thread): New argument when calling
6256         `create_internalvar_type_lazy'.
6257         * tracepoint.c (sdata_make_value): New argument `ignore'.
6258         (sdata_funcs): New struct.
6259         (_initialize_tracepoint): New argument when calling
6260         `create_internalvar_type_lazy'.
6261         * value.c (make_value): New struct.
6262         (create_internalvar_type_lazy): New argument `data'.
6263         (compile_internalvar_to_ax): New function.
6264         (value_of_internalvar): Properly handling `make_value' case.
6265         (clear_internalvar): Likewise.
6266         (show_convenience): Adding `TRY_CATCH' block.
6267         * value.h (internalvar_make_value): Delete, replace by...
6268         (struct internalvar_funcs): ... this.
6269         (create_internalvar_type_lazy) <fun>: Delete argument.
6270         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6271         (compile_internalvar_to_ax): New function.
6272         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6273         (tlb_funcs): New struct.
6274         (_initialize_windows_tdep): New argument when calling
6275         `create_internalvar_type_lazy'.
6276
6277 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6278
6279         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6280         see whether it is an address or a constant offset from DW_AT_low_pc.
6281         (dwarf2_record_block_ranges): Likewise.
6282         (read_partial_die): Likewise.
6283
6284 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6285
6286         * MAINTAINERS (Write After Approval): Add myself to the list.
6287
6288 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6289
6290         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6291         (proc_prettyprint_signal): Likewise.
6292         (proc_prettyprint_faultset): Likewise.
6293         (proc_prettyprint_fault): Likewise.
6294         (proc_prettyprint_actionset): Likewise.
6295         (proc_prettyprint_flags): Move to new proc-flags.c section.
6296         (proc_prettyfprint_flags): New prototype.
6297         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6298         (proc_syscall, proc_cursig): Likewise.
6299         (proc_set_kill_on_last_close): Likewise.
6300         (proc_unset_kill_on_last_close): Likewise.
6301         (proc_set_watchpoint): Make static.
6302         (proc_delete_dead_threads): Likewise.
6303         (procfs_set_watchpoint): Likewise.
6304         (_initialize_procfs): Add prototype.
6305         * proc-events.c: Include proc-utils.h.
6306         (init_syscall_table): Make static.
6307         * proc-api.c (_initialize_proc_api): Add prototype.
6308         * proc-flags.c: Include proc-utils.h.
6309
6310 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6311
6312         * configure.ac: Add AC_ARG_PROGRAM.
6313         * configure: Regenerate.
6314
6315 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6316
6317         Fix DW_AT_lower_bound defaults for DWARF-4+.
6318         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6319         high.  New variable low_default_is_valid.  Implement DWARF-4+
6320         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6321         no default by the DWARF standard.
6322
6323 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6324             Maciej W. Rozycki  <macro@codesourcery.com>
6325
6326         * infrun.c (handle_inferior_event): Move the check for return
6327         trampolines ahead of the check for function trampolines.
6328         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6329         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6330         (mips_str_mips16_ret_stub): Likewise.
6331         (mips_str_call_fp_stub): Likewise.
6332         (mips_str_call_stub): Likewise.
6333         (mips_str_fn_stub): Likewise.
6334         (mips_str_pic): Likewise.
6335         (mips_in_frame_stub): New function.
6336         (mips_unwind_pc): Return the return address rather than the PC
6337         if the PC of an intermediate frame is inside a call thunk.
6338         (mips_is_stub_suffix): New function.
6339         (mips_is_stub_mode): Likewise.
6340         (mips_get_mips16_fn_stub_pc): Likewise.
6341         (mips_skip_mips16_trampoline_code): Update to handle all the
6342         currently generated stub types.  Don't recurse into __fn_stub
6343         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6344         Use cooked register accesses.
6345         (mips_in_return_stub): Reintroduce function.
6346         (mips_skip_trampoline_code): Traverse trampolines recursively.
6347         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6348
6349 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6350
6351         GDB 7.4.1 released.
6352
6353 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6354
6355         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6356         * features/arm-with-m-vfp-d16.xml: New file. Describes
6357         Cortex-M with VFPv4-sp-d16 FPU register layout.
6358         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6359         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6360         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6361         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6362         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6363
6364 2012-04-25  Doug Evans  <dje@google.com>
6365
6366         * cli/cli-decode.c (print_doc_line): Use stream instead of
6367         current_uiout.
6368
6369 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6370
6371         * features/arm-with-iwmmxt.c: Regenerate.
6372         * features/arm-with-m-fpa-layout.c: Likewise.
6373         * features/arm-with-m.c: Likewise.
6374         * features/arm-with-neon.c: Likewise.
6375         * features/arm-with-vfpv2.c: Likewise.
6376         * features/arm-with-vfpv3.c: Likewise.
6377         * features/mips-dsp-linux.c: Likewise.
6378         * features/mips-linux.c: Likewise.
6379         * features/mips64-dsp-linux.c: Likewise.
6380         * features/mips64-linux.c: Likewise.
6381         * features/s390-linux32.c: Likewise.
6382         * features/s390-linux32v1.c: Likewise.
6383         * features/s390-linux32v2.c: Likewise.
6384         * features/s390-linux64.c: Likewise.
6385         * features/s390-linux64v1.c: Likewise.
6386         * features/s390-linux64v2.c: Likewise.
6387         * features/s390x-linux64.c: Likewise.
6388         * features/s390x-linux64v1.c: Likewise.
6389         * features/s390x-linux64v2.c: Likewise.
6390         * features/tic6x-c62x-linux.c: Likewise.
6391         * features/tic6x-c62x.c: Likewise.
6392         * features/tic6x-c64x-linux.c: Likewise.
6393         * features/tic6x-c64x.c: Likewise.
6394         * features/tic6x-c64xp-linux.c: Likewise.
6395         * features/tic6x-c64xp.c: Likewise.
6396         * target-descriptions.c: Only generate `field_type' and `type'
6397         variables when needed.
6398
6399 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6400
6401         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6402
6403 2012-04-25  Doug Evans  <dje@google.com>
6404
6405         Initial pass at Go language support.
6406         * NEWS: Mention Go.
6407         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6408         go-valprint.c.
6409         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6410         (YYFILES): Add go-exp.c.
6411         (YYOBJ): Add go-exp.o.
6412         (local-maintainer-clean): Delete go-exp.c.
6413         * defs.h (enum language): Add language_go.
6414         * dwarf2read.c: #include "go-lang.h".
6415         (fixup_go_packaging): New function.
6416         (process_full_comp_unit): Call it when processing Go CUs.
6417         (dwarf2_physname): Add Go support.
6418         (read_file_scope): Handle missing language spec for GNU Go.
6419         (set_cu_language): Handle DW_LANG_Go.
6420         * go-exp.y: New file.
6421         * go-lang.h: New file.
6422         * go-lang.c: New file.
6423         * go-typeprint.c: New file.
6424         * go-valprint.c: New file.
6425         * symtab.c: #include "go-lang.h".
6426         (symbol_set_language): Handle language_go.
6427         (symbol_find_demangled_name, symbol_set_names): Ditto.
6428         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6429
6430 2012-04-24  Jim Meyering  <meyering@redhat.com>
6431
6432         avoid a few strncpy-induced buffer overruns
6433         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6434         fname and psargs before trying to concatenate.
6435         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6436         "name" before applying strchr.
6437
6438 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6439
6440         * CONTRIBUTE: Use unified diff instead of context diff when
6441         generating patches.
6442
6443 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6444
6445         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6446         code.  Handle JR.HB correctly.
6447
6448 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6449
6450         * mips-tdep.c
6451         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6452         with the other MIPS16 helpers.
6453
6454 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6455
6456         * observer.sh: Conditionally declare `args', thus cleaning up
6457         unused instances of this variable.
6458
6459 2012-04-24  Yao Qi  <yao@codesourcery.com>
6460
6461         Revert this patch to allow breakpoint always-inserted
6462         in record target.
6463         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6464         * breakpoint.c: Include record.h.
6465         (breakpoints_always_inserted_mode): Return false when the record
6466         target is in use.
6467
6468         * breakpoint.c (iterate_over_bp_locations): New.
6469         * breakpoint.h: Declare.
6470         New typedef walk_bp_location_callback.
6471         * record.c (record_open): Call record_init_record_breakpoints.
6472         (record_sync_record_breakpoints): New.
6473         (record_init_record_breakpoints): New.
6474         * NEWS: Mention supporting breakpoint always-inserted mode in
6475         record target.
6476
6477 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6478
6479         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6480         any thread.
6481
6482 2012-04-24  Yao Qi  <yao@codesourcery.com>
6483
6484         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6485         (is_catchpoint): ... it.
6486         (print_one_breakpoint_location): Caller update.
6487         * breakpoint.h: Update declaration.
6488
6489 2012-04-23  David S. Miller  <davem@davemloft.net>
6490
6491         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6492
6493 2012-04-23  Tom Tromey  <tromey@redhat.com>
6494
6495         * buildsym.c (add_free_pendings): Remove.
6496         * buildsym.h (add_free_pendings): Remove.
6497
6498 2012-04-23  Doug Evans  <dje@google.com>
6499
6500         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6501         attr.u.unsnd instead of attr.u.addr.
6502         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6503         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6504         DW_FORM_ref_udata.
6505         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6506         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6507         DW_FORM_ref_udata.
6508         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6509
6510 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6511
6512         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6513         (mips_o32_return_value): Likewise.
6514         (mips_o64_return_value): Likewise.
6515
6516 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6517
6518         * ada-lang.c (ada_evaluate_subexp): Add cases for
6519         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6520         their treatment in eval.c.
6521
6522 2012-04-21  David S. Miller  <davem@davemloft.net>
6523
6524         * sparc-tdep.c (X_DISP10): Define.
6525         (sparc_analyze_control_transfer): Handle compare-and-branch.
6526
6527 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6528
6529         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6530         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6531
6532 2012-04-20  Nigel Stephens  <nigel@mips.com>
6533             Maciej W. Rozycki  <macro@codesourcery.com>
6534
6535         * mips-tdep.c (mips_float_register_p): New function.
6536         (mips_convert_register_float_case_p): Use mips_float_register_p.
6537         (mips_register_type): Likewise.
6538         (mips_print_register): Likewise.
6539         (print_gp_register_row): Likewise.
6540         (mips_print_registers_info): Likewise.
6541
6542 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6543
6544         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6545         of mips16 symbols.
6546
6547 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6548
6549         * MAINTAINERS (Write After Approval): Add myself to the list.
6550
6551 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6552
6553         * MAINTAINERS: Update my e-mail address.
6554
6555 2012-04-20  Pedro Alves  <palves@redhat.com>
6556
6557         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6558         $srcdir.
6559         * configure: Regenerate.
6560
6561 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6562
6563         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6564         declaration.
6565         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6566
6567 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6568
6569         Fix compilation compatibility with python-2.4
6570         * python/py-type.c (convert_field): Cast ADDRSTRING for
6571         PyObject_SetAttrString as non-const.  New comment.
6572
6573 2012-04-19  Tom Tromey  <tromey@redhat.com>
6574
6575         * top.c (quit_target): Use all_cleanups.
6576         * main.c (captured_command_loop): Use all_cleanups.
6577         * exceptions.c (throw_exception): Use all_cleanups.
6578
6579 2012-04-19  Pedro Alves  <palves@redhat.com>
6580
6581         * Makefile.in (GNULIB_BUILDDIR): New.
6582         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6583         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6584         (CLEANDIRS). Remove gnulib/import.
6585         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6586         (all-lib): Ditto.
6587         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6588         (gnulib/import/Makefile): Replace gnulib/import with
6589         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6590         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6591         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6592         acx_configure_dir.m4.
6593         * acinclude.m4: Include acx_configure_dir.m4.
6594         * acx_configure_dir.m4: New file.
6595         * aclocal.m4: Regenerate.
6596         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6597         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6598         (GNULIB): New variable.
6599         (GNULIB_STDINT_H): Adjust.
6600         (AC_OUTPUT): Don't output gnulib/Makefile.
6601         * gdb/defs.h: Include build-gnulib/config.h.
6602         * aclocal.m4: Regenerate.
6603         * config.in: Regenerate.
6604         * configure: Regenerate.
6605
6606         * gnulib/Makefile.in: New file.
6607         * gnulib/configure.ac: New file.
6608         * gnulib/aclocal.m4: New file.
6609         * gnulib/config.in: New file.
6610         * gnulib/configure: New file.
6611         * gnulib/: Re-run gnulib-tool to adjust.
6612
6613 2012-04-19  Doug Evans  <dje@google.com>
6614
6615         * cleanups.h (struct cleanup): Move to cleanups.c.
6616         (make_cleanup_dtor_ftype): New typedef.
6617         (make_cleanup_dtor): Use it.
6618         (ALL_CLEANUPS): Replace with ...
6619         (all_cleanups): ... this.  Declare.  All uses updated.
6620         * cleanups.c: #include "gdb_assert.h".
6621         (sentinel_cleanup): New static global.
6622         (SENTINEL_CLEANUP): Define.
6623         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6624         (make_my_cleanup2): Assert result is non-NULL.
6625         (all_cleanups): New function.
6626         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6627         of NULL.
6628
6629 2012-04-19  Pedro Alves  <palves@redhat.com>
6630
6631         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6632         Adjust paths to gnulib imported files.
6633
6634 2012-04-19  Pedro Alves  <palves@redhat.com>
6635
6636         * gnulib/: Move whole directory ...
6637         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6638         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6639         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6640         (aclocal_m4_deps): Adjust.
6641         * aclocal.m4: Regenerate.
6642         * configure: Regenerate.
6643         * configure.ac: Adjust AC_OUTPUT output.
6644
6645 2012-04-19  Yao Qi  <yao@codesourcery.com>
6646
6647         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6648         (vec.o): New rule.
6649         * vec.c: Move it ...
6650         * common/vec.c: ... here.
6651         * vec.h: Move it ...
6652         * common/vec.h: ... here.
6653
6654 2012-04-19  Yao Qi  <yao@codesourcery.com>
6655
6656         * gdb-code-style.el: New.
6657
6658 2012-04-18  Pedro Alves  <palves@redhat.com>
6659
6660         Update gnulib from latest git.
6661         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6662
6663         * gnulib/Makefile.am: Update.
6664         * gnulib/dummy.c: Update.
6665         * gnulib/extra/arg-nonnull.h: Update.
6666         * gnulib/extra/c++defs.h: Update.
6667         * gnulib/extra/update-copyright: Update.
6668         * gnulib/extra/warn-on-use.h: Update.
6669         * gnulib/inttypes.in.h: Update.
6670         * gnulib/m4/00gnulib.m4: Update.
6671         * gnulib/m4/extensions.m4: Update.
6672         * gnulib/m4/gnulib-cache.m4: Update.
6673         * gnulib/m4/gnulib-common.m4: Update.
6674         * gnulib/m4/gnulib-comp.m4: Update.
6675         * gnulib/m4/gnulib-tool.m4: Update.
6676         * gnulib/m4/include_next.m4: Update.
6677         * gnulib/m4/inttypes-pri.m4: Update.
6678         * gnulib/m4/inttypes.m4: Update.
6679         * gnulib/m4/longlong.m4: Update.
6680         * gnulib/m4/memchr.m4: Update.
6681         * gnulib/m4/memmem.m4: Update.
6682         * gnulib/m4/mmap-anon.m4: Update.
6683         * gnulib/m4/multiarch.m4: Update.
6684         * gnulib/m4/onceonly.m4: Update.
6685         * gnulib/m4/stddef_h.m4: Update.
6686         * gnulib/m4/stdint.m4: Update.
6687         * gnulib/m4/string_h.m4: Update.
6688         * gnulib/m4/warn-on-use.m4: Update.
6689         * gnulib/m4/wchar_h.m4: Update.
6690         * gnulib/m4/wchar_t.m4: Update.
6691         * gnulib/m4/wint_t.m4: Update.
6692         * gnulib/memchr.c: Update.
6693         * gnulib/memmem.c: Update.
6694         * gnulib/stddef.in.h: Update.
6695         * gnulib/stdint.in.h: Update.
6696         * gnulib/str-two-way.h: Update.
6697         * gnulib/string.in.h: Update.
6698         * gnulib/wchar.in.h: Update.
6699
6700         * gnulib/extra/arg-nonnull.h: Delete.
6701         * gnulib/extra/c++defs.h: Delete.
6702         * gnulib/extra/warn-on-use.h: Delete.
6703         * gnulib/m4/wchar_h.m4: Delete.
6704         * gnulib/m4/wint_t.m4: Delete.
6705         * gnulib/wchar.in.h: Delete.
6706
6707         * gnulib/extra/snippets/arg-nonnull.h: New.
6708         * gnulib/extra/snippets/c++defs.h: New.
6709         * gnulib/extra/snippets/warn-on-use.h: New.
6710
6711         * aclocal.m4: Regenerate.
6712         * config.in: Regenerate.
6713         * configure: Regenerate.
6714         * gnulib/Makefile.in: Regenerate.
6715
6716 2012-04-18  Pedro Alves  <palves@redhat.com>
6717
6718         Reimport the update-copyright module from gnulib
6719         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6720
6721         * configure: Regenerate.
6722         * gnulib/Makefile.am: Update.
6723         * gnulib/Makefile.in: Regenerate.
6724         * gnulib/extra/update-copyright: Update.
6725         * gnulib/m4/gnulib-cache.m4: Update.
6726         * gnulib/m4/gnulib-comp.m4: Update.
6727
6728 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6729
6730         * configure.ac (aix): Put -lpthread into libs.
6731         * configure: Regenerate.
6732
6733 2012-04-18  Tom Tromey  <tromey@redhat.com>
6734
6735         * linespec.c (convert_linespec_to_sals): Don't use
6736         SYMBOL_OBJ_SECTION.
6737         (compare_msymbols): Arguments are minsym_and_objfile, not
6738         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6739
6740 2012-04-18  Pedro Alves  <palves@redhat.com>
6741
6742         Revert gnulib/ part of:
6743         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6744         Copyright year update in most files (performed by copyright.sh).
6745
6746 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6747
6748         Fix 64-bit constants on 32-bit hosts.
6749         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6750         from unsigned long to ULONGEST.
6751         (read_signed_leb128): Change declaration return type from long to
6752         LONGEST.
6753         (dwarf2_const_value_attr): Change declaration parameter value from long
6754         to LONGEST.
6755         (dwarf2_compute_name): Change variable value from long to LONGEST.
6756         (read_unsigned_leb128): Change return type, variable result and some
6757         casts from unsigned long to ULONGEST.
6758         (read_signed_leb128): Change return type, variable result and some
6759         casts from long to LONGEST.
6760         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6761         value from long to LONGEST.
6762         (dwarf2_const_value): Change variable value from long to LONGEST.
6763         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6764         plongest and hex_string.
6765         * symtab.h (struct general_symbol_info): Change ivalue from long to
6766         LONGEST, remove the comment.
6767         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6768         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6769
6770 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6771
6772         PR symtab/7259:
6773         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6774         * ada-lang.c (ada_discrete_type_high_bound)
6775         (ada_discrete_type_low_bound): Fix function comment.  Use
6776         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6777         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6778         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6779         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6780         Use TYPE_FIELD_ENUMVAL.
6781         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6782         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6783         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6784         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6785         TYPE_CODE_ENUM.
6786         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6787         * dwarf2read.c (process_enumeration_scope): Likewise.
6788         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6789         field.bitpos.
6790         (class StructMainTypePrettyPrinter): Support also
6791         FIELD_LOC_KIND_ENUMVAL.
6792         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6793         TYPE_CODE_ENUM.
6794         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6795         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6796         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6797         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6798         field enumval.
6799         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6800         accommodate enumval.
6801         (struct call_site): Adjust loc_kind to accommodate enumval.
6802         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6803         (TYPE_FIELD_ENUMVAL): New macros.
6804         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6805         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6806         TYPE_CODE_ENUM.
6807         * p-typeprint.c (pascal_type_print_base): Likewise.
6808         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6809         enumval.
6810         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6811         * python/py-type.c (convert_field): New variable addrstring.  Use
6812         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6813         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6814         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6815         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6816         TYPE_CODE_ENUM.
6817         * valprint.c (generic_val_print): Likewise.
6818
6819 2012-04-17  Doug Evans  <dje@google.com>
6820
6821         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6822
6823         * dwarf2read.c: Whitespace fixes.
6824         (lookup_signatured_type): Tweak comment.
6825         (get_die_type_at_offset): Fix comment.
6826
6827 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6828
6829         * xcoffread.c (xcoff_secnum_to_sections): New function.
6830         (secnum_to_section, secnum_to_bfd_section): Reimplement
6831         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6832         into "n_scnum".
6833         (RECORD_MINIMAL_SYMBOL): Delete.
6834         (record_minimal_symbol): New function.
6835         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6836         by call to record_minimal_symbol and set misc_func_recorded
6837         to 1.  Set last_csect_sec to the XCOFF section index instead
6838         of GDB's section_offset index.  Update calls to
6839         prim_record_minimal_symbol_and_info to pass the BFD section
6840         as well.
6841
6842 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6843
6844         * xcoffread.c (read_xcoff_symtab): Delete variables
6845         last_csect_val and last_csect_sec and associated code.
6846
6847 2012-04-17  Doug Evans  <dje@google.com>
6848
6849         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6850         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6851         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6852         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6853
6854         * cleanups.h: New file.
6855         * cleanups.c: New file.
6856         * Makefile.in (SFILES): Add cleanups.c.
6857         (HFILES_NO_SRCDIR): Add cleanups.h.
6858         (COMMON_OBS): Add cleanups.o.
6859         * defs.h (struct cleanup): Moved to cleanups.h.
6860         (do_cleanups,do_final_cleanups): Ditto.
6861         (discard_cleanups,discard_final_cleanups): Ditto
6862         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6863         (save_cleanups,save_final_cleanups): Ditto.
6864         (restore_cleanups,restore_final_cleanups): Ditto.
6865         (null_cleanup): Ditto.
6866         (make_my_cleanup,make_my_cleanup2): Ditto.
6867         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6868         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6869         (do_cleanups,do_final_cleanups): Ditto.
6870         (discard_cleanups,discard_final_cleanups): Ditto
6871         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6872         (save_cleanups,save_final_cleanups): Ditto.
6873         (restore_cleanups,restore_final_cleanups): Ditto.
6874         (null_cleanup): Ditto.
6875         (make_my_cleanup,make_my_cleanup2): Ditto.
6876         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6877
6878         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6879         make_my_cleanup.
6880         (make_cleanup_dyn_string_delete): Ditto.
6881         (make_cleanup_ui_file_delete): Ditto.
6882         (make_cleanup_ui_out_redirect_pop): Ditto.
6883         (make_cleanup_free_section_addr_info): Ditto.
6884         (make_cleanup_restore_integer): Ditto.
6885         (make_cleanup_unpush_target): Ditto.
6886         (make_cleanup_value_free_to_mark): Ditto.
6887         (make_cleanup_value_free): Ditto.
6888         (make_cleanup_free_so): Ditto.
6889
6890 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6891
6892         New option "set debug auto-load".
6893         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6894         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6895         (auto_load_safe_path_vec_update)
6896         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6897         if DEBUG_AUTO_LOAD.
6898         (file_is_auto_load_safe): New parameters debug_fmt and ....
6899         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6900         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6901         caller by explanatory string.
6902         (_initialize_auto_load): Register "set debug auto-load".
6903         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6904         and ....
6905         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6906         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6907         by explanatory string.
6908         * main.c (captured_main): Likewise.
6909         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6910         (source_section_scripts): Likewise.
6911
6912 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6913
6914         New option "set auto-load safe-path".
6915         * NEWS: New commands "set auto-load safe-path"
6916         and "show auto-load safe-path".
6917         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6918         (auto_load_safe_path, auto_load_safe_path_vec)
6919         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6920         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6921         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6922         (source_gdb_script_for_objfile): New variable is_safe.  Call
6923         file_is_auto_load_safe.  Return if it is not.
6924         (struct loaded_script): New field loaded.
6925         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6926         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6927         output "Missing" to "No".
6928         (_initialize_auto_load): New variable cmd.  Initialize
6929         auto_load_safe_path.  Register "set auto-load safe-path",
6930         "show auto-load safe-path" and "add-auto-load-safe-path".
6931         * auto-load.h (maybe_add_script): Add parameter loaded.
6932         (file_is_auto_load_safe): New declaration.
6933         * config.in: Regenerate.
6934         * configure: Regenerate.
6935         * configure.ac: New parameters --with-auto-load-safe-path
6936         and --without-auto-load-safe-path.
6937         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6938         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6939         * main.c (captured_main): Check file_is_auto_load_safe for
6940         LOCAL_GDBINIT.
6941         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6942         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6943         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6944         not.
6945
6946 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6947
6948         auto-load: Implementation.
6949         * NEWS: New descriptions for "info auto-load",
6950         "info auto-load gdb-scripts", "info auto-load python-scripts",
6951         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6952         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6953         and "show auto-load-scripts".  New description for "set auto-load",
6954         "show auto-load", "set auto-load gdb-scripts",
6955         "show auto-load gdb-scripts", "set auto-load python-scripts",
6956         "show auto-load python-scripts", "set auto-load local-gdbinit",
6957         "show auto-load local-gdbinit", "set auto-load libthread-db" and
6958         "show auto-load libthread-db".
6959         * auto-load.c: Remove include python/python-internal.h.  Add includes
6960         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6961         cli/cli-setshow.h.
6962         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6963         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6964         (gdbpy_global_auto_load): Rename to ...
6965         (global_auto_load): ... here.
6966         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6967         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6968         (script_language_gdb, source_gdb_script_for_objfile): New.
6969         (struct loaded_script): New field language.
6970         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6971         LANGUAGE.
6972         (maybe_add_script): Add parameter language.  Drop redundant
6973         entry.full_path initialization.  Initialize entry.language and
6974         (*slot)->language.
6975         (auto_load_objfile_script): Change parameter suffix to language.
6976         Remove the call of maybe_add_script.
6977         Call language->source_script_for_objfile.
6978         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6979         New.
6980         (collect_matching_scripts): Adjust it for
6981         struct collect_matching_scripts_data.
6982         (auto_load_info_scripts_pattern_nl): New variable.
6983         (info_auto_load_scripts): Rename to ...
6984         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
6985         for struct collect_matching_scripts_data.
6986         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6987         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6988         (auto_load_show_cmdlist_get, info_auto_load_cmd)
6989         (auto_load_info_cmdlist_get): New.
6990         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6991         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
6992         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6993         "info auto-load local-gdbinit".
6994         * auto-load.h (struct script_language): New.
6995         (gdbpy_global_auto_load): Rename to ...
6996         (global_auto_load): ... here.
6997         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6998         (auto_load_local_gdbinit_loaded): New declarations.
6999         (maybe_add_script): New parameter language.
7000         (auto_load_objfile_script): Change parameter suffix to language.
7001         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7002         (auto_load_info_scripts, auto_load_set_cmdlist_get)
7003         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7004         declarations.
7005         * linux-thread-db.c: Include auto-load.h and ctype.h.
7006         (auto_load_thread_db, show_auto_load_thread_db): New.
7007         (struct thread_db_info): New field filename.
7008         (delete_thread_db_info): Call xfree for FILENAME.
7009         (try_thread_db_load): Initialize FILENAME.
7010         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7011         if !AUTO_LOAD_THREAD_DB.
7012         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7013         (_initialize_thread_db): Install auto_load_thread_db
7014         as "set auto-load libthread-db" and install info_auto_load_libthread_db
7015         as "info auto-load libthread-db".
7016         * main.c (captured_main): Rename gdbpy_global_auto_load to
7017         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7018         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7019         (print_gdb_help): Extend the help for 'local init file'.
7020         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7021         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7022         (auto_load_scripts): Rename to ...
7023         (auto_load_python_scripts): ... here, update the comment.
7024         (gdbpy_load_auto_script_for_objfile): New declaration.
7025         (show_auto_load_python_scripts, script_language_python)
7026         (gdbpy_load_auto_script_for_objfile): New.
7027         (source_section_scripts): Refactor the code.
7028         (load_auto_scripts_for_objfile): Rename to ...
7029         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7030         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7031         (info_auto_load_python_scripts): New.
7032         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7033         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7034         Register "set auto-load-scripts" as its deprecated alias.  Register
7035         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7036         its deprecated alias.
7037         (load_auto_scripts_for_objfile): Rename to ...
7038         (gdbpy_load_auto_scripts_for_objfile): ... here.
7039         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7040         (gdbpy_load_auto_scripts_for_objfile): ... here.
7041
7042 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7043
7044         auto-load: Move files.
7045         * Makefile.in (SFILES): Add auto-load.c.
7046         (HFILES_NO_SRCDIR): Add auto-load.h.
7047         (COMMON_OBS): Add auto-load.o.
7048         (distclean): Change .gdbinit for gdb-gdb.gdb.
7049         * auto-load.c: New file, with parts from python/py-auto-load.c.
7050         * auto-load.h: New file, with parts from python/python.h.
7051         * configure: Regenerate.
7052         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7053         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7054         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7055         * main.c: Include auto-load.h.
7056         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7057         command.h, observer.h and progspace.h to auto-load.c.  Add include
7058         auto-load.h.
7059         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7060         (struct loaded_script, auto_load_pspace_data)
7061         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7062         (hash_loaded_script_entry, eq_loaded_script_entry)
7063         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7064         (maybe_add_script): Move to auto-load.c.
7065         (source_section_scripts): Change maybe_add_script parameters passing,
7066         use script_not_found_warning_print.
7067         (clear_section_scripts, auto_load_objfile_script)
7068         (auto_load_new_objfile, loaded_script_ptr)
7069         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7070         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7071         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7072         auto_load_new_objfile and info_auto_load_scripts initizations to
7073         auto-load.c.
7074         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7075
7076 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7077
7078         Code cleanup.
7079         * charset.c (find_charset_names): Remove variables ix and elt.
7080         Use free_char_ptr_vec.
7081         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7082         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7083         debugdir_end.  New variable debugdir_len.
7084         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7085         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7086         declarations.
7087         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7088         and elt.  Use free_char_ptr_vec.
7089         * source.c (add_path): Remove variables argv, arg and argv_index.
7090         New variables dir_vec, back_to, ix and name.
7091         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7092         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7093         no longer expecting DIRNAME_SEPARATOR.
7094         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7095         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7096         no longer expecting DIRNAME_SEPARATOR.
7097         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7098         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7099         debugdir_end.
7100         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7101         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7102         (dirnames_to_char_ptr_vec): New functions.
7103
7104 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7105
7106         Code cleanup.
7107         * source.c (add_path): Remove always true conditional 'p == 0' and
7108         unindent its code block.
7109
7110 2012-04-17  Pedro Alves  <palves@redhat.com>
7111
7112         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7113         (FIELD_BITPOS_LVAL): ... this.
7114         (FIELD_BITPOS): New.
7115         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7116         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7117         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7118         SET_FIELD_BITPOS.
7119         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7120         SET_FIELD_BITPOS.
7121         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7122         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7123         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7124         SET_FIELD_BITPOS.
7125
7126 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7127
7128         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7129         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7130         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7131         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7132         * jv-lang.c (java_link_class_type): Likewise, once.
7133         * stabsread.c (read_enum_type): Likewise.
7134
7135 2012-04-16  Yao Qi  <yao@codesourcery.com>
7136
7137         * common/agent.c (agent_run_command): Add one more parameter `len'.
7138         Update callers.
7139         * common/agent.h: Update declaration.
7140         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7141         Update.
7142         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7143
7144 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7145
7146         PR mi/13393
7147         * value.c (value_actual_type): New function.
7148         * value.h (value_actual_type): New declaration.
7149         * varobj.c (update_type_if_necessary): New function.
7150         (varobj_create): Call value_actual_type instead of
7151         value_type.
7152         (install_dynamic_child): distinct changed and type changed MI variable
7153         objects.
7154         (update_dynamic_varobj_children): Updated for install_dynamic_child
7155         change.  All callers updated.
7156         (varobj_update): Support for MI variable object type change if
7157         the value changed and RTTI is used to determine the type.
7158         (create_child_with_value): Call value_actual_type instead of
7159         value_type.
7160         (adjust_value_for_child_access): Extended with a new parameter which
7161         specify whether the given value should be casted to enclosing type.
7162         All callers updated.
7163
7164 2012-04-14  Yao Qi  <yao@codesourcery.com>
7165
7166         Import gnulib module inttypes from git
7167         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7168         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7169         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7170         gnulib/m4/inttypes-pri.m4
7171         * aclocal.m4, config.in, configure: Regenerated.
7172         * gnulib/Makefile.am: Update.
7173         * gnulib/Makefile.in: Update.
7174         * gnulib/m4/gnulib-cache.m4: Update.
7175         * gnulib/m4/gnulib-comp.m4: Update.
7176         * gnulib/inttypes.in.h: New.
7177         * gnulib/m4/inttypes-pri.m4: New.
7178         * gnulib/m4/inttypes.m4: New.
7179
7180 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7181
7182         * infrun.c (resume): Update PC address to the real PC after
7183         preparing to do displaced stepping.
7184
7185 2012-04-12  Doug Evans  <dje@google.com>
7186
7187         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7188         All callers updated.
7189
7190 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7191
7192         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7193
7194 2012-04-12  Doug Evans  <dje@google.com>
7195
7196         * dwarf2read.c (create_all_type_units): Renamed from
7197         create_debug_types_hash_table.  All callers updated.
7198
7199         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7200         local type_sig to sig_type, type_offset to type_offset_in_tu.
7201         (hash_signatured_type): Renamed from hash_type_signature,
7202         all callers updated.
7203         (eq_signatured_type): Renamed from eq_type_signature,
7204         all callers updated.
7205         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7206         (process_enumeration_scope): Ditto.
7207         (lookup_signatured_type_at_offset): Ditto.
7208         (load_full_type_unit, read_signatured_type): Ditto.
7209
7210 2012-04-12  Yao Qi  <yao@codesourcery.com>
7211
7212         * remote.c (async_remote_interrupt): Correct function name in
7213         debug message.
7214         (async_remote_interrupt_twice): Ditto.
7215
7216 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7217
7218         * source.c (find_and_open_source): Consistently pass resulting
7219         full path through xfullpath.
7220
7221 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7222
7223         Provide more specific displaced-stepping memory error message.
7224         * infrun.c (displaced_step_prepare): New variable status.  Call
7225         target_read_memory instead of read_memory, provide more specific
7226         error message.
7227
7228 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7229
7230         PR gdb/13901
7231         * darwin-nat.c (darwin_execvp): Revert previous patch.
7232
7233 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7234
7235         PR gdb/13901
7236         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7237         in case of change.
7238
7239 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7240
7241         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7242         warning.
7243
7244 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7245
7246         New command 'explore' which helps explore values and types in
7247         scope.
7248         * NEWS: Add an entry about the new 'explore' command.
7249         * data-directory/Makefile.in: Add gdb/command/explore.py
7250         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7251         command using the GDB Python API.
7252
7253 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7254
7255         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7256         extension in jump target calculation.
7257
7258 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7259
7260         * mips-tdep.c (mips32_next_pc): Handle JALX.
7261
7262 2012-04-10  Yao Qi  <yao@codesourcery.com>
7263
7264         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7265
7266 2012-04-10  Yao Qi  <yao@codesourcery.com>
7267
7268         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7269         and gnulib/m4/gnulib-tool.m4.
7270
7271 2012-04-10  Doug Evans  <dje@google.com>
7272
7273         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7274         (load_partial_dies): Clarify comment.
7275         (find_partial_die): Support rereading type units.
7276         Clarify CU handling, if we know offset is in CU, don't search for the
7277         containing CU.  Add comment regarding memory waste.
7278
7279 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7280
7281         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7282         i386/x32-avx and i386/x32-avx-linux.
7283         (i386/x32-expedite): New.
7284         (i386/x32-linux-expedite): Likewise.
7285         (i386/x32-avx-expedite): Likewise.
7286         (i386/x32-avx-linux-expedite): Likewise.
7287         ($(outdir)/i386/x32.dat): Likewise.
7288         ($(outdir)/i386/x32-linux.dat): Likewise.
7289         ($(outdir)/i386/x32-avx.dat): Likewise.
7290         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7291
7292         * features/i386/x32-avx-linux.xml: New file.
7293         * features/i386/x32-avx.xml: Likewise.
7294         * features/i386/x32-core.xml: Likewise.
7295         * features/i386/x32-linux.xml: Likewise.
7296         * features/i386/x32.xml: Likewise.
7297
7298         * features/i386/x32-avx-linux.c: New.  Generated.
7299         * features/i386/x32-avx.c: Likewise.
7300         * features/i386/x32-linux.c: Likewise.
7301         * features/i386/x32.c: Likewise.
7302         * regformats/i386/x32-avx-linux.dat: Likewise.
7303         * regformats/i386/x32-avx.dat: Likewise.
7304         * regformats/i386/x32-linux.dat: Likewise.
7305         * regformats/i386/x32.dat: Likewise.
7306
7307 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7308
7309         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7310         code to kill the inferior.
7311
7312 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7313
7314         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7315         defines.
7316         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7317         defines.
7318         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7319         (yyvsp): New defines.
7320         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7321         defines.
7322         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7323         defines.
7324         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7325         defines.
7326         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7327         defines.
7328         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7329         defines.
7330
7331 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7332
7333         * sparc64-tdep.c (sparc64_store_arguments)
7334         (sparc64_store_arguments): Fix coding style.
7335
7336 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7337
7338         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7339         complex floats, adjust some related comments and tighten a related
7340         assertion.
7341         (sparc64_extract_return_value): Handle complex floats.
7342
7343 2012-04-07  Doug Evans  <dje@google.com>
7344
7345         * dwarf2read.c (load_partial_dies): Change condition to assert.
7346
7347 2012-04-06  Doug Evans  <dje@google.com>
7348
7349         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7350         "mov %rsp,%rbp".
7351
7352 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7353
7354         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7355         fencepost error.
7356         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7357         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7358         architecture.
7359
7360 2012-04-05  Keith Seitz  <keiths@redhat.com>
7361
7362         * linespec.c (decode_compound): Remove.
7363         (enum offset_relative_sign): New enum.
7364         (struct line_offset): New struct.
7365         (struct linespec): New struct.
7366         (struct linespec_state): Move file_symtabs,
7367         user_filename, and user_function into struct linespec.
7368         Make result an anonymous struct holding vectors of
7369         symbolp and minsym_and_objfile_d.
7370         Add language member.
7371         (enum ls_token_type): New enum.
7372         (linespec_keywords): New array.
7373         (struct ls_token): New struct.
7374         (struct ls_parser): New struct.
7375         (linespec_lexer_lex_number): New function.
7376         (linespec_lexer_lex_keyword): New function.
7377         (is_ada_operator): New function.
7378         (skip_quote_char): New function.
7379         (copy_token_string): New function.
7380         (is_closing_quote_enclosed): New function.
7381         (find_parameter_list_end): New function.
7382         (linespec_lexer_lex_string): New function.
7383         (linespec_lexer_lex_one): New function.
7384         (linespec_lexer_consume_token): New function.
7385         (linespec_lexer_peek_token): New function.
7386         (cplusplus_error): Remove unused function.
7387         (find_methods): Update comment.
7388         (find_toplevel_char): Return const.
7389         (is_objc_method_format): Remove unused function.
7390         (find_toplevel_string): New function.
7391         (is_linespec_boundary): Remove.
7392         (symbol_not_found_error): New function.
7393         (find_method_overload_end): Remove function.
7394         (unexpected_linespec_error): New function.
7395         (keep_name_info): Remove.
7396         (linespec_parse_line_offset): New function.
7397         (linespec_parse_basic): New function.
7398         (canonicalize_linespec): New function.
7399         (decode_line_internal): Remove.
7400         (create_sals_line_offset): New function adapted from
7401         decode_all_digits.
7402         (convert_linespec_to_sals): New function.
7403         (parse_linespec): New function.
7404         (linespec_parser_new): New function.
7405         (linespec_state_destructor): Change parameter type to
7406         struct linespec_state *.
7407         Add language parameter.
7408         Remove freeing of moved members.
7409         (linespec_parser_delete): New function.
7410         (decode_line_full): Use parse_linespec and linespec_parser_new.
7411         (decode_line_1): Likewise.
7412         (decode_indirect): Rename to ...
7413         (linespec_expression_to_pc): ... this and rewrite
7414         to simply find CORE_ADDR, storing this result for later
7415         conversion to SALs.
7416         (locate_first_half): Remove.
7417         (deocde_objc): Add parameter LS.
7418         Initialize new struct collect_info members.
7419         Handle minimal symbols, too.
7420         (decode_compound): Delete.
7421         (lookup_prefix_sym): Rewrite.
7422         (compare_msymbols): New function.
7423         (find_method): Rewrite.
7424         Do not call cplusplus_error.
7425         (symtabs_from_filename): Rewrite.
7426         (collect_function_symbols): Delete.
7427         (find_function_symbols): Rewrite without ARGPTR-style
7428         processing.
7429         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7430         (decode_dollar): Adapted and renamed to ...
7431         (linespec_parse_variable): ... this.
7432         (find_linespec_symbols): New function.
7433         (decode_label): Adapted and renamed to ...
7434         (find_label_symbols): ... this.
7435         (decode_digits_list_mode): Add and use LS argument.
7436         (decode_digits_ordinary): Likewise.
7437         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7438         If in list mode, allow any symbol class.  Otherwise, only
7439         permit LOC_BLOCK symbols.
7440         (minsym_found): Update comments.
7441         (search_minsyms_for_name): Do not convert the matching symbol
7442         into a SAL.  Simply push the symbol and objfile into the
7443         result vector.
7444         (decode_variable): Delete. Contents adapted into
7445         find_linespec_symbols.
7446
7447         * cp-support.c (SKIP_SPACE): Remove.
7448         (operator_tokens): Remove unused global.
7449         (cp_validate_operator): Remove.
7450         * cp-support.h (cp_validate_operator): Remove declaration.
7451
7452 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7453
7454         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7455         for TYPE_VPTR_FIELDNO.
7456         * valprint.c (valprint_check_validity): Make it global, move the
7457         function comment ...
7458         * value.h (valprint_check_validity): ... to this new declaration.
7459
7460 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7461
7462         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7463         the STATE32 api for i386 state.
7464         (i386_darwin_store_inferior_registers): Likewise.
7465
7466 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7467
7468         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7469         SS offset.
7470         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7471         format_string.
7472
7473 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7474
7475         PR gdb/13901
7476         * darwin-nat.c (darwin_execvp): Set binary preference.
7477
7478 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7479
7480         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7481
7482 2012-03-30  Tom Tromey  <tromey@redhat.com>
7483
7484         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7485         of TRY_CATCH.  Fix error handling.
7486         * python/py-value.c (convert_value_from_python): Move 'old'
7487         declaration to innermost scope.
7488
7489 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7490             Andrey Smirnov  <andrew.smirnov@gmail.com>
7491
7492         -Wshadow warning fix.
7493         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7494         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7495         Adjust code accordingly.
7496
7497 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7498
7499         * ada-lang.c (symbol_completion_add): Rename parameter
7500         "encoded" into "encoded_p".  Ajust code and documentation
7501         accordingly.
7502
7503 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7504             Andrey Smirnov  <andrew.smirnov@gmail.com>
7505
7506         -Wshadow warning fix.
7507         * ada-lang.c (symbol_completion_add): Rename parameter
7508         "wild_match" into wild_match_p.  Update code and documentation
7509         accordingly.
7510
7511 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7512
7513         * ada-lang.c (symbol_completion_match): Rename parameter
7514         "encoded" into "encoded_p".  Ajust code and documentation
7515         accordingly.
7516
7517 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7518             Andrey Smirnov  <andrew.smirnov@gmail.com>
7519
7520         -Wshadow warning fix.
7521         * ada-lang.c (symbol_completion_match): Rename parameter
7522         "wild_match" into "wild_match_p".  Adjust code and function
7523         documentation accordingly.
7524
7525 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7526             Andrey Smirnov  <andrew.smirnov@gmail.com>
7527
7528         -Wshadow warning fix.
7529         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7530         "symbol_info" into "info".  Adjust code accordingly.
7531         (ada_lookup_symbol): Likewise.
7532
7533 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7534
7535         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7536         of this function's documentation.
7537
7538 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7539             Andrey Smirnov  <andrew.smirnov@gmail.com>
7540
7541         -Wshadow warning fix.
7542         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7543         variable into "wild_match_p".  Adjust code accordingly.
7544
7545 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7546             Andrey Smirnov  <andrew.smirnov@gmail.com>
7547
7548         -Wshadow warning fix.
7549         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7550         parameter into "wild_match_p".  Adjust code accordingly.
7551         Document this parameter in the function description.
7552
7553 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7554             Andrey Smirnov  <andrew.smirnov@gmail.com>
7555
7556         -Wshadow warning fix.
7557         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7558         "wild_match" parameter to "wild_match_p" (-Wshadow).
7559
7560 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7561
7562         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7563         in function documentation.
7564
7565 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7566             Andrey Smirnov  <andrew.smirnov@gmail.com>
7567
7568         -Wshadow warning fix.
7569         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7570         variable into wild_match_p.  Adjust code accordingly.
7571
7572 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7573             Andrey Smirnov  <andrew.smirnov@gmail.com>
7574
7575         * ada-valprint.c (ada_val_print_1): Move the code handling
7576         TYPE_CODE_ENUM inside its own lexical block.  Declare
7577         variables len and val there, instead of in the function's
7578         top level block.  Avoid declaring deref_val again in a way
7579         that shadows another variable of the same name declared
7580         in one of the up-level blocks.  Just re-use the up-level
7581         variable instead.
7582
7583 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7584
7585         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7586         Replace block_found argument by symbol_info.  Adjust
7587         implementation accordingly.  Add function documentation.
7588         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7589         Fix documentation.
7590         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7591         * ada-exp.y (write_object_renaming): Adjust to new
7592         ada_lookup_encoded_symbol API.
7593
7594 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7595
7596         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7597         documentation.
7598
7599 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7600
7601         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7602         (v850_register_name): Add the mpu and fpu register names.
7603         (v850e_register_name): Add the mpu and fpu register names.
7604         (v850e2_register_name): New function.
7605         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7606         bfd_mach_v850e2v3.
7607
7608 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7609
7610         * NEWS: Add entry for Ada varobj support.
7611
7612 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7613
7614         * varobj.c (default_value_is_changeable_p): New function,
7615         extracted from varobj_value_is_changeable_p.  Add declaration.
7616         (ada_value_is_changeable_p): New function, extracted from
7617         varobj_value_is_changeable_p.  Add declaration.
7618         (struct language_specific): New field "value_is_changeable_p".
7619         (languages): Add entries for new field.
7620         (varobj_create): Set language before calling install_new_value.
7621         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7622         "value_is_changeable_p" language callback.
7623
7624 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7625
7626         * ada-varobj.h, ada-varobj.c: New files.
7627         * Makefile.in (SFILES): Add ada-varobj.c.
7628         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7629         (COMMON_OBS): Add ada-varobj.o.
7630
7631 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7632
7633         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7634         (struct language_specific): New field "value_has_mutated".
7635         (languages): Set field "value_has_mutated" in each entry of array.
7636         (varobj_value_has_mutated): New function.
7637         (varobj_udpdate): Add handling of type mutation.
7638         (value_of_root): Add handling of type mutation.
7639         (ada_value_has_mutated): New function.
7640
7641 2012-03-28  Pedro Alves  <palves@redhat.com>
7642
7643         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7644         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7645
7646 2012-03-28  Tom Tromey  <tromey@redhat.com>
7647
7648         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7649         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7650         before returning.
7651
7652 2012-03-28  Tom Tromey  <tromey@redhat.com>
7653
7654         * .dir-locals.el: New file.
7655
7656 2012-03-28  Pedro Alves  <palves@redhat.com>
7657
7658         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7659
7660 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7661
7662         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7663         handling for r0.
7664
7665 2012-03-27  Pedro Alves  <palves@redhat.com>
7666
7667         Eliminate struct ui_stream.
7668
7669         * ui-out.h (struct ui_stream): Delete.
7670         (ui_out_field_stream): Adjust prototype.
7671         (ui_out_stream_new, ui_out_stream_delete)
7672         (make_cleanup_ui_out_stream_delete): Delete declarations.
7673         * ui-out.c (ui_out_field_stream): Change prototype to take a
7674         ui_file instead of a ui_stream.  Adjust.
7675         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7676         (make_cleanup_ui_out_stream_delete): Delete.
7677         * breakpoint.c (print_breakpoint_location)
7678         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7679         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7680         * disasm.c (dump_insns): Ditto.
7681         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7682         prototype.
7683         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7684         ui_stream/ui_out_stream_new.
7685         * infcmd.c (print_return_value): Ditto.
7686         * osdata.c (info_osdata_command): Don't allocate a local
7687         ui_stream.
7688         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7689         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7690         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7691         allocate a local ui_stream.
7692         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7693         instead of ui_stream/ui_out_stream_new.
7694         (list_args_or_locals): Don't allocate a local ui_stream.
7695         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7696         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7697         ui_stream/ui_out_stream_new.
7698         * cli/cli-setshow.c (do_setshow_command): Ditto.
7699
7700 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7701
7702         * arm-linux-tdep.c (arm_linux_init_abi): Call
7703         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7704         * arm-tdep.c (arm_process_record): New function.
7705         (deallocate_reg_mem): New function.
7706         (decode_insn): New function.
7707         (thumb_record_branch): New function.
7708         (thumb_record_ldm_stm_swi(): New function.
7709         (thumb_record_misc): New function.
7710         (thumb_record_ld_st_stack): New function.
7711         (thumb_record_ld_st_imm_offset): New function.
7712         (thumb_record_ld_st_reg_offset(): New function.
7713         (thumb_record_add_sub_cmp_mov): New function.
7714         (thumb_record_shift_add_sub): New function.
7715         (arm_record_coproc_data_proc): New function.
7716         (arm_record_coproc): New function.
7717         (arm_record_b_bl): New function.
7718         (arm_record_ld_st_multiple): New function.
7719         (arm_record_ld_st_reg_offset): New function.
7720         (arm_record_ld_st_imm_offset): New function.
7721         (arm_record_data_proc_imm): New function.
7722         (arm_record_data_proc_misc_ld_str): New function.
7723         (arm_record_extension_space): New function.
7724         (arm_record_strx): New function.
7725         (sbo_sbz): New function.
7726         (struct insn_decode_record): New structure for arm insn record.
7727         (REG_ALLOC): New macro for reg allocations.
7728         (MEM_ALLOC): New macro for memory allocations.
7729         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7730
7731 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7732
7733         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7734         (store_register): Likewise.
7735
7736 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7737
7738         * MAINTAINERS (Write After Approval): Add myself to the list.
7739
7740 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7741
7742         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7743         Describe also the option "auto".
7744
7745 2012-03-22  Richard Henderson  <rth@redhat.com>
7746
7747         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7748         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7749
7750 2012-03-22  Richard Henderson  <rth@redhat.com>
7751
7752         * jit.c (jit_read_code_entry): Compute alignment and offset of
7753         int64_t member before computing entry_size.
7754
7755 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7756
7757         Python scripting: Add new method Value.referenced_value to
7758         gdb.Value which can dereference pointer as well as reference
7759         values.
7760         * NEWS: Add entry under 'Python scripting' about the new method
7761         Value.referenced_value on gdb.Value objects.
7762         * python/py-value.c (valpy_referenced_value): New function
7763         defining a new method on gdb.Value objects which can dereference
7764         pointer and reference values.
7765
7766 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7767
7768         * MAINTAINERS (Write After Approval): Add myself to the list.
7769
7770 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7771
7772         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7773         in addition to "main".
7774
7775 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7776
7777         * expression.h (op_name): Add declaration.
7778         * expprint.c (op_name): Remove declaration.  Make non-static.
7779         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7780
7781 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7782
7783         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7784         of struct siginfo.
7785         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7786         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7787         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7788         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7789         (linux_nat_get_siginfo): Likewise.
7790         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7791         (linux_nat_get_siginfo): Likewise.
7792         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7793         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7794         * procfs.c (gdb_siginfo_t): Likewise.
7795
7796 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7797
7798         * .gitignore: Ignore more files.
7799
7800 2012-03-20  Pedro Alves  <palves@redhat.com>
7801
7802         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7803         returns.
7804
7805 2012-03-20  Yao Qi  <yao@codesourcery.com>
7806
7807         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7808         comment.
7809
7810 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7811
7812         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7813         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7814         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7815         sect_offset.
7816         * dwarf2expr.h (cu_offset, sect_offset): New types.
7817         (struct dwarf_expr_context_funcs) <dwarf_call>
7818         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7819         sect_offset.
7820         (struct dwarf_expr_context) <len>: Improve the comment.
7821         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7822         cu_offset and sect_offset.
7823         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7824         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7825         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7826         * dwarf2loc.h: Include dwarf2expr.h.
7827         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7828         and sect_offset.
7829         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7830         Improve the comment.
7831         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7832         (struct signatured_type, struct line_header, struct partial_die_info)
7833         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7834         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7835         (get_die_type_at_offset, create_cus_from_index)
7836         (create_signatured_type_table_from_index, dw2_get_file_names)
7837         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7838         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7839         (create_debug_types_hash_table, process_psymtab_comp_unit)
7840         (load_partial_comp_unit, create_all_comp_units)
7841         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7842         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7843         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7844         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7845         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7846         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7847         (find_partial_die, read_attribute_value, lookup_die_type)
7848         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7849         (is_ref_attr): New function comment.
7850         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7851         Use cu_offset and sect_offset.
7852         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7853         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7854         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7855         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7856         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7857         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7858         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7859         sect_offset.
7860
7861 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7862
7863         Code cleanup.
7864         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7865         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7866         with xfree.
7867         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7868
7869 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7870
7871         * NEWS: Describe new options --init-command=FILE, -ix and
7872         --init-eval-command=COMMAND, -iex.
7873         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7874         CMDARG_INIT_COMMAND.
7875         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7876         "init-command", "init-eval-command", "ix" and "iex" to the variable
7877         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7878         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7879         (print_gdb_help): Describe --init-command=FILE, -ix and
7880         --init-eval-command=COMMAND, -iex.
7881
7882 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7883
7884         Code cleanup.
7885         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7886         (cmdarg_s, VEC (cmdarg_s)): New.
7887         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7888         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7889         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7890         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7891         of CMDARG.
7892
7893 2012-03-19  Tom Tromey  <tromey@redhat.com>
7894
7895         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7896
7897 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7898
7899         PR symtab/13777
7900         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7901         GCC >=4.5.
7902
7903 2012-03-16  Chris January  <chris.january@allinea.com>
7904
7905         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7906         of clear.
7907
7908 2012-03-16  Chris January  <chris.january@allinea.com>
7909
7910         * source.c (add_path): Use memmove instead of strcpy because the
7911         strings overlap.
7912
7913 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7914
7915         * value.h (set_value_parent): Add declaration.
7916         * value.c (set_value_parent): New function.
7917         (value_address): If VALUE->PARENT is not NULL, then use it as
7918         the base address instead of VALUE->LOCATION.address.
7919         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7920         the same as OBJ's address.  Adjust V's offset accordingly.
7921         Set V's parent.
7922
7923 2012-03-16  Gary Benson  <gbenson@redhat.com>
7924
7925         PR breakpoints/10738
7926         * dwarf2read.c (use_deprecated_index_sections): New global.
7927         (struct partial_die_info): New member may_be_inlined.
7928         (read_partial_die): Set may_be_inlined where appropriate.
7929         (add_partial_subprogram): Add partial symbols for partial
7930         DIEs that may be inlined.
7931         (new_symbol_full): Add inlined subroutines to the current
7932         scope.
7933         (write_psymtabs_to_index): Bump version number.
7934         (dwarf2_read_index): Read only version 6 indices unless
7935         use_deprecated_index_sections is set.
7936         * linespec.c (symbol_and_data_callback): New structure.
7937         (iterate_inline_only): New function.
7938         (iterate_over_all_matching_symtabs): New argument
7939         "include_inline".  If nonzero, also call the callback for
7940         symbols representing inlined subroutines.
7941         (lookup_prefix_sym): Pass extra argument to the above.
7942         (find_function_symbols): Likewise.
7943         (add_matching_symbols_to_info): Likewise.
7944         * NEWS: Mention that GDB can now set breakpoints on inlined
7945         functions.
7946
7947 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7948
7949         * p-typeprint.c (pascal_type_print_method_args):
7950         Fix display of parameter of methods.
7951
7952 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7953
7954         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7955         Add missing prototype.
7956
7957 2012-03-16  Yao Qi  <yao@codesourcery.com>
7958             Jan Kratochvil  <jan.kratochvil@redhat.com>
7959
7960         Fix false compilation warning.
7961         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7962
7963 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
7964             Pedro Alves  <pedro@codesourcery.com>
7965
7966         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7967         (arm_register_g_packet_guesses): New function.
7968         (arm_gdbarch_init): Don't force a target description with
7969         registers when the executable is detected as M-profile.  Instead
7970         set gdbarch->tdep->is_m.  Register `g' packet guesses.
7971         (_initialize_arm_tdep): Initialize the new target description.
7972         * features/arm-with-m-fpa-layout.xml: New description.
7973         * features/arm-with-m-fpa-layout.c: New, generated.
7974
7975 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
7976
7977         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7978         Update function description.
7979         (insert_bp_location): Do not wipe bl->target_info out.
7980         * mem-break.c: #include "gdb_string.h".
7981         (default_memory_insert_breakpoint): Do not call target_read_memory
7982         with a pointer to the breakpoint's shadow_contents buffer.  Use
7983         a local buffer instead.
7984         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7985
7986 2012-03-15  Tom Tromey  <tromey@redhat.com>
7987
7988         * NEWS: Mention "info vtbl", not "info vtable".
7989         * cp-support.c (info_vtbl_command): Fix comment.
7990         (_initialize_cp_support): Fix text.
7991
7992 2012-03-15  Tom Tromey  <tromey@redhat.com>
7993
7994         * cp-valprint.c (cp_print_value_fields): Use
7995         print_function_pointer_address for vtable slot.
7996
7997 2012-03-15  Tom Tromey  <tromey@redhat.com>
7998
7999         * gnu-v3-abi.c (struct value_and_voffset): New.
8000         (hash_value_and_voffset, eq_value_and_voffset)
8001         (compare_value_and_voffset, compute_vtable_size)
8002         (print_one_vtable, gnuv3_print_vtable): New functions.
8003         (init_gnuv3_ops): Initialize 'print_vtable' field.
8004         * cp-support.c (info_vtbl_command): New function.
8005         (_initialize_cp_support): Add "info vtbl".
8006         * cp-abi.h (cplus_print_vtable): Declare.
8007         (struct cp_abi_ops) <print_vtable>: New field.
8008         * cp-abi.c (cplus_print_vtable): New function.
8009         * NEWS: Update.
8010
8011 2012-03-15  Tom Tromey  <tromey@redhat.com>
8012
8013         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8014         iterate_over_symbols.
8015
8016 2012-03-14  Doug Evans  <dje@google.com>
8017
8018         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8019         DW_OP_GNU_parameter_ref.
8020
8021 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8022
8023         Fix double prompt of 'interpreter-exec mi'.
8024         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8025         (mi_interpreter_resume): use it.
8026         (mi_execute_command_input_handler): New function.
8027         * mi/mi-main.c (mi_execute_command): Move prompt printing to
8028         mi_execute_command_input_handler.
8029
8030 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8031
8032         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8033         prototype.
8034         (darwin_debug_port_info): Make static.
8035         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8036         * machoread.c (_initialize_machoread): Add prototype.
8037         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8038         (i386_darwin_set_control, i386_darwin_get_control)
8039         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8040         i386_darwin_get_status, i386_darwin_get_control):
8041         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8042
8043 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8044
8045         * ax-gdb.c (gen_usual_unary): Remove special handling of
8046         enum and bool types.
8047
8048 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8049
8050         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8051
8052 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8053
8054         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8055
8056 2012-03-13  Chris January  <chris.january@allinea.com>
8057
8058         * aix-thread.c (fill_sprs): Store the floating point registers
8059         at the correct offsets into vals.
8060
8061 2012-03-13  Doug Evans  <dje@google.com>
8062
8063         * NEWS: Mention symbol-reloading has been deleted.
8064         * symfile.c (symbol_reloading): Delete.
8065         (show_symbol_reloading): Delete.
8066         (_initialize_symfile): Delete set/show symbol-reloading.
8067
8068         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8069         read_in_chain until we have successfully read it in.
8070         (load_full_comp_unit): Ditto.
8071         (read_signatured_type): Add comment.
8072
8073 2012-03-13  Chris January  <chris.january@allinea.com>
8074
8075         * stabsread.c (fix_common_block): Change type of valu argument
8076         to CORE_ADDR.
8077
8078 2012-03-13  Chris January  <chris.january@allinea.com>
8079
8080         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8081         instruction.
8082
8083 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8084
8085         * common/linux-procfs.c (linux_proc_get_int): New, from
8086         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8087         field.
8088         (linux_proc_get_tgid): Only call linux_proc_get_int.
8089         (linux_proc_get_tracerpid): New.
8090         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8091         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8092         linux_proc_pid_has_state.
8093         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8094         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8095         (linux_ptrace_attach_warnings): New.
8096         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8097         New declaration.
8098         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8099         (linux_nat_attach): New variables ex, buffer, message and message_s.
8100         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8101
8102 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8103
8104         * Makefile.in (linux-ptrace.o): New.
8105         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8106         from linux-nat.c.
8107         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8108         * common/linux-ptrace.c: New file.
8109         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8110         * config/arm/linux.mh: Likewise.
8111         * config/i386/linux.mh: Likewise.
8112         * config/i386/linux64.mh: Likewise.
8113         * config/ia64/linux.mh: Likewise.
8114         * config/m32r/linux.mh: Likewise.
8115         * config/m68k/linux.mh: Likewise.
8116         * config/mips/linux.mh: Likewise.
8117         * config/pa/linux.mh: Likewise.
8118         * config/powerpc/linux.mh: Likewise.
8119         * config/powerpc/ppc64-linux.mh: Likewise.
8120         * config/powerpc/spu-linux.mh: Likewise.
8121         * config/s390/s390.mh: Likewise.
8122         * config/sparc/linux.mh: Likewise.
8123         * config/sparc/linux64.mh: Likewise.
8124         * config/xtensa/linux.mh: Likewise.
8125         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8126         common/linux-procfs.c.
8127         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8128
8129 2012-03-13  Hui Zhu  <teawater@gmail.com>
8130             Pedro Alves  <palves@redhat.com>
8131
8132         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8133         CREATE_BREAKPOINT_FLAGS_INSERTED.
8134         (create_breakpoint_sal, create_breakpoints_sal)
8135         (base_breakpoint_create_breakpoints_sal)
8136         (tracepoint_create_breakpoints_sal)
8137         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8138         down.
8139         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8140         (ftrace_command, strace_command): Adjust.
8141         (create_tracepoint_from_upload): Pass
8142         CREATE_BREAKPOINT_FLAGS_INSERTED.
8143         * breakpoint.h (enum breakpoint_create_flags): New.
8144         (create_breakpoint): New flags parameter.
8145         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8146         * python/py-breakpoint.c (bppy_init): Adjust.
8147         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8148         * spu-tdep.c (spu_catch_start): Adjust.
8149
8150 2012-03-13  Pedro Alves  <palves@redhat.com>
8151             Hui Zhu  <teawater@gmail.com>
8152             Yao Qi  <yao@codesourcery.com>
8153
8154         * remote.c (struct remote_state): New field `starting_up'.
8155         (remote_start_remote): Set and clear it.
8156         (remote_can_download_tracepoint): If starting up, return false.
8157
8158 2012-03-13  Yao Qi  <yao@codesourcery.com>
8159
8160         * inferior.h (struct inferior): Remove fields any_syscall_count,
8161         syscalls_counts and total_syscalls_count.  Move them to new
8162         struct catch_syscall_inferior_data in breakpoint.c.
8163         * breakpoint.c: Call DEF_VEC_I(int).
8164         (struct catch_syscall_inferior_data): New.
8165         (get_catch_syscall_inferior_data): New.
8166         (catch_syscall_inferior_data_cleanup): New.
8167         (insert_catch_syscall): Update to access data in
8168         struct catch_syscall_inferior_data.
8169         (insert_catch_syscall): Likewise.
8170         (remove_catch_syscall): Likewise.
8171         (remove_catch_syscall): Likewise.
8172         (is_syscall_catchpoint_enabled): Likewise.
8173         (add_catch_command): Likewise.
8174         (_initialize_breakpoint): Register cleanup.
8175         * breakpoint.h: Removed DEF_VEC_I(int).
8176         * dwarf2loc.c: Call DEF_VEC_I(int).
8177         * mi/mi-main.c: Likewise.
8178
8179 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8180
8181         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8182
8183 2012-03-12  Chris January  <chris.january@allinea.com>
8184
8185         * aix-thread.c (_initialize_aix_thread): Add prototype.
8186         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8187         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8188
8189 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8190
8191         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8192         include of "amd64-nat.h".
8193
8194 2012-03-12  Tom Tromey  <tromey@redhat.com>
8195
8196         * buildsym.c (record_pending_block): Now static.
8197         * buildsym.h: (record_pending_block): Remove.
8198
8199 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8200
8201         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8202
8203 2012-03-09  Tom Tromey  <tromey@redhat.com>
8204
8205         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8206         producer_is_gxx_lt_4_6>: New fields.
8207         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8208
8209 2012-03-09  Tom Tromey  <tromey@redhat.com>
8210
8211         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8212
8213 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8214
8215         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8216         prototype.
8217
8218 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8219
8220         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8221
8222 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8223
8224         Fix -Wmissing-prototypes build.
8225         * arm-linux-nat.c (get_thread_id): Make it static.
8226         * xtensa-linux-nat.c (get_thread_id): Likewise.
8227
8228 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8229
8230         * server.c (process_point_options): If a conditional expression
8231         is found, only print a message if remote_debug is nonzero.
8232
8233 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8234
8235         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8236         of internal error for unknown/unsupported types.
8237
8238 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8239
8240         Fix CU relative vs. absolute DIE offsets.
8241         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8242         offset to offset_in_cu.
8243         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8244         TYPE_OFFSET.
8245         (dwarf2_fetch_die_location_block): Rename parameter offset to
8246         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8247
8248 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8249
8250         * libunwind-frame.c: Rename to ...
8251         * ia64-libunwind-tdep.c: ... here.
8252         * libunwind-frame.h: Rename to ...
8253         * ia64-libunwind-tdep.h: ... here.
8254         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8255         ia64-libunwind-tdep.h.
8256         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8257         * README (--with-libunwind): Rename to ...
8258         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8259         * config.in: Regenerate.
8260         * configure: Regenerate.
8261         * configure.ac: New option --with-libunwind-ia64, make the
8262         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8263         Remove AC_DEFINE for HAVE_LIBUNWIND.
8264         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8265         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8266         Rename libunwind-frame in the general comment.
8267         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8268         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8269         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8270         the general comment.
8271         * ia64-tdep.c: Rename libunwind-frame.h #include to
8272         ia64-libunwind-tdep.h.
8273         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8274         (ia64_libunwind_descr): Rename libunwind-frame to
8275         ia64-libunwind-tdep in these function comments.
8276         * ia64-tdep.h: Rename libunwind-frame.h #include to
8277         ia64-libunwind-tdep.h.
8278         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8279         ia64-libunwind-tdep in that data comment.
8280
8281 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8282
8283         * libunwind-frame.h (struct frame_unwind): New declaration.
8284
8285 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8286
8287         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8288         "set breakpoint condition-evaluation" command.
8289
8290 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8291
8292         * sparc-stub.c: Move to stubs/
8293         * sh-stub.c: Likewise.
8294         * m68k-stub.c: Likewise.
8295         * m32r-stub.c: Likewise.
8296         * i386-stub.c: Likewise.
8297
8298 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8299
8300         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8301         linux_get_siginfo_type.
8302
8303         * m68klinux-nat.c: Include "gdb_proc_service.h".
8304         (PTRACE_GET_THREAD_AREA): Define.
8305         (ps_get_thread_area): New function.
8306
8307 2012-03-08  Yao Qi  <yao@codesourcery.com>
8308
8309         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8310         `xsnprintf'.
8311         (remote_query_attached): Likewise.
8312         (remote_static_tracepoint_marker_at): Likewise.
8313         (remote_set_permissions): Likewise.
8314         (remote_detach_1, extended_remote_attach_1): Likewise.
8315         (send_g_packet, remote_vkill): Likewise.
8316         (extended_remote_disable_randomization): Likewise.
8317         (remote_add_target_side_condition): Likewise.
8318         (remote_insert_breakpoint): Likewise.
8319         (remote_remove_breakpoint): Likewise.
8320         (remote_insert_watchpoint): Likewise.
8321         (remote_remove_watchpoint): Likewise.
8322         (remote_insert_hw_breakpoint): Likewise.
8323         (remote_insert_hw_breakpoint): Likewise.
8324         (remote_remove_hw_breakpoint): Likewise.
8325         (remote_download_command_source): Likewise.
8326         (remote_download_tracepoint): Likewise.
8327         (remote_download_trace_state_variable): Likewise.
8328         (remote_disable_tracepoint): Likewise.
8329         (remote_trace_set_readonly_regions): Likewise.
8330         (remote_get_tracepoint_status): Likewise.
8331         (remote_trace_find): Likewise.
8332         (remote_get_trace_state_variable_value): Likewise.
8333         (remote_set_disconnected_tracing): Likewise.
8334         (remote_set_circular_trace_buffer): Likewise.
8335         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8336         (remote_use_agent): Likewise.
8337         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8338         Update callers.
8339
8340 2012-03-07  Pedro Alves  <palves@redhat.com>
8341
8342         * NEWS: Mention QProgramSignals.
8343         * inferior.h (update_signals_program_target): Declare.
8344         * infrun.c: (update_signals_program_target): New.
8345         (handle_command): Update the target of the new program signals
8346         array changes.
8347         * remote.c (PACKET_QProgramSignals): New enum.
8348         (last_program_signals_packet): New global.
8349         (remote_program_signals): New.
8350         (remote_start_remote): Update the target with the program signals
8351         list.
8352         (remote_protocol_features): Add entry for QPassSignals.
8353         (remote_open_1): Free anc clear last_program_signals_packet.
8354         (init_remote_ops): Install remote_program_signals.
8355         * target.c (update_current_target): Adjust.
8356         (target_program_signals): New.
8357         * target.h (struct target_ops) <to_program_signals>: New field.
8358         (target_program_signals): Declare.
8359
8360 2012-03-07  Pedro Alves  <palves@redhat.com>
8361
8362         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8363         extensions.
8364
8365 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8366
8367         * m68klinux-nat.c (getregs_supplies): Make static.
8368         (getfpregs_supplies): Likewise.
8369         (have_ptrace_getregs): Likewise.
8370
8371 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8372
8373         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8374         in call to get_die_type_at_offset.
8375
8376 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8377
8378         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8379         * mi/mi-cmd-disas.c: Ditto.
8380         * mi/mi-cmd-env.c: Ditto.
8381         * mi/mi-cmd-file.c: Ditto.
8382         * mi/mi-cmd-stack.c: Ditto.
8383         * mi/mi-cmd-target.c: Ditto.
8384         * mi/mi-cmd-var.c: Ditto.
8385         * mi/mi-cmds.c: Ditto.
8386         * mi/mi-cmds.h: Ditto.
8387         * mi/mi-console.c: Ditto.
8388         * mi/mi-getopt.c: Ditto.
8389         * mi/mi-getopt.h: Ditto.
8390         * mi/mi-interp.c: Ditto.
8391         * mi/mi-main.c: Ditto.
8392         * mi/mi-out.c: Ditto.
8393         * mi/mi-parse.c: Ditto.
8394         * mi/mi-parse.h: Ditto.
8395         * mi/mi-symbol-cmds.c: Ditto.
8396
8397         * mi/mi-getopt.h: Move mi_opt struct up.
8398         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8399         return.
8400         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8401
8402 2012-03-06  Tom Tromey  <tromey@redhat.com>
8403
8404         * proc-service.c (ps_pglobal_lookup): Set the current program
8405         space.
8406
8407 2012-03-06  Pedro Alves  <palves@redhat.com>
8408
8409         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8410
8411 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8412
8413         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8414
8415 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8416
8417         Code cleanup.
8418         * common/linux-osdata.c (linux_common_core_of_thread): New function
8419         comment.
8420         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8421         call by linux_common_core_of_thread.
8422         (linux_nat_core_of_thread_1): Remove.
8423         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8424         * linux-thread-db.c: Include linux-osdata.h.
8425         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8426         linux_common_core_of_thread.
8427
8428 2012-03-05  Tom Tromey  <tromey@redhat.com>
8429
8430         * value.c (value_primitive_field): Don't fetch contents for
8431         non-virtual bases.
8432
8433 2012-03-05  Tom Tromey  <tromey@redhat.com>
8434
8435         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8436
8437 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8438
8439         * s390-nat.c: Include "gregset.h".
8440
8441 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8442
8443         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8444         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8445         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8446         load also LIBUNWIND_SO_7.
8447
8448 2012-03-05  Pedro Alves  <palves@redhat.com>
8449
8450         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8451         is not NULL, and remove resulting dead code.
8452
8453 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8454
8455         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8456         prologue to sh_analyze_prologue.
8457         (sh_analyze_prologue): Make better use of such an upper limit, and
8458         generally be more cautious about accessing memory.
8459
8460 2012-03-05  Tom Tromey  <tromey@redhat.com>
8461
8462         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8463         _initialize_ia64_hpux_tdep.
8464
8465 2012-03-05  Pedro Alves  <palves@redhat.com>
8466
8467         PR gdb/13766
8468
8469         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8470         the register state is clear, supply explicit zero, instead of
8471         marking the register unavailable.
8472
8473 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8474
8475         * NEWS: Mention OpenVMS ia64 new target.
8476
8477 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8478
8479         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8480         (ia64_unw_accessors, ia64_unw_rse_accessors)
8481         (ia64_libunwind_descr): Declare.
8482         * ia64-vms-tdep.c: New file.
8483         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8484         (ia64_libunwind_descr): Make them public.
8485         * configure.tgt: Add ia64-*-*vms*.
8486         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8487         (ALLDEPFILES): Add ia64-vms-tdep.c
8488
8489 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8490
8491         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8492         * remote.c (PACKET_qXfer_uib): New enum value.
8493         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8494         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8495         (_initialize_remote): Call add_packet_config_cmd for
8496         xfer:uib packet.
8497
8498 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8499
8500         * osabi.c (gdb_osabi_names): Add OpenVMS.
8501         (generic_elf_osabi_sniffer): Likewise.
8502         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8503
8504 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8505
8506         Removed unused code.
8507         * libunwind-frame.c (libunwind_frame_unwind)
8508         (libunwind_frame_base_address): Remove.
8509         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8510
8511 2012-03-04  Yao Qi  <yao@codesourcery.com>
8512
8513         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8514         remove trailing new line.
8515         (agent_run_command, agent_run_command): Add _ markup.
8516         (agent_capability_check): Likewise.
8517
8518 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8519
8520         * breakpoint.c (set_condition_evaluation_mode): Set
8521         CONDITION_EVALUATION_MODE unconditionally.
8522
8523 2012-03-03  Yao Qi  <yao@codesourcery.com>
8524
8525         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8526         * common/agent.h: Update declaration.
8527         * inf-child.c (inf_child_use_agent): New.
8528         (inf_child_can_use_agent): New.
8529         (inf_child_target): Initialize fields `to_use_agent'
8530         and `to_can_use_agent'.
8531         * agent.c (agent_new_objfile): New.
8532         (_initialize_agent): Add agent_new_objfile to new_objfile
8533         observer.
8534
8535         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8536         New.
8537         (linux_target_install_ops): Initialize field
8538         `to_static_tracepoint_markers_by_strid'.
8539         * remote.c (free_current_marker): Move it to ...
8540         * tracepoint.c (free_current_marker): ... here.  New.
8541         (cleanup_target_stop): New.
8542         * tracepoint.h: Declare free_current_marker.
8543         * NEWS: Add one entry about `info static-tracepoint-marker'.
8544
8545 2012-03-03  Yao Qi  <yao@codesourcery.com>
8546
8547         * common/agent.c (agent_loaded_p): New.
8548         (agent_look_up_symbols): New global.
8549         * common/agent.h: Declare agent_loaded_p.
8550
8551 2012-03-03  Yao Qi  <yao@codesourcery.com>
8552
8553         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8554         (agent_capability_check, agent_capability_invalidate): New.
8555         (symbol_list): New array element.
8556         * common/agent.h (enum agent_capa): New.
8557         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8558
8559 2012-03-03  Yao Qi  <yao@codesourcery.com>
8560
8561         * target.h (struct target_ops) <to_use_agent>: New field.
8562         (struct target_ops) <to_can_use_agent>: New field.
8563         (target_use_agent, target_can_use_agent): New macro.
8564         * target.c (update_current_target): Update.
8565         * remote.c: New enum `PACKET_QAgent'.
8566         (remote_protocol_features): Add a new element.
8567         (remote_use_agent, remote_can_use_agent): New.
8568         (init_remote_ops): Initialize field `can_use_agent' with
8569         remote_can_use_agent.  Intiailize field `use_agent' with
8570         remote_use_agent.
8571         * common/agent.c (use_agent): New global.
8572         * common/agent.h: Declare it.
8573         * tracepoint.c (info_static_tracepoint_markers_command): Add
8574         comment.
8575         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8576         (COMMON_OBS): Add common/agent.o and agent.o
8577         (common-agent.o): New rule.
8578         * agent.c: New.
8579
8580 2012-03-03  Yao Qi  <yao@codesourcery.com>
8581
8582         * common/agent.c: New.
8583         * common/agent.h: New.
8584         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8585         AC_CHECK_HEADERS.
8586         * configure, configh.in: Regenerated.
8587
8588 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8589
8590         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8591         unless it exists for this architecture.
8592
8593 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8594
8595         * language.h (struct language_defn): New "method" la_read_var_value.
8596         * findvar.c: #include "language.h".
8597         (default_read_var_value): Renames read_var_value.  Rewrite
8598         function description.
8599         (read_var_value): New function.
8600         * value.h (default_read_var_value): Add prototype.
8601         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8602         New functions.
8603         (ada_language_defn): Add entry for la_read_var_value.
8604         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8605         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8606         language_defn structures to add entry for new la_read_var_value
8607         field.
8608
8609 2012-03-02  Tom Tromey  <tromey@redhat.com>
8610             Pedro Alves  <palves@redhat.com>
8611
8612         PR breakpoints/13776:
8613         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8614         breakpoints.
8615         (delete_longjmp_breakpoint_at_next_stop): New.
8616         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8617         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8618         before deleting the inferior.  Add comments.
8619         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8620         breakpoints immediately, but only on next stop.  Move that code
8621         next to where we mark other breakpoints for deletion.
8622
8623 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8624
8625         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8626         marker.
8627         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8628         violation.
8629
8630 2012-03-02  Pedro Alves  <palves@redhat.com>
8631
8632         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8633
8634 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8635
8636         Fix -Wmissing-prototypes build.
8637         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8638         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8639         (gdbsim_has_memory): Likewise.
8640
8641 2012-03-02  Yao Qi  <yao@codesourcery.com>
8642
8643         Fix -Wmissing-prototypes build.
8644         * charset.c (phony_iconv_open): Make static.
8645         (phony_iconv_close, phony_iconv): Likewise.
8646         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8647         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8648         prototype.
8649         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8650         * ser-mingw.c (create_select_thread): Make static.
8651         * windows-termcap.c (tgetent): New prototype.
8652         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8653
8654 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8655
8656         Fix -Wmissing-prototypes build.
8657         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8658         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8659         (_initialize_loadable): New prototypes.
8660
8661 2012-03-02  Doug Evans  <dje@google.com>
8662
8663         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8664         abbrev table, read_comp_unit will do it.
8665
8666 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8667
8668         Fix -Wmissing-prototypes build.
8669         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8670         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8671         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8672         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8673         (_initialize_arm_symbian_tdep): New prototype.
8674         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8675         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8676         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8677         static.
8678         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8679         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8680         prototype.
8681         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8682         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8683         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8684         static.
8685         * moxie-tdep.c (moxie_process_record): Likewise.
8686         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8687         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8688         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8689         (_initialize_rl78_tdep): New prototype.
8690         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8691         (_initialize_rx_tdep): New prototype.
8692         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8693         (_initialize_darwin_solib): New prototype.
8694         * solib-spu.c: Include solib-spu.h.
8695         (_initialize_spu_solib): New prototype.
8696         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8697         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8698         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8699         (tic6x_software_single_step): Make it static.
8700         (_initialize_tic6x_tdep): New prototype.
8701
8702 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8703
8704         Fix -Wmissing-prototypes build.
8705         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8706         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8707
8708 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8709
8710         Fix -Wmissing-prototypes build.
8711         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8712         (frv_have_stopped_data_address): Remove.
8713
8714 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8715
8716         Fix -Wmissing-prototypes build.
8717         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8718         * sh-tdep.c: Include sh64-tdep.h.
8719         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8720         * sh64-tdep.c: Include sh64-tdep.h.
8721         * sh64-tdep.h: New file.
8722
8723 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8724
8725         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8726
8727 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8728
8729         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8730         sp_regnum once the gdbarch_init_osabi hook has been called.
8731
8732 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8733
8734         * mips-tdep.c (mips32_bc1_pc): New function.
8735         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8736         BPOSGE32 and BPOSGE64 instructions.
8737         (deal_with_atomic_sequence): Likewise.
8738         (mips32_instruction_has_delay_slot): Likewise.
8739
8740 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8741             Chris Dearman  <chris@mips.com>
8742             Maciej W. Rozycki  <macro@codesourcery.com>
8743             Joseph Myers  <joseph@codesourcery.com>
8744
8745         * features/mips-dsp.xml: New file.
8746         * features/mips64-dsp.xml: New file.
8747         * features/mips-dsp-linux.xml: New file.
8748         * features/mips64-dsp-linux.xml: New file.
8749         * features/Makefile (WHICH): Add mips-dsp-linux and
8750         mips64-dsp-linux.
8751         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8752         * features/mips-dsp-linux.c: New file.
8753         * features/mips64-dsp-linux.c: New file.
8754         * regformats/mips-dsp-linux.dat: New file.
8755         * regformats/mips64-dsp-linux.dat: New file.
8756         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8757         registers.
8758         (mips64_linux_register_addr): Likewise.
8759         (mips64_linux_regsets_fetch_registers): Likewise.
8760         (mips64_linux_regsets_store_registers): Likewise.
8761         (mips64_linux_fetch_registers): Update call to
8762         mips64_linux_regsets_fetch_registers.
8763         (mips64_linux_store_registers): Update call to
8764         mips64_linux_regsets_store_registers.
8765         (mips_linux_read_description): Probe for DSP registers.
8766         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8767         and initialize_tdesc_mips64_dsp_linux.
8768         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8769         Remove padding of no longer used embedded register slots.
8770         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8771         (MIPS_RESTART_REGNUM): Redefine enum value.
8772         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8773         strings.
8774         (mips_tx39_reg_names): Likewise.
8775         (mips_linux_reg_names): New array of register names for Linux
8776         targets.
8777         (mips_register_name): Check for a null pointer in
8778         mips_processor_reg_names and return an empty string.
8779         (mips_register_type): Exclude embedded registers for the IRIX
8780         and Linux ABIs.
8781         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8782         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8783         DSP registers.
8784         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8785         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8786         (mips_gdbarch_init): Likewise.  Initialize internal register
8787         indices for the Linux ABI.  Use dynamic numbers to refer to
8788         registers, as applicable, while parsing the target description.
8789         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8790
8791 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8792
8793         * frame.h (read_frame_register_unsigned): Fix typo in function
8794         description.
8795
8796 2012-03-01  Pedro Alves  <palves@redhat.com>
8797
8798         * jit-reader.in [!__cplusplus]
8799         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8800
8801 2012-03-01  Pedro Alves  <palves@redhat.com>
8802
8803         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8804         * configure: Regenerate.
8805
8806 2012-03-01  Pedro Alves  <palves@redhat.com>
8807
8808         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8809         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8810         (ftrace_command, strace_command): Make static.
8811         * d-lang.c (_initialize_d_language): Declare.
8812         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8813         * dwarf2loc.c (_initialize_dwarf2loc):
8814         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8815         * exec.c (exec_get_section_table): Make static.
8816         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8817         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8818         * inferior.c (remove_inferior_command, add_inferior_command)
8819         (clone_inferior_command): Make static.
8820         * linux-nat.c (linux_nat_thread_address_space)
8821         (linux_nat_core_of_thread): Make static.
8822         * linux-tdep.c (_initialize_linux_tdep): Declare.
8823         * objc-lang.c (_initialize_objc_lang): Declare.
8824         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8825         Make static.
8826         (_initialize_opencl_language): Declare.
8827         * record.c (_initialize_record): Declare.
8828         * remote.c (demand_private_info, remote_get_tib_address)
8829         (remote_supports_cond_tracepoints)
8830         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8831         Make static.
8832         * skip.c (_initialize_step_skip): Declare.
8833         * symtab.c (skip_prologue_using_lineinfo): Make static.
8834         * tracepoint.c (delete_trace_state_variable)
8835         (trace_variable_command, delete_trace_variable_command)
8836         (get_uploaded_tsv, find_matching_tracepoint_location)
8837         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8838         Make static.
8839         * value.c (pack_unsigned_long): Make static.
8840         * varobj.c (varobj_ensure_python_env): Make static.
8841         * windows-tdep.c (_initialize_windows_tdep): Declare.
8842         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8843
8844 2012-03-01  Pedro Alves  <palves@redhat.com>
8845
8846         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8847         gdbarch parameter.
8848         (linux_init_abi): Install it as has_shared_address_space gdbarch
8849         callback.
8850
8851 2012-03-01  Pedro Alves  <palves@redhat.com>
8852
8853         * observer.c (observer_test_first_notification_function)
8854         (observer_test_second_notification_function)
8855         (observer_test_third_notification_function): Add declarations.
8856
8857 2012-03-01  Pedro Alves  <palves@redhat.com>
8858
8859         * common/signals.c (default_target_signal_to_host)
8860         (default_target_signal_from_host): Move ...
8861         * arch-utils.c: ... here.
8862         * arch-utils.h (default_target_signal_to_host)
8863         (default_target_signal_from_host): Declare.
8864
8865         * common/signals.c (target_signal_from_command): Move ...
8866         * infrun.c: ... here.
8867         * inferior.h (target_signal_from_command): Declare.
8868         * target.h (target_signal_from_command)
8869         (default_target_signal_from_host, default_target_signal_to_host):
8870         Delete declarations.
8871
8872         * common/signals.c (_initialize_signals): Delete.
8873
8874 2012-03-01  Pedro Alves  <palves@redhat.com>
8875
8876         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8877         both __cplusplus and !__cplusplus.
8878
8879 2012-03-01  Pedro Alves  <palves@redhat.com>
8880
8881         * psymtab.c (find_and_open_source): Delete declaration.
8882         * source.c (find_and_open_source): Move comment ...
8883         * source.h (find_and_open_source): ... to this new declaration.
8884
8885 2012-03-01  Pedro Alves  <palves@redhat.com>
8886
8887         * inline-frame.c: Include inline-frame.h.
8888
8889 2012-03-01  Pedro Alves  <palves@redhat.com>
8890
8891         * tui/tui-data.c (set_gen_win_origin): Delete.
8892         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8893         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8894
8895 2012-03-01  Pedro Alves  <palves@redhat.com>
8896
8897         * remote.c (encode_actions): Delete declaration.
8898         * tracepoint.c (encode_actions): Make extern.
8899         * tracepoint.h (encode_actions): Declare.
8900
8901 2012-03-01  Pedro Alves  <palves@redhat.com>
8902
8903         * python/py-breakpoint.c: Include python.h.
8904         * python/py-continueevent.c (create_continue_event_object): Make
8905         static.
8906         * python/py-lazy-string.c (stpy_get_type): Make static.
8907         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8908         Make static.
8909         * python/py-utils.c (unicode_to_target_python_string): Make
8910         static.
8911         * python/py-value.c: Include python.h.
8912
8913 2012-03-01  Pedro Alves  <palves@redhat.com>
8914
8915         * inferior.c (delete_threads_of_inferior): Delete.
8916
8917 2012-03-01  Pedro Alves  <palves@redhat.com>
8918
8919         Import fallback definitions from glibc.
8920
8921         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8922         ps_prochandle): Forward declare.
8923         (ps_err_e): Use glibc's comments.
8924         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8925         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8926         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8927         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8928         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8929         (struct ps_prochandle): Adjust comment.
8930
8931 2012-03-01  Pedro Alves  <palves@redhat.com>
8932
8933         * ada-lang.c (ada_modulus_from_name): Delete.
8934         * ada-lex.l (lexer_init): Make static.
8935
8936 2012-03-01  Pedro Alves  <palves@redhat.com>
8937
8938         PR gdb/13767
8939
8940         * frame.c (read_frame_register_unsigned): New.
8941         * frame.h (read_frame_register_unsigned): Declare.
8942         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8943         Handle it.
8944         (print_i387_control_word): New parameter `control_p'.  Handle it.
8945         (i387_print_float_info): Handle unavailable float registers.
8946
8947 2012-03-01  Keith Seitz  <keiths@redhat.com>
8948
8949         * linespec.c (decode_line_2): Sort the list of methods
8950         alphabetically before presenting the user with a selection
8951         menu.
8952
8953 2012-03-01  Doug Evans  <dje@google.com>
8954
8955         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8956         has_namespace_info.
8957         (dwarf2_read_abbrevs): Remove corresponding initialization.
8958
8959 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
8960
8961         * NEWS: Mention new python command class gdb.COMMAND_USER.
8962         * cli/cli-cmds.c (show_user): Print error when used on a python
8963         command.
8964         (init_cli_cmds): Update documentation strings for "show user" and
8965         "set/show max-user-call-depth" to clarify that it does not apply to
8966         python commands.
8967         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8968         error check.
8969         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8970         gdb python api.
8971         * top.c (execute_command): Only execute a user-defined command as a
8972         legacy macro if c->user_commands is set.
8973
8974 2012-03-01  Tom Tromey  <tromey@redhat.com>
8975
8976         * valprint.h (struct generic_val_print_decorations): New.
8977         (generic_val_print): Declare.
8978         * valprint.c (generic_val_print): New function.
8979         * p-valprint.c (p_decorations): New global.
8980         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8981         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8982         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8983         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8984         * m2-valprint.c (m2_decorations): New global.
8985         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8986         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8987         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8988         TYPE_CODE_ERROR>: Call generic_val_print.
8989         * f-valprint.c (f_decorations): New global.
8990         (f_val_print): Use print_function_pointer_address.
8991         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8992         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8993         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8994         generic_val_print.
8995         * c-valprint.c (c_decorations): New global.
8996         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8997         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8998         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8999         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9000         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9001         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9002         case.
9003
9004 2012-03-01  Tom Tromey  <tromey@redhat.com>
9005
9006         * valprint.c (val_print): Update.
9007         * p-valprint (pascal_val_print): Return void.
9008         * p-lang.h (pascal_val_print): Return void.
9009         * m2-valprint.c (m2_val_print): Return void.
9010         * m2-lang.h (m2_val_print): Return void.
9011         * language.h (struct language_defn) <la_val_print>: Return void.
9012         * language.c (unk_lang_val_print): Return void.
9013         * jv-valprint.c (java_val_print): Return void.
9014         * jv-lang.h (java_val_print): Return void.
9015         * f-valprint.c (f_val_print): Return void.
9016         * f-lang.h (f_val_print): Return void.
9017         * d-valprint.c (d_val_print): Return void.
9018         (dynamic_array_type): Update.
9019         * d-lang.h (d_val_print): Return void.
9020         * c-valprint.c (c_val_print): Return void.
9021         * c-lang.h (c_val_print): Return void.
9022         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9023         void.
9024         * ada-lang.h (ada_val_print): Return void.
9025
9026 2012-03-01  Tom Tromey  <tromey@redhat.com>
9027
9028         * value.h (val_print): Return void.
9029         * valprint.c (val_print): Return void.
9030
9031 2012-03-01  Tom Tromey  <tromey@redhat.com>
9032
9033         * value.h (common_val_print): Return void.
9034         * valprint.c (common_val_print): Return void.
9035
9036 2012-03-01  Tom Tromey  <tromey@redhat.com>
9037
9038         * value.h (value_print): Return void.
9039         * valprint.c (value_print): Return void.
9040         * p-valprint.c (pascal_value_print): Return void.
9041         * p-lang.h (pascal_value_print): Return void.
9042         * language.h (struct language_defn) <la_value_print>: Return
9043         void.
9044         * language.c (unk_lang_value_print): Return void.
9045         * jv-valprint.c (java_value_print): Return void.
9046         * jv-lang.h (java_value_print): Return void.
9047         * f-valprint.c (c_value_print): Don't declare.
9048         Include c-lang.h.
9049         * c-valprint.c (c_value_print): Return void.
9050         * c-lang.h (c_value_print): Return void.
9051         * ada-valprint.c (ada_value_print): Return void.
9052         * ada-lang.h (ada_value_print): Return void.
9053
9054 2012-03-01  Tom Tromey  <tromey@redhat.com>
9055
9056         * value.c (value_primitive_field): Handle virtual base classes.
9057
9058 2012-03-01  Tom Tromey  <tromey@redhat.com>
9059
9060         * gdbtypes.h (struct vbase): Remove.
9061
9062 2012-03-01  Tom Tromey  <tromey@redhat.com>
9063
9064         * c-valprint.c (print_function_pointer_address): Move...
9065         * valprint.c: ... here.  Make non-static.
9066         * m2-valprint.c (print_function_pointer_address): Remove.
9067         * valprint.h (print_function_pointer_address): Declare.
9068
9069 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9070
9071         * NEWS: Document the fact that one can provide a condition when
9072         creating an Ada exception catchpoint.
9073
9074 2012-03-01  Tom Tromey  <tromey@redhat.com>
9075
9076         * valprint.c (val_print_type_code_flags): Fix placement of
9077         trailing brace.
9078
9079 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9080
9081         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9082         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9083         environment variable before calling update-copyright.
9084
9085 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9086
9087         * gnulib/extra/update-copyright: Update to the latest from
9088         gnulib's git repository.
9089         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9090         variable to 2 instead of 1.
9091
9092 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9093
9094         * varobj.c (c_value_of_variable): Remove dead code.
9095
9096 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9097
9098         * ada-lex.p (processId): Do not modify already encoded IDs.
9099         Update function documentation.
9100
9101 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9102
9103         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9104         "name" with "struct symbol *name_sym".
9105         * ada-exp.y (write_var_or_type): Update call to
9106         ada_find_renaming_symbol.
9107         "name" with "struct symbol *name_sym". Adjust Implementation
9108         accordingly.  Adjust the function documentation.
9109
9110 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9111
9112         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9113         * ada-lang.c (ada_find_any_type): Add advance declaration.
9114         Make static.  Replace ada_find_any_symbol by
9115         ada_find_any_type_symbol.
9116         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9117         Improve function description.  Make static.
9118         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9119         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9120
9121 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9122
9123         * ada-lang.c (struct tag_args): Delete.
9124         (ada_get_tsd_type): Function body moved up in source file.
9125         (ada_tag_name_1, ada_tag_name_2): Delete.
9126         (ada_get_tsd_from_tag): New function.
9127         (ada_tag_name_from_tsd): New function.
9128         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9129         to determine the tag name.
9130
9131 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9132
9133         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9134         declaration.
9135         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9136         function.
9137
9138 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9139
9140         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9141
9142 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9143
9144         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9145         full searches.
9146
9147 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9148
9149         * ada-lang.c (constrained_packed_array_type): If there is a
9150         parallel XA type, use it to determine the array index type.
9151
9152 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9153
9154         * ada-valprint.c (ada_val_print_1): If our value is a reference
9155         to an array descriptor, dereference it before converting it
9156         to a simple array.
9157
9158 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9159
9160         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9161         creating fixed value.
9162         (ada_value_ind, ada_coerce_ref, assign_component)
9163         (ada_evaluate_subexp): Remove call to unwrap_value before
9164         call to ada_to_fixed_value.
9165
9166 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9167
9168         * ada-lang.c (to_fixed_array_type): Set result's type name.
9169
9170 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9171
9172         * ada-lang.c (catch_ada_exception_command_split): Add new
9173         argument cond_string.  Add support for condition at end of
9174         "catch exception" commands.
9175         (ada_decode_exception_location): Add new argument cond_string.
9176         Update call to catch_ada_exception_command_split.
9177         (create_ada_exception_catchpoint): Add new argument cond_string.
9178         Set the breakpoint condition if needed.
9179         (catch_ada_exception_command): Update call to
9180         ada_decode_exception_location.
9181         (ada_decode_assert_location): Add function documentation.
9182         Add support for condition at end of "catch assert" command.
9183         (catch_assert_command): Update calls to ada_decode_assert_location
9184         and create_ada_exception_catchpoint.
9185
9186 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9187
9188         Fix disp-step-syscall.exp: fork: single step over fork.
9189         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9190         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9191         comment, change parameters gdbarch and ptid to regcache.  Remove
9192         parameter regcache, initialize gdbarch from regcache here.
9193         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9194         New functions.
9195         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9196         instead.
9197         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9198         'syscall'.  Make the 'int' check more strict.
9199
9200 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9201
9202         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9203         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9204         (i386_linux_intx80_sysenter_syscall_record): ... here.
9205         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9206         Use the renamed function name.
9207
9208 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9209
9210         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9211         * breakpoint.c (until_break_command): Likewise.
9212         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9213         * infcall.c (call_function_by_hand): Likewise.
9214         * infcmd.c (finish_forward): Likewise.
9215         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9216
9217 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9218
9219         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9220         avoid variable assignments inside condition.
9221
9222 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9223
9224         Fix static analysis issue found by cppcheck.
9225         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9226         uninitialized BUF for size 2.
9227
9228 2012-02-27  Chris Dearman  <chris@mips.com>
9229             Nathan Froyd  <froydnj@codesourcery.com>
9230             Maciej W. Rozycki  <macro@codesourcery.com>
9231
9232         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9233         (mips16_instruction_has_delay_slot): Likewise.
9234         (mips_segment_boundary): Likewise.
9235         (mips_adjust_breakpoint_address): Likewise.
9236         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9237
9238 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9239             Maciej W. Rozycki  <macro@codesourcery.com>
9240
9241         * infrun.c (handle_inferior_event): Don't proceed through
9242         shared library trampolines if stepping at the machine
9243         instruction level.
9244
9245 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9246
9247         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9248         too.
9249
9250 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9251
9252         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9253         (sh_stub_unwind_sniffer): New functions.
9254         (sh_stub_unwind): New variable.
9255         (sh_gdbarch_init): Wire everything.
9256
9257 2012-02-27  Pedro Alves  <palves@redhat.com>
9258
9259         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9260         (linux_nat_post_attach_wait): Adjust to use
9261         linux_proc_pid_is_stopped.
9262         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9263         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9264         based on pid_is_stopped from both linux-nat.c and
9265         gdbserver/linux-low.c, and renamed.
9266
9267 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9268
9269         * remote.c (remote_watchpoint_addr_within_range): New function.
9270         (init_remote_ops): Use it.
9271
9272 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9273
9274         * target.h (target_watchpoint_addr_within_range): Document macro.
9275
9276 2012-02-24  Pedro Alves  <palves@redhat.com>
9277
9278         * stack.c (set_last_displayed_sal): Issue internal_error instead
9279         of warning, and issue it after clearing the last displayed sal.
9280
9281 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9282             Pedro Alves  <palves@redhat.com>
9283
9284         * breakpoint.c (until_break_command): Install breakpoints after
9285         all frame manipulations.
9286
9287 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9288
9289         * remote.c (remote_supports_cond_breakpoints): New forward
9290         declaration.
9291         (remote_add_target_side_condition): New function.
9292         (remote_insert_breakpoint): Add target-side breakpoint
9293         conditional if supported.
9294         (remote_insert_hw_breakpoint): Likewise.
9295         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9296         hook.
9297
9298         * target.c (update_current_target): Inherit
9299         to_supports_evaluation_of_breakpoint_conditions.
9300         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9301
9302         * target.h (struct target_ops)
9303         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9304         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9305
9306         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9307         (condition_evaluation_both, condition_evaluation_auto,
9308         condition_evaluation_host, condition_evaluation_target,
9309         condition_evaluation_enums, condition_evaluation_mode_1,
9310         condition_evaluation_mode): New static globals.
9311         (translate_condition_evaluation_mode): New function.
9312         (breakpoint_condition_evaluation_mode): New function.
9313         (gdb_evaluates_breakpoint_condition_p): New function.
9314         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9315         (mark_breakpoint_modified): New function.
9316         (mark_breakpoint_location_modified): New function.
9317         (set_condition_evaluation_mode): New function.
9318         (show_condition_evaluation_mode): New function.
9319         (bp_location_compare_addrs): New function.
9320         (get_first_location_gte_addr): New helper function.
9321         (set_breakpoint_condition): Free condition bytecode if locations
9322         has become unconditional.  Call mark_breakpoint_modified (...).
9323         (condition_command): Call update_global_location_list (1) for
9324         breakpoints.
9325         (breakpoint_xfer_memory): Use is_breakpoint (...).
9326         (is_breakpoint): New function.
9327         (parse_cond_to_aexpr): New function.
9328         (build_target_condition_list): New function.
9329         (insert_bp_location): Handle target-side conditional
9330         breakpoints and call build_target_condition_list (...).
9331         (update_inserted_breakpoint_locations): New function.
9332         (insert_breakpoint_locations): Handle target-side conditional
9333         breakpoints.
9334         (bpstat_check_breakpoint_conditions): Add comment.
9335         (bp_condition_evaluator): New function.
9336         (bp_location_condition_evaluator): New function.
9337         (print_breakpoint_location): Print information on where the condition
9338         will be evaluated.
9339         (print_one_breakpoint_location): Likewise.
9340         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9341         breakpoint location.
9342         (force_breakpoint_reinsertion): New functions.
9343         (update_global_location_list): Handle target-side breakpoint
9344         conditions.
9345         Reinsert locations that are already inserted if conditions have
9346         changed.
9347         (bp_location_dtor): Free agent expression bytecode.
9348         (disable_breakpoint): Call mark_breakpoint_modified (...).
9349         Call update_global_location_list (...) with parameter 1 for breakpoints.
9350         (disable_command): Call mark_breakpoint_location_modified (...).
9351         Call update_global_location_list (...) with parameter 1 for breakpoints.
9352         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9353         (enable_command): mark_breakpoint_location_modified (...).
9354         (_initialize_breakpoint): Update documentation and add
9355         condition-evaluation breakpoint subcommand.
9356
9357         * breakpoint.h: Include ax.h.
9358         (condition_list): New data structure.
9359         (condition_status): New enum.
9360         (bp_target_info) <cond_list>: New field.
9361         (bp_location) <condition_changed, cond_bytecode>: New fields.
9362         (is_breakpoint): New prototype.
9363
9364 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9365
9366         * remote.c (remote_state) <cond_breakpoints>: New field.
9367         (PACKET_ConditionalBreakpoints): New enum.
9368         (remote_cond_breakpoint_feature): New function.
9369         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9370         (remote_supports_cond_breakpoints): New function.
9371         (_initialize_remote): Add new packet configuration for
9372         target-side conditional breakpoints.
9373
9374 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9375
9376         * NEWS: Mention target-side conditional breakpoint support,
9377         new condition-evaluation breakpoint subcommand and remote
9378         packet extensions.
9379
9380 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9381
9382         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9383         number.
9384
9385 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9386
9387         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9388         (after_prologue): Remove.
9389
9390 2012-02-23  Tom Tromey  <tromey@redhat.com>
9391
9392         * jv-valprint.c (java_val_print): Remove dead code.
9393
9394 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9395
9396         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9397         known_tasks_element and known_tasks_length fields.
9398         (read_known_tasks_array): Change argument type.  Use pointer type
9399         and number of elements from DATA.  Adjust.
9400         (read_known_tasks_list): Likewise.
9401         (get_known_tasks_addr): Remove.
9402         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9403         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9404         type and array length.  Merge former get_known_tasks_addr code.
9405
9406 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9407
9408         PR backtrace/13716
9409         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9410         it after set_momentary_breakpoint.
9411
9412 2012-02-22  Sterling Augustine  <saugustine@google.com>
9413
9414         PR 13689:
9415         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9416
9417 2012-02-22  Gary Benson  <gbenson@redhat.com>
9418
9419         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9420         (find_slot_in_mapped_hash): Likewise.
9421
9422 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9423
9424         PR build/13638
9425         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9426         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9427         * configure: Regenerate.
9428
9429 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9430             Pedro Alves  <palves@redhat.com>
9431
9432         * ia64-tdep.c: Do not include libunwind-ia64.h.
9433         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9434         Include libunwind-ia64.h instead of libunwind.h.
9435         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9436         for libunwind.h existence.
9437         * configure, config.in: Regenerate.
9438
9439 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9440
9441         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9442         instead of value_rtti_target_type.
9443         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9444         instead of value_rtti_target_type.
9445         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9446         value_rtti_target_type.
9447         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9448         (value_rtti_target_type): Rename to ...
9449         (value_rtti_indirect_type): ... here and make it indirect.  Update
9450         function comment.
9451         * value.c (readjust_indirect_value_type): New function.
9452         (coerce_ref): Support for enclosing type setting for references
9453         with readjust_indirect_value_type.
9454         * value.h (readjust_value_type): New declaration.
9455         (value_rtti_target_type): Rename to ...
9456         (value_rtti_indirect_type): ... here.
9457
9458 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9459
9460         * MAINTAINERS (Write After Approval): Add myself to the list.
9461
9462 2012-02-20  Doug Evans  <dje@google.com>
9463
9464         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9465         Rename objfile_p_char parameter to objfilep.
9466         (build_objfile_section_table): Result is now void.  All callers
9467         updated.
9468         * objfiles.h (struct objfile): Tweak comments, whitespace.
9469         (build_objfile_section_table): Update.
9470
9471         * elfread.c (elf_symfile_segments): Fix warning text.
9472
9473 2012-02-20  Tom Tromey  <tromey@redhat.com>
9474
9475         PR gdb/13498:
9476         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9477         particular set of file names once.
9478         (dw2_map_symbol_filenames): Likewise.
9479
9480 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9481
9482         Code cleanup.
9483         * main.c (write_files): Remove the declaration.
9484         (external_editor_command): Move the declaration ...
9485         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9486
9487 2012-02-20  Tom Tromey  <tromey@redhat.com>
9488
9489         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9490         extraneous block.
9491
9492 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9493
9494         * darwin-nat.h (enum darwin_msg_state): Add comments.
9495
9496 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9497
9498         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9499         value.
9500
9501 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9502
9503         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9504         between function description and implementation.
9505
9506 2012-02-17  Tom Tromey  <tromey@redhat.com>
9507
9508         PR python/12070:
9509         * python/py-event.c (event_object_getset): New global.
9510         (event_object_type): Reference it.
9511         * python/py-type.c (field_object_getset): New global.
9512         (field_object_type): Reference it.
9513         * python/python-internal.h (gdb_py_generic_dict): Declare.
9514         * python/py-utils.c (gdb_py_generic_dict): New function.
9515
9516 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9517
9518         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9519
9520 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9521
9522         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9523         TYPE_CALLING_CONVENTION annotation.
9524
9525 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9526
9527         * MAINTAINERS: Add rx to target ISA section.
9528         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9529         (ALLDEPFILES): Add rx-tdep.c.
9530
9531 2012-02-16  Tom Tromey  <tromey@redhat.com>
9532
9533         * symfile.c (symbol_file_add_main_1): Use inferior's
9534         symfile_flags.
9535         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9536         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9537         inferior.
9538         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9539         inferior.
9540         (follow_exec): Use inferior's symfile_flags.
9541         * inferior.h (struct inferior) <symfile_flags>: New field.
9542
9543 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9544
9545         PR gdb/9734:
9546         * remote-sim.c (gdbsim_create_inferior): Call error() when
9547         sim_create_inferior() fails.
9548
9549 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9550
9551         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9552
9553 2012-02-16  Tom Tromey  <tromey@redhat.com>
9554
9555         PR c++/13653:
9556         * thread.c (struct current_thread_cleanup) <was_removable>: New
9557         field.
9558         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9559         (make_cleanup_restore_current_thread): Initialize new field.
9560
9561 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9562
9563         * MAINTAINERS: Add rl78 to target ISA section.
9564         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9565         (ALLDEPFILES): Add rl78-tdep.c.
9566         * NEWS: Mention rl78 as a new target.
9567
9568 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9569
9570         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9571         data.
9572         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9573
9574 2012-02-15  Tom Tromey  <tromey@redhat.com>
9575
9576         PR gdb/12659:
9577         * infcmd.c (registers_info): Print just the current register's
9578         name.
9579
9580 2012-02-15  Tom Tromey  <tromey@redhat.com>
9581
9582         * python/py-symbol.c (sympy_value): Use _().
9583
9584 2012-02-15  Pedro Alves  <palves@redhat.com>
9585
9586         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9587         output to be like native targets'.
9588         (remote_pid_to_str): Special case the null ptid.
9589
9590 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9591
9592         * NEWS: Mention enable count command.
9593         * breakpoint.h (struct breakpoint): New field enable_count.
9594         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9595         (enable_breakpoint): Add arg to call.
9596         (struct disp_data): New struct.
9597         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9598         (do_map_enable_once_breakpoint): Create a struct and pass it.
9599         (do_map_enable_delete_breakpoint): Ditto.
9600         (do_map_enable_count_breakpoint): New function.
9601         (enable_count_command): New function.
9602         (bpstat_stop_status): Decrement enable_count.
9603         (print_one_breakpoint_location): Report enable count.
9604         (_initialize_breakpoint): Add enable count command.
9605
9606 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9607
9608         * rl78-tdep.c (reggroups.h): Include.
9609         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9610         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9611         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9612         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9613         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9614         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9615         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9616         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9617         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9618         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9619         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9620         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9621         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9622         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9623         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9624         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9625         beginning of register list.
9626         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9627         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9628         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9629         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9630         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9631         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9632         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9633         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9634         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9635         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9636         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9637         the pseudo registers.  Rearrange other pseudo registers too so
9638         that the bank registers appear at the end.
9639         (rl78_register_type): Account for the fact that the byte sized
9640         bank registers are now pseudo-registers.
9641         (rl78_register_name): Rearrange the register name array.  Make
9642         initial set of raw banked registers inaccessible.
9643         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9644         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9645         case for copying bytes back and forth between raw and pseudo
9646         versions of the banked registers.  Update other cases to reflect
9647         the changed names.
9648         (rl78_return_value): Update to account for changed names of
9649         raw registers.
9650         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9651         rl78_register_sim_regno().
9652
9653 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9654
9655         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9656         the name parameter being passed to find_pc_partial_function().
9657
9658 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9659
9660         * MAINTAINERS: Step down from being ia64 target maintainer.
9661
9662 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9663
9664         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9665         compilation warning.
9666
9667 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9668
9669         Fix crash on loaded shlibs without loaded exec_bfd.
9670         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9671         (set_section_command): Replace exec_bfd by p->bfd.
9672
9673 2012-02-10  Tom Tromey  <tromey@redhat.com>
9674
9675         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9676         when we have a C++ qualified name.
9677
9678 2012-02-10  Pedro Alves  <palves@redhat.com>
9679
9680         * inferior.c (inferior_pid_to_str): New.
9681         (print_inferior, inferior_command): Use it.
9682
9683 2012-02-10  Pedro Alves  <palves@redhat.com>
9684
9685         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9686         the test CFLAGS.
9687         * configure: Regenerate.
9688
9689 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9690
9691         * linespec.c (decode_line_internal): Fix comment correctness.
9692
9693 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9694
9695         PR gdb/12953
9696         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9697         * amd64bsd-nat.c: Add support for debug registers (adapted from
9698         i386bsd-nat.c).
9699         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9700         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9701         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9702         (amd64bsd_dr_get_control): New functions.
9703         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9704         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9705         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9706         watchpoints initialization.
9707         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9708
9709 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9710
9711         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9712         flds_bnds.fields.
9713         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9714
9715 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9716
9717         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9718
9719 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9720
9721         * language.h (symbol_name_cmp_ftype): Renames
9722         symbol_name_match_p_ftype.
9723         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9724         la_get_symbol_name_match_p.
9725         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9726         ada_get_symbol_name_match_p.  Update comment.
9727         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9728         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9729         Renames symbol_name_match_p.  Update field type.
9730         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9731         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9732         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9733         "la_get_symbol_name_cmp" in comments.
9734         * language.c: Likewise.
9735
9736 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9737
9738         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9739         %eflags offset.
9740         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9741         (amd64_sol2_gregset32_reg_offs): Likewise.
9742
9743 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9744
9745         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9746         of the returned BFD is allocated by GDB.
9747
9748 2012-02-07  Tom Tromey  <tromey@redhat.com>
9749
9750         PR python/12027:
9751         * python/python-internal.h (frame_object_type): Declare.
9752         * python/py-symbol.c (sympy_needs_frame): New function.
9753         (sympy_value): New function.
9754         (symbol_object_getset): Add "needs_frame".
9755         (symbol_object_methods): Add "value".
9756         * python/py-frame.c (frame_object_type): No longer static.
9757
9758 2012-02-07  Tom Tromey  <tromey@redhat.com>
9759
9760         PR python/13599:
9761         * python/py-symbol.c (sympy_line): New function.
9762         (symbol_object_getset): Add "line".
9763
9764 2012-02-07  Tom Tromey  <tromey@redhat.com>
9765
9766         * charset.c (find_charset_names): Check 'in' against NULL.
9767
9768 2012-02-06  Doug Evans  <dje@google.com>
9769
9770         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9771         and fields.name members from char * to const char *.  All uses updated.
9772         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9773         from char * to const char *.  All uses updated.
9774         (type_name_no_tag): Update.
9775         (lookup_unsigned_typename, lookup_signed_typename): Update.
9776         * gdbtypes.c (type_name_no_tag): Change result type
9777         from char * to const char *.  All callers updated.
9778         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9779         name parameter from char * to const char *.
9780         * symtab.h (struct cplus_specific): Change type of demangled_name
9781         member from char * to const char *.  All uses updated.
9782         (struct general_symbol_info): Change type of name and
9783         mangled_lang.demangled_name members from char * to const char *.
9784         All uses updated.
9785         (symbol_get_demangled_name, symbol_natural_name): Update.
9786         (symbol_demangled_name, symbol_search_name): Update.
9787         * symtab.c (symbol_get_demangled_name): Change result type
9788         from char * to const char *.  All callers updated.
9789         (symbol_natural_name, symbol_demangled_name): Ditto.
9790         (symbol_search_name): Ditto.
9791         (completion_list_add_name): Change type of symname,sym_text,
9792         text,word parameters from char * to const char *.
9793         (completion_list_objc_symbol): Change type of sym_text,
9794         text,word parameters from char * to const char *.
9795         * ada-lang.c (find_struct_field): Change type of name parameter
9796         from char * to const char *.
9797         (encoded_ordered_before): Similarly for N0,N1 parameters.
9798         (old_renaming_is_invisible): Similarly for function_name parameter.
9799         (ada_type_name): Change result type from char * to const char *.
9800         All callers updated.
9801         * ada-lang.h (ada_type_name): Update.
9802         * buildsym.c (hashname): Change type of name parameter
9803         from char * to const char *.
9804         * buildsym.h (hashname): Update.
9805         * dbxread.c (end_psymtab): Change type of include_list parameter
9806         from char ** to const char **.
9807         * dwarf2read.c (determine_prefix): Change result type
9808         from char * to const char *.  All callers updated.
9809         * f-lang.c (find_common_for_function): Change type of name, funcname
9810         parameters from char * to const char *.
9811         * f-lang.c (find_common_for_function): Update.
9812         * f-valprint.c (list_all_visible_commons): Change type of funcname
9813         parameters from char * to const char *.
9814         * gdbarch.sh (static_transform_name): Change type of name parameter
9815         and result from char * to const char *.
9816         * gdbarch.c: Regenerate.
9817         * gdbarch.h: Regenerate.
9818         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9819         of name parameter from char * to const char *.
9820         * jv-lang.c (java_primitive_type_from_name): Ditto.
9821         (java_demangled_signature_length): Similarly for signature parameter.
9822         (java_demangled_signature_copy): Ditto.
9823         (java_demangle_type_signature): Ditto.
9824         * jv-lang.h (java_primitive_type_from_name): Update.
9825         (java_demangle_type_signature): Update.
9826         * objc-lang.c (specialcmp): Change type of a,b parameters
9827         from char * to const char *.
9828         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9829         from char * to const char *.  All callers updated.
9830         * p-lang.h (is_pascal_string_type): Update.
9831         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9832         of name parameter from char * to const char *.
9833         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9834         * utils.c (fprintf_symbol_filtered): Ditto.
9835         * defs.h (fprintf_symbol_filtered): Update.
9836         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9837         * stabsread.h (end_psymtab): Update.
9838         * stack.c (find_frame_funname): Change type of funname parameter
9839         from char ** to const char **.
9840         * stack.h (find_frame_funname): Update.
9841         * typeprint.c (type_print): Change type of varstring parameter
9842         from char * to const char *.
9843         * value.h (type_print): Update.
9844         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9845         from char * to const char *.  All callers updated.
9846         (xcoff_end_psymtab): Change type of include_list parameter
9847         from char ** to const char **.  All callers updated.
9848         (swap_sym): Similarly for name parameter.  All callers updated.
9849         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9850         Use xstrdup.
9851         (process_coff_symbol): Use xstrdup.
9852         * stabsread.c (stabs_method_name_from_physname): Renamed from
9853         update_method_name_from_physname.  Change result type from void
9854         to char *.  All callers updated.
9855         (read_member_functions): In has_destructor case, store name in objfile
9856         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9857
9858 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9859
9860         * configure: Rebuild.
9861         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9862         LDFLAGS.
9863
9864 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9865
9866         * configure.tgt (rl78-*-elf): New target.
9867         * rl78-tdep.c: New file.
9868
9869 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9870
9871         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9872         and continue the loop.  Add QUIT statement.
9873
9874 2012-02-03  Tom Tromey  <tromey@redhat.com>
9875
9876         PR gdb/13596:
9877         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9878         bfd_lookup_symbol_from_symtab.
9879         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9880         gdb_bfd_lookup_symbol_from_symtab.
9881
9882 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9883
9884         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9885         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9886         symbol.  Add assertion that sym2 is never NULL.
9887
9888 2012-02-02  Doug Evans  <dje@google.com>
9889
9890         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9891         "name" parameter to const char ** from char **.  All callers updated.
9892         (find_pc_partial_function): Ditto.
9893         (cache_pc_function_name): Change type to const char * from char *.
9894         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9895         (find_pc_partial_function): Update.
9896         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9897         type of "name" parameter to const char * from char *.
9898         All uses updated.
9899         * arch-utils.c (generic_in_solib_return_trampoline): Change
9900         type of "name" parameter to const char * from char *.
9901         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9902         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9903         type of "name" parameter to const char * from char *.
9904         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9905         * gdbarch.c: Regenerate.
9906         * gdbarch.h: Regenerate.
9907         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9908         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9909         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9910         type of "name" parameter to const char * from char *.
9911         * skip.c (skip_function_pc): Ditto.
9912         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9913         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9914         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9915         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9916         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9917         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9918         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9919         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9920         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9921
9922 2012-02-02  Pedro Alves  <palves@redhat.com>
9923
9924         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9925         the current inferior has no execution.  Make sure the current
9926         remote process matches gdb's current inferior.
9927
9928 2012-02-02  Tom Tromey  <tromey@redhat.com>
9929
9930         PR gdb/13405:
9931         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9932         read-only memory.
9933
9934 2012-02-02  Tom Tromey  <tromey@redhat.com>
9935
9936         PR gdb/9307:
9937         * symtab.c (lookup_language_this): Set block_found.
9938
9939 2012-02-01  Tom Tromey  <tromey@redhat.com>
9940
9941         PR gdb/13431:
9942         * jit.c (struct jit_inferior_data): Rewrite.
9943         (struct jit_objfile_data): New.
9944         (get_jit_objfile_data): New function.
9945         (add_objfile_entry): Update.
9946         (jit_read_descriptor): Return int.  Replace descriptor_addr
9947         argument with inf_data.  Update.  Don't call error.
9948         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9949         descriptor here.
9950         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9951         (jit_reset_inferior_data_and_breakpoints)
9952         (jit_inferior_created_observer): Remove.
9953         (jit_inferior_exit_hook): Update.
9954         (jit_executable_changed_observer): Remove.
9955         (jit_event_handler): Update.
9956         (free_objfile_data): Reset inferior data if needed.
9957         (_initialize_jit): Update.
9958
9959 2012-02-01  Tom Tromey  <tromey@redhat.com>
9960
9961         * jit.c (bfd_open_from_target_memory): Move higher in file.
9962
9963 2012-02-01  Tristan Gingold  <gingold@adacore.com>
9964
9965         * libunwind-frame.c (libunwind_load): Display message if dlopen
9966         failed.
9967
9968 2012-02-01  Gary Benson  <gbenson@redhat.com>
9969
9970         * symtab.h (symbol_found_callback_ftype): New typedef.
9971         (iterate_over_symbols): Use the above.
9972         * symtab.c (iterate_over_symbols): Likewise.
9973         * language.h (language_defn->la_iterate_over_symbols): Likewise.
9974         * ada-lang.c (ada_iterate_over_symbols): Likewise.
9975         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9976         (iterate_name_matcher): Document return values.
9977         (collect_one_symbol): Likewise.
9978         (collect_function_symbols): Likewise.
9979         (collect_symbols): Likewise.
9980
9981 2012-02-01  Tom Tromey  <tromey@redhat.com>
9982
9983         * ada-lang.c (resolve_subexp): Update.
9984         (ada_lookup_symbol_list): Add 'full_search' argument.
9985         (ada_iterate_over_symbols): Pass 0 as full_search argument to
9986         ada_lookup_symbol_list.
9987         (ada_lookup_encoded_symbol): Update.
9988         (get_var_value): Update.
9989         * ada-exp.y (block_lookup): Update.
9990         (write_var_or_type): Update.
9991         (write_name_assoc): Update.
9992         * ada-lang.h (ada_lookup_symbol_list): Update.
9993
9994 2012-01-31  Tom Tromey  <tromey@redhat.com>
9995
9996         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9997         comment.
9998
9999 2012-01-31  Doug Evans  <dje@google.com>
10000
10001         * symtab.h: Remove outdated comment.
10002         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10003
10004 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
10005
10006         Fix build error in Darwin port.
10007         * i386-darwin-nat.c: Include i386-nat.h.
10008
10009 2012-01-30  Tom Tromey  <tromey@redhat.com>
10010
10011         PR breakpoints/13568:
10012         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10013         argument.  Check for recursive includes.
10014         (dwarf_decode_macros): Create an include hash.
10015
10016 2012-01-30  Michael Eager  <eager@eagercon.com>
10017
10018         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10019         * ppc-linux-tdep.c: Include glibc-tdep.h.
10020         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10021         (powerpc_linux_in_plt_stub): New function.
10022         (powerpc_linux_in_dynsym_resolve_code): New function.
10023         (ppc_skip_trampoline_code): New function.
10024         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10025         Use glibc_skip_solib_resolver.
10026
10027 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10028
10029         Code cleanup: Make 1440 bytes of data segment read-only.
10030         * arch-utils.c (endian_enum): Make it const char *const [].
10031         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10032         Likewise.
10033         * breakpoint.c (always_inserted_enums): Likewise.
10034         * cli/cli-cmds.c (script_ext_enums): Likewise.
10035         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10036         enumlist parameter const char *const *.
10037         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10038         const char *const *.
10039         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10040         parameter const char *const *.
10041         * cris-tdep.c (cris_modes): Make it const char *const [].
10042         * filesystem.c (target_file_system_kinds): Likewise.
10043         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10044         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10045         (can_use_displaced_stepping_enum, scheduler_enums)
10046         (exec_direction_names): Likewise.
10047         * language.c (_initialize_language): Make the type_or_range_names and
10048         case_sensitive_names variables const char *const [].
10049         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10050         * python/python.c (python_excp_enums): Likewise.
10051         * remote.c (interrupt_sequence_modes): Likewise.
10052         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10053         * serial.c (logbase_enums): Likewise.
10054         * sh-tdep.c (sh_cc_enum): Likewise.
10055         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10056         Likewise.
10057         * symtab.c (multiple_symbols_modes): Likewise.
10058         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10059         Likewise.
10060         * utils.c (internal_problem_modes): Likewise.
10061
10062 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10063
10064         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10065         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10066         result.
10067
10068 2012-01-27  Doug Evans  <dje@google.com>
10069
10070         * configure.ac (with_python): Fix absolute path handling for win32.
10071         * configure: Regenerate.
10072
10073 2012-01-26  Doug Evans  <dje@google.com>
10074
10075         * symtab.c: Whitespace cleanup, no code changes.
10076
10077         * symtab.c (lookup_symbol_in_language): Improve comment.
10078         (lookup_symbol_aux): Fix comment.
10079
10080         * psymtab.c (add_psymbol_to_list): Result is now "void".
10081         * psympriv.h (add_psymbol_to_list): Update.
10082
10083         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10084
10085 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10086
10087         Do not open script filenames twice.
10088         * cli/cli-cmds.c (source_script_from_stream): Pass to
10089         source_python_script also STREAM.
10090         * python/py-auto-load.c (source_section_scripts): Pass to
10091         source_python_script_for_objfile also STREAM.
10092         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10093         also INPUT.
10094         * python/python-internal.h (source_python_script_for_objfile): New
10095         parameter file, rename parameter file to filename.
10096         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10097         instead if !_WIN32.  Update the function comment.
10098         (source_python_script, source_python_script_for_objfile)
10099         (source_python_script): New parameter file, rename parameter file to
10100         filename.  Pass FILENAME to python_run_simple_file.
10101         * python/python.h (source_python_script): New parameter file, rename
10102         parameter file to filename.
10103
10104 2012-01-26  Pedro Alves  <palves@redhat.com>
10105
10106         * corelow.c (core_has_fake_pid): Delete.
10107         (core_close): Delete references to `core_has_fake_pid'.
10108         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10109         (core_open): Delete references to `core_has_fake_pid'.
10110         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10111         the removed global.
10112
10113 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10114
10115         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10116         Remove language parameter from name_matcher.  Adjust the comment.
10117         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10118         Remove language parameter.
10119         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10120         * linespec.c (iterate_name_matcher): Likewise.
10121         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10122         name_matcher.  Adjust call accordingly.
10123         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10124         (maintenance_check_symtabs): Adjust type of parameter "fun".
10125         * psymtab.h (maintenance_check_symtabs): Likewise.
10126
10127 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10128
10129         * language.h (symbol_name_match_p_ftype): New typedef.
10130         (struct language_defn): Replace field la_symbol_name_compare
10131         by la_get_symbol_name_match_p.
10132         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10133         (ada_language_defn): Use it.
10134         * linespec.c (struct symbol_matcher_data): New type.
10135         (iterate_name_matcher): Rewrite.
10136         (iterate_over_all_matching_symtabs): Pass a pointer to
10137         a symbol_matcher_data struct to expand_symtabs_matching
10138         instead of just the lookup name.
10139         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10140         opencl-lang.c, p-lang.c, language.c: Delete field
10141         la_symbol_name_compare, and replace by NULL for new field
10142         la_get_symbol_name_match_p.
10143         * symfile.h (struct quick_symbol_functions): Update comment.
10144
10145 2012-01-25  Tom Tromey  <tromey@redhat.com>
10146
10147         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10148         dereferencing.
10149
10150 2012-01-24  Tom Tromey  <tromey@redhat.com>
10151
10152         PR symtab/12406:
10153         * solib.c (update_solib_list): Update the program space's
10154         added_solibs and deleted_solibs fields.
10155         * progspace.h (struct program_space) <added_solibs,
10156         deleted_solibs>: New fields.
10157         (clear_program_space_solib_cache): Declare.
10158         * progspace.c (release_program_space): Call
10159         clear_program_space_solib_cache.
10160         (clear_program_space_solib_cache): New function.
10161         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10162         bpstat_stop_status.  Use handle_solib_event.
10163         * breakpoint.c: Include gdb_regex.h.
10164         (print_solib_event): New function.
10165         (bpstat_print): Use print_solib_event.
10166         (bpstat_stop_status): Add special case for bp_shlib_event.
10167         (handle_solib_event): New function.
10168         (bpstat_what): Use handle_solib_event.
10169         (struct solib_catchpoint): New.
10170         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10171         (breakpoint_hit_catch_solib, check_status_catch_solib)
10172         (print_it_catch_solib, print_one_catch_solib)
10173         (print_mention_catch_solib, print_recreate_catch_solib): New
10174         functions.
10175         (catch_solib_breakpoint_ops): New global.
10176         (catch_load_or_unload, catch_load_command_1)
10177         (catch_unload_command_1): New functions.
10178         (internal_bkpt_check_status): Add special case for
10179         bp_shlib_event.
10180         (internal_bkpt_print_it): Use print_solib_event.
10181         (initialize_breakpoint_ops): Initialize
10182         catch_solib_breakpoint_ops.
10183         (_initialize_breakpoint): Register "catch load" and "catch
10184         unload".
10185         * breakpoint.h (handle_solib_event): Declare.
10186         * NEWS: Add entry for "catch load" and "catch unload".
10187
10188 2012-01-24  Tom Tromey  <tromey@redhat.com>
10189
10190         * ada-lang.c: Include gdb_vecs.h.
10191         * charset.c: Include gdb_vecs.h.
10192         * tracepoint.h: Include gdb_vecs.h.
10193         * gdb_vecs.h: New file.
10194
10195 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10196
10197         * breakpoint.c (breakpoint_hit_catch_fork)
10198         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10199         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10200         * infrun.c (inferior_has_forked, inferior_has_vforked)
10201         (inferior_has_execd, inferior_has_called_syscall): Delete.
10202         (handle_syscall_event): Get syscall_number from the execution
10203         control state's wait status.
10204         (wait_for_inferior): Don't clear syscall_number.
10205
10206 2012-01-24  Pedro Alves  <palves@redhat.com>
10207
10208         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10209         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10210         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10211         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10212         `ws' parameter.
10213         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10214         false for events other than TARGET_SIGNAL_TRAP.
10215         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10216         Add `ws' parameter.
10217         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10218         events other than TARGET_SIGNAL_TRAP.
10219         (tracepoint_breakpoint_hit): Add `ws' parameter.
10220         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10221         parameter.
10222         (bpstat_stop_status): Same.
10223         (pc_at_non_inline_function): Same.
10224         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10225         to pass the current event's waitstatus to bpstat_stop_status
10226         and pc_at_non_inline_function.
10227
10228 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10229
10230         Code cleanup.
10231         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10232         Update the function comment for it.
10233         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10234         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10235         for STREAM.
10236
10237 2012-01-24  Pedro Alves  <palves@redhat.com>
10238
10239         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10240         outside `bs->stop' block.
10241         (bpstat_what): Rework bp_shlib_event handling.
10242         (internal_bkpt_check_status): If the breakpoint is a
10243         bp_shlib_event, then set bs->stop and bs->print if
10244         stop_on_solib_events is set.
10245
10246 2012-01-24  Gary Benson  <gbenson@redhat.com>
10247
10248         Delete #if 0'd out code.
10249         * stack.c (print_frame_label_vars): Remove.
10250         (catch_info): Likewise.
10251         (_initialize_stack): Remove "info catch" command.
10252         * NEWS: Mention the above.
10253
10254 2012-01-24  Pedro Alves  <palves@redhat.com>
10255
10256         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10257         it.
10258         (remote_notice_new_inferior): If the remote end doesn't support
10259         the multiprocess extensions, then the PID is fake.
10260         (add_current_inferior_and_thread): New.
10261         (remote_start_remote): Use it.
10262         (extended_remote_attach_1): Adjust.
10263         (extended_remote_create_inferior_1): Use
10264         add_current_inferior_and_thread.
10265
10266 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10267
10268         Fix watchpoints to be specific for each inferior.
10269         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10270         current_program_space.
10271         * i386-nat.c (i386_inferior_data_cleanup): New.
10272         (i386_inferior_data_get): Replace variable inf_data_local by an
10273         inferior_data call.
10274         (i386_use_watchpoints): Initialize i386_inferior_data.
10275         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10276         specific iterate_over_lwps.
10277
10278 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10279
10280         Fix watchpoints across inferior fork.
10281         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10282         comment for linux_nat_iterate_watchpoint_lwps.
10283         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10284         linux_nat_iterate_watchpoint_lwps.
10285         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10286         * i386-linux-nat.c (update_debug_registers_callback): Update the
10287         comment for linux_nat_iterate_watchpoint_lwps.
10288         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10289         linux_nat_iterate_watchpoint_lwps.
10290         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10291         * i386-nat.c: Include inferior.h.
10292         (dr_mirror): Remove.
10293         (i386_inferior_data, struct i386_inferior_data)
10294         (i386_inferior_data_get): New.
10295         (i386_debug_reg_state): Use i386_inferior_data_get.
10296         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10297         (i386_insert_watchpoint, i386_remove_watchpoint)
10298         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10299         (i386_remove_hw_breakpoint): New variable state, use
10300         i386_debug_reg_state instead of DR_MIRROR.
10301         * linux-nat.c (delete_lwp): New declaration.
10302         (num_lwps): Move here from downwards.
10303         (delete_lwp_cleanup): New.
10304         (linux_child_follow_fork): Create new child_lp, call
10305         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10306         PTRACE_DETACH.
10307         (num_lwps): Move upwards.
10308         (linux_nat_iterate_watchpoint_lwps): New.
10309         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10310         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10311
10312 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10313
10314         GDB 7.4 released.
10315
10316 2012-01-23  Pedro Alves  <palves@redhat.com>
10317
10318         * top.c (caution): Rename to ...
10319         (confirm): ... this.
10320         (show_caution): Rename to ...
10321         (show_confirm): ... this.
10322         (quit_cover): Adjust.
10323         (init_main): Adjust.
10324         * top.h (caution): Rename to ...
10325         (confirm): ... this.
10326         * utils.c (internal_vproblem, defaulted_query): Adjust.
10327
10328 2012-01-23  Pedro Alves  <palves@redhat.com>
10329
10330         * top.c (caution): Update comment.
10331         (execute_command): Don't consider the current value of `caution'.
10332
10333 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10334
10335         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10336
10337 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10338
10339         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10340         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10341         * target.c (target_fileio_pwrite): Remove buffer address from
10342         debug output.
10343         (target_fileio_pread): Likewise.
10344
10345 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10346
10347         * NEWS: Document remote "info proc" and "generate-core-file".
10348
10349 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10350
10351         * gdbarch.sh (find_memory_regions): New callback.
10352         * gdbarch.c, gdbarch.h: Regenerate.
10353
10354         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10355         callback before falling back to target method.
10356
10357         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10358         (linux_target_install_ops): No longer install it.
10359
10360         * linux-tdep.c (linux_find_memory_regions): New function.
10361         (linux_init_abi): Install it.
10362
10363 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10364
10365         * gdbarch.sh (make_corefile_notes): New architecture callback.
10366         * gdbarch.c: Regenerate.
10367         * gdbarch.h: Likewise.
10368
10369         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10370         before target_make_corefile_notes.  If NULL is returned, the
10371         target does not support core file generation.
10372
10373         * linux-nat.c: Include "linux-tdep.h".
10374         (find_signalled_thread, find_stop_signal): Remove.
10375         (linux_nat_do_thread_registers): Likewise.
10376         (struct linux_nat_corefile_thread_data): Likewise.
10377         (linux_nat_corefile_thread_callback): Likewise.
10378         (iterate_over_spus): Likewise.
10379         (struct linux_spu_corefile_data): Likewise.
10380         (linux_spu_corefile_callback): Likewise.
10381         (linux_spu_make_corefile_notes): Likewise.
10382         (linux_nat_collect_thread_registers): New function.
10383         (linux_nat_make_corefile_notes): Replace contents by call to
10384         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10385         as native-only callback.
10386
10387         * linux-tdep.h: Include "bfd.h".
10388         (struct regcache): Add forward declaration.
10389         (linux_collect_thread_registers_ftype): New typedef.
10390         (linux_make_corefile_notes): Add prototype.
10391         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10392         "regset.h", and "elf-bfd.h".
10393         (find_signalled_thread, find_stop_signal): New functions.
10394         (linux_spu_make_corefile_notes): Likewise.
10395         (linux_collect_thread_registers): Likewise.
10396         (struct linux_corefile_thread_data): New data structure.
10397         (linux_corefile_thread_callback): New funcion.
10398         (linux_make_corefile_notes): Likewise.
10399         (linux_make_corefile_notes_1): Likewise.
10400         (linux_init_abi): Install it.
10401
10402 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10403
10404         * gdbarch.sh (info_proc): New callback.
10405         * gdbarch.c, gdbarch.h: Regenerate.
10406
10407         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10408         before falling back to the target info_proc callback.
10409
10410         * linux-nat.c: Do not include "cli/cli-utils.h".
10411         (linux_nat_info_proc): Remove.
10412         (linux_target_install_ops): No longer install it.
10413
10414         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10415         (read_mapping): New function.
10416         (linux_info_proc): Likewise.
10417         (linux_init_abi): Install it.
10418
10419 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10420
10421         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10422         * infcmd.c: (info_proc_cmd_1): New function.
10423         (info_proc_cmd): New function, moved here from equivalent routine
10424         orignally in linux-nat.c.
10425         (info_proc_cmd_mappings): Likewise.
10426         (info_proc_cmd_stat): Likewise.
10427         (info_proc_cmd_status): Likewise.
10428         (info_proc_cmd_cwd): Likewise.
10429         (info_proc_cmd_cmdline): Likewise.
10430         (info_proc_cmd_exe): Likewise.
10431         (info_proc_cmd_all): Likewise.
10432         (_initialize_infcmd): Install "info proc" command and subcommands.
10433
10434         * target.h (struct target_ops): Add to_info_proc.
10435         (target_info_proc): Add prototype.
10436         * target.c (target_info_proc): New function.
10437
10438         * procfs.c (procfs_info_proc): Add prototype.
10439         (info_proc_cmd): Rename into ...
10440         (procfs_info_proc): ... this.  Update argument types as appropriate
10441         for a to_info_proc implementation.  Handle "what" argument.
10442         (procfs_target): Install procfs_info_proc.
10443         (_initialize_procfs): No longer install "info proc" command.
10444
10445         * linux-nat.c: (enum info_proc_what): Remove.
10446         (linux_nat_info_proc_cmd_1): Rename into ...
10447         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10448         for a to_info_proc implementation.
10449         (linux_nat_info_proc_cmd): Remove.
10450         (linux_nat_info_proc_cmd_mappings): Likewise.
10451         (linux_nat_info_proc_cmd_stat): Likewise.
10452         (linux_nat_info_proc_cmd_status): Likewise.
10453         (linux_nat_info_proc_cmd_cwd): Likewise.
10454         (linux_nat_info_proc_cmd_cmdline): Likewise.
10455         (linux_nat_info_proc_cmd_exe): Likewise.
10456         (linux_nat_info_proc_cmd_all): Likewise.
10457         (linux_target_install_ops): Install linux_nat_info_proc.
10458         (_initialize_linux_nat): No longer install "info proc" command
10459         and subcommands.
10460
10461 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10462
10463         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10464         * config.in, configure: Regenerate.
10465
10466         * target.h (struct target_ops): Add to_fileio_readlink.
10467         (target_fileio_readlink): Add prototype.
10468         * target.c (target_fileio_readlink): New function.
10469
10470         * inf-child.c: Conditionally include <sys/param.h>.
10471         (inf_child_fileio_readlink): New function.
10472         (inf_child_target): Install it.
10473
10474         * remote.c (PACKET_vFile_readlink): New enum value.
10475         (remote_hostio_readlink): New function.
10476         (init_remote_ops): Install it.
10477         (_initialize_remote): Handle vFile:readlink packet type.
10478
10479 2012-01-20  Pedro Alves  <palves@redhat.com>
10480             Ulrich Weigand  <ulrich.weigand@linaro.org>
10481
10482         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10483         * config.in, configure: Regenerate.
10484
10485         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10486         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10487         (target_fileio_open): Add prototype.
10488         (target_fileio_pwrite): Likewise.
10489         (target_fileio_pread): Likewise.
10490         (target_fileio_close): Likewise.
10491         (target_fileio_unlink): Likewise.
10492         (target_fileio_read_alloc): Likewise.
10493         (target_fileio_read_stralloc): Likewise.
10494
10495         * target.c: Include "gdb/fileio.h".
10496         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10497         (default_fileio_target): New function.
10498         (target_fileio_open): Likewise.
10499         (target_fileio_pwrite): Likewise.
10500         (target_fileio_pread): Likewise.
10501         (target_fileio_close): Likewise.
10502         (target_fileio_unlink): Likewise.
10503         (target_fileio_close_cleanup): Likewise.
10504         (target_fileio_read_alloc_1): Likewise.
10505         (target_fileio_read_alloc): Likewise.
10506         (target_fileio_read_stralloc): Likewise.
10507
10508         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10509         <fcntl.h>, and <unistd.h>.
10510         (inf_child_fileio_open_flags_to_host): New function.
10511         (inf_child_errno_to_fileio_error): Likewise.
10512         (inf_child_fileio_open): Likewise.
10513         (inf_child_fileio_pwrite): Likewise.
10514         (inf_child_fileio_pread): Likewise.
10515         (inf_child_fileio_close): Likewise.
10516         (inf_child_fileio_unlink): Likewise.
10517         (inf_child_target): Install to_fileio routines.
10518
10519         * remote.c (init_remote_ops): Install to_fileio routines.
10520
10521 2012-01-20  Pedro Alves  <palves@redhat.com>
10522             Ulrich Weigand  <ulrich.weigand@linaro.org>
10523
10524         * remote.c (remote_multi_process_p): Only check for multi-process
10525         protocol feature, do not check for extended protocol.
10526         (remote_supports_multi_process): Check for extended protocol here.
10527         (set_general_process): Likewise.
10528         (extended_remote_kill): Likewise.
10529         (remote_pid_to_str): Likewise.
10530         (remote_query_supported): Always query multiprocess mode.
10531
10532 2012-01-20  Pedro Alves  <palves@redhat.com>
10533             Ulrich Weigand  <ulrich.weigand@linaro.org>
10534
10535         * inferior.h (struct inferior): Add fake_pid_p.
10536         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10537         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10538         magic_null_ptid since the remote side doesn't provide a real PID.
10539
10540 2012-01-19  Tom Tromey  <tromey@redhat.com>
10541
10542         * NEWS: Combine the two Python sections.
10543
10544 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10545
10546         * target.h (target_close): Update comment on the target's unpush state.
10547
10548 2012-01-19  Pedro Alves  <palves@redhat.com>
10549
10550         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10551         linux_nat_async directly instead of going through the target
10552         vector.
10553         * target.c (unpush_target): Close target after unpushing it, not
10554         before.
10555
10556 2012-01-19  Gary Benson  <gbenson@redhat.com>
10557
10558         * mdebugread.c (sort_blocks): Replace integer constants with ones
10559         derived from FIRST_LOCAL_BLOCK.
10560
10561 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10562             Jan Kratochvil  <jan.kratochvil@redhat.com>
10563
10564         PR gdb/9538
10565         * symfile.c (find_separate_debug_file): New function.
10566         (terminate_after_last_dir_separator): Likewise.
10567         (find_separate_debug_file_by_debuglink): Also try realpath.
10568         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10569         * configure: Regenerate.
10570         * config.in: Regenerate.
10571
10572 2012-01-18  Doug Evans  <dje@google.com>
10573
10574         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10575         (main.o): Remove rule.
10576         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10577         (--with-sysroot): Rewrite.
10578         * configure: Regenerate.
10579         * config.in: Regenerate.
10580
10581 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10582
10583         * parse.c (initialize_expout): New function.
10584         (reallocate_expout): Likewise.
10585         (parse_exp_in_context): Use `initialize_expout' and
10586         `reallocate_expout' when appropriate.
10587
10588 2012-01-18  Pedro Alves  <palves@redhat.com>
10589
10590         * record.c (struct record_breakpoint, record_breakpoint_p)
10591         (record_breakpoints): New.
10592         (record_insert_breakpoint, record_remove_breakpoint): Manage
10593         record breakpoints list.  Only remove breakpoints from the
10594         inferior if they had been inserted there in the first place.
10595
10596 2012-01-17  Doug Evans  <dje@google.com>
10597
10598         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10599         if we know we don't have a file name to look for.
10600
10601 2012-01-17  Pedro Alves  <palves@redhat.com>
10602
10603         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10604         the frame's stop reason is UNWIND_UNAVAILABLE.
10605
10606 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10607
10608         Fix compilation error.
10609         * m2-exp.y (yyerror): Use ANSI C prototype.
10610
10611 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10612
10613         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10614         (growbuf_by_size): Likewise.
10615         (yyerror): Likewise.
10616         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10617         (modblock): Remove variable (was #if 0'ed).
10618         (parse_number): Convert prototype from K&R to ANSI C.
10619         (yyerror): Likewise.
10620         * objc-exp.y (parse_number): Likewise.
10621         (yyerror): Likewise.
10622         (yylex): Remove #if 0'ed code.
10623         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10624         (yyerror): Likewise.
10625
10626 2012-01-16  Tom Tromey  <tromey@redhat.com>
10627
10628         * NEWS: Add item.
10629         * symtab.h (compare_filenames_for_search): Declare.
10630         * symtab.c (compare_filenames_for_search): New function.
10631         (iterate_over_some_symtabs): Use it.
10632         * symfile.h (struct quick_symbol_functions)
10633         <map_symtabs_matching_filename>: Change spec.
10634         * psymtab.c (partial_map_symtabs_matching_filename): Use
10635         compare_filenames_for_search.  Update for new spec.
10636         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10637         compare_filenames_for_search.  Update for new spec.
10638         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10639
10640 2012-01-16  Tom Tromey  <tromey@redhat.com>
10641
10642         PR python/13281:
10643         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10644         (struct main_type) <flag_flag_enum>: New field.
10645         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10646         * NEWS: Add entries.
10647         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10648         enums.
10649         * python/lib/gdb/printing.py (_EnumInstance): New class.
10650         (FlagEnumerationPrinter): Likewise.
10651
10652 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10653
10654         * breakpoint.c (create_sals_from_address_default): New function.
10655         (create_breakpoints_sal_default): Likewise.
10656         (decode_linespec_default): Likewise.
10657         (is_marker_spec): Removed.
10658         (strace_marker_p): New function.
10659         (init_breakpoint_sal): Using `strace_marker_p' instead of
10660         `is_marker_spec'.
10661         (create_breakpoint): Call method `create_sals_from_address' from
10662         breakpoint_ops, replacing code that created SALs conditionally
10663         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10664         replacing code that created breakpoints conditionally on the type
10665         wanted.
10666         (base_breakpoint_create_sals_from_address): New function.
10667         (base_breakpoint_create_breakpoints_sal): Likewise.
10668         (base_breakpoint_decode_linespec): Likewise.
10669         (base_breakpoint_ops): Add methods
10670         `base_breakpoint_create_sals_from_address',
10671         `base_breakpoint_create_breakpoints_sal' and
10672         `base_breakpoint_decode_linespec'.
10673         (bkpt_create_sals_from_address): New function.
10674         (bkpt_create_breakpoints_sal): Likewise.
10675         (bkpt_decode_linespec): Likewise.
10676         (tracepoint_create_sals_from_address): Likewise.
10677         (tracepoint_create_breakpoints_sal): Likewise.
10678         (tracepoint_decode_linespec): Likewise.
10679         (strace_marker_create_sals_from_address): Likewise.
10680         (strace_marker_create_breakpoints_sal): Likewise.
10681         (strace_marker_decode_linespec): Likewise.
10682         (strace_marker_breakpoint_ops): New variable.
10683         (addr_string_to_sals): Remove `marker_spec'.  Call method
10684         `decode_linespec' from breakpoint_ops, replacing code that decoded
10685         an address string into a SAL.  Use `strace_marker_p' instead of
10686         `marker_spec'.
10687         (strace_command): Decide whether we are dealing with a static
10688         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10689         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10690         * breakpoint.h (linespec_result, linespec_sals): New forward
10691         declarations.
10692         (breakpoint_ops) <create_sals_from_address>,
10693         <create_breakpoints_sal>, <decode_linespec>: New methods.
10694
10695 2012-01-14  Doug Evans  <dje@google.com>
10696
10697         * NEWS: Update text for "maint set python print-stack".
10698         It is deprecated in gdb 7.4 and deleted in 7.5.
10699
10700 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10701
10702         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10703         including curses.h.
10704
10705 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10706
10707         * configure: Regenerate.
10708         * config.in: Regenerate.
10709
10710 2012-01-12  Keith Seitz  <keiths@redhat.com>
10711
10712         PR mi/10586
10713         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10714         (ANONYMOUS_UNION_NAME): Define.
10715         (is_path_expr_parent): New function.
10716         (get_path_expr_parent): New function.
10717         (is_anonymous_child): New function.
10718         (create_child_with_value): If the child is anonymous and without
10719         a name, assign an object name to it.
10720         (c_describe_child): Use get_path_expr_parent to determine
10721         the parent expression.
10722         If there field represents an anonymous struct or union and
10723         has no name, set an appropriate display name and expression.
10724         (cplus_describe_child): Likewise.
10725
10726 2012-01-12  Pedro Alves  <palves@redhat.com>
10727
10728         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10729         available when %ebp is found to be zero (outermost).
10730
10731 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10732
10733         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10734         an internal gdb_static_assert.
10735         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10736
10737 2012-01-11  Tom Tromey  <tromey@redhat.com>
10738
10739         PR gdb/9598:
10740         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10741         catch" and "catch throw".
10742
10743 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10744
10745         * blockframe.c (block_innermost_frame): Start search from selected
10746         frame, if present, or otherwise the current frame.
10747
10748         * c-exp.y (variable): Update innermost_block for
10749         'block COLONCOLON NAME' clause.
10750         * m2-exp.y (variable): Ditto.
10751         * objc-exp.y (variable): Ditto.
10752
10753 2012-01-10  Tom Tromey  <tromey@redhat.com>
10754
10755         PR python/13199:
10756         * python/python.c (finish_python_initialization): Set sys.argv.
10757
10758 2012-01-10  Doug Evans  <dje@google.com>
10759
10760         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10761         "want_line_info".  All callers updated.
10762         (dwarf_decode_lines_1): New function.
10763         (handle_DW_AT_stmt_list): Add function comment.
10764         New arg "want_line_info".  All callers updated.
10765         (read_file_scope,read_type_unit_scope): Move comment from
10766         handle_DW_AT_stmt_list to here.
10767
10768 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10769
10770         Fix regression after libiberty/ update for GCC PR 6057 and others.
10771         * c-exp.y (operator) <OPERATOR DELETE>
10772         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10773         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10774         (make_builtin_type, make_name): New variable i, add gdb_assert.
10775         (operator) <OPERATOR NEW>: Update ARGS to 3.
10776         (operator) <OPERATOR DELETE>: Add trailing space.
10777         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10778         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10779         * cp-support.c (cp_canonicalize_string): Check NULL from
10780         cp_comp_to_string, call warning and return.
10781
10782 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10783
10784         Fix duplicate .o files after omitting libbfd.a.
10785         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10786         (SFILES): Add corelow.c.
10787         (COMMON_OBS): Add corelow.o.
10788         (ALLDEPFILES): Remove corelow.c.
10789         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10790         * config/alpha/alpha-osf3.mh: Likewise.
10791         * config/alpha/fbsd.mh: Likewise.
10792         * config/arm/nbsdaout.mh: Likewise.
10793         * config/arm/nbsdelf.mh: Likewise.
10794         * config/i386/i386gnu.mh: Likewise.
10795         * config/ia64/hpux.mh: Likewise.
10796         * config/ia64/linux.mh: Likewise.
10797         * config/m32r/linux.mh: Likewise.
10798         * config/m68k/linux.mh: Likewise.
10799         * config/mips/irix5.mh: Likewise.
10800         * config/mips/irix6.mh: Likewise.
10801         * config/pa/hpux.mh: Likewise.
10802         * config/pa/linux.mh: Likewise.
10803         * config/powerpc/aix.mh: Likewise.
10804         * config/sparc/linux.mh: Likewise.
10805         * config/sparc/linux64.mh: Likewise.
10806         * config/sparc/sol2.mh: Likewise.
10807         * config/vax/vax.mh: Likewise.
10808         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10809         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10810         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10811         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10812         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10813         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10814         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10815         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10816         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10817         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10818         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10819         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10820         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10821         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10822         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10823         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10824         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10825         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10826         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10827         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10828         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10829         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10830         corelow.o from gdb_target_obs.
10831         * corefile.c (core_target): Update the comment on NULL value.
10832         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10833         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10834         MATCHES.  Drop YUMMY set on NULL.
10835         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10836         reclaim CORE_DATA if it is already NULL.
10837
10838 2012-01-09  Doug Evans  <dje@google.com>
10839
10840         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10841         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10842
10843 2012-01-09  Keith Seitz  <keiths@redhat.com>
10844
10845         * breakpoint.c (wrapper.h): Don't include.
10846
10847 2012-01-09  Keith Seitz  <keiths@redhat.com>
10848
10849         * Makefile.in (SFILES): Remove wrapper.c.
10850         (HFILES_NO_SRCDIR): Remove wrapper.h.
10851         (COMMON_OBS): Remove wrapper.o.
10852         * cli/cli-interp.c: Don't inlude wrapper.h.
10853         * corelow.c: Likewise.
10854         (core_open): Replace gdb_target_find_new_threads with
10855         TRY_CATCH around target_find_new_threads.
10856         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10857         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10858         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10859         evaluate_expression.
10860         (varobj_set_value): Likewise for evaluate_expression and
10861         value_assign.
10862         (install_new_variable): Likewise for value_fetch_lazy.
10863         (adjust_value_for_child_access): Likewise for value_ind.
10864         (c_describe_child): Likewise for value_subscript and
10865         value_ind.
10866         (c_value_of_root): Likewise for evaluate_expression.
10867         * wrapper.c: Remove.
10868         * wrapper.h: Remove.
10869
10870 2012-01-09  Doug Evans  <dje@google.com>
10871
10872         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10873         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10874         "abfd" args with "section".  All callers updated.
10875         Error checking code moved ...
10876         (error_check_comp_unit_head): ... here.  New function.
10877         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10878         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10879         (create_debug_types_hash_table): Simplify by using
10880         read_and_check_type_unit_head.
10881
10882         * parser-defs.h (namecopy): Delete.
10883         * parse.c (namecopy, namecopy_size): Move into copy_name.
10884
10885 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10886
10887         Partially fix duplicate .o files after omitting libbfd.a.
10888         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10889         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10890         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10891         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10892         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10893         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10894         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10895
10896 2012-01-09  Pedro Alves  <palves@redhat.com>
10897
10898         * MAINTAINERS: Update my email address.
10899
10900 2012-01-08  Doug Evans  <dje@google.com>
10901
10902         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10903         n_type_units.  Rename type_comp_units to all_type_units.
10904         All uses updated.
10905         (add_signatured_type_cu_to_table): Renamed from
10906         add_signatured_type_cu_to_list.  All callers updated.
10907
10908         * gdbtypes.h (struct cplus_struct_type): Delete member
10909         nfn_fields_total.  All uses removed.
10910
10911 2012-01-06  Doug Evans  <dje@google.com>
10912
10913         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10914         to top of file.
10915         (dwarf2_find_comp_unit): Delete.
10916         (process_psymtab_comp_unit): Make result "void".
10917         Delete args buffer, info_ptr, buffer_size, and replace with
10918         "section".  All callers updated.
10919         (dwarf2_build_psymtabs_hard): Simplify.
10920
10921 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10922             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10923
10924         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10925         before `struct gdb_exception'.
10926         * breakpoint.c (update_global_location_list_nothrow)
10927         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10928         * cp-abi.c (value_rtti_type): Likewise.
10929         * cp-support.c (cp_validate_operator): Likewise.
10930         * infrun.c (insert_exception_resume_breakpoint)
10931         (check_exception_resume, keep_going): Likewise.
10932         * mi-interp.c (mi_breakpoint_created)
10933         (mi_breakpoint_modified): Likewise.
10934         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10935         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10936         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10937
10938 2012-01-05  Doug Evans  <dje@google.com>
10939
10940         * dwarf2read.c (statement_prologue): Delete, unused.
10941
10942         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10943         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10944
10945         * dwarf2read.c (comp_unit_header): Delete, unused.
10946
10947 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10948
10949         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10950         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10951
10952 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10953
10954         * infrun.c (normal_stop): Don't skip calling the normal_stop
10955         observers if the thread was doing a multi-step, but stopped for
10956         some reason other than stepping.
10957
10958 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
10959
10960         * cli/cli-decode.h: Add comments.
10961         (CMD_LIST_AMBIGUOUS): Moved to command.h
10962         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10963         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10964         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10965         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10966         (add_com, add_com_alias, add_info, add_info_alias)
10967         (complete_on_cmdlist, complete_on_enum, help_list): Remove
10968         declarations.
10969         * command.h: Add and adjust comments.
10970         (CMD_LIST_AMBIGUOUS): Moved here.
10971         (help_cmd, help_cmd_list): Delete declarations.
10972
10973 2012-01-04  Doug Evans  <dje@google.com>
10974
10975         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10976         All callers updated.
10977         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10978         Replace all arguments with "per_cu".  All callers updated.
10979
10980         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10981
10982         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10983         New arg "per_cu".  All callers updated.
10984
10985         Delete #if 0'd out code.
10986         * language.c (binop_result_type): Delete.
10987         (simple_type, ordered_type, same_type, integral_type): Delete.
10988         (numeric_type, character_type, string_type, boolean_type): Delete.
10989         (float_type, structured_type): Delete.
10990         * language.h: Update.
10991
10992 2012-01-04  Tom Tromey  <tromey@redhat.com>
10993
10994         * python/py-value.c (valpy_binop): Initialize 'res_val'.
10995
10996 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10997
10998         * corefile.c (close_exec_file): Delete.
10999         (reopen_exec_file): Remove commented out code that seems related
11000         to close_exec_file, which is being deleted here.
11001         * inferior.h (close_exec_file): Delete.
11002         * fork-child.c (fork_inferior): Remove call to fork_inferior.
11003
11004 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11005
11006         * ada-lang.c: #include "cli/cli-utils.h".
11007         (get_selections): Use skip_spaces.
11008         (ada_get_next_arg): Use skip_spaces and skip_to_space.
11009         (catch_ada_exception_command_split): Use skip_spaces.
11010         (ada_decode_assert_location): Likewise.
11011
11012 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11013
11014         * linespec.c (decode_line_internal): Check for C++ or Java
11015         compound constructs only if the current language is C, C++
11016         or Java.
11017
11018 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11019
11020         Revert:
11021         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11022                     Joel Brobecker  <brobecker@adacore.com>
11023         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11024         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11025         3 times.
11026         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11027         fall through into AT_ENTRY_POINT.
11028         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11029         DUMMY_ADDR with it.
11030         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11031         PPC_INSN_SIZE skip to 3 times.
11032
11033 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11034
11035         * linespec.c (add_minsym): Preserve function descriptors.
11036
11037 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11038
11039         * breakpoint.c (all_locations_are_pending): Consider locations
11040         in program spaces executing during startup pending as well.
11041
11042 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11043
11044         Copyright year update in most files of the GDB Project.
11045
11046 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11047
11048         * copyright.sh: Delete.
11049         * copyright.py: Rewrite.
11050
11051 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11052
11053         * gnulib/extra/update-copyright: New file, imported from gnulib.
11054
11055 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11056
11057         * README (Copyright and License Notices): New section.
11058
11059 2012-01-03  Tom Tromey  <tromey@redhat.com>
11060
11061         PR python/12533:
11062         * python/py-value.c (valpy_dereference, valpy_get_address
11063         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11064         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11065         (valpy_absolute, valpy_richcompare): Free intermediate values.
11066
11067 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11068
11069         * ada-lang.c: Reformat the copyright notice.
11070
11071 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11072
11073         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11074         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11075         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11076         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11077         Revert this part of:
11078         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11079         Build gdb directly from *.o files not using libgdb.a.
11080         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11081
11082 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11083
11084         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11085         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11086         Reformat the copyright header.
11087
11088 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11089
11090         Revert this part of:
11091         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11092         Remove the gdbtui binary.
11093         * gdb.c (main): Remove args.interpreter_p initialization.
11094         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11095         * main.h (struct captured_main_args): Remove interpreter_p.
11096
11097 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11098
11099         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11100
11101 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11102
11103         * top.c (print_gdb_version): Update copyright year.
11104
11105 2012-01-02  Yao Qi  <yao@codesourcery.com>
11106
11107         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11108
11109 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11110             Joel Brobecker  <brobecker@adacore.com>
11111
11112         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11113         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11114         3 times.
11115         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11116         fall through into AT_ENTRY_POINT.
11117         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11118         DUMMY_ADDR with it.
11119         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11120         PPC_INSN_SIZE skip to 3 times.
11121
11122 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11123
11124         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11125         the return value.
11126         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11127
11128 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11129
11130         Build gdb directly from *.o files not using libgdb.a.
11131         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11132         (COMMON_OBS): Remove solib-target.o.
11133         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11134         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11135         (LIBGDB_OBS, libgdb.a): Move it above.
11136         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11137         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11138         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11139         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11140         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11141         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11142         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11143         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11144         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11145         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11146         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11147         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11148         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11149         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11150         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11151         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11152         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11153         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11154         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11155         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11156         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11157         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11158         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11159         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11160         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11161         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11162         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11163
11164 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11165
11166         Remove the gdbtui binary.
11167         * .gitignore (/gdbtui): Remove.
11168         * Makefile.in (TUI): Remove.
11169         (SUBDIR_TUI_OBS): Remove tui-main.o.
11170         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11171         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11172         (tui-main.o): Remove.
11173         (all_object_files): Remove tui-main.o.
11174         * NEWS: New note for the gdbtui removal.
11175         * configure: Rebuilt.
11176         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11177         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11178         CONFIG_UNINSTALL respectively.
11179         * gdb.c (main): Remove args.interpreter_p initialization.
11180         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11181         * main.h (struct captured_main_args): Remove interpreter_p.
11182         * tui/tui-main.c: Remove.
11183
11184 2012-01-01  Doug Evans  <dje@google.com>
11185
11186         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11187         (dwarf2_physname, read_import_statement): Ditto.
11188         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11189         (process_structure_scope read_subroutine_type): Ditto.
11190         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11191         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11192         (dwarf2_fetch_die_location_block): Ditto.
11193         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11194
11195         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11196         All callers updated.
11197         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11198         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11199         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11200
11201         * dwarf2read.c (load_cu): Move assert to more useful location.
11202
11203         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11204         All callers updated.
11205
11206         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11207         (dwarf2_elf_names): Minor reformat.
11208         (dwarf2_per_cu_data): Tweak comment.
11209         (dwarf2_read_section): Fix comment.
11210         (create_all_comp_units): Fix comment.
11211         (load_full_comp_unit): Fix comment.
11212         (process_full_comp_unit): Fix comment.
11213         (read_signatured_type): Fix comment.
11214
11215 For older changes see ChangeLog-2011.
11216 \f
11217 Local Variables:
11218 mode: change-log
11219 left-margin: 8
11220 fill-column: 74
11221 version-control: never
11222 coding: utf-8
11223 End: