Fix entry ordering issue in gdb/ChangeLog...
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
2
3         * gnulib/update-gnulib.sh: New script.
4
5 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
6
7         * MAINTAINERS: Update my email address.
8
9 2012-11-05  Tom Tromey  <tromey@redhat.com>
10
11         * frame.c (put_frame_register): Don't use temporary buffer.
12
13 2012-11-05  Pedro Alves  <palves@redhat.com>
14
15         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
16         child.  Clear 'pending_detach'.
17         * infrun.c (handle_vfork_child_exec_or_exit): Clear
18         'pending_detach' in the vfork parent.
19
20 2012-11-05  Doug Evans  <dje@google.com>
21
22         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
23         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
24         * dwarf2read.c: #include "elf-bfd.h".
25         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
26         (dwop_section_names): Renamed from dwo_section names.  All uses
27         updated.  Add entries for .debug_cu_index, .debug_tu_index.
28         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
29         All uses updated.
30         (struct dwp_sections): New type.
31         (struct virtual_dwo_sections): New type.
32         (struct dwp_hash_table): New type.
33         (struct dwp_file): New type.
34         (init_cutu_and_read_dies): Ensure DWO info/types section has been
35         read in.  Handle DWOs coming from DWP files.
36         (lookup_dwo_file_slot): New function.
37         (dwarf2_locate_dwo_sections): Move definition closer to use.
38         (create_dwo_debug_info_hash_table_reader): Renamed from
39         create_debug_info_hash_table_reader.  All callers updated.
40         (create_dwo_debug_info_hash_table): Renamed from
41         create_debug_info_hash_table.  All callers updated.
42         (create_dwp_hash_table): New function.
43         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
44         (lookup_dwo_in_dwp): New function.
45         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
46         is_dwp.  All callers updated.
47         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
48         (open_and_init_dwo_file): Renamed from init_dwo_file.
49         All callers updated.
50         (lookup_dwo_file): Delete.
51         (dwarf2_locate_dwp_sections): New function.
52         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
53         (allocate_dwp_loaded_cutus_table): New function.
54         (open_and_init_dwp_file): New function.
55         (lookup_dwo_cutu): New function.
56         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
57
58 2012-11-03  Yao Qi  <yao@codesourcery.com>
59
60         Fix PR gdb/14617.
61         * breakpoint.c (trace_pass_set_count): Call
62         observer_notify_breakpoint_modified instead of
63         observer_notify_tracepoint_modified.
64         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
65
66 2012-11-02  Tom Tromey  <tromey@redhat.com>
67
68         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
69         argument to complete_on_enum.
70
71 2012-11-02  Tom Tromey  <tromey@redhat.com>
72
73         * configure: Rebuild.
74         * configure.ac (build_warnings): Add -Wempty-body.
75         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
76         * remote.c (handle_notification): Use braces for empty 'else' body.
77         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
78         'else' body.
79         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
80         'else' body.
81         * solib-som.c (som_relocate_section_addresses): Use braces
82         for empty 'else' body.
83         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
84         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
85
86 2012-11-02  Pedro Alves  <palves@redhat.com>
87
88         PR gdb/14766
89
90         * infrun.c (handle_inferior_event)
91         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
92         null_ptid before handling a vfork child exec or exit.  Switch to
93         the event ptid afterwards.
94
95 2012-11-02  Yao Qi  <yao@codesourcery.com>
96
97         * std-operator.def: Remove OP_LABELED.
98         * eval.c: Remove the declaration of 'get_label'.
99         (get_label): Remove.
100         (evaluate_struct_tuple): Remove code handling OP_LABELED.
101         Update comment.
102         Remove local variable 'variantno' and related code.
103         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
104         with 'fieldno'.
105         * expprint.c (print_subexp_standard): Likewise.
106         (dump_subexp_body_standard): Likewise.
107         * parse.c (operator_length_standard): Likewise.
108
109 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
110
111         Incorporate ARI web page generator into GDB sources.
112         * contrib/ari/create-web-ari-in-src.sh: New file.
113         * contrib/ari/gdb_ari.sh: New file.
114         * contrib/ari/gdb_find.sh: New file.
115         * contrib/ari/update-web-ari.sh: New file.
116
117 2012-10-31  Tom Tromey  <tromey@redhat.com>
118
119         * gdbarch.c: Rebuild.
120         * gdbarch.sh: Remove references to gdbarch_swap.
121         * corelow.c (core_open): Remove obsolete comment.
122
123 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
124
125         PR cli/14772
126         * c-typeprint.c (c_print_type): Don't print a space for vector
127         types, this is handled within the suffix.
128         (c_type_print_varspec_suffix): Add a space to vector suffix.
129
130 2012-10-26  Pedro Alves  <palves@redhat.com>
131
132         * amd64-tdep.c (amd64_relocate_instruction): Use
133         store_unsigned_integer instead of memcpy.
134         * i386-tdep.c (i386_relocate_instruction): Ditto.
135
136 2012-10-26  Pedro Alves  <palves@redhat.com>
137
138         * infrun.c (handle_inferior_event): Merge handling of
139         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
140         switch case.
141
142 2012-10-26  Pedro Alves  <palves@redhat.com>
143
144         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
145         Remove comment.
146
147 2012-10-26  Pedro Alves  <palves@redhat.com>
148
149         * target.c (target_waitstatus_to_string): Handle
150         TARGET_WAITKIND_VFORK_DONE.
151
152 2012-10-26  Pedro Alves  <palves@redhat.com>
153
154         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
155         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
156
157 2012-10-24  Tristan Gingold  <gingold@adacore.com>
158
159         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
160         Add comments.
161
162 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
163
164         * ravenscar-thread.c (ravenscar_wait): Only update the list
165         of threads and inferior_ptid if the inferior is still alive.
166
167 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
168
169         * ada-lang.c (is_known_support_routine): Use lbasename when
170         matching the symtab's filename against
171         known_runtime_file_name_patterns.
172
173 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
174
175         * ada-lang.c (ada_same_array_size_p): New function.
176         (ada_promote_array_of_integrals): New function.
177         (coerce_for_assign): Add handling of arrays where the elements
178         are integrals of a smaller size than the size of the target
179         array element type.
180
181 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
182
183         * doublest.c (convert_doublest_to_floatformat): Fix comparison
184         against maximum exponent value.
185
186 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
187
188         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
189         "unwind-seh.c".
190
191 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
192
193         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
194         strip typedef layer when computing the fixed type's field type,
195         only when computing its size.
196
197 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
198
199         PR gdb/12783
200         * i386-tdep.c (i386_return_value): Handle complex double and long
201         double.
202
203 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
204
205         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
206         New local variable args_len.
207         Quote the name of the executable when computing the command line.
208
209 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
210
211         PR gdb/12796
212         PR gdb/12798
213         PR gdb/12800
214         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
215         AMD64_FTAG_REGNUM.
216         * amd64-tdep.c (amd64_classify): Classify complex types.
217         (amd64_return_value): Handle the COMPLEX_X87 class.
218
219 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
220
221         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
222         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
223
224 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
225
226         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
227         function.
228         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
229         to amd64_windows_auto_wide_charset.
230
231 2012-10-23  Yao Qi  <yao@codesourcery.com>
232
233         * event-top.c (mark_async_signal_handler_wrapper): Remove.
234         * event-top.h: Remove its declaration.
235         (async_request_quit): Call mark_async_signal_handler instead of
236         mark_async_signal_handler_wrapper.
237         (async_do_nothing, async_disconnect): Likewise.
238         (async_stop_sig): Likewise.
239         * remote.c (handle_remote_sigint): Likewise.
240         (handle_remote_sigint_twice): Likewise.
241
242 2012-10-23  Yao Qi  <yao@codesourcery.com>
243
244         * event-top.c (sigint_token, sighup_token): Replace 'void *'
245         with 'static struct async_signal_handler *'.
246         (sighup_token, sigquit_token, sigstp_token): Likewise.
247
248 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
249
250         * gdbarch.sh (function_list): Use 'pstring' when printing
251         a variable which could return NULL.
252         * gdbarch.c: Regenerate.
253
254 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
255             Tom Tromey  <tromey@redhat.com>
256
257         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
258         inneffective if condition by gdb assertion.  Add function
259         description comment.
260
261 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
262
263         * parser-defs.h (struct exp_descriptor): Document constraint
264         on return value for "op_name" callbacks.
265
266 2012-10-18  Tom Tromey  <tromey@redhat.com>
267
268         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
269         * symtab.c (iterate_over_some_symtabs): Constify.
270         * source.h (symtab_to_fullname): Return 'const char *'.
271         * source.c (symtab_to_fullname): Return 'const char *'.
272         * python/py-symtab.c (stpy_fullname): Constify.
273         * cli/cli-cmds.c (edit_command): Constify.
274         * breakpoint.c (print_breakpoint_location)
275         (update_static_tracepoint): Constify.
276
277 2012-10-18  Tom Tromey  <tromey@redhat.com>
278
279         * breakpoint.c (compare_breakpoints): Fix comparison.
280
281 2012-10-18  Tom Tromey  <tromey@redhat.com>
282
283         * valprint.c (generic_emit_char, generic_printstr): Pass size of
284         gdb_wchar_t to convert_between_encodings.
285
286 2012-10-17  Yao Qi  <yao@codesourcery.com>
287
288         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
289         more parameter 'inferior'.
290         * corefile.c (write_memory_with_notification): Caller update.
291
292         * mi/mi-cmd-var.c: Include "mi-main.h".
293         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
294         to 1 and restore it later.
295         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
296         and "data-write-memory-bytes.
297         * mi/mi-interp.c: Include objfiles.h.
298         (mi_interpreter_init): Call observer_attach_memory_changed.
299         (mi_memory_changed): New.
300         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
301         New field.
302
303         * NEWS: Mention new MI notification "memory-changed".
304
305 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
306
307         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
308
309 2012-10-15  Doug Evans  <dje@google.com>
310
311         New option -nh: inhibit loading of ~/.gdbinit.
312         * NEWS: Mention -nh.
313         * main.c (captured_main): Recognize and process -nh.
314         (print_gdb_help): Mention -nh.
315         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
316
317 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
318
319         PR backtrace/14646
320         PR gdb/14647
321         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
322         pc_regnum_from_eax.
323         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
324         nor pc_regnum_from_eax.
325         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
326         nor pc_regnum_from_eax.
327
328 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
329
330         Fix entry values resolving in inlined frames.
331         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
332         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
333         entries of FRAME.
334
335 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
336
337         * configure.ac: Build with -DMS_WIN64 if building with Python
338         enabled using GCC on amd64-windows.
339         * configure: Regenerate.
340
341 2012-10-15  Tom Tromey  <tromey@redhat.com>
342
343         PR python/14635:
344         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
345         to Py_None.
346
347 2012-10-15  Tom Tromey  <tromey@redhat.com>
348
349         PR python/14634:
350         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
351
352 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
353
354         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
355         reset thread numbering back to 1.
356
357 2012-10-11  Doug Evans  <dje@google.com>
358
359         PR breakpoints/14643.
360         * linespec.c (struct ls_parser): New member keyword_ok.
361         (linespec_lexer_lex_string): Add comment.
362         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
363         for one.
364         (parse_linespec): Set keyword_ok.
365
366 2012-10-10  Doug Evans  <dje@google.com>
367
368         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
369         "0x" prefix on address in log message.
370
371         * dwarf2read.c (read_1_byte): Add const to buf parameter.
372         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
373         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
374         (lookup_dwo_file): Add const to dwo_name parameter.
375         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
376
377 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
378
379         Fix crash during stepping on ppc32.
380         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
381         SYM.
382
383 2012-10-03  Doug Evans  <dje@google.com>
384
385         PR symtab/14601
386         * buildsym.c (buildsym_init): Reset using_directives to NULL.
387
388 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
389
390         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
391         output and use uint32_t not long to ensure 4 byte size.
392
393 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
394
395         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
396         unref'ed it.
397
398 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
399
400         * target.c (simple_search_memory): Include access length in
401         warning message.
402
403 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
404             Edjunior Machado  <emachado@linux.vnet.ibm.com>
405
406         PR gdb/13989
407         * solib.c (solib_find): Prevent GDB from loading native libraries when
408         debugging a cross-target corefile.
409
410 2012-09-28  selven  <pcthegreat@gmail.com>
411
412         Make definition match declaration.
413
414         * regcache.c (regcache_register_status): Change return type to
415         enum register_status.
416
417 2012-09-28  Yao Qi  <yao@codesourcery.com>
418
419         * mi/mi-main.c (mi_cmd_data_write_memory): Call
420         write_memory_with_notification instead of write_memory.
421         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
422         instead of target_write_memory.
423
424 2012-09-28  Yao Qi  <yao@codesourcery.com>
425
426         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
427         when the length of content is not an even number.
428
429 2012-09-27  Tom Tromey  <tromey@redhat.com>
430
431         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
432         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
433
434 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
435
436         * sol-thread.c (sol_thread_fetch_registers)
437         (sol_thread_store_registers): Delete commented out code.
438
439 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
440
441         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
442         Move these functions to sparc-sol-thread.c.
443         * sparc-sol-thread.c: New file.
444         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
445         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
446         configurations.
447         * configure: Regenerate.
448
449 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
450
451         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
452         Remove commented-out code.
453
454 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
455
456         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
457         Enable this code for sparc hosts only.
458
459 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
460
461         * procfs.h (procfs_find_LDT_entry): Add declaration.
462         * sol-thread.c (ps_lgetLDT): Delete local declaration of
463         function procfs_find_LDT_entry.
464
465 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
466
467         * procfs.c (proc_get_LDT_entry): Make static.
468
469 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
470
471         * procfs.c (proc_find_memory_regions): Fix declaration.
472
473 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
474
475         * amd64-tdep.c (amd64_return_value): Revert previous change
476         that used TYPE_LENGTH directly.
477         * bfin-tdep.c (bfin_extract_return_value): Likewise.
478         (bfin_store_return_value): Likewise.
479         * cris-tdep.c (cris_store_return_value): Likewise.
480         (cris_extract_return_value): Likewise.
481         * h8300-tdep.c (h8300_extract_return_value): Likewise.
482         * hppa-tdep.c (hppa64_return_value): Likewise.
483         * lm32-tdep.c (lm32_store_return_value): Likewise.
484         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
485         * spu-tdep.c (spu_value_from_register): Likewise.
486         * vax-tdep.c (vax_return_value): Likewise.
487
488 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
489
490         * gdbtypes.c (lookup_array_range_type): Expand parameters
491         LOW_BOUND and HIGH_BOUND to LONGEST.
492         (lookup_string_range_type): Likewise.
493         * gdbtypes.h (lookup_array_range_type): Likewise.
494         (lookup_string_range_type): Likewise.
495         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
496         Expand HIGHBOUND to ssize_t.
497         (value_string): Likewise.
498         * value.h (value_cstring): Expand parameter LEN to ssize_t.
499         (value_string): Likewise.
500
501 2012-09-27  Yao Qi  <yao@codesourcery.com>
502
503         PR breakpoints/13898
504         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
505         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
506         per breakpoint type.
507
508 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
509
510         * procfs.c: Add gdb_bfd header.
511         * rs6000-nat.c: Likewise.
512         * solib-pa64.c: Likewise.
513         * spu-linux-nat.c: Likewise.
514         * windows-nat.c: Likewise.
515
516 2012-09-26  Tom Tromey  <tromey@redhat.com>
517
518         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
519
520 2012-09-26  Tom Tromey  <tromey@redhat.com>
521
522         * dwarf2read.c (mark_common_block_symbol_computed): New function.
523         (read_common_block): Handle child DIEs with
524         DW_AT_data_member_location.
525         (new_symbol_full): Add special case for common blocks.
526
527 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
528             Tom Tromey  <tromey@redhat.com>
529
530         * dwarf2read.c (read_common_block): Rewrite.
531         (new_symbol_full): Handle DW_TAG_common_block.
532         * f-lang.c (head_common_list, find_common_for_function):
533         Remove.
534         * f-lang.h (struct common_entry, struct saved_f77_common,
535         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
536         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
537         BLANK_COMMON_NAME_LOCAL): Remove.
538         (struct common_block): New.
539         * f-valprint.c (list_all_visible_commons): Remove.
540         (info_common_command_for_block): New function.
541         (info_common_command): Use it.
542         * stack.c (iterate_over_block_locals): Special case for
543         COMMON_BLOCK_DOMAIN.
544         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
545         constant.
546         (struct general_symbol_info) <value.common_block>: New field.
547         (SYMBOL_VALUE_COMMON_BLOCK): New define.
548
549 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
550             Tom Tromey  <tromey@redhat.com>
551
552         * f-lang.c (allocate_saved_bf_node,
553         allocate_saved_function_node, allocate_saved_f77_common_node,
554         allocate_common_entry_node, tail_common_list, current_common,
555         saved_bf_list, saved_bf_list_end, current_head_bf_list,
556         tmp_bf_ptr, add_common_block, add_common_entry,
557         find_first_common_named, patch_common_entries,
558         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
559         global_remote_debug, get_bf_for_fcn, saved_function_list,
560         saved_function_list_end, clear_function_list, struct saved_fcn,
561         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
562         SAVED_BF, SAVED_BF_PTR): Remove.
563         * f-lang.h (tail_common_list, current_common,
564         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
565         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
566         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
567         real_main_c_value): Remove.
568         * f-valprint.c (there_is_a_visible_common_named): Remove.
569
570 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
571
572         * breakpoint.c (update_global_location_list): Ignore previous
573         duplicate status of a breakpoint when starting a new scan for
574         duplicate breakpoints.
575
576 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
577         PR breakpoints/14419
578         * arm-tdep.c (arm_skip_prologue): Extending producer check to
579         support LLVM compiler.
580
581 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
582
583         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
584         * bfin-tdep.c (bfin_extract_return_value): Likewise.
585         (bfin_store_return_value): Likewise.
586         * cris-tdep.c (cris_store_return_value): Likewise.
587         (cris_extract_return_value): Likewise.
588         * h8300-tdep.c (h8300_extract_return_value): Likewise.
589         * hppa-tdep.c (hppa64_return_value): Likewise.
590         * lm32-tdep.c (lm32_store_return_value): Likewise.
591         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
592         * spu-tdep.c (spu_value_from_register): Likewise.
593         * vax-tdep.c (vax_return_value): Likewise.
594
595 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
596
597         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
598         parameter LEN to ssize_t.
599
600 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
601
602         * ada-valprint.c (ada_val_print_1): Eliminate single-use
603         variable LEN.
604         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
605         directly.
606         (alpha_store_return_value): Likewise.
607         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
608         (amd64_push_arguments): Likewise.
609         * ax-gdb.c (gen_trace_static_fields): Likewise.
610         (gen_traced_pop): Likewise.
611         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
612         * breakpoint.c (update_watchpoint): Likewise.
613         * findcmd.c (parse_find_args): Use local variable for type
614         instead of length.
615         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
616         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
617         (h8300_store_return_value): Likewise.
618         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
619         Use i386_darwin_arg_type_alignment directly.
620         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
621         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
622         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
623         (m68hc11_extract_return_value): Likewise.
624         * mep-tdep.c (mep_push_dummy_call): Likewise.
625         * printcmd.c (float_type_from_length): Likewise.
626         * s390-tdep.c (s390_value_from_register): Likewise.
627         * stack.c (read_frame_arg): Likewise.
628         * tracepoint.c (encode_actions_1): Likewise.
629         * valops.c (value_fetch_lazy): Use local variable for type
630         instead of length.  Use TYPE_LENGTH directly.
631         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
632
633 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
634
635         * symtab.c (skip_prologue_sal): Fix typo in comment.
636
637 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
638
639         * linespec.c (create_sals_line_offset): Fix typo in comment.
640
641 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
642
643         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
644         use plongest to print the array size.
645
646 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
647
648         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
649         * p-valprint.c (pascal_type_print_base): Likewise.
650
651 2012-09-22  Yao Qi  <yao@codesourcery.com>
652
653         * remote.c (remote_get_trace_status): Remove setting default
654         values of fields of 'ts'.
655
656 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
657
658         Fix internal error on canonicalization of clang types.
659         * cp-name-parser.y (operator): New comment at make_operator call for
660         new, delete, new[] and delete[].
661         (exp): Use "sizeof ".  Add new comment at make_operator call.
662
663 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
664
665         Fix disassemble without parameters in tailcall frame.
666         * cli/cli-cmds.c (disassemble_current_function): Use
667         get_frame_address_in_block.
668
669 2012-09-21  Tom Tromey  <tromey@redhat.com>
670
671         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
672         TYPE_CODE_UNION>: Unify, removing a goto.
673
674 2012-09-21  Tom Tromey  <tromey@redhat.com>
675
676         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
677
678 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
679
680         * findvar.c (read_frame_register_value): Mark the result value as
681         optimized out if any of the input registers have been optimized out.
682
683 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
684
685         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
686
687 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
688
689         * eval.c (evaluate_subexp_standard): Eliminate single-use
690         variable LOWER.
691
692 2012-09-21  Yao Qi  <yao@codesourcery.com>
693
694         * mi/mi-interp.c: Declare mi_record_changed.
695         (mi_interpreter_init): Call observer_attach_record_changed.
696         (mi_record_changed): New.
697         * record.c (record_open): Call observer_notify_record_changed.
698         (cmd_record_stop): Call observer_notify_record_changed.
699         * NEWS: Mention it.
700
701 2012-09-20  Tom Tromey  <tromey@redhat.com>
702
703         * NEWS: Update.
704         * python/python.c (finalize_python): New function.
705         (_initialize_python): Make a final cleanup.
706
707 2012-09-19  Doug Evans  <dje@google.com>
708
709         * buildsym.h (param_symbols): Delete, unused.
710         (context_stack): Delete member "params", unused.
711         * buildsym.c (push_context): Update.
712         * dwarf2read.c (read_func_scope): Update.
713
714 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
715
716         * sh-tdep.c (sh_register_convert_to_virtual)
717         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
718         all callers.  Just do a memcpy if not the little-endian case.
719
720         * h8300-tdep.c (h8300_gdbarch_init): Invoke
721         set_gdbarch_double_format and set_gdbarch_long_double_format.
722         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
723         set_gdbarch_double_format.
724         * sh-tdep.c (sh_gdbarch_init): Likewise.
725
726         * NEWS: Document the removal of SH's 'regs' command.
727         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
728         command.
729
730 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
731
732         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
733         `jump'.
734
735 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
736
737         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
738         language when iterating over symbols.
739
740 2012-09-18  Yao Qi  <yao@codesourcery.com>
741
742         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
743         (mi_interpreter_init): Call observer_attach_tsv_created and
744         observer_attach_tsv_deleted.
745         (mi_tsv_created, mi_tsv_deleted): New.
746         * tracepoint.c (delete_trace_state_variable): Call
747         observer_notify_tsv_deleted.
748         (trace_variable_command): Call observer_notify_tsv_created.
749         (delete_trace_variable_command): Call
750         observer_notify_tsv_deleted.
751         (create_tsv_from_upload): Call observer_notify_tsv_created.
752         * NEWS: Mention it.
753
754 2012-09-18  Yao Qi  <yao@codesourcery.com>
755
756         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
757         if traceframe changed.
758         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
759         "trace-find".
760         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
761         (mi_interpreter_init): Hook mi_traceframe_changed to observer
762         'traceframe_changed'.
763         (mi_traceframe_changed): New.
764         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
765         New field.
766         * NEWS: Mention the new MI notification.
767
768 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
769
770         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
771
772 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
773
774         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
775         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
776         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
777         Extend code also for PaX support.  Convert all gdb_assert to warning
778         calls.
779
780 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
781
782         Implement auto-load user conveniences suggested by Doug Evans.
783         * auto-load.c: Include top.h.
784         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
785         (_initialize_auto_load): New variable scripts_directory_help.  Mention
786         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
787         scripts-directory.  Document in online help one can use also files for
788         set auto-load safe-path.
789         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
790         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
791
792 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
793
794         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
795         of LEN.
796
797 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
798
799         * m2-valprint.c (m2_print_array_contents): Eliminate variable
800         ELTLEN and use TYPE_LENGTH directly.
801         (m2_val_print): Likewise.
802         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
803         variable LEN and use TYPE_LENGTH directly.
804         (m68k_svr4_store_return_value): Likewise.
805         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
806         ARGLEN and use TYPE_LENGTH directly.
807         (mips_o64_push_dummy_call): Likewise.
808         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
809         variable LENGTH and use TYPE_LENGTH directly.
810         (s390_function_arg_float): Likewise.
811         (s390_function_arg_integer): Likewise.
812         (s390_push_dummy_call): Likewise.
813         (s390_return_value_convention): Likewise.
814         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
815         TYPE_LENGTH directly.
816
817 2012-09-17  Yao Qi  <yao@codesourcery.com>
818
819         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
820         Update comment to add_setshow_integer_cmd.
821         * cli/cli-setshow.c (do_set_command): Handle case
822         'var_zuinteger_unlimited'.
823         (do_show_command): Likewise.
824         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
825         for command 'remotetimeout'.
826         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
827         to var_integer.
828         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
829         for command 'set listsize'.
830
831 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
832
833         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
834         variable LEN.
835
836 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
837
838         PR 14119
839         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
840         (frame_pop): Drop also TAILCALL_FRAME frames.
841         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
842
843 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
844             Pedro Alves  <palves@redhat.com>
845
846         PR 14548
847         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
848         function start if we are already at function start.  Both for
849         reverse-next and for reverse-step into function without line number
850         info.
851
852 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
853
854         Code cleanup - rename 'inline' depth to 'artificial' depth.
855         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
856         frame_id_artificial_p, extend the comment.
857         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
858         * frame.c (fprint_frame_id): Rename at a user, change debug output
859         text to "artificial=".
860         (skip_inlined_frames): Rename to ...
861         (skip_artificial_frames): ... here.  Extend the comment.
862         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
863         (frame_id_inlined_p): Rename to ...
864         (frame_id_artificial_p): ... here.  Rename at a user.
865         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
866         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
867         at a user.
868         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
869         Extend the comment.
870         (frame_id_inlined_p): Rename to ...
871         (frame_id_artificial_p): ... here.
872         * inline-frame.c (inline_frame_this_id): Rename at a user.
873
874 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
875
876         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
877         vector variables using vector_size syntax rather than array
878         syntax.
879
880 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
881
882         * valarith.c (value_concat): Replace unsafe ALLOCA with
883         XMALLOC/XFREE.
884
885 2012-09-14  Pedro Alves  <palves@redhat.com>
886
887         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
888
889 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
890
891         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
892         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
893         data-directory as appropriate.
894
895 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
896
897         * printcmd.c (ui_printf): Eliminate single-use variable
898         PARAM_LEN.
899
900 2012-09-14  Yao Qi  <yao@codesourcery.com>
901             Pedro Alves  <palves@redhat.com>
902
903         * valops.c (value_assign): Move observer_notify_target_changed
904         below to replace reinit_frame_cache.
905
906 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
907
908         Refactor Python "gdb" module into a proper Python package, by
909         introducing a new "_gdb" module for code implemented in C, and
910         using reload/__import__ instead of exec.
911         * python/lib/gdb/__init__.py: Import * from _gdb.
912         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
913         prompt_hook, sys.argv): Moved from finish_python_initialization.
914         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
915         (packages, auto_load_packages): New list and function replacing
916         module_dict and auto-loading code, using __file__ instead of
917         gdb.PYTHONDIR and reload/__import__ instead of exec.
918         (GdbSetPythonDirectory): Replacing function of the same name
919         from finish_python_initialization, using reload/__import__ instead
920         of exec, as well as call auto_load_packages.
921         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
922         gdb_python_module and not gdb_module.
923         * python/python-internal.h (gdb_python_module): Declare.
924         * python/python.c (gdb_python_module): New global.
925         (before_prompt_hook): Check gdb_python_module and not gdb_module.
926         (_initialize_python): Rename gdb module to _gdb.
927         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
928         (finish_python_initialization): Move Python code to
929         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
930         __main__.
931
932 2012-09-13  Pedro Alves  <palves@redhat.com>
933
934         * Makefile.in (COMMON_OBS): Add registry.o.
935         * registry.c: New file.
936         * registry.h (struct registry_container): Declare.
937         (registry_data_callback): New typedef.
938         (struct registry_data, struct registry_data_registration, struct
939         registry_data_registry): New type.
940         (register_data_with_cleanup, registry_alloc_data)
941         (registry_callback_adaptor, registry_clear_data)
942         (registry_container_free_data, registry_set_data, registry_data):
943         Declare.
944         (DEFINE_REGISTRY): Refactor structures and functions as shims over
945         the new common structures and functions.
946         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
947         callback typedefs.
948
949 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
950
951         * remote.c (remote_insert_hw_breakpoint): Throw exception if
952         there is an error inserting hardware breakpoints and use the
953         error message from the target.
954
955         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
956         Catch this exception and print the error message contained within. Do not
957         print the default hardware error breakpoint message in this case.
958
959 2012-09-12  Doug Evans  <dje@google.com>
960
961         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
962         cu == NULL.
963
964 2012-09-11  Doug Evans  <dje@google.com>
965
966         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
967         .gdb_index symbol attributes if there are none.
968
969 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
970
971         * symtab.h (struct minimal_symbol) [has_size]: New field.
972         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
973         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
974         * printcmd.c (build_address_symbolic): Only filter out zero-sized
975         minimal symbols if the symbol's size is actually known.
976         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
977         of msymbol's size field.  Add comment.
978         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
979         SET_MSYMBOL_SIZE to set the minimal symbol size.
980
981 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
982
983         * minsyms.c (install_minimal_symbols): Use memset to fill entire
984         minimal_symbol struct object, rather than setting some of its
985         fields one by one.
986
987 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
988
989         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
990         passed_a_ptr flag when displaying typedef types.
991
992 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
993
994         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
995         the optimized_out flag is preserved.
996
997 2012-09-10  Anthony Green  <green@moxielogic.com>
998
999         * moxie-tdep.c (moxie_analyze_prologue): Update for function
1000         prologue changes in GCC.
1001
1002 2012-09-10  Keith Seitz  <keiths@redhat.com>
1003
1004         PR gdb/13483
1005         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1006         (BOOL_CONVERSION_BADNESS): ... this.
1007         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1008         (rank_one_type): Allow all boolean conversions
1009         permitted by the standard.
1010
1011 2012-09-06  Tom Tromey  <tromey@redhat.com>
1012
1013         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1014         Don't decref py_objfile.
1015
1016 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
1017
1018         Do not enable -lmcheck by default when Python is enabled with
1019         threading support.
1020         * configure.ac: (python_has_threads) New variable, by testing
1021         if WITH_THREAD is defined in Python.h.
1022         Move --enable-lmcheck after --with-python.
1023         Do not enable -lmcheck by default if python_has_threads=yes.
1024         Warn if --enable-lmcheck and python_has_threads=yes.
1025         * configure: Regenerate.
1026
1027 2012-08-31  Yao Qi  <yao@codesourcery.com>
1028
1029         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1030         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1031         Update some commands.
1032         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1033         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1034         to 1.
1035
1036 2012-08-31  Yao Qi  <yao@codesourcery.com>
1037
1038         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1039
1040 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1041
1042         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1043
1044 2012-08-29  Doug Evans  <dje@google.com>
1045
1046         * main.c (print_gdb_help): Remove reference to
1047         --use-deprecated-index-sections.
1048
1049 2012-08-28  Yao Qi  <yao@codesourcery.com>
1050
1051         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1052         (init_cmds): Call add_setshow_uinteger_cmd for command
1053         'max-user-call-depth'.
1054         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1055         declaration of 'max_user_call_depth'.
1056         * frame.c (backtrace_limit): Add 'unsigned'.
1057         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1058         'limit'.
1059         * remote.c (remoteaddresssize): Add 'unsigned'.
1060         (remote_address_masked): Change local var 'address_size' to
1061         'unsigned'.
1062         (_initialize_remote): Call add_setshow_uinteger_cmd for
1063         'remoteaddresssize'.
1064         * top.c (history_size): Add 'unsigned'.
1065         (show_commands): Change local variables to 'unsigned'.
1066         (set_history_size_command): Don't check history_size is negative.
1067         Adjust the condition to call unstifle_history and set history_size
1068         to UNIT_MAX.
1069
1070 2012-08-28  Pedro Alves  <palves@redhat.com>
1071
1072         PR gdb/14428
1073
1074         * infcmd.c (default_print_one_register_info): New, factored out
1075         from default_print_registers_info.
1076         (default_print_registers_info): Use it.  Mark value unavailable if
1077         necessary.
1078         (registers_info): Print user registers with
1079         default_print_one_register_info.
1080
1081 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1082
1083         PR tui/14486
1084         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1085         is not NULL before referencing it.
1086
1087 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1088
1089         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1090         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1091         original PC for it.
1092
1093 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1094             Jan Kratochvil  <jan.kratochvil@redhat.com>
1095
1096         * auto-load.c (auto_load_objfile_script): Rename to ...
1097         (auto_load_objfile_script_1): ... here, change variable realname to
1098         parameter realname, document it, add return value, add variable retval.
1099         (auto_load_objfile_script): New function.
1100
1101 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1102
1103         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1104         followed by a whitespace.
1105
1106 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1107
1108         PR gdb/14494.
1109         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1110         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1111         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1112         here.
1113
1114 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1115
1116         * memattr.c (create_mem_region): Fix memory region overlapping
1117         checking.
1118
1119 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1120
1121         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1122         with xmalloc/cleanup.
1123         * mt-tdep.c (mt_push_dummy_call): Likewise.
1124         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1125         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1126
1127 2012-08-24  Yao Qi  <yao@codesourcery.com>
1128
1129         * jv-exp.y (push_expression_name): Add "." at the end of error
1130         message.
1131
1132 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1133
1134         Document how to return from "python-interactive" to GDB.
1135         * python/python.c (_initialize_python): Update documentation.
1136
1137 2012-08-23  Pedro Alves  <palves@redhat.com>
1138
1139         * infrun.c (_initialize_infrun) <handle command help text>:
1140         Mention that multiple signals are supported.
1141
1142 2012-08-23  Pedro Alves  <palves@redhat.com>
1143
1144         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1145         string.
1146
1147 2012-08-23  Yao Qi  <yao@codesourcery.com>
1148
1149         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1150         (tfind_1): Don't call registers_changed, set_traceframe_num,
1151         and clear_traceframe_info.
1152         Call set_current_traceframe.
1153         (set_current_traceframe): call set_traceframe_num.
1154
1155 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1156
1157         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1158         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1159
1160 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1161
1162         Enable readline in Python in a GDB-specific way and block the
1163         standard Python readline module to prevent conflicts with GDB.
1164         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1165         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1166         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1167         * python/py-gdb-readline.c: New file.
1168         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1169         prototype.
1170         * python/python.c (_initialize_python): Call
1171         gdbpy_initialize_gdb_readline.
1172
1173 2012-08-22  Keith Seitz  <keiths@redhat.com>
1174
1175         * defs.h: Include build-gnulib/config.h
1176
1177 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1178
1179         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1180         and blx pc.
1181
1182 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1183
1184         Add a new "python-interactive" command that starts a standard
1185         Python interactive prompt with "pi" as alias, and add "py" as
1186         an alias to "python".
1187         * NEWS: Mention the new commands.
1188         * python/python.c (eval_python_command): New function.
1189         (python_interactive_command): For "python-interactive" with
1190         arguments, call eval_python_command.  For "python-interactive"
1191         without arguments, call PyRun_InteractiveLoop.
1192         (_initialize_python): Add "python-interactive" command with
1193         "pi" as alias, and add "py" as an alias to "python".
1194
1195 2012-08-22  Tom Tromey  <tromey@redhat.com>
1196
1197         * defs.h (quit_flag): Don't declare.
1198         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1199         (QUIT): Use new functions.
1200         * event-top.c (command_handler): Use clear_quit_flag.
1201         (handle_sigint): Use set_quit_flag.
1202         (async_request_quit): Use check_quit_flag.  Don't check
1203         immediate_quit.
1204         * exceptions.c (throw_exception): Use clear_quit_flag.
1205         * main.c (captured_main): Use clear_quit_flag.
1206         * python/python.c (clear_quit_flag, set_quit_flag)
1207         (check_quit_flag): New functions.
1208         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1209         clear_quit_flag.
1210         * remote.c (remote_wait_as): Use check_quit_flag,
1211         clear_quit_flag.
1212         (remote_start_remote): Call QUIT.
1213         * symfile.c (load_progress): Use check_quit_flag.
1214         * top.c (command_loop): Use clear_quit_flag.
1215         (command_line_input): Call QUIT.
1216         * utils.c (quit_flag): Conditionally define.
1217         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1218         functions.
1219         (prompt_for_continue): Call QUIT.  Use quit, not
1220         async_request_quit.
1221         * remote-mips.c (mips_expect_timeout): Call QUIT.
1222         * monitor.c (monitor_expect): Call QUIT.
1223
1224 2012-08-22  Tom Tromey  <tromey@redhat.com>
1225
1226         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1227         (async_init_signals): Update.
1228         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1229         (SIGWINCH_HANDLER_BODY): Remove.
1230
1231 2012-08-22  Tom Tromey  <tromey@redhat.com>
1232
1233         * jit.c (jit_object_close_impl): Don't malloc the objfile
1234         name.
1235         * objfiles.c (allocate_objfile): Don't malloc the objfile
1236         name.
1237         (free_objfile): Don't free the objfile name.
1238         * objfiles.h (struct objfile) <name>: Update comment.
1239         * symfile.c (reread_symbols): Fix reference counting.  Don't
1240         malloc objfile name.
1241
1242 2012-08-22  Tom Tromey  <tromey@redhat.com>
1243
1244         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1245         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1246         (symfile_bfd_open): Likewise.
1247         (generic_load): Likewise.
1248         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1249         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1250         gdb_bfd_open.
1251         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1252         Use gdb_bfd_open.
1253         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1254         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1255         (pmon_load_fast): Likewise.
1256         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1257         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1258         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1259         (macho_check_dsym): Likewise.
1260         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1261         (m32r_upload_command): Likewise.
1262         * gdb_bfd.h (gdb_bfd_cache): Declare.
1263         * gdb_bfd.c (struct gdb_bfd_data): New.
1264         (gdb_bfd_cache): New global.
1265         (struct gdb_bfd_cache_search): New.
1266         (hash_bfd): New function.
1267         (eq_bfd): Likewise.
1268         (gdb_bfd_open): Likewise.
1269         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1270         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1271         gdb_bfd_data.
1272         * exec.c (exec_file_attach): Use gdb_bfd_open.
1273         * dsrec.c (load_srec): Use gdb_bfd_open.
1274
1275 2012-08-22  Tom Tromey  <tromey@redhat.com>
1276
1277         * dwarf2read.c (macro_start_file): Update.
1278         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1279         (free_objfile_per_bfd_storage): Destroy macro_cache.
1280         (allocate_objfile, free_objfile): Update.
1281         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1282         New field.
1283         (struct objfile) <macro_cache>: Remove.
1284         * symfile.c (reread_symbols): Update.
1285         * symmisc.c (print_symbol_bcache_statistics): Update.
1286         (print_objfile_statistics): Update.
1287
1288 2012-08-22  Tom Tromey  <tromey@redhat.com>
1289
1290         * elfread.c (elf_symtab_read): Update.
1291         * objfiles.c (objfiles_bfd_data): New global.
1292         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1293         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1294         (allocate_objfile, free_objfile): Update.
1295         (_initialize_objfiles): Initialize objfiles_bfd_data.
1296         * objfiles.h (struct objfile_per_bfd_storage): New.
1297         (struct objfile) <per_bfd>: New field.
1298         <filename_cache>: Remove.
1299         (set_objfile_per_bfd): Declare.
1300         * symfile.c (reread_symbols): Update.  Call
1301         set_objfile_per_bfd.
1302         (allocate_symtab): Update.
1303         * symmisc.c (print_symbol_bcache_statistics): Update.
1304         (print_objfile_statistics): Print the size of the BFD obstack.
1305
1306 2012-08-22  Tom Tromey  <tromey@redhat.com>
1307
1308         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1309         * gdb_bfd.c: Use DEFINE_REGISTRY.
1310         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1311         (gdb_bfd_ref): Call bfd_alloc_data.
1312         (gdb_bfd_unref): Call bfd_free_data.
1313
1314 2012-08-22  Tom Tromey  <tromey@redhat.com>
1315
1316         * registry.h (struct registry_fields): New.
1317         (REGISTRY_FIELDS): Redefine.
1318         (REGISTRY_ACCESS_FIELD): New macro.
1319         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1320         functions.
1321
1322 2012-08-22  Tom Tromey  <tromey@redhat.com>
1323
1324         * auto-load.c (_initialize_auto_load): Update.
1325         * solib-svr4.c (_initialize_svr4_solib): Update
1326         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1327         * solib-darwin.c (_initialize_darwin_solib): Update.
1328         * registry.h: New file.
1329         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1330         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1331         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1332         (register_program_space_data_with_cleanup)
1333         (register_program_space_data, program_space_alloc_data)
1334         (clear_program_space_data, set_program_space_data)
1335         (program_space_data): Don't declare.
1336         * progspace.c: Use DEFINE_REGISTRY.
1337         (struct program_space_data, struct
1338         program_space_data_registration, struct
1339         program_space_data_registry, program_space_data_registry)
1340         (register_program_space_data_with_cleanup)
1341         (register_program_space_data, program_space_alloc_data)
1342         (program_space_free_data, clear_program_space_data)
1343         (set_program_space_data, program_space_data): Remove.
1344         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1345         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1346         (register_objfile_data_with_cleanup, register_objfile_data)
1347         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1348         declare.
1349         * objfiles.c: Use DEFINE_REGISTRY.
1350         (struct objfile_data, struct objfile_data_registration, struct
1351         objfile_data_registry, objfile_data_registry)
1352         (register_objfile_data_with_cleanup, register_objfile_data)
1353         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1354         (set_objfile_data, objfile_data): Remove.
1355         (_initialize_objfiles): Update.
1356         * jit.c (_initialize_jit): Update.
1357         * inflow.c (_initialize_inflow): Update.
1358         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1359         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1360         (register_inferior_data_with_cleanup, register_inferior_data)
1361         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1362         declare.
1363         * inferior.c: Use DEFINE_REGISTRY.
1364         (struct inferior_data, struct inferior_data_registration, struct
1365         inferior_data_registry, inferior_data_registry)
1366         (register_inferior_data_with_cleanup, register_inferior_data)
1367         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1368         (set_inferior_data, inferior_data): Remove.
1369         * auxv.c (_initialize_auxv): Update.
1370         * ada-lang.c (_initialize_ada_language): Update.
1371         * breakpoint.c (_initialize_breakpoint): Update.
1372         * i386-nat.c (i386_use_watchpoints): Update.
1373
1374 2012-08-22  Tom Tromey  <tromey@redhat.com>
1375
1376         * exec.c (exec_close, exec_file_attach): Update.
1377         (add_to_section_table): Initialize 'key' field.
1378         (add_target_sections, remove_target_sections): Add 'key' argument.
1379         * exec.h (add_target_sections, remove_target_sections): Add
1380         'key' argument.
1381         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1382         (reload_shared_libraries_1): Update.
1383         * target.h (struct target_section) <key>: New field.
1384
1385 2012-08-22  Tom Tromey  <tromey@redhat.com>
1386
1387         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1388
1389 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1390
1391         * symfile.c (allocate_symtab): Use host_address_to_string
1392         function instead of cast of pointer to long which is not
1393         compatible with x86_64-w64-mingw32 build.
1394
1395 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1396
1397         * mips-tdep.c (is_octeon): New function.
1398         (is_octeon_bbit_op): New function.
1399         (mips32_next_pc): Handle Octeon's bbit instructions.
1400         (mips32_instruction_has_delay_slot): Likewise.
1401
1402 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1403
1404         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1405         before the function.
1406
1407 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1408
1409         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1410
1411 2012-08-19  Keith Seitz  <keiths@redhat.com>
1412
1413         PR c++/14365
1414         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1415         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1416
1417 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1418
1419         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1420         The typo broke "make TAGS".
1421
1422 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1423
1424         GDB 7.5 released.
1425
1426 2012-08-17  Keith Seitz  <keiths@redhat.com>
1427
1428         PR c++/13356
1429         * gdbtypes.c (strict_type_checking): New variable.
1430         (show_strict_type_checking): New function.
1431         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1432         if strict type checking is disabled.
1433         (_initialize_gdbtypes): Add "check type" subcommand.
1434         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1435
1436 2012-08-17  Keith Seitz  <keiths@redhat.com>
1437
1438         * language.h (type_mode): Remove.
1439         (type_check): Remove.
1440         (struct language_defn): Remove la_type_check.
1441         (STRICT_TYPE): Remove unused macro.
1442         (type_error): Remove.
1443         * language.c (set_type_range_case): Renamed to ...
1444         (set_range_case): ... this.  Update all callers.
1445         Remove type_mode/type_check.
1446         (type_mode): Remove.
1447         (type_check): Remove.
1448         (show_type_command): Remove.
1449         (set_type_command): Remove.
1450         (language_info): Remove type checking output.
1451         (type_error): Remove unused function.
1452         (range_error): Update comment.
1453         (unknown_language_defn): Remove la_type_check.
1454         (auto_language_defn): Likewise.
1455         (local_language_defn): Likewise.
1456         (_initialize_language): Remove "check type" subcommand.
1457         * ada-lang.c (ada_language_defn): Remove la_type_check.
1458         * c-lang.c (c_language_defn): Likewise.
1459         (cplus_language_defn): Likewise.
1460         (asm_language_defn): Likewise.
1461         (minimal_language_defn): Likewise.
1462         * d-lang.c (d_language_defn): Likewise.
1463         * f-lang.c (f_language_defn): Likewise.
1464         * go-lang.c (go_language_defn): Likewise.
1465         * jv-lang.c (java_language_defn): Likewise.
1466         * m2-lang.c (m2_language_defn): Likewise.
1467         * objc-lang.c (objc_language_defn): Likewise.
1468         * opencl-lang.c (opencl_language_defn): Likewise.
1469         * p-lang.c (pascal_language_defn): Likewise.
1470
1471 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1472
1473         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1474
1475 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1476
1477         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1478         New function.
1479         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1480         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1481         to access the bsp and bspstore registers if not.
1482
1483 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1484
1485         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1486         * breakpoint.c (detach_breakpoints): Change pid parameter into
1487         a ptid.  Adjust code accordingly.
1488         * infrun.c (handle_inferior_event): Delete variable child_pid.
1489         Update call to detach_breakpoints to pass the child ptid for
1490         fork events.
1491         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1492         assert that inferior_ptid's lwp is zero.
1493         (linux_handle_extended_wait): Update call to detach_breakpoints.
1494         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1495         detach_breakpoints.
1496
1497 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1498
1499         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1500         parent, only call detach_breakpoints if tts.tts_event ==
1501         TTEVT_VFORK.
1502
1503 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1504
1505         * dwarf2-frame.c (dwarf2_frame_cache): Use
1506         get_frame_address_in_block instead of get_frame_pc as
1507         the bound for executing the frame's FDE.
1508
1509 2012-08-16  Yao Qi  <yao@codesourcery.com>
1510
1511         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1512         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1513         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1514         (c_type_print_varspec_suffix): Likewise.
1515         * eval.c (evaluate_subexp_standard): Likewise.
1516         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1517         (f_type_print_varspec_suffix): Likewise.
1518         * gdbtypes.c (is_scalar_type): Likewise.
1519         (recursive_dump_type): Likewise.
1520         * infcall.c (value_arg_coerce): Likewise.
1521         * m2-valprint.c (m2_val_print): Likewise.
1522         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1523         (pascal_type_print_varspec_suffix): Likewise.
1524         (pascal_type_print_base): Likewise.
1525         * p-valprint.c (pascal_val_print): Likewise.
1526         (pascal_val_print): Likewise.
1527         * valops.c (value_slice): Likewise.
1528         * valprint.c (scalar_type_p): Likewise.
1529         * valarith.c (value_bitstring_subscript): Remove.
1530         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1531         Remove comment on TYPE_CODE_BITSTRING.
1532
1533         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1534         TYPE_CODE_BITSTRING.
1535
1536         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1537         slot 0.
1538
1539 2012-08-16  Yao Qi  <yao@codesourcery.com>
1540
1541         * tracepoint.c (trace_find_none_command): Remove.
1542         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1543
1544 2012-08-16  Yao Qi  <yao@codesourcery.com>
1545
1546         * remote.c (handle_notification): Remove parameter 'length'.
1547         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1548
1549 2012-08-15  Keith Seitz  <keiths@redhat.com>
1550
1551         * gdbtypes.c (opaque_type_resolution): Make static.
1552         Add missing comment.
1553         (overload_debug): Add missing comment.
1554         (show_opaque_type_resolution): Likewise.
1555         (show_overload_debug): Likewise.
1556         (print_bit_vector): Remove unnecessary forward declaration.
1557         (print_arg_types): Likewise.
1558         (dump_fn_fieldlists): Likewise.
1559         (print_cplus_stuff): Likewise.
1560
1561 2012-08-15  Tom Tromey  <tromey@redhat.com>
1562
1563         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1564         (gdb_bfd_ref): Initialize new field.
1565         (gdb_bfd_unref): Unref the archive BFD.
1566         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1567         parent archive.
1568
1569 2012-08-15  Tom Tromey  <tromey@redhat.com>
1570
1571         PR python/14387:
1572         * python/py-bpevent.c (create_breakpoint_event_object): Update
1573         comment.
1574         * python/py-event.c (evpy_add_attribute): Update comment.
1575         * python/py-exitedevent.c (create_exited_event_object): Fix
1576         reference counting and error handling.
1577         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1578         Fix reference counting.
1579         * python/py-signalevent.c (create_signal_event_object): Fix
1580         reference counting and error handling.
1581         * python/py-stopevent.c (emit_stop_event): Fix reference
1582         counting.
1583         * python/py-threadevent.c (get_event_thread): Return a
1584         borrowed reference.
1585         * python/py-type.c (convert_field): Fix reference counting.
1586
1587 2012-08-15  Tom Tromey  <tromey@redhat.com>
1588
1589         * dwarf2read.c (dwarf_decode_macro_bytes)
1590         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1591         as hash key.
1592
1593 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1594
1595         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1596         stepi, nexti, finish, next, step, jump, and continue commands.
1597         * infrun.c (_initialize_infrun): Update help text for the handle
1598         command.
1599
1600 2012-08-14  Doug Evans  <dje@google.com>
1601
1602         * gdbtypes.c (struct extra): Delete, unused.
1603
1604         * gdbtypes.c: Whitespace cleanup.
1605         (address_space_name_to_int): Remove "extern" from definition.
1606         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1607
1608         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1609         TYPE_POINTER_TYPE (type).
1610
1611 2012-08-14  Gary Benson  <gbenson@redhat.com>
1612
1613         * solib-svr4.c (svr4_free_library_list): Use free_so.
1614
1615 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1616
1617         * .gitignore: Add go-exp.c.
1618
1619 2012-08-13  Doug Evans  <dje@google.com>
1620
1621         * value.c (show_convenience): Tweak comment.
1622         (_initialize_values): Mention convenience functions in the help text
1623         for "show convenience".
1624
1625 2012-08-13  Yao Qi  <yao@codesourcery.com>
1626
1627         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1628         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1629         TERNOP_SLICE_COUNT.
1630         * eval.c (evaluate_subexp_standard): Likewise.
1631         * expprint.c (print_subexp_standard): Likewise.
1632         (dump_subexp_body_standard): Likewise.
1633         * parse.c (operator_length_standard): Likewise.
1634
1635 2012-08-13  Yao Qi  <yao@codesourcery.com>
1636
1637         * std-operator.def: Remove OP_BITSTRING.
1638         * breakpoint.c (watchpoint_exp_is_const): Update.
1639         * eval.c (evaluate_subexp_standard): Remove handling to
1640         OP_BITSTRING.
1641         * expprint.c (print_subexp_standard): Likewise.
1642         (dump_subexp_body_standard): Likewise.
1643         * parse.c (operator_length_standard): Likewise.
1644         * valops.c (value_bitstring): Remove.
1645         * value.h: Remove the declaration of 'value_bitstring'.
1646
1647 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1648
1649         * linespec.c (find_methods): Remove unused variables `i1' and
1650         `name_len'.
1651         (decode_line_full): Likewise for `arg_start'.
1652
1653 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1654
1655         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1656         (zlib_decompress_section): Likewise for `section_data'.
1657         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1658
1659 2012-08-10  Doug Evans  <dje@google.com>
1660
1661         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1662         * NEWS: Document them.
1663         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1664         function/strfns.py.
1665         * python/py-type.c (typy_array_1): New function.
1666         (typy_array): Call it.
1667         (typy_vector): New function.
1668         (type_object_methods): Add "vector".
1669         * python/lib/gdb/function/__init__.py: New file.
1670         * python/lib/gdb/function/strfns.py: New file.
1671
1672 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1673
1674         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1675         for TYPE_FIELD_BITPOS.
1676         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1677
1678 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1679
1680         PR cli/10436:
1681         * common/vec.h (VEC_merge): Define.
1682         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1683         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1684         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1685         * completer.c: Include gdb_signals.h.
1686         (signal_completer): Define.
1687         * completer.h (signal_completer): Add prototype.
1688         * infcmd.c (_initialize_infcmd): Assign the command
1689         completer for "signal" to handle_completer.
1690         * infrun.c: Include completer.h.
1691         (handle_completer): Define.
1692         (_initialize_infrun): Declare a new local variable c.  Store the
1693         result of add_com("handle") to it.  Assign the command
1694         completer for "handle" to handle_completer.
1695
1696 2012-08-09  Yao Qi  <yao@codesourcery.com>
1697
1698         * cli/cli-decode.c (set_cmd_prefix): New.
1699         (lookup_cmd_for_prefixlist): New.
1700         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1701         of each cmd_list_element in *prefixlist.
1702         (add_setshow_cmd_full): set_cmd_prefix.
1703         (add_alias_cmd): Likewise.
1704         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1705         Declare 'auto_boolean_enums'.
1706         * cli/cli-setshow.c: Include "observer.h".
1707         (notify_command_param_changed_p): New.
1708         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1709         Remove 'static'.
1710         (do_setshow_command): Split it to ...
1711         (do_set_command, do_show_command): ... them.  New.
1712         (do_set_command): Call observer_notify_command_param_changed if
1713         notify_command_param_changed_p returns true.
1714         (cmd_show_list): Caller update.
1715         * auto-load.c (set_auto_load_cmd): Likewise.
1716         * remote.c (show_remote_cmd): Likewise.
1717         * cli/cli-setshow.h: Update declarations.
1718         * top.c (execute_command): Call do_set_command and do_show_command.
1719
1720         * NEWS: Mention new MI notification.
1721         * mi/mi-interp.c: Declare mi_command_param_changed.
1722         (mi_interpreter_init): Attach mi_command_param_changed to
1723         observer command_param_changed.
1724         (mi_command_param_changed): New.
1725         Remove mi_suppress_breakpoint_notifications.
1726         Define global variable mi_suppress_notification.
1727         (mi_breakpoint_created): Update.
1728         (mi_breakpoint_deleted): Likewise.
1729         (mi_breakpoint_modified): Likewise.
1730         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1731         'gdb-set' and set mi_suppress_notification.
1732         * mi/mi-main.h: (mi_suppress_notification): New struct.
1733
1734 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1735             Jan Kratochvil  <jan.kratochvil@redhat.com>
1736
1737         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1738
1739 2012-08-09  Yao Qi  <yao@codesourcery.com>
1740
1741         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1742         (skiplist): Move it to skip.c.
1743         (init_cmd_lists): Remove code setting enablebreaklist and
1744         skiplist to NULL.
1745         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1746         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1747         skiplist.
1748         * gdbcmd.h: Likewise.
1749         * skip.c (_initialize_step_skip): Move 'skiplist' from
1750         cli/cli-cmds.c.
1751
1752 2012-08-09  Yao Qi  <yao@codesourcery.com>
1753
1754         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1755         * gnu-nat.c, symfile.c: Likewise.
1756
1757 2012-08-08  Aaron Gamble  <agamble@google.com>
1758
1759         * utils.c (prompt_for_continue_wait_time): New static global.
1760         (make_command_stats_cleanup): Initialize it.
1761         (report_command_stats): Subtract time waiting for user.
1762         (prompt_for_continue): Track time waiting for user.
1763         (defaulted_query): Track time waiting for user.
1764
1765 2012-08-08  Doug Evans  <dje@google.com>
1766
1767         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1768         UNOP_MEMVAL_TYPE.
1769         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1770         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1771         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1772         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1773         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1774         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1775         elt.
1776         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1777         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1778         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1779         (dump_prefix_expression): Handle OP_TYPE.
1780
1781 2012-08-08  Keith Seitz  <keiths@redhat.com>
1782
1783         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1784         addr_start.
1785
1786 2012-08-08  Doug Evans  <dje@google.com>
1787
1788         * linux-thread-db.c: #include "gdb_vecs.h".
1789         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1790         updated.
1791         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1792         (thread_db_load_search): Use a vector to iterate over path elements.
1793         Handle text appearing after "$pdir".
1794
1795         * gdb_string.h: Moved to ...
1796         * common/gdb_string.h: ... here.
1797         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1798         gdb_string.h and gdb_assert.h.
1799
1800 2012-08-08  Yao Qi  <yao@codesourcery.com>
1801
1802         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1803         (tic6x_value_to_register): Likewise.
1804         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1805         and set_gdbarch_value_to_register.
1806
1807 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1808             Jean-Marc Saffroy  <saffroy@gmail.com>
1809
1810         PR 11804
1811         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1812         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1813         * gcore.c (gcore_create_callback): New function comment.  Add modified
1814         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1815         according to MODIFIED.
1816         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1817         the passed modified value to FUNC.
1818         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1819         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1820         first.  New variables modified and has_anonymous.  Parse the lines of
1821         smaps file.  Add the passed MODIFIED value to FUNC.
1822         * procfs.c (find_memory_regions_callback): Add the passed modified
1823         value.
1824
1825 2012-08-06  Tom Tromey  <tromey@redhat.com>
1826
1827         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1828         (dwarf2_frame_cache): Use it.
1829         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1830         cache initialization constraint.
1831
1832 2012-08-06  Tom Tromey  <tromey@redhat.com>
1833
1834         PR python/14386:
1835         * varobj.c (update_dynamic_varobj_children): Don't call
1836         PyIter_Check.
1837
1838 2012-08-06  Tom Tromey  <tromey@redhat.com>
1839
1840         PR cli/14392:
1841         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1842
1843 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1844
1845         * NEWS: New entry for 'cd' default parameters.
1846         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1847
1848 2012-08-03  Tom Tromey  <tromey@redhat.com>
1849
1850         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1851         return.
1852
1853 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1854
1855         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1856         to attempting lseek/write.
1857         (inf_child_fileio_pread): Likewise for pread.
1858
1859 2012-08-02  Yao Qi  <yao@codesourcery.com>
1860
1861         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1862         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1863         add_setshow_zinteger_cmd.
1864         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1865         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1866         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1867         instead of add_setshow_zinteger_cmd.
1868         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1869         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1870         instead of add_setshow_zinteger_cmd.
1871         * frame.c (frame_debug): Add 'unsigned'.
1872         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1873         add_setshow_zinteger_cmd.
1874         * frame.h: Update the declaration of 'frame_debug'.
1875         * gdbtypes.c (overload_debug): Add 'unsigned'.
1876         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1877         add_setshow_zinteger_cmd.
1878         * inferior.h: Update declaration of 'debug_infrun'.
1879         * infrun.c (debug_infrun): Add 'unsigned'.
1880         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1881         add_setshow_zinteger_cmd.
1882         * jit.c (jit_debug): Add 'unsigned'.
1883         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1884         add_setshow_zinteger_cmd.
1885         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1886         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1887         instead of add_setshow_zinteger_cmd.
1888         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1889         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1890         add_setshow_zinteger_cmd.
1891         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1892         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1893         instead of add_setshow_zinteger_cmd.
1894         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1895         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1896         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1897         intead of add_setshow_zinteger_cmd.
1898         * mips-tdep.c (mips_debug): Add 'unsigned'.
1899         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1900         instead of add_setshow_zinteger_cmd.
1901         * monitor.c (monitor_debug): Add 'unsigned'.
1902         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1903         add_setshow_zinteger_cmd.
1904         * observer.c (observer_debug): Add 'unsigned'.
1905         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1906         add_setshow_zinteger_cmd.
1907         * parse.c (expressiondebug): Add 'unsigned'.
1908         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1909         add_setshow_zinteger_cmd.
1910         * record.c (record_debug): Add 'unsigned'.
1911         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1912         add_setshow_zinteger_cmd.
1913         * record.h: Update the declaration of 'record_debug'.
1914         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1915         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1916         add_setshow_zinteger_cmd.
1917         * serial.c (global_serial_debug_p): Add 'unsigned'.
1918         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1919         add_setshow_zinteger_cmd.
1920         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1921         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1922         add_setshow_zinteger_cmd.
1923         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1924         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1925         add_setshow_zinteger_cmd.
1926         * target.c (targetdebug): Add 'unsigned'.
1927         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1928         add_setshow_zinteger_cmd.
1929         * valops.c (overload_debug): Add 'unsigned'.
1930         * varobj.c (varobjdebug): Add 'unsigned'.
1931         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1932         add_setshow_zinteger_cmd.
1933         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1934         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1935         instead of add_setshow_zinteger_cmd.
1936
1937         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1938         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1939         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1940         instead of add_setshow_zinteger_cmd.
1941         * gdbarch.c, gdbarch.h: Re-generated.
1942
1943 2012-08-02  Yao Qi  <yao@codesourcery.com>
1944
1945         * nto-tdep.c: Don't include cli/cli-decode.h and
1946         cli/cli-cmds.h.
1947         (_initialize_nto_tdep): Remove.
1948         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1949         Remove field.
1950         Remove macro nto_internal_debugging.
1951
1952 2012-08-01  Richard Henderson  <rth@redhat.com>
1953
1954         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1955         (mep-*-*) [gdb_target_obs]: Likewise.
1956
1957 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
1958
1959         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1960         linux_get_siginfo_type.
1961
1962 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1963
1964         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1965         AT_ENTRY_POINT.
1966         (call_function_by_hand) <ON_STACK>: Call write_memory with
1967         gdbarch_breakpoint_from_pc, if possible.
1968         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1969         here.
1970
1971 2012-07-31  Yao Qi  <yao@codesourcery.com>
1972
1973         * tracepoint.c: Add 'static' for some variables.
1974
1975 2012-07-31  Yao Qi  <yao@codesourcery.com>
1976
1977         * go32-nat.c: Declare _initialize_go32_nat.
1978         * ser-go32.c: Declare _initialize_ser_dos.
1979         * top.c (do_chdir_cleanup): Add 'static'.
1980
1981 2012-07-30  Keith Seitz  <keiths@redhat.com>
1982
1983         * linespec.c (linespec_lex_number): A number followed
1984         by quotes is a valid number, too.
1985
1986 2012-07-30  Tom Tromey  <tromey@redhat.com>
1987
1988         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1989
1990 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
1991
1992         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1993         attempt to 4-byte-align HW breakpoint addresses for Thumb.
1994
1995 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
1996
1997         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1998         invalid or reevaluated to prevent prevent references to possibly
1999         delete'd type objects being left in the varobj.
2000
2001 2012-07-27  Tom Tromey  <tromey@redhat.com>
2002             Jan Kratochvil  <jan.kratochvil@redhat.com>
2003
2004         * copying.awk: Print buffer-read-only and vi ro markers.
2005         * copying.c: Rebuild.
2006         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2007         * gdbarch.c, gdbarch.h: Rebuild.
2008         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2009         buffer-read-only and vi ro markers.
2010         * features/arm-with-iwmmxt.c: Rebuild.
2011         * features/arm-with-m-fpa-layout.c: Rebuild.
2012         * features/arm-with-m-vfp-d16.c: Rebuild.
2013         * features/arm-with-m.c: Rebuild.
2014         * features/arm-with-neon.c: Rebuild.
2015         * features/arm-with-vfpv2.c: Rebuild.
2016         * features/arm-with-vfpv3.c: Rebuild.
2017         * features/i386/amd64-avx-linux.c: Rebuild.
2018         * features/i386/amd64-avx.c: Rebuild.
2019         * features/i386/amd64-linux.c: Rebuild.
2020         * features/i386/amd64.c: Rebuild.
2021         * features/i386/i386-avx-linux.c: Rebuild.
2022         * features/i386/i386-avx.c: Rebuild.
2023         * features/i386/i386-linux.c: Rebuild.
2024         * features/i386/i386-mmx-linux.c: Rebuild.
2025         * features/i386/i386-mmx.c: Rebuild.
2026         * features/i386/i386.c: Rebuild.
2027         * features/i386/x32-avx-linux.c: Rebuild.
2028         * features/i386/x32-avx.c: Rebuild.
2029         * features/i386/x32-linux.c: Rebuild.
2030         * features/i386/x32.c: Rebuild.
2031         * features/mips-dsp-linux.c: Rebuild.
2032         * features/mips-linux.c: Rebuild.
2033         * features/mips64-dsp-linux.c: Rebuild.
2034         * features/mips64-linux.c: Rebuild.
2035         * features/rs6000/powerpc-32.c: Rebuild.
2036         * features/rs6000/powerpc-32l.c: Rebuild.
2037         * features/rs6000/powerpc-403.c: Rebuild.
2038         * features/rs6000/powerpc-403gc.c: Rebuild.
2039         * features/rs6000/powerpc-405.c: Rebuild.
2040         * features/rs6000/powerpc-505.c: Rebuild.
2041         * features/rs6000/powerpc-601.c: Rebuild.
2042         * features/rs6000/powerpc-602.c: Rebuild.
2043         * features/rs6000/powerpc-603.c: Rebuild.
2044         * features/rs6000/powerpc-604.c: Rebuild.
2045         * features/rs6000/powerpc-64.c: Rebuild.
2046         * features/rs6000/powerpc-64l.c: Rebuild.
2047         * features/rs6000/powerpc-7400.c: Rebuild.
2048         * features/rs6000/powerpc-750.c: Rebuild.
2049         * features/rs6000/powerpc-860.c: Rebuild.
2050         * features/rs6000/powerpc-altivec32.c: Rebuild.
2051         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2052         * features/rs6000/powerpc-altivec64.c: Rebuild.
2053         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2054         * features/rs6000/powerpc-cell32l.c: Rebuild.
2055         * features/rs6000/powerpc-cell64l.c: Rebuild.
2056         * features/rs6000/powerpc-e500.c: Rebuild.
2057         * features/rs6000/powerpc-e500l.c: Rebuild.
2058         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2059         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2060         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2061         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2062         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2063         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2064         * features/rs6000/powerpc-vsx32.c: Rebuild.
2065         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2066         * features/rs6000/powerpc-vsx64.c: Rebuild.
2067         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2068         * features/rs6000/rs6000.c: Rebuild.
2069         * features/s390-linux32.c: Rebuild.
2070         * features/s390-linux32v1.c: Rebuild.
2071         * features/s390-linux32v2.c: Rebuild.
2072         * features/s390-linux64.c: Rebuild.
2073         * features/s390-linux64v1.c: Rebuild.
2074         * features/s390-linux64v2.c: Rebuild.
2075         * features/s390x-linux64.c: Rebuild.
2076         * features/s390x-linux64v1.c: Rebuild.
2077         * features/s390x-linux64v2.c: Rebuild.
2078         * features/tic6x-c62x-linux.c: Rebuild.
2079         * features/tic6x-c62x.c: Rebuild.
2080         * features/tic6x-c64x-linux.c: Rebuild.
2081         * features/tic6x-c64x.c: Rebuild.
2082         * features/tic6x-c64xp-linux.c: Rebuild.
2083         * features/tic6x-c64xp.c: Rebuild.
2084
2085 2012-07-27  Tom Tromey  <tromey@redhat.com>
2086
2087         * c-exp.y (classify_name): Avoid assignment in condition.
2088
2089 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2090
2091         * amd64-windows-tdep.c: Include "frame.h".
2092         (amd64_windows_skip_trampoline_code): New function.
2093         (amd64_windows_init_abi): Add trampoline registration.
2094
2095 2012-07-27  Yao Qi  <yao@codesourcery.com>
2096
2097         * tracepoint.c (cur_traceframe_number): Remove.
2098         (set_tfile_traceframe): Remove.
2099         (tfile_trace_find, tfile_fetch_registers): Update callers.
2100         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2101         (tfile_open, tfile_trace_find): Likewise.
2102
2103 2012-07-27  Yao Qi  <yao@codesourcery.com>
2104
2105         * thread.c (switch_to_thread): Don't call registers_changed.
2106
2107 2012-07-26  Tom Tromey  <tromey@redhat.com>
2108
2109         * Makefile.in (SFILES): Remove objc-exp.y.
2110         (YYFILES): Remove objc-exp.c.
2111         (YYOBJ): Remove objc-exp.o.
2112         (local-maintainer-clean): Don't mention objc-exp.c.
2113         * c-exp.y: Include objc-lang.h.
2114         (%union) <class>: New field.
2115         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2116         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2117         Objective C productions.
2118         (msglist, msgarglist, msgarg): New productions.
2119         (array_mod, func_mod, operator): Clone productions for
2120         OBJC_LBRAC.
2121         (parse_string_or_char): Handle '@' strings.
2122         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2123         (classify_name): Check la_name_of_this.  Recognize ObjC class
2124         names.
2125         * objc-exp.y: Remove.
2126         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2127         * objc-lang.h (objc_parse, objc_error): Don't declare.
2128
2129 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2130
2131         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2132
2133 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2134
2135         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2136         and decrement.
2137
2138 2012-07-26  Tom Tromey  <tromey@redhat.com>
2139
2140         * copying.c: Rebuild.
2141         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2142         'no_class'.
2143
2144 2012-07-26  Tom Tromey  <tromey@redhat.com>
2145
2146         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2147         immediate_quit.
2148         (print_objfile_statistics): Likewise.
2149         (maintenance_print_symbols): Likewise.
2150         (maintenance_print_msymbols): Likewise.
2151         (maintenance_print_objfiles): Likewise.
2152         * psymtab.c (print_partial_symbols): Call QUIT.
2153         (maintenance_print_psymbols): Likewise.  Don't modify
2154         immediate_quit.
2155         * copying.c (show_copying_command): Don't modify immediate_quit.
2156         (show_warranty_command): Likewise.
2157         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2158
2159 2012-07-26  Keith Seitz  <keiths@redhat.com>
2160
2161         * linespec.c (linespec_lexer_lex_number): The input
2162         is also a valid number if the next character is a comma
2163         or colon.
2164
2165 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2166
2167         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2168         configure options.
2169
2170 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2171
2172         * machoread.c: Include gdb_bfd.h.
2173
2174 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2175
2176         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2177         offset.
2178
2179 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2180
2181         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2182         SIZE to size_t.
2183         (dwarf2_evaluate_loc_desc): Likewise.
2184         (dwarf2_loc_desc_needs_frame): Likewise.
2185         (locexpr_describe_location_1): Likewise.
2186         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2187         size_t.
2188         (struct dwarf2_loclist_baton): Likewise.
2189         * dwarf2read.c (struct dwarf_block): Likewise.
2190         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2191         (decode_locdesc): Expand SIZE and I to size_t.
2192
2193 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2194
2195         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2196
2197 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2198
2199         * doublest.c (convert_doublest_to_floatformat): If the exponent
2200         is too small, treat the value as zero.  If the exponent is too
2201         large, treat the value as infinity.
2202
2203 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2204
2205         * configure.ac: Add --enable-lmcheck configure option.
2206         * configure: Regenerate.
2207
2208 2012-07-25  Tom Tromey  <tromey@redhat.com>
2209
2210         * NEWS: Mention maint info bfds.
2211         * gdb_bfd.c (all_bfds): New global.
2212         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2213         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2214         New functions.
2215
2216 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2217
2218         * configure.tgt: Add v850*-*-rtems*.
2219
2220 2012-07-25  Tom Tromey  <tromey@redhat.com>
2221
2222         * macrotab.c (macro_bcache_str): Remove cast.
2223
2224 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2225
2226         * linespec.c (linespec_lexer_lex_number): Update comments,
2227         change the return and add check to make sure the input is
2228         the decimal numbers.
2229         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2230         false, call linespec_lexer_lex_string.
2231
2232 2012-07-24  Tom Tromey  <tromey@redhat.com>
2233
2234         * symfile.c (symbol_file_add): Don't open BFD twice.
2235
2236 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2237
2238         * breakpoint.c (create_breakpoint): Store condition for pending
2239         breakpoints.
2240
2241 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2242
2243         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2244         (m68k_return_value): Handle complex types like structures.
2245         (m68k_svr4_return_value): Likewise.
2246
2247 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2248
2249         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2250         parameters to bfd_get_section_name.
2251
2252 2012-07-24  Yao Qi  <yao@codesourcery.com>
2253
2254         * cli/cli-setshow.c: Handle case 'var_uinteger'
2255         and 'var_zuninteger' together.  Handle case 'var_integer' and
2256         'var_zinteger' together.
2257
2258 2012-07-23  Keith Seitz  <keiths@redhat.com>
2259
2260         * linespec.c (convert_linespec_to_sal): Don't add
2261         any symbols to the result vector if symbol_to_sal
2262         returns zero.
2263
2264 2012-07-23  Keith Seitz  <keiths@redhat.com>
2265
2266         * linespec.c (decode_objc): Record the function name
2267         in the linespec.
2268
2269 2012-07-23  Tom Tromey  <tromey@redhat.com>
2270
2271         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2272         counting.
2273         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2274         (map_vmap): Acquire a reference to the BFD.
2275
2276 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2277
2278         * p-valprint.c (pascal_object_print_value): Replace potentially
2279         unsafe alloca with xmalloc/xfree.
2280         * valops.c (search_struct_method): Likewise.
2281
2282 2012-07-23  Tom Tromey  <tromey@redhat.com>
2283
2284         * solib-svr4.c (enable_break): Update.
2285         * bfd-target.h (target_bfd_reopen): Update documentation.
2286
2287 2012-07-23  Tom Tromey  <tromey@redhat.com>
2288
2289         * symfile.c (separate_debug_file_exists): Update.
2290         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2291         (reread_symbols): Update.
2292         * elfread.c (build_id_verify): Update.
2293         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2294         bfd_open_maybe_remote.
2295
2296 2012-07-23  Tom Tromey  <tromey@redhat.com>
2297
2298         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2299
2300 2012-07-23  Tom Tromey  <tromey@redhat.com>
2301
2302         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2303         and 'abfd'.
2304         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2305         and 'abfd'.
2306         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2307         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2308         'abfd'.
2309         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2310         * objfiles.c (allocate_objfile): Acquire a new reference.
2311         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2312         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2313         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2314         a cleanup for 'nbfd'.
2315         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2316         for 'nbfd'.
2317         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2318         make a cleanup for 'abfd'.
2319         (symbol_file_add): Make a BFD cleanup.
2320
2321 2012-07-23  Tom Tromey  <tromey@redhat.com>
2322
2323         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2324         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2325         * corelow.c (core_open): Use gdb_bfd_fopen.
2326         * dsrec.c (load_srec): Use gdb_bfd_openr.
2327         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2328         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2329         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2330         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2331         (gdb_bfd_fdopenr): New functions.
2332         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2333         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2334         (gdb_bfd_fdopenr): Declare.
2335         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2336         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2337         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2338         gdb_bfd_openr_next_archived_file.
2339         (macho_check_dsym): Use gdb_bfd_openr.
2340         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2341         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2342         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2343         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2344         gdb_bfd_openr.
2345         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2346         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2347         gdb_bfd_openr_next_archived_file.
2348         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2349         Use gdb_bfd_openr.
2350         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2351         gdb_bfd_openr.
2352         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2353         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2354         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2355         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2356         (symfile_bfd_open): Use gdb_bfd_fopen.
2357         (generic_load): Use gdb_bfd_openr.
2358         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2359
2360 2012-07-23  Tom Tromey  <tromey@redhat.com>
2361
2362         * bfd-target.c (target_bfd_reopen): Update.
2363         * cli/cli-dump.c (bfd_openr_with_cleanup)
2364         (bfd_openw_with_cleanup): Update.
2365         * corelow.c (core_open): Update.
2366         * dsrec.c (load_srec): Update.
2367         * exec.c (exec_file_attach): Update.
2368         * gcore.c (create_gcore_bfd): Update.
2369         * gdb_bfd.c (gdb_bfd_ref): Return void.
2370         (gdb_bfd_open): Update.
2371         * gdb_bfd.h (gdb_bfd_ref): Return void.
2372         Update comments.
2373         * jit.c (jit_bfd_try_read_symtab): Update.
2374         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2375         * machoread.c (macho_symfile_read_all_oso): Update.
2376         (macho_check_dsym): Update.
2377         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2378         * remote-m32r-sdi.c (m32r_load): Update.
2379         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2380         * rs6000-nat.c (add_vmap): Update.
2381         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2382         Update.
2383         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2384         * solib-spu.c (spu_bfd_open): Update.
2385         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2386         * spu-linux-nat.c (spu_bfd_open): Update.
2387         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2388         (generic_load): Update.
2389         * windows-nat.c (windows_make_so): Update.
2390
2391 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2392
2393         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2394
2395 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2396
2397         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2398         SIGTRAMP_FRAME unwinding.
2399
2400 2012-07-20  Doug Evans  <dje@google.com>
2401
2402         * NEWS: Document new options "set/show use-deprecated-index-sections",
2403         and delete reference to --use-deprecated-index-sections.
2404         * symfile.h (use_deprecated_index_sections): Delete.
2405         * dwarf2read.c (use_deprecated_index_sections): Make static.
2406         (read_index_from_section): Update wording of how to load
2407         deprecated index sections.
2408         (_initialize_dwarf2_read): New options
2409         "set/show use-deprecated-index-sections".
2410         * main.c (captured_main): Delete --use-deprecated-index-sections.
2411
2412 2012-07-20  Pedro Alves  <palves@redhat.com>
2413
2414         PR threads/11692
2415         PR gdb/12203
2416
2417         * infrun.c (handle_inferior_event) <new thread>: Don't special
2418         case minus_one_ptid.
2419         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2420         * linux-thread-db.c (thread_get_info_callback): Don't return early
2421         if the thread is zombie.
2422         (thread_from_lwp): Change return type to void.  Rewrite stale
2423         comment.
2424         (attach_thread): Don't return early if the thread is zombie,
2425         instead set its "dying" flag.
2426         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2427         (find_new_threads_callback): Don't return early if the thread is
2428         zombie.
2429
2430 2012-07-20  Pedro Alves  <palves@redhat.com>
2431
2432         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2433         * target.c (target_wait): Likewise.
2434         (str_comma_list_concat_elem, do_option, target_options_to_string):
2435         New functions.
2436         * target.h (target_options_to_string): Declare.
2437
2438 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2439             Tom Tromey  <tromey@redhat.com>
2440
2441         * dwarf2read.c (dwarf_decode_macros)
2442         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2443         DW_MACRO_GNU_transparent_include_alt>: New cases.
2444         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2445         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2446
2447 2012-07-20  Tom Tromey  <tromey@redhat.com>
2448
2449         * dwarf2read.c (try_open_dwo_file): Don't call
2450         gdb_bfd_stash_filename.
2451
2452 2012-07-20  Pedro Alves  <palves@redhat.com>
2453
2454         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2455         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2456         (i386_process_record): Tweak description comments.
2457
2458 2012-07-20  Pedro Alves  <palves@redhat.com>
2459
2460         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2461         (i386_process_record): Use record_read_memory.
2462         * record.c (record_read_memory): New function.
2463         (record_arch_list_add_mem, record_exec_insn): Use
2464         record_read_memory.
2465         * record.h (record_read_memory): Declare.
2466
2467 2012-07-20  Yao Qi  <yao@codesourcery.com>
2468
2469         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2470         NULL for xfree.
2471
2472 2012-07-19  Pedro Alves  <palves@redhat.com>
2473
2474         * record.c (record_resume): Ask the target beneath to report all
2475         signals.
2476
2477 2012-07-19  Doug Evans  <dje@google.com>
2478
2479         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2480         there's no section at address zero.
2481         (dwarf2_record_block_ranges): Ditto.
2482
2483 2012-07-19  Yao Qi  <yao@codesourcery.com>
2484
2485         * command.h, remote.c: Fix a typo in comment.
2486
2487 2012-07-19  Tom Tromey  <tromey@redhat.com>
2488
2489         PR exp/13206:
2490         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2491         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2492         OP_DECLTYPE>: New cases.
2493         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2494         (type_exp): Add new productions.
2495         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2496         and decltype.
2497         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2498         New case.
2499         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2500         OP_DECLTYPE>: New case.
2501         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2502         New case.
2503         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2504         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2505
2506 2012-07-19  Tom Tromey  <tromey@redhat.com>
2507
2508         * c-exp.y (enum token_flags): New.
2509         (struct token) <cxx_only>: Remove.
2510         <flags>: New field.
2511         (tokentab3, tokentab2, ident_tokens): Update.
2512         (lex_one_token): Update.  Handle FLAG_SHADOW.
2513
2514 2012-07-19  Tom Tromey  <tromey@redhat.com>
2515
2516         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2517         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2518         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2519         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2520         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2521         type_exp production where appropriate.
2522         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2523         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2524         <UNOP_MEMVAL_TYPE>: New case.
2525         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2526         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2527         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2528         <UNOP_MEMVAL_TYPE>: New case.
2529         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2530         UNOP_REINTERPRET_CAST>: Update.
2531         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2532         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2533         UNOP_REINTERPRET_CAST>: Update.
2534         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2535         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2536         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2537         constants.
2538
2539 2012-07-19  Yao Qi  <yao@codesourcery.com>
2540             Jan Kratochvil <jan.kratochvil@redhat.com>
2541
2542         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2543         and case 'var_optional_filename' together.
2544         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2545         instead of add_setshow_optional_filename_cmd for setshow command
2546         'args'.  Set completer for 'set args'.
2547
2548 2012-07-18  Doug Evans  <dje@google.com>
2549
2550         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2551         * common/gdb_vecs.c: New file, contents from utils.c.
2552         * common/host-defs.h: New file, contents from defs.h.
2553         * utils.h: New file, contents from defs.h.
2554         * defs.h: Move all declarations of objects defined in utils.c
2555         to utils.h (except QUIT() and related).
2556         #include "utils.h", "host-defs.h".
2557         * probe.h (probe_p): Move here from gdb_vecs.h.
2558         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2559         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2560         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2561         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2562         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2563         (COMMON_OBS): Add gdb_vecs.o.
2564         (gdb_vecs.o): New rule.
2565
2566 2012-07-18  Keith Seitz  <keiths@redhat.com>
2567
2568         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2569         parameter.  If non-zero, use SYMNAME as the canonical name
2570         for the SaL.
2571         Update all callers.
2572         (convert_linespec_to_sals): Use add_sal_to_sals for
2573         expressions, too.
2574         (decode_line_full): No need to "fill in missing canonical names"
2575         anymore. Simply make cleanups for the allocated names.
2576
2577 2012-07-18  Keith Seitz  <keiths@redhat.com>
2578
2579         * linespec.c (struct linespec): Constify expression,
2580         source_filename, function_name, and label_name.
2581         (symbol_not_found_error): Make all parameters const.
2582         (linespec_parser_delete): No need to check for NULL
2583         when using xfree. Cast const char * to char * for xfree.
2584
2585 2012-07-18  Keith Seitz  <keiths@redhat.com>
2586
2587         * breakpoint.c (invalid_thread_id_error): New function.
2588         (find_condition_and_thread): Use invalid_thread_id_error.
2589         (watch_command_1): Likewise.
2590
2591 2012-07-18  Tom Tromey  <tromey@redhat.com>
2592
2593         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2594         * contrib/cc-with-tweaks.sh: New file.
2595
2596 2012-07-18  Tom Tromey  <tromey@redhat.com>
2597
2598         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2599         (locate_dwz_sections): Recognize .gdb_index.
2600         (create_cus_from_index_list): New function.
2601         (create_cus_from_index): Use it.  Handle .dwz data.
2602         (read_index_from_section): New function, extracted from
2603         dwarf2_read_index.
2604         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2605         if needed.
2606
2607 2012-07-18  Tom Tromey  <tromey@redhat.com>
2608
2609         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2610         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2611         <is_dwz>: New field.
2612         (struct dwz_file): New.
2613         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2614         (locate_dwz_sections, dwarf2_get_dwz_file)
2615         (get_abbrev_section_for_cu): New functions.
2616         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2617         (read_and_check_type_unit_head): Add abbrev_section argument.
2618         (create_debug_types_hash_table): Update.
2619         (init_cutu_and_read_dies): Use proper abbrev section.
2620         (init_cutu_and_read_dies_no_follow): Likewise.
2621         (set_partial_user): Do nothing if PST==NULL.
2622         (read_comp_units_from_section): New function.
2623         (create_all_comp_units): Use it.
2624         (scan_partial_symbols, partial_die_parent_scope): Update.
2625         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2626         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2627         (find_partial_die): Add offset_in_dwz argument.  Update.
2628         (guess_partial_die_structure_name, fixup_partial_die): Update.
2629         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2630         DW_FORM_GNU_strp_alt.
2631         (read_indirect_string_from_dwz): New function.
2632         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2633         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2634         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2635         (follow_die_offset): Add offset_in_dwz argument.
2636         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2637         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2638         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2639         Handle new macro forms.
2640         (dwarf_decode_macros): Update.
2641         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2642         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2643         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2644         (create_debug_types_hash_table): Use correct abbrev section.
2645         (get_debug_line_section): New function.
2646         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2647         (process_full_comp_unit): Pass 'required' argument to
2648         end_symtab_get_static_block.
2649         * buildsym.h (end_symtab_get_static_block): Update.
2650         * buildsym.c (end_symtab_get_static_block): Add 'required'
2651         argument.
2652         (end_symtab, end_expandable_symtab): Update.
2653
2654 2012-07-18  Tom Tromey  <tromey@redhat.com>
2655
2656         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2657         (pagesize): Remove.
2658         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2659         (zlib_decompress_section): Remove.
2660         (dwarf2_read_section): Use gdb_bfd_map_section.
2661         (munmap_section_buffer): Remove.
2662         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2663         munmap_section_buffer.
2664         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2665         (struct gdb_bfd_section_data): New.
2666         (free_one_bfd_section): New function.
2667         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2668         (get_section_descriptor, zlib_decompress_section)
2669         (gdb_bfd_map_section): New functions.
2670         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2671
2672 2012-07-18  Tom Tromey  <tromey@redhat.com>
2673
2674         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2675
2676 2012-07-18  Tom Tromey  <tromey@redhat.com>
2677
2678         * gdb_bfd.c (struct gdb_bfd_data): New.
2679         (gdb_bfd_cache): New global.
2680         (struct gdb_bfd_cache_search): New.
2681         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2682         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2683         * gdb_bfd.h (gdb_bfd_open): Declare.
2684
2685 2012-07-18  Tom Tromey  <tromey@redhat.com>
2686
2687         * utils.c (make_cleanup_bfd_unref): Rename from
2688         make_cleanup_bfd_close.
2689         * defs.h (make_cleanup_bfd_unref): Rename from
2690         make_cleanup_bfd_close.
2691         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2692         (bfd_openw_with_cleanup): Update.
2693         * corelow.c (core_open): Update.
2694         * dsrec.c (load_srec): Update.
2695         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2696         * remote-m32r-sdi.c (m32r_load): Update.
2697         * remote-mips.c (mips_load_srec): Update.
2698         (pmon_load_fast): Update.
2699         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2700         Update.
2701         (darwin_bfd_open): Update.
2702         * solib.c (solib_bfd_fopen): Update.
2703         * symfile-mem.c (symbol_file_add_from_memory): Update.
2704         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2705         (symfile_bfd_open): Update.
2706         (generic_load): Update.
2707
2708 2012-07-18  Tom Tromey  <tromey@redhat.com>
2709
2710         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2711         (pmon_load_fast): Likewise.
2712         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2713         (m32r_upload_command): Likewise.
2714         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2715         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2716         Use make_cleanup_bfd_close.
2717
2718 2012-07-18  Tom Tromey  <tromey@redhat.com>
2719
2720         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2721         gdb_bfd_stash_filename.
2722         (load_command): Open the new BFD before freeing the old.
2723         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2724         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2725         Call gdb_bfd_stash_filename.
2726         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2727         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2728         gdb_bfd_stash_filename.
2729         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2730         Free found_pathname.
2731         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2732         gdb_bfd_stash_filename.
2733         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2734         * machoread.c (macho_add_oso_symfile): Call
2735         gdb_bfd_stash_filename.
2736         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2737         gdb_bfd_stash_filename.
2738         (macho_check_dsym): Don't copy filename.  Call
2739         gdb_bfd_stash_filename.
2740         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2741         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2742         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2743         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2744         * exec.c (exec_close): Don't free the BFD's filename.
2745         (exec_file_attach): Don't copy the filename.  Call
2746         gdb_bfd_stash_filename.
2747         * corelow.c (core_close): Don't free the BFD's filename.
2748         (core_open): Call gdb_bfd_stash_filename.
2749         * corefile.c (reopen_exec_file): Remove #if 0 code.
2750         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2751         pathname.
2752         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2753
2754 2012-07-18  Tom Tromey  <tromey@redhat.com>
2755
2756         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2757         gdb_bfd_unref.
2758         (free_dwo_file): Use gdb_bfd_unref.
2759         * cli/cli-dump.c: Include gdb_bfd.h.
2760         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2761         (bfd_openr_with_cleanup): Likewise.
2762         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2763         gdb_bfd_unref.
2764         * utils.c: Include gdb_bfd.h.
2765         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2766         * symfile.c: Include gdb_bfd.h.
2767         (separate_debug_file_exists): Use gdb_bfd_unref.
2768         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2769         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2770         (generic_load): Use gdb_bfd_ref.
2771         (reread_symbols): Use gdb_bfd_unref.
2772         * symfile-mem.c: Include gdb_bfd.h.
2773         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2774         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2775         * solib.c: Include gdb_bfd.h.
2776         (solib_bfd_fopen): Use gdb_bfd_ref.
2777         (solib_bfd_open): Use gdb_bfd_unref.
2778         (free_so_symbols): Use gdb_bfd_unref.
2779         (reload_shared_libraries_1): Use gdb_bfd_unref.
2780         * solib-spu.c: Include gdb_bfd.h.
2781         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2782         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2783         gdb_bfd_unref.
2784         * solib-frv.c: Include gdb_bfd.h.
2785         (enable_break2): Use gdb_bfd_unref.
2786         * solib-dsbt.c: Include gdb_bfd.h.
2787         (enable_break2): Use gdb_bfd_unref.
2788         * solib-darwin.c: Include gdb_bfd.h.
2789         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2790         gdb_bfd_unref.
2791         (darwin_bfd_open): Use gdb_bfd_unref.
2792         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2793         * remote-mips.c: Include gdb_bfd.h.
2794         (mips_load_srec): Use gdb_bfd_ref.
2795         (pmon_load_fast): Use gdb_bfd_ref.
2796         * remote-m32r-sdi.c: Include gdb_bfd.h.
2797         (m32r_load): Use gdb_bfd_ref.
2798         * record.c: Include gdb_bfd.h.
2799         (record_save_cleanups): Use gdb_bfd_unref.
2800         (cmd_record_save): Use gdb_bfd_unref.
2801         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2802         gdb_bfd_unref.
2803         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2804         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2805         * objfiles.c: Include gdb_bfd.h.
2806         (free_objfile): Use gdb_bfd_unref.
2807         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2808         gdb_bfd.c.
2809         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2810         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2811         (macho_check_dsym): Likewise.
2812         * m32r-rom.c: Include gdb_bfd.h.
2813         (m32r_load): Use gdb_bfd_ref.
2814         (m32r_upload_command): Use gdb_bfd_ref.
2815         * jit.c: Include gdb_bfd.h.
2816         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2817         * gdb_bfd.h: New file.
2818         * gdb_bfd.c: New file.
2819         * gcore.c: Include gdb_bfd.h.
2820         (create_gcore_bfd): Use gdb_bfd_ref.
2821         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2822         (gcore_command): Use gdb_bfd_unref.
2823         * exec.c: Include gdb_bfd.h.
2824         (exec_close): Use gdb_bfd_unref.
2825         (exec_close_1): Use gdb_bfd_unref.
2826         (exec_file_attach): Use gdb_bfd_ref.
2827         * elfread.c: Include gdb_bfd.h.
2828         (build_id_verify): Use gdb_bfd_unref.
2829         * dsrec.c: Include gdb_bfd.h.
2830         (load_srec): Use gdb_bfd_ref.
2831         * corelow.c: Include gdb_bfd.h.
2832         (core_close): Use gdb_bfd_unref.
2833         (core_open): Use gdb_bfd_ref.
2834         * bfd-target.c: Include gdb_bfd.h.
2835         (target_bfd_xclose): Use gdb_bfd_unref.
2836         (target_bfd_reopen): Use gdb_bfd_ref.
2837         * Makefile.in (SFILES): Add gdb_bfd.c.
2838         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2839         (COMMON_OBS): Add gdb_bfd.o.
2840
2841 2012-07-18  Keith Seitz  <keiths@redhat.com>
2842
2843         * breakpoint.c (find_condition_and_thread): Initialize
2844         TASK and REST.
2845         (create_breakpiont): find_condition_and_thread will now
2846         initialize COND_STRING, THREAD, and REST (and TASK).
2847         (addr_string_to_sals): Likewise.
2848
2849 2012-07-18  Pedro Alves  <palves@redhat.com>
2850
2851         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2852         Pull the single step breakpoints out of the target.
2853
2854 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2855
2856         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2857         * stap-probe.c (compile_probe_arg): Likewise.
2858
2859 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2860
2861         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2862         (elf_compile_to_ax): Likewise.
2863         * infrun.c (insert_exception_resume_from_probe): Likewise.
2864         (check_exception_resume): Remove `objfile' variable.
2865         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2866         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2867         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2868         (compare_entries): Rename to...
2869         (compare_probes): ...this.  Adjust function to work with
2870         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2871         respectively.
2872         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2873         `VEC (probe_p) *'.
2874         (print_ui_out_info): Adjust argument to be `struct probe *'.
2875         (info_probes_for_ops): Adjust internal computations to use
2876         `VEC (probe_p) *'.
2877         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2878         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2879         gen_info_probes_table_values>: Remove `objfile' argument.
2880         (struct probe) <objfile>: New field.
2881         (find_probe_by_pc): Remove `objfile' argument.
2882         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2883         (stap_get_probe_argument_count): Likewise.
2884         (stap_get_arg): Likewise.
2885         (stap_evaluate_probe_argument): Likewise.
2886         (stap_compile_to_ax): Likewise.
2887         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2888         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2889         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2890         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2891         sym_compile_to_ax>: Likewise.
2892
2893 2012-07-18  Terry Guo  <terry.guo@arm.com>
2894
2895         PR 14329
2896         * defs.h (GDB_MI_MSG_WIDTH): New.
2897         * ser_base (ser_base_read_error_fd): New function.
2898         (do_ser_base_readchar): Poll error file descriptor as well as
2899         standard output.
2900         (generic_readchar): Refactor error handling.
2901
2902 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2903
2904         * NEWS: Create a new section for the next release branch.
2905         Rename the section of the current branch, now that it has
2906         been cut.
2907
2908 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2909
2910         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2911         * version.in: Bump version to 7.5.50.20120718-cvs.
2912
2913 2012-07-17  Keith Seitz  <keiths@redhat.com>
2914
2915         * linespec.c (linespec_parse_line_offset): Make parameter
2916         const.
2917
2918 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2919
2920         PR 11914
2921         * f-valprint.c (info_common_command): New variable frame_id.
2922         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2923         * printcmd.c (print_variable_and_value): Extend function comment.
2924         Add comment for invalidated FRAME.
2925         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2926         FI form FRAME_ID after each print_frame_local_vars.
2927         (struct print_variable_and_value_data): Change frame to frame_id.
2928         (do_print_variable_and_value): New variable frame, initialize it from
2929         p->frame_id.  Add comment for invalidated FRAME.
2930         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2931         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2932         for invalidated FRAME.
2933
2934 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2935             Pedro Alves  <palves@redhat.com>
2936
2937         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2938         loop.
2939
2940 2012-07-16  Tom Tromey  <tromey@redhat.com>
2941
2942         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2943
2944 2012-07-15  Doug Evans  <dje@google.com>
2945
2946         * dwarf2read.c (stmt_list_hash): New struct.
2947         (type_unit_group): Embed "per_cu" member, remove pointer.
2948         New union member "t", move member "tus" into it, all uses updated.
2949         New member "hash", replaces member "line_offset, all uses updated.
2950         (quick_file_names): Replace member "offset" with "hash", all uses
2951         updated.
2952         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2953         (hash_file_name_entry, eq_file_name_entry): Call them.
2954         (hash_type_unit_group, eq_type_unit_group): Ditto.
2955         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2956         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2957         (dw2_get_file_names): Update.
2958         (create_type_unit_group): Replace "per_cu" arg with "cu".
2959         All callers updated.  Fix "quick" (.gdb_index) handling.
2960         (get_type_unit_group): Replace "per_cu" arg with "cu".
2961         All callers updated.
2962         (build_type_unit_groups): Don't reset tu_stats.
2963
2964         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2965         "tab_cur_size".  Change member "tab" to be a htab_t.
2966         (create_filename_seen_cache): Update.
2967         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2968         (filename_seen): Update.
2969
2970 2012-07-13  Doug Evans  <dje@google.com>
2971
2972         * symtab.c (filename_seen): Update comment.
2973
2974 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2975             Doug Evans  <dje@google.com>
2976
2977         * buildsym.c (end_symtab_1): Split it to ...
2978         (end_symtab_get_static_block): ... this ...
2979         (end_symtab_from_static_block): ... and this function.
2980         (end_symtab, end_expandable_symtab): Call them.
2981         * buildsym.h (end_symtab_get_static_block)
2982         (end_symtab_from_static_block): New declarations.
2983         * dwarf2read.c (process_full_comp_unit): New variable static_block.
2984         Set its valid CU ranges.
2985
2986 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2987
2988         * dwarf2loc.c (disassemble_dwarf_expression): Handle
2989         DW_OP_GNU_parameter_ref.
2990
2991 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2992
2993         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2994         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2995
2996 2012-07-13  Doug Evans  <dje@google.com>
2997
2998         * symtab.c (output_source_filename): Delete unnecessary forward decl.
2999         (filename_seen_cache): New struct.
3000         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3001         (create_filename_seen_cache): New function.
3002         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3003         (filename_seen): Delete arg "first".  New arg "cache".  All callers
3004         updated.
3005         (output_source_filename_data): New struct.
3006         (output_source_filename): Delete arg "first".  New arg "data".
3007         All callers updated.
3008         (sources_info): Delete local "first".  New locals "data", "cleanups".
3009         Rewrite to use filename_seen_cache.
3010         (add_partial_filename_data): Delete member "first".  New member
3011         "filename_seen_cache".  All uses updated.
3012         (make_source_files_completion_list): Rewrite to use
3013         filename_seen_cache.
3014
3015 2012-07-12  Doug Evans  <dje@google.com>
3016
3017         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3018
3019 2012-07-10  Doug Evans  <dje@google.com>
3020
3021         PR gdb/13498
3022         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3023         all_type_unit_groups, type_unit_groups, tu_stats.
3024         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3025         All uses updated.  Add type_unit_group to union "s".
3026         (type_unit_group): New struct.
3027         (IS_TYPE_UNIT_GROUP): New macro.
3028         (abbrev_table): Delete unused member "section".
3029         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3030         (dw2_get_cu): Assert not used with type_unit_group.
3031         (dw2_get_primary_cu): New function.
3032         (dw2_build_type_unit_groups_reader): New function.
3033         (dw2_build_type_unit_groups): New function.
3034         (dw2_get_file_names): Assert not called on type units.
3035         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3036         Redo loop to iterate over type unit groups instead of type units.
3037         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3038         (read_abbrev_offset): New function.
3039         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3040         updated.
3041         (create_partial_symtab): New function.
3042         (process_psymtab_comp_unit_reader): Assert not used with type units.
3043         Call create_partial_symtab.
3044         (process_psymtab_type_unit): Delete.
3045         (hash_type_unit_group, eq_type_unit_group): New functions.
3046         (allocate_type_unit_groups_table): New function.
3047         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3048         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3049         (create_type_unit_group, get_type_unit_group): New functions.
3050         (tu_abbrev_offset): New struct.
3051         (sort_tu_by_abbrev_offset): New function.
3052         (add_type_unit_group_to_table): New function.
3053         (build_type_unit_groups): New function.
3054         (build_type_psymtabs_reader): New function.
3055         (build_type_psymtab_dependencies): New function.
3056         (build_type_psymtabs): Rewrite.
3057         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3058         is seen in a type unit.
3059         (process_queue): Move symtab expansion debugging printfs here.
3060         Call process_full_type_unit for type units.
3061         (compute_symtab_includes): Assert not called for type units.
3062         (process_cu_includes): Don't call compute_symtab_includes for
3063         type units.
3064         (process_full_type_unit): New function.
3065         (process_imported_unit_die): Flag an error if called for type units.
3066         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3067         updated.  Assert not called for type units.
3068         (read_file_scope): Call dwarf2_start_symtab.
3069         (setup_type_unit_groups): New function.
3070         (read_type_unit_scope): Rewrite.
3071         (abbrev_table_read_table): Initialize abbrev_table->offset.
3072         (abbrev_table_free_cleanup): New function.
3073         (dwarf2_start_symtab): New function.
3074         (load_full_type_unit): Assert not called for type unit groups.
3075         * buildsym.c (finish_block_internal): New arg "expandable".
3076         All callers updated.
3077         (start_symtab): Move most contents to ...
3078         (restart_symtab): ... here.  New function.
3079         (reset_symtab_globals): New function.
3080         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3081         Call reset_symtab_globals.
3082         (end_symtab, end_expandable_symtab): New functions.
3083         (set_missing_symtab, augment_type_symtab): New functions.
3084         * buildsym.h (end_expandable_symtab): Declare.
3085         (augment_type_symtab, restart_symtab): Declare.
3086         * psympriv.h (struct partial_symtab): New member "anonymous".
3087         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3088         anonymous psymtabs.
3089         (read_psymtabs_with_filename): Ditto.
3090         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3091         (expand_symtabs_matching_via_partial): Ditto.
3092         (dump_psymtab): Update.
3093         * dictionary.c (dict_add_pending): New function.
3094         * dictionary.h (dict_add_pending): Declare.
3095
3096 2012-07-09  Doug Evans  <dje@google.com>
3097
3098         * buildsym.c (start_subfile): Remove unnecessary check for
3099         name == NULL.
3100
3101         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3102
3103         * dwarf2read.c (load_full_type_unit): Simplify.
3104
3105         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3106         to struct signatured_type **.  All uses updated.
3107
3108         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3109         All callers updated.
3110
3111 2012-07-09  Tom Tromey  <tromey@redhat.com>
3112
3113         * c-exp.y (check_parameter_typelist): New function.
3114         (parameter_typelist): Call it.
3115         * eval.c (make_params): Handle '(void)' case.
3116         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3117         '(void)' case.
3118
3119 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3120
3121         * common/linux-ptrace.c: Include gdb_assert.h.
3122         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3123         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3124         stdint.h.
3125         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3126         functions.
3127         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3128         * linux-nat.c (linux_child_post_attach)
3129         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3130
3131 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3132
3133         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3134         nptl <2.7 bug workaround for core files.
3135
3136 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3137
3138         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3139         clearing.
3140         (save_siginfo): Remove.
3141         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3142         call.
3143         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3144         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3145         * linux-nat.h (struct lwp_info): Remove field siginfo.
3146
3147 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3148
3149         Code cleanup for the next patch.
3150         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3151         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3152         call for it.
3153         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3154         (ia64_linux_stopped_data_address):
3155         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3156         the return value.
3157         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3158         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3159         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3160         call for it.
3161
3162 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3163
3164         PR 14321
3165         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3166         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3167
3168 2012-07-06  Tom Tromey  <tromey@redhat.com>
3169
3170         * c-exp.y (DOTDOTDOT): New token.
3171         (func_mod, exp): Use parameter_typelist.
3172         (parameter_typelist): New production.
3173         (tokentab3): Add "..." token.
3174         * eval.c (make_params): Handle varargs.
3175         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3176         varargs.
3177
3178 2012-07-06  Tom Tromey  <tromey@redhat.com>
3179
3180         PR exp/9608:
3181         * c-exp.y (%union) <tvec>: Change type.
3182         (func_mod): Now uses <tvec> type.
3183         (exp): Update for tvec change.
3184         (direct_abs_decl): Push the typelist.
3185         (func_mod): Return a typelist.
3186         (nonempty_typelist): Update for tvec change.
3187         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3188         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3189         * parse.c (pop_type_list): New function.
3190         (push_typelist): New function.
3191         (follow_types): Handle tp_function_with_arguments.
3192         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3193         (enum type_pieces) <tp_function_with_arguments>: New constant.
3194         (union type_stack_elt) <typelist_val>: New field.
3195         (push_typelist): Declare.
3196
3197 2012-07-06  Tom Tromey  <tromey@redhat.com>
3198
3199         * c-exp.y (%union) <type_stack>: New field.
3200         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3201         (ptr_operator_ts): New production.
3202         (ptype): Update.
3203         * parse.c (type_stack_reserve): New function.
3204         (check_type_stack_depth): Use it.
3205         (pop_type_stack, append_type_stack, push_type_stack)
3206         (get_type_stack, type_stack_cleanup): New functions.
3207         (follow_types): Handle tp_type_stack.
3208         (_initialize_parse): Simplify initialization.
3209         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3210         constant.
3211         (union type_stack_elt) <stack_val>: New field.
3212         (get_type_stack, append_type_stack, push_type_stack)
3213         (type_stack_cleanup): Declare.
3214
3215 2012-07-06  Tom Tromey  <tromey@redhat.com>
3216
3217         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3218         Remove.
3219         (struct type_stack): New.
3220         * parse.c (type_stack, type_stack_size, type_stack_depth):
3221         Remove.
3222         (type_stack): New global.
3223         (parse_exp_in_context, check_type_stack_depth)
3224         (insert_into_type_stack, insert_type, push_type, push_type_int)
3225         (insert_type_address_space, pop_type, pop_type_int)
3226         (_initialize_parse): Update.
3227
3228 2012-07-06  Tom Tromey  <tromey@redhat.com>
3229
3230         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3231         Remove %type.
3232
3233 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3234
3235         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3236
3237 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3238             Jan Kratochvil  <jan.kratochvil@redhat.com>
3239
3240         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3241         alloca with xmalloc/xfree.
3242
3243 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3244
3245         * MAINTAINERS (Write After Approval): Add myself to the list.
3246
3247 2012-07-05  Doug Evans  <dje@google.com>
3248
3249         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3250
3251 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3252
3253         * ax-gdb.c (cli/cli-utils.h): New include.
3254         (linespec.h): Ditto.
3255         (agent_eval_command_one): New function.
3256         (agent_command_1): Ditto.
3257         (agent_command): Call function agent_command_1.
3258         (agent_eval_command): Ditto.
3259         (_initialize_ax_gdb): Change help for "maint agent"
3260         and "maint agent-eval".
3261
3262 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3263
3264         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3265         * cli/cli-utils.c (check_for_argument): New function.
3266         * cli/cli-utils.h (check_for_argument): Ditto.
3267
3268 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3269
3270         * NEWS: Mention x32 ABI support.
3271
3272 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3273
3274         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3275         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3276
3277         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3278         and pc_regnum_from_eax to -1.  Update SP regnum from
3279         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3280         needed.
3281
3282         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3283         pc_regnum_from_eax.
3284
3285 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3286
3287         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3288         * dwarf2expr.h: Include gdbtypes.h.
3289         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3290         these forward declarations.
3291         (cu_offset, sect_offset): Move these ...
3292         * gdbtypes.h: Remove include dwarf2expr.h.
3293         (cu_offset, sect_offset): ... here.
3294
3295 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3296
3297         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3298         (amd64_linux_sigtramp_code): This.
3299         (amd64_x32_linux_sigtramp_code): New.
3300         (LINUX_SIGTRAMP_LEN): Updated.
3301         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3302
3303 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3304
3305         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3306
3307 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3308
3309         * config.in: Regenerate.
3310         * configure: Regenerate.
3311         * configure.ac: Remove check for gnu/libc-version.h.
3312         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3313         gnu/libc-version.h.
3314         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3315         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3316         inferior_has_bug.  Extend the comment.
3317
3318 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3319
3320         * linux-thread-db.c (inferior_has_bug): New function.
3321         (thread_db_find_new_threads_silently): Return boolean as checked by
3322         inferior_has_bug, describe it in the comments.
3323         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3324         earlier.  Abort the initialization if it returned non-zero.
3325         (thread_db_new_objfile): Exclude debug files.
3326         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3327         if UNTIL_NO_NEW,
3328
3329 2012-07-02  Doug Evans  <dje@google.com>
3330
3331         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3332         related to queue management.
3333
3334         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3335         instead of "debug dwarf2-die" in debugging printfs.
3336         (create_debug_info_hash_table_reader): Ditto.
3337         (create_debug_info_hash_table): Ditto.
3338         (init_dwo_file): Ditto.
3339         (init_cutu_and_read_dies): Add debugging printf.
3340         (init_cutu_and_read_dies_no_follow): Ditto.
3341         (process_psymtab_comp_unit_reader): Ditto.
3342
3343 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3344
3345         Add target-side support for dynamic printf.
3346         * NEWS: Mention the additional style.
3347         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3348         (struct bp_location): New field cmd_bytecode.
3349         * breakpoint.c: Include format.h.
3350         (disconnected_dprintf): New global.
3351         (parse_cmd_to_aexpr): New function.
3352         (build_target_command_list): New function.
3353         (insert_bp_location): Call it.
3354         (remove_breakpoints_pid): Skip dprintf breakpoints.
3355         (print_one_breakpoint_location): Ditto.
3356         (dprintf_style_agent): New global.
3357         (dprintf_style_enums): Add dprintf_style_agent.
3358         (update_dprintf_command_list): Add agent case.
3359         (agent_printf_command): New function.
3360         (_initialize_breakpoint): Add new commands.
3361         * common/ax.def (printf): New bytecode.
3362         * ax.h (ax_string): Declare.
3363         * ax-gdb.h (gen_printf): Declare.
3364         * ax-gdb.c: Include cli-utils.h, format.h.
3365         (gen_printf): New function.
3366         (maint_agent_print_command): New function.
3367         (_initialize_ax_gdb): Add maint agent-printf command.
3368         * ax-general.c (ax_string): New function.
3369         (ax_print): Add printf disassembly.
3370         * Makefile.in (SFILES): Add format.c
3371         (COMMON_OBS): Add format.o.
3372         * common/format.h: New file.
3373         * common/format.c: New file.
3374         * printcmd.c: Include format.h.
3375         (ui_printf): Call parse_format_string.
3376         * remote.c (remote_state): New field breakpoint_commands.
3377         (PACKET_BreakpointCommands): New enum.
3378         (remote_breakpoint_commands_feature): New function.
3379         (remote_protocol_features): Add new BreakpointCommands entry.
3380         (remote_can_run_breakpoint_commands): New function.
3381         (remote_add_target_side_commands): New function.
3382         (remote_insert_breakpoint): Call it.
3383         (remote_insert_hw_breakpoint): Ditto.
3384         (_initialize_remote): Add new packet configuration for
3385         target-side breakpoint commands.
3386         * target.h (struct target_ops): New field
3387         to_can_run_breakpoint_commands.
3388         (target_can_run_breakpoint_commands): New macro.
3389         * target.c (update_current_target): Handle
3390         to_can_run_breakpoint_commands.
3391
3392 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3393
3394         Execute -ix and -iex only after system and user gdbinit files.
3395         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3396         processing down after gdbinit files.
3397
3398 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3399
3400         Add fnmatch-gnu module.
3401         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3402         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3403         * gnulib/aclocal.m4: Regenerate.
3404         * gnulib/config.in: Regenerate.
3405         * gnulib/configure: Regenerate.
3406         * gnulib/import/dummy.c: Remove.
3407         * gnulib/import/Makefile.am: Regenerate.
3408         * gnulib/import/Makefile.in: Likewise.
3409         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3410         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3411         * gnulib/import/alloca.c: New file.
3412         * gnulib/import/alloca.in.h: Likewise.
3413         * gnulib/import/config.charset: Likewise.
3414         * gnulib/import/fnmatch.c: Likewise.
3415         * gnulib/import/fnmatch.in.h: Likewise.
3416         * gnulib/import/fnmatch_loop.c: Likewise.
3417         * gnulib/import/localcharset.c: Likewise.
3418         * gnulib/import/localcharset.h: Likewise.
3419         * gnulib/import/m4/alloca.m4: Likewise.
3420         * gnulib/import/m4/codeset.m4: Likewise.
3421         * gnulib/import/m4/configmake.m4: Likewise.
3422         * gnulib/import/m4/fcntl-o.m4: Likewise.
3423         * gnulib/import/m4/fnmatch.m4: Likewise.
3424         * gnulib/import/m4/glibc21.m4: Likewise.
3425         * gnulib/import/m4/localcharset.m4: Likewise.
3426         * gnulib/import/m4/locale-fr.m4: Likewise.
3427         * gnulib/import/m4/locale-ja.m4: Likewise.
3428         * gnulib/import/m4/locale-zh.m4: Likewise.
3429         * gnulib/import/m4/mbrtowc.m4: Likewise.
3430         * gnulib/import/m4/mbsinit.m4: Likewise.
3431         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3432         * gnulib/import/m4/mbstate_t.m4: Likewise.
3433         * gnulib/import/m4/stdbool.m4: Likewise.
3434         * gnulib/import/m4/wchar_h.m4: Likewise.
3435         * gnulib/import/m4/wctype_h.m4: Likewise.
3436         * gnulib/import/m4/wint_t.m4: Likewise.
3437         * gnulib/import/mbrtowc.c: Likewise.
3438         * gnulib/import/mbsinit.c: Likewise.
3439         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3440         * gnulib/import/mbsrtowcs-state.c: Likewise.
3441         * gnulib/import/mbsrtowcs.c: Likewise.
3442         * gnulib/import/ref-add.sin: Likewise.
3443         * gnulib/import/ref-del.sin: Likewise.
3444         * gnulib/import/stdbool.in.h: Likewise.
3445         * gnulib/import/streq.h: Likewise.
3446         * gnulib/import/strnlen1.c: Likewise.
3447         * gnulib/import/strnlen1.h: Likewise.
3448         * gnulib/import/verify.h: Likewise.
3449         * gnulib/import/wchar.in.h: Likewise.
3450         * gnulib/import/wctype.in.h: Likewise.
3451
3452 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3453
3454         Support shell wildcards for 'set auto-load safe-path'.
3455         * auto-load.c: Include fnmatch.h.
3456         (filename_is_in_dir): Rename to ...
3457         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3458         it.  Update function comment.  Rename dir_len to pattern_len.  New
3459         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3460         messages.  Use gdb_filename_fnmatch.
3461         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3462         pattern.
3463         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3464         * defs.h (gdb_filename_fnmatch): New declaration.
3465         * utils.c: Include fnmatch.h.
3466         (gdb_filename_fnmatch): New function.
3467
3468 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3469
3470         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3471         `-probe' and `-probe-stap' options.
3472
3473 2012-07-01  Yao Qi  <yao@codesourcery.com>
3474
3475         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3476         always_inserted_off, and always_inserted_enums.
3477         Change always_inserted_mode's type to 'enum auto_boolean'.
3478         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3479         callers.
3480         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3481         of add_setshow_enum_cmd.
3482         * infrun.c: Remove can_use_displaced_stepping_auto,
3483         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3484         can_use_displaced_stepping_enum.
3485         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3486         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3487         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3488         add_setshow_enum_cmd.
3489
3490 2012-06-30  Doug Evans  <dje@google.com>
3491
3492         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3493         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3494         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3495
3496 2012-06-29  Doug Evans  <dje@google.com>
3497
3498         * linespec.c: #include "stack.h".
3499         (decode_line_with_current_source): Moved here from symtab.c and
3500         renamed from decode_line_spec.  All callers updated.
3501         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3502         renamed from decode_line_spec_1.  All callers updated.
3503         * linespec.h (decode_line_with_current_source): Move declaration here
3504         from symtab.h and renamed from decode_line_spec.
3505         (decode_line_with_last_displayed): Move declaration here from symtab.h
3506         and renamed from decode_line_spec_1.
3507         * macrocmd.c: #include "linespec.h".
3508         * symtab.c: Remove #include "linespec.h".
3509
3510 2012-06-28  Doug Evans  <dje@google.com>
3511
3512         * dwarf2read.c (get_cu_length): New function.
3513         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3514         (create_debug_types_hash_table): Ditto.
3515         (init_cutu_and_read_dies): Ditto.
3516         (init_cutu_and_read_dies_no_follow): Ditto.
3517
3518         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3519
3520         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3521         (struct abbrev_table): Define.
3522         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3523         abbrev_table.
3524         (init_cutu_and_read_dies): Update.
3525         (abbrev_table_alloc_abbrev): New function.  Replaces
3526         dwarf_alloc_abbrev.  All callers updated.
3527         (abbrev_table_add_abbrev): New function.
3528         (abbrev_table_lookup_abbrev): New function.  Replaces
3529         dwarf2_lookup_abbrev.  All callers updated.
3530         (abbrev_table_read_table): New function.  Contents moved here from
3531         dwarf2_read_abbrevs.
3532         (dwarf2_read_abbrevs): Call it.
3533         (abbrev_table_free): New function.
3534         (dwarf2_free_abbrev_table): Call it.
3535
3536 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3537
3538         * osdata.c (info_osdata_command): Filter out "Title" columns
3539         from non-MI uses.
3540         * common/linux-osdata.c (struct osdata_type): Add title field.
3541         (osdata_table): Add titles to each entry.
3542         (linux_command_xfer_osdata): Add a column for title data.
3543
3544 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3545
3546         Make logging work for MI.
3547         * NEWS: Mention it.
3548         * interps.h (interp_set_logging_ftype): New typedef.
3549         (struct interp_procs): New field set_logging_proc.
3550         (current_interp_set_logging): Declare.
3551         * interps.c (current_interp_set_logging): New function.
3552         * cli/cli-logging.c: Include interps.h.
3553         (set_logging_redirect): Call current_interp_set_logging.
3554         (pop_output_files): Ditto.
3555         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3556         * mi/mi-console.h (mi_console_set_raw): Declare.
3557         * mi/mi-console.c (mi_console_set_raw): New function.
3558         * mi/mi-interp.c (saved_raw_stdout): New global.
3559         (mi_set_logging): New function.
3560         (_initialize_mi_interp): Add it to interp procs.
3561
3562 2012-06-28  Doug Evans  <dje@google.com>
3563
3564         * symtab.c (lookup_symbol_aux_objfile): Use
3565         ALL_OBJFILE_PRIMARY_SYMTABS.
3566
3567         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3568
3569 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3570
3571         * common/buffer.c: Include inttypes.h and stdint.h.
3572         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3573
3574 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3575             Pedro Alves  <palves@redhat.com>
3576
3577         * gdbthread.h (ALL_THREADS): New macro.
3578         (thread_list): Declare.
3579         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3580         going, but instead fall through to the stepping handling.
3581         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3582         the passed in signal.  Adjust debug output.
3583         (resume_callback): Rename to ...
3584         (linux_nat_resume_callback): ... this.  Pass the thread's last
3585         stop signal, if in "pass" state.
3586         (linux_nat_resume): Adjust to rename.
3587         (stop_wait_callback): New assertion.  Don't respawn signals;
3588         instead let the LWP remain with SIGNALLED set.
3589         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3590         * remote.c (append_pending_thread_resumptions): New.
3591         (remote_vcont_resume): Call it.
3592         * target.h (target_resume): Extend comment.
3593
3594 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3595
3596         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3597
3598 2012-06-27  Doug Evans  <dje@google.com>
3599
3600         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3601         Delete have_addr_base, unused.  All uses updated.
3602         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3603         (dwarf2_get_pc_bounds): Add ranges_base.
3604         (dwarf2_record_block_ranges): Ditto.
3605
3606 2012-06-27  Tom Tromey  <tromey@redhat.com>
3607
3608         PR macros/7961:
3609         * varobj.c (varobj_create): Update.
3610         (varobj_set_value): Update.
3611         * tracepoint.c (validate_actionline): Update.
3612         (encode_actions_1): Update.
3613         * parse.c (parse_exp_1): Add 'pc' argument.
3614         (parse_exp_in_context): Add 'pc' argument.  Change how
3615         expression_context_pc is set.
3616         (parse_expression): Update.
3617         (parse_field_expression): Update.
3618         * expression.h (parse_exp_1): Update.
3619         * eval.c (parse_to_comma_and_eval): Update.
3620         * breakpoint.c (set_breakpoint_condition): Update.
3621         (update_watchpoint): Update.
3622         (init_breakpoint_sal): Update
3623         (find_condition_and_thread): Update.
3624         (watch_command_1): Update.
3625         (update_breakpoint_locations): Update.
3626         * ada-lang.c (ada_read_renaming_var_value): Update.
3627         (create_excep_cond_exprs): Update.
3628
3629 2012-06-27  Doug Evans  <dje@google.com>
3630
3631         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3632         type units.
3633
3634 2012-06-26  Doug Evans  <dje@google.com>
3635
3636         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3637         prototype.
3638         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3639         updated.
3640         (read_and_check_comp_unit_head): Ditto.
3641         (read_and_check_type_unit_head): Ditto.
3642
3643 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3644
3645         New attribute 'last' for gdb.Symtab_and_line.
3646         * NEWS (Python Scripting): Add entry about the new attribute.
3647         * python/py-symtab.c (salpy_get_last): New function which
3648         implements the get method for the 'last' attribute of
3649         gdb.Symtab_and_line.
3650         (sal_object_getset): Add entry for the 'last' attribute.
3651
3652 2012-06-26  Doug Evans  <dje@google.com>
3653
3654         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3655         (dwo_sections): Add macinfo, macro.
3656         (dwarf2_locate_dwo_sections): Watch for macro sections.
3657         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3658         All callers updated.  Handle DWO files.
3659
3660         * NEWS: Mention new options "set debug dwarf2-read" and
3661         "set debug symtab-create".
3662         * dwarf2read.c (dwarf2_read_debug): New static global.
3663         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3664         (process_queue): Ditto.
3665         (process_full_comp_unit): Ditto.
3666         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3667         * elfread.c (elf_symfile_read): Add debugging printf.
3668         * minsyms.c (install_minimal_symbols): Ditto.
3669         * psymtab.c (allocate_psymtab): Ditto.
3670         * symfile.c (allocate_symtab): Ditto.
3671         * symtab.c (symtab_create_debug): New global.
3672         (_initialize_symtab): Add new option "set debug symtab-create".
3673         * symtab.h (symtab_create_debug): Declare.
3674
3675         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3676         (lookup_dwo_type_unit): Ditto.
3677
3678 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3679             H.J. Lu  <hongjiu.lu@intel.com>
3680
3681         * amd64-linux-nat.c: Include <sys/user.h>.
3682         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3683         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3684         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3685
3686         * configure.ac: Check if the fs_base and gs_base members of
3687         `struct user_regs_struct' exist.
3688         * config.in: Regenerated.
3689         * configure: Likewise.
3690
3691 2012-06-25  Michael Eager  <eager@eagercon.com>
3692
3693         PR python/14291
3694         * python/python.c (gdbpy_write): Check for interrupted output.
3695
3696 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3697
3698         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3699         register as a stack alignment in ARM mode.
3700
3701 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3702
3703         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3704         * gnulib/config.in: Regenerate.
3705         * gnulib/configure: Likewise.
3706         * gnulib/import/m4/extensions.m4: Update it.
3707         * gnulib/import/m4/gnulib-common.m4: Likewise.
3708         * gnulib/import/m4/memmem.m4: Likewise.
3709         * gnulib/import/m4/mmap-anon.m4: Likewise.
3710         * gnulib/import/m4/multiarch.m4: Likewise.
3711         * gnulib/import/stdint.in.h: Likewise.
3712
3713 2012-06-24  Yao Qi  <yao@codesourcery.com>
3714
3715         * corefile.c (write_memory_with_notification): New.
3716         * gdbcore.h: Declare write_memory_with_notification.
3717         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3718         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3719         * valops.c (value_assign): Likewise.
3720         * python/py-inferior.c (infpy_write_memory): Call
3721         'write_memory_with_notification'.
3722
3723 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3724
3725         * cc-with-index.sh: Use also -ex "set auto-load no".
3726
3727 2012-06-23  Doug Evans  <dje@google.com>
3728
3729         PR 14125
3730         * NEWS: Document additions to .gdb_index.
3731         * dwarf2read.c: #include "gdb/gdb-index.h".
3732         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3733         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3734         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3735         (dwarf2_read_index): Recognize version 7.
3736         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3737         block_kind, domain): All callers updated.
3738         (dw2_find_symbol_file): Handle new index CU values.
3739         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3740         (add_index_entry): New args is_static, kind.  All callers updated.
3741         (offset_type_compare, uniquify_cu_indices): New functions
3742         (symbol_kind): New function.
3743         (write_psymtabs_to_index): Remove duplicate CU values.
3744         (write_psymtabs_to_index): Write .gdb_index version 7.
3745
3746 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3747
3748         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3749         * configure: Regenerate.
3750
3751 2012-06-20  Yao Qi  <yao@codesourcery.com>
3752
3753         * python/py-inferior.c: Update comments of infpy_read_memory
3754         and infpy_write_memory.
3755
3756 2012-06-19  Tom Tromey  <tromey@redhat.com>
3757
3758         PR exp/9514:
3759         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3760         (push_type_address_space): Remove.
3761         * parse.c (insert_into_type_stack): New function.
3762         (insert_type): Likewise.
3763         (insert_type_address_space): Rename from push_type_address_space.
3764         Insert tp_space_identifier.
3765         * c-exp.y (ptr_operator): New production.
3766         (abs_decl): Use ptr_operator.
3767         (space_identifier): Call insert_type_address_space.
3768         (ptype): Don't use const_or_volatile_or_space_identifier.
3769         (const_or_volatile_noopt): Call insert_type.
3770         (conversion_type_id, conversion_declarator): New productions.
3771         (operator): Use conversion_type_id.
3772
3773 2012-06-18  Doug Evans  <dje@google.com>
3774
3775         * symtab.h (minimal_symbol): New member created_by_gdb.
3776         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3777         created by gdb.
3778         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3779         (search_symbols): Call it instead of lookup_symbol.
3780         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3781
3782         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3783         Adjust address for DW_OP_GNU_addr_index.
3784         * dwarf2expr.h (dwarf_expr_context): Update comment.
3785         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3786         all callers updated.  Handle TLS vars described with
3787         DW_OP_GNU_const_index.
3788         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3789         and DW_OP_GNU_const_index.
3790         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3791
3792         * block.c (find_block_in_blockvector): Make explicit the fact that we
3793         ignore GLOBAL_BLOCK.
3794
3795 2012-06-18  Tom Tromey  <tromey@redhat.com>
3796
3797         * c-exp.y (operator): Remove trailing space after "delete" and
3798         "delete[]".
3799
3800 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3801             Jan Kratochvil  <jan.kratochvil@redhat.com>
3802
3803         Switch i386 and derived targets to ON_STACK.
3804         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3805         (amd64_dicos_init_abi): Remove its installment.
3806         * dicos-tdep.c (dicos_init_abi): Remove the
3807         set_gdbarch_call_dummy_location call.  Update the comment here.
3808         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3809         (i386_dicos_init_abi): Remove its installment.
3810         * i386-tdep.c (i386_push_dummy_code): New function.
3811         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3812         i386_push_dummy_code.
3813
3814 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3815
3816         Remove stale dummy frames.
3817         * breakpoint.c: Include dummy-frame.h.
3818         (longjmp_breakpoint_ops): New variable.
3819         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3820         bp_longjmp_call_dummy.
3821         (bpstat_what, bptype_string, print_one_breakpoint_location)
3822         (init_bp_location): Support bp_longjmp_call_dummy.
3823         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3824         (set_longjmp_breakpoint_for_call_dummy)
3825         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3826         functions.
3827         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3828         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3829         FIXME comment and extend the other comment for bp_call_dummy.
3830         (set_longjmp_breakpoint_for_call_dummy)
3831         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3832         * dummy-frame.c: Include gdbthread.h.
3833         (pop_dummy_frame_bpt): New function.
3834         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3835         (dummy_frame_discard): New function.
3836         (cleanup_dummy_frames): Update the comment about longjmps.
3837         * dummy-frame.h (dummy_frame_discard): New declaration.
3838         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3839         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3840         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3841         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3842         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3843         keep_going if IS_LONGJMP and there is no other reason to stop.
3844
3845 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3846
3847         * remote-sim.c (sim_command_completer): Initialize
3848         variable 'result'.
3849
3850 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3851
3852         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3853         * dwarf2loc.c (call_site_parameter_matches): Support
3854         CALL_SITE_PARAMETER_PARAM_OFFSET.
3855         (needs_dwarf_reg_entry_value): Push stub value.
3856         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3857         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3858         * gdbtypes.h (enum call_site_parameter_kind): New item
3859         CALL_SITE_PARAMETER_PARAM_OFFSET.
3860         (struct call_site.parameter.u): New field param_offset.
3861
3862 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3863
3864         Code cleanup: Generalize call_site.parameter key.
3865         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3866         variable dwarf_reg.  New variable kind_u.  Update parameters to
3867         push_dwarf_reg_entry_value.
3868         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3869         * dwarf2expr.h (enum call_site_parameter_kind)
3870         (union call_site_parameter_u): Forward declarations.
3871         (struct dwarf_expr_context_funcs): Update parameters and their
3872         description for push_dwarf_reg_entry_value.
3873         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3874         * dwarf2loc.c (call_site_parameter_matches): New function.
3875         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3876         description.  Use call_site_parameter_matches.
3877         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3878         Update parameters and their description.
3879         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3880         New variable kind_u.  Adjust the caller for updated parameters.
3881         (needs_dwarf_reg_entry_value): Update parameters.
3882         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3883         instead of attr.  Update for the changed fields of struct
3884         call_site_parameter.
3885         * gdbtypes.h: Include dwarf2expr.h.
3886         (enum call_site_parameter_kind): New.
3887         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3888         fb_offset into new union u.
3889
3890 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3891
3892         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3893         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3894         for x32.
3895
3896 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3897
3898         * amd64-linux-nat.c (compat_x32_clock_t): New.
3899         (compat_x32_siginfo_t): Likewise.
3900         (compat_x32_siginfo_from_siginfo): Likewise.
3901         (siginfo_from_compat_x32_siginfo): Likewise.
3902         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3903         and siginfo_from_compat_x32_siginfo for x32.
3904
3905 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3906
3907         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3908
3909 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3910
3911         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3912         instead of gdbarch_ptr_bit.
3913         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3914         (amd64_supply_native_gregset): Likewise.
3915         (amd64_collect_native_gregset): Likewise.
3916         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3917         (amd64_supply_xsave): Likewise.
3918         (amd64_collect_fxsave): Likewise.
3919         (amd64_collect_xsave): Likewise.
3920
3921 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3922
3923         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3924         (amd64_linux_read_description): Check DS segment register for
3925         x32 process.
3926
3927 2012-06-15  Tom Tromey  <tromey@redhat.com>
3928
3929         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3930         init_cutu_and_read_dies.
3931
3932 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3933
3934         * MAINTAINERS (Write After Approval): Add myself to the list.
3935
3936 2012-06-15  Tom Tromey  <tromey@redhat.com>
3937
3938         * valops.c (value_find_oload_method_list): Now static.
3939         * value.h (value_find_oload_method_list): Don't declare.
3940
3941 2012-06-15  Tom Tromey  <tromey@redhat.com>
3942
3943         * valops.c (find_overload_match): Use value_ind.
3944
3945 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
3946
3947         * infrun.c (handle_inferior_event): Correct indentation.
3948
3949 2012-06-14  Doug Evans  <dje@google.com>
3950
3951         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3952         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3953         All uses updated.
3954         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
3955         updated.  Handle DEBUG_LOC_START_LENGTH.
3956         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3957         (loclist_describe_location): Ditto.
3958
3959 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
3960
3961         PR backtrace/13866
3962         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3963         after hiding inline functions.
3964
3965 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3966
3967         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3968         _initialize_inf_ttrace.
3969
3970 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3971
3972         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3973         _initialize_hppa_hpux_nat.
3974
3975 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3976
3977         * remote-sim.c (sim_command_completer): Change type of return
3978         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
3979
3980 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3981             Jan Kratochvil  <jan.kratochvil@redhat.com>
3982
3983         PR tdep/14222
3984         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3985         stack on a 16-byte boundary.
3986
3987 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
3988
3989         * jit.c (finalize_symtab): Set function's return type to 'void' by
3990         default.
3991
3992 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3993             H.J. Lu  <hongjiu.lu@intel.com>
3994
3995         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3996         Move bits common to both the classic LP64 and the new x32 ILP32
3997         ABI here.
3998         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3999         (amd64_x32_linux_init_abi): New function.
4000         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4001         subtype.
4002
4003         * i386-tdep.h (i386_pseudo_register_name): New prototype.
4004         * i386-tdep.c (i386_pseudo_register_name): Make public.
4005         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4006         * amd64-tdep.c (amd64_dword_names): Add "eip".
4007         (amd64_x32_pseudo_register_type): New function
4008         (amd64_x32_init_abi): New function.
4009
4010 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4011
4012         PR build/14003
4013         * inferior.h (struct inferior_suspend_state): Comment out.
4014         (struct inferior): Comment out the field suspend.
4015         * infrun.c (struct infcall_suspend_state): Comment out the field
4016         inferior_suspend.
4017         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4018         out its assignment.
4019
4020 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4021
4022         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4023         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4024         function comment.  Return ERROR for unresolved cases.  Implement
4025         returning proper NAME.
4026         (yylex): Accept also NAME from classify_inner_name.
4027         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4028         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4029         LOC_TYPEDEF type.
4030         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4031
4032 2012-06-13  Tom Tromey  <tromey@redhat.com>
4033
4034         * breakpoint.c (condition_completer): New function.
4035         (_initialize_breakpoint): Use it.
4036         * value.c (complete_internalvar): New function.
4037         * value.h (complete_internalvar): Declare.
4038
4039 2012-06-13  Tom Tromey  <tromey@redhat.com>
4040
4041         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4042         * breakpoint.c (catch_syscall_completer): Return a VEC.
4043         * cli/cli-cmds.c (complete_command): Update.
4044         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4045         (complete_on_enum): Likewise.
4046         * command.h: Include gdb_vecs.h.
4047         (completer_ftype): Change return type.
4048         (complete_on_cmdlist, complete_on_enum): Likewise.
4049         * completer.c (noop_completer, filename_completer)
4050         (location_completer): Return a VEC.
4051         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4052         to a VEC.
4053         (expression_completer, complete_line_internal, complete_line)
4054         (command_completer): Return a VEC.
4055         (gdb_completion_word_break_characters, line_completion_function):
4056         Update.
4057         * completer.h: Include gdb_vecs.h.
4058         (complete_line, noop_completer, filename_completer)
4059         (expression_completer, location_completer, command_completer):
4060         Update.
4061         * f-lang.c (f_word_break_characters): Return a VEC.
4062         * interps.c (interpreter_completer): Return a VEC.
4063         * language.h (struct language_defn)
4064         <la_make_symbol_completion_list>: Return a VEC.
4065         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4066         * symtab.c (free_completion_list): Take a VEC.
4067         (return_val_size, return_val_index): Remove.
4068         (return_val): Now a VEC.
4069         (completion_list_add_name): Update.
4070         (default_make_symbol_completion_list_break_on)
4071         (default_make_symbol_completion_list, make_symbol_completion_list)
4072         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4073         Return a VEC.
4074         (add_filename_to_list): Update.
4075         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4076         <list>: Now a VEC.
4077         (maybe_add_partial_symtab_filename): Update.
4078         (make_source_files_completion_list): Return a VEC.
4079         * symtab.h (default_make_symbol_completion_list_break_on)
4080         (default_make_symbol_completion_list, make_symbol_completion_list)
4081         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4082         (make_source_files_completion_list): Update.
4083
4084 2012-06-13  Tom Tromey  <tromey@redhat.com>
4085
4086         * breakpoint.c (add_catch_command): Use completer_ftype.
4087         * breakpoint.h: Include command.h.
4088         (add_catch_command): Use completer_ftype.
4089         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4090         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4091         Use completer_ftype.
4092         * command.h (completer_ftype): New typedef.
4093         (set_cmd_completer): Use it.
4094         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4095         completer_ftype.
4096
4097 2012-06-13  Pedro Alves  <palves@redhat.com>
4098
4099         Partial revert of previous change.
4100
4101         * serial.c (scb_base): New global.
4102         (serial_for_fd): New.
4103         (serial_open, serial_fdopen_ops): Link new serial in open serials
4104         chain.
4105         (do_serial_close): Unlink serial from the open serials chain.
4106
4107 2012-06-12  Pedro Alves  <palves@redhat.com>
4108
4109         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4110         threads here.
4111         (prepare_for_detach): No longer context switch here in non-stop
4112         mode.
4113         (fetch_inferior_event): Ditto.
4114         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4115         to the event thread before removing breakpoints.  Switch to the
4116         event thread before inserting breakpoints and resuming.
4117         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4118         event thread before resuming.
4119         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4120         Switch to the event thread before removing breakpoints.
4121
4122 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4123
4124         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4125         special characters correctly for the Windows shells.  See
4126         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4127         report.
4128         [!__MINGW32__]: Remove extra double quote character from special
4129         characters.
4130
4131 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4132
4133         * ui-out.h: Remove #if 0 declarations.
4134         * ui-out.c: Remove #if 0 functions.
4135
4136 2012-06-11  Pedro Alves  <palves@redhat.com>
4137
4138         * ser-base.c (run_async_handler_and_reschedule): New.
4139         (fd_event, push_event): Use it.
4140         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4141         reference count to 1.
4142         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4143         instead of xfree.
4144         (serial_is_open, serial_ref, serial_unref): New.
4145         * serial.h (serial_open): Adjust comment.
4146         (serial_is_open): Declare.
4147         (serial_close): Adjust comment.
4148         (serial_ref, serial_unref) Declare.
4149         (struct serial): New field 'refcnt'.
4150
4151 2012-06-11  Pedro Alves  <palves@redhat.com>
4152
4153         Remove #if 0'd "connect" command, and unnecessary associated
4154         refcounting and serial reuse bits.
4155
4156         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4157         * serial.c (last_serial_opened): Delete.
4158         (scb_base): Delete.
4159         (serial_open): Adjust.
4160         (serial_for_fd): Delete.
4161         (serial_fdopen_ops, do_serial_close): Adjust.
4162         (serial_fdopen_ops): Adjust.
4163
4164 2012-06-11  Pedro Alves  <palves@redhat.com>
4165
4166         * serial.c (do_serial_close): Remove early return when SCB is
4167         null.
4168
4169 2012-06-11  Tom Tromey  <tromey@redhat.com>
4170
4171         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4172
4173 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4174
4175         Fix regression by the "ambiguous linespec" series.
4176         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4177         get_last_displayed_symtab and get_last_displayed_line and depending
4178         on CURSAL.
4179
4180 2012-06-11  Tom Tromey  <tromey@redhat.com>
4181
4182         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4183         (dw2_find_symbol_file): Use it.
4184
4185 2012-06-11  Michael Eager  <eager@eagercon.com>
4186
4187         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4188         * mips-linux-tdep.h (mips_signals): New
4189
4190 2012-06-11  Tom Tromey  <tromey@redhat.com>
4191
4192         * infrun.c (handle_inferior_event)
4193         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4194         breakpoint.
4195         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4196         exception logic in all cases.  Update comments.
4197         (insert_longjmp_resume_breakpoint): Set the exception resume
4198         breakpoint.
4199
4200 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4201
4202         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4203
4204 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4205
4206         * valarith.c (binop_types_user_defined_p): Fix a typo.
4207
4208 2012-06-08  Yao Qi  <yao@codesourcery.com>
4209             Chung-Lin Tang <cltang@codesourcery.com>
4210
4211         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4212         * arch-utils.h: Declare.
4213         * gdbarch.sh: Add return_in_first_hidden_param_p.
4214         * gdbarch.c, gdbarch.h: Regenerated.
4215         * infcall.c (call_function_by_hand): Call
4216         gdbarch_return_in_first_hidden_param_p instead of
4217         language_pass_by_reference.
4218
4219         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4220         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4221         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4222         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4223         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4224         `cplus_return_struct_by_reference'.
4225         (tic6x_return_value): Handle language cplusplus.
4226         (tic6x_return_in_first_hidden_param_p): New.
4227         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4228
4229 2012-06-07  Doug Evans  <dje@google.com>
4230
4231         * dwarf2read.c (dwarf2_cu): Add comment.
4232
4233 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4234
4235         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4236         variable.
4237         (mips_eabi_push_dummy_call): Likewise.
4238         (mips_n32n64_push_dummy_call): Likewise.
4239         (mips_o32_push_dummy_call): Likewise.
4240         (mips_o64_push_dummy_call): Likewise.
4241
4242 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4243
4244         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4245
4246 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4247
4248         * mips-tdep.c (mips_pseudo_register_type): Use
4249         mips_float_register_p.
4250
4251 2012-06-06  Pedro Alves  <palves@redhat.com>
4252
4253         * infrun.c (handle_inferior_event): Remove calls to
4254         reinit_frame_cache that follow a context_switch call.
4255
4256 2012-06-06  Pedro Alves  <palves@redhat.com>
4257
4258         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4259         context_switch and remove stale comment.
4260
4261 2012-06-06  Pedro Alves  <palves@redhat.com>
4262
4263         * infrun.c (struct execution_control_state): Remove
4264         `new_thread_event' field.
4265         (handle_inferior_event): Simplify new threads handling; don't
4266         resume the inferior if we find a new thread.
4267
4268 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4269
4270         * NEWS: Document the deprecation of SH's 'regs' command.
4271         * inferior.h (all_registers_info): Add function declaration.
4272         * sh-tdep.c (sh_show_regs): Remove variable.
4273         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4274         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4275         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4276         (sh_show_regs_command): Remove functions.
4277         (sh_gdbarch_init): Don't set sh_show_regs.
4278         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4279         'info all-registers'.
4280         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4281         (sh64_show_regs): Remove functions.
4282         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4283
4284 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4285
4286         * configure.ac: Move development=true below AC_INIT.
4287         * configure: Regenerate.
4288
4289 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4290
4291         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4292         gdb_stdout.
4293
4294 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4295
4296         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4297         argument as ssize_t.
4298         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4299         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4300         * target.c (target_read_stack, target_write_memory)
4301         (target_write_raw_memory): Likewise.
4302         * target.h (target_read_stack, target_write_memory)
4303         (target_write_raw_memory): Likewise.
4304
4305 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4306
4307         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4308         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4309         * target.c (target_read_memory): Change LEN to ssize_t.
4310         * target.h (target_read_memory): Change LEN to ssize_t.
4311
4312 2012-06-05  Pedro Alves  <palves@redhat.com>
4313
4314         PR backtrace/13866
4315
4316         * breakpoint.c (until_break_command): Only fetch the selected
4317         frame after decode_line_1.
4318
4319 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4320
4321         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4322         event breakpoint at _start, __start or main if a program
4323         interpreter is not found.
4324
4325 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4326
4327         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4328         Add declaration.
4329         * windows-tdep.c: #include "objfiles.h".
4330         (windows_iterate_over_objfiles_in_search_order): New function.
4331         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4332         iterate_over_objfiles_in_search_order gdbarch method to
4333         windows_iterate_over_objfiles_in_search_order.
4334         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4335
4336 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4337
4338         * gdbarch.sh: Add generation of
4339         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4340         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4341         (iterate_over_objfiles_in_search_order): New gdbarch method.
4342         * gdbarch.h, gdbarch.c: Regenerate.
4343         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4344         Add declaration.
4345         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4346         New function.
4347         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4348         out of lookup_symbol_aux_symtabs.
4349         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4350         call to lookup_symbol_aux_objfile.
4351         (struct global_sym_lookup_data): New type.
4352         (lookup_symbol_global_iterator_cb): New function.
4353         (lookup_symbol_global): Search for symbol using
4354         gdbarch_iterate_over_objfiles_in_search_order and
4355         lookup_symbol_global_iterator_cb.
4356         * findvar.c (struct minsym_lookup_data): New type.
4357         (minsym_lookup_iterator_cb): New function.
4358         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4359         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4360         and minsym_lookup_iterator_cb.
4361
4362 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4363
4364         Revert the following patch:
4365         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4366         try locating the symbol in the symbol's own objfile first, before
4367         extending the search to all objfiles.
4368         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4369         out of lookup_symbol_aux_symtabs.
4370         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4371         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4372         Do not search EXCLUDE_OBJFILE.
4373         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4374         (lookup_symbol_global): Search for matches in the block's objfile
4375         first, before searching all other objfiles.
4376
4377 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4378
4379         * breakpoint.c (find_condition_and_thread): Stop parsing
4380         as soon as the first invalid keyword is found.
4381
4382 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4383
4384         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4385
4386 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4387
4388         * config/djgpp/djcheck.sh: Add copyright header.
4389
4390 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4391
4392         * copyright.py (update_files, main): Fix path to update-copyright
4393         script.
4394
4395 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4396
4397         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4398         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4399         for which a reminder to update by hand is printed.
4400
4401 2012-06-04  Doug Evans  <dje@google.com>
4402
4403         * buildsym.c (make_blockvector): Add comment.
4404
4405 2012-06-04  Pedro Alves  <palves@redhat.com>
4406
4407         * arch-utils.c (default_gdb_signal_from_target): Delete.
4408         * arch-utils.h (default_gdb_signal_from_target): Delete.
4409         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4410         gdbarch_gdb_signal_from_target_p.
4411         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4412         predicate).
4413         * gdbarch.h: Regenerate.
4414         * gdbarch.c: Regenerate.
4415
4416 2012-06-04  Pedro Alves  <palves@redhat.com>
4417
4418         * gdbarch.sh (gdb_signal_from_target): Mention that the
4419         implementation of the method must be host independent.
4420         * gdbarch.h: Regenerate.
4421
4422 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4423
4424         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4425         parameters.
4426         (target_read_memory_bfd): New function.
4427         (symbol_file_add_from_memory): Use it.
4428
4429 2012-06-03  Doug Evans  <dje@google.com>
4430
4431         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4432         of primary symtab.
4433         (basic_lookup_transparent_type): Ditto.
4434
4435         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4436         (ALL_PRIMARY_SYMTABS): Use it.
4437         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4438         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4439         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4440         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4441         (basic_lookup_transparent_type): Ditto.
4442
4443 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4444
4445         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4446         it to optimize resolution of demangled name.
4447
4448 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4449
4450         * configure.ac (development): Define new variable.
4451         Call AC_CHECK_LIB for mcheck if $development.
4452         (ERROR_ON_WARNING): Enable it by default only if $development.
4453         * config.in: Regenerate.
4454         * configure: Regenerate.
4455
4456 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4457
4458         * target.c (target_read_memory): Make LEN argument as size_t.
4459         * target.h (target_read_memory): Likewise.
4460
4461 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4462
4463         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4464
4465 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4466
4467         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4468         BookE interface for PowerPC server processors if not available
4469         in the Linux Kernel.
4470
4471 2012-05-31  Keith Seitz  <keiths@redhat.com>
4472
4473         * linespec.c (decode_objc): Add cleanup to free
4474         INFO.FILE_SYMTABS.
4475         (find_linespec_symbols): Add cleanup to free CLASSES.
4476         * symfile.c (find_separate_debug_file_by_debuglink): Add
4477         cleanup to free DEBUGLINK.
4478         * ui-out.c (clear_header_list): No need to check if
4479         HEADER_NEXT.COLHDR is NULL.
4480         Free HEADER_NEXT.COL_NAME.
4481
4482 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4483
4484         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4485         warning.
4486
4487 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4488
4489         * configure.host (gdb_host_cpu): Handle tilegx*.
4490         (gdb_host): Handle tilegx-*-linux*.
4491         * tilegx-linux-nat.c: New file.
4492         * config/tilegx/linux.mh: New file.
4493
4494 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4495
4496         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4497         tilegx-linux-tdep.o.
4498         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4499         tilegx-linux-tdep.c.
4500         * configure.tgt: Handle tilegx-*-linux*.
4501         * tilegx-tdep.h: New file.
4502         * tilegx-tdep.c: New file.
4503         * tilegx-linux-tdep.c: New file.
4504         * regformats/reg-tilegx.dat: New file.
4505
4506 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4507
4508         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4509         accounting of hw watchpoints on ppc.
4510
4511 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4512
4513         * source.c (openp): Expand tilde in path entries.
4514
4515 2012-05-29  Doug Evans  <dje@google.com>
4516
4517         * buildsym.c (block_compar): Fix comment.
4518         (end_symtab): Fix and clarify some comments.
4519
4520         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4521         cleanup_undefined_types.
4522         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4523         All callers updated.
4524
4525 2012-05-29  Tom Tromey  <tromey@redhat.com>
4526
4527         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4528         fails.
4529         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4530         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4531         fails.
4532         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4533         fails.
4534
4535 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4536
4537         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4538         (struct darwin_info): ... New struct.
4539         (solib_darwin_pspace_data): New variable.
4540         (darwin_pspace_data_cleanup): New function.
4541         (get_darwin_info): Likewise.
4542         (darwin_dyld_version_ok, darwin_load_image_infos)
4543         (darwin_solib_get_all_image_info_addr_at_init)
4544         (darwin_solib_read_all_image_info_addr): Add info argument.
4545         Adjust code.
4546         (darwin_current_sos): Use per pspace structure.
4547         (darwin_solib_create_inferior_hook): Likewise.
4548         (darwin_clear_solib): Likewise.
4549         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4550
4551 2012-05-28  Pedro Alves  <palves@redhat.com>
4552
4553         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4554         block that uses them.  Clear ecss before handling each event.
4555
4556 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4557
4558         * solib-svr4.c (svr4_current_sos): New comment on
4559         svr4_current_sos_via_xfer_libraries fall back.
4560
4561 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4562
4563         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4564         it as a fallback for TYPE_IS_OPAQUE.
4565         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4566         symbols for lookup_symbol.
4567
4568 2012-05-24  John Steele Scott  <toojays@toojays.net>
4569
4570         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4571         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4572         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4573         (check_producer): ... this new function, which also checks for ICC
4574         and caches the result.
4575         (producer_is_icc): New function.
4576         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4577         producer was ICC.
4578
4579 2012-05-24  Pedro Alves  <palves@redhat.com>
4580
4581         PR gdb/7205
4582
4583         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4584         (default_gdb_signal_to_target): ... this.  Add comment.
4585         (default_gdb_signal_from_host): Rename to ...
4586         (default_gdb_signal_from_target): ... this.  Add comment.
4587         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4588         (default_gdb_signal_to_target): ... this.
4589         (default_gdb_signal_from_host): Rename to ...
4590         (default_gdb_signal_from_target): ... this.
4591         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4592         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4593         (gdb_signal_from_target): ... this.  Adjust to
4594         default_gdb_signal_from_host naming change.  Extend comment.
4595         (gdb_signal_to_host): Rename to ...
4596         (gdb_signal_to_target): ... this.  Adjust to
4597         default_gdb_signal_to_host naming change.
4598         * gdbarch.h, gdbarch.c: Renegerate.
4599
4600 2012-05-24  Pedro Alves  <palves@redhat.com>
4601
4602         PR gdb/7205
4603
4604         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4605
4606 2012-05-24  Pedro Alves  <palves@redhat.com>
4607
4608         PR gdb/7205
4609
4610         Replace target_signal with gdb_signal throughout.
4611
4612 2012-05-24  Pedro Alves  <palves@redhat.com>
4613
4614         PR tui/14159
4615
4616         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4617         string, instead of reusing the va_list argument.
4618
4619 2012-05-24  Tom Tromey  <tromey@redhat.com>
4620
4621         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4622         Remove.
4623
4624 2012-05-23  Doug Evans  <dje@google.com>
4625
4626         * symtab.c (search_symbols): Formatting fixes.
4627         (print_symbol_info): Formatting fixes.
4628
4629         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4630         int64_t change to leb128 API.
4631         (read_encoded_value, decode_frame_entry_1): Ditto.
4632         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4633         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4634         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4635         (execute_stack_op): Ditto.
4636         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4637         (safe_read_uleb128, safe_read_sleb128): Ditto.
4638         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4639         (dwarf2_compile_expr_to_ax): Ditto.
4640         (locexpr_describe_location_piece): Ditto.
4641         (disassemble_dwarf_expression): Ditto.
4642         (locexpr_describe_location_1): Ditto.
4643
4644 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4645             Kwok Cheung Yeung  <kcy@codesourcery.com>
4646
4647         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4648         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4649         (mi-cmd-info.o): New rule.
4650         * osdata.h (info_osdata_command): New declaration.
4651         * osdata.c (info_osdata_command): Change to non-static.
4652         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4653         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4654         * mi/mi-cmd-info.c: New file.
4655
4656 2012-05-23  Doug Evans  <dje@google.com>
4657
4658         * symtab.c (search_symbols): Pass NULL for file_matcher to
4659         expand_symtabs_matching if there are no files to match.
4660
4661         * gdbtypes.c (lookup_typename): Simplify.
4662
4663 2012-05-23  Pedro Alves  <palves@redhat.com>
4664
4665         * arch-utils.h (default_target_signal_to_host): Delete.
4666         * arch-utils.c (default_target_signal_to_host): Delete.
4667         * gdbarch.sh (target_signal_to_host): Remove.
4668         * gdbarch.h, gdbarch.c: Regenerate.
4669
4670 2012-05-22  Doug Evans  <dje@google.com>
4671
4672         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4673         "const gdb_byte *".
4674         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4675         (execute_cfa_program): Update to match API of leb128 functions.
4676         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4677         "const gdb_byte *".
4678         (read_unsigned_leb128, read_signed_leb128): Delete.
4679         (read_initial_length): Change type of buf argument to
4680         "const gdb_byte *".
4681         (read_encoded_value): Update to match API of leb128 functions.
4682         (decode_frame_entry): Change result to "const gdb_byte *", and
4683         similarly for "start" parameter.
4684         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4685         (dwarf2_build_frame_info): Change local frame_ptr to
4686         "const gdb_byte *".
4687         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4688         read_uleb128, read_sleb128.  All callers updated.
4689         (safe_skip_leb128): New function.
4690         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4691         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4692         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4693         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4694         read_uleb128, read_sleb128.
4695         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4696         (execute_stack_op): Update to match API of leb128 functions.
4697         * dwarf2expr.h: #include "leb128.h".
4698         (read_uleb128, read_sleb128): Delete.
4699         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4700         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4701         * dwarf2loc.c (debug_loc_kind): New enum.
4702         (decode_debug_loc_addresses): New function.
4703         (decode_debug_loc_dwo_addresses): New function.
4704         (dwarf2_find_location_expression): Rewrite.
4705         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4706         (locexpr_describe_location_piece): Ditto.
4707         (disassemble_dwarf_expression): Ditto.
4708         (locexpr_describe_location_1): Ditto.
4709         (loclist_describe_location): Rewrite.
4710         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4711         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4712         (dwarf2_section_buffer_overflow_complaint): Renamed from
4713         dwarf2_macros_too_long_complaint.  All callers updated.
4714         (skip_leb128): Delete.
4715         (init_cu_die_reader): Initialize reader->buffer_end.
4716         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4717         (skip_form_bytes): New arg buffer_end.  All callers updated.
4718         Replace call to skip_leb128 with gdb_skip_leb128.
4719         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4720         (fill_in_loclist_baton): Initialize baton->from_dwo.
4721
4722 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4723
4724         * mips-linux-nat.c (mips_linux_read_description): Use a more
4725         verbose error message.
4726
4727 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4728
4729         * NEWS: Add MIPS/Linux DSP support.
4730         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4731         (SIGCONTEXT_DSPCTL): New macro.
4732         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4733         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4734         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4735         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4736         (N64_SIGCONTEXT_HI3): Likewise.
4737         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4738         (N64_SIGCONTEXT_LO3): Likewise.
4739         (N64_SIGCONTEXT_DSPCTL): Likewise.
4740         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4741         (mips_linux_o32_sigframe_init): Handle DSP registers.
4742         (mips_linux_n32n64_sigframe_init): Likewise.
4743
4744 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4745
4746         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4747         call to abort.
4748
4749 2012-05-22  Pedro Alves  <palves@redhat.com>
4750
4751         * target.h (store_waitstatus): Move declaration ...
4752         * inf-child.h (store_waitstatus): ... here.
4753         * target.c: Move inclusion of gdb_wait.h, and ...
4754         (store_waitstatus): ... this ...
4755         * inf-child.c: ... here.
4756         * linux-nat.c: Include inf-child.h.
4757         * rs6000-nat.c: Include inf-child.h.
4758         * spu-linux-nat.c: Include inf-child.h.
4759
4760 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4761
4762         * tracepoint.c (start_tracing): Add missing i18n markup.
4763         (stop_tracing, set_trace_user): Ditto.
4764         (set_trace_notes, set_trace_stop_notes): Ditto.
4765
4766 2012-05-21  Tom Tromey  <tromey@redhat.com>
4767
4768         PR c++/7173:
4769         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4770         types.
4771         * value.h (value_cast_pointers): Update.
4772         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4773         (value_cast): Update.
4774         (update_search_result): New function.
4775         (do_search_struct_field): New, from search_struct_field.  Check
4776         for ambiguous results.
4777         (search_struct_field): Rewrite.
4778         * infcall.c (value_arg_coerce): Update.
4779         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4780         value_cast_pointers.
4781         * ada-lang.c (ada_convert_actual): Update.
4782
4783 2012-05-21  Tom Tromey  <tromey@redhat.com>
4784
4785         * macroexp.c (macro_stringify): Terminate the string.
4786
4787 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4788
4789         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4790         Describe it.
4791         * auto-load.c (auto_load_expand_dir_vars): New function.
4792         (auto_load_safe_path_vec_update): Use it, remove the
4793         substitute_path_component call thanks to it.
4794         (auto_load_objfile_script): Remove the debug_file_directory processing.
4795         Use auto_load_expand_dir_vars, remove the substitute_path_component
4796         call thanks to it.
4797         * configure: Regenerate.
4798         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4799         path.  Escape $ also for $debugdir.
4800         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4801         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4802
4803 2012-05-20  Doug Evans  <dje@google.com>
4804
4805         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4806         before use.  Check for symtab->includes == NULL before scanning it.
4807
4808 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4809
4810         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4811
4812 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4813
4814         * NEWS: Add microMIPS support and "set mips compression",
4815         "show mips compression" commands.
4816         * mips-tdep.h (mips_isa): New enum.
4817         (gdbarch_tdep): Add mips_isa.
4818         (mips_pc_is_mips16): Update prototype.
4819         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4820         * mips-tdep.c (mips_compression_mips16): New variable.
4821         (mips_compression_micromips): Likewise.
4822         (mips_compression_strings): Likewise.
4823         (mips_compression_string): Likewise.
4824         (is_mips16_isa, is_micromips_isa): New functions.
4825         (is_mips16_addr): Rename to...
4826         (is_compact_addr): ... this.
4827         (unmake_mips16_addr): Likewise to...
4828         (unmake_compact_addr): ... this.
4829         (make_mips16_addr): Likewise to...
4830         (make_compact_addr): ... this.
4831         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4832         functions.
4833         (mips_elf_make_msymbol_special): Handle microMIPS code.
4834         (msymbol_is_special): Rename to...
4835         (msymbol_is_mips16): ... this.
4836         (mips_make_symbol_special, mips_pc_is_mips16): Update
4837         accordingly.
4838         (msymbol_is_mips, msymbol_is_micromips): New functions.
4839         (mips16_to_32_reg): Rename to...
4840         (mips_reg3_to_reg): ... this.
4841         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4842         (mips_pc_isa): Likewise.
4843         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4844         code.
4845         (mips_fetch_instruction): Pass return status instead of printing
4846         an error message if requested.  Handle microMIPS code.  Bail out
4847         on an invalid ISA.
4848         (micromips_op): New macro.
4849         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4850         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4851         (b6s4_op, b7s3_reg): Likewise.
4852         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4853         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4854         (mips_insn_size): New function.
4855         (mips32_next_pc): Update mips_fetch_instruction call.
4856         (micromips_relative_offset7): New function.
4857         (micromips_relative_offset10): Likewise.
4858         (micromips_relative_offset16): Likewise.
4859         (micromips_pc_insn_size): Likewise.
4860         (micromips_bc1_pc): Likewise.
4861         (micromips_next_pc): Likewise.
4862         (unpack_mips16): Update mips_fetch_instruction call.
4863         (extended_mips16_next_pc): Update according to change to
4864         mips16_to_32_reg.
4865         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4866         code.
4867         (mips16_scan_prologue): Update mips_fetch_instruction call.
4868         Update according to change to mips16_to_32_reg.
4869         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4870         (mips_insn16_frame_base_sniffer): Likewise.
4871         (micromips_decode_imm9): New function.
4872         (micromips_scan_prologue): Likewise.
4873         (mips_micro_frame_cache): Likewise.
4874         (mips_micro_frame_this_id): Likewise.
4875         (mips_micro_frame_prev_register): Likewise.
4876         (mips_micro_frame_sniffer): Likewise.
4877         (mips_micro_frame_unwind): New variable.
4878         (mips_micro_frame_base_address): New function.
4879         (mips_micro_frame_base): New variable.
4880         (mips_micro_frame_base_sniffer): New function.
4881         (mips32_scan_prologue): Update mips_fetch_instruction call.
4882         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4883         rather than for MIPS16.
4884         (mips_insn32_frame_base_sniffer): Likewise.
4885         (mips_addr_bits_remove): Handle microMIPS code.
4886         (deal_with_atomic_sequence): Rename to...
4887         (mips_deal_with_atomic_sequence): ... this.  Update the type
4888         of the variable used to hold an instruction.  Remove the ISA bit
4889         check.  Update mips_fetch_instruction call.
4890         (micromips_deal_with_atomic_sequence): New function.
4891         (deal_with_atomic_sequence): Likewise.
4892         (mips_about_to_return): Handle microMIPS code.  Update
4893         mips_fetch_instruction call.
4894         (heuristic_proc_start): Check for the standard MIPS ISA rather
4895         than for MIPS16.  Update mips_pc_is_mips16 and
4896         mips_fetch_instruction calls.  Handle microMIPS code.
4897         (mips_push_dummy_code): Handle microMIPS code.
4898         (mips_eabi_push_dummy_call): Likewise.
4899         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4900         (mips_o64_push_dummy_call): Handle microMIPS code.
4901         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4902         (is_delayed): Remove function.
4903         (mips_single_step_through_delay): Replace the call to is_delayed
4904         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4905         Handle microMIPS code.
4906         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4907         microMIPS code.
4908         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4909         call.
4910         (micromips_in_function_epilogue_p): New function.
4911         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4912         call.
4913         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4914         Handle microMIPS.
4915         (gdb_print_insn_mips): Likewise.
4916         (mips_breakpoint_from_pc): Likewise.
4917         (mips_remote_breakpoint_from_pc): New function.
4918         (mips32_instruction_has_delay_slot): Simplify making use of the
4919         updated mips_fetch_instruction interface.
4920         (micromips_instruction_has_delay_slot): New function.
4921         (mips16_instruction_has_delay_slot): Simplify making use of the
4922         updated mips_fetch_instruction interface.
4923         (mips_adjust_breakpoint_address): Check for the standard MIPS
4924         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4925         calls.  Handle microMIPS code.
4926         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4927         (mips_skip_trampoline_code): Handle microMIPS code.
4928         (global_mips_compression): New function.
4929         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4930         file flags.  Register the microMIPS remote breakpoint handler
4931         and heuristic frame unwinder.
4932         (show_mips_compression): New function.
4933         (_initialize_mips_tdep): Add the "set mips compression" and
4934         "show mips compression" commands.
4935
4936 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4937
4938         * ada-lang.c:
4939         * ada-tasks.c:
4940         * ada-varobj.c:
4941         * amd64-darwin-tdep.c:
4942         * arm-symbian-tdep.c:
4943         * arm-tdep.c:
4944         * avr-tdep.c:
4945         * ax-gdb.c:
4946         * bfin-linux-tdep.c:
4947         * breakpoint.c:
4948         * c-valprint.c:
4949         * cli/cli-cmds.c:
4950         * coffread.c:
4951         * cp-support.c:
4952         * cris-tdep.c:
4953         * dwarf2-frame-tailcall.c:
4954         * dwarf2-frame.c:
4955         * dwarf2expr.c:
4956         * dwarf2loc.c:
4957         * dwarf2read.c:
4958         * elfread.c:
4959         * eval.c:
4960         * expprint.c:
4961         * f-valprint.c:
4962         * frv-tdep.c:
4963         * h8300-tdep.c:
4964         * hppa-hpux-tdep.c:
4965         * hppa-tdep.c:
4966         * hppanbsd-tdep.c:
4967         * i386-nto-tdep.c:
4968         * i386-tdep.c:
4969         * i387-tdep.c:
4970         * ia64-tdep.c:
4971         * jit.c:
4972         * linespec.c:
4973         * linux-tdep.c:
4974         * lm32-tdep.c:
4975         * m2-valprint.c:
4976         * m32c-tdep.c:
4977         * m32r-rom.c:
4978         * m32r-tdep.c:
4979         * m68k-tdep.c:
4980         * m68klinux-tdep.c:
4981         * mi/mi-main.c:
4982         * microblaze-tdep.c:
4983         * mips-linux-tdep.c:
4984         * mips-tdep.c:
4985         * mn10300-tdep.c:
4986         * p-valprint.c:
4987         * parse.c:
4988         * ppc-linux-tdep.c:
4989         * ppc-sysv-tdep.c:
4990         * printcmd.c:
4991         * python/py-finishbreakpoint.c:
4992         * python/py-inferior.c:
4993         * python/py-infthread.c:
4994         * python/py-type.c:
4995         * python/python.c:
4996         * remote-fileio.c:
4997         * remote-m32r-sdi.c:
4998         * remote-mips.c:
4999         * reverse.c:
5000         * rl78-tdep.c:
5001         * rs6000-aix-tdep.c:
5002         * rs6000-tdep.c:
5003         * s390-tdep.c:
5004         * score-tdep.c:
5005         * sh64-tdep.c:
5006         * skip.c:
5007         * solib-darwin.c:
5008         * solib-dsbt.c:
5009         * solib-frv.c:
5010         * sparc-tdep.c:
5011         * spu-multiarch.c:
5012         * spu-tdep.c:
5013         * stack.c:
5014         * symfile.c:
5015         * symtab.c:
5016         * tic6x-tdep.c:
5017         * tracepoint.c:
5018         * v850-tdep.c:
5019         * valarith.c:
5020         * valprint.c:
5021         * value.c:
5022         * xcoffread.c:
5023         * xtensa-tdep.c:
5024         * ada-lang.c:
5025         * ada-tasks.c:
5026         * ada-varobj.c:
5027         * amd64-darwin-tdep.c:
5028         * arm-symbian-tdep.c:
5029         * arm-tdep.c: Delete unused variables.
5030
5031 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5032
5033         Rename $ddir to $datadir.
5034         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5035         * auto-load.c (auto_load_safe_path_vec_update)
5036         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5037         * configure: Regenerate.
5038         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5039         Likewise.  Remove the 'use $ddir' help string.
5040
5041 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5042
5043         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5044         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5045
5046 2012-05-18  Tom Tromey  <tromey@redhat.com>
5047
5048         PR exp/13907:
5049         * valprint.h (struct value_print_options) <symbol_print>: New
5050         field.
5051         * valprint.c (user_print_options): Add default for symbol_print.
5052         (show_symbol_print): New function.
5053         (generic_val_print): Respect symbol_print.
5054         (_initialize_valprint): Add "print symbol" setting.
5055         * f-valprint.c (f_val_print): Respect symbol_print.
5056         * c-valprint.c (c_val_print): Respect symbol_print.
5057         * NEWS: Update.
5058         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5059         zero-size symbols.
5060         (print_address_demangle): Return int.
5061         * defs.h: (print_address_symbolic): Return int.
5062         * value.h (print_address_demangle): Return int.
5063
5064 2012-05-18  Tom Tromey  <tromey@redhat.com>
5065
5066         * valprint.c (val_print_string): Don't print leading space.
5067         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5068         print space before string or vtbl.
5069         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5070         before string.
5071         * jv-valprint.c (java_value_print): Print space before string.
5072         * go-valprint.c (print_go_string): Print space before string.
5073         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5074         space before string.
5075         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5076         space before string or vtbl.
5077         * auxv.c (fprint_target_auxv): Print space after address.
5078
5079 2012-05-18  Tom Tromey  <tromey@redhat.com>
5080
5081         * printcmd.c (print_address_demangle): Remove special case for 0.
5082
5083 2012-05-18  Tom Tromey  <tromey@redhat.com>
5084
5085         * printcmd.c (print_address_demangle): Add 'opts' argument.
5086         * p-valprint.c (pascal_val_print): Update.
5087         * jv-valprint.c (java_val_print): Update.
5088         * value.h: Update.
5089         * valprint.c (generic_val_print): Update.
5090         (print_function_pointer_address): Add 'options' argument.  Remove
5091         'addressprint' argument.  Update.
5092         * m2-valprint.c (print_unpacked_pointer): Update.
5093         * gnu-v3-abi.c (print_one_vtable): Update.
5094         (gnuv3_print_method_ptr): Update.
5095         * f-valprint.c (f_val_print): Update.
5096         * cp-valprint.c (cp_print_value_fields): Update.
5097         * valprint.h (print_function_pointer_address): Update.
5098         * c-valprint.c (c_val_print): Update.
5099
5100 2012-05-18  Tom Tromey  <tromey@redhat.com>
5101
5102         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5103         directly corresponding to the found psymtab.
5104         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5105         (dw2_find_pc_sect_symtab): Use it.
5106         * block.h (blockvector_contains_pc): Declare.
5107         * block.c (find_block_in_blockvector): New function.
5108         (blockvector_for_pc_sect): Use it.
5109         (blockvector_contains_pc): New function.
5110
5111 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5112
5113         * mips-tdep.h (mips_write_pc): New prototype.
5114         * mips-tdep.c (mips_write_pc): Make external, add description.
5115         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5116         add description.
5117
5118 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5119
5120         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5121         mips_regnum->pc.
5122         (mips_unwind_pc, mips_write_pc): Likewise.
5123         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5124         gdbarch_read_pc.
5125
5126 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5127
5128         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5129         proc_warn, proc_error, proc_get_status, proc_flags,
5130         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5131         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5132         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5133         proc_stop_process, proc_wait_for_stop, proc_run_process,
5134         proc_set_traced_signals, proc_set_traced_faults,
5135         proc_set_traced_sysentry, proc_set_traced_sysexit,
5136         proc_set_held_signals, proc_get_held_signals,
5137         proc_get_traced_signals, proc_get_traced_faults,
5138         proc_get_traced_sysentry, proc_get_traced_sysexit,
5139         proc_clear_current_fault, proc_set_current_signal,
5140         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5141         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5142         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5143         proc_get_current_thread, proc_get_current_thread,
5144         proc_get_current_thread, proc_update_threads,
5145         proc_update_threads, proc_update_threads, proc_update_threads,
5146         proc_iterate_over_threads, procfs_find_new_threads,
5147         procfs_pid_to_str): Make static.  Remove advance declaration.
5148         (proc_cursig): Make static.  Conditionalized defintion on
5149         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5150         (proc_syscall, proc_set_kill_on_last_close,
5151         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5152         proc_get_pending_signals, proc_get_signal_actions,
5153         proc_trace_signal, proc_ignore_signal): Delete.
5154
5155 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5156
5157         * coffread.c (cs_section_address): Passing proper argument for
5158         `bfd_get_section_vma'.
5159         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5160         `bfd_get_section_flags'.
5161         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5162         `bfd_get_section_vma'.
5163
5164 2012-05-16  Tom Tromey  <tromey@redhat.com>
5165
5166         PR macros/13205:
5167         * macrotab.h: (macro_define_special): Declare.
5168         (enum macro_special_kind): New.
5169         (struct macro_definition) <argc, replacement>: Update comments.
5170         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5171         (macro_define_object_internal): New function.
5172         (macro_define_object): Use it.
5173         (macro_define_special): New function.
5174         (fixup_definition): New function.
5175         (macro_lookup_definition, foreach_macro_in_scope)
5176         (foreach_macro): Use fixup_definition.
5177         * macroexp.h (macro_stringify): Declare.
5178         * macroexp.c (free_buffer_return_text): New function.
5179         (stringify): Constify "arg".
5180         (macro_stringify): New function.
5181         * dwarf2read.c (macro_start_file): Call macro_define_special.
5182
5183 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5184             Maciej W. Rozycki  <macro@mips.com>
5185
5186         * breakpoint.h (bp_location): Add related_address member.
5187         * inferior.h (get_return_value): Take a pointer to struct value
5188         instead of struct type for the function requested.
5189         * value.h (using_struct_return): Likewise.
5190         * gdbarch.sh (return_value): Take a pointer to struct value
5191         instead of struct type for the function requested.
5192         * breakpoint.c (set_breakpoint_location_function): Initialize
5193         related_address for bp_gnu_ifunc_resolver breakpoints.
5194         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5195         requested function's address to gdbarch_return_value.
5196         * eval.c (evaluate_subexp_standard): Pass the requested
5197         function's address to using_struct_return.
5198         * infcall.c (call_function_by_hand): Pass the requested
5199         function's address to using_struct_return and
5200         gdbarch_return_value.
5201         * infcmd.c (get_return_value): Take a pointer to struct value
5202         instead of struct type for the function requested.
5203         (print_return_value): Update accordingly.
5204         (finish_command_continuation): Likewise.
5205         * stack.c (return_command): Pass the requested function's
5206         address to using_struct_return and gdbarch_return_value.
5207         * value.c (using_struct_return): Take a pointer to struct value
5208         instead of struct type for the function requested.  Pass the
5209         requested function's address to gdbarch_return_value.
5210         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5211         New function_value member, replacing function_type.
5212         (bpfinishpy_dealloc): Update accordingly.
5213         (bpfinishpy_pre_stop_hook): Likewise.
5214         (bpfinishpy_init): Likewise.  Record the requested function's
5215         address.
5216         * mips-tdep.c (mips_fval_reg): New enum.
5217         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5218         words put in GP registers.
5219         (mips_o64_push_dummy_call): Update a comment.
5220         (mips_o32_return_value): Take a pointer to struct value instead
5221         of struct type for the function requested and use it to check if
5222         using the MIPS16 calling convention.  Return the designated
5223         general purpose registers for floating-point values returned in
5224         MIPS16 mode.
5225         (mips_o64_return_value): Likewise.
5226         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5227         (ppc_sysv_abi_broken_return_value): Likewise.
5228         (ppc64_sysv_abi_return_value): Likewise.
5229         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5230         value instead of struct type for the function requested.
5231         * amd64-tdep.c (amd64_return_value): Likewise.
5232         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5233         * arm-tdep.c (arm_return_value): Likewise.
5234         * avr-tdep.c (avr_return_value): Likewise.
5235         * bfin-tdep.c (bfin_return_value): Likewise.
5236         * cris-tdep.c (cris_return_value): Likewise.
5237         * frv-tdep.c (frv_return_value): Likewise.
5238         * h8300-tdep.c (h8300_return_value): Likewise.
5239         (h8300h_return_value): Likewise.
5240         * hppa-tdep.c (hppa32_return_value): Likewise.
5241         (hppa64_return_value): Likewise.
5242         * i386-tdep.c (i386_return_value): Likewise.
5243         * ia64-tdep.c (ia64_return_value): Likewise.
5244         * iq2000-tdep.c (iq2000_return_value): Likewise.
5245         * lm32-tdep.c (lm32_return_value): Likewise.
5246         * m32c-tdep.c (m32c_return_value): Likewise.
5247         * m32r-tdep.c (m32r_return_value): Likewise.
5248         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5249         * m68k-tdep.c (m68k_return_value): Likewise.
5250         (m68k_svr4_return_value): Likewise.
5251         * m88k-tdep.c (m88k_return_value): Likewise.
5252         * mep-tdep.c (mep_return_value): Likewise.
5253         * microblaze-tdep.c (microblaze_return_value): Likewise.
5254         * mn10300-tdep.c (mn10300_return_value): Likewise.
5255         * moxie-tdep.c (moxie_return_value): Likewise.
5256         * mt-tdep.c (mt_return_value): Likewise.
5257         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5258         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5259         (ppc_sysv_abi_broken_return_value): Likewise.
5260         (ppc64_sysv_abi_return_value): Likewise.
5261         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5262         * rl78-tdep.c (rl78_return_value): Likewise.
5263         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5264         * rx-tdep.c (rx_return_value): Likewise.
5265         * s390-tdep.c (s390_return_value): Likewise.
5266         * score-tdep.c (score_return_value): Likewise.
5267         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5268         (sh_return_value_fpu): Likewise.
5269         * sh64-tdep.c (sh64_return_value): Likewise.
5270         * sparc-tdep.c (sparc32_return_value): Likewise.
5271         * sparc64-tdep.c (sparc64_return_value): Likewise.
5272         * spu-tdep.c (spu_return_value): Likewise.
5273         * tic6x-tdep.c (tic6x_return_value): Likewise.
5274         * v850-tdep.c (v850_return_value): Likewise.
5275         * vax-tdep.c (vax_return_value): Likewise.
5276         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5277         * xtensa-tdep.c (xtensa_return_value): Likewise.
5278         * gdbarch.c: Regenerate.
5279         * gdbarch.h: Regenerate.
5280
5281 2012-05-15  Tom Tromey  <tromey@redhat.com>
5282
5283         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5284
5285 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5286
5287         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5288         of command in two error message.
5289
5290 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5291
5292         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5293
5294 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5295
5296         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5297
5298 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5299
5300         * NEWS (show auto-load scripts-directory): Add forgotten command.
5301
5302 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5303
5304         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5305         parameters.
5306
5307 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5308
5309         * amd64-tdep.c: Include features/i386/x32.c and
5310         features/i386/x32-avx.c.
5311         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5312         initialize_tdesc_x32_avx.
5313
5314 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5315
5316         Add dynamic printf.
5317         * breakpoint.h (enum bptype): New type bp_dprintf.
5318         (struct breakpoint): New field extra_string.
5319         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5320         (create_breakpoint): Add extra_string arg.
5321         * breakpoint.c (dprintf_breakpoint_ops): New.
5322         (is_breakpoint): Add bp_dprintf.
5323         (bpstat_what): Add dprintf case.
5324         (bptype_string): Ditto.
5325         (print_one_breakpoint_location): Ditto.
5326         (init_bp_location): Ditto.
5327         (bkpt_print_mention): Ditto.
5328         (dprintf_style_enums): New array.
5329         (dprintf_style): New global.
5330         (dprintf_function): New global.
5331         (dprintf_channel): New global.
5332         (update_dprintf_command_list): New function.
5333         (update_dprintf_commands): New function.
5334         (init_breakpoint_sal): Add extra_string argument, handle it.
5335         (create_breakpoint_sal): Add extra_string argument.
5336         (create_breakpoints_sal): Add extra_string argument, update callers.
5337         (find_condition_and_thread): Add extra argument.
5338         (create_breakpoint): Add extra_string argument, record it.
5339         (dprintf_command): New function.
5340         (break_command_1): Add arg to create_breakpoint call.
5341         (handle_gnu_v3_exceptions): Ditto.
5342         (trace_command): Ditto.
5343         (ftrace_command): Ditto.
5344         (strace_command): Ditto.
5345         (bkpt_print_mention): Add dprintf case.
5346         (create_breakpoint_sal_default): Add extra_string argument.
5347         (_initialize_breakpoint): Add new commands.
5348         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5349         * python/py-breakpoint.c (bppy_init): Ditto.
5350         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5351
5352 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5353
5354         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5355
5356 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5357
5358         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5359         unsigned long long.
5360
5361 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5362
5363         Add a new function gdb.find_pc_line to the Python API.
5364         * NEWS (Python Scripting): Add entry about the new function.
5365         * python/python.c (gdbpy_find_pc_line): New function which
5366         implements gdb.find_pc_line.
5367         (GdbMethods): Add entry for the new function.
5368
5369 2012-05-12  Pedro Alves  <palves@redhat.com>
5370
5371         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5372         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5373
5374 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5375
5376         * inferior.c: Include completer.h
5377         (initialize_inferiors): Set completer of add-inferior to
5378         filename_completer.
5379
5380 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5381
5382         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5383         gdbarch_ptr_bit for x32 core dump.
5384
5385 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5386
5387         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5388         and features/i386/x32-avx-linux.c.
5389
5390 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5391             Kwok Cheung Yeung  <kcy@codesourcery.com>
5392
5393         * NEWS: Describe new info os commands.
5394         * common/linux-osdata.c (PID_T, TIME_T): Define.
5395         (MAX_PID_T_STRLEN): New.
5396         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5397         MAX_PID_T_STRLEN.
5398         (command_from_pid): Add comment.  Change to use PID_T.
5399         (commandline_from_pid):  Change to use PID_T.
5400         (user_from_pid): Add comment.
5401         (get_process_owner): Add comment. Change to use PID_T and
5402         MAX_PID_T_STRLEN.
5403         (get_number_of_cpu_cores): Add comment.
5404         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5405         MAX_PID_T_STRLEN.
5406         (linux_xfer_osdata_processes): Change to use PID_T and
5407         MAX_PID_T_STRLEN.
5408         (compare_processes): New function.
5409         (linux_xfer_osdata_processgroups): New function.
5410         (linux_xfer_osdata_threads): Change to use PID_T.
5411         (linux_xfer_osdata_fds): New function.
5412         (format_socket_state, print_sockets): New functions.
5413         (union socket_addr): New union.
5414         (linux_xfer_osdata_isockets): New function.
5415         (time_from_time_t, group_from_gid): New functions.
5416         (linux_xfer_osdata_shm): New function.
5417         (linux_xfer_osdata_sem): New function.
5418         (linux_xfer_osdata_msg): New function.
5419         (linux_xfer_osdata_modules): New function.
5420         (osdata_table): Add new entries.
5421         * common/buffer.c (buffer_xml_printf): Add support for long and
5422         long long format specifiers.
5423
5424 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5425
5426         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5427         (tdesc_x32_avx_linux): Likewise.
5428
5429 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5430
5431         Implement multi-component --with-auto-load-dir.
5432         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5433         entries.
5434         (--with-auto-load-safe-path): Update the default value description.
5435         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5436         New.
5437         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5438         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5439         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5440         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5441         "set auto-load scripts-directory".
5442         * config.in: Regenerate.
5443         * configure: Regenerate.
5444         * configure.ac (--with-auto-load-dir): New configure option.
5445         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5446
5447 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5448
5449         Provide $ddir substitution for --with-auto-load-safe-path.
5450         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5451         entries.
5452         * auto-load.c: Include observer.h.
5453         (auto_load_safe_path_vec_update): Call substitute_path_component for
5454         each component.  New variable ddir_subst.
5455         (auto_load_gdb_datadir_changed): New function.
5456         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5457         AUTO_LOAD_SAFE_PATH.  New comment.
5458         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5459         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5460         * config.in: Regenerate.
5461         * configure: Regenerate.
5462         * configure.ac (--auto-load-safe-path): Rename
5463         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5464         GDB_DATADIR/auto-load.
5465         * defs.h (substitute_path_component): New declaration.
5466         * top.c: Include observer.h.
5467         (set_gdb_datadir): New function.
5468         (init_main): Install it for "set data-directory".
5469         * utils.c (substitute_path_component): New function.
5470
5471 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5472
5473         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5474         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5475         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5476         DEBUG_FILE_DIRECTORY.
5477
5478 2012-05-10  Tom Tromey  <tromey@redhat.com>
5479
5480         * dwarf2read.c (recursively_write_psymbols): New function.
5481         (write_psymtabs_to_index): Use it.
5482
5483         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5484         field.
5485         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5486         (load_partial_comp_unit): Update.
5487         (queue_comp_unit): Add argument 'pretend_language'.
5488         (process_queue): Update.
5489         (psymtab_to_symtab_1): Skip dependencies that have a user.
5490         (load_partial_comp_unit_reader): Give meaning to the 'data'
5491         argument.
5492         (load_full_comp_unit): Add 'pretend_language' argument.
5493         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5494         language on CU.
5495         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5496         Update.
5497         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5498         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5499         Update.
5500         (prepare_one_comp_unit): Add 'pretend_language' argument.
5501
5502         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5503         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5504         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5505         (dw2_do_instantiate_symtab): Check whether symtab was read in
5506         before queueing.
5507         (dw2_instantiate_symtab): Add assertion.  Call
5508         process_cu_includes.
5509         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5510         (partial_symtab_p): New typedef.
5511         (set_partial_user): New function.
5512         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5513         (scan_partial_symbols): Add imported CU to imported_symtabs.
5514         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5515         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5516         (get_symtab, recursively_compute_inclusions)
5517         (compute_symtab_includes, process_cu_includes)
5518         (process_imported_unit_die): New functions.
5519         (process_die) <DW_TAG_imported_unit>: New case.
5520         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5521
5522         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5523         comment.
5524         (struct partial_die_info) <locdesc>: Remove.
5525         <d>: New field.
5526         (process_psymtab_comp_unit): Add 'read_partial' argument.
5527         Update.
5528         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5529         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5530         (add_partial_symbol): Update.
5531         (process_die): Handle DW_TAG_partial_unit.
5532         (read_file_scope): Update comment.
5533         (load_partial_dies): Handle DW_TAG_imported_unit.
5534         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5535         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5536
5537 2012-05-10  Tom Tromey  <tromey@redhat.com>
5538
5539         * cc-with-dwz.sh: New file.
5540
5541 2012-05-10  Tom Tromey  <tromey@redhat.com>
5542
5543         * symtab.h (struct symtab) <includes, user>: New fields.
5544         * block.h (struct block_iterator) <d, idx, which>: New fields.
5545         * block.c (initialize_block_iterator, find_iterator_symtab)
5546         (block_iterator_step, block_iter_name_step)
5547         (block_iter_match_step): New functions.
5548         (block_iterator_first, block_iterator_next)
5549         (block_iter_name_first, block_iter_name_next)
5550         (block_iter_match_first, block_iter_match_next): Rewrite.
5551         (get_block_symtab): New function.
5552
5553 2012-05-10  Tom Tromey  <tromey@redhat.com>
5554
5555         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5556         set_block_symtab.
5557         * jit.c (finalize_symtab): Use allocate_global_block,
5558         set_block_symtab.
5559         * buildsym.c (finish_block_internal): New function, from old
5560         finish_block.
5561         (finish_block): Rewrite.
5562         (end_symtab): Use finish_block_internal, set_block_symtab.
5563         * block.h (struct global_block): New.
5564         (allocate_global_block, set_block_symtab): Declare.
5565         * block.c (allocate_global_block, set_block_symtab): New
5566         functions.
5567
5568 2012-05-10  Tom Tromey  <tromey@redhat.com>
5569
5570         * psymtab.c (partial_map_expand_apply): Add assertion.
5571         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5572         (psymtab_to_symtab): Find unshared psymtab.
5573         (dump_psymtab): Print including psymtabs.
5574         (recursively_search_psymtabs): New function.
5575         (expand_symtabs_matching_via_partial): Use it.
5576         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5577         fields.
5578         (enum psymtab_search_status): New.
5579
5580 2012-05-10  Tom Tromey  <tromey@redhat.com>
5581
5582         * tracepoint.c (scope_info): Update.
5583         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5584         (find_pc_sect_symtab, search_symbols)
5585         (default_make_symbol_completion_list_break_on)
5586         (make_file_symbol_completion_list): Update.
5587         * symmisc.c (dump_symtab_1): Update.
5588         * stack.c (print_frame_args, iterate_over_block_locals)
5589         (print_frame_labels, iterate_over_block_arg_vars): Update.
5590         * python/py-block.c (block_object) <dict>: Remove.
5591         <block>: New field.
5592         <iter>: Change type.
5593         (blpy_iter): Update.
5594         (blpy_block_syms_iternext): Update.
5595         * psymtab.c (map_block): Use block iterators.
5596         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5597         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5598         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5599         * infrun.c (check_exception_resume): Update.
5600         * cp-support.c (make_symbol_overload_list_block): Update.
5601         * coffread.c (patch_opaque_types): Update.
5602         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5603         * block.h (struct block_iterator): New.
5604         (block_iterator_first, block_iterator_next, block_iter_name_first)
5605         (block_iter_name_next, block_iter_match_first)
5606         (block_iter_match_next): Declare.
5607         (ALL_BLOCK_SYMBOLS): Redefine.
5608         * block.c (block_iterator_first, block_iterator_next)
5609         (block_iter_name_first, block_iter_name_next)
5610         (block_iter_match_first, block_iter_match_next): New functions.
5611         * ada-lang.c (ada_add_block_symbols)
5612         (ada_make_symbol_completion_list): Use block iterator.
5613
5614 2012-05-10  Tom Tromey  <tromey@redhat.com>
5615
5616         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5617         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5618         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5619         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5620         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5621         Update.
5622
5623 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5624
5625         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5626         print-file-var-lib2.c, print-file-var-main.c and
5627         print-file-var.exp (located in gdb/testsuite/gdb.base).
5628
5629 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5630
5631         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5632         try locating the symbol in the symbol's own objfile first, before
5633         extending the search to all objfiles.
5634         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5635         out of lookup_symbol_aux_symtabs.
5636         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5637         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5638         Do not search EXCLUDE_OBJFILE.
5639         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5640         (lookup_symbol_global): Search for matches in the block's objfile
5641         first, before searching all other objfiles.
5642
5643 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5644
5645         * printcmd.c (set_command): Add pre/post inc/dec.
5646
5647 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5648
5649         * gdb.1: Document -ex option.
5650
5651 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5652
5653         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5654         * inferior.h (AT_SYMBOL): Delete.
5655
5656 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5657
5658         * mips-tdep.c (mips_push_dummy_code): New function.
5659         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5660         ON_STACK and install mips_push_dummy_code as our gdbarch
5661         push_dummy_code routine.
5662
5663 2012-05-09  Pedro Alves  <palves@redhat.com>
5664
5665         * target.c (set_maintenance_target_async_permitted): Rename to ...
5666         (set_target_async_command): ... this.
5667         (show_maintenance_target_async_permitted): Rename to ...
5668         (show_target_async_command): ... this.
5669         (initialize_targets): Adjust.
5670
5671 2012-05-08  Doug Evans  <dje@google.com>
5672
5673         * go-exp.y (classify_name): Add missing assignment of fields of
5674         yylval.ssym.
5675
5676 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5677
5678         Display the ">" prompt in interactive mode while reading canned
5679         commands, even when the current interpreter is MI.
5680
5681         * interps.c (interp_set_temp): New function.
5682
5683         * interps.h (interp_set_temp): Add prototype.
5684
5685         * cli/cli-script.c (restore_interp): New cleanup function.
5686         (read_command_lines): Temporarily override the current interpreter
5687         with CLI and arrange for restoring the original one.
5688
5689 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5690
5691         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5692
5693 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5694
5695         * probe.c (parse_probes): Move conditional to check for
5696         debuginfo files from here...
5697         * stap-probe.c (stap_get_probes): ... to here.
5698
5699 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5700             H.J. Lu  <hongjiu.lu@intel.com>
5701
5702         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5703         `movl %esp, %ebp' for the X32 ABI.
5704
5705 2012-05-07  Tom Tromey  <tromey@redhat.com>
5706
5707         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5708         get_DW_TAG_name.
5709         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5710         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5711         (dwarf_stack_op_name): Remove.
5712         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5713         (decode_locdesc): Use get_DW_OP_name.
5714         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5715         (dwarf2_compile_expr_to_ax): Likewise.
5716         (disassemble_dwarf_expression): Likewise.
5717         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5718
5719 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5720
5721         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5722         (sh_linux_sigtramp_cache): New function.
5723         (sh_linux_sigreturn_init): New function.
5724         (sh_linux_rt_sigreturn_init): New function.
5725         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5726         patterns.
5727         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5728         syscall codes.
5729         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5730         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5731         (sh_linux_init_abi): Add init calls to register new tramp_frame
5732         definitions under 32-bit SH, update comments.
5733
5734 2012-05-07  Pedro Alves  <palves@redhat.com>
5735
5736         PR gdb/10952
5737
5738         * amd64-linux-tdep.c: Include glibc-tdep.h.
5739         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5740         gdbarch_skip_solib_resolver callback.
5741
5742 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5743
5744         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5745         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5746         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5747         (add_auto_load_safe_path): Change the error message.
5748         (_initialize_auto_load): Change the "safe-path" help text.
5749         * configure: Regenerate
5750         * configure.ac (--without-auto-load-safe-path): Set
5751         WITH_AUTO_LOAD_SAFE_PATH to /.
5752
5753 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5754
5755         * stap-probe.h: Do not include unecessary `probe.h'.
5756
5757 2012-05-05  Alan Modra  <amodra@gmail.com>
5758
5759         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5760         bfd_und_section_ptr.
5761         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5762         and bfd_com_section_ptr.
5763
5764 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5765
5766         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5767
5768 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5769
5770         * windows-nat.h (segment_register_p_ftype): New typedef.
5771         (windows_set_segment_register_p): Add declaration.
5772         * windows-nat.c (segment_register_p): New static global.
5773         (windows_set_segment_register_p): New function.
5774         (do_windows_fetch_inferior_registers): Add special handling
5775         for segment registers.
5776         * amd64-windows-nat.c: #include "amd64-tdep.h".
5777         (amd64_windows_segment_register_p): New function.
5778         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5779         * i386-windows-nat.c: #include "i386-tdep.h".
5780         (i386_windows_segment_register_p): New function.
5781         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5782
5783 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5784
5785         * printcmd.c (set_command): Emit a warning if the expression is not
5786         an assignment.
5787
5788 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5789
5790         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5791         Make static.
5792
5793 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5794
5795         * stap-probe.c (stap_is_operator): Change declaration.
5796         (stap_get_opcode): Change return value.
5797         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5798         `stap_parse_argument_1'.
5799
5800 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5801
5802         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5803         debug log.
5804
5805 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5806
5807         Add two new methods global_block and static_block to gdb.Symtab
5808         objects.
5809         * NEWS (Python scripting): Add entry about the new methods.
5810         * python/py-symtab.c (stpy_global_block): New function which
5811         implements the gdb.Symtab.global_block() method.
5812         (stpy_static_block): New function which implements the
5813         gdb.Symtab.static_block() method.
5814         (symtab_object_methods): Add entries for the two new methods.
5815
5816 2012-05-03  Doug Evans  <dje@google.com>
5817
5818         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5819         files.
5820
5821 2012-05-03  Yao Qi  <yao@codesourcery.com>
5822
5823         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5824         space.
5825         (i386_process_record): Ditto.
5826
5827 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5828
5829         * infcall.c (unwind_on_signal_p): Make static.
5830
5831 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5832
5833         * sol-thread.c (solaris_pid_to_str): Make static.
5834         (_initialize_sol_thread): Add prototype.
5835
5836 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5837
5838         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5839
5840 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5841
5842         * MAINTAINERS: Remove myself.
5843
5844 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5845
5846         Fix --without-auto-load-safe-path for MS-Windows host platform.
5847         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5848
5849 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5850
5851         * gdb_curses.h: Undefine KEY_EVENT before including curses
5852         headers.  Move "#undef MOUSE_MOVED" before any curses header
5853         inclusion.
5854
5855 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5856
5857         * features/i386/i386-mmx-linux.c: Regenerate.
5858         * features/rs6000/powerpc-32.c: Likewise.
5859         * features/rs6000/powerpc-32l.c: Likewise.
5860         * features/rs6000/powerpc-403.c: Likewise.
5861         * features/rs6000/powerpc-403gc.c: Likewise.
5862         * features/rs6000/powerpc-405.c: Likewise.
5863         * features/rs6000/powerpc-505.c: Likewise.
5864         * features/rs6000/powerpc-601.c: Likewise.
5865         * features/rs6000/powerpc-602.c: Likewise.
5866         * features/rs6000/powerpc-603.c: Likewise.
5867         * features/rs6000/powerpc-604.c: Likewise.
5868         * features/rs6000/powerpc-64.c: Likewise.
5869         * features/rs6000/powerpc-64l.c: Likewise.
5870         * features/rs6000/powerpc-750.c: Likewise.
5871         * features/rs6000/powerpc-860.c: Likewise.
5872         * features/rs6000/powerpc-e500.c: Likewise.
5873         * features/rs6000/powerpc-e500l.c: Likewise.
5874         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5875         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5876         * features/rs6000/rs6000.c: Likewise.
5877
5878 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5879
5880         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5881         variable.
5882         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5883         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5884         (stap_parse_argument) <e>: Likewise.
5885         (handle_stap_probe) <byte_order>: Likewise.
5886
5887 2012-04-30  Doug Evans  <dje@google.com>
5888
5889         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5890         init_and_read_dies_worker.  All callers updated.
5891         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5892         replaced with init_cutu_and_read_dies.
5893         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5894         (find_partial_die): Remove FIXME.  Don't free current CU.
5895
5896 2012-04-30  Sterling Augustine  <saugustine@google.com>
5897
5898         * contrib: New directory.
5899         * contrib/test_pubnames_and_indexes.py: New file.
5900
5901 2012-04-30  Doug Evans  <dje@google.com>
5902
5903         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5904         All callers updated.
5905         (init_cu_die_reader): Verify the section is non-empty.
5906         (dwarf_decode_line_header): Don't dereference section->asection
5907         until we know the section is present.
5908
5909 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5910
5911         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5912         probes.
5913
5914 2012-04-29  Yao Qi  <yao@codesourcery.com>
5915
5916         * gdb-code-style.el: New hook gdb-markup-hook
5917         and gdb-comment-hook.
5918
5919 2012-04-28  Doug Evans  <dje@google.com>
5920
5921         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5922         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5923         objfile->obfd.
5924         * symfile.h (dwarf2_debug_sections): New member addr.
5925         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5926         (ctx_no_get_addr_index): New function.
5927         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5928         (ctx_no_get_addr_index): Declare.
5929         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5930         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5931         (dwarf_expr_ctx_funcs): Update.
5932         (needs_get_addr_index): New function.
5933         (needs_frame_ctx_funcs): Update.
5934         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5935         * dwarf2read.c: #include "gdbcore.h".
5936         (dwarf2_per_objfile): New members addr, dwo_files.
5937         (dwarf2_elf_names): Add entry for addr.
5938         (struct dwo_section_names): New type.
5939         (dwo_section_names): New static global.
5940         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5941         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5942         old debug_types_section member updated to use this.
5943         Rename member debug_types_section to info_or_types_section,
5944         all uses updated.
5945         (signatured_type): Rename member type_offset to type_offset_in_tu,
5946         all uses updated.  New member type_offset_in_section.
5947         (struct dwo_sections): New type.
5948         (struct dwo_unit): New type.
5949         (struct dwo_file): New type.
5950         (die_reader_specs): New member dwo_file.
5951         (dwarf2_locate_sections): Watch for .debug_addr.
5952         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5953         (dwarf2_read_section): Get bfd of section from bfd's asection,
5954         instead of objfile.
5955         (create_cus_from_index): Initialize the_cu->info_or_types_section.
5956         (create_signatured_type_table_from_index): Initialize
5957         sig_type->info_or_types_section.
5958         (dw2_get_file_names): Statement lists for type units with DWO files
5959         live in the DWO file.
5960         (create_debug_types_hash_table): New function.
5961         (create_all_type_units): Rewrite.
5962         (init_cu_die_reader): New arg dwo_file, all callers updated.
5963         (init_and_read_dies_worker): Get section from
5964         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
5965         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5966         continue reading the CU/TU from there.
5967         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5968         updated.  Get section from this_cu->info_or_types_section.
5969         (create_all_comp_units): Initialize this_cu->info_or_types_section.
5970         (skip_one_die): New cases DW_FORM_GNU_addr_index,
5971         DW_FORM_GNU_str_index.
5972         (hash_dwo_file, eq_dwo_file): New functions.
5973         (allocate_dwo_file_hash_table): New function.
5974         (hash_dwo_unit, eq_dwo_unit): New functions.
5975         (allocate_dwo_unit_table): New function.
5976         (dwarf2_locate_dwo_sections): New function.
5977         (struct create_dwo_info_table_data): New type.
5978         (create_debug_info_hash_table_reader): New function.
5979         (create_debug_info_hash_table): New function.
5980         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5981         (lookup_dwo_file): New function.
5982         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5983         (free_dwo_file, free_dwo_file_cleanup): New functions.
5984         (free_dwo_file_from_slot, free_dwo_files): New functions.
5985         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5986         (dwarf2_record_block_ranges): Ditto.
5987         (read_partial_die): Ditto.
5988         (process_enumeration_scope): Update to use type_offset_in_section.
5989         (read_full_die_1): New function.
5990         (read_full_die): Rewrite.
5991         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5992         DW_FORM_GNU_str_index.
5993         (read_addr_index_1, read_addr_index): New functions.
5994         (read_addr_index_from_leb128): New function.
5995         (struct dwarf2_read_addr_index_data): New type.
5996         (dwarf2_read_addr_index_reader): New function.
5997         (dwarf2_read_addr_index): New function.
5998         (read_str_index): New function.
5999         (leb128_size): New function.
6000         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6001         If processing a type unit from a DWO file, get the line section
6002         from the DWO file.
6003         (var_decode_location): Watch for DW_OP_GNU_addr_index.
6004         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6005         DW_FORM_GNU_str_index.
6006         (lookup_die_type): Check whether section offset of type's die is
6007         known before looking it up.  Remove assert.  Condition can
6008         legimately happen for inter-cu type references.
6009         (dwarf_attr_name): Handle Fission attributes.
6010         (dwarf_form_name): Handle Fission forms.
6011         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6012         DW_FORM_GNU_str_index.
6013         (follow_die_sig): Update to use type_offset_in_section.
6014         (decode_locdesc): New case DW_OP_GNU_addr_index.
6015         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6016         DW_FORM_GNU_str_index.
6017         (cu_debug_loc_section): New function.
6018         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6019         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6020         Free DWO files if present.
6021         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6022
6023         Refactor DIE reading.
6024         * dwarf2read.c (dwarf2_per_objfile): Replace members
6025         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6026         (die_reader_specs): New member "die_section".  Temporarily make
6027         member "buffer" non-const, pending constifying all info_ptr uses.
6028         (die_reader_func_ftype): New typedef.
6029         (dw2_get_file_names_reader): New function.
6030         (dw2_get_file_names): Rewrite.
6031         (read_and_check_type_unit_head): Rename arg type_offset to
6032         type_offset_in_tu.
6033         (create_all_type_units): Improve debugging message.
6034         Improve dummy type unit check.
6035         (init_cu_die_reader): New arg "section".  All callers updated.
6036         (init_and_read_dies_worker): New function.
6037         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6038         (init_cutu_and_read_dies_no_follow): New function.
6039         (init_cutu_and_read_dies_simple): New function.
6040         (process_psymtab_comp_unit_reader): New function.
6041         (process_psymtab_comp_unit): Delete args section,
6042         is_debug_types_section.  Rewrite.  All callers updated.
6043         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6044         All callers updated.  Rewrite.
6045         (load_partial_comp_unit_reader): New function.
6046         (load_partial_comp_unit): Rewrite.
6047         (skip_children): New arg reader.  Delete args buffer, cu.
6048         All callers updated.
6049         (skip_one_die): New arg reader.  Delete args buffer, cu.
6050         All callers updated.
6051         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6052         All callers updated.
6053         (load_full_comp_unit_reader): New function.
6054         (load_full_comp_unit): Rewrite.
6055         (read_comp_unit): Delete.
6056         (read_die_and_children_1): Delete, contents moved ...
6057         (read_die_and_children): ... here.
6058         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6059         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6060         All callers updated.
6061         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6062         All callers updated.
6063         (find_partial_die): Rewrite load_all_dies support.
6064         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6065         All callers updated.
6066         (read_attribute): New arg reader.  Delete args abfd, cu.
6067         All callers updated.
6068         (load_full_type_unit): Add assert.
6069         (read_signatured_type_reader): New function.
6070         (read_signatured_type): Rewrite.
6071         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6072         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6073         All callers updated.  Set per_cu->cu = NULL after freeing it.
6074         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6075         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6076         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6077         (set_die_type): Update.
6078         (get_die_type_at_offset): Update.
6079         (read_file_scope): Call prepare_one_comp_unit.
6080         (read_type_unit_scope): Ditto.
6081         (prepare_one_comp_unit): Set producer if present.
6082
6083 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6084
6085         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6086          gettext function on `error'.
6087
6088 2012-04-27  Doug Evans  <dje@google.com>
6089
6090         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6091         is empty.
6092
6093 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6094             Tom Tromey  <tromey@redhat.com>
6095
6096         * breakpoint.c (struct breakpoint_objfile_data)
6097         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6098         <exception_probes>: New fields.
6099         (free_breakpoint_probes): New function.
6100         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6101         `_Unwind_DebugHook'.
6102         (create_exception_master_breakpoint): Likewise.
6103         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6104         * infrun.c: Including necessary header files for handling SystemTap
6105         probes.
6106         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6107         via SystemTap probes.
6108         (check_exception_resume): Remove `func' argument.  Handle exception
6109         unwinding breakpoint set via a SystemTap probe.
6110         (insert_exception_resume_from_probe): New function.
6111
6112 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6113             Tom Tromey  <tromey@redhat.com>
6114             Jan Kratochvil  <jan.kratochvil@redhat.com>
6115
6116         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6117         (COMMON_OBS): Likewise.
6118         (HFILES_NO_SRCDIR): Add `probe'.
6119         * NEWS: Mention support for static and SystemTap probes.
6120         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6121         SystemTap probes' arguments parser.
6122         * arm-linux-tdep.c: Including headers needed to perform the parsing
6123         of SystemTap probes' arguments.
6124         (arm_stap_is_single_operand): New function.
6125         (arm_stap_parse_special_token): Likewise.
6126         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6127         probes' arguments parser.
6128         * ax-gdb.c (require_rvalue): Removing static declaration.
6129         (gen_expr): Likewise.
6130         * ax-gdb.h (gen_expr): Declaring function.
6131         (require_rvalue): Likewise.
6132         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6133         (bkpt_probe_breakpoint_ops): New variable.
6134         (momentary_breakpoint_from_master): Set the `probe' value.
6135         (add_location_to_breakpoint): Likewise.
6136         (break_command_1): Using proper breakpoint_ops according to the
6137         argument passed by the user in the command line.
6138         (bkpt_probe_insert_location): New function.
6139         (bkpt_probe_remove_location): Likewise.
6140         (bkpt_probe_create_sals_from_address): Likewise.
6141         (bkpt_probe_decode_linespec): Likewise.
6142         (tracepoint_probe_create_sals_from_address): Likewise.
6143         (tracepoint_probe_decode_linespec): Likewise.
6144         (tracepoint_probe_breakpoint_ops): New variable.
6145         (trace_command): Using proper breakpoint_ops according to the
6146         argument passed by the user in the command line.
6147         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6148         static probes on breakpoints and tracepoints.
6149         * breakpoint.h (struct bp_location) <probe>: New field.
6150         * cli-utils.c (skip_spaces_const): New function.
6151         (extract_arg): Likewise.
6152         * cli-utils.h (skip_spaces_const): Likewise.
6153         (extract_arg): Likewise.
6154         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6155         * configure.ac: Append `stap-probe.o' to be generated when ELF
6156         support is present.
6157         * configure: Regenerate.
6158         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6159         * elfread.c: Include `probe.h' and `arch-utils.h'.
6160         (probe_key): New variable.
6161         (elf_get_probes): New function.
6162         (elf_get_probe_argument_count): Likewise.
6163         (elf_evaluate_probe_argument): Likewise.
6164         (elf_compile_to_ax): Likewise.
6165         (elf_symfile_relocate_probe): Likewise.
6166         (stap_probe_key_free): Likewise.
6167         (elf_probe_fns): New variable.
6168         (elf_sym_fns): Add `sym_probe_fns' value.
6169         (elf_sym_fns_lazy_psyms): Likewise.
6170         (elf_sym_fns_gdb_index): Likewise.
6171         (_initialize_elfread): Initialize objfile cache for static
6172         probes.
6173         * gdb_vecs.h (struct probe): New forward declaration.
6174         (probe_p): New VEC declaration.
6175         * gdbarch.c: Regenerate.
6176         * gdbarch.h: Regenerate.
6177         * gdbarch.sh (stap_integer_prefix): New variable.
6178         (stap_integer_suffix): Likewise.
6179         (stap_register_prefix): Likewise.
6180         (stap_register_suffix): Likewise.
6181         (stap_register_indirection_prefix): Likewise.
6182         (stap_register_indirection_suffix): Likewise.
6183         (stap_gdb_register_prefix): Likewise.
6184         (stap_gdb_register_suffix): Likewise.
6185         (stap_is_single_operand): New function.
6186         (stap_parse_special_token): Likewise.
6187         (struct stap_parse_info): Forward declaration.
6188         * i386-tdep.c: Including headers needed to perform the parsing
6189         of SystemTap probes' arguments.
6190         (i386_stap_is_single_operand): New function.
6191         (i386_stap_parse_special_token): Likewise.
6192         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6193         probes' arguments parser.
6194         * i386-tdep.h (i386_stap_is_single_operand): New function.
6195         (i386_stap_parse_special_token): Likewise.
6196         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6197         * mipsread.c (ecoff_sym_fns): Likewise.
6198         * objfiles.c (objfile_relocate1): Support relocation for static
6199         probes.
6200         * parse.c (prefixify_expression): Remove static declaration.
6201         (initialize_expout): Likewise.
6202         (reallocate_expout): Likewise.
6203         * parser-defs.h (initialize_expout): Declare function.
6204         (reallocate_expout): Likewise.
6205         (prefixify_expression): Likewise.
6206         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6207         of SystemTap probes' arguments.
6208         (ppc_stap_is_single_operand): New function.
6209         (ppc_stap_parse_special_token): Likewise.
6210         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6211         probes' arguments parser.
6212         * probe.c: New file, for generic statically defined probe support.
6213         * probe.h: Likewise.
6214         * s390-tdep.c: Including headers needed to perform the parsing of
6215         SystemTap probes' arguments.
6216         (s390_stap_is_single_operand): New function.
6217         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6218         probes' arguments parser.
6219         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6220         * stap-probe.c: New file, for SystemTap probe support.
6221         * stap-probe.h: Likewise.
6222         * symfile.h: Include `gdb_vecs.h'.
6223         (struct sym_probe_fns): New struct.
6224         (struct sym_fns) <sym_probe_fns>: New field.
6225         * symtab.c (init_sal): Initialize `probe' field.
6226         * symtab.h (struct probe): Forward declaration.
6227         (struct symtab_and_line) <probe>: New field.
6228         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6229         locations.
6230         (stop_tracing): Likewise.
6231         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6232
6233 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6234             Tom Tromey  <tromey@redhat.com>
6235
6236         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6237         and to compile agent expressions.
6238         * infrun.c (siginfo_make_value): New argument `ignore'.
6239         (siginfo_funcs): New struct.
6240         (_initialize_infrun): New argument when calling
6241         `create_internalvar_type_lazy'.
6242         * thread.c (thread_id_make_value): New argument `ignore'.
6243         (thread_funcs): New struct.
6244         (_initialize_thread): New argument when calling
6245         `create_internalvar_type_lazy'.
6246         * tracepoint.c (sdata_make_value): New argument `ignore'.
6247         (sdata_funcs): New struct.
6248         (_initialize_tracepoint): New argument when calling
6249         `create_internalvar_type_lazy'.
6250         * value.c (make_value): New struct.
6251         (create_internalvar_type_lazy): New argument `data'.
6252         (compile_internalvar_to_ax): New function.
6253         (value_of_internalvar): Properly handling `make_value' case.
6254         (clear_internalvar): Likewise.
6255         (show_convenience): Adding `TRY_CATCH' block.
6256         * value.h (internalvar_make_value): Delete, replace by...
6257         (struct internalvar_funcs): ... this.
6258         (create_internalvar_type_lazy) <fun>: Delete argument.
6259         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6260         (compile_internalvar_to_ax): New function.
6261         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6262         (tlb_funcs): New struct.
6263         (_initialize_windows_tdep): New argument when calling
6264         `create_internalvar_type_lazy'.
6265
6266 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6267
6268         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6269         see whether it is an address or a constant offset from DW_AT_low_pc.
6270         (dwarf2_record_block_ranges): Likewise.
6271         (read_partial_die): Likewise.
6272
6273 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6274
6275         * MAINTAINERS (Write After Approval): Add myself to the list.
6276
6277 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6278
6279         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6280         (proc_prettyprint_signal): Likewise.
6281         (proc_prettyprint_faultset): Likewise.
6282         (proc_prettyprint_fault): Likewise.
6283         (proc_prettyprint_actionset): Likewise.
6284         (proc_prettyprint_flags): Move to new proc-flags.c section.
6285         (proc_prettyfprint_flags): New prototype.
6286         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6287         (proc_syscall, proc_cursig): Likewise.
6288         (proc_set_kill_on_last_close): Likewise.
6289         (proc_unset_kill_on_last_close): Likewise.
6290         (proc_set_watchpoint): Make static.
6291         (proc_delete_dead_threads): Likewise.
6292         (procfs_set_watchpoint): Likewise.
6293         (_initialize_procfs): Add prototype.
6294         * proc-events.c: Include proc-utils.h.
6295         (init_syscall_table): Make static.
6296         * proc-api.c (_initialize_proc_api): Add prototype.
6297         * proc-flags.c: Include proc-utils.h.
6298
6299 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6300
6301         * configure.ac: Add AC_ARG_PROGRAM.
6302         * configure: Regenerate.
6303
6304 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6305
6306         Fix DW_AT_lower_bound defaults for DWARF-4+.
6307         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6308         high.  New variable low_default_is_valid.  Implement DWARF-4+
6309         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6310         no default by the DWARF standard.
6311
6312 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6313             Maciej W. Rozycki  <macro@codesourcery.com>
6314
6315         * infrun.c (handle_inferior_event): Move the check for return
6316         trampolines ahead of the check for function trampolines.
6317         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6318         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6319         (mips_str_mips16_ret_stub): Likewise.
6320         (mips_str_call_fp_stub): Likewise.
6321         (mips_str_call_stub): Likewise.
6322         (mips_str_fn_stub): Likewise.
6323         (mips_str_pic): Likewise.
6324         (mips_in_frame_stub): New function.
6325         (mips_unwind_pc): Return the return address rather than the PC
6326         if the PC of an intermediate frame is inside a call thunk.
6327         (mips_is_stub_suffix): New function.
6328         (mips_is_stub_mode): Likewise.
6329         (mips_get_mips16_fn_stub_pc): Likewise.
6330         (mips_skip_mips16_trampoline_code): Update to handle all the
6331         currently generated stub types.  Don't recurse into __fn_stub
6332         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6333         Use cooked register accesses.
6334         (mips_in_return_stub): Reintroduce function.
6335         (mips_skip_trampoline_code): Traverse trampolines recursively.
6336         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6337
6338 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6339
6340         GDB 7.4.1 released.
6341
6342 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6343
6344         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6345         * features/arm-with-m-vfp-d16.xml: New file. Describes
6346         Cortex-M with VFPv4-sp-d16 FPU register layout.
6347         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6348         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6349         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6350         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6351         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6352
6353 2012-04-25  Doug Evans  <dje@google.com>
6354
6355         * cli/cli-decode.c (print_doc_line): Use stream instead of
6356         current_uiout.
6357
6358 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6359
6360         * features/arm-with-iwmmxt.c: Regenerate.
6361         * features/arm-with-m-fpa-layout.c: Likewise.
6362         * features/arm-with-m.c: Likewise.
6363         * features/arm-with-neon.c: Likewise.
6364         * features/arm-with-vfpv2.c: Likewise.
6365         * features/arm-with-vfpv3.c: Likewise.
6366         * features/mips-dsp-linux.c: Likewise.
6367         * features/mips-linux.c: Likewise.
6368         * features/mips64-dsp-linux.c: Likewise.
6369         * features/mips64-linux.c: Likewise.
6370         * features/s390-linux32.c: Likewise.
6371         * features/s390-linux32v1.c: Likewise.
6372         * features/s390-linux32v2.c: Likewise.
6373         * features/s390-linux64.c: Likewise.
6374         * features/s390-linux64v1.c: Likewise.
6375         * features/s390-linux64v2.c: Likewise.
6376         * features/s390x-linux64.c: Likewise.
6377         * features/s390x-linux64v1.c: Likewise.
6378         * features/s390x-linux64v2.c: Likewise.
6379         * features/tic6x-c62x-linux.c: Likewise.
6380         * features/tic6x-c62x.c: Likewise.
6381         * features/tic6x-c64x-linux.c: Likewise.
6382         * features/tic6x-c64x.c: Likewise.
6383         * features/tic6x-c64xp-linux.c: Likewise.
6384         * features/tic6x-c64xp.c: Likewise.
6385         * target-descriptions.c: Only generate `field_type' and `type'
6386         variables when needed.
6387
6388 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6389
6390         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6391
6392 2012-04-25  Doug Evans  <dje@google.com>
6393
6394         Initial pass at Go language support.
6395         * NEWS: Mention Go.
6396         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6397         go-valprint.c.
6398         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6399         (YYFILES): Add go-exp.c.
6400         (YYOBJ): Add go-exp.o.
6401         (local-maintainer-clean): Delete go-exp.c.
6402         * defs.h (enum language): Add language_go.
6403         * dwarf2read.c: #include "go-lang.h".
6404         (fixup_go_packaging): New function.
6405         (process_full_comp_unit): Call it when processing Go CUs.
6406         (dwarf2_physname): Add Go support.
6407         (read_file_scope): Handle missing language spec for GNU Go.
6408         (set_cu_language): Handle DW_LANG_Go.
6409         * go-exp.y: New file.
6410         * go-lang.h: New file.
6411         * go-lang.c: New file.
6412         * go-typeprint.c: New file.
6413         * go-valprint.c: New file.
6414         * symtab.c: #include "go-lang.h".
6415         (symbol_set_language): Handle language_go.
6416         (symbol_find_demangled_name, symbol_set_names): Ditto.
6417         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6418
6419 2012-04-24  Jim Meyering  <meyering@redhat.com>
6420
6421         avoid a few strncpy-induced buffer overruns
6422         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6423         fname and psargs before trying to concatenate.
6424         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6425         "name" before applying strchr.
6426
6427 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6428
6429         * CONTRIBUTE: Use unified diff instead of context diff when
6430         generating patches.
6431
6432 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6433
6434         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6435         code.  Handle JR.HB correctly.
6436
6437 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6438
6439         * mips-tdep.c
6440         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6441         with the other MIPS16 helpers.
6442
6443 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6444
6445         * observer.sh: Conditionally declare `args', thus cleaning up
6446         unused instances of this variable.
6447
6448 2012-04-24  Yao Qi  <yao@codesourcery.com>
6449
6450         Revert this patch to allow breakpoint always-inserted
6451         in record target.
6452         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6453         * breakpoint.c: Include record.h.
6454         (breakpoints_always_inserted_mode): Return false when the record
6455         target is in use.
6456
6457         * breakpoint.c (iterate_over_bp_locations): New.
6458         * breakpoint.h: Declare.
6459         New typedef walk_bp_location_callback.
6460         * record.c (record_open): Call record_init_record_breakpoints.
6461         (record_sync_record_breakpoints): New.
6462         (record_init_record_breakpoints): New.
6463         * NEWS: Mention supporting breakpoint always-inserted mode in
6464         record target.
6465
6466 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6467
6468         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6469         any thread.
6470
6471 2012-04-24  Yao Qi  <yao@codesourcery.com>
6472
6473         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6474         (is_catchpoint): ... it.
6475         (print_one_breakpoint_location): Caller update.
6476         * breakpoint.h: Update declaration.
6477
6478 2012-04-23  David S. Miller  <davem@davemloft.net>
6479
6480         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6481
6482 2012-04-23  Tom Tromey  <tromey@redhat.com>
6483
6484         * buildsym.c (add_free_pendings): Remove.
6485         * buildsym.h (add_free_pendings): Remove.
6486
6487 2012-04-23  Doug Evans  <dje@google.com>
6488
6489         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6490         attr.u.unsnd instead of attr.u.addr.
6491         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6492         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6493         DW_FORM_ref_udata.
6494         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6495         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6496         DW_FORM_ref_udata.
6497         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6498
6499 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6500
6501         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6502         (mips_o32_return_value): Likewise.
6503         (mips_o64_return_value): Likewise.
6504
6505 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6506
6507         * ada-lang.c (ada_evaluate_subexp): Add cases for
6508         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6509         their treatment in eval.c.
6510
6511 2012-04-21  David S. Miller  <davem@davemloft.net>
6512
6513         * sparc-tdep.c (X_DISP10): Define.
6514         (sparc_analyze_control_transfer): Handle compare-and-branch.
6515
6516 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6517
6518         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6519         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6520
6521 2012-04-20  Nigel Stephens  <nigel@mips.com>
6522             Maciej W. Rozycki  <macro@codesourcery.com>
6523
6524         * mips-tdep.c (mips_float_register_p): New function.
6525         (mips_convert_register_float_case_p): Use mips_float_register_p.
6526         (mips_register_type): Likewise.
6527         (mips_print_register): Likewise.
6528         (print_gp_register_row): Likewise.
6529         (mips_print_registers_info): Likewise.
6530
6531 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6532
6533         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6534         of mips16 symbols.
6535
6536 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6537
6538         * MAINTAINERS (Write After Approval): Add myself to the list.
6539
6540 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6541
6542         * MAINTAINERS: Update my e-mail address.
6543
6544 2012-04-20  Pedro Alves  <palves@redhat.com>
6545
6546         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6547         $srcdir.
6548         * configure: Regenerate.
6549
6550 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6551
6552         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6553         declaration.
6554         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6555
6556 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6557
6558         Fix compilation compatibility with python-2.4
6559         * python/py-type.c (convert_field): Cast ADDRSTRING for
6560         PyObject_SetAttrString as non-const.  New comment.
6561
6562 2012-04-19  Tom Tromey  <tromey@redhat.com>
6563
6564         * top.c (quit_target): Use all_cleanups.
6565         * main.c (captured_command_loop): Use all_cleanups.
6566         * exceptions.c (throw_exception): Use all_cleanups.
6567
6568 2012-04-19  Pedro Alves  <palves@redhat.com>
6569
6570         * Makefile.in (GNULIB_BUILDDIR): New.
6571         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6572         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6573         (CLEANDIRS). Remove gnulib/import.
6574         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6575         (all-lib): Ditto.
6576         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6577         (gnulib/import/Makefile): Replace gnulib/import with
6578         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6579         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6580         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6581         acx_configure_dir.m4.
6582         * acinclude.m4: Include acx_configure_dir.m4.
6583         * acx_configure_dir.m4: New file.
6584         * aclocal.m4: Regenerate.
6585         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6586         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6587         (GNULIB): New variable.
6588         (GNULIB_STDINT_H): Adjust.
6589         (AC_OUTPUT): Don't output gnulib/Makefile.
6590         * gdb/defs.h: Include build-gnulib/config.h.
6591         * aclocal.m4: Regenerate.
6592         * config.in: Regenerate.
6593         * configure: Regenerate.
6594
6595         * gnulib/Makefile.in: New file.
6596         * gnulib/configure.ac: New file.
6597         * gnulib/aclocal.m4: New file.
6598         * gnulib/config.in: New file.
6599         * gnulib/configure: New file.
6600         * gnulib/: Re-run gnulib-tool to adjust.
6601
6602 2012-04-19  Doug Evans  <dje@google.com>
6603
6604         * cleanups.h (struct cleanup): Move to cleanups.c.
6605         (make_cleanup_dtor_ftype): New typedef.
6606         (make_cleanup_dtor): Use it.
6607         (ALL_CLEANUPS): Replace with ...
6608         (all_cleanups): ... this.  Declare.  All uses updated.
6609         * cleanups.c: #include "gdb_assert.h".
6610         (sentinel_cleanup): New static global.
6611         (SENTINEL_CLEANUP): Define.
6612         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6613         (make_my_cleanup2): Assert result is non-NULL.
6614         (all_cleanups): New function.
6615         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6616         of NULL.
6617
6618 2012-04-19  Pedro Alves  <palves@redhat.com>
6619
6620         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6621         Adjust paths to gnulib imported files.
6622
6623 2012-04-19  Pedro Alves  <palves@redhat.com>
6624
6625         * gnulib/: Move whole directory ...
6626         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6627         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6628         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6629         (aclocal_m4_deps): Adjust.
6630         * aclocal.m4: Regenerate.
6631         * configure: Regenerate.
6632         * configure.ac: Adjust AC_OUTPUT output.
6633
6634 2012-04-19  Yao Qi  <yao@codesourcery.com>
6635
6636         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6637         (vec.o): New rule.
6638         * vec.c: Move it ...
6639         * common/vec.c: ... here.
6640         * vec.h: Move it ...
6641         * common/vec.h: ... here.
6642
6643 2012-04-19  Yao Qi  <yao@codesourcery.com>
6644
6645         * gdb-code-style.el: New.
6646
6647 2012-04-18  Pedro Alves  <palves@redhat.com>
6648
6649         Update gnulib from latest git.
6650         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6651
6652         * gnulib/Makefile.am: Update.
6653         * gnulib/dummy.c: Update.
6654         * gnulib/extra/arg-nonnull.h: Update.
6655         * gnulib/extra/c++defs.h: Update.
6656         * gnulib/extra/update-copyright: Update.
6657         * gnulib/extra/warn-on-use.h: Update.
6658         * gnulib/inttypes.in.h: Update.
6659         * gnulib/m4/00gnulib.m4: Update.
6660         * gnulib/m4/extensions.m4: Update.
6661         * gnulib/m4/gnulib-cache.m4: Update.
6662         * gnulib/m4/gnulib-common.m4: Update.
6663         * gnulib/m4/gnulib-comp.m4: Update.
6664         * gnulib/m4/gnulib-tool.m4: Update.
6665         * gnulib/m4/include_next.m4: Update.
6666         * gnulib/m4/inttypes-pri.m4: Update.
6667         * gnulib/m4/inttypes.m4: Update.
6668         * gnulib/m4/longlong.m4: Update.
6669         * gnulib/m4/memchr.m4: Update.
6670         * gnulib/m4/memmem.m4: Update.
6671         * gnulib/m4/mmap-anon.m4: Update.
6672         * gnulib/m4/multiarch.m4: Update.
6673         * gnulib/m4/onceonly.m4: Update.
6674         * gnulib/m4/stddef_h.m4: Update.
6675         * gnulib/m4/stdint.m4: Update.
6676         * gnulib/m4/string_h.m4: Update.
6677         * gnulib/m4/warn-on-use.m4: Update.
6678         * gnulib/m4/wchar_h.m4: Update.
6679         * gnulib/m4/wchar_t.m4: Update.
6680         * gnulib/m4/wint_t.m4: Update.
6681         * gnulib/memchr.c: Update.
6682         * gnulib/memmem.c: Update.
6683         * gnulib/stddef.in.h: Update.
6684         * gnulib/stdint.in.h: Update.
6685         * gnulib/str-two-way.h: Update.
6686         * gnulib/string.in.h: Update.
6687         * gnulib/wchar.in.h: Update.
6688
6689         * gnulib/extra/arg-nonnull.h: Delete.
6690         * gnulib/extra/c++defs.h: Delete.
6691         * gnulib/extra/warn-on-use.h: Delete.
6692         * gnulib/m4/wchar_h.m4: Delete.
6693         * gnulib/m4/wint_t.m4: Delete.
6694         * gnulib/wchar.in.h: Delete.
6695
6696         * gnulib/extra/snippets/arg-nonnull.h: New.
6697         * gnulib/extra/snippets/c++defs.h: New.
6698         * gnulib/extra/snippets/warn-on-use.h: New.
6699
6700         * aclocal.m4: Regenerate.
6701         * config.in: Regenerate.
6702         * configure: Regenerate.
6703         * gnulib/Makefile.in: Regenerate.
6704
6705 2012-04-18  Pedro Alves  <palves@redhat.com>
6706
6707         Reimport the update-copyright module from gnulib
6708         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6709
6710         * configure: Regenerate.
6711         * gnulib/Makefile.am: Update.
6712         * gnulib/Makefile.in: Regenerate.
6713         * gnulib/extra/update-copyright: Update.
6714         * gnulib/m4/gnulib-cache.m4: Update.
6715         * gnulib/m4/gnulib-comp.m4: Update.
6716
6717 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6718
6719         * configure.ac (aix): Put -lpthread into libs.
6720         * configure: Regenerate.
6721
6722 2012-04-18  Tom Tromey  <tromey@redhat.com>
6723
6724         * linespec.c (convert_linespec_to_sals): Don't use
6725         SYMBOL_OBJ_SECTION.
6726         (compare_msymbols): Arguments are minsym_and_objfile, not
6727         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6728
6729 2012-04-18  Pedro Alves  <palves@redhat.com>
6730
6731         Revert gnulib/ part of:
6732         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6733         Copyright year update in most files (performed by copyright.sh).
6734
6735 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6736
6737         Fix 64-bit constants on 32-bit hosts.
6738         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6739         from unsigned long to ULONGEST.
6740         (read_signed_leb128): Change declaration return type from long to
6741         LONGEST.
6742         (dwarf2_const_value_attr): Change declaration parameter value from long
6743         to LONGEST.
6744         (dwarf2_compute_name): Change variable value from long to LONGEST.
6745         (read_unsigned_leb128): Change return type, variable result and some
6746         casts from unsigned long to ULONGEST.
6747         (read_signed_leb128): Change return type, variable result and some
6748         casts from long to LONGEST.
6749         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6750         value from long to LONGEST.
6751         (dwarf2_const_value): Change variable value from long to LONGEST.
6752         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6753         plongest and hex_string.
6754         * symtab.h (struct general_symbol_info): Change ivalue from long to
6755         LONGEST, remove the comment.
6756         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6757         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6758
6759 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6760
6761         PR symtab/7259:
6762         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6763         * ada-lang.c (ada_discrete_type_high_bound)
6764         (ada_discrete_type_low_bound): Fix function comment.  Use
6765         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6766         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6767         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6768         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6769         Use TYPE_FIELD_ENUMVAL.
6770         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6771         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6772         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6773         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6774         TYPE_CODE_ENUM.
6775         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6776         * dwarf2read.c (process_enumeration_scope): Likewise.
6777         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6778         field.bitpos.
6779         (class StructMainTypePrettyPrinter): Support also
6780         FIELD_LOC_KIND_ENUMVAL.
6781         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6782         TYPE_CODE_ENUM.
6783         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6784         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6785         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6786         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6787         field enumval.
6788         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6789         accommodate enumval.
6790         (struct call_site): Adjust loc_kind to accommodate enumval.
6791         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6792         (TYPE_FIELD_ENUMVAL): New macros.
6793         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6794         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6795         TYPE_CODE_ENUM.
6796         * p-typeprint.c (pascal_type_print_base): Likewise.
6797         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6798         enumval.
6799         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6800         * python/py-type.c (convert_field): New variable addrstring.  Use
6801         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6802         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6803         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6804         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6805         TYPE_CODE_ENUM.
6806         * valprint.c (generic_val_print): Likewise.
6807
6808 2012-04-17  Doug Evans  <dje@google.com>
6809
6810         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6811
6812         * dwarf2read.c: Whitespace fixes.
6813         (lookup_signatured_type): Tweak comment.
6814         (get_die_type_at_offset): Fix comment.
6815
6816 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6817
6818         * xcoffread.c (xcoff_secnum_to_sections): New function.
6819         (secnum_to_section, secnum_to_bfd_section): Reimplement
6820         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6821         into "n_scnum".
6822         (RECORD_MINIMAL_SYMBOL): Delete.
6823         (record_minimal_symbol): New function.
6824         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6825         by call to record_minimal_symbol and set misc_func_recorded
6826         to 1.  Set last_csect_sec to the XCOFF section index instead
6827         of GDB's section_offset index.  Update calls to
6828         prim_record_minimal_symbol_and_info to pass the BFD section
6829         as well.
6830
6831 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6832
6833         * xcoffread.c (read_xcoff_symtab): Delete variables
6834         last_csect_val and last_csect_sec and associated code.
6835
6836 2012-04-17  Doug Evans  <dje@google.com>
6837
6838         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6839         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6840         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6841         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6842
6843         * cleanups.h: New file.
6844         * cleanups.c: New file.
6845         * Makefile.in (SFILES): Add cleanups.c.
6846         (HFILES_NO_SRCDIR): Add cleanups.h.
6847         (COMMON_OBS): Add cleanups.o.
6848         * defs.h (struct cleanup): Moved to cleanups.h.
6849         (do_cleanups,do_final_cleanups): Ditto.
6850         (discard_cleanups,discard_final_cleanups): Ditto
6851         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6852         (save_cleanups,save_final_cleanups): Ditto.
6853         (restore_cleanups,restore_final_cleanups): Ditto.
6854         (null_cleanup): Ditto.
6855         (make_my_cleanup,make_my_cleanup2): Ditto.
6856         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6857         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6858         (do_cleanups,do_final_cleanups): Ditto.
6859         (discard_cleanups,discard_final_cleanups): Ditto
6860         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6861         (save_cleanups,save_final_cleanups): Ditto.
6862         (restore_cleanups,restore_final_cleanups): Ditto.
6863         (null_cleanup): Ditto.
6864         (make_my_cleanup,make_my_cleanup2): Ditto.
6865         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6866
6867         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6868         make_my_cleanup.
6869         (make_cleanup_dyn_string_delete): Ditto.
6870         (make_cleanup_ui_file_delete): Ditto.
6871         (make_cleanup_ui_out_redirect_pop): Ditto.
6872         (make_cleanup_free_section_addr_info): Ditto.
6873         (make_cleanup_restore_integer): Ditto.
6874         (make_cleanup_unpush_target): Ditto.
6875         (make_cleanup_value_free_to_mark): Ditto.
6876         (make_cleanup_value_free): Ditto.
6877         (make_cleanup_free_so): Ditto.
6878
6879 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6880
6881         New option "set debug auto-load".
6882         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6883         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6884         (auto_load_safe_path_vec_update)
6885         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6886         if DEBUG_AUTO_LOAD.
6887         (file_is_auto_load_safe): New parameters debug_fmt and ....
6888         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6889         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6890         caller by explanatory string.
6891         (_initialize_auto_load): Register "set debug auto-load".
6892         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6893         and ....
6894         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6895         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6896         by explanatory string.
6897         * main.c (captured_main): Likewise.
6898         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6899         (source_section_scripts): Likewise.
6900
6901 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6902
6903         New option "set auto-load safe-path".
6904         * NEWS: New commands "set auto-load safe-path"
6905         and "show auto-load safe-path".
6906         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6907         (auto_load_safe_path, auto_load_safe_path_vec)
6908         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6909         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6910         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6911         (source_gdb_script_for_objfile): New variable is_safe.  Call
6912         file_is_auto_load_safe.  Return if it is not.
6913         (struct loaded_script): New field loaded.
6914         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6915         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6916         output "Missing" to "No".
6917         (_initialize_auto_load): New variable cmd.  Initialize
6918         auto_load_safe_path.  Register "set auto-load safe-path",
6919         "show auto-load safe-path" and "add-auto-load-safe-path".
6920         * auto-load.h (maybe_add_script): Add parameter loaded.
6921         (file_is_auto_load_safe): New declaration.
6922         * config.in: Regenerate.
6923         * configure: Regenerate.
6924         * configure.ac: New parameters --with-auto-load-safe-path
6925         and --without-auto-load-safe-path.
6926         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6927         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6928         * main.c (captured_main): Check file_is_auto_load_safe for
6929         LOCAL_GDBINIT.
6930         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6931         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6932         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6933         not.
6934
6935 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6936
6937         auto-load: Implementation.
6938         * NEWS: New descriptions for "info auto-load",
6939         "info auto-load gdb-scripts", "info auto-load python-scripts",
6940         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6941         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6942         and "show auto-load-scripts".  New description for "set auto-load",
6943         "show auto-load", "set auto-load gdb-scripts",
6944         "show auto-load gdb-scripts", "set auto-load python-scripts",
6945         "show auto-load python-scripts", "set auto-load local-gdbinit",
6946         "show auto-load local-gdbinit", "set auto-load libthread-db" and
6947         "show auto-load libthread-db".
6948         * auto-load.c: Remove include python/python-internal.h.  Add includes
6949         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6950         cli/cli-setshow.h.
6951         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6952         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6953         (gdbpy_global_auto_load): Rename to ...
6954         (global_auto_load): ... here.
6955         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6956         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6957         (script_language_gdb, source_gdb_script_for_objfile): New.
6958         (struct loaded_script): New field language.
6959         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6960         LANGUAGE.
6961         (maybe_add_script): Add parameter language.  Drop redundant
6962         entry.full_path initialization.  Initialize entry.language and
6963         (*slot)->language.
6964         (auto_load_objfile_script): Change parameter suffix to language.
6965         Remove the call of maybe_add_script.
6966         Call language->source_script_for_objfile.
6967         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6968         New.
6969         (collect_matching_scripts): Adjust it for
6970         struct collect_matching_scripts_data.
6971         (auto_load_info_scripts_pattern_nl): New variable.
6972         (info_auto_load_scripts): Rename to ...
6973         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
6974         for struct collect_matching_scripts_data.
6975         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6976         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6977         (auto_load_show_cmdlist_get, info_auto_load_cmd)
6978         (auto_load_info_cmdlist_get): New.
6979         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6980         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
6981         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6982         "info auto-load local-gdbinit".
6983         * auto-load.h (struct script_language): New.
6984         (gdbpy_global_auto_load): Rename to ...
6985         (global_auto_load): ... here.
6986         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6987         (auto_load_local_gdbinit_loaded): New declarations.
6988         (maybe_add_script): New parameter language.
6989         (auto_load_objfile_script): Change parameter suffix to language.
6990         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6991         (auto_load_info_scripts, auto_load_set_cmdlist_get)
6992         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6993         declarations.
6994         * linux-thread-db.c: Include auto-load.h and ctype.h.
6995         (auto_load_thread_db, show_auto_load_thread_db): New.
6996         (struct thread_db_info): New field filename.
6997         (delete_thread_db_info): Call xfree for FILENAME.
6998         (try_thread_db_load): Initialize FILENAME.
6999         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7000         if !AUTO_LOAD_THREAD_DB.
7001         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7002         (_initialize_thread_db): Install auto_load_thread_db
7003         as "set auto-load libthread-db" and install info_auto_load_libthread_db
7004         as "info auto-load libthread-db".
7005         * main.c (captured_main): Rename gdbpy_global_auto_load to
7006         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7007         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7008         (print_gdb_help): Extend the help for 'local init file'.
7009         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7010         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7011         (auto_load_scripts): Rename to ...
7012         (auto_load_python_scripts): ... here, update the comment.
7013         (gdbpy_load_auto_script_for_objfile): New declaration.
7014         (show_auto_load_python_scripts, script_language_python)
7015         (gdbpy_load_auto_script_for_objfile): New.
7016         (source_section_scripts): Refactor the code.
7017         (load_auto_scripts_for_objfile): Rename to ...
7018         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7019         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7020         (info_auto_load_python_scripts): New.
7021         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7022         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7023         Register "set auto-load-scripts" as its deprecated alias.  Register
7024         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7025         its deprecated alias.
7026         (load_auto_scripts_for_objfile): Rename to ...
7027         (gdbpy_load_auto_scripts_for_objfile): ... here.
7028         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7029         (gdbpy_load_auto_scripts_for_objfile): ... here.
7030
7031 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7032
7033         auto-load: Move files.
7034         * Makefile.in (SFILES): Add auto-load.c.
7035         (HFILES_NO_SRCDIR): Add auto-load.h.
7036         (COMMON_OBS): Add auto-load.o.
7037         (distclean): Change .gdbinit for gdb-gdb.gdb.
7038         * auto-load.c: New file, with parts from python/py-auto-load.c.
7039         * auto-load.h: New file, with parts from python/python.h.
7040         * configure: Regenerate.
7041         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7042         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7043         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7044         * main.c: Include auto-load.h.
7045         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7046         command.h, observer.h and progspace.h to auto-load.c.  Add include
7047         auto-load.h.
7048         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7049         (struct loaded_script, auto_load_pspace_data)
7050         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7051         (hash_loaded_script_entry, eq_loaded_script_entry)
7052         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7053         (maybe_add_script): Move to auto-load.c.
7054         (source_section_scripts): Change maybe_add_script parameters passing,
7055         use script_not_found_warning_print.
7056         (clear_section_scripts, auto_load_objfile_script)
7057         (auto_load_new_objfile, loaded_script_ptr)
7058         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7059         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7060         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7061         auto_load_new_objfile and info_auto_load_scripts initizations to
7062         auto-load.c.
7063         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7064
7065 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7066
7067         Code cleanup.
7068         * charset.c (find_charset_names): Remove variables ix and elt.
7069         Use free_char_ptr_vec.
7070         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7071         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7072         debugdir_end.  New variable debugdir_len.
7073         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7074         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7075         declarations.
7076         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7077         and elt.  Use free_char_ptr_vec.
7078         * source.c (add_path): Remove variables argv, arg and argv_index.
7079         New variables dir_vec, back_to, ix and name.
7080         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7081         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7082         no longer expecting DIRNAME_SEPARATOR.
7083         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7084         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7085         no longer expecting DIRNAME_SEPARATOR.
7086         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7087         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7088         debugdir_end.
7089         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7090         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7091         (dirnames_to_char_ptr_vec): New functions.
7092
7093 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7094
7095         Code cleanup.
7096         * source.c (add_path): Remove always true conditional 'p == 0' and
7097         unindent its code block.
7098
7099 2012-04-17  Pedro Alves  <palves@redhat.com>
7100
7101         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7102         (FIELD_BITPOS_LVAL): ... this.
7103         (FIELD_BITPOS): New.
7104         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7105         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7106         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7107         SET_FIELD_BITPOS.
7108         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7109         SET_FIELD_BITPOS.
7110         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7111         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7112         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7113         SET_FIELD_BITPOS.
7114
7115 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7116
7117         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7118         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7119         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7120         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7121         * jv-lang.c (java_link_class_type): Likewise, once.
7122         * stabsread.c (read_enum_type): Likewise.
7123
7124 2012-04-16  Yao Qi  <yao@codesourcery.com>
7125
7126         * common/agent.c (agent_run_command): Add one more parameter `len'.
7127         Update callers.
7128         * common/agent.h: Update declaration.
7129         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7130         Update.
7131         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7132
7133 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7134
7135         PR mi/13393
7136         * value.c (value_actual_type): New function.
7137         * value.h (value_actual_type): New declaration.
7138         * varobj.c (update_type_if_necessary): New function.
7139         (varobj_create): Call value_actual_type instead of
7140         value_type.
7141         (install_dynamic_child): distinct changed and type changed MI variable
7142         objects.
7143         (update_dynamic_varobj_children): Updated for install_dynamic_child
7144         change.  All callers updated.
7145         (varobj_update): Support for MI variable object type change if
7146         the value changed and RTTI is used to determine the type.
7147         (create_child_with_value): Call value_actual_type instead of
7148         value_type.
7149         (adjust_value_for_child_access): Extended with a new parameter which
7150         specify whether the given value should be casted to enclosing type.
7151         All callers updated.
7152
7153 2012-04-14  Yao Qi  <yao@codesourcery.com>
7154
7155         Import gnulib module inttypes from git
7156         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7157         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7158         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7159         gnulib/m4/inttypes-pri.m4
7160         * aclocal.m4, config.in, configure: Regenerated.
7161         * gnulib/Makefile.am: Update.
7162         * gnulib/Makefile.in: Update.
7163         * gnulib/m4/gnulib-cache.m4: Update.
7164         * gnulib/m4/gnulib-comp.m4: Update.
7165         * gnulib/inttypes.in.h: New.
7166         * gnulib/m4/inttypes-pri.m4: New.
7167         * gnulib/m4/inttypes.m4: New.
7168
7169 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7170
7171         * infrun.c (resume): Update PC address to the real PC after
7172         preparing to do displaced stepping.
7173
7174 2012-04-12  Doug Evans  <dje@google.com>
7175
7176         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7177         All callers updated.
7178
7179 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7180
7181         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7182
7183 2012-04-12  Doug Evans  <dje@google.com>
7184
7185         * dwarf2read.c (create_all_type_units): Renamed from
7186         create_debug_types_hash_table.  All callers updated.
7187
7188         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7189         local type_sig to sig_type, type_offset to type_offset_in_tu.
7190         (hash_signatured_type): Renamed from hash_type_signature,
7191         all callers updated.
7192         (eq_signatured_type): Renamed from eq_type_signature,
7193         all callers updated.
7194         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7195         (process_enumeration_scope): Ditto.
7196         (lookup_signatured_type_at_offset): Ditto.
7197         (load_full_type_unit, read_signatured_type): Ditto.
7198
7199 2012-04-12  Yao Qi  <yao@codesourcery.com>
7200
7201         * remote.c (async_remote_interrupt): Correct function name in
7202         debug message.
7203         (async_remote_interrupt_twice): Ditto.
7204
7205 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7206
7207         * source.c (find_and_open_source): Consistently pass resulting
7208         full path through xfullpath.
7209
7210 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7211
7212         Provide more specific displaced-stepping memory error message.
7213         * infrun.c (displaced_step_prepare): New variable status.  Call
7214         target_read_memory instead of read_memory, provide more specific
7215         error message.
7216
7217 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7218
7219         PR gdb/13901
7220         * darwin-nat.c (darwin_execvp): Revert previous patch.
7221
7222 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7223
7224         PR gdb/13901
7225         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7226         in case of change.
7227
7228 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7229
7230         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7231         warning.
7232
7233 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7234
7235         New command 'explore' which helps explore values and types in
7236         scope.
7237         * NEWS: Add an entry about the new 'explore' command.
7238         * data-directory/Makefile.in: Add gdb/command/explore.py
7239         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7240         command using the GDB Python API.
7241
7242 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7243
7244         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7245         extension in jump target calculation.
7246
7247 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7248
7249         * mips-tdep.c (mips32_next_pc): Handle JALX.
7250
7251 2012-04-10  Yao Qi  <yao@codesourcery.com>
7252
7253         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7254
7255 2012-04-10  Yao Qi  <yao@codesourcery.com>
7256
7257         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7258         and gnulib/m4/gnulib-tool.m4.
7259
7260 2012-04-10  Doug Evans  <dje@google.com>
7261
7262         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7263         (load_partial_dies): Clarify comment.
7264         (find_partial_die): Support rereading type units.
7265         Clarify CU handling, if we know offset is in CU, don't search for the
7266         containing CU.  Add comment regarding memory waste.
7267
7268 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7269
7270         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7271         i386/x32-avx and i386/x32-avx-linux.
7272         (i386/x32-expedite): New.
7273         (i386/x32-linux-expedite): Likewise.
7274         (i386/x32-avx-expedite): Likewise.
7275         (i386/x32-avx-linux-expedite): Likewise.
7276         ($(outdir)/i386/x32.dat): Likewise.
7277         ($(outdir)/i386/x32-linux.dat): Likewise.
7278         ($(outdir)/i386/x32-avx.dat): Likewise.
7279         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7280
7281         * features/i386/x32-avx-linux.xml: New file.
7282         * features/i386/x32-avx.xml: Likewise.
7283         * features/i386/x32-core.xml: Likewise.
7284         * features/i386/x32-linux.xml: Likewise.
7285         * features/i386/x32.xml: Likewise.
7286
7287         * features/i386/x32-avx-linux.c: New.  Generated.
7288         * features/i386/x32-avx.c: Likewise.
7289         * features/i386/x32-linux.c: Likewise.
7290         * features/i386/x32.c: Likewise.
7291         * regformats/i386/x32-avx-linux.dat: Likewise.
7292         * regformats/i386/x32-avx.dat: Likewise.
7293         * regformats/i386/x32-linux.dat: Likewise.
7294         * regformats/i386/x32.dat: Likewise.
7295
7296 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7297
7298         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7299         code to kill the inferior.
7300
7301 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7302
7303         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7304         defines.
7305         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7306         defines.
7307         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7308         (yyvsp): New defines.
7309         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7310         defines.
7311         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7312         defines.
7313         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7314         defines.
7315         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7316         defines.
7317         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7318         defines.
7319
7320 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7321
7322         * sparc64-tdep.c (sparc64_store_arguments)
7323         (sparc64_store_arguments): Fix coding style.
7324
7325 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7326
7327         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7328         complex floats, adjust some related comments and tighten a related
7329         assertion.
7330         (sparc64_extract_return_value): Handle complex floats.
7331
7332 2012-04-07  Doug Evans  <dje@google.com>
7333
7334         * dwarf2read.c (load_partial_dies): Change condition to assert.
7335
7336 2012-04-06  Doug Evans  <dje@google.com>
7337
7338         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7339         "mov %rsp,%rbp".
7340
7341 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7342
7343         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7344         fencepost error.
7345         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7346         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7347         architecture.
7348
7349 2012-04-05  Keith Seitz  <keiths@redhat.com>
7350
7351         * linespec.c (decode_compound): Remove.
7352         (enum offset_relative_sign): New enum.
7353         (struct line_offset): New struct.
7354         (struct linespec): New struct.
7355         (struct linespec_state): Move file_symtabs,
7356         user_filename, and user_function into struct linespec.
7357         Make result an anonymous struct holding vectors of
7358         symbolp and minsym_and_objfile_d.
7359         Add language member.
7360         (enum ls_token_type): New enum.
7361         (linespec_keywords): New array.
7362         (struct ls_token): New struct.
7363         (struct ls_parser): New struct.
7364         (linespec_lexer_lex_number): New function.
7365         (linespec_lexer_lex_keyword): New function.
7366         (is_ada_operator): New function.
7367         (skip_quote_char): New function.
7368         (copy_token_string): New function.
7369         (is_closing_quote_enclosed): New function.
7370         (find_parameter_list_end): New function.
7371         (linespec_lexer_lex_string): New function.
7372         (linespec_lexer_lex_one): New function.
7373         (linespec_lexer_consume_token): New function.
7374         (linespec_lexer_peek_token): New function.
7375         (cplusplus_error): Remove unused function.
7376         (find_methods): Update comment.
7377         (find_toplevel_char): Return const.
7378         (is_objc_method_format): Remove unused function.
7379         (find_toplevel_string): New function.
7380         (is_linespec_boundary): Remove.
7381         (symbol_not_found_error): New function.
7382         (find_method_overload_end): Remove function.
7383         (unexpected_linespec_error): New function.
7384         (keep_name_info): Remove.
7385         (linespec_parse_line_offset): New function.
7386         (linespec_parse_basic): New function.
7387         (canonicalize_linespec): New function.
7388         (decode_line_internal): Remove.
7389         (create_sals_line_offset): New function adapted from
7390         decode_all_digits.
7391         (convert_linespec_to_sals): New function.
7392         (parse_linespec): New function.
7393         (linespec_parser_new): New function.
7394         (linespec_state_destructor): Change parameter type to
7395         struct linespec_state *.
7396         Add language parameter.
7397         Remove freeing of moved members.
7398         (linespec_parser_delete): New function.
7399         (decode_line_full): Use parse_linespec and linespec_parser_new.
7400         (decode_line_1): Likewise.
7401         (decode_indirect): Rename to ...
7402         (linespec_expression_to_pc): ... this and rewrite
7403         to simply find CORE_ADDR, storing this result for later
7404         conversion to SALs.
7405         (locate_first_half): Remove.
7406         (deocde_objc): Add parameter LS.
7407         Initialize new struct collect_info members.
7408         Handle minimal symbols, too.
7409         (decode_compound): Delete.
7410         (lookup_prefix_sym): Rewrite.
7411         (compare_msymbols): New function.
7412         (find_method): Rewrite.
7413         Do not call cplusplus_error.
7414         (symtabs_from_filename): Rewrite.
7415         (collect_function_symbols): Delete.
7416         (find_function_symbols): Rewrite without ARGPTR-style
7417         processing.
7418         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7419         (decode_dollar): Adapted and renamed to ...
7420         (linespec_parse_variable): ... this.
7421         (find_linespec_symbols): New function.
7422         (decode_label): Adapted and renamed to ...
7423         (find_label_symbols): ... this.
7424         (decode_digits_list_mode): Add and use LS argument.
7425         (decode_digits_ordinary): Likewise.
7426         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7427         If in list mode, allow any symbol class.  Otherwise, only
7428         permit LOC_BLOCK symbols.
7429         (minsym_found): Update comments.
7430         (search_minsyms_for_name): Do not convert the matching symbol
7431         into a SAL.  Simply push the symbol and objfile into the
7432         result vector.
7433         (decode_variable): Delete. Contents adapted into
7434         find_linespec_symbols.
7435
7436         * cp-support.c (SKIP_SPACE): Remove.
7437         (operator_tokens): Remove unused global.
7438         (cp_validate_operator): Remove.
7439         * cp-support.h (cp_validate_operator): Remove declaration.
7440
7441 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7442
7443         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7444         for TYPE_VPTR_FIELDNO.
7445         * valprint.c (valprint_check_validity): Make it global, move the
7446         function comment ...
7447         * value.h (valprint_check_validity): ... to this new declaration.
7448
7449 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7450
7451         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7452         the STATE32 api for i386 state.
7453         (i386_darwin_store_inferior_registers): Likewise.
7454
7455 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7456
7457         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7458         SS offset.
7459         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7460         format_string.
7461
7462 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7463
7464         PR gdb/13901
7465         * darwin-nat.c (darwin_execvp): Set binary preference.
7466
7467 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7468
7469         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7470
7471 2012-03-30  Tom Tromey  <tromey@redhat.com>
7472
7473         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7474         of TRY_CATCH.  Fix error handling.
7475         * python/py-value.c (convert_value_from_python): Move 'old'
7476         declaration to innermost scope.
7477
7478 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7479             Andrey Smirnov  <andrew.smirnov@gmail.com>
7480
7481         -Wshadow warning fix.
7482         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7483         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7484         Adjust code accordingly.
7485
7486 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7487
7488         * ada-lang.c (symbol_completion_add): Rename parameter
7489         "encoded" into "encoded_p".  Ajust code and documentation
7490         accordingly.
7491
7492 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7493             Andrey Smirnov  <andrew.smirnov@gmail.com>
7494
7495         -Wshadow warning fix.
7496         * ada-lang.c (symbol_completion_add): Rename parameter
7497         "wild_match" into wild_match_p.  Update code and documentation
7498         accordingly.
7499
7500 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7501
7502         * ada-lang.c (symbol_completion_match): Rename parameter
7503         "encoded" into "encoded_p".  Ajust code and documentation
7504         accordingly.
7505
7506 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7507             Andrey Smirnov  <andrew.smirnov@gmail.com>
7508
7509         -Wshadow warning fix.
7510         * ada-lang.c (symbol_completion_match): Rename parameter
7511         "wild_match" into "wild_match_p".  Adjust code and function
7512         documentation accordingly.
7513
7514 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7515             Andrey Smirnov  <andrew.smirnov@gmail.com>
7516
7517         -Wshadow warning fix.
7518         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7519         "symbol_info" into "info".  Adjust code accordingly.
7520         (ada_lookup_symbol): Likewise.
7521
7522 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7523
7524         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7525         of this function's documentation.
7526
7527 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7528             Andrey Smirnov  <andrew.smirnov@gmail.com>
7529
7530         -Wshadow warning fix.
7531         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7532         variable into "wild_match_p".  Adjust code accordingly.
7533
7534 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7535             Andrey Smirnov  <andrew.smirnov@gmail.com>
7536
7537         -Wshadow warning fix.
7538         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7539         parameter into "wild_match_p".  Adjust code accordingly.
7540         Document this parameter in the function description.
7541
7542 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7543             Andrey Smirnov  <andrew.smirnov@gmail.com>
7544
7545         -Wshadow warning fix.
7546         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7547         "wild_match" parameter to "wild_match_p" (-Wshadow).
7548
7549 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7550
7551         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7552         in function documentation.
7553
7554 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7555             Andrey Smirnov  <andrew.smirnov@gmail.com>
7556
7557         -Wshadow warning fix.
7558         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7559         variable into wild_match_p.  Adjust code accordingly.
7560
7561 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7562             Andrey Smirnov  <andrew.smirnov@gmail.com>
7563
7564         * ada-valprint.c (ada_val_print_1): Move the code handling
7565         TYPE_CODE_ENUM inside its own lexical block.  Declare
7566         variables len and val there, instead of in the function's
7567         top level block.  Avoid declaring deref_val again in a way
7568         that shadows another variable of the same name declared
7569         in one of the up-level blocks.  Just re-use the up-level
7570         variable instead.
7571
7572 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7573
7574         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7575         Replace block_found argument by symbol_info.  Adjust
7576         implementation accordingly.  Add function documentation.
7577         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7578         Fix documentation.
7579         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7580         * ada-exp.y (write_object_renaming): Adjust to new
7581         ada_lookup_encoded_symbol API.
7582
7583 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7584
7585         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7586         documentation.
7587
7588 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7589
7590         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7591         (v850_register_name): Add the mpu and fpu register names.
7592         (v850e_register_name): Add the mpu and fpu register names.
7593         (v850e2_register_name): New function.
7594         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7595         bfd_mach_v850e2v3.
7596
7597 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7598
7599         * NEWS: Add entry for Ada varobj support.
7600
7601 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7602
7603         * varobj.c (default_value_is_changeable_p): New function,
7604         extracted from varobj_value_is_changeable_p.  Add declaration.
7605         (ada_value_is_changeable_p): New function, extracted from
7606         varobj_value_is_changeable_p.  Add declaration.
7607         (struct language_specific): New field "value_is_changeable_p".
7608         (languages): Add entries for new field.
7609         (varobj_create): Set language before calling install_new_value.
7610         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7611         "value_is_changeable_p" language callback.
7612
7613 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7614
7615         * ada-varobj.h, ada-varobj.c: New files.
7616         * Makefile.in (SFILES): Add ada-varobj.c.
7617         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7618         (COMMON_OBS): Add ada-varobj.o.
7619
7620 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7621
7622         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7623         (struct language_specific): New field "value_has_mutated".
7624         (languages): Set field "value_has_mutated" in each entry of array.
7625         (varobj_value_has_mutated): New function.
7626         (varobj_udpdate): Add handling of type mutation.
7627         (value_of_root): Add handling of type mutation.
7628         (ada_value_has_mutated): New function.
7629
7630 2012-03-28  Pedro Alves  <palves@redhat.com>
7631
7632         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7633         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7634
7635 2012-03-28  Tom Tromey  <tromey@redhat.com>
7636
7637         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7638         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7639         before returning.
7640
7641 2012-03-28  Tom Tromey  <tromey@redhat.com>
7642
7643         * .dir-locals.el: New file.
7644
7645 2012-03-28  Pedro Alves  <palves@redhat.com>
7646
7647         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7648
7649 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7650
7651         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7652         handling for r0.
7653
7654 2012-03-27  Pedro Alves  <palves@redhat.com>
7655
7656         Eliminate struct ui_stream.
7657
7658         * ui-out.h (struct ui_stream): Delete.
7659         (ui_out_field_stream): Adjust prototype.
7660         (ui_out_stream_new, ui_out_stream_delete)
7661         (make_cleanup_ui_out_stream_delete): Delete declarations.
7662         * ui-out.c (ui_out_field_stream): Change prototype to take a
7663         ui_file instead of a ui_stream.  Adjust.
7664         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7665         (make_cleanup_ui_out_stream_delete): Delete.
7666         * breakpoint.c (print_breakpoint_location)
7667         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7668         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7669         * disasm.c (dump_insns): Ditto.
7670         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7671         prototype.
7672         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7673         ui_stream/ui_out_stream_new.
7674         * infcmd.c (print_return_value): Ditto.
7675         * osdata.c (info_osdata_command): Don't allocate a local
7676         ui_stream.
7677         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7678         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7679         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7680         allocate a local ui_stream.
7681         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7682         instead of ui_stream/ui_out_stream_new.
7683         (list_args_or_locals): Don't allocate a local ui_stream.
7684         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7685         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7686         ui_stream/ui_out_stream_new.
7687         * cli/cli-setshow.c (do_setshow_command): Ditto.
7688
7689 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7690
7691         * arm-linux-tdep.c (arm_linux_init_abi): Call
7692         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7693         * arm-tdep.c (arm_process_record): New function.
7694         (deallocate_reg_mem): New function.
7695         (decode_insn): New function.
7696         (thumb_record_branch): New function.
7697         (thumb_record_ldm_stm_swi(): New function.
7698         (thumb_record_misc): New function.
7699         (thumb_record_ld_st_stack): New function.
7700         (thumb_record_ld_st_imm_offset): New function.
7701         (thumb_record_ld_st_reg_offset(): New function.
7702         (thumb_record_add_sub_cmp_mov): New function.
7703         (thumb_record_shift_add_sub): New function.
7704         (arm_record_coproc_data_proc): New function.
7705         (arm_record_coproc): New function.
7706         (arm_record_b_bl): New function.
7707         (arm_record_ld_st_multiple): New function.
7708         (arm_record_ld_st_reg_offset): New function.
7709         (arm_record_ld_st_imm_offset): New function.
7710         (arm_record_data_proc_imm): New function.
7711         (arm_record_data_proc_misc_ld_str): New function.
7712         (arm_record_extension_space): New function.
7713         (arm_record_strx): New function.
7714         (sbo_sbz): New function.
7715         (struct insn_decode_record): New structure for arm insn record.
7716         (REG_ALLOC): New macro for reg allocations.
7717         (MEM_ALLOC): New macro for memory allocations.
7718         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7719
7720 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7721
7722         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7723         (store_register): Likewise.
7724
7725 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7726
7727         * MAINTAINERS (Write After Approval): Add myself to the list.
7728
7729 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7730
7731         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7732         Describe also the option "auto".
7733
7734 2012-03-22  Richard Henderson  <rth@redhat.com>
7735
7736         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7737         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7738
7739 2012-03-22  Richard Henderson  <rth@redhat.com>
7740
7741         * jit.c (jit_read_code_entry): Compute alignment and offset of
7742         int64_t member before computing entry_size.
7743
7744 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7745
7746         Python scripting: Add new method Value.referenced_value to
7747         gdb.Value which can dereference pointer as well as reference
7748         values.
7749         * NEWS: Add entry under 'Python scripting' about the new method
7750         Value.referenced_value on gdb.Value objects.
7751         * python/py-value.c (valpy_referenced_value): New function
7752         defining a new method on gdb.Value objects which can dereference
7753         pointer and reference values.
7754
7755 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7756
7757         * MAINTAINERS (Write After Approval): Add myself to the list.
7758
7759 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7760
7761         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7762         in addition to "main".
7763
7764 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7765
7766         * expression.h (op_name): Add declaration.
7767         * expprint.c (op_name): Remove declaration.  Make non-static.
7768         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7769
7770 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7771
7772         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7773         of struct siginfo.
7774         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7775         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7776         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7777         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7778         (linux_nat_get_siginfo): Likewise.
7779         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7780         (linux_nat_get_siginfo): Likewise.
7781         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7782         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7783         * procfs.c (gdb_siginfo_t): Likewise.
7784
7785 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7786
7787         * .gitignore: Ignore more files.
7788
7789 2012-03-20  Pedro Alves  <palves@redhat.com>
7790
7791         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7792         returns.
7793
7794 2012-03-20  Yao Qi  <yao@codesourcery.com>
7795
7796         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7797         comment.
7798
7799 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7800
7801         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7802         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7803         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7804         sect_offset.
7805         * dwarf2expr.h (cu_offset, sect_offset): New types.
7806         (struct dwarf_expr_context_funcs) <dwarf_call>
7807         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7808         sect_offset.
7809         (struct dwarf_expr_context) <len>: Improve the comment.
7810         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7811         cu_offset and sect_offset.
7812         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7813         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7814         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7815         * dwarf2loc.h: Include dwarf2expr.h.
7816         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7817         and sect_offset.
7818         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7819         Improve the comment.
7820         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7821         (struct signatured_type, struct line_header, struct partial_die_info)
7822         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7823         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7824         (get_die_type_at_offset, create_cus_from_index)
7825         (create_signatured_type_table_from_index, dw2_get_file_names)
7826         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7827         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7828         (create_debug_types_hash_table, process_psymtab_comp_unit)
7829         (load_partial_comp_unit, create_all_comp_units)
7830         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7831         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7832         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7833         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7834         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7835         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7836         (find_partial_die, read_attribute_value, lookup_die_type)
7837         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7838         (is_ref_attr): New function comment.
7839         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7840         Use cu_offset and sect_offset.
7841         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7842         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7843         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7844         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7845         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7846         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7847         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7848         sect_offset.
7849
7850 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7851
7852         Code cleanup.
7853         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7854         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7855         with xfree.
7856         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7857
7858 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7859
7860         * NEWS: Describe new options --init-command=FILE, -ix and
7861         --init-eval-command=COMMAND, -iex.
7862         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7863         CMDARG_INIT_COMMAND.
7864         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7865         "init-command", "init-eval-command", "ix" and "iex" to the variable
7866         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7867         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7868         (print_gdb_help): Describe --init-command=FILE, -ix and
7869         --init-eval-command=COMMAND, -iex.
7870
7871 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7872
7873         Code cleanup.
7874         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7875         (cmdarg_s, VEC (cmdarg_s)): New.
7876         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7877         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7878         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7879         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7880         of CMDARG.
7881
7882 2012-03-19  Tom Tromey  <tromey@redhat.com>
7883
7884         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7885
7886 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7887
7888         PR symtab/13777
7889         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7890         GCC >=4.5.
7891
7892 2012-03-16  Chris January  <chris.january@allinea.com>
7893
7894         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7895         of clear.
7896
7897 2012-03-16  Chris January  <chris.january@allinea.com>
7898
7899         * source.c (add_path): Use memmove instead of strcpy because the
7900         strings overlap.
7901
7902 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7903
7904         * value.h (set_value_parent): Add declaration.
7905         * value.c (set_value_parent): New function.
7906         (value_address): If VALUE->PARENT is not NULL, then use it as
7907         the base address instead of VALUE->LOCATION.address.
7908         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7909         the same as OBJ's address.  Adjust V's offset accordingly.
7910         Set V's parent.
7911
7912 2012-03-16  Gary Benson  <gbenson@redhat.com>
7913
7914         PR breakpoints/10738
7915         * dwarf2read.c (use_deprecated_index_sections): New global.
7916         (struct partial_die_info): New member may_be_inlined.
7917         (read_partial_die): Set may_be_inlined where appropriate.
7918         (add_partial_subprogram): Add partial symbols for partial
7919         DIEs that may be inlined.
7920         (new_symbol_full): Add inlined subroutines to the current
7921         scope.
7922         (write_psymtabs_to_index): Bump version number.
7923         (dwarf2_read_index): Read only version 6 indices unless
7924         use_deprecated_index_sections is set.
7925         * linespec.c (symbol_and_data_callback): New structure.
7926         (iterate_inline_only): New function.
7927         (iterate_over_all_matching_symtabs): New argument
7928         "include_inline".  If nonzero, also call the callback for
7929         symbols representing inlined subroutines.
7930         (lookup_prefix_sym): Pass extra argument to the above.
7931         (find_function_symbols): Likewise.
7932         (add_matching_symbols_to_info): Likewise.
7933         * NEWS: Mention that GDB can now set breakpoints on inlined
7934         functions.
7935
7936 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7937
7938         * p-typeprint.c (pascal_type_print_method_args):
7939         Fix display of parameter of methods.
7940
7941 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7942
7943         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7944         Add missing prototype.
7945
7946 2012-03-16  Yao Qi  <yao@codesourcery.com>
7947             Jan Kratochvil  <jan.kratochvil@redhat.com>
7948
7949         Fix false compilation warning.
7950         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7951
7952 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
7953             Pedro Alves  <pedro@codesourcery.com>
7954
7955         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7956         (arm_register_g_packet_guesses): New function.
7957         (arm_gdbarch_init): Don't force a target description with
7958         registers when the executable is detected as M-profile.  Instead
7959         set gdbarch->tdep->is_m.  Register `g' packet guesses.
7960         (_initialize_arm_tdep): Initialize the new target description.
7961         * features/arm-with-m-fpa-layout.xml: New description.
7962         * features/arm-with-m-fpa-layout.c: New, generated.
7963
7964 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
7965
7966         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7967         Update function description.
7968         (insert_bp_location): Do not wipe bl->target_info out.
7969         * mem-break.c: #include "gdb_string.h".
7970         (default_memory_insert_breakpoint): Do not call target_read_memory
7971         with a pointer to the breakpoint's shadow_contents buffer.  Use
7972         a local buffer instead.
7973         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7974
7975 2012-03-15  Tom Tromey  <tromey@redhat.com>
7976
7977         * NEWS: Mention "info vtbl", not "info vtable".
7978         * cp-support.c (info_vtbl_command): Fix comment.
7979         (_initialize_cp_support): Fix text.
7980
7981 2012-03-15  Tom Tromey  <tromey@redhat.com>
7982
7983         * cp-valprint.c (cp_print_value_fields): Use
7984         print_function_pointer_address for vtable slot.
7985
7986 2012-03-15  Tom Tromey  <tromey@redhat.com>
7987
7988         * gnu-v3-abi.c (struct value_and_voffset): New.
7989         (hash_value_and_voffset, eq_value_and_voffset)
7990         (compare_value_and_voffset, compute_vtable_size)
7991         (print_one_vtable, gnuv3_print_vtable): New functions.
7992         (init_gnuv3_ops): Initialize 'print_vtable' field.
7993         * cp-support.c (info_vtbl_command): New function.
7994         (_initialize_cp_support): Add "info vtbl".
7995         * cp-abi.h (cplus_print_vtable): Declare.
7996         (struct cp_abi_ops) <print_vtable>: New field.
7997         * cp-abi.c (cplus_print_vtable): New function.
7998         * NEWS: Update.
7999
8000 2012-03-15  Tom Tromey  <tromey@redhat.com>
8001
8002         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8003         iterate_over_symbols.
8004
8005 2012-03-14  Doug Evans  <dje@google.com>
8006
8007         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8008         DW_OP_GNU_parameter_ref.
8009
8010 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8011
8012         Fix double prompt of 'interpreter-exec mi'.
8013         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8014         (mi_interpreter_resume): use it.
8015         (mi_execute_command_input_handler): New function.
8016         * mi/mi-main.c (mi_execute_command): Move prompt printing to
8017         mi_execute_command_input_handler.
8018
8019 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8020
8021         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8022         prototype.
8023         (darwin_debug_port_info): Make static.
8024         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8025         * machoread.c (_initialize_machoread): Add prototype.
8026         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8027         (i386_darwin_set_control, i386_darwin_get_control)
8028         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8029         i386_darwin_get_status, i386_darwin_get_control):
8030         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8031
8032 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8033
8034         * ax-gdb.c (gen_usual_unary): Remove special handling of
8035         enum and bool types.
8036
8037 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8038
8039         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8040
8041 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8042
8043         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8044
8045 2012-03-13  Chris January  <chris.january@allinea.com>
8046
8047         * aix-thread.c (fill_sprs): Store the floating point registers
8048         at the correct offsets into vals.
8049
8050 2012-03-13  Doug Evans  <dje@google.com>
8051
8052         * NEWS: Mention symbol-reloading has been deleted.
8053         * symfile.c (symbol_reloading): Delete.
8054         (show_symbol_reloading): Delete.
8055         (_initialize_symfile): Delete set/show symbol-reloading.
8056
8057         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8058         read_in_chain until we have successfully read it in.
8059         (load_full_comp_unit): Ditto.
8060         (read_signatured_type): Add comment.
8061
8062 2012-03-13  Chris January  <chris.january@allinea.com>
8063
8064         * stabsread.c (fix_common_block): Change type of valu argument
8065         to CORE_ADDR.
8066
8067 2012-03-13  Chris January  <chris.january@allinea.com>
8068
8069         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8070         instruction.
8071
8072 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8073
8074         * common/linux-procfs.c (linux_proc_get_int): New, from
8075         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8076         field.
8077         (linux_proc_get_tgid): Only call linux_proc_get_int.
8078         (linux_proc_get_tracerpid): New.
8079         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8080         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8081         linux_proc_pid_has_state.
8082         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8083         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8084         (linux_ptrace_attach_warnings): New.
8085         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8086         New declaration.
8087         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8088         (linux_nat_attach): New variables ex, buffer, message and message_s.
8089         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8090
8091 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8092
8093         * Makefile.in (linux-ptrace.o): New.
8094         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8095         from linux-nat.c.
8096         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8097         * common/linux-ptrace.c: New file.
8098         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8099         * config/arm/linux.mh: Likewise.
8100         * config/i386/linux.mh: Likewise.
8101         * config/i386/linux64.mh: Likewise.
8102         * config/ia64/linux.mh: Likewise.
8103         * config/m32r/linux.mh: Likewise.
8104         * config/m68k/linux.mh: Likewise.
8105         * config/mips/linux.mh: Likewise.
8106         * config/pa/linux.mh: Likewise.
8107         * config/powerpc/linux.mh: Likewise.
8108         * config/powerpc/ppc64-linux.mh: Likewise.
8109         * config/powerpc/spu-linux.mh: Likewise.
8110         * config/s390/s390.mh: Likewise.
8111         * config/sparc/linux.mh: Likewise.
8112         * config/sparc/linux64.mh: Likewise.
8113         * config/xtensa/linux.mh: Likewise.
8114         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8115         common/linux-procfs.c.
8116         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8117
8118 2012-03-13  Hui Zhu  <teawater@gmail.com>
8119             Pedro Alves  <palves@redhat.com>
8120
8121         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8122         CREATE_BREAKPOINT_FLAGS_INSERTED.
8123         (create_breakpoint_sal, create_breakpoints_sal)
8124         (base_breakpoint_create_breakpoints_sal)
8125         (tracepoint_create_breakpoints_sal)
8126         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8127         down.
8128         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8129         (ftrace_command, strace_command): Adjust.
8130         (create_tracepoint_from_upload): Pass
8131         CREATE_BREAKPOINT_FLAGS_INSERTED.
8132         * breakpoint.h (enum breakpoint_create_flags): New.
8133         (create_breakpoint): New flags parameter.
8134         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8135         * python/py-breakpoint.c (bppy_init): Adjust.
8136         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8137         * spu-tdep.c (spu_catch_start): Adjust.
8138
8139 2012-03-13  Pedro Alves  <palves@redhat.com>
8140             Hui Zhu  <teawater@gmail.com>
8141             Yao Qi  <yao@codesourcery.com>
8142
8143         * remote.c (struct remote_state): New field `starting_up'.
8144         (remote_start_remote): Set and clear it.
8145         (remote_can_download_tracepoint): If starting up, return false.
8146
8147 2012-03-13  Yao Qi  <yao@codesourcery.com>
8148
8149         * inferior.h (struct inferior): Remove fields any_syscall_count,
8150         syscalls_counts and total_syscalls_count.  Move them to new
8151         struct catch_syscall_inferior_data in breakpoint.c.
8152         * breakpoint.c: Call DEF_VEC_I(int).
8153         (struct catch_syscall_inferior_data): New.
8154         (get_catch_syscall_inferior_data): New.
8155         (catch_syscall_inferior_data_cleanup): New.
8156         (insert_catch_syscall): Update to access data in
8157         struct catch_syscall_inferior_data.
8158         (insert_catch_syscall): Likewise.
8159         (remove_catch_syscall): Likewise.
8160         (remove_catch_syscall): Likewise.
8161         (is_syscall_catchpoint_enabled): Likewise.
8162         (add_catch_command): Likewise.
8163         (_initialize_breakpoint): Register cleanup.
8164         * breakpoint.h: Removed DEF_VEC_I(int).
8165         * dwarf2loc.c: Call DEF_VEC_I(int).
8166         * mi/mi-main.c: Likewise.
8167
8168 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8169
8170         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8171
8172 2012-03-12  Chris January  <chris.january@allinea.com>
8173
8174         * aix-thread.c (_initialize_aix_thread): Add prototype.
8175         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8176         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8177
8178 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8179
8180         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8181         include of "amd64-nat.h".
8182
8183 2012-03-12  Tom Tromey  <tromey@redhat.com>
8184
8185         * buildsym.c (record_pending_block): Now static.
8186         * buildsym.h: (record_pending_block): Remove.
8187
8188 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8189
8190         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8191
8192 2012-03-09  Tom Tromey  <tromey@redhat.com>
8193
8194         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8195         producer_is_gxx_lt_4_6>: New fields.
8196         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8197
8198 2012-03-09  Tom Tromey  <tromey@redhat.com>
8199
8200         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8201
8202 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8203
8204         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8205         prototype.
8206
8207 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8208
8209         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8210
8211 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8212
8213         Fix -Wmissing-prototypes build.
8214         * arm-linux-nat.c (get_thread_id): Make it static.
8215         * xtensa-linux-nat.c (get_thread_id): Likewise.
8216
8217 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8218
8219         * server.c (process_point_options): If a conditional expression
8220         is found, only print a message if remote_debug is nonzero.
8221
8222 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8223
8224         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8225         of internal error for unknown/unsupported types.
8226
8227 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8228
8229         Fix CU relative vs. absolute DIE offsets.
8230         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8231         offset to offset_in_cu.
8232         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8233         TYPE_OFFSET.
8234         (dwarf2_fetch_die_location_block): Rename parameter offset to
8235         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8236
8237 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8238
8239         * libunwind-frame.c: Rename to ...
8240         * ia64-libunwind-tdep.c: ... here.
8241         * libunwind-frame.h: Rename to ...
8242         * ia64-libunwind-tdep.h: ... here.
8243         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8244         ia64-libunwind-tdep.h.
8245         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8246         * README (--with-libunwind): Rename to ...
8247         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8248         * config.in: Regenerate.
8249         * configure: Regenerate.
8250         * configure.ac: New option --with-libunwind-ia64, make the
8251         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8252         Remove AC_DEFINE for HAVE_LIBUNWIND.
8253         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8254         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8255         Rename libunwind-frame in the general comment.
8256         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8257         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8258         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8259         the general comment.
8260         * ia64-tdep.c: Rename libunwind-frame.h #include to
8261         ia64-libunwind-tdep.h.
8262         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8263         (ia64_libunwind_descr): Rename libunwind-frame to
8264         ia64-libunwind-tdep in these function comments.
8265         * ia64-tdep.h: Rename libunwind-frame.h #include to
8266         ia64-libunwind-tdep.h.
8267         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8268         ia64-libunwind-tdep in that data comment.
8269
8270 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8271
8272         * libunwind-frame.h (struct frame_unwind): New declaration.
8273
8274 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8275
8276         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8277         "set breakpoint condition-evaluation" command.
8278
8279 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8280
8281         * sparc-stub.c: Move to stubs/
8282         * sh-stub.c: Likewise.
8283         * m68k-stub.c: Likewise.
8284         * m32r-stub.c: Likewise.
8285         * i386-stub.c: Likewise.
8286
8287 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8288
8289         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8290         linux_get_siginfo_type.
8291
8292         * m68klinux-nat.c: Include "gdb_proc_service.h".
8293         (PTRACE_GET_THREAD_AREA): Define.
8294         (ps_get_thread_area): New function.
8295
8296 2012-03-08  Yao Qi  <yao@codesourcery.com>
8297
8298         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8299         `xsnprintf'.
8300         (remote_query_attached): Likewise.
8301         (remote_static_tracepoint_marker_at): Likewise.
8302         (remote_set_permissions): Likewise.
8303         (remote_detach_1, extended_remote_attach_1): Likewise.
8304         (send_g_packet, remote_vkill): Likewise.
8305         (extended_remote_disable_randomization): Likewise.
8306         (remote_add_target_side_condition): Likewise.
8307         (remote_insert_breakpoint): Likewise.
8308         (remote_remove_breakpoint): Likewise.
8309         (remote_insert_watchpoint): Likewise.
8310         (remote_remove_watchpoint): Likewise.
8311         (remote_insert_hw_breakpoint): Likewise.
8312         (remote_insert_hw_breakpoint): Likewise.
8313         (remote_remove_hw_breakpoint): Likewise.
8314         (remote_download_command_source): Likewise.
8315         (remote_download_tracepoint): Likewise.
8316         (remote_download_trace_state_variable): Likewise.
8317         (remote_disable_tracepoint): Likewise.
8318         (remote_trace_set_readonly_regions): Likewise.
8319         (remote_get_tracepoint_status): Likewise.
8320         (remote_trace_find): Likewise.
8321         (remote_get_trace_state_variable_value): Likewise.
8322         (remote_set_disconnected_tracing): Likewise.
8323         (remote_set_circular_trace_buffer): Likewise.
8324         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8325         (remote_use_agent): Likewise.
8326         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8327         Update callers.
8328
8329 2012-03-07  Pedro Alves  <palves@redhat.com>
8330
8331         * NEWS: Mention QProgramSignals.
8332         * inferior.h (update_signals_program_target): Declare.
8333         * infrun.c: (update_signals_program_target): New.
8334         (handle_command): Update the target of the new program signals
8335         array changes.
8336         * remote.c (PACKET_QProgramSignals): New enum.
8337         (last_program_signals_packet): New global.
8338         (remote_program_signals): New.
8339         (remote_start_remote): Update the target with the program signals
8340         list.
8341         (remote_protocol_features): Add entry for QPassSignals.
8342         (remote_open_1): Free anc clear last_program_signals_packet.
8343         (init_remote_ops): Install remote_program_signals.
8344         * target.c (update_current_target): Adjust.
8345         (target_program_signals): New.
8346         * target.h (struct target_ops) <to_program_signals>: New field.
8347         (target_program_signals): Declare.
8348
8349 2012-03-07  Pedro Alves  <palves@redhat.com>
8350
8351         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8352         extensions.
8353
8354 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8355
8356         * m68klinux-nat.c (getregs_supplies): Make static.
8357         (getfpregs_supplies): Likewise.
8358         (have_ptrace_getregs): Likewise.
8359
8360 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8361
8362         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8363         in call to get_die_type_at_offset.
8364
8365 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8366
8367         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8368         * mi/mi-cmd-disas.c: Ditto.
8369         * mi/mi-cmd-env.c: Ditto.
8370         * mi/mi-cmd-file.c: Ditto.
8371         * mi/mi-cmd-stack.c: Ditto.
8372         * mi/mi-cmd-target.c: Ditto.
8373         * mi/mi-cmd-var.c: Ditto.
8374         * mi/mi-cmds.c: Ditto.
8375         * mi/mi-cmds.h: Ditto.
8376         * mi/mi-console.c: Ditto.
8377         * mi/mi-getopt.c: Ditto.
8378         * mi/mi-getopt.h: Ditto.
8379         * mi/mi-interp.c: Ditto.
8380         * mi/mi-main.c: Ditto.
8381         * mi/mi-out.c: Ditto.
8382         * mi/mi-parse.c: Ditto.
8383         * mi/mi-parse.h: Ditto.
8384         * mi/mi-symbol-cmds.c: Ditto.
8385
8386         * mi/mi-getopt.h: Move mi_opt struct up.
8387         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8388         return.
8389         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8390
8391 2012-03-06  Tom Tromey  <tromey@redhat.com>
8392
8393         * proc-service.c (ps_pglobal_lookup): Set the current program
8394         space.
8395
8396 2012-03-06  Pedro Alves  <palves@redhat.com>
8397
8398         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8399
8400 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8401
8402         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8403
8404 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8405
8406         Code cleanup.
8407         * common/linux-osdata.c (linux_common_core_of_thread): New function
8408         comment.
8409         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8410         call by linux_common_core_of_thread.
8411         (linux_nat_core_of_thread_1): Remove.
8412         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8413         * linux-thread-db.c: Include linux-osdata.h.
8414         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8415         linux_common_core_of_thread.
8416
8417 2012-03-05  Tom Tromey  <tromey@redhat.com>
8418
8419         * value.c (value_primitive_field): Don't fetch contents for
8420         non-virtual bases.
8421
8422 2012-03-05  Tom Tromey  <tromey@redhat.com>
8423
8424         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8425
8426 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8427
8428         * s390-nat.c: Include "gregset.h".
8429
8430 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8431
8432         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8433         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8434         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8435         load also LIBUNWIND_SO_7.
8436
8437 2012-03-05  Pedro Alves  <palves@redhat.com>
8438
8439         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8440         is not NULL, and remove resulting dead code.
8441
8442 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8443
8444         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8445         prologue to sh_analyze_prologue.
8446         (sh_analyze_prologue): Make better use of such an upper limit, and
8447         generally be more cautious about accessing memory.
8448
8449 2012-03-05  Tom Tromey  <tromey@redhat.com>
8450
8451         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8452         _initialize_ia64_hpux_tdep.
8453
8454 2012-03-05  Pedro Alves  <palves@redhat.com>
8455
8456         PR gdb/13766
8457
8458         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8459         the register state is clear, supply explicit zero, instead of
8460         marking the register unavailable.
8461
8462 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8463
8464         * NEWS: Mention OpenVMS ia64 new target.
8465
8466 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8467
8468         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8469         (ia64_unw_accessors, ia64_unw_rse_accessors)
8470         (ia64_libunwind_descr): Declare.
8471         * ia64-vms-tdep.c: New file.
8472         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8473         (ia64_libunwind_descr): Make them public.
8474         * configure.tgt: Add ia64-*-*vms*.
8475         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8476         (ALLDEPFILES): Add ia64-vms-tdep.c
8477
8478 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8479
8480         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8481         * remote.c (PACKET_qXfer_uib): New enum value.
8482         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8483         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8484         (_initialize_remote): Call add_packet_config_cmd for
8485         xfer:uib packet.
8486
8487 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8488
8489         * osabi.c (gdb_osabi_names): Add OpenVMS.
8490         (generic_elf_osabi_sniffer): Likewise.
8491         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8492
8493 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8494
8495         Removed unused code.
8496         * libunwind-frame.c (libunwind_frame_unwind)
8497         (libunwind_frame_base_address): Remove.
8498         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8499
8500 2012-03-04  Yao Qi  <yao@codesourcery.com>
8501
8502         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8503         remove trailing new line.
8504         (agent_run_command, agent_run_command): Add _ markup.
8505         (agent_capability_check): Likewise.
8506
8507 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8508
8509         * breakpoint.c (set_condition_evaluation_mode): Set
8510         CONDITION_EVALUATION_MODE unconditionally.
8511
8512 2012-03-03  Yao Qi  <yao@codesourcery.com>
8513
8514         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8515         * common/agent.h: Update declaration.
8516         * inf-child.c (inf_child_use_agent): New.
8517         (inf_child_can_use_agent): New.
8518         (inf_child_target): Initialize fields `to_use_agent'
8519         and `to_can_use_agent'.
8520         * agent.c (agent_new_objfile): New.
8521         (_initialize_agent): Add agent_new_objfile to new_objfile
8522         observer.
8523
8524         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8525         New.
8526         (linux_target_install_ops): Initialize field
8527         `to_static_tracepoint_markers_by_strid'.
8528         * remote.c (free_current_marker): Move it to ...
8529         * tracepoint.c (free_current_marker): ... here.  New.
8530         (cleanup_target_stop): New.
8531         * tracepoint.h: Declare free_current_marker.
8532         * NEWS: Add one entry about `info static-tracepoint-marker'.
8533
8534 2012-03-03  Yao Qi  <yao@codesourcery.com>
8535
8536         * common/agent.c (agent_loaded_p): New.
8537         (agent_look_up_symbols): New global.
8538         * common/agent.h: Declare agent_loaded_p.
8539
8540 2012-03-03  Yao Qi  <yao@codesourcery.com>
8541
8542         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8543         (agent_capability_check, agent_capability_invalidate): New.
8544         (symbol_list): New array element.
8545         * common/agent.h (enum agent_capa): New.
8546         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8547
8548 2012-03-03  Yao Qi  <yao@codesourcery.com>
8549
8550         * target.h (struct target_ops) <to_use_agent>: New field.
8551         (struct target_ops) <to_can_use_agent>: New field.
8552         (target_use_agent, target_can_use_agent): New macro.
8553         * target.c (update_current_target): Update.
8554         * remote.c: New enum `PACKET_QAgent'.
8555         (remote_protocol_features): Add a new element.
8556         (remote_use_agent, remote_can_use_agent): New.
8557         (init_remote_ops): Initialize field `can_use_agent' with
8558         remote_can_use_agent.  Intiailize field `use_agent' with
8559         remote_use_agent.
8560         * common/agent.c (use_agent): New global.
8561         * common/agent.h: Declare it.
8562         * tracepoint.c (info_static_tracepoint_markers_command): Add
8563         comment.
8564         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8565         (COMMON_OBS): Add common/agent.o and agent.o
8566         (common-agent.o): New rule.
8567         * agent.c: New.
8568
8569 2012-03-03  Yao Qi  <yao@codesourcery.com>
8570
8571         * common/agent.c: New.
8572         * common/agent.h: New.
8573         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8574         AC_CHECK_HEADERS.
8575         * configure, configh.in: Regenerated.
8576
8577 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8578
8579         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8580         unless it exists for this architecture.
8581
8582 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8583
8584         * language.h (struct language_defn): New "method" la_read_var_value.
8585         * findvar.c: #include "language.h".
8586         (default_read_var_value): Renames read_var_value.  Rewrite
8587         function description.
8588         (read_var_value): New function.
8589         * value.h (default_read_var_value): Add prototype.
8590         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8591         New functions.
8592         (ada_language_defn): Add entry for la_read_var_value.
8593         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8594         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8595         language_defn structures to add entry for new la_read_var_value
8596         field.
8597
8598 2012-03-02  Tom Tromey  <tromey@redhat.com>
8599             Pedro Alves  <palves@redhat.com>
8600
8601         PR breakpoints/13776:
8602         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8603         breakpoints.
8604         (delete_longjmp_breakpoint_at_next_stop): New.
8605         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8606         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8607         before deleting the inferior.  Add comments.
8608         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8609         breakpoints immediately, but only on next stop.  Move that code
8610         next to where we mark other breakpoints for deletion.
8611
8612 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8613
8614         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8615         marker.
8616         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8617         violation.
8618
8619 2012-03-02  Pedro Alves  <palves@redhat.com>
8620
8621         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8622
8623 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8624
8625         Fix -Wmissing-prototypes build.
8626         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8627         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8628         (gdbsim_has_memory): Likewise.
8629
8630 2012-03-02  Yao Qi  <yao@codesourcery.com>
8631
8632         Fix -Wmissing-prototypes build.
8633         * charset.c (phony_iconv_open): Make static.
8634         (phony_iconv_close, phony_iconv): Likewise.
8635         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8636         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8637         prototype.
8638         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8639         * ser-mingw.c (create_select_thread): Make static.
8640         * windows-termcap.c (tgetent): New prototype.
8641         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8642
8643 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8644
8645         Fix -Wmissing-prototypes build.
8646         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8647         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8648         (_initialize_loadable): New prototypes.
8649
8650 2012-03-02  Doug Evans  <dje@google.com>
8651
8652         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8653         abbrev table, read_comp_unit will do it.
8654
8655 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8656
8657         Fix -Wmissing-prototypes build.
8658         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8659         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8660         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8661         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8662         (_initialize_arm_symbian_tdep): New prototype.
8663         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8664         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8665         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8666         static.
8667         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8668         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8669         prototype.
8670         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8671         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8672         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8673         static.
8674         * moxie-tdep.c (moxie_process_record): Likewise.
8675         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8676         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8677         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8678         (_initialize_rl78_tdep): New prototype.
8679         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8680         (_initialize_rx_tdep): New prototype.
8681         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8682         (_initialize_darwin_solib): New prototype.
8683         * solib-spu.c: Include solib-spu.h.
8684         (_initialize_spu_solib): New prototype.
8685         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8686         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8687         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8688         (tic6x_software_single_step): Make it static.
8689         (_initialize_tic6x_tdep): New prototype.
8690
8691 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8692
8693         Fix -Wmissing-prototypes build.
8694         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8695         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8696
8697 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8698
8699         Fix -Wmissing-prototypes build.
8700         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8701         (frv_have_stopped_data_address): Remove.
8702
8703 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8704
8705         Fix -Wmissing-prototypes build.
8706         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8707         * sh-tdep.c: Include sh64-tdep.h.
8708         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8709         * sh64-tdep.c: Include sh64-tdep.h.
8710         * sh64-tdep.h: New file.
8711
8712 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8713
8714         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8715
8716 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8717
8718         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8719         sp_regnum once the gdbarch_init_osabi hook has been called.
8720
8721 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8722
8723         * mips-tdep.c (mips32_bc1_pc): New function.
8724         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8725         BPOSGE32 and BPOSGE64 instructions.
8726         (deal_with_atomic_sequence): Likewise.
8727         (mips32_instruction_has_delay_slot): Likewise.
8728
8729 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8730             Chris Dearman  <chris@mips.com>
8731             Maciej W. Rozycki  <macro@codesourcery.com>
8732             Joseph Myers  <joseph@codesourcery.com>
8733
8734         * features/mips-dsp.xml: New file.
8735         * features/mips64-dsp.xml: New file.
8736         * features/mips-dsp-linux.xml: New file.
8737         * features/mips64-dsp-linux.xml: New file.
8738         * features/Makefile (WHICH): Add mips-dsp-linux and
8739         mips64-dsp-linux.
8740         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8741         * features/mips-dsp-linux.c: New file.
8742         * features/mips64-dsp-linux.c: New file.
8743         * regformats/mips-dsp-linux.dat: New file.
8744         * regformats/mips64-dsp-linux.dat: New file.
8745         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8746         registers.
8747         (mips64_linux_register_addr): Likewise.
8748         (mips64_linux_regsets_fetch_registers): Likewise.
8749         (mips64_linux_regsets_store_registers): Likewise.
8750         (mips64_linux_fetch_registers): Update call to
8751         mips64_linux_regsets_fetch_registers.
8752         (mips64_linux_store_registers): Update call to
8753         mips64_linux_regsets_store_registers.
8754         (mips_linux_read_description): Probe for DSP registers.
8755         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8756         and initialize_tdesc_mips64_dsp_linux.
8757         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8758         Remove padding of no longer used embedded register slots.
8759         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8760         (MIPS_RESTART_REGNUM): Redefine enum value.
8761         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8762         strings.
8763         (mips_tx39_reg_names): Likewise.
8764         (mips_linux_reg_names): New array of register names for Linux
8765         targets.
8766         (mips_register_name): Check for a null pointer in
8767         mips_processor_reg_names and return an empty string.
8768         (mips_register_type): Exclude embedded registers for the IRIX
8769         and Linux ABIs.
8770         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8771         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8772         DSP registers.
8773         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8774         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8775         (mips_gdbarch_init): Likewise.  Initialize internal register
8776         indices for the Linux ABI.  Use dynamic numbers to refer to
8777         registers, as applicable, while parsing the target description.
8778         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8779
8780 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8781
8782         * frame.h (read_frame_register_unsigned): Fix typo in function
8783         description.
8784
8785 2012-03-01  Pedro Alves  <palves@redhat.com>
8786
8787         * jit-reader.in [!__cplusplus]
8788         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8789
8790 2012-03-01  Pedro Alves  <palves@redhat.com>
8791
8792         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8793         * configure: Regenerate.
8794
8795 2012-03-01  Pedro Alves  <palves@redhat.com>
8796
8797         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8798         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8799         (ftrace_command, strace_command): Make static.
8800         * d-lang.c (_initialize_d_language): Declare.
8801         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8802         * dwarf2loc.c (_initialize_dwarf2loc):
8803         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8804         * exec.c (exec_get_section_table): Make static.
8805         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8806         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8807         * inferior.c (remove_inferior_command, add_inferior_command)
8808         (clone_inferior_command): Make static.
8809         * linux-nat.c (linux_nat_thread_address_space)
8810         (linux_nat_core_of_thread): Make static.
8811         * linux-tdep.c (_initialize_linux_tdep): Declare.
8812         * objc-lang.c (_initialize_objc_lang): Declare.
8813         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8814         Make static.
8815         (_initialize_opencl_language): Declare.
8816         * record.c (_initialize_record): Declare.
8817         * remote.c (demand_private_info, remote_get_tib_address)
8818         (remote_supports_cond_tracepoints)
8819         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8820         Make static.
8821         * skip.c (_initialize_step_skip): Declare.
8822         * symtab.c (skip_prologue_using_lineinfo): Make static.
8823         * tracepoint.c (delete_trace_state_variable)
8824         (trace_variable_command, delete_trace_variable_command)
8825         (get_uploaded_tsv, find_matching_tracepoint_location)
8826         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8827         Make static.
8828         * value.c (pack_unsigned_long): Make static.
8829         * varobj.c (varobj_ensure_python_env): Make static.
8830         * windows-tdep.c (_initialize_windows_tdep): Declare.
8831         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8832
8833 2012-03-01  Pedro Alves  <palves@redhat.com>
8834
8835         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8836         gdbarch parameter.
8837         (linux_init_abi): Install it as has_shared_address_space gdbarch
8838         callback.
8839
8840 2012-03-01  Pedro Alves  <palves@redhat.com>
8841
8842         * observer.c (observer_test_first_notification_function)
8843         (observer_test_second_notification_function)
8844         (observer_test_third_notification_function): Add declarations.
8845
8846 2012-03-01  Pedro Alves  <palves@redhat.com>
8847
8848         * common/signals.c (default_target_signal_to_host)
8849         (default_target_signal_from_host): Move ...
8850         * arch-utils.c: ... here.
8851         * arch-utils.h (default_target_signal_to_host)
8852         (default_target_signal_from_host): Declare.
8853
8854         * common/signals.c (target_signal_from_command): Move ...
8855         * infrun.c: ... here.
8856         * inferior.h (target_signal_from_command): Declare.
8857         * target.h (target_signal_from_command)
8858         (default_target_signal_from_host, default_target_signal_to_host):
8859         Delete declarations.
8860
8861         * common/signals.c (_initialize_signals): Delete.
8862
8863 2012-03-01  Pedro Alves  <palves@redhat.com>
8864
8865         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8866         both __cplusplus and !__cplusplus.
8867
8868 2012-03-01  Pedro Alves  <palves@redhat.com>
8869
8870         * psymtab.c (find_and_open_source): Delete declaration.
8871         * source.c (find_and_open_source): Move comment ...
8872         * source.h (find_and_open_source): ... to this new declaration.
8873
8874 2012-03-01  Pedro Alves  <palves@redhat.com>
8875
8876         * inline-frame.c: Include inline-frame.h.
8877
8878 2012-03-01  Pedro Alves  <palves@redhat.com>
8879
8880         * tui/tui-data.c (set_gen_win_origin): Delete.
8881         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8882         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8883
8884 2012-03-01  Pedro Alves  <palves@redhat.com>
8885
8886         * remote.c (encode_actions): Delete declaration.
8887         * tracepoint.c (encode_actions): Make extern.
8888         * tracepoint.h (encode_actions): Declare.
8889
8890 2012-03-01  Pedro Alves  <palves@redhat.com>
8891
8892         * python/py-breakpoint.c: Include python.h.
8893         * python/py-continueevent.c (create_continue_event_object): Make
8894         static.
8895         * python/py-lazy-string.c (stpy_get_type): Make static.
8896         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8897         Make static.
8898         * python/py-utils.c (unicode_to_target_python_string): Make
8899         static.
8900         * python/py-value.c: Include python.h.
8901
8902 2012-03-01  Pedro Alves  <palves@redhat.com>
8903
8904         * inferior.c (delete_threads_of_inferior): Delete.
8905
8906 2012-03-01  Pedro Alves  <palves@redhat.com>
8907
8908         Import fallback definitions from glibc.
8909
8910         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8911         ps_prochandle): Forward declare.
8912         (ps_err_e): Use glibc's comments.
8913         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8914         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8915         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8916         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8917         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8918         (struct ps_prochandle): Adjust comment.
8919
8920 2012-03-01  Pedro Alves  <palves@redhat.com>
8921
8922         * ada-lang.c (ada_modulus_from_name): Delete.
8923         * ada-lex.l (lexer_init): Make static.
8924
8925 2012-03-01  Pedro Alves  <palves@redhat.com>
8926
8927         PR gdb/13767
8928
8929         * frame.c (read_frame_register_unsigned): New.
8930         * frame.h (read_frame_register_unsigned): Declare.
8931         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8932         Handle it.
8933         (print_i387_control_word): New parameter `control_p'.  Handle it.
8934         (i387_print_float_info): Handle unavailable float registers.
8935
8936 2012-03-01  Keith Seitz  <keiths@redhat.com>
8937
8938         * linespec.c (decode_line_2): Sort the list of methods
8939         alphabetically before presenting the user with a selection
8940         menu.
8941
8942 2012-03-01  Doug Evans  <dje@google.com>
8943
8944         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8945         has_namespace_info.
8946         (dwarf2_read_abbrevs): Remove corresponding initialization.
8947
8948 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
8949
8950         * NEWS: Mention new python command class gdb.COMMAND_USER.
8951         * cli/cli-cmds.c (show_user): Print error when used on a python
8952         command.
8953         (init_cli_cmds): Update documentation strings for "show user" and
8954         "set/show max-user-call-depth" to clarify that it does not apply to
8955         python commands.
8956         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8957         error check.
8958         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8959         gdb python api.
8960         * top.c (execute_command): Only execute a user-defined command as a
8961         legacy macro if c->user_commands is set.
8962
8963 2012-03-01  Tom Tromey  <tromey@redhat.com>
8964
8965         * valprint.h (struct generic_val_print_decorations): New.
8966         (generic_val_print): Declare.
8967         * valprint.c (generic_val_print): New function.
8968         * p-valprint.c (p_decorations): New global.
8969         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8970         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8971         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8972         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8973         * m2-valprint.c (m2_decorations): New global.
8974         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8975         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8976         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8977         TYPE_CODE_ERROR>: Call generic_val_print.
8978         * f-valprint.c (f_decorations): New global.
8979         (f_val_print): Use print_function_pointer_address.
8980         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8981         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8982         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8983         generic_val_print.
8984         * c-valprint.c (c_decorations): New global.
8985         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8986         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8987         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8988         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8989         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8990         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8991         case.
8992
8993 2012-03-01  Tom Tromey  <tromey@redhat.com>
8994
8995         * valprint.c (val_print): Update.
8996         * p-valprint (pascal_val_print): Return void.
8997         * p-lang.h (pascal_val_print): Return void.
8998         * m2-valprint.c (m2_val_print): Return void.
8999         * m2-lang.h (m2_val_print): Return void.
9000         * language.h (struct language_defn) <la_val_print>: Return void.
9001         * language.c (unk_lang_val_print): Return void.
9002         * jv-valprint.c (java_val_print): Return void.
9003         * jv-lang.h (java_val_print): Return void.
9004         * f-valprint.c (f_val_print): Return void.
9005         * f-lang.h (f_val_print): Return void.
9006         * d-valprint.c (d_val_print): Return void.
9007         (dynamic_array_type): Update.
9008         * d-lang.h (d_val_print): Return void.
9009         * c-valprint.c (c_val_print): Return void.
9010         * c-lang.h (c_val_print): Return void.
9011         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9012         void.
9013         * ada-lang.h (ada_val_print): Return void.
9014
9015 2012-03-01  Tom Tromey  <tromey@redhat.com>
9016
9017         * value.h (val_print): Return void.
9018         * valprint.c (val_print): Return void.
9019
9020 2012-03-01  Tom Tromey  <tromey@redhat.com>
9021
9022         * value.h (common_val_print): Return void.
9023         * valprint.c (common_val_print): Return void.
9024
9025 2012-03-01  Tom Tromey  <tromey@redhat.com>
9026
9027         * value.h (value_print): Return void.
9028         * valprint.c (value_print): Return void.
9029         * p-valprint.c (pascal_value_print): Return void.
9030         * p-lang.h (pascal_value_print): Return void.
9031         * language.h (struct language_defn) <la_value_print>: Return
9032         void.
9033         * language.c (unk_lang_value_print): Return void.
9034         * jv-valprint.c (java_value_print): Return void.
9035         * jv-lang.h (java_value_print): Return void.
9036         * f-valprint.c (c_value_print): Don't declare.
9037         Include c-lang.h.
9038         * c-valprint.c (c_value_print): Return void.
9039         * c-lang.h (c_value_print): Return void.
9040         * ada-valprint.c (ada_value_print): Return void.
9041         * ada-lang.h (ada_value_print): Return void.
9042
9043 2012-03-01  Tom Tromey  <tromey@redhat.com>
9044
9045         * value.c (value_primitive_field): Handle virtual base classes.
9046
9047 2012-03-01  Tom Tromey  <tromey@redhat.com>
9048
9049         * gdbtypes.h (struct vbase): Remove.
9050
9051 2012-03-01  Tom Tromey  <tromey@redhat.com>
9052
9053         * c-valprint.c (print_function_pointer_address): Move...
9054         * valprint.c: ... here.  Make non-static.
9055         * m2-valprint.c (print_function_pointer_address): Remove.
9056         * valprint.h (print_function_pointer_address): Declare.
9057
9058 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9059
9060         * NEWS: Document the fact that one can provide a condition when
9061         creating an Ada exception catchpoint.
9062
9063 2012-03-01  Tom Tromey  <tromey@redhat.com>
9064
9065         * valprint.c (val_print_type_code_flags): Fix placement of
9066         trailing brace.
9067
9068 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9069
9070         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9071         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9072         environment variable before calling update-copyright.
9073
9074 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9075
9076         * gnulib/extra/update-copyright: Update to the latest from
9077         gnulib's git repository.
9078         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9079         variable to 2 instead of 1.
9080
9081 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9082
9083         * varobj.c (c_value_of_variable): Remove dead code.
9084
9085 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9086
9087         * ada-lex.p (processId): Do not modify already encoded IDs.
9088         Update function documentation.
9089
9090 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9091
9092         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9093         "name" with "struct symbol *name_sym".
9094         * ada-exp.y (write_var_or_type): Update call to
9095         ada_find_renaming_symbol.
9096         "name" with "struct symbol *name_sym". Adjust Implementation
9097         accordingly.  Adjust the function documentation.
9098
9099 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9100
9101         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9102         * ada-lang.c (ada_find_any_type): Add advance declaration.
9103         Make static.  Replace ada_find_any_symbol by
9104         ada_find_any_type_symbol.
9105         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9106         Improve function description.  Make static.
9107         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9108         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9109
9110 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9111
9112         * ada-lang.c (struct tag_args): Delete.
9113         (ada_get_tsd_type): Function body moved up in source file.
9114         (ada_tag_name_1, ada_tag_name_2): Delete.
9115         (ada_get_tsd_from_tag): New function.
9116         (ada_tag_name_from_tsd): New function.
9117         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9118         to determine the tag name.
9119
9120 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9121
9122         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9123         declaration.
9124         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9125         function.
9126
9127 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9128
9129         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9130
9131 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9132
9133         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9134         full searches.
9135
9136 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9137
9138         * ada-lang.c (constrained_packed_array_type): If there is a
9139         parallel XA type, use it to determine the array index type.
9140
9141 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9142
9143         * ada-valprint.c (ada_val_print_1): If our value is a reference
9144         to an array descriptor, dereference it before converting it
9145         to a simple array.
9146
9147 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9148
9149         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9150         creating fixed value.
9151         (ada_value_ind, ada_coerce_ref, assign_component)
9152         (ada_evaluate_subexp): Remove call to unwrap_value before
9153         call to ada_to_fixed_value.
9154
9155 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9156
9157         * ada-lang.c (to_fixed_array_type): Set result's type name.
9158
9159 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9160
9161         * ada-lang.c (catch_ada_exception_command_split): Add new
9162         argument cond_string.  Add support for condition at end of
9163         "catch exception" commands.
9164         (ada_decode_exception_location): Add new argument cond_string.
9165         Update call to catch_ada_exception_command_split.
9166         (create_ada_exception_catchpoint): Add new argument cond_string.
9167         Set the breakpoint condition if needed.
9168         (catch_ada_exception_command): Update call to
9169         ada_decode_exception_location.
9170         (ada_decode_assert_location): Add function documentation.
9171         Add support for condition at end of "catch assert" command.
9172         (catch_assert_command): Update calls to ada_decode_assert_location
9173         and create_ada_exception_catchpoint.
9174
9175 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9176
9177         Fix disp-step-syscall.exp: fork: single step over fork.
9178         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9179         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9180         comment, change parameters gdbarch and ptid to regcache.  Remove
9181         parameter regcache, initialize gdbarch from regcache here.
9182         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9183         New functions.
9184         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9185         instead.
9186         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9187         'syscall'.  Make the 'int' check more strict.
9188
9189 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9190
9191         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9192         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9193         (i386_linux_intx80_sysenter_syscall_record): ... here.
9194         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9195         Use the renamed function name.
9196
9197 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9198
9199         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9200         * breakpoint.c (until_break_command): Likewise.
9201         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9202         * infcall.c (call_function_by_hand): Likewise.
9203         * infcmd.c (finish_forward): Likewise.
9204         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9205
9206 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9207
9208         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9209         avoid variable assignments inside condition.
9210
9211 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9212
9213         Fix static analysis issue found by cppcheck.
9214         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9215         uninitialized BUF for size 2.
9216
9217 2012-02-27  Chris Dearman  <chris@mips.com>
9218             Nathan Froyd  <froydnj@codesourcery.com>
9219             Maciej W. Rozycki  <macro@codesourcery.com>
9220
9221         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9222         (mips16_instruction_has_delay_slot): Likewise.
9223         (mips_segment_boundary): Likewise.
9224         (mips_adjust_breakpoint_address): Likewise.
9225         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9226
9227 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9228             Maciej W. Rozycki  <macro@codesourcery.com>
9229
9230         * infrun.c (handle_inferior_event): Don't proceed through
9231         shared library trampolines if stepping at the machine
9232         instruction level.
9233
9234 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9235
9236         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9237         too.
9238
9239 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9240
9241         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9242         (sh_stub_unwind_sniffer): New functions.
9243         (sh_stub_unwind): New variable.
9244         (sh_gdbarch_init): Wire everything.
9245
9246 2012-02-27  Pedro Alves  <palves@redhat.com>
9247
9248         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9249         (linux_nat_post_attach_wait): Adjust to use
9250         linux_proc_pid_is_stopped.
9251         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9252         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9253         based on pid_is_stopped from both linux-nat.c and
9254         gdbserver/linux-low.c, and renamed.
9255
9256 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9257
9258         * remote.c (remote_watchpoint_addr_within_range): New function.
9259         (init_remote_ops): Use it.
9260
9261 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9262
9263         * target.h (target_watchpoint_addr_within_range): Document macro.
9264
9265 2012-02-24  Pedro Alves  <palves@redhat.com>
9266
9267         * stack.c (set_last_displayed_sal): Issue internal_error instead
9268         of warning, and issue it after clearing the last displayed sal.
9269
9270 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9271             Pedro Alves  <palves@redhat.com>
9272
9273         * breakpoint.c (until_break_command): Install breakpoints after
9274         all frame manipulations.
9275
9276 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9277
9278         * remote.c (remote_supports_cond_breakpoints): New forward
9279         declaration.
9280         (remote_add_target_side_condition): New function.
9281         (remote_insert_breakpoint): Add target-side breakpoint
9282         conditional if supported.
9283         (remote_insert_hw_breakpoint): Likewise.
9284         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9285         hook.
9286
9287         * target.c (update_current_target): Inherit
9288         to_supports_evaluation_of_breakpoint_conditions.
9289         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9290
9291         * target.h (struct target_ops)
9292         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9293         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9294
9295         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9296         (condition_evaluation_both, condition_evaluation_auto,
9297         condition_evaluation_host, condition_evaluation_target,
9298         condition_evaluation_enums, condition_evaluation_mode_1,
9299         condition_evaluation_mode): New static globals.
9300         (translate_condition_evaluation_mode): New function.
9301         (breakpoint_condition_evaluation_mode): New function.
9302         (gdb_evaluates_breakpoint_condition_p): New function.
9303         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9304         (mark_breakpoint_modified): New function.
9305         (mark_breakpoint_location_modified): New function.
9306         (set_condition_evaluation_mode): New function.
9307         (show_condition_evaluation_mode): New function.
9308         (bp_location_compare_addrs): New function.
9309         (get_first_location_gte_addr): New helper function.
9310         (set_breakpoint_condition): Free condition bytecode if locations
9311         has become unconditional.  Call mark_breakpoint_modified (...).
9312         (condition_command): Call update_global_location_list (1) for
9313         breakpoints.
9314         (breakpoint_xfer_memory): Use is_breakpoint (...).
9315         (is_breakpoint): New function.
9316         (parse_cond_to_aexpr): New function.
9317         (build_target_condition_list): New function.
9318         (insert_bp_location): Handle target-side conditional
9319         breakpoints and call build_target_condition_list (...).
9320         (update_inserted_breakpoint_locations): New function.
9321         (insert_breakpoint_locations): Handle target-side conditional
9322         breakpoints.
9323         (bpstat_check_breakpoint_conditions): Add comment.
9324         (bp_condition_evaluator): New function.
9325         (bp_location_condition_evaluator): New function.
9326         (print_breakpoint_location): Print information on where the condition
9327         will be evaluated.
9328         (print_one_breakpoint_location): Likewise.
9329         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9330         breakpoint location.
9331         (force_breakpoint_reinsertion): New functions.
9332         (update_global_location_list): Handle target-side breakpoint
9333         conditions.
9334         Reinsert locations that are already inserted if conditions have
9335         changed.
9336         (bp_location_dtor): Free agent expression bytecode.
9337         (disable_breakpoint): Call mark_breakpoint_modified (...).
9338         Call update_global_location_list (...) with parameter 1 for breakpoints.
9339         (disable_command): Call mark_breakpoint_location_modified (...).
9340         Call update_global_location_list (...) with parameter 1 for breakpoints.
9341         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9342         (enable_command): mark_breakpoint_location_modified (...).
9343         (_initialize_breakpoint): Update documentation and add
9344         condition-evaluation breakpoint subcommand.
9345
9346         * breakpoint.h: Include ax.h.
9347         (condition_list): New data structure.
9348         (condition_status): New enum.
9349         (bp_target_info) <cond_list>: New field.
9350         (bp_location) <condition_changed, cond_bytecode>: New fields.
9351         (is_breakpoint): New prototype.
9352
9353 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9354
9355         * remote.c (remote_state) <cond_breakpoints>: New field.
9356         (PACKET_ConditionalBreakpoints): New enum.
9357         (remote_cond_breakpoint_feature): New function.
9358         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9359         (remote_supports_cond_breakpoints): New function.
9360         (_initialize_remote): Add new packet configuration for
9361         target-side conditional breakpoints.
9362
9363 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9364
9365         * NEWS: Mention target-side conditional breakpoint support,
9366         new condition-evaluation breakpoint subcommand and remote
9367         packet extensions.
9368
9369 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9370
9371         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9372         number.
9373
9374 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9375
9376         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9377         (after_prologue): Remove.
9378
9379 2012-02-23  Tom Tromey  <tromey@redhat.com>
9380
9381         * jv-valprint.c (java_val_print): Remove dead code.
9382
9383 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9384
9385         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9386         known_tasks_element and known_tasks_length fields.
9387         (read_known_tasks_array): Change argument type.  Use pointer type
9388         and number of elements from DATA.  Adjust.
9389         (read_known_tasks_list): Likewise.
9390         (get_known_tasks_addr): Remove.
9391         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9392         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9393         type and array length.  Merge former get_known_tasks_addr code.
9394
9395 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9396
9397         PR backtrace/13716
9398         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9399         it after set_momentary_breakpoint.
9400
9401 2012-02-22  Sterling Augustine  <saugustine@google.com>
9402
9403         PR 13689:
9404         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9405
9406 2012-02-22  Gary Benson  <gbenson@redhat.com>
9407
9408         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9409         (find_slot_in_mapped_hash): Likewise.
9410
9411 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9412
9413         PR build/13638
9414         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9415         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9416         * configure: Regenerate.
9417
9418 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9419             Pedro Alves  <palves@redhat.com>
9420
9421         * ia64-tdep.c: Do not include libunwind-ia64.h.
9422         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9423         Include libunwind-ia64.h instead of libunwind.h.
9424         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9425         for libunwind.h existence.
9426         * configure, config.in: Regenerate.
9427
9428 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9429
9430         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9431         instead of value_rtti_target_type.
9432         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9433         instead of value_rtti_target_type.
9434         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9435         value_rtti_target_type.
9436         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9437         (value_rtti_target_type): Rename to ...
9438         (value_rtti_indirect_type): ... here and make it indirect.  Update
9439         function comment.
9440         * value.c (readjust_indirect_value_type): New function.
9441         (coerce_ref): Support for enclosing type setting for references
9442         with readjust_indirect_value_type.
9443         * value.h (readjust_value_type): New declaration.
9444         (value_rtti_target_type): Rename to ...
9445         (value_rtti_indirect_type): ... here.
9446
9447 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9448
9449         * MAINTAINERS (Write After Approval): Add myself to the list.
9450
9451 2012-02-20  Doug Evans  <dje@google.com>
9452
9453         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9454         Rename objfile_p_char parameter to objfilep.
9455         (build_objfile_section_table): Result is now void.  All callers
9456         updated.
9457         * objfiles.h (struct objfile): Tweak comments, whitespace.
9458         (build_objfile_section_table): Update.
9459
9460         * elfread.c (elf_symfile_segments): Fix warning text.
9461
9462 2012-02-20  Tom Tromey  <tromey@redhat.com>
9463
9464         PR gdb/13498:
9465         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9466         particular set of file names once.
9467         (dw2_map_symbol_filenames): Likewise.
9468
9469 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9470
9471         Code cleanup.
9472         * main.c (write_files): Remove the declaration.
9473         (external_editor_command): Move the declaration ...
9474         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9475
9476 2012-02-20  Tom Tromey  <tromey@redhat.com>
9477
9478         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9479         extraneous block.
9480
9481 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9482
9483         * darwin-nat.h (enum darwin_msg_state): Add comments.
9484
9485 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9486
9487         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9488         value.
9489
9490 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9491
9492         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9493         between function description and implementation.
9494
9495 2012-02-17  Tom Tromey  <tromey@redhat.com>
9496
9497         PR python/12070:
9498         * python/py-event.c (event_object_getset): New global.
9499         (event_object_type): Reference it.
9500         * python/py-type.c (field_object_getset): New global.
9501         (field_object_type): Reference it.
9502         * python/python-internal.h (gdb_py_generic_dict): Declare.
9503         * python/py-utils.c (gdb_py_generic_dict): New function.
9504
9505 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9506
9507         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9508
9509 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9510
9511         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9512         TYPE_CALLING_CONVENTION annotation.
9513
9514 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9515
9516         * MAINTAINERS: Add rx to target ISA section.
9517         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9518         (ALLDEPFILES): Add rx-tdep.c.
9519
9520 2012-02-16  Tom Tromey  <tromey@redhat.com>
9521
9522         * symfile.c (symbol_file_add_main_1): Use inferior's
9523         symfile_flags.
9524         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9525         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9526         inferior.
9527         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9528         inferior.
9529         (follow_exec): Use inferior's symfile_flags.
9530         * inferior.h (struct inferior) <symfile_flags>: New field.
9531
9532 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9533
9534         PR gdb/9734:
9535         * remote-sim.c (gdbsim_create_inferior): Call error() when
9536         sim_create_inferior() fails.
9537
9538 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9539
9540         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9541
9542 2012-02-16  Tom Tromey  <tromey@redhat.com>
9543
9544         PR c++/13653:
9545         * thread.c (struct current_thread_cleanup) <was_removable>: New
9546         field.
9547         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9548         (make_cleanup_restore_current_thread): Initialize new field.
9549
9550 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9551
9552         * MAINTAINERS: Add rl78 to target ISA section.
9553         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9554         (ALLDEPFILES): Add rl78-tdep.c.
9555         * NEWS: Mention rl78 as a new target.
9556
9557 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9558
9559         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9560         data.
9561         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9562
9563 2012-02-15  Tom Tromey  <tromey@redhat.com>
9564
9565         PR gdb/12659:
9566         * infcmd.c (registers_info): Print just the current register's
9567         name.
9568
9569 2012-02-15  Tom Tromey  <tromey@redhat.com>
9570
9571         * python/py-symbol.c (sympy_value): Use _().
9572
9573 2012-02-15  Pedro Alves  <palves@redhat.com>
9574
9575         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9576         output to be like native targets'.
9577         (remote_pid_to_str): Special case the null ptid.
9578
9579 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9580
9581         * NEWS: Mention enable count command.
9582         * breakpoint.h (struct breakpoint): New field enable_count.
9583         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9584         (enable_breakpoint): Add arg to call.
9585         (struct disp_data): New struct.
9586         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9587         (do_map_enable_once_breakpoint): Create a struct and pass it.
9588         (do_map_enable_delete_breakpoint): Ditto.
9589         (do_map_enable_count_breakpoint): New function.
9590         (enable_count_command): New function.
9591         (bpstat_stop_status): Decrement enable_count.
9592         (print_one_breakpoint_location): Report enable count.
9593         (_initialize_breakpoint): Add enable count command.
9594
9595 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9596
9597         * rl78-tdep.c (reggroups.h): Include.
9598         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9599         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9600         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9601         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9602         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9603         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9604         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9605         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9606         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9607         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9608         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9609         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9610         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9611         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9612         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9613         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9614         beginning of register list.
9615         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9616         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9617         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9618         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9619         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9620         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9621         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9622         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9623         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9624         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9625         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9626         the pseudo registers.  Rearrange other pseudo registers too so
9627         that the bank registers appear at the end.
9628         (rl78_register_type): Account for the fact that the byte sized
9629         bank registers are now pseudo-registers.
9630         (rl78_register_name): Rearrange the register name array.  Make
9631         initial set of raw banked registers inaccessible.
9632         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9633         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9634         case for copying bytes back and forth between raw and pseudo
9635         versions of the banked registers.  Update other cases to reflect
9636         the changed names.
9637         (rl78_return_value): Update to account for changed names of
9638         raw registers.
9639         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9640         rl78_register_sim_regno().
9641
9642 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9643
9644         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9645         the name parameter being passed to find_pc_partial_function().
9646
9647 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9648
9649         * MAINTAINERS: Step down from being ia64 target maintainer.
9650
9651 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9652
9653         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9654         compilation warning.
9655
9656 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9657
9658         Fix crash on loaded shlibs without loaded exec_bfd.
9659         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9660         (set_section_command): Replace exec_bfd by p->bfd.
9661
9662 2012-02-10  Tom Tromey  <tromey@redhat.com>
9663
9664         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9665         when we have a C++ qualified name.
9666
9667 2012-02-10  Pedro Alves  <palves@redhat.com>
9668
9669         * inferior.c (inferior_pid_to_str): New.
9670         (print_inferior, inferior_command): Use it.
9671
9672 2012-02-10  Pedro Alves  <palves@redhat.com>
9673
9674         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9675         the test CFLAGS.
9676         * configure: Regenerate.
9677
9678 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9679
9680         * linespec.c (decode_line_internal): Fix comment correctness.
9681
9682 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9683
9684         PR gdb/12953
9685         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9686         * amd64bsd-nat.c: Add support for debug registers (adapted from
9687         i386bsd-nat.c).
9688         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9689         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9690         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9691         (amd64bsd_dr_get_control): New functions.
9692         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9693         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9694         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9695         watchpoints initialization.
9696         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9697
9698 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9699
9700         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9701         flds_bnds.fields.
9702         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9703
9704 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9705
9706         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9707
9708 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9709
9710         * language.h (symbol_name_cmp_ftype): Renames
9711         symbol_name_match_p_ftype.
9712         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9713         la_get_symbol_name_match_p.
9714         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9715         ada_get_symbol_name_match_p.  Update comment.
9716         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9717         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9718         Renames symbol_name_match_p.  Update field type.
9719         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9720         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9721         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9722         "la_get_symbol_name_cmp" in comments.
9723         * language.c: Likewise.
9724
9725 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9726
9727         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9728         %eflags offset.
9729         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9730         (amd64_sol2_gregset32_reg_offs): Likewise.
9731
9732 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9733
9734         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9735         of the returned BFD is allocated by GDB.
9736
9737 2012-02-07  Tom Tromey  <tromey@redhat.com>
9738
9739         PR python/12027:
9740         * python/python-internal.h (frame_object_type): Declare.
9741         * python/py-symbol.c (sympy_needs_frame): New function.
9742         (sympy_value): New function.
9743         (symbol_object_getset): Add "needs_frame".
9744         (symbol_object_methods): Add "value".
9745         * python/py-frame.c (frame_object_type): No longer static.
9746
9747 2012-02-07  Tom Tromey  <tromey@redhat.com>
9748
9749         PR python/13599:
9750         * python/py-symbol.c (sympy_line): New function.
9751         (symbol_object_getset): Add "line".
9752
9753 2012-02-07  Tom Tromey  <tromey@redhat.com>
9754
9755         * charset.c (find_charset_names): Check 'in' against NULL.
9756
9757 2012-02-06  Doug Evans  <dje@google.com>
9758
9759         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9760         and fields.name members from char * to const char *.  All uses updated.
9761         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9762         from char * to const char *.  All uses updated.
9763         (type_name_no_tag): Update.
9764         (lookup_unsigned_typename, lookup_signed_typename): Update.
9765         * gdbtypes.c (type_name_no_tag): Change result type
9766         from char * to const char *.  All callers updated.
9767         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9768         name parameter from char * to const char *.
9769         * symtab.h (struct cplus_specific): Change type of demangled_name
9770         member from char * to const char *.  All uses updated.
9771         (struct general_symbol_info): Change type of name and
9772         mangled_lang.demangled_name members from char * to const char *.
9773         All uses updated.
9774         (symbol_get_demangled_name, symbol_natural_name): Update.
9775         (symbol_demangled_name, symbol_search_name): Update.
9776         * symtab.c (symbol_get_demangled_name): Change result type
9777         from char * to const char *.  All callers updated.
9778         (symbol_natural_name, symbol_demangled_name): Ditto.
9779         (symbol_search_name): Ditto.
9780         (completion_list_add_name): Change type of symname,sym_text,
9781         text,word parameters from char * to const char *.
9782         (completion_list_objc_symbol): Change type of sym_text,
9783         text,word parameters from char * to const char *.
9784         * ada-lang.c (find_struct_field): Change type of name parameter
9785         from char * to const char *.
9786         (encoded_ordered_before): Similarly for N0,N1 parameters.
9787         (old_renaming_is_invisible): Similarly for function_name parameter.
9788         (ada_type_name): Change result type from char * to const char *.
9789         All callers updated.
9790         * ada-lang.h (ada_type_name): Update.
9791         * buildsym.c (hashname): Change type of name parameter
9792         from char * to const char *.
9793         * buildsym.h (hashname): Update.
9794         * dbxread.c (end_psymtab): Change type of include_list parameter
9795         from char ** to const char **.
9796         * dwarf2read.c (determine_prefix): Change result type
9797         from char * to const char *.  All callers updated.
9798         * f-lang.c (find_common_for_function): Change type of name, funcname
9799         parameters from char * to const char *.
9800         * f-lang.c (find_common_for_function): Update.
9801         * f-valprint.c (list_all_visible_commons): Change type of funcname
9802         parameters from char * to const char *.
9803         * gdbarch.sh (static_transform_name): Change type of name parameter
9804         and result from char * to const char *.
9805         * gdbarch.c: Regenerate.
9806         * gdbarch.h: Regenerate.
9807         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9808         of name parameter from char * to const char *.
9809         * jv-lang.c (java_primitive_type_from_name): Ditto.
9810         (java_demangled_signature_length): Similarly for signature parameter.
9811         (java_demangled_signature_copy): Ditto.
9812         (java_demangle_type_signature): Ditto.
9813         * jv-lang.h (java_primitive_type_from_name): Update.
9814         (java_demangle_type_signature): Update.
9815         * objc-lang.c (specialcmp): Change type of a,b parameters
9816         from char * to const char *.
9817         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9818         from char * to const char *.  All callers updated.
9819         * p-lang.h (is_pascal_string_type): Update.
9820         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9821         of name parameter from char * to const char *.
9822         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9823         * utils.c (fprintf_symbol_filtered): Ditto.
9824         * defs.h (fprintf_symbol_filtered): Update.
9825         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9826         * stabsread.h (end_psymtab): Update.
9827         * stack.c (find_frame_funname): Change type of funname parameter
9828         from char ** to const char **.
9829         * stack.h (find_frame_funname): Update.
9830         * typeprint.c (type_print): Change type of varstring parameter
9831         from char * to const char *.
9832         * value.h (type_print): Update.
9833         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9834         from char * to const char *.  All callers updated.
9835         (xcoff_end_psymtab): Change type of include_list parameter
9836         from char ** to const char **.  All callers updated.
9837         (swap_sym): Similarly for name parameter.  All callers updated.
9838         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9839         Use xstrdup.
9840         (process_coff_symbol): Use xstrdup.
9841         * stabsread.c (stabs_method_name_from_physname): Renamed from
9842         update_method_name_from_physname.  Change result type from void
9843         to char *.  All callers updated.
9844         (read_member_functions): In has_destructor case, store name in objfile
9845         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9846
9847 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9848
9849         * configure: Rebuild.
9850         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9851         LDFLAGS.
9852
9853 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9854
9855         * configure.tgt (rl78-*-elf): New target.
9856         * rl78-tdep.c: New file.
9857
9858 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9859
9860         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9861         and continue the loop.  Add QUIT statement.
9862
9863 2012-02-03  Tom Tromey  <tromey@redhat.com>
9864
9865         PR gdb/13596:
9866         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9867         bfd_lookup_symbol_from_symtab.
9868         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9869         gdb_bfd_lookup_symbol_from_symtab.
9870
9871 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9872
9873         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9874         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9875         symbol.  Add assertion that sym2 is never NULL.
9876
9877 2012-02-02  Doug Evans  <dje@google.com>
9878
9879         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9880         "name" parameter to const char ** from char **.  All callers updated.
9881         (find_pc_partial_function): Ditto.
9882         (cache_pc_function_name): Change type to const char * from char *.
9883         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9884         (find_pc_partial_function): Update.
9885         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9886         type of "name" parameter to const char * from char *.
9887         All uses updated.
9888         * arch-utils.c (generic_in_solib_return_trampoline): Change
9889         type of "name" parameter to const char * from char *.
9890         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9891         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9892         type of "name" parameter to const char * from char *.
9893         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9894         * gdbarch.c: Regenerate.
9895         * gdbarch.h: Regenerate.
9896         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9897         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9898         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9899         type of "name" parameter to const char * from char *.
9900         * skip.c (skip_function_pc): Ditto.
9901         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9902         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9903         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9904         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9905         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9906         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9907         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9908         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9909         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9910
9911 2012-02-02  Pedro Alves  <palves@redhat.com>
9912
9913         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9914         the current inferior has no execution.  Make sure the current
9915         remote process matches gdb's current inferior.
9916
9917 2012-02-02  Tom Tromey  <tromey@redhat.com>
9918
9919         PR gdb/13405:
9920         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9921         read-only memory.
9922
9923 2012-02-02  Tom Tromey  <tromey@redhat.com>
9924
9925         PR gdb/9307:
9926         * symtab.c (lookup_language_this): Set block_found.
9927
9928 2012-02-01  Tom Tromey  <tromey@redhat.com>
9929
9930         PR gdb/13431:
9931         * jit.c (struct jit_inferior_data): Rewrite.
9932         (struct jit_objfile_data): New.
9933         (get_jit_objfile_data): New function.
9934         (add_objfile_entry): Update.
9935         (jit_read_descriptor): Return int.  Replace descriptor_addr
9936         argument with inf_data.  Update.  Don't call error.
9937         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9938         descriptor here.
9939         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9940         (jit_reset_inferior_data_and_breakpoints)
9941         (jit_inferior_created_observer): Remove.
9942         (jit_inferior_exit_hook): Update.
9943         (jit_executable_changed_observer): Remove.
9944         (jit_event_handler): Update.
9945         (free_objfile_data): Reset inferior data if needed.
9946         (_initialize_jit): Update.
9947
9948 2012-02-01  Tom Tromey  <tromey@redhat.com>
9949
9950         * jit.c (bfd_open_from_target_memory): Move higher in file.
9951
9952 2012-02-01  Tristan Gingold  <gingold@adacore.com>
9953
9954         * libunwind-frame.c (libunwind_load): Display message if dlopen
9955         failed.
9956
9957 2012-02-01  Gary Benson  <gbenson@redhat.com>
9958
9959         * symtab.h (symbol_found_callback_ftype): New typedef.
9960         (iterate_over_symbols): Use the above.
9961         * symtab.c (iterate_over_symbols): Likewise.
9962         * language.h (language_defn->la_iterate_over_symbols): Likewise.
9963         * ada-lang.c (ada_iterate_over_symbols): Likewise.
9964         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9965         (iterate_name_matcher): Document return values.
9966         (collect_one_symbol): Likewise.
9967         (collect_function_symbols): Likewise.
9968         (collect_symbols): Likewise.
9969
9970 2012-02-01  Tom Tromey  <tromey@redhat.com>
9971
9972         * ada-lang.c (resolve_subexp): Update.
9973         (ada_lookup_symbol_list): Add 'full_search' argument.
9974         (ada_iterate_over_symbols): Pass 0 as full_search argument to
9975         ada_lookup_symbol_list.
9976         (ada_lookup_encoded_symbol): Update.
9977         (get_var_value): Update.
9978         * ada-exp.y (block_lookup): Update.
9979         (write_var_or_type): Update.
9980         (write_name_assoc): Update.
9981         * ada-lang.h (ada_lookup_symbol_list): Update.
9982
9983 2012-01-31  Tom Tromey  <tromey@redhat.com>
9984
9985         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9986         comment.
9987
9988 2012-01-31  Doug Evans  <dje@google.com>
9989
9990         * symtab.h: Remove outdated comment.
9991         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9992
9993 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9994
9995         Fix build error in Darwin port.
9996         * i386-darwin-nat.c: Include i386-nat.h.
9997
9998 2012-01-30  Tom Tromey  <tromey@redhat.com>
9999
10000         PR breakpoints/13568:
10001         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10002         argument.  Check for recursive includes.
10003         (dwarf_decode_macros): Create an include hash.
10004
10005 2012-01-30  Michael Eager  <eager@eagercon.com>
10006
10007         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10008         * ppc-linux-tdep.c: Include glibc-tdep.h.
10009         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10010         (powerpc_linux_in_plt_stub): New function.
10011         (powerpc_linux_in_dynsym_resolve_code): New function.
10012         (ppc_skip_trampoline_code): New function.
10013         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10014         Use glibc_skip_solib_resolver.
10015
10016 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10017
10018         Code cleanup: Make 1440 bytes of data segment read-only.
10019         * arch-utils.c (endian_enum): Make it const char *const [].
10020         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10021         Likewise.
10022         * breakpoint.c (always_inserted_enums): Likewise.
10023         * cli/cli-cmds.c (script_ext_enums): Likewise.
10024         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10025         enumlist parameter const char *const *.
10026         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10027         const char *const *.
10028         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10029         parameter const char *const *.
10030         * cris-tdep.c (cris_modes): Make it const char *const [].
10031         * filesystem.c (target_file_system_kinds): Likewise.
10032         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10033         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10034         (can_use_displaced_stepping_enum, scheduler_enums)
10035         (exec_direction_names): Likewise.
10036         * language.c (_initialize_language): Make the type_or_range_names and
10037         case_sensitive_names variables const char *const [].
10038         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10039         * python/python.c (python_excp_enums): Likewise.
10040         * remote.c (interrupt_sequence_modes): Likewise.
10041         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10042         * serial.c (logbase_enums): Likewise.
10043         * sh-tdep.c (sh_cc_enum): Likewise.
10044         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10045         Likewise.
10046         * symtab.c (multiple_symbols_modes): Likewise.
10047         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10048         Likewise.
10049         * utils.c (internal_problem_modes): Likewise.
10050
10051 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10052
10053         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10054         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10055         result.
10056
10057 2012-01-27  Doug Evans  <dje@google.com>
10058
10059         * configure.ac (with_python): Fix absolute path handling for win32.
10060         * configure: Regenerate.
10061
10062 2012-01-26  Doug Evans  <dje@google.com>
10063
10064         * symtab.c: Whitespace cleanup, no code changes.
10065
10066         * symtab.c (lookup_symbol_in_language): Improve comment.
10067         (lookup_symbol_aux): Fix comment.
10068
10069         * psymtab.c (add_psymbol_to_list): Result is now "void".
10070         * psympriv.h (add_psymbol_to_list): Update.
10071
10072         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10073
10074 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10075
10076         Do not open script filenames twice.
10077         * cli/cli-cmds.c (source_script_from_stream): Pass to
10078         source_python_script also STREAM.
10079         * python/py-auto-load.c (source_section_scripts): Pass to
10080         source_python_script_for_objfile also STREAM.
10081         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10082         also INPUT.
10083         * python/python-internal.h (source_python_script_for_objfile): New
10084         parameter file, rename parameter file to filename.
10085         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10086         instead if !_WIN32.  Update the function comment.
10087         (source_python_script, source_python_script_for_objfile)
10088         (source_python_script): New parameter file, rename parameter file to
10089         filename.  Pass FILENAME to python_run_simple_file.
10090         * python/python.h (source_python_script): New parameter file, rename
10091         parameter file to filename.
10092
10093 2012-01-26  Pedro Alves  <palves@redhat.com>
10094
10095         * corelow.c (core_has_fake_pid): Delete.
10096         (core_close): Delete references to `core_has_fake_pid'.
10097         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10098         (core_open): Delete references to `core_has_fake_pid'.
10099         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10100         the removed global.
10101
10102 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10103
10104         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10105         Remove language parameter from name_matcher.  Adjust the comment.
10106         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10107         Remove language parameter.
10108         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10109         * linespec.c (iterate_name_matcher): Likewise.
10110         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10111         name_matcher.  Adjust call accordingly.
10112         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10113         (maintenance_check_symtabs): Adjust type of parameter "fun".
10114         * psymtab.h (maintenance_check_symtabs): Likewise.
10115
10116 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10117
10118         * language.h (symbol_name_match_p_ftype): New typedef.
10119         (struct language_defn): Replace field la_symbol_name_compare
10120         by la_get_symbol_name_match_p.
10121         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10122         (ada_language_defn): Use it.
10123         * linespec.c (struct symbol_matcher_data): New type.
10124         (iterate_name_matcher): Rewrite.
10125         (iterate_over_all_matching_symtabs): Pass a pointer to
10126         a symbol_matcher_data struct to expand_symtabs_matching
10127         instead of just the lookup name.
10128         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10129         opencl-lang.c, p-lang.c, language.c: Delete field
10130         la_symbol_name_compare, and replace by NULL for new field
10131         la_get_symbol_name_match_p.
10132         * symfile.h (struct quick_symbol_functions): Update comment.
10133
10134 2012-01-25  Tom Tromey  <tromey@redhat.com>
10135
10136         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10137         dereferencing.
10138
10139 2012-01-24  Tom Tromey  <tromey@redhat.com>
10140
10141         PR symtab/12406:
10142         * solib.c (update_solib_list): Update the program space's
10143         added_solibs and deleted_solibs fields.
10144         * progspace.h (struct program_space) <added_solibs,
10145         deleted_solibs>: New fields.
10146         (clear_program_space_solib_cache): Declare.
10147         * progspace.c (release_program_space): Call
10148         clear_program_space_solib_cache.
10149         (clear_program_space_solib_cache): New function.
10150         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10151         bpstat_stop_status.  Use handle_solib_event.
10152         * breakpoint.c: Include gdb_regex.h.
10153         (print_solib_event): New function.
10154         (bpstat_print): Use print_solib_event.
10155         (bpstat_stop_status): Add special case for bp_shlib_event.
10156         (handle_solib_event): New function.
10157         (bpstat_what): Use handle_solib_event.
10158         (struct solib_catchpoint): New.
10159         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10160         (breakpoint_hit_catch_solib, check_status_catch_solib)
10161         (print_it_catch_solib, print_one_catch_solib)
10162         (print_mention_catch_solib, print_recreate_catch_solib): New
10163         functions.
10164         (catch_solib_breakpoint_ops): New global.
10165         (catch_load_or_unload, catch_load_command_1)
10166         (catch_unload_command_1): New functions.
10167         (internal_bkpt_check_status): Add special case for
10168         bp_shlib_event.
10169         (internal_bkpt_print_it): Use print_solib_event.
10170         (initialize_breakpoint_ops): Initialize
10171         catch_solib_breakpoint_ops.
10172         (_initialize_breakpoint): Register "catch load" and "catch
10173         unload".
10174         * breakpoint.h (handle_solib_event): Declare.
10175         * NEWS: Add entry for "catch load" and "catch unload".
10176
10177 2012-01-24  Tom Tromey  <tromey@redhat.com>
10178
10179         * ada-lang.c: Include gdb_vecs.h.
10180         * charset.c: Include gdb_vecs.h.
10181         * tracepoint.h: Include gdb_vecs.h.
10182         * gdb_vecs.h: New file.
10183
10184 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10185
10186         * breakpoint.c (breakpoint_hit_catch_fork)
10187         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10188         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10189         * infrun.c (inferior_has_forked, inferior_has_vforked)
10190         (inferior_has_execd, inferior_has_called_syscall): Delete.
10191         (handle_syscall_event): Get syscall_number from the execution
10192         control state's wait status.
10193         (wait_for_inferior): Don't clear syscall_number.
10194
10195 2012-01-24  Pedro Alves  <palves@redhat.com>
10196
10197         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10198         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10199         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10200         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10201         `ws' parameter.
10202         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10203         false for events other than TARGET_SIGNAL_TRAP.
10204         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10205         Add `ws' parameter.
10206         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10207         events other than TARGET_SIGNAL_TRAP.
10208         (tracepoint_breakpoint_hit): Add `ws' parameter.
10209         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10210         parameter.
10211         (bpstat_stop_status): Same.
10212         (pc_at_non_inline_function): Same.
10213         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10214         to pass the current event's waitstatus to bpstat_stop_status
10215         and pc_at_non_inline_function.
10216
10217 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10218
10219         Code cleanup.
10220         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10221         Update the function comment for it.
10222         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10223         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10224         for STREAM.
10225
10226 2012-01-24  Pedro Alves  <palves@redhat.com>
10227
10228         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10229         outside `bs->stop' block.
10230         (bpstat_what): Rework bp_shlib_event handling.
10231         (internal_bkpt_check_status): If the breakpoint is a
10232         bp_shlib_event, then set bs->stop and bs->print if
10233         stop_on_solib_events is set.
10234
10235 2012-01-24  Gary Benson  <gbenson@redhat.com>
10236
10237         Delete #if 0'd out code.
10238         * stack.c (print_frame_label_vars): Remove.
10239         (catch_info): Likewise.
10240         (_initialize_stack): Remove "info catch" command.
10241         * NEWS: Mention the above.
10242
10243 2012-01-24  Pedro Alves  <palves@redhat.com>
10244
10245         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10246         it.
10247         (remote_notice_new_inferior): If the remote end doesn't support
10248         the multiprocess extensions, then the PID is fake.
10249         (add_current_inferior_and_thread): New.
10250         (remote_start_remote): Use it.
10251         (extended_remote_attach_1): Adjust.
10252         (extended_remote_create_inferior_1): Use
10253         add_current_inferior_and_thread.
10254
10255 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10256
10257         Fix watchpoints to be specific for each inferior.
10258         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10259         current_program_space.
10260         * i386-nat.c (i386_inferior_data_cleanup): New.
10261         (i386_inferior_data_get): Replace variable inf_data_local by an
10262         inferior_data call.
10263         (i386_use_watchpoints): Initialize i386_inferior_data.
10264         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10265         specific iterate_over_lwps.
10266
10267 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10268
10269         Fix watchpoints across inferior fork.
10270         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10271         comment for linux_nat_iterate_watchpoint_lwps.
10272         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10273         linux_nat_iterate_watchpoint_lwps.
10274         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10275         * i386-linux-nat.c (update_debug_registers_callback): Update the
10276         comment for linux_nat_iterate_watchpoint_lwps.
10277         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10278         linux_nat_iterate_watchpoint_lwps.
10279         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10280         * i386-nat.c: Include inferior.h.
10281         (dr_mirror): Remove.
10282         (i386_inferior_data, struct i386_inferior_data)
10283         (i386_inferior_data_get): New.
10284         (i386_debug_reg_state): Use i386_inferior_data_get.
10285         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10286         (i386_insert_watchpoint, i386_remove_watchpoint)
10287         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10288         (i386_remove_hw_breakpoint): New variable state, use
10289         i386_debug_reg_state instead of DR_MIRROR.
10290         * linux-nat.c (delete_lwp): New declaration.
10291         (num_lwps): Move here from downwards.
10292         (delete_lwp_cleanup): New.
10293         (linux_child_follow_fork): Create new child_lp, call
10294         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10295         PTRACE_DETACH.
10296         (num_lwps): Move upwards.
10297         (linux_nat_iterate_watchpoint_lwps): New.
10298         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10299         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10300
10301 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10302
10303         GDB 7.4 released.
10304
10305 2012-01-23  Pedro Alves  <palves@redhat.com>
10306
10307         * top.c (caution): Rename to ...
10308         (confirm): ... this.
10309         (show_caution): Rename to ...
10310         (show_confirm): ... this.
10311         (quit_cover): Adjust.
10312         (init_main): Adjust.
10313         * top.h (caution): Rename to ...
10314         (confirm): ... this.
10315         * utils.c (internal_vproblem, defaulted_query): Adjust.
10316
10317 2012-01-23  Pedro Alves  <palves@redhat.com>
10318
10319         * top.c (caution): Update comment.
10320         (execute_command): Don't consider the current value of `caution'.
10321
10322 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10323
10324         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10325
10326 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10327
10328         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10329         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10330         * target.c (target_fileio_pwrite): Remove buffer address from
10331         debug output.
10332         (target_fileio_pread): Likewise.
10333
10334 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10335
10336         * NEWS: Document remote "info proc" and "generate-core-file".
10337
10338 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10339
10340         * gdbarch.sh (find_memory_regions): New callback.
10341         * gdbarch.c, gdbarch.h: Regenerate.
10342
10343         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10344         callback before falling back to target method.
10345
10346         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10347         (linux_target_install_ops): No longer install it.
10348
10349         * linux-tdep.c (linux_find_memory_regions): New function.
10350         (linux_init_abi): Install it.
10351
10352 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10353
10354         * gdbarch.sh (make_corefile_notes): New architecture callback.
10355         * gdbarch.c: Regenerate.
10356         * gdbarch.h: Likewise.
10357
10358         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10359         before target_make_corefile_notes.  If NULL is returned, the
10360         target does not support core file generation.
10361
10362         * linux-nat.c: Include "linux-tdep.h".
10363         (find_signalled_thread, find_stop_signal): Remove.
10364         (linux_nat_do_thread_registers): Likewise.
10365         (struct linux_nat_corefile_thread_data): Likewise.
10366         (linux_nat_corefile_thread_callback): Likewise.
10367         (iterate_over_spus): Likewise.
10368         (struct linux_spu_corefile_data): Likewise.
10369         (linux_spu_corefile_callback): Likewise.
10370         (linux_spu_make_corefile_notes): Likewise.
10371         (linux_nat_collect_thread_registers): New function.
10372         (linux_nat_make_corefile_notes): Replace contents by call to
10373         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10374         as native-only callback.
10375
10376         * linux-tdep.h: Include "bfd.h".
10377         (struct regcache): Add forward declaration.
10378         (linux_collect_thread_registers_ftype): New typedef.
10379         (linux_make_corefile_notes): Add prototype.
10380         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10381         "regset.h", and "elf-bfd.h".
10382         (find_signalled_thread, find_stop_signal): New functions.
10383         (linux_spu_make_corefile_notes): Likewise.
10384         (linux_collect_thread_registers): Likewise.
10385         (struct linux_corefile_thread_data): New data structure.
10386         (linux_corefile_thread_callback): New funcion.
10387         (linux_make_corefile_notes): Likewise.
10388         (linux_make_corefile_notes_1): Likewise.
10389         (linux_init_abi): Install it.
10390
10391 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10392
10393         * gdbarch.sh (info_proc): New callback.
10394         * gdbarch.c, gdbarch.h: Regenerate.
10395
10396         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10397         before falling back to the target info_proc callback.
10398
10399         * linux-nat.c: Do not include "cli/cli-utils.h".
10400         (linux_nat_info_proc): Remove.
10401         (linux_target_install_ops): No longer install it.
10402
10403         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10404         (read_mapping): New function.
10405         (linux_info_proc): Likewise.
10406         (linux_init_abi): Install it.
10407
10408 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10409
10410         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10411         * infcmd.c: (info_proc_cmd_1): New function.
10412         (info_proc_cmd): New function, moved here from equivalent routine
10413         orignally in linux-nat.c.
10414         (info_proc_cmd_mappings): Likewise.
10415         (info_proc_cmd_stat): Likewise.
10416         (info_proc_cmd_status): Likewise.
10417         (info_proc_cmd_cwd): Likewise.
10418         (info_proc_cmd_cmdline): Likewise.
10419         (info_proc_cmd_exe): Likewise.
10420         (info_proc_cmd_all): Likewise.
10421         (_initialize_infcmd): Install "info proc" command and subcommands.
10422
10423         * target.h (struct target_ops): Add to_info_proc.
10424         (target_info_proc): Add prototype.
10425         * target.c (target_info_proc): New function.
10426
10427         * procfs.c (procfs_info_proc): Add prototype.
10428         (info_proc_cmd): Rename into ...
10429         (procfs_info_proc): ... this.  Update argument types as appropriate
10430         for a to_info_proc implementation.  Handle "what" argument.
10431         (procfs_target): Install procfs_info_proc.
10432         (_initialize_procfs): No longer install "info proc" command.
10433
10434         * linux-nat.c: (enum info_proc_what): Remove.
10435         (linux_nat_info_proc_cmd_1): Rename into ...
10436         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10437         for a to_info_proc implementation.
10438         (linux_nat_info_proc_cmd): Remove.
10439         (linux_nat_info_proc_cmd_mappings): Likewise.
10440         (linux_nat_info_proc_cmd_stat): Likewise.
10441         (linux_nat_info_proc_cmd_status): Likewise.
10442         (linux_nat_info_proc_cmd_cwd): Likewise.
10443         (linux_nat_info_proc_cmd_cmdline): Likewise.
10444         (linux_nat_info_proc_cmd_exe): Likewise.
10445         (linux_nat_info_proc_cmd_all): Likewise.
10446         (linux_target_install_ops): Install linux_nat_info_proc.
10447         (_initialize_linux_nat): No longer install "info proc" command
10448         and subcommands.
10449
10450 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10451
10452         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10453         * config.in, configure: Regenerate.
10454
10455         * target.h (struct target_ops): Add to_fileio_readlink.
10456         (target_fileio_readlink): Add prototype.
10457         * target.c (target_fileio_readlink): New function.
10458
10459         * inf-child.c: Conditionally include <sys/param.h>.
10460         (inf_child_fileio_readlink): New function.
10461         (inf_child_target): Install it.
10462
10463         * remote.c (PACKET_vFile_readlink): New enum value.
10464         (remote_hostio_readlink): New function.
10465         (init_remote_ops): Install it.
10466         (_initialize_remote): Handle vFile:readlink packet type.
10467
10468 2012-01-20  Pedro Alves  <palves@redhat.com>
10469             Ulrich Weigand  <ulrich.weigand@linaro.org>
10470
10471         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10472         * config.in, configure: Regenerate.
10473
10474         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10475         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10476         (target_fileio_open): Add prototype.
10477         (target_fileio_pwrite): Likewise.
10478         (target_fileio_pread): Likewise.
10479         (target_fileio_close): Likewise.
10480         (target_fileio_unlink): Likewise.
10481         (target_fileio_read_alloc): Likewise.
10482         (target_fileio_read_stralloc): Likewise.
10483
10484         * target.c: Include "gdb/fileio.h".
10485         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10486         (default_fileio_target): New function.
10487         (target_fileio_open): Likewise.
10488         (target_fileio_pwrite): Likewise.
10489         (target_fileio_pread): Likewise.
10490         (target_fileio_close): Likewise.
10491         (target_fileio_unlink): Likewise.
10492         (target_fileio_close_cleanup): Likewise.
10493         (target_fileio_read_alloc_1): Likewise.
10494         (target_fileio_read_alloc): Likewise.
10495         (target_fileio_read_stralloc): Likewise.
10496
10497         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10498         <fcntl.h>, and <unistd.h>.
10499         (inf_child_fileio_open_flags_to_host): New function.
10500         (inf_child_errno_to_fileio_error): Likewise.
10501         (inf_child_fileio_open): Likewise.
10502         (inf_child_fileio_pwrite): Likewise.
10503         (inf_child_fileio_pread): Likewise.
10504         (inf_child_fileio_close): Likewise.
10505         (inf_child_fileio_unlink): Likewise.
10506         (inf_child_target): Install to_fileio routines.
10507
10508         * remote.c (init_remote_ops): Install to_fileio routines.
10509
10510 2012-01-20  Pedro Alves  <palves@redhat.com>
10511             Ulrich Weigand  <ulrich.weigand@linaro.org>
10512
10513         * remote.c (remote_multi_process_p): Only check for multi-process
10514         protocol feature, do not check for extended protocol.
10515         (remote_supports_multi_process): Check for extended protocol here.
10516         (set_general_process): Likewise.
10517         (extended_remote_kill): Likewise.
10518         (remote_pid_to_str): Likewise.
10519         (remote_query_supported): Always query multiprocess mode.
10520
10521 2012-01-20  Pedro Alves  <palves@redhat.com>
10522             Ulrich Weigand  <ulrich.weigand@linaro.org>
10523
10524         * inferior.h (struct inferior): Add fake_pid_p.
10525         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10526         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10527         magic_null_ptid since the remote side doesn't provide a real PID.
10528
10529 2012-01-19  Tom Tromey  <tromey@redhat.com>
10530
10531         * NEWS: Combine the two Python sections.
10532
10533 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10534
10535         * target.h (target_close): Update comment on the target's unpush state.
10536
10537 2012-01-19  Pedro Alves  <palves@redhat.com>
10538
10539         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10540         linux_nat_async directly instead of going through the target
10541         vector.
10542         * target.c (unpush_target): Close target after unpushing it, not
10543         before.
10544
10545 2012-01-19  Gary Benson  <gbenson@redhat.com>
10546
10547         * mdebugread.c (sort_blocks): Replace integer constants with ones
10548         derived from FIRST_LOCAL_BLOCK.
10549
10550 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10551             Jan Kratochvil  <jan.kratochvil@redhat.com>
10552
10553         PR gdb/9538
10554         * symfile.c (find_separate_debug_file): New function.
10555         (terminate_after_last_dir_separator): Likewise.
10556         (find_separate_debug_file_by_debuglink): Also try realpath.
10557         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10558         * configure: Regenerate.
10559         * config.in: Regenerate.
10560
10561 2012-01-18  Doug Evans  <dje@google.com>
10562
10563         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10564         (main.o): Remove rule.
10565         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10566         (--with-sysroot): Rewrite.
10567         * configure: Regenerate.
10568         * config.in: Regenerate.
10569
10570 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10571
10572         * parse.c (initialize_expout): New function.
10573         (reallocate_expout): Likewise.
10574         (parse_exp_in_context): Use `initialize_expout' and
10575         `reallocate_expout' when appropriate.
10576
10577 2012-01-18  Pedro Alves  <palves@redhat.com>
10578
10579         * record.c (struct record_breakpoint, record_breakpoint_p)
10580         (record_breakpoints): New.
10581         (record_insert_breakpoint, record_remove_breakpoint): Manage
10582         record breakpoints list.  Only remove breakpoints from the
10583         inferior if they had been inserted there in the first place.
10584
10585 2012-01-17  Doug Evans  <dje@google.com>
10586
10587         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10588         if we know we don't have a file name to look for.
10589
10590 2012-01-17  Pedro Alves  <palves@redhat.com>
10591
10592         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10593         the frame's stop reason is UNWIND_UNAVAILABLE.
10594
10595 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10596
10597         Fix compilation error.
10598         * m2-exp.y (yyerror): Use ANSI C prototype.
10599
10600 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10601
10602         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10603         (growbuf_by_size): Likewise.
10604         (yyerror): Likewise.
10605         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10606         (modblock): Remove variable (was #if 0'ed).
10607         (parse_number): Convert prototype from K&R to ANSI C.
10608         (yyerror): Likewise.
10609         * objc-exp.y (parse_number): Likewise.
10610         (yyerror): Likewise.
10611         (yylex): Remove #if 0'ed code.
10612         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10613         (yyerror): Likewise.
10614
10615 2012-01-16  Tom Tromey  <tromey@redhat.com>
10616
10617         * NEWS: Add item.
10618         * symtab.h (compare_filenames_for_search): Declare.
10619         * symtab.c (compare_filenames_for_search): New function.
10620         (iterate_over_some_symtabs): Use it.
10621         * symfile.h (struct quick_symbol_functions)
10622         <map_symtabs_matching_filename>: Change spec.
10623         * psymtab.c (partial_map_symtabs_matching_filename): Use
10624         compare_filenames_for_search.  Update for new spec.
10625         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10626         compare_filenames_for_search.  Update for new spec.
10627         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10628
10629 2012-01-16  Tom Tromey  <tromey@redhat.com>
10630
10631         PR python/13281:
10632         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10633         (struct main_type) <flag_flag_enum>: New field.
10634         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10635         * NEWS: Add entries.
10636         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10637         enums.
10638         * python/lib/gdb/printing.py (_EnumInstance): New class.
10639         (FlagEnumerationPrinter): Likewise.
10640
10641 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10642
10643         * breakpoint.c (create_sals_from_address_default): New function.
10644         (create_breakpoints_sal_default): Likewise.
10645         (decode_linespec_default): Likewise.
10646         (is_marker_spec): Removed.
10647         (strace_marker_p): New function.
10648         (init_breakpoint_sal): Using `strace_marker_p' instead of
10649         `is_marker_spec'.
10650         (create_breakpoint): Call method `create_sals_from_address' from
10651         breakpoint_ops, replacing code that created SALs conditionally
10652         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10653         replacing code that created breakpoints conditionally on the type
10654         wanted.
10655         (base_breakpoint_create_sals_from_address): New function.
10656         (base_breakpoint_create_breakpoints_sal): Likewise.
10657         (base_breakpoint_decode_linespec): Likewise.
10658         (base_breakpoint_ops): Add methods
10659         `base_breakpoint_create_sals_from_address',
10660         `base_breakpoint_create_breakpoints_sal' and
10661         `base_breakpoint_decode_linespec'.
10662         (bkpt_create_sals_from_address): New function.
10663         (bkpt_create_breakpoints_sal): Likewise.
10664         (bkpt_decode_linespec): Likewise.
10665         (tracepoint_create_sals_from_address): Likewise.
10666         (tracepoint_create_breakpoints_sal): Likewise.
10667         (tracepoint_decode_linespec): Likewise.
10668         (strace_marker_create_sals_from_address): Likewise.
10669         (strace_marker_create_breakpoints_sal): Likewise.
10670         (strace_marker_decode_linespec): Likewise.
10671         (strace_marker_breakpoint_ops): New variable.
10672         (addr_string_to_sals): Remove `marker_spec'.  Call method
10673         `decode_linespec' from breakpoint_ops, replacing code that decoded
10674         an address string into a SAL.  Use `strace_marker_p' instead of
10675         `marker_spec'.
10676         (strace_command): Decide whether we are dealing with a static
10677         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10678         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10679         * breakpoint.h (linespec_result, linespec_sals): New forward
10680         declarations.
10681         (breakpoint_ops) <create_sals_from_address>,
10682         <create_breakpoints_sal>, <decode_linespec>: New methods.
10683
10684 2012-01-14  Doug Evans  <dje@google.com>
10685
10686         * NEWS: Update text for "maint set python print-stack".
10687         It is deprecated in gdb 7.4 and deleted in 7.5.
10688
10689 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10690
10691         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10692         including curses.h.
10693
10694 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10695
10696         * configure: Regenerate.
10697         * config.in: Regenerate.
10698
10699 2012-01-12  Keith Seitz  <keiths@redhat.com>
10700
10701         PR mi/10586
10702         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10703         (ANONYMOUS_UNION_NAME): Define.
10704         (is_path_expr_parent): New function.
10705         (get_path_expr_parent): New function.
10706         (is_anonymous_child): New function.
10707         (create_child_with_value): If the child is anonymous and without
10708         a name, assign an object name to it.
10709         (c_describe_child): Use get_path_expr_parent to determine
10710         the parent expression.
10711         If there field represents an anonymous struct or union and
10712         has no name, set an appropriate display name and expression.
10713         (cplus_describe_child): Likewise.
10714
10715 2012-01-12  Pedro Alves  <palves@redhat.com>
10716
10717         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10718         available when %ebp is found to be zero (outermost).
10719
10720 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10721
10722         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10723         an internal gdb_static_assert.
10724         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10725
10726 2012-01-11  Tom Tromey  <tromey@redhat.com>
10727
10728         PR gdb/9598:
10729         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10730         catch" and "catch throw".
10731
10732 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10733
10734         * blockframe.c (block_innermost_frame): Start search from selected
10735         frame, if present, or otherwise the current frame.
10736
10737         * c-exp.y (variable): Update innermost_block for
10738         'block COLONCOLON NAME' clause.
10739         * m2-exp.y (variable): Ditto.
10740         * objc-exp.y (variable): Ditto.
10741
10742 2012-01-10  Tom Tromey  <tromey@redhat.com>
10743
10744         PR python/13199:
10745         * python/python.c (finish_python_initialization): Set sys.argv.
10746
10747 2012-01-10  Doug Evans  <dje@google.com>
10748
10749         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10750         "want_line_info".  All callers updated.
10751         (dwarf_decode_lines_1): New function.
10752         (handle_DW_AT_stmt_list): Add function comment.
10753         New arg "want_line_info".  All callers updated.
10754         (read_file_scope,read_type_unit_scope): Move comment from
10755         handle_DW_AT_stmt_list to here.
10756
10757 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10758
10759         Fix regression after libiberty/ update for GCC PR 6057 and others.
10760         * c-exp.y (operator) <OPERATOR DELETE>
10761         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10762         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10763         (make_builtin_type, make_name): New variable i, add gdb_assert.
10764         (operator) <OPERATOR NEW>: Update ARGS to 3.
10765         (operator) <OPERATOR DELETE>: Add trailing space.
10766         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10767         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10768         * cp-support.c (cp_canonicalize_string): Check NULL from
10769         cp_comp_to_string, call warning and return.
10770
10771 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10772
10773         Fix duplicate .o files after omitting libbfd.a.
10774         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10775         (SFILES): Add corelow.c.
10776         (COMMON_OBS): Add corelow.o.
10777         (ALLDEPFILES): Remove corelow.c.
10778         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10779         * config/alpha/alpha-osf3.mh: Likewise.
10780         * config/alpha/fbsd.mh: Likewise.
10781         * config/arm/nbsdaout.mh: Likewise.
10782         * config/arm/nbsdelf.mh: Likewise.
10783         * config/i386/i386gnu.mh: Likewise.
10784         * config/ia64/hpux.mh: Likewise.
10785         * config/ia64/linux.mh: Likewise.
10786         * config/m32r/linux.mh: Likewise.
10787         * config/m68k/linux.mh: Likewise.
10788         * config/mips/irix5.mh: Likewise.
10789         * config/mips/irix6.mh: Likewise.
10790         * config/pa/hpux.mh: Likewise.
10791         * config/pa/linux.mh: Likewise.
10792         * config/powerpc/aix.mh: Likewise.
10793         * config/sparc/linux.mh: Likewise.
10794         * config/sparc/linux64.mh: Likewise.
10795         * config/sparc/sol2.mh: Likewise.
10796         * config/vax/vax.mh: Likewise.
10797         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10798         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10799         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10800         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10801         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10802         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10803         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10804         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10805         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10806         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10807         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10808         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10809         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10810         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10811         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10812         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10813         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10814         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10815         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10816         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10817         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10818         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10819         corelow.o from gdb_target_obs.
10820         * corefile.c (core_target): Update the comment on NULL value.
10821         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10822         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10823         MATCHES.  Drop YUMMY set on NULL.
10824         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10825         reclaim CORE_DATA if it is already NULL.
10826
10827 2012-01-09  Doug Evans  <dje@google.com>
10828
10829         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10830         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10831
10832 2012-01-09  Keith Seitz  <keiths@redhat.com>
10833
10834         * breakpoint.c (wrapper.h): Don't include.
10835
10836 2012-01-09  Keith Seitz  <keiths@redhat.com>
10837
10838         * Makefile.in (SFILES): Remove wrapper.c.
10839         (HFILES_NO_SRCDIR): Remove wrapper.h.
10840         (COMMON_OBS): Remove wrapper.o.
10841         * cli/cli-interp.c: Don't inlude wrapper.h.
10842         * corelow.c: Likewise.
10843         (core_open): Replace gdb_target_find_new_threads with
10844         TRY_CATCH around target_find_new_threads.
10845         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10846         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10847         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10848         evaluate_expression.
10849         (varobj_set_value): Likewise for evaluate_expression and
10850         value_assign.
10851         (install_new_variable): Likewise for value_fetch_lazy.
10852         (adjust_value_for_child_access): Likewise for value_ind.
10853         (c_describe_child): Likewise for value_subscript and
10854         value_ind.
10855         (c_value_of_root): Likewise for evaluate_expression.
10856         * wrapper.c: Remove.
10857         * wrapper.h: Remove.
10858
10859 2012-01-09  Doug Evans  <dje@google.com>
10860
10861         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10862         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10863         "abfd" args with "section".  All callers updated.
10864         Error checking code moved ...
10865         (error_check_comp_unit_head): ... here.  New function.
10866         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10867         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10868         (create_debug_types_hash_table): Simplify by using
10869         read_and_check_type_unit_head.
10870
10871         * parser-defs.h (namecopy): Delete.
10872         * parse.c (namecopy, namecopy_size): Move into copy_name.
10873
10874 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10875
10876         Partially fix duplicate .o files after omitting libbfd.a.
10877         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10878         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10879         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10880         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10881         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10882         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10883         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10884
10885 2012-01-09  Pedro Alves  <palves@redhat.com>
10886
10887         * MAINTAINERS: Update my email address.
10888
10889 2012-01-08  Doug Evans  <dje@google.com>
10890
10891         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10892         n_type_units.  Rename type_comp_units to all_type_units.
10893         All uses updated.
10894         (add_signatured_type_cu_to_table): Renamed from
10895         add_signatured_type_cu_to_list.  All callers updated.
10896
10897         * gdbtypes.h (struct cplus_struct_type): Delete member
10898         nfn_fields_total.  All uses removed.
10899
10900 2012-01-06  Doug Evans  <dje@google.com>
10901
10902         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10903         to top of file.
10904         (dwarf2_find_comp_unit): Delete.
10905         (process_psymtab_comp_unit): Make result "void".
10906         Delete args buffer, info_ptr, buffer_size, and replace with
10907         "section".  All callers updated.
10908         (dwarf2_build_psymtabs_hard): Simplify.
10909
10910 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10911             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10912
10913         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10914         before `struct gdb_exception'.
10915         * breakpoint.c (update_global_location_list_nothrow)
10916         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10917         * cp-abi.c (value_rtti_type): Likewise.
10918         * cp-support.c (cp_validate_operator): Likewise.
10919         * infrun.c (insert_exception_resume_breakpoint)
10920         (check_exception_resume, keep_going): Likewise.
10921         * mi-interp.c (mi_breakpoint_created)
10922         (mi_breakpoint_modified): Likewise.
10923         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10924         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10925         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10926
10927 2012-01-05  Doug Evans  <dje@google.com>
10928
10929         * dwarf2read.c (statement_prologue): Delete, unused.
10930
10931         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10932         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10933
10934         * dwarf2read.c (comp_unit_header): Delete, unused.
10935
10936 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10937
10938         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10939         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10940
10941 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10942
10943         * infrun.c (normal_stop): Don't skip calling the normal_stop
10944         observers if the thread was doing a multi-step, but stopped for
10945         some reason other than stepping.
10946
10947 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
10948
10949         * cli/cli-decode.h: Add comments.
10950         (CMD_LIST_AMBIGUOUS): Moved to command.h
10951         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10952         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10953         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10954         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10955         (add_com, add_com_alias, add_info, add_info_alias)
10956         (complete_on_cmdlist, complete_on_enum, help_list): Remove
10957         declarations.
10958         * command.h: Add and adjust comments.
10959         (CMD_LIST_AMBIGUOUS): Moved here.
10960         (help_cmd, help_cmd_list): Delete declarations.
10961
10962 2012-01-04  Doug Evans  <dje@google.com>
10963
10964         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10965         All callers updated.
10966         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10967         Replace all arguments with "per_cu".  All callers updated.
10968
10969         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10970
10971         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10972         New arg "per_cu".  All callers updated.
10973
10974         Delete #if 0'd out code.
10975         * language.c (binop_result_type): Delete.
10976         (simple_type, ordered_type, same_type, integral_type): Delete.
10977         (numeric_type, character_type, string_type, boolean_type): Delete.
10978         (float_type, structured_type): Delete.
10979         * language.h: Update.
10980
10981 2012-01-04  Tom Tromey  <tromey@redhat.com>
10982
10983         * python/py-value.c (valpy_binop): Initialize 'res_val'.
10984
10985 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10986
10987         * corefile.c (close_exec_file): Delete.
10988         (reopen_exec_file): Remove commented out code that seems related
10989         to close_exec_file, which is being deleted here.
10990         * inferior.h (close_exec_file): Delete.
10991         * fork-child.c (fork_inferior): Remove call to fork_inferior.
10992
10993 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10994
10995         * ada-lang.c: #include "cli/cli-utils.h".
10996         (get_selections): Use skip_spaces.
10997         (ada_get_next_arg): Use skip_spaces and skip_to_space.
10998         (catch_ada_exception_command_split): Use skip_spaces.
10999         (ada_decode_assert_location): Likewise.
11000
11001 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11002
11003         * linespec.c (decode_line_internal): Check for C++ or Java
11004         compound constructs only if the current language is C, C++
11005         or Java.
11006
11007 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11008
11009         Revert:
11010         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11011                     Joel Brobecker  <brobecker@adacore.com>
11012         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11013         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11014         3 times.
11015         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11016         fall through into AT_ENTRY_POINT.
11017         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11018         DUMMY_ADDR with it.
11019         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11020         PPC_INSN_SIZE skip to 3 times.
11021
11022 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11023
11024         * linespec.c (add_minsym): Preserve function descriptors.
11025
11026 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11027
11028         * breakpoint.c (all_locations_are_pending): Consider locations
11029         in program spaces executing during startup pending as well.
11030
11031 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11032
11033         Copyright year update in most files of the GDB Project.
11034
11035 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11036
11037         * copyright.sh: Delete.
11038         * copyright.py: Rewrite.
11039
11040 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11041
11042         * gnulib/extra/update-copyright: New file, imported from gnulib.
11043
11044 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11045
11046         * README (Copyright and License Notices): New section.
11047
11048 2012-01-03  Tom Tromey  <tromey@redhat.com>
11049
11050         PR python/12533:
11051         * python/py-value.c (valpy_dereference, valpy_get_address
11052         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11053         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11054         (valpy_absolute, valpy_richcompare): Free intermediate values.
11055
11056 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11057
11058         * ada-lang.c: Reformat the copyright notice.
11059
11060 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11061
11062         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11063         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11064         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11065         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11066         Revert this part of:
11067         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11068         Build gdb directly from *.o files not using libgdb.a.
11069         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11070
11071 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11072
11073         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11074         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11075         Reformat the copyright header.
11076
11077 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11078
11079         Revert this part of:
11080         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11081         Remove the gdbtui binary.
11082         * gdb.c (main): Remove args.interpreter_p initialization.
11083         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11084         * main.h (struct captured_main_args): Remove interpreter_p.
11085
11086 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11087
11088         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11089
11090 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11091
11092         * top.c (print_gdb_version): Update copyright year.
11093
11094 2012-01-02  Yao Qi  <yao@codesourcery.com>
11095
11096         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11097
11098 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11099             Joel Brobecker  <brobecker@adacore.com>
11100
11101         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11102         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11103         3 times.
11104         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11105         fall through into AT_ENTRY_POINT.
11106         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11107         DUMMY_ADDR with it.
11108         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11109         PPC_INSN_SIZE skip to 3 times.
11110
11111 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11112
11113         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11114         the return value.
11115         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11116
11117 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11118
11119         Build gdb directly from *.o files not using libgdb.a.
11120         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11121         (COMMON_OBS): Remove solib-target.o.
11122         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11123         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11124         (LIBGDB_OBS, libgdb.a): Move it above.
11125         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11126         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11127         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11128         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11129         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11130         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11131         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11132         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11133         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11134         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11135         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11136         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11137         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11138         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11139         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11140         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11141         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11142         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11143         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11144         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11145         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11146         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11147         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11148         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11149         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11150         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11151         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11152
11153 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11154
11155         Remove the gdbtui binary.
11156         * .gitignore (/gdbtui): Remove.
11157         * Makefile.in (TUI): Remove.
11158         (SUBDIR_TUI_OBS): Remove tui-main.o.
11159         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11160         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11161         (tui-main.o): Remove.
11162         (all_object_files): Remove tui-main.o.
11163         * NEWS: New note for the gdbtui removal.
11164         * configure: Rebuilt.
11165         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11166         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11167         CONFIG_UNINSTALL respectively.
11168         * gdb.c (main): Remove args.interpreter_p initialization.
11169         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11170         * main.h (struct captured_main_args): Remove interpreter_p.
11171         * tui/tui-main.c: Remove.
11172
11173 2012-01-01  Doug Evans  <dje@google.com>
11174
11175         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11176         (dwarf2_physname, read_import_statement): Ditto.
11177         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11178         (process_structure_scope read_subroutine_type): Ditto.
11179         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11180         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11181         (dwarf2_fetch_die_location_block): Ditto.
11182         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11183
11184         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11185         All callers updated.
11186         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11187         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11188         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11189
11190         * dwarf2read.c (load_cu): Move assert to more useful location.
11191
11192         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11193         All callers updated.
11194
11195         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11196         (dwarf2_elf_names): Minor reformat.
11197         (dwarf2_per_cu_data): Tweak comment.
11198         (dwarf2_read_section): Fix comment.
11199         (create_all_comp_units): Fix comment.
11200         (load_full_comp_unit): Fix comment.
11201         (process_full_comp_unit): Fix comment.
11202         (read_signatured_type): Fix comment.
11203
11204 For older changes see ChangeLog-2011.
11205 \f
11206 Local Variables:
11207 mode: change-log
11208 left-margin: 8
11209 fill-column: 74
11210 version-control: never
11211 coding: utf-8
11212 End: