2012-10-26 Pedro Alves <palves@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-10-26  Pedro Alves  <palves@redhat.com>
2
3         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
4         Remove comment.
5
6 2012-10-26  Pedro Alves  <palves@redhat.com>
7
8         * target.c (target_waitstatus_to_string): Handle
9         TARGET_WAITKIND_VFORK_DONE.
10
11 2012-10-26  Pedro Alves  <palves@redhat.com>
12
13         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
14         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
15
16 2012-10-24  Tristan Gingold  <gingold@adacore.com>
17
18         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
19         Add comments.
20
21 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
22
23         * ravenscar-thread.c (ravenscar_wait): Only update the list
24         of threads and inferior_ptid if the inferior is still alive.
25
26 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
27
28         * ada-lang.c (is_known_support_routine): Use lbasename when
29         matching the symtab's filename against
30         known_runtime_file_name_patterns.
31
32 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
33
34         * ada-lang.c (ada_same_array_size_p): New function.
35         (ada_promote_array_of_integrals): New function.
36         (coerce_for_assign): Add handling of arrays where the elements
37         are integrals of a smaller size than the size of the target
38         array element type.
39
40 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
41
42         * doublest.c (convert_doublest_to_floatformat): Fix comparison
43         against maximum exponent value.
44
45 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
46
47         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
48         "unwind-seh.c".
49
50 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
51
52         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
53         strip typedef layer when computing the fixed type's field type,
54         only when computing its size.
55
56 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
57
58         PR gdb/12783
59         * i386-tdep.c (i386_return_value): Handle complex double and long
60         double.
61
62 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
63
64         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
65         New local variable args_len.
66         Quote the name of the executable when computing the command line.
67
68 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
69
70         PR gdb/12796
71         PR gdb/12798
72         PR gdb/12800
73         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
74         AMD64_FTAG_REGNUM.
75         * amd64-tdep.c (amd64_classify): Classify complex types.
76         (amd64_return_value): Handle the COMPLEX_X87 class.
77
78 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
79
80         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
81         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
82
83 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
84
85         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
86         function.
87         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
88         to amd64_windows_auto_wide_charset.
89
90 2012-10-23  Yao Qi  <yao@codesourcery.com>
91
92         * event-top.c (mark_async_signal_handler_wrapper): Remove.
93         * event-top.h: Remove its declaration.
94         (async_request_quit): Call mark_async_signal_handler instead of
95         mark_async_signal_handler_wrapper.
96         (async_do_nothing, async_disconnect): Likewise.
97         (async_stop_sig): Likewise.
98         * remote.c (handle_remote_sigint): Likewise.
99         (handle_remote_sigint_twice): Likewise.
100
101 2012-10-23  Yao Qi  <yao@codesourcery.com>
102
103         * event-top.c (sigint_token, sighup_token): Replace 'void *'
104         with 'static struct async_signal_handler *'.
105         (sighup_token, sigquit_token, sigstp_token): Likewise.
106
107 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
108
109         * gdbarch.sh (function_list): Use 'pstring' when printing
110         a variable which could return NULL.
111         * gdbarch.c: Regenerate.
112
113 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
114             Tom Tromey  <tromey@redhat.com>
115
116         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
117         inneffective if condition by gdb assertion.  Add function
118         description comment.
119
120 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
121
122         * parser-defs.h (struct exp_descriptor): Document constraint
123         on return value for "op_name" callbacks.
124
125 2012-10-18  Tom Tromey  <tromey@redhat.com>
126
127         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
128         * symtab.c (iterate_over_some_symtabs): Constify.
129         * source.h (symtab_to_fullname): Return 'const char *'.
130         * source.c (symtab_to_fullname): Return 'const char *'.
131         * python/py-symtab.c (stpy_fullname): Constify.
132         * cli/cli-cmds.c (edit_command): Constify.
133         * breakpoint.c (print_breakpoint_location)
134         (update_static_tracepoint): Constify.
135
136 2012-10-18  Tom Tromey  <tromey@redhat.com>
137
138         * breakpoint.c (compare_breakpoints): Fix comparison.
139
140 2012-10-18  Tom Tromey  <tromey@redhat.com>
141
142         * valprint.c (generic_emit_char, generic_printstr): Pass size of
143         gdb_wchar_t to convert_between_encodings.
144
145 2012-10-17  Yao Qi  <yao@codesourcery.com>
146
147         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
148         more parameter 'inferior'.
149         * corefile.c (write_memory_with_notification): Caller update.
150
151         * mi/mi-cmd-var.c: Include "mi-main.h".
152         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
153         to 1 and restore it later.
154         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
155         and "data-write-memory-bytes.
156         * mi/mi-interp.c: Include objfiles.h.
157         (mi_interpreter_init): Call observer_attach_memory_changed.
158         (mi_memory_changed): New.
159         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
160         New field.
161
162         * NEWS: Mention new MI notification "memory-changed".
163
164 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
165
166         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
167
168 2012-10-15  Doug Evans  <dje@google.com>
169
170         New option -nh: inhibit loading of ~/.gdbinit.
171         * NEWS: Mention -nh.
172         * main.c (captured_main): Recognize and process -nh.
173         (print_gdb_help): Mention -nh.
174         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
175
176 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
177
178         PR backtrace/14646
179         PR gdb/14647
180         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
181         pc_regnum_from_eax.
182         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
183         nor pc_regnum_from_eax.
184         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
185         nor pc_regnum_from_eax.
186
187 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
188
189         Fix entry values resolving in inlined frames.
190         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
191         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
192         entries of FRAME.
193
194 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
195
196         * configure.ac: Build with -DMS_WIN64 if building with Python
197         enabled using GCC on amd64-windows.
198         * configure: Regenerate.
199
200 2012-10-15  Tom Tromey  <tromey@redhat.com>
201
202         PR python/14635:
203         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
204         to Py_None.
205
206 2012-10-15  Tom Tromey  <tromey@redhat.com>
207
208         PR python/14634:
209         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
210
211 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
212
213         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
214         reset thread numbering back to 1.
215
216 2012-10-11  Doug Evans  <dje@google.com>
217
218         PR breakpoints/14643.
219         * linespec.c (struct ls_parser): New member keyword_ok.
220         (linespec_lexer_lex_string): Add comment.
221         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
222         for one.
223         (parse_linespec): Set keyword_ok.
224
225 2012-10-10  Doug Evans  <dje@google.com>
226
227         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
228         "0x" prefix on address in log message.
229
230         * dwarf2read.c (read_1_byte): Add const to buf parameter.
231         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
232         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
233         (lookup_dwo_file): Add const to dwo_name parameter.
234         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
235
236 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
237
238         Fix crash during stepping on ppc32.
239         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
240         SYM.
241
242 2012-10-03  Doug Evans  <dje@google.com>
243
244         PR symtab/14601
245         * buildsym.c (buildsym_init): Reset using_directives to NULL.
246
247 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
248
249         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
250         output and use uint32_t not long to ensure 4 byte size.
251
252 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
253
254         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
255         unref'ed it.
256
257 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
258
259         * target.c (simple_search_memory): Include access length in
260         warning message.
261
262 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
263             Edjunior Machado  <emachado@linux.vnet.ibm.com>
264
265         PR gdb/13989
266         * solib.c (solib_find): Prevent GDB from loading native libraries when
267         debugging a cross-target corefile.
268
269 2012-09-28  selven  <pcthegreat@gmail.com>
270
271         Make definition match declaration.
272
273         * regcache.c (regcache_register_status): Change return type to
274         enum register_status.
275
276 2012-09-28  Yao Qi  <yao@codesourcery.com>
277
278         * mi/mi-main.c (mi_cmd_data_write_memory): Call
279         write_memory_with_notification instead of write_memory.
280         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
281         instead of target_write_memory.
282
283 2012-09-28  Yao Qi  <yao@codesourcery.com>
284
285         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
286         when the length of content is not an even number.
287
288 2012-09-27  Tom Tromey  <tromey@redhat.com>
289
290         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
291         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
292
293 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
294
295         * sol-thread.c (sol_thread_fetch_registers)
296         (sol_thread_store_registers): Delete commented out code.
297
298 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
299
300         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
301         Move these functions to sparc-sol-thread.c.
302         * sparc-sol-thread.c: New file.
303         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
304         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
305         configurations.
306         * configure: Regenerate.
307
308 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
309
310         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
311         Remove commented-out code.
312
313 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
314
315         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
316         Enable this code for sparc hosts only.
317
318 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
319
320         * procfs.h (procfs_find_LDT_entry): Add declaration.
321         * sol-thread.c (ps_lgetLDT): Delete local declaration of
322         function procfs_find_LDT_entry.
323
324 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
325
326         * procfs.c (proc_get_LDT_entry): Make static.
327
328 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
329
330         * procfs.c (proc_find_memory_regions): Fix declaration.
331
332 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
333
334         * amd64-tdep.c (amd64_return_value): Revert previous change
335         that used TYPE_LENGTH directly.
336         * bfin-tdep.c (bfin_extract_return_value): Likewise.
337         (bfin_store_return_value): Likewise.
338         * cris-tdep.c (cris_store_return_value): Likewise.
339         (cris_extract_return_value): Likewise.
340         * h8300-tdep.c (h8300_extract_return_value): Likewise.
341         * hppa-tdep.c (hppa64_return_value): Likewise.
342         * lm32-tdep.c (lm32_store_return_value): Likewise.
343         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
344         * spu-tdep.c (spu_value_from_register): Likewise.
345         * vax-tdep.c (vax_return_value): Likewise.
346
347 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
348
349         * gdbtypes.c (lookup_array_range_type): Expand parameters
350         LOW_BOUND and HIGH_BOUND to LONGEST.
351         (lookup_string_range_type): Likewise.
352         * gdbtypes.h (lookup_array_range_type): Likewise.
353         (lookup_string_range_type): Likewise.
354         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
355         Expand HIGHBOUND to ssize_t.
356         (value_string): Likewise.
357         * value.h (value_cstring): Expand parameter LEN to ssize_t.
358         (value_string): Likewise.
359
360 2012-09-27  Yao Qi  <yao@codesourcery.com>
361
362         PR breakpoints/13898
363         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
364         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
365         per breakpoint type.
366
367 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
368
369         * procfs.c: Add gdb_bfd header.
370         * rs6000-nat.c: Likewise.
371         * solib-pa64.c: Likewise.
372         * spu-linux-nat.c: Likewise.
373         * windows-nat.c: Likewise.
374
375 2012-09-26  Tom Tromey  <tromey@redhat.com>
376
377         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
378
379 2012-09-26  Tom Tromey  <tromey@redhat.com>
380
381         * dwarf2read.c (mark_common_block_symbol_computed): New function.
382         (read_common_block): Handle child DIEs with
383         DW_AT_data_member_location.
384         (new_symbol_full): Add special case for common blocks.
385
386 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
387             Tom Tromey  <tromey@redhat.com>
388
389         * dwarf2read.c (read_common_block): Rewrite.
390         (new_symbol_full): Handle DW_TAG_common_block.
391         * f-lang.c (head_common_list, find_common_for_function):
392         Remove.
393         * f-lang.h (struct common_entry, struct saved_f77_common,
394         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
395         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
396         BLANK_COMMON_NAME_LOCAL): Remove.
397         (struct common_block): New.
398         * f-valprint.c (list_all_visible_commons): Remove.
399         (info_common_command_for_block): New function.
400         (info_common_command): Use it.
401         * stack.c (iterate_over_block_locals): Special case for
402         COMMON_BLOCK_DOMAIN.
403         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
404         constant.
405         (struct general_symbol_info) <value.common_block>: New field.
406         (SYMBOL_VALUE_COMMON_BLOCK): New define.
407
408 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
409             Tom Tromey  <tromey@redhat.com>
410
411         * f-lang.c (allocate_saved_bf_node,
412         allocate_saved_function_node, allocate_saved_f77_common_node,
413         allocate_common_entry_node, tail_common_list, current_common,
414         saved_bf_list, saved_bf_list_end, current_head_bf_list,
415         tmp_bf_ptr, add_common_block, add_common_entry,
416         find_first_common_named, patch_common_entries,
417         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
418         global_remote_debug, get_bf_for_fcn, saved_function_list,
419         saved_function_list_end, clear_function_list, struct saved_fcn,
420         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
421         SAVED_BF, SAVED_BF_PTR): Remove.
422         * f-lang.h (tail_common_list, current_common,
423         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
424         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
425         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
426         real_main_c_value): Remove.
427         * f-valprint.c (there_is_a_visible_common_named): Remove.
428
429 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
430
431         * breakpoint.c (update_global_location_list): Ignore previous
432         duplicate status of a breakpoint when starting a new scan for
433         duplicate breakpoints.
434
435 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
436         PR breakpoints/14419
437         * arm-tdep.c (arm_skip_prologue): Extending producer check to
438         support LLVM compiler.
439
440 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
441
442         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
443         * bfin-tdep.c (bfin_extract_return_value): Likewise.
444         (bfin_store_return_value): Likewise.
445         * cris-tdep.c (cris_store_return_value): Likewise.
446         (cris_extract_return_value): Likewise.
447         * h8300-tdep.c (h8300_extract_return_value): Likewise.
448         * hppa-tdep.c (hppa64_return_value): Likewise.
449         * lm32-tdep.c (lm32_store_return_value): Likewise.
450         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
451         * spu-tdep.c (spu_value_from_register): Likewise.
452         * vax-tdep.c (vax_return_value): Likewise.
453
454 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
455
456         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
457         parameter LEN to ssize_t.
458
459 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
460
461         * ada-valprint.c (ada_val_print_1): Eliminate single-use
462         variable LEN.
463         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
464         directly.
465         (alpha_store_return_value): Likewise.
466         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
467         (amd64_push_arguments): Likewise.
468         * ax-gdb.c (gen_trace_static_fields): Likewise.
469         (gen_traced_pop): Likewise.
470         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
471         * breakpoint.c (update_watchpoint): Likewise.
472         * findcmd.c (parse_find_args): Use local variable for type
473         instead of length.
474         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
475         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
476         (h8300_store_return_value): Likewise.
477         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
478         Use i386_darwin_arg_type_alignment directly.
479         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
480         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
481         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
482         (m68hc11_extract_return_value): Likewise.
483         * mep-tdep.c (mep_push_dummy_call): Likewise.
484         * printcmd.c (float_type_from_length): Likewise.
485         * s390-tdep.c (s390_value_from_register): Likewise.
486         * stack.c (read_frame_arg): Likewise.
487         * tracepoint.c (encode_actions_1): Likewise.
488         * valops.c (value_fetch_lazy): Use local variable for type
489         instead of length.  Use TYPE_LENGTH directly.
490         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
491
492 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
493
494         * symtab.c (skip_prologue_sal): Fix typo in comment.
495
496 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
497
498         * linespec.c (create_sals_line_offset): Fix typo in comment.
499
500 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
501
502         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
503         use plongest to print the array size.
504
505 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
506
507         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
508         * p-valprint.c (pascal_type_print_base): Likewise.
509
510 2012-09-22  Yao Qi  <yao@codesourcery.com>
511
512         * remote.c (remote_get_trace_status): Remove setting default
513         values of fields of 'ts'.
514
515 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
516
517         Fix internal error on canonicalization of clang types.
518         * cp-name-parser.y (operator): New comment at make_operator call for
519         new, delete, new[] and delete[].
520         (exp): Use "sizeof ".  Add new comment at make_operator call.
521
522 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
523
524         Fix disassemble without parameters in tailcall frame.
525         * cli/cli-cmds.c (disassemble_current_function): Use
526         get_frame_address_in_block.
527
528 2012-09-21  Tom Tromey  <tromey@redhat.com>
529
530         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
531         TYPE_CODE_UNION>: Unify, removing a goto.
532
533 2012-09-21  Tom Tromey  <tromey@redhat.com>
534
535         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
536
537 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
538
539         * findvar.c (read_frame_register_value): Mark the result value as
540         optimized out if any of the input registers have been optimized out.
541
542 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
543
544         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
545
546 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
547
548         * eval.c (evaluate_subexp_standard): Eliminate single-use
549         variable LOWER.
550
551 2012-09-21  Yao Qi  <yao@codesourcery.com>
552
553         * mi/mi-interp.c: Declare mi_record_changed.
554         (mi_interpreter_init): Call observer_attach_record_changed.
555         (mi_record_changed): New.
556         * record.c (record_open): Call observer_notify_record_changed.
557         (cmd_record_stop): Call observer_notify_record_changed.
558         * NEWS: Mention it.
559
560 2012-09-20  Tom Tromey  <tromey@redhat.com>
561
562         * NEWS: Update.
563         * python/python.c (finalize_python): New function.
564         (_initialize_python): Make a final cleanup.
565
566 2012-09-19  Doug Evans  <dje@google.com>
567
568         * buildsym.h (param_symbols): Delete, unused.
569         (context_stack): Delete member "params", unused.
570         * buildsym.c (push_context): Update.
571         * dwarf2read.c (read_func_scope): Update.
572
573 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
574
575         * sh-tdep.c (sh_register_convert_to_virtual)
576         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
577         all callers.  Just do a memcpy if not the little-endian case.
578
579         * h8300-tdep.c (h8300_gdbarch_init): Invoke
580         set_gdbarch_double_format and set_gdbarch_long_double_format.
581         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
582         set_gdbarch_double_format.
583         * sh-tdep.c (sh_gdbarch_init): Likewise.
584
585         * NEWS: Document the removal of SH's 'regs' command.
586         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
587         command.
588
589 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
590
591         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
592         `jump'.
593
594 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
595
596         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
597         language when iterating over symbols.
598
599 2012-09-18  Yao Qi  <yao@codesourcery.com>
600
601         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
602         (mi_interpreter_init): Call observer_attach_tsv_created and
603         observer_attach_tsv_deleted.
604         (mi_tsv_created, mi_tsv_deleted): New.
605         * tracepoint.c (delete_trace_state_variable): Call
606         observer_notify_tsv_deleted.
607         (trace_variable_command): Call observer_notify_tsv_created.
608         (delete_trace_variable_command): Call
609         observer_notify_tsv_deleted.
610         (create_tsv_from_upload): Call observer_notify_tsv_created.
611         * NEWS: Mention it.
612
613 2012-09-18  Yao Qi  <yao@codesourcery.com>
614
615         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
616         if traceframe changed.
617         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
618         "trace-find".
619         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
620         (mi_interpreter_init): Hook mi_traceframe_changed to observer
621         'traceframe_changed'.
622         (mi_traceframe_changed): New.
623         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
624         New field.
625         * NEWS: Mention the new MI notification.
626
627 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
628
629         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
630
631 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
632
633         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
634         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
635         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
636         Extend code also for PaX support.  Convert all gdb_assert to warning
637         calls.
638
639 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
640
641         Implement auto-load user conveniences suggested by Doug Evans.
642         * auto-load.c: Include top.h.
643         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
644         (_initialize_auto_load): New variable scripts_directory_help.  Mention
645         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
646         scripts-directory.  Document in online help one can use also files for
647         set auto-load safe-path.
648         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
649         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
650
651 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
652
653         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
654         of LEN.
655
656 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
657
658         * m2-valprint.c (m2_print_array_contents): Eliminate variable
659         ELTLEN and use TYPE_LENGTH directly.
660         (m2_val_print): Likewise.
661         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
662         variable LEN and use TYPE_LENGTH directly.
663         (m68k_svr4_store_return_value): Likewise.
664         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
665         ARGLEN and use TYPE_LENGTH directly.
666         (mips_o64_push_dummy_call): Likewise.
667         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
668         variable LENGTH and use TYPE_LENGTH directly.
669         (s390_function_arg_float): Likewise.
670         (s390_function_arg_integer): Likewise.
671         (s390_push_dummy_call): Likewise.
672         (s390_return_value_convention): Likewise.
673         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
674         TYPE_LENGTH directly.
675
676 2012-09-17  Yao Qi  <yao@codesourcery.com>
677
678         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
679         Update comment to add_setshow_integer_cmd.
680         * cli/cli-setshow.c (do_set_command): Handle case
681         'var_zuinteger_unlimited'.
682         (do_show_command): Likewise.
683         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
684         for command 'remotetimeout'.
685         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
686         to var_integer.
687         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
688         for command 'set listsize'.
689
690 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
691
692         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
693         variable LEN.
694
695 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
696
697         PR 14119
698         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
699         (frame_pop): Drop also TAILCALL_FRAME frames.
700         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
701
702 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
703             Pedro Alves  <palves@redhat.com>
704
705         PR 14548
706         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
707         function start if we are already at function start.  Both for
708         reverse-next and for reverse-step into function without line number
709         info.
710
711 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
712
713         Code cleanup - rename 'inline' depth to 'artificial' depth.
714         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
715         frame_id_artificial_p, extend the comment.
716         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
717         * frame.c (fprint_frame_id): Rename at a user, change debug output
718         text to "artificial=".
719         (skip_inlined_frames): Rename to ...
720         (skip_artificial_frames): ... here.  Extend the comment.
721         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
722         (frame_id_inlined_p): Rename to ...
723         (frame_id_artificial_p): ... here.  Rename at a user.
724         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
725         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
726         at a user.
727         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
728         Extend the comment.
729         (frame_id_inlined_p): Rename to ...
730         (frame_id_artificial_p): ... here.
731         * inline-frame.c (inline_frame_this_id): Rename at a user.
732
733 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
734
735         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
736         vector variables using vector_size syntax rather than array
737         syntax.
738
739 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
740
741         * valarith.c (value_concat): Replace unsafe ALLOCA with
742         XMALLOC/XFREE.
743
744 2012-09-14  Pedro Alves  <palves@redhat.com>
745
746         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
747
748 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
749
750         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
751         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
752         data-directory as appropriate.
753
754 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
755
756         * printcmd.c (ui_printf): Eliminate single-use variable
757         PARAM_LEN.
758
759 2012-09-14  Yao Qi  <yao@codesourcery.com>
760             Pedro Alves  <palves@redhat.com>
761
762         * valops.c (value_assign): Move observer_notify_target_changed
763         below to replace reinit_frame_cache.
764
765 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
766
767         Refactor Python "gdb" module into a proper Python package, by
768         introducing a new "_gdb" module for code implemented in C, and
769         using reload/__import__ instead of exec.
770         * python/lib/gdb/__init__.py: Import * from _gdb.
771         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
772         prompt_hook, sys.argv): Moved from finish_python_initialization.
773         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
774         (packages, auto_load_packages): New list and function replacing
775         module_dict and auto-loading code, using __file__ instead of
776         gdb.PYTHONDIR and reload/__import__ instead of exec.
777         (GdbSetPythonDirectory): Replacing function of the same name
778         from finish_python_initialization, using reload/__import__ instead
779         of exec, as well as call auto_load_packages.
780         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
781         gdb_python_module and not gdb_module.
782         * python/python-internal.h (gdb_python_module): Declare.
783         * python/python.c (gdb_python_module): New global.
784         (before_prompt_hook): Check gdb_python_module and not gdb_module.
785         (_initialize_python): Rename gdb module to _gdb.
786         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
787         (finish_python_initialization): Move Python code to
788         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
789         __main__.
790
791 2012-09-13  Pedro Alves  <palves@redhat.com>
792
793         * Makefile.in (COMMON_OBS): Add registry.o.
794         * registry.c: New file.
795         * registry.h (struct registry_container): Declare.
796         (registry_data_callback): New typedef.
797         (struct registry_data, struct registry_data_registration, struct
798         registry_data_registry): New type.
799         (register_data_with_cleanup, registry_alloc_data)
800         (registry_callback_adaptor, registry_clear_data)
801         (registry_container_free_data, registry_set_data, registry_data):
802         Declare.
803         (DEFINE_REGISTRY): Refactor structures and functions as shims over
804         the new common structures and functions.
805         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
806         callback typedefs.
807
808 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
809
810         * remote.c (remote_insert_hw_breakpoint): Throw exception if
811         there is an error inserting hardware breakpoints and use the
812         error message from the target.
813
814         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
815         Catch this exception and print the error message contained within. Do not
816         print the default hardware error breakpoint message in this case.
817
818 2012-09-12  Doug Evans  <dje@google.com>
819
820         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
821         cu == NULL.
822
823 2012-09-11  Doug Evans  <dje@google.com>
824
825         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
826         .gdb_index symbol attributes if there are none.
827
828 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
829
830         * symtab.h (struct minimal_symbol) [has_size]: New field.
831         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
832         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
833         * printcmd.c (build_address_symbolic): Only filter out zero-sized
834         minimal symbols if the symbol's size is actually known.
835         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
836         of msymbol's size field.  Add comment.
837         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
838         SET_MSYMBOL_SIZE to set the minimal symbol size.
839
840 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
841
842         * minsyms.c (install_minimal_symbols): Use memset to fill entire
843         minimal_symbol struct object, rather than setting some of its
844         fields one by one.
845
846 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
847
848         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
849         passed_a_ptr flag when displaying typedef types.
850
851 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
852
853         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
854         the optimized_out flag is preserved.
855
856 2012-09-10  Anthony Green  <green@moxielogic.com>
857
858         * moxie-tdep.c (moxie_analyze_prologue): Update for function
859         prologue changes in GCC.
860
861 2012-09-10  Keith Seitz  <keiths@redhat.com>
862
863         PR gdb/13483
864         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
865         (BOOL_CONVERSION_BADNESS): ... this.
866         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
867         (rank_one_type): Allow all boolean conversions
868         permitted by the standard.
869
870 2012-09-06  Tom Tromey  <tromey@redhat.com>
871
872         * python/py-newobjfileevent.c (create_new_objfile_event_object):
873         Don't decref py_objfile.
874
875 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
876
877         Do not enable -lmcheck by default when Python is enabled with
878         threading support.
879         * configure.ac: (python_has_threads) New variable, by testing
880         if WITH_THREAD is defined in Python.h.
881         Move --enable-lmcheck after --with-python.
882         Do not enable -lmcheck by default if python_has_threads=yes.
883         Warn if --enable-lmcheck and python_has_threads=yes.
884         * configure: Regenerate.
885
886 2012-08-31  Yao Qi  <yao@codesourcery.com>
887
888         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
889         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
890         Update some commands.
891         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
892         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
893         to 1.
894
895 2012-08-31  Yao Qi  <yao@codesourcery.com>
896
897         * mi/mi-cmds.c (mi_cmds): Add 'static'.
898
899 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
900
901         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
902
903 2012-08-29  Doug Evans  <dje@google.com>
904
905         * main.c (print_gdb_help): Remove reference to
906         --use-deprecated-index-sections.
907
908 2012-08-28  Yao Qi  <yao@codesourcery.com>
909
910         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
911         (init_cmds): Call add_setshow_uinteger_cmd for command
912         'max-user-call-depth'.
913         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
914         declaration of 'max_user_call_depth'.
915         * frame.c (backtrace_limit): Add 'unsigned'.
916         (_initialize_frame): Call add_setshow_uinteger_cmd for command
917         'limit'.
918         * remote.c (remoteaddresssize): Add 'unsigned'.
919         (remote_address_masked): Change local var 'address_size' to
920         'unsigned'.
921         (_initialize_remote): Call add_setshow_uinteger_cmd for
922         'remoteaddresssize'.
923         * top.c (history_size): Add 'unsigned'.
924         (show_commands): Change local variables to 'unsigned'.
925         (set_history_size_command): Don't check history_size is negative.
926         Adjust the condition to call unstifle_history and set history_size
927         to UNIT_MAX.
928
929 2012-08-28  Pedro Alves  <palves@redhat.com>
930
931         PR gdb/14428
932
933         * infcmd.c (default_print_one_register_info): New, factored out
934         from default_print_registers_info.
935         (default_print_registers_info): Use it.  Mark value unavailable if
936         necessary.
937         (registers_info): Print user registers with
938         default_print_one_register_info.
939
940 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
941
942         PR tui/14486
943         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
944         is not NULL before referencing it.
945
946 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
947
948         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
949         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
950         original PC for it.
951
952 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
953             Jan Kratochvil  <jan.kratochvil@redhat.com>
954
955         * auto-load.c (auto_load_objfile_script): Rename to ...
956         (auto_load_objfile_script_1): ... here, change variable realname to
957         parameter realname, document it, add return value, add variable retval.
958         (auto_load_objfile_script): New function.
959
960 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
961
962         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
963         followed by a whitespace.
964
965 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
966
967         PR gdb/14494.
968         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
969         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
970         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
971         here.
972
973 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
974
975         * memattr.c (create_mem_region): Fix memory region overlapping
976         checking.
977
978 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
979
980         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
981         with xmalloc/cleanup.
982         * mt-tdep.c (mt_push_dummy_call): Likewise.
983         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
984         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
985
986 2012-08-24  Yao Qi  <yao@codesourcery.com>
987
988         * jv-exp.y (push_expression_name): Add "." at the end of error
989         message.
990
991 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
992
993         Document how to return from "python-interactive" to GDB.
994         * python/python.c (_initialize_python): Update documentation.
995
996 2012-08-23  Pedro Alves  <palves@redhat.com>
997
998         * infrun.c (_initialize_infrun) <handle command help text>:
999         Mention that multiple signals are supported.
1000
1001 2012-08-23  Pedro Alves  <palves@redhat.com>
1002
1003         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1004         string.
1005
1006 2012-08-23  Yao Qi  <yao@codesourcery.com>
1007
1008         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1009         (tfind_1): Don't call registers_changed, set_traceframe_num,
1010         and clear_traceframe_info.
1011         Call set_current_traceframe.
1012         (set_current_traceframe): call set_traceframe_num.
1013
1014 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1015
1016         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1017         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1018
1019 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1020
1021         Enable readline in Python in a GDB-specific way and block the
1022         standard Python readline module to prevent conflicts with GDB.
1023         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1024         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1025         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1026         * python/py-gdb-readline.c: New file.
1027         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1028         prototype.
1029         * python/python.c (_initialize_python): Call
1030         gdbpy_initialize_gdb_readline.
1031
1032 2012-08-22  Keith Seitz  <keiths@redhat.com>
1033
1034         * defs.h: Include build-gnulib/config.h
1035
1036 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1037
1038         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1039         and blx pc.
1040
1041 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1042
1043         Add a new "python-interactive" command that starts a standard
1044         Python interactive prompt with "pi" as alias, and add "py" as
1045         an alias to "python".
1046         * NEWS: Mention the new commands.
1047         * python/python.c (eval_python_command): New function.
1048         (python_interactive_command): For "python-interactive" with
1049         arguments, call eval_python_command.  For "python-interactive"
1050         without arguments, call PyRun_InteractiveLoop.
1051         (_initialize_python): Add "python-interactive" command with
1052         "pi" as alias, and add "py" as an alias to "python".
1053
1054 2012-08-22  Tom Tromey  <tromey@redhat.com>
1055
1056         * defs.h (quit_flag): Don't declare.
1057         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1058         (QUIT): Use new functions.
1059         * event-top.c (command_handler): Use clear_quit_flag.
1060         (handle_sigint): Use set_quit_flag.
1061         (async_request_quit): Use check_quit_flag.  Don't check
1062         immediate_quit.
1063         * exceptions.c (throw_exception): Use clear_quit_flag.
1064         * main.c (captured_main): Use clear_quit_flag.
1065         * python/python.c (clear_quit_flag, set_quit_flag)
1066         (check_quit_flag): New functions.
1067         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1068         clear_quit_flag.
1069         * remote.c (remote_wait_as): Use check_quit_flag,
1070         clear_quit_flag.
1071         (remote_start_remote): Call QUIT.
1072         * symfile.c (load_progress): Use check_quit_flag.
1073         * top.c (command_loop): Use clear_quit_flag.
1074         (command_line_input): Call QUIT.
1075         * utils.c (quit_flag): Conditionally define.
1076         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1077         functions.
1078         (prompt_for_continue): Call QUIT.  Use quit, not
1079         async_request_quit.
1080         * remote-mips.c (mips_expect_timeout): Call QUIT.
1081         * monitor.c (monitor_expect): Call QUIT.
1082
1083 2012-08-22  Tom Tromey  <tromey@redhat.com>
1084
1085         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1086         (async_init_signals): Update.
1087         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1088         (SIGWINCH_HANDLER_BODY): Remove.
1089
1090 2012-08-22  Tom Tromey  <tromey@redhat.com>
1091
1092         * jit.c (jit_object_close_impl): Don't malloc the objfile
1093         name.
1094         * objfiles.c (allocate_objfile): Don't malloc the objfile
1095         name.
1096         (free_objfile): Don't free the objfile name.
1097         * objfiles.h (struct objfile) <name>: Update comment.
1098         * symfile.c (reread_symbols): Fix reference counting.  Don't
1099         malloc objfile name.
1100
1101 2012-08-22  Tom Tromey  <tromey@redhat.com>
1102
1103         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1104         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1105         (symfile_bfd_open): Likewise.
1106         (generic_load): Likewise.
1107         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1108         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1109         gdb_bfd_open.
1110         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1111         Use gdb_bfd_open.
1112         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1113         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1114         (pmon_load_fast): Likewise.
1115         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1116         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1117         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1118         (macho_check_dsym): Likewise.
1119         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1120         (m32r_upload_command): Likewise.
1121         * gdb_bfd.h (gdb_bfd_cache): Declare.
1122         * gdb_bfd.c (struct gdb_bfd_data): New.
1123         (gdb_bfd_cache): New global.
1124         (struct gdb_bfd_cache_search): New.
1125         (hash_bfd): New function.
1126         (eq_bfd): Likewise.
1127         (gdb_bfd_open): Likewise.
1128         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1129         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1130         gdb_bfd_data.
1131         * exec.c (exec_file_attach): Use gdb_bfd_open.
1132         * dsrec.c (load_srec): Use gdb_bfd_open.
1133
1134 2012-08-22  Tom Tromey  <tromey@redhat.com>
1135
1136         * dwarf2read.c (macro_start_file): Update.
1137         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1138         (free_objfile_per_bfd_storage): Destroy macro_cache.
1139         (allocate_objfile, free_objfile): Update.
1140         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1141         New field.
1142         (struct objfile) <macro_cache>: Remove.
1143         * symfile.c (reread_symbols): Update.
1144         * symmisc.c (print_symbol_bcache_statistics): Update.
1145         (print_objfile_statistics): Update.
1146
1147 2012-08-22  Tom Tromey  <tromey@redhat.com>
1148
1149         * elfread.c (elf_symtab_read): Update.
1150         * objfiles.c (objfiles_bfd_data): New global.
1151         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1152         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1153         (allocate_objfile, free_objfile): Update.
1154         (_initialize_objfiles): Initialize objfiles_bfd_data.
1155         * objfiles.h (struct objfile_per_bfd_storage): New.
1156         (struct objfile) <per_bfd>: New field.
1157         <filename_cache>: Remove.
1158         (set_objfile_per_bfd): Declare.
1159         * symfile.c (reread_symbols): Update.  Call
1160         set_objfile_per_bfd.
1161         (allocate_symtab): Update.
1162         * symmisc.c (print_symbol_bcache_statistics): Update.
1163         (print_objfile_statistics): Print the size of the BFD obstack.
1164
1165 2012-08-22  Tom Tromey  <tromey@redhat.com>
1166
1167         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1168         * gdb_bfd.c: Use DEFINE_REGISTRY.
1169         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1170         (gdb_bfd_ref): Call bfd_alloc_data.
1171         (gdb_bfd_unref): Call bfd_free_data.
1172
1173 2012-08-22  Tom Tromey  <tromey@redhat.com>
1174
1175         * registry.h (struct registry_fields): New.
1176         (REGISTRY_FIELDS): Redefine.
1177         (REGISTRY_ACCESS_FIELD): New macro.
1178         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1179         functions.
1180
1181 2012-08-22  Tom Tromey  <tromey@redhat.com>
1182
1183         * auto-load.c (_initialize_auto_load): Update.
1184         * solib-svr4.c (_initialize_svr4_solib): Update
1185         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1186         * solib-darwin.c (_initialize_darwin_solib): Update.
1187         * registry.h: New file.
1188         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1189         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1190         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1191         (register_program_space_data_with_cleanup)
1192         (register_program_space_data, program_space_alloc_data)
1193         (clear_program_space_data, set_program_space_data)
1194         (program_space_data): Don't declare.
1195         * progspace.c: Use DEFINE_REGISTRY.
1196         (struct program_space_data, struct
1197         program_space_data_registration, struct
1198         program_space_data_registry, program_space_data_registry)
1199         (register_program_space_data_with_cleanup)
1200         (register_program_space_data, program_space_alloc_data)
1201         (program_space_free_data, clear_program_space_data)
1202         (set_program_space_data, program_space_data): Remove.
1203         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1204         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1205         (register_objfile_data_with_cleanup, register_objfile_data)
1206         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1207         declare.
1208         * objfiles.c: Use DEFINE_REGISTRY.
1209         (struct objfile_data, struct objfile_data_registration, struct
1210         objfile_data_registry, objfile_data_registry)
1211         (register_objfile_data_with_cleanup, register_objfile_data)
1212         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1213         (set_objfile_data, objfile_data): Remove.
1214         (_initialize_objfiles): Update.
1215         * jit.c (_initialize_jit): Update.
1216         * inflow.c (_initialize_inflow): Update.
1217         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1218         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1219         (register_inferior_data_with_cleanup, register_inferior_data)
1220         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1221         declare.
1222         * inferior.c: Use DEFINE_REGISTRY.
1223         (struct inferior_data, struct inferior_data_registration, struct
1224         inferior_data_registry, inferior_data_registry)
1225         (register_inferior_data_with_cleanup, register_inferior_data)
1226         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1227         (set_inferior_data, inferior_data): Remove.
1228         * auxv.c (_initialize_auxv): Update.
1229         * ada-lang.c (_initialize_ada_language): Update.
1230         * breakpoint.c (_initialize_breakpoint): Update.
1231         * i386-nat.c (i386_use_watchpoints): Update.
1232
1233 2012-08-22  Tom Tromey  <tromey@redhat.com>
1234
1235         * exec.c (exec_close, exec_file_attach): Update.
1236         (add_to_section_table): Initialize 'key' field.
1237         (add_target_sections, remove_target_sections): Add 'key' argument.
1238         * exec.h (add_target_sections, remove_target_sections): Add
1239         'key' argument.
1240         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1241         (reload_shared_libraries_1): Update.
1242         * target.h (struct target_section) <key>: New field.
1243
1244 2012-08-22  Tom Tromey  <tromey@redhat.com>
1245
1246         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1247
1248 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1249
1250         * symfile.c (allocate_symtab): Use host_address_to_string
1251         function instead of cast of pointer to long which is not
1252         compatible with x86_64-w64-mingw32 build.
1253
1254 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1255
1256         * mips-tdep.c (is_octeon): New function.
1257         (is_octeon_bbit_op): New function.
1258         (mips32_next_pc): Handle Octeon's bbit instructions.
1259         (mips32_instruction_has_delay_slot): Likewise.
1260
1261 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1262
1263         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1264         before the function.
1265
1266 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1267
1268         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1269
1270 2012-08-19  Keith Seitz  <keiths@redhat.com>
1271
1272         PR c++/14365
1273         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1274         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1275
1276 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1277
1278         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1279         The typo broke "make TAGS".
1280
1281 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1282
1283         GDB 7.5 released.
1284
1285 2012-08-17  Keith Seitz  <keiths@redhat.com>
1286
1287         PR c++/13356
1288         * gdbtypes.c (strict_type_checking): New variable.
1289         (show_strict_type_checking): New function.
1290         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1291         if strict type checking is disabled.
1292         (_initialize_gdbtypes): Add "check type" subcommand.
1293         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1294
1295 2012-08-17  Keith Seitz  <keiths@redhat.com>
1296
1297         * language.h (type_mode): Remove.
1298         (type_check): Remove.
1299         (struct language_defn): Remove la_type_check.
1300         (STRICT_TYPE): Remove unused macro.
1301         (type_error): Remove.
1302         * language.c (set_type_range_case): Renamed to ...
1303         (set_range_case): ... this.  Update all callers.
1304         Remove type_mode/type_check.
1305         (type_mode): Remove.
1306         (type_check): Remove.
1307         (show_type_command): Remove.
1308         (set_type_command): Remove.
1309         (language_info): Remove type checking output.
1310         (type_error): Remove unused function.
1311         (range_error): Update comment.
1312         (unknown_language_defn): Remove la_type_check.
1313         (auto_language_defn): Likewise.
1314         (local_language_defn): Likewise.
1315         (_initialize_language): Remove "check type" subcommand.
1316         * ada-lang.c (ada_language_defn): Remove la_type_check.
1317         * c-lang.c (c_language_defn): Likewise.
1318         (cplus_language_defn): Likewise.
1319         (asm_language_defn): Likewise.
1320         (minimal_language_defn): Likewise.
1321         * d-lang.c (d_language_defn): Likewise.
1322         * f-lang.c (f_language_defn): Likewise.
1323         * go-lang.c (go_language_defn): Likewise.
1324         * jv-lang.c (java_language_defn): Likewise.
1325         * m2-lang.c (m2_language_defn): Likewise.
1326         * objc-lang.c (objc_language_defn): Likewise.
1327         * opencl-lang.c (opencl_language_defn): Likewise.
1328         * p-lang.c (pascal_language_defn): Likewise.
1329
1330 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1331
1332         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1333
1334 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1335
1336         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1337         New function.
1338         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1339         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1340         to access the bsp and bspstore registers if not.
1341
1342 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1343
1344         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1345         * breakpoint.c (detach_breakpoints): Change pid parameter into
1346         a ptid.  Adjust code accordingly.
1347         * infrun.c (handle_inferior_event): Delete variable child_pid.
1348         Update call to detach_breakpoints to pass the child ptid for
1349         fork events.
1350         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1351         assert that inferior_ptid's lwp is zero.
1352         (linux_handle_extended_wait): Update call to detach_breakpoints.
1353         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1354         detach_breakpoints.
1355
1356 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1357
1358         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1359         parent, only call detach_breakpoints if tts.tts_event ==
1360         TTEVT_VFORK.
1361
1362 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1363
1364         * dwarf2-frame.c (dwarf2_frame_cache): Use
1365         get_frame_address_in_block instead of get_frame_pc as
1366         the bound for executing the frame's FDE.
1367
1368 2012-08-16  Yao Qi  <yao@codesourcery.com>
1369
1370         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1371         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1372         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1373         (c_type_print_varspec_suffix): Likewise.
1374         * eval.c (evaluate_subexp_standard): Likewise.
1375         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1376         (f_type_print_varspec_suffix): Likewise.
1377         * gdbtypes.c (is_scalar_type): Likewise.
1378         (recursive_dump_type): Likewise.
1379         * infcall.c (value_arg_coerce): Likewise.
1380         * m2-valprint.c (m2_val_print): Likewise.
1381         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1382         (pascal_type_print_varspec_suffix): Likewise.
1383         (pascal_type_print_base): Likewise.
1384         * p-valprint.c (pascal_val_print): Likewise.
1385         (pascal_val_print): Likewise.
1386         * valops.c (value_slice): Likewise.
1387         * valprint.c (scalar_type_p): Likewise.
1388         * valarith.c (value_bitstring_subscript): Remove.
1389         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1390         Remove comment on TYPE_CODE_BITSTRING.
1391
1392         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1393         TYPE_CODE_BITSTRING.
1394
1395         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1396         slot 0.
1397
1398 2012-08-16  Yao Qi  <yao@codesourcery.com>
1399
1400         * tracepoint.c (trace_find_none_command): Remove.
1401         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1402
1403 2012-08-16  Yao Qi  <yao@codesourcery.com>
1404
1405         * remote.c (handle_notification): Remove parameter 'length'.
1406         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1407
1408 2012-08-15  Keith Seitz  <keiths@redhat.com>
1409
1410         * gdbtypes.c (opaque_type_resolution): Make static.
1411         Add missing comment.
1412         (overload_debug): Add missing comment.
1413         (show_opaque_type_resolution): Likewise.
1414         (show_overload_debug): Likewise.
1415         (print_bit_vector): Remove unnecessary forward declaration.
1416         (print_arg_types): Likewise.
1417         (dump_fn_fieldlists): Likewise.
1418         (print_cplus_stuff): Likewise.
1419
1420 2012-08-15  Tom Tromey  <tromey@redhat.com>
1421
1422         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1423         (gdb_bfd_ref): Initialize new field.
1424         (gdb_bfd_unref): Unref the archive BFD.
1425         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1426         parent archive.
1427
1428 2012-08-15  Tom Tromey  <tromey@redhat.com>
1429
1430         PR python/14387:
1431         * python/py-bpevent.c (create_breakpoint_event_object): Update
1432         comment.
1433         * python/py-event.c (evpy_add_attribute): Update comment.
1434         * python/py-exitedevent.c (create_exited_event_object): Fix
1435         reference counting and error handling.
1436         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1437         Fix reference counting.
1438         * python/py-signalevent.c (create_signal_event_object): Fix
1439         reference counting and error handling.
1440         * python/py-stopevent.c (emit_stop_event): Fix reference
1441         counting.
1442         * python/py-threadevent.c (get_event_thread): Return a
1443         borrowed reference.
1444         * python/py-type.c (convert_field): Fix reference counting.
1445
1446 2012-08-15  Tom Tromey  <tromey@redhat.com>
1447
1448         * dwarf2read.c (dwarf_decode_macro_bytes)
1449         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1450         as hash key.
1451
1452 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1453
1454         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1455         stepi, nexti, finish, next, step, jump, and continue commands.
1456         * infrun.c (_initialize_infrun): Update help text for the handle
1457         command.
1458
1459 2012-08-14  Doug Evans  <dje@google.com>
1460
1461         * gdbtypes.c (struct extra): Delete, unused.
1462
1463         * gdbtypes.c: Whitespace cleanup.
1464         (address_space_name_to_int): Remove "extern" from definition.
1465         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1466
1467         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1468         TYPE_POINTER_TYPE (type).
1469
1470 2012-08-14  Gary Benson  <gbenson@redhat.com>
1471
1472         * solib-svr4.c (svr4_free_library_list): Use free_so.
1473
1474 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1475
1476         * .gitignore: Add go-exp.c.
1477
1478 2012-08-13  Doug Evans  <dje@google.com>
1479
1480         * value.c (show_convenience): Tweak comment.
1481         (_initialize_values): Mention convenience functions in the help text
1482         for "show convenience".
1483
1484 2012-08-13  Yao Qi  <yao@codesourcery.com>
1485
1486         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1487         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1488         TERNOP_SLICE_COUNT.
1489         * eval.c (evaluate_subexp_standard): Likewise.
1490         * expprint.c (print_subexp_standard): Likewise.
1491         (dump_subexp_body_standard): Likewise.
1492         * parse.c (operator_length_standard): Likewise.
1493
1494 2012-08-13  Yao Qi  <yao@codesourcery.com>
1495
1496         * std-operator.def: Remove OP_BITSTRING.
1497         * breakpoint.c (watchpoint_exp_is_const): Update.
1498         * eval.c (evaluate_subexp_standard): Remove handling to
1499         OP_BITSTRING.
1500         * expprint.c (print_subexp_standard): Likewise.
1501         (dump_subexp_body_standard): Likewise.
1502         * parse.c (operator_length_standard): Likewise.
1503         * valops.c (value_bitstring): Remove.
1504         * value.h: Remove the declaration of 'value_bitstring'.
1505
1506 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1507
1508         * linespec.c (find_methods): Remove unused variables `i1' and
1509         `name_len'.
1510         (decode_line_full): Likewise for `arg_start'.
1511
1512 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1513
1514         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1515         (zlib_decompress_section): Likewise for `section_data'.
1516         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1517
1518 2012-08-10  Doug Evans  <dje@google.com>
1519
1520         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1521         * NEWS: Document them.
1522         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1523         function/strfns.py.
1524         * python/py-type.c (typy_array_1): New function.
1525         (typy_array): Call it.
1526         (typy_vector): New function.
1527         (type_object_methods): Add "vector".
1528         * python/lib/gdb/function/__init__.py: New file.
1529         * python/lib/gdb/function/strfns.py: New file.
1530
1531 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1532
1533         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1534         for TYPE_FIELD_BITPOS.
1535         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1536
1537 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1538
1539         PR cli/10436:
1540         * common/vec.h (VEC_merge): Define.
1541         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1542         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1543         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1544         * completer.c: Include gdb_signals.h.
1545         (signal_completer): Define.
1546         * completer.h (signal_completer): Add prototype.
1547         * infcmd.c (_initialize_infcmd): Assign the command
1548         completer for "signal" to handle_completer.
1549         * infrun.c: Include completer.h.
1550         (handle_completer): Define.
1551         (_initialize_infrun): Declare a new local variable c.  Store the
1552         result of add_com("handle") to it.  Assign the command
1553         completer for "handle" to handle_completer.
1554
1555 2012-08-09  Yao Qi  <yao@codesourcery.com>
1556
1557         * cli/cli-decode.c (set_cmd_prefix): New.
1558         (lookup_cmd_for_prefixlist): New.
1559         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1560         of each cmd_list_element in *prefixlist.
1561         (add_setshow_cmd_full): set_cmd_prefix.
1562         (add_alias_cmd): Likewise.
1563         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1564         Declare 'auto_boolean_enums'.
1565         * cli/cli-setshow.c: Include "observer.h".
1566         (notify_command_param_changed_p): New.
1567         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1568         Remove 'static'.
1569         (do_setshow_command): Split it to ...
1570         (do_set_command, do_show_command): ... them.  New.
1571         (do_set_command): Call observer_notify_command_param_changed if
1572         notify_command_param_changed_p returns true.
1573         (cmd_show_list): Caller update.
1574         * auto-load.c (set_auto_load_cmd): Likewise.
1575         * remote.c (show_remote_cmd): Likewise.
1576         * cli/cli-setshow.h: Update declarations.
1577         * top.c (execute_command): Call do_set_command and do_show_command.
1578
1579         * NEWS: Mention new MI notification.
1580         * mi/mi-interp.c: Declare mi_command_param_changed.
1581         (mi_interpreter_init): Attach mi_command_param_changed to
1582         observer command_param_changed.
1583         (mi_command_param_changed): New.
1584         Remove mi_suppress_breakpoint_notifications.
1585         Define global variable mi_suppress_notification.
1586         (mi_breakpoint_created): Update.
1587         (mi_breakpoint_deleted): Likewise.
1588         (mi_breakpoint_modified): Likewise.
1589         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1590         'gdb-set' and set mi_suppress_notification.
1591         * mi/mi-main.h: (mi_suppress_notification): New struct.
1592
1593 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1594             Jan Kratochvil  <jan.kratochvil@redhat.com>
1595
1596         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1597
1598 2012-08-09  Yao Qi  <yao@codesourcery.com>
1599
1600         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1601         (skiplist): Move it to skip.c.
1602         (init_cmd_lists): Remove code setting enablebreaklist and
1603         skiplist to NULL.
1604         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1605         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1606         skiplist.
1607         * gdbcmd.h: Likewise.
1608         * skip.c (_initialize_step_skip): Move 'skiplist' from
1609         cli/cli-cmds.c.
1610
1611 2012-08-09  Yao Qi  <yao@codesourcery.com>
1612
1613         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1614         * gnu-nat.c, symfile.c: Likewise.
1615
1616 2012-08-08  Aaron Gamble  <agamble@google.com>
1617
1618         * utils.c (prompt_for_continue_wait_time): New static global.
1619         (make_command_stats_cleanup): Initialize it.
1620         (report_command_stats): Subtract time waiting for user.
1621         (prompt_for_continue): Track time waiting for user.
1622         (defaulted_query): Track time waiting for user.
1623
1624 2012-08-08  Doug Evans  <dje@google.com>
1625
1626         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1627         UNOP_MEMVAL_TYPE.
1628         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1629         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1630         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1631         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1632         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1633         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1634         elt.
1635         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1636         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1637         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1638         (dump_prefix_expression): Handle OP_TYPE.
1639
1640 2012-08-08  Keith Seitz  <keiths@redhat.com>
1641
1642         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1643         addr_start.
1644
1645 2012-08-08  Doug Evans  <dje@google.com>
1646
1647         * linux-thread-db.c: #include "gdb_vecs.h".
1648         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1649         updated.
1650         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1651         (thread_db_load_search): Use a vector to iterate over path elements.
1652         Handle text appearing after "$pdir".
1653
1654         * gdb_string.h: Moved to ...
1655         * common/gdb_string.h: ... here.
1656         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1657         gdb_string.h and gdb_assert.h.
1658
1659 2012-08-08  Yao Qi  <yao@codesourcery.com>
1660
1661         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1662         (tic6x_value_to_register): Likewise.
1663         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1664         and set_gdbarch_value_to_register.
1665
1666 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1667             Jean-Marc Saffroy  <saffroy@gmail.com>
1668
1669         PR 11804
1670         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1671         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1672         * gcore.c (gcore_create_callback): New function comment.  Add modified
1673         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1674         according to MODIFIED.
1675         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1676         the passed modified value to FUNC.
1677         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1678         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1679         first.  New variables modified and has_anonymous.  Parse the lines of
1680         smaps file.  Add the passed MODIFIED value to FUNC.
1681         * procfs.c (find_memory_regions_callback): Add the passed modified
1682         value.
1683
1684 2012-08-06  Tom Tromey  <tromey@redhat.com>
1685
1686         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1687         (dwarf2_frame_cache): Use it.
1688         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1689         cache initialization constraint.
1690
1691 2012-08-06  Tom Tromey  <tromey@redhat.com>
1692
1693         PR python/14386:
1694         * varobj.c (update_dynamic_varobj_children): Don't call
1695         PyIter_Check.
1696
1697 2012-08-06  Tom Tromey  <tromey@redhat.com>
1698
1699         PR cli/14392:
1700         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1701
1702 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1703
1704         * NEWS: New entry for 'cd' default parameters.
1705         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1706
1707 2012-08-03  Tom Tromey  <tromey@redhat.com>
1708
1709         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1710         return.
1711
1712 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1713
1714         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1715         to attempting lseek/write.
1716         (inf_child_fileio_pread): Likewise for pread.
1717
1718 2012-08-02  Yao Qi  <yao@codesourcery.com>
1719
1720         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1721         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1722         add_setshow_zinteger_cmd.
1723         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1724         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1725         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1726         instead of add_setshow_zinteger_cmd.
1727         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1728         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1729         instead of add_setshow_zinteger_cmd.
1730         * frame.c (frame_debug): Add 'unsigned'.
1731         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1732         add_setshow_zinteger_cmd.
1733         * frame.h: Update the declaration of 'frame_debug'.
1734         * gdbtypes.c (overload_debug): Add 'unsigned'.
1735         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1736         add_setshow_zinteger_cmd.
1737         * inferior.h: Update declaration of 'debug_infrun'.
1738         * infrun.c (debug_infrun): Add 'unsigned'.
1739         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1740         add_setshow_zinteger_cmd.
1741         * jit.c (jit_debug): Add 'unsigned'.
1742         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1743         add_setshow_zinteger_cmd.
1744         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1745         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1746         instead of add_setshow_zinteger_cmd.
1747         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1748         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1749         add_setshow_zinteger_cmd.
1750         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1751         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1752         instead of add_setshow_zinteger_cmd.
1753         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1754         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1755         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1756         intead of add_setshow_zinteger_cmd.
1757         * mips-tdep.c (mips_debug): Add 'unsigned'.
1758         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1759         instead of add_setshow_zinteger_cmd.
1760         * monitor.c (monitor_debug): Add 'unsigned'.
1761         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1762         add_setshow_zinteger_cmd.
1763         * observer.c (observer_debug): Add 'unsigned'.
1764         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1765         add_setshow_zinteger_cmd.
1766         * parse.c (expressiondebug): Add 'unsigned'.
1767         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1768         add_setshow_zinteger_cmd.
1769         * record.c (record_debug): Add 'unsigned'.
1770         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1771         add_setshow_zinteger_cmd.
1772         * record.h: Update the declaration of 'record_debug'.
1773         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1774         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1775         add_setshow_zinteger_cmd.
1776         * serial.c (global_serial_debug_p): Add 'unsigned'.
1777         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1778         add_setshow_zinteger_cmd.
1779         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1780         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1781         add_setshow_zinteger_cmd.
1782         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1783         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1784         add_setshow_zinteger_cmd.
1785         * target.c (targetdebug): Add 'unsigned'.
1786         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1787         add_setshow_zinteger_cmd.
1788         * valops.c (overload_debug): Add 'unsigned'.
1789         * varobj.c (varobjdebug): Add 'unsigned'.
1790         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1791         add_setshow_zinteger_cmd.
1792         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1793         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1794         instead of add_setshow_zinteger_cmd.
1795
1796         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1797         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1798         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1799         instead of add_setshow_zinteger_cmd.
1800         * gdbarch.c, gdbarch.h: Re-generated.
1801
1802 2012-08-02  Yao Qi  <yao@codesourcery.com>
1803
1804         * nto-tdep.c: Don't include cli/cli-decode.h and
1805         cli/cli-cmds.h.
1806         (_initialize_nto_tdep): Remove.
1807         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1808         Remove field.
1809         Remove macro nto_internal_debugging.
1810
1811 2012-08-01  Richard Henderson  <rth@redhat.com>
1812
1813         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1814         (mep-*-*) [gdb_target_obs]: Likewise.
1815
1816 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
1817
1818         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1819         linux_get_siginfo_type.
1820
1821 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1822
1823         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1824         AT_ENTRY_POINT.
1825         (call_function_by_hand) <ON_STACK>: Call write_memory with
1826         gdbarch_breakpoint_from_pc, if possible.
1827         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1828         here.
1829
1830 2012-07-31  Yao Qi  <yao@codesourcery.com>
1831
1832         * tracepoint.c: Add 'static' for some variables.
1833
1834 2012-07-31  Yao Qi  <yao@codesourcery.com>
1835
1836         * go32-nat.c: Declare _initialize_go32_nat.
1837         * ser-go32.c: Declare _initialize_ser_dos.
1838         * top.c (do_chdir_cleanup): Add 'static'.
1839
1840 2012-07-30  Keith Seitz  <keiths@redhat.com>
1841
1842         * linespec.c (linespec_lex_number): A number followed
1843         by quotes is a valid number, too.
1844
1845 2012-07-30  Tom Tromey  <tromey@redhat.com>
1846
1847         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1848
1849 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
1850
1851         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1852         attempt to 4-byte-align HW breakpoint addresses for Thumb.
1853
1854 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
1855
1856         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1857         invalid or reevaluated to prevent prevent references to possibly
1858         delete'd type objects being left in the varobj.
1859
1860 2012-07-27  Tom Tromey  <tromey@redhat.com>
1861             Jan Kratochvil  <jan.kratochvil@redhat.com>
1862
1863         * copying.awk: Print buffer-read-only and vi ro markers.
1864         * copying.c: Rebuild.
1865         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1866         * gdbarch.c, gdbarch.h: Rebuild.
1867         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1868         buffer-read-only and vi ro markers.
1869         * features/arm-with-iwmmxt.c: Rebuild.
1870         * features/arm-with-m-fpa-layout.c: Rebuild.
1871         * features/arm-with-m-vfp-d16.c: Rebuild.
1872         * features/arm-with-m.c: Rebuild.
1873         * features/arm-with-neon.c: Rebuild.
1874         * features/arm-with-vfpv2.c: Rebuild.
1875         * features/arm-with-vfpv3.c: Rebuild.
1876         * features/i386/amd64-avx-linux.c: Rebuild.
1877         * features/i386/amd64-avx.c: Rebuild.
1878         * features/i386/amd64-linux.c: Rebuild.
1879         * features/i386/amd64.c: Rebuild.
1880         * features/i386/i386-avx-linux.c: Rebuild.
1881         * features/i386/i386-avx.c: Rebuild.
1882         * features/i386/i386-linux.c: Rebuild.
1883         * features/i386/i386-mmx-linux.c: Rebuild.
1884         * features/i386/i386-mmx.c: Rebuild.
1885         * features/i386/i386.c: Rebuild.
1886         * features/i386/x32-avx-linux.c: Rebuild.
1887         * features/i386/x32-avx.c: Rebuild.
1888         * features/i386/x32-linux.c: Rebuild.
1889         * features/i386/x32.c: Rebuild.
1890         * features/mips-dsp-linux.c: Rebuild.
1891         * features/mips-linux.c: Rebuild.
1892         * features/mips64-dsp-linux.c: Rebuild.
1893         * features/mips64-linux.c: Rebuild.
1894         * features/rs6000/powerpc-32.c: Rebuild.
1895         * features/rs6000/powerpc-32l.c: Rebuild.
1896         * features/rs6000/powerpc-403.c: Rebuild.
1897         * features/rs6000/powerpc-403gc.c: Rebuild.
1898         * features/rs6000/powerpc-405.c: Rebuild.
1899         * features/rs6000/powerpc-505.c: Rebuild.
1900         * features/rs6000/powerpc-601.c: Rebuild.
1901         * features/rs6000/powerpc-602.c: Rebuild.
1902         * features/rs6000/powerpc-603.c: Rebuild.
1903         * features/rs6000/powerpc-604.c: Rebuild.
1904         * features/rs6000/powerpc-64.c: Rebuild.
1905         * features/rs6000/powerpc-64l.c: Rebuild.
1906         * features/rs6000/powerpc-7400.c: Rebuild.
1907         * features/rs6000/powerpc-750.c: Rebuild.
1908         * features/rs6000/powerpc-860.c: Rebuild.
1909         * features/rs6000/powerpc-altivec32.c: Rebuild.
1910         * features/rs6000/powerpc-altivec32l.c: Rebuild.
1911         * features/rs6000/powerpc-altivec64.c: Rebuild.
1912         * features/rs6000/powerpc-altivec64l.c: Rebuild.
1913         * features/rs6000/powerpc-cell32l.c: Rebuild.
1914         * features/rs6000/powerpc-cell64l.c: Rebuild.
1915         * features/rs6000/powerpc-e500.c: Rebuild.
1916         * features/rs6000/powerpc-e500l.c: Rebuild.
1917         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1918         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1919         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1920         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1921         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1922         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1923         * features/rs6000/powerpc-vsx32.c: Rebuild.
1924         * features/rs6000/powerpc-vsx32l.c: Rebuild.
1925         * features/rs6000/powerpc-vsx64.c: Rebuild.
1926         * features/rs6000/powerpc-vsx64l.c: Rebuild.
1927         * features/rs6000/rs6000.c: Rebuild.
1928         * features/s390-linux32.c: Rebuild.
1929         * features/s390-linux32v1.c: Rebuild.
1930         * features/s390-linux32v2.c: Rebuild.
1931         * features/s390-linux64.c: Rebuild.
1932         * features/s390-linux64v1.c: Rebuild.
1933         * features/s390-linux64v2.c: Rebuild.
1934         * features/s390x-linux64.c: Rebuild.
1935         * features/s390x-linux64v1.c: Rebuild.
1936         * features/s390x-linux64v2.c: Rebuild.
1937         * features/tic6x-c62x-linux.c: Rebuild.
1938         * features/tic6x-c62x.c: Rebuild.
1939         * features/tic6x-c64x-linux.c: Rebuild.
1940         * features/tic6x-c64x.c: Rebuild.
1941         * features/tic6x-c64xp-linux.c: Rebuild.
1942         * features/tic6x-c64xp.c: Rebuild.
1943
1944 2012-07-27  Tom Tromey  <tromey@redhat.com>
1945
1946         * c-exp.y (classify_name): Avoid assignment in condition.
1947
1948 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
1949
1950         * amd64-windows-tdep.c: Include "frame.h".
1951         (amd64_windows_skip_trampoline_code): New function.
1952         (amd64_windows_init_abi): Add trampoline registration.
1953
1954 2012-07-27  Yao Qi  <yao@codesourcery.com>
1955
1956         * tracepoint.c (cur_traceframe_number): Remove.
1957         (set_tfile_traceframe): Remove.
1958         (tfile_trace_find, tfile_fetch_registers): Update callers.
1959         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1960         (tfile_open, tfile_trace_find): Likewise.
1961
1962 2012-07-27  Yao Qi  <yao@codesourcery.com>
1963
1964         * thread.c (switch_to_thread): Don't call registers_changed.
1965
1966 2012-07-26  Tom Tromey  <tromey@redhat.com>
1967
1968         * Makefile.in (SFILES): Remove objc-exp.y.
1969         (YYFILES): Remove objc-exp.c.
1970         (YYOBJ): Remove objc-exp.o.
1971         (local-maintainer-clean): Don't mention objc-exp.c.
1972         * c-exp.y: Include objc-lang.h.
1973         (%union) <class>: New field.
1974         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1975         (exp): Clone subscript production for OBJC_LBRAC.  Add various
1976         Objective C productions.
1977         (msglist, msgarglist, msgarg): New productions.
1978         (array_mod, func_mod, operator): Clone productions for
1979         OBJC_LBRAC.
1980         (parse_string_or_char): Handle '@' strings.
1981         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
1982         (classify_name): Check la_name_of_this.  Recognize ObjC class
1983         names.
1984         * objc-exp.y: Remove.
1985         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1986         * objc-lang.h (objc_parse, objc_error): Don't declare.
1987
1988 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
1989
1990         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1991
1992 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1993
1994         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1995         and decrement.
1996
1997 2012-07-26  Tom Tromey  <tromey@redhat.com>
1998
1999         * copying.c: Rebuild.
2000         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2001         'no_class'.
2002
2003 2012-07-26  Tom Tromey  <tromey@redhat.com>
2004
2005         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2006         immediate_quit.
2007         (print_objfile_statistics): Likewise.
2008         (maintenance_print_symbols): Likewise.
2009         (maintenance_print_msymbols): Likewise.
2010         (maintenance_print_objfiles): Likewise.
2011         * psymtab.c (print_partial_symbols): Call QUIT.
2012         (maintenance_print_psymbols): Likewise.  Don't modify
2013         immediate_quit.
2014         * copying.c (show_copying_command): Don't modify immediate_quit.
2015         (show_warranty_command): Likewise.
2016         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2017
2018 2012-07-26  Keith Seitz  <keiths@redhat.com>
2019
2020         * linespec.c (linespec_lexer_lex_number): The input
2021         is also a valid number if the next character is a comma
2022         or colon.
2023
2024 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2025
2026         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2027         configure options.
2028
2029 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2030
2031         * machoread.c: Include gdb_bfd.h.
2032
2033 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2034
2035         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2036         offset.
2037
2038 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2039
2040         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2041         SIZE to size_t.
2042         (dwarf2_evaluate_loc_desc): Likewise.
2043         (dwarf2_loc_desc_needs_frame): Likewise.
2044         (locexpr_describe_location_1): Likewise.
2045         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2046         size_t.
2047         (struct dwarf2_loclist_baton): Likewise.
2048         * dwarf2read.c (struct dwarf_block): Likewise.
2049         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2050         (decode_locdesc): Expand SIZE and I to size_t.
2051
2052 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2053
2054         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2055
2056 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2057
2058         * doublest.c (convert_doublest_to_floatformat): If the exponent
2059         is too small, treat the value as zero.  If the exponent is too
2060         large, treat the value as infinity.
2061
2062 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2063
2064         * configure.ac: Add --enable-lmcheck configure option.
2065         * configure: Regenerate.
2066
2067 2012-07-25  Tom Tromey  <tromey@redhat.com>
2068
2069         * NEWS: Mention maint info bfds.
2070         * gdb_bfd.c (all_bfds): New global.
2071         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2072         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2073         New functions.
2074
2075 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2076
2077         * configure.tgt: Add v850*-*-rtems*.
2078
2079 2012-07-25  Tom Tromey  <tromey@redhat.com>
2080
2081         * macrotab.c (macro_bcache_str): Remove cast.
2082
2083 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2084
2085         * linespec.c (linespec_lexer_lex_number): Update comments,
2086         change the return and add check to make sure the input is
2087         the decimal numbers.
2088         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2089         false, call linespec_lexer_lex_string.
2090
2091 2012-07-24  Tom Tromey  <tromey@redhat.com>
2092
2093         * symfile.c (symbol_file_add): Don't open BFD twice.
2094
2095 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2096
2097         * breakpoint.c (create_breakpoint): Store condition for pending
2098         breakpoints.
2099
2100 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2101
2102         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2103         (m68k_return_value): Handle complex types like structures.
2104         (m68k_svr4_return_value): Likewise.
2105
2106 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2107
2108         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2109         parameters to bfd_get_section_name.
2110
2111 2012-07-24  Yao Qi  <yao@codesourcery.com>
2112
2113         * cli/cli-setshow.c: Handle case 'var_uinteger'
2114         and 'var_zuninteger' together.  Handle case 'var_integer' and
2115         'var_zinteger' together.
2116
2117 2012-07-23  Keith Seitz  <keiths@redhat.com>
2118
2119         * linespec.c (convert_linespec_to_sal): Don't add
2120         any symbols to the result vector if symbol_to_sal
2121         returns zero.
2122
2123 2012-07-23  Keith Seitz  <keiths@redhat.com>
2124
2125         * linespec.c (decode_objc): Record the function name
2126         in the linespec.
2127
2128 2012-07-23  Tom Tromey  <tromey@redhat.com>
2129
2130         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2131         counting.
2132         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2133         (map_vmap): Acquire a reference to the BFD.
2134
2135 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2136
2137         * p-valprint.c (pascal_object_print_value): Replace potentially
2138         unsafe alloca with xmalloc/xfree.
2139         * valops.c (search_struct_method): Likewise.
2140
2141 2012-07-23  Tom Tromey  <tromey@redhat.com>
2142
2143         * solib-svr4.c (enable_break): Update.
2144         * bfd-target.h (target_bfd_reopen): Update documentation.
2145
2146 2012-07-23  Tom Tromey  <tromey@redhat.com>
2147
2148         * symfile.c (separate_debug_file_exists): Update.
2149         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2150         (reread_symbols): Update.
2151         * elfread.c (build_id_verify): Update.
2152         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2153         bfd_open_maybe_remote.
2154
2155 2012-07-23  Tom Tromey  <tromey@redhat.com>
2156
2157         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2158
2159 2012-07-23  Tom Tromey  <tromey@redhat.com>
2160
2161         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2162         and 'abfd'.
2163         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2164         and 'abfd'.
2165         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2166         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2167         'abfd'.
2168         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2169         * objfiles.c (allocate_objfile): Acquire a new reference.
2170         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2171         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2172         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2173         a cleanup for 'nbfd'.
2174         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2175         for 'nbfd'.
2176         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2177         make a cleanup for 'abfd'.
2178         (symbol_file_add): Make a BFD cleanup.
2179
2180 2012-07-23  Tom Tromey  <tromey@redhat.com>
2181
2182         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2183         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2184         * corelow.c (core_open): Use gdb_bfd_fopen.
2185         * dsrec.c (load_srec): Use gdb_bfd_openr.
2186         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2187         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2188         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2189         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2190         (gdb_bfd_fdopenr): New functions.
2191         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2192         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2193         (gdb_bfd_fdopenr): Declare.
2194         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2195         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2196         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2197         gdb_bfd_openr_next_archived_file.
2198         (macho_check_dsym): Use gdb_bfd_openr.
2199         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2200         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2201         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2202         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2203         gdb_bfd_openr.
2204         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2205         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2206         gdb_bfd_openr_next_archived_file.
2207         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2208         Use gdb_bfd_openr.
2209         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2210         gdb_bfd_openr.
2211         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2212         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2213         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2214         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2215         (symfile_bfd_open): Use gdb_bfd_fopen.
2216         (generic_load): Use gdb_bfd_openr.
2217         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2218
2219 2012-07-23  Tom Tromey  <tromey@redhat.com>
2220
2221         * bfd-target.c (target_bfd_reopen): Update.
2222         * cli/cli-dump.c (bfd_openr_with_cleanup)
2223         (bfd_openw_with_cleanup): Update.
2224         * corelow.c (core_open): Update.
2225         * dsrec.c (load_srec): Update.
2226         * exec.c (exec_file_attach): Update.
2227         * gcore.c (create_gcore_bfd): Update.
2228         * gdb_bfd.c (gdb_bfd_ref): Return void.
2229         (gdb_bfd_open): Update.
2230         * gdb_bfd.h (gdb_bfd_ref): Return void.
2231         Update comments.
2232         * jit.c (jit_bfd_try_read_symtab): Update.
2233         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2234         * machoread.c (macho_symfile_read_all_oso): Update.
2235         (macho_check_dsym): Update.
2236         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2237         * remote-m32r-sdi.c (m32r_load): Update.
2238         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2239         * rs6000-nat.c (add_vmap): Update.
2240         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2241         Update.
2242         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2243         * solib-spu.c (spu_bfd_open): Update.
2244         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2245         * spu-linux-nat.c (spu_bfd_open): Update.
2246         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2247         (generic_load): Update.
2248         * windows-nat.c (windows_make_so): Update.
2249
2250 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2251
2252         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2253
2254 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2255
2256         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2257         SIGTRAMP_FRAME unwinding.
2258
2259 2012-07-20  Doug Evans  <dje@google.com>
2260
2261         * NEWS: Document new options "set/show use-deprecated-index-sections",
2262         and delete reference to --use-deprecated-index-sections.
2263         * symfile.h (use_deprecated_index_sections): Delete.
2264         * dwarf2read.c (use_deprecated_index_sections): Make static.
2265         (read_index_from_section): Update wording of how to load
2266         deprecated index sections.
2267         (_initialize_dwarf2_read): New options
2268         "set/show use-deprecated-index-sections".
2269         * main.c (captured_main): Delete --use-deprecated-index-sections.
2270
2271 2012-07-20  Pedro Alves  <palves@redhat.com>
2272
2273         PR threads/11692
2274         PR gdb/12203
2275
2276         * infrun.c (handle_inferior_event) <new thread>: Don't special
2277         case minus_one_ptid.
2278         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2279         * linux-thread-db.c (thread_get_info_callback): Don't return early
2280         if the thread is zombie.
2281         (thread_from_lwp): Change return type to void.  Rewrite stale
2282         comment.
2283         (attach_thread): Don't return early if the thread is zombie,
2284         instead set its "dying" flag.
2285         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2286         (find_new_threads_callback): Don't return early if the thread is
2287         zombie.
2288
2289 2012-07-20  Pedro Alves  <palves@redhat.com>
2290
2291         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2292         * target.c (target_wait): Likewise.
2293         (str_comma_list_concat_elem, do_option, target_options_to_string):
2294         New functions.
2295         * target.h (target_options_to_string): Declare.
2296
2297 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2298             Tom Tromey  <tromey@redhat.com>
2299
2300         * dwarf2read.c (dwarf_decode_macros)
2301         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2302         DW_MACRO_GNU_transparent_include_alt>: New cases.
2303         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2304         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2305
2306 2012-07-20  Tom Tromey  <tromey@redhat.com>
2307
2308         * dwarf2read.c (try_open_dwo_file): Don't call
2309         gdb_bfd_stash_filename.
2310
2311 2012-07-20  Pedro Alves  <palves@redhat.com>
2312
2313         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2314         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2315         (i386_process_record): Tweak description comments.
2316
2317 2012-07-20  Pedro Alves  <palves@redhat.com>
2318
2319         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2320         (i386_process_record): Use record_read_memory.
2321         * record.c (record_read_memory): New function.
2322         (record_arch_list_add_mem, record_exec_insn): Use
2323         record_read_memory.
2324         * record.h (record_read_memory): Declare.
2325
2326 2012-07-20  Yao Qi  <yao@codesourcery.com>
2327
2328         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2329         NULL for xfree.
2330
2331 2012-07-19  Pedro Alves  <palves@redhat.com>
2332
2333         * record.c (record_resume): Ask the target beneath to report all
2334         signals.
2335
2336 2012-07-19  Doug Evans  <dje@google.com>
2337
2338         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2339         there's no section at address zero.
2340         (dwarf2_record_block_ranges): Ditto.
2341
2342 2012-07-19  Yao Qi  <yao@codesourcery.com>
2343
2344         * command.h, remote.c: Fix a typo in comment.
2345
2346 2012-07-19  Tom Tromey  <tromey@redhat.com>
2347
2348         PR exp/13206:
2349         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2350         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2351         OP_DECLTYPE>: New cases.
2352         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2353         (type_exp): Add new productions.
2354         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2355         and decltype.
2356         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2357         New case.
2358         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2359         OP_DECLTYPE>: New case.
2360         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2361         New case.
2362         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2363         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2364
2365 2012-07-19  Tom Tromey  <tromey@redhat.com>
2366
2367         * c-exp.y (enum token_flags): New.
2368         (struct token) <cxx_only>: Remove.
2369         <flags>: New field.
2370         (tokentab3, tokentab2, ident_tokens): Update.
2371         (lex_one_token): Update.  Handle FLAG_SHADOW.
2372
2373 2012-07-19  Tom Tromey  <tromey@redhat.com>
2374
2375         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2376         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2377         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2378         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2379         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2380         type_exp production where appropriate.
2381         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2382         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2383         <UNOP_MEMVAL_TYPE>: New case.
2384         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2385         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2386         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2387         <UNOP_MEMVAL_TYPE>: New case.
2388         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2389         UNOP_REINTERPRET_CAST>: Update.
2390         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2391         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2392         UNOP_REINTERPRET_CAST>: Update.
2393         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2394         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2395         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2396         constants.
2397
2398 2012-07-19  Yao Qi  <yao@codesourcery.com>
2399             Jan Kratochvil <jan.kratochvil@redhat.com>
2400
2401         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2402         and case 'var_optional_filename' together.
2403         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2404         instead of add_setshow_optional_filename_cmd for setshow command
2405         'args'.  Set completer for 'set args'.
2406
2407 2012-07-18  Doug Evans  <dje@google.com>
2408
2409         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2410         * common/gdb_vecs.c: New file, contents from utils.c.
2411         * common/host-defs.h: New file, contents from defs.h.
2412         * utils.h: New file, contents from defs.h.
2413         * defs.h: Move all declarations of objects defined in utils.c
2414         to utils.h (except QUIT() and related).
2415         #include "utils.h", "host-defs.h".
2416         * probe.h (probe_p): Move here from gdb_vecs.h.
2417         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2418         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2419         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2420         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2421         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2422         (COMMON_OBS): Add gdb_vecs.o.
2423         (gdb_vecs.o): New rule.
2424
2425 2012-07-18  Keith Seitz  <keiths@redhat.com>
2426
2427         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2428         parameter.  If non-zero, use SYMNAME as the canonical name
2429         for the SaL.
2430         Update all callers.
2431         (convert_linespec_to_sals): Use add_sal_to_sals for
2432         expressions, too.
2433         (decode_line_full): No need to "fill in missing canonical names"
2434         anymore. Simply make cleanups for the allocated names.
2435
2436 2012-07-18  Keith Seitz  <keiths@redhat.com>
2437
2438         * linespec.c (struct linespec): Constify expression,
2439         source_filename, function_name, and label_name.
2440         (symbol_not_found_error): Make all parameters const.
2441         (linespec_parser_delete): No need to check for NULL
2442         when using xfree. Cast const char * to char * for xfree.
2443
2444 2012-07-18  Keith Seitz  <keiths@redhat.com>
2445
2446         * breakpoint.c (invalid_thread_id_error): New function.
2447         (find_condition_and_thread): Use invalid_thread_id_error.
2448         (watch_command_1): Likewise.
2449
2450 2012-07-18  Tom Tromey  <tromey@redhat.com>
2451
2452         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2453         * contrib/cc-with-tweaks.sh: New file.
2454
2455 2012-07-18  Tom Tromey  <tromey@redhat.com>
2456
2457         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2458         (locate_dwz_sections): Recognize .gdb_index.
2459         (create_cus_from_index_list): New function.
2460         (create_cus_from_index): Use it.  Handle .dwz data.
2461         (read_index_from_section): New function, extracted from
2462         dwarf2_read_index.
2463         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2464         if needed.
2465
2466 2012-07-18  Tom Tromey  <tromey@redhat.com>
2467
2468         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2469         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2470         <is_dwz>: New field.
2471         (struct dwz_file): New.
2472         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2473         (locate_dwz_sections, dwarf2_get_dwz_file)
2474         (get_abbrev_section_for_cu): New functions.
2475         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2476         (read_and_check_type_unit_head): Add abbrev_section argument.
2477         (create_debug_types_hash_table): Update.
2478         (init_cutu_and_read_dies): Use proper abbrev section.
2479         (init_cutu_and_read_dies_no_follow): Likewise.
2480         (set_partial_user): Do nothing if PST==NULL.
2481         (read_comp_units_from_section): New function.
2482         (create_all_comp_units): Use it.
2483         (scan_partial_symbols, partial_die_parent_scope): Update.
2484         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2485         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2486         (find_partial_die): Add offset_in_dwz argument.  Update.
2487         (guess_partial_die_structure_name, fixup_partial_die): Update.
2488         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2489         DW_FORM_GNU_strp_alt.
2490         (read_indirect_string_from_dwz): New function.
2491         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2492         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2493         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2494         (follow_die_offset): Add offset_in_dwz argument.
2495         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2496         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2497         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2498         Handle new macro forms.
2499         (dwarf_decode_macros): Update.
2500         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2501         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2502         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2503         (create_debug_types_hash_table): Use correct abbrev section.
2504         (get_debug_line_section): New function.
2505         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2506         (process_full_comp_unit): Pass 'required' argument to
2507         end_symtab_get_static_block.
2508         * buildsym.h (end_symtab_get_static_block): Update.
2509         * buildsym.c (end_symtab_get_static_block): Add 'required'
2510         argument.
2511         (end_symtab, end_expandable_symtab): Update.
2512
2513 2012-07-18  Tom Tromey  <tromey@redhat.com>
2514
2515         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2516         (pagesize): Remove.
2517         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2518         (zlib_decompress_section): Remove.
2519         (dwarf2_read_section): Use gdb_bfd_map_section.
2520         (munmap_section_buffer): Remove.
2521         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2522         munmap_section_buffer.
2523         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2524         (struct gdb_bfd_section_data): New.
2525         (free_one_bfd_section): New function.
2526         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2527         (get_section_descriptor, zlib_decompress_section)
2528         (gdb_bfd_map_section): New functions.
2529         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2530
2531 2012-07-18  Tom Tromey  <tromey@redhat.com>
2532
2533         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2534
2535 2012-07-18  Tom Tromey  <tromey@redhat.com>
2536
2537         * gdb_bfd.c (struct gdb_bfd_data): New.
2538         (gdb_bfd_cache): New global.
2539         (struct gdb_bfd_cache_search): New.
2540         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2541         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2542         * gdb_bfd.h (gdb_bfd_open): Declare.
2543
2544 2012-07-18  Tom Tromey  <tromey@redhat.com>
2545
2546         * utils.c (make_cleanup_bfd_unref): Rename from
2547         make_cleanup_bfd_close.
2548         * defs.h (make_cleanup_bfd_unref): Rename from
2549         make_cleanup_bfd_close.
2550         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2551         (bfd_openw_with_cleanup): Update.
2552         * corelow.c (core_open): Update.
2553         * dsrec.c (load_srec): Update.
2554         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2555         * remote-m32r-sdi.c (m32r_load): Update.
2556         * remote-mips.c (mips_load_srec): Update.
2557         (pmon_load_fast): Update.
2558         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2559         Update.
2560         (darwin_bfd_open): Update.
2561         * solib.c (solib_bfd_fopen): Update.
2562         * symfile-mem.c (symbol_file_add_from_memory): Update.
2563         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2564         (symfile_bfd_open): Update.
2565         (generic_load): Update.
2566
2567 2012-07-18  Tom Tromey  <tromey@redhat.com>
2568
2569         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2570         (pmon_load_fast): Likewise.
2571         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2572         (m32r_upload_command): Likewise.
2573         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2574         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2575         Use make_cleanup_bfd_close.
2576
2577 2012-07-18  Tom Tromey  <tromey@redhat.com>
2578
2579         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2580         gdb_bfd_stash_filename.
2581         (load_command): Open the new BFD before freeing the old.
2582         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2583         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2584         Call gdb_bfd_stash_filename.
2585         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2586         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2587         gdb_bfd_stash_filename.
2588         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2589         Free found_pathname.
2590         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2591         gdb_bfd_stash_filename.
2592         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2593         * machoread.c (macho_add_oso_symfile): Call
2594         gdb_bfd_stash_filename.
2595         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2596         gdb_bfd_stash_filename.
2597         (macho_check_dsym): Don't copy filename.  Call
2598         gdb_bfd_stash_filename.
2599         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2600         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2601         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2602         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2603         * exec.c (exec_close): Don't free the BFD's filename.
2604         (exec_file_attach): Don't copy the filename.  Call
2605         gdb_bfd_stash_filename.
2606         * corelow.c (core_close): Don't free the BFD's filename.
2607         (core_open): Call gdb_bfd_stash_filename.
2608         * corefile.c (reopen_exec_file): Remove #if 0 code.
2609         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2610         pathname.
2611         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2612
2613 2012-07-18  Tom Tromey  <tromey@redhat.com>
2614
2615         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2616         gdb_bfd_unref.
2617         (free_dwo_file): Use gdb_bfd_unref.
2618         * cli/cli-dump.c: Include gdb_bfd.h.
2619         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2620         (bfd_openr_with_cleanup): Likewise.
2621         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2622         gdb_bfd_unref.
2623         * utils.c: Include gdb_bfd.h.
2624         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2625         * symfile.c: Include gdb_bfd.h.
2626         (separate_debug_file_exists): Use gdb_bfd_unref.
2627         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2628         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2629         (generic_load): Use gdb_bfd_ref.
2630         (reread_symbols): Use gdb_bfd_unref.
2631         * symfile-mem.c: Include gdb_bfd.h.
2632         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2633         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2634         * solib.c: Include gdb_bfd.h.
2635         (solib_bfd_fopen): Use gdb_bfd_ref.
2636         (solib_bfd_open): Use gdb_bfd_unref.
2637         (free_so_symbols): Use gdb_bfd_unref.
2638         (reload_shared_libraries_1): Use gdb_bfd_unref.
2639         * solib-spu.c: Include gdb_bfd.h.
2640         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2641         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2642         gdb_bfd_unref.
2643         * solib-frv.c: Include gdb_bfd.h.
2644         (enable_break2): Use gdb_bfd_unref.
2645         * solib-dsbt.c: Include gdb_bfd.h.
2646         (enable_break2): Use gdb_bfd_unref.
2647         * solib-darwin.c: Include gdb_bfd.h.
2648         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2649         gdb_bfd_unref.
2650         (darwin_bfd_open): Use gdb_bfd_unref.
2651         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2652         * remote-mips.c: Include gdb_bfd.h.
2653         (mips_load_srec): Use gdb_bfd_ref.
2654         (pmon_load_fast): Use gdb_bfd_ref.
2655         * remote-m32r-sdi.c: Include gdb_bfd.h.
2656         (m32r_load): Use gdb_bfd_ref.
2657         * record.c: Include gdb_bfd.h.
2658         (record_save_cleanups): Use gdb_bfd_unref.
2659         (cmd_record_save): Use gdb_bfd_unref.
2660         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2661         gdb_bfd_unref.
2662         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2663         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2664         * objfiles.c: Include gdb_bfd.h.
2665         (free_objfile): Use gdb_bfd_unref.
2666         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2667         gdb_bfd.c.
2668         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2669         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2670         (macho_check_dsym): Likewise.
2671         * m32r-rom.c: Include gdb_bfd.h.
2672         (m32r_load): Use gdb_bfd_ref.
2673         (m32r_upload_command): Use gdb_bfd_ref.
2674         * jit.c: Include gdb_bfd.h.
2675         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2676         * gdb_bfd.h: New file.
2677         * gdb_bfd.c: New file.
2678         * gcore.c: Include gdb_bfd.h.
2679         (create_gcore_bfd): Use gdb_bfd_ref.
2680         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2681         (gcore_command): Use gdb_bfd_unref.
2682         * exec.c: Include gdb_bfd.h.
2683         (exec_close): Use gdb_bfd_unref.
2684         (exec_close_1): Use gdb_bfd_unref.
2685         (exec_file_attach): Use gdb_bfd_ref.
2686         * elfread.c: Include gdb_bfd.h.
2687         (build_id_verify): Use gdb_bfd_unref.
2688         * dsrec.c: Include gdb_bfd.h.
2689         (load_srec): Use gdb_bfd_ref.
2690         * corelow.c: Include gdb_bfd.h.
2691         (core_close): Use gdb_bfd_unref.
2692         (core_open): Use gdb_bfd_ref.
2693         * bfd-target.c: Include gdb_bfd.h.
2694         (target_bfd_xclose): Use gdb_bfd_unref.
2695         (target_bfd_reopen): Use gdb_bfd_ref.
2696         * Makefile.in (SFILES): Add gdb_bfd.c.
2697         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2698         (COMMON_OBS): Add gdb_bfd.o.
2699
2700 2012-07-18  Keith Seitz  <keiths@redhat.com>
2701
2702         * breakpoint.c (find_condition_and_thread): Initialize
2703         TASK and REST.
2704         (create_breakpiont): find_condition_and_thread will now
2705         initialize COND_STRING, THREAD, and REST (and TASK).
2706         (addr_string_to_sals): Likewise.
2707
2708 2012-07-18  Pedro Alves  <palves@redhat.com>
2709
2710         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2711         Pull the single step breakpoints out of the target.
2712
2713 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2714
2715         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2716         * stap-probe.c (compile_probe_arg): Likewise.
2717
2718 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2719
2720         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2721         (elf_compile_to_ax): Likewise.
2722         * infrun.c (insert_exception_resume_from_probe): Likewise.
2723         (check_exception_resume): Remove `objfile' variable.
2724         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2725         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2726         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2727         (compare_entries): Rename to...
2728         (compare_probes): ...this.  Adjust function to work with
2729         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2730         respectively.
2731         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2732         `VEC (probe_p) *'.
2733         (print_ui_out_info): Adjust argument to be `struct probe *'.
2734         (info_probes_for_ops): Adjust internal computations to use
2735         `VEC (probe_p) *'.
2736         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2737         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2738         gen_info_probes_table_values>: Remove `objfile' argument.
2739         (struct probe) <objfile>: New field.
2740         (find_probe_by_pc): Remove `objfile' argument.
2741         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2742         (stap_get_probe_argument_count): Likewise.
2743         (stap_get_arg): Likewise.
2744         (stap_evaluate_probe_argument): Likewise.
2745         (stap_compile_to_ax): Likewise.
2746         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2747         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2748         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2749         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2750         sym_compile_to_ax>: Likewise.
2751
2752 2012-07-18  Terry Guo  <terry.guo@arm.com>
2753
2754         PR 14329
2755         * defs.h (GDB_MI_MSG_WIDTH): New.
2756         * ser_base (ser_base_read_error_fd): New function.
2757         (do_ser_base_readchar): Poll error file descriptor as well as
2758         standard output.
2759         (generic_readchar): Refactor error handling.
2760
2761 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2762
2763         * NEWS: Create a new section for the next release branch.
2764         Rename the section of the current branch, now that it has
2765         been cut.
2766
2767 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2768
2769         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2770         * version.in: Bump version to 7.5.50.20120718-cvs.
2771
2772 2012-07-17  Keith Seitz  <keiths@redhat.com>
2773
2774         * linespec.c (linespec_parse_line_offset): Make parameter
2775         const.
2776
2777 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2778
2779         PR 11914
2780         * f-valprint.c (info_common_command): New variable frame_id.
2781         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2782         * printcmd.c (print_variable_and_value): Extend function comment.
2783         Add comment for invalidated FRAME.
2784         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2785         FI form FRAME_ID after each print_frame_local_vars.
2786         (struct print_variable_and_value_data): Change frame to frame_id.
2787         (do_print_variable_and_value): New variable frame, initialize it from
2788         p->frame_id.  Add comment for invalidated FRAME.
2789         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2790         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2791         for invalidated FRAME.
2792
2793 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2794             Pedro Alves  <palves@redhat.com>
2795
2796         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2797         loop.
2798
2799 2012-07-16  Tom Tromey  <tromey@redhat.com>
2800
2801         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2802
2803 2012-07-15  Doug Evans  <dje@google.com>
2804
2805         * dwarf2read.c (stmt_list_hash): New struct.
2806         (type_unit_group): Embed "per_cu" member, remove pointer.
2807         New union member "t", move member "tus" into it, all uses updated.
2808         New member "hash", replaces member "line_offset, all uses updated.
2809         (quick_file_names): Replace member "offset" with "hash", all uses
2810         updated.
2811         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2812         (hash_file_name_entry, eq_file_name_entry): Call them.
2813         (hash_type_unit_group, eq_type_unit_group): Ditto.
2814         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2815         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2816         (dw2_get_file_names): Update.
2817         (create_type_unit_group): Replace "per_cu" arg with "cu".
2818         All callers updated.  Fix "quick" (.gdb_index) handling.
2819         (get_type_unit_group): Replace "per_cu" arg with "cu".
2820         All callers updated.
2821         (build_type_unit_groups): Don't reset tu_stats.
2822
2823         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2824         "tab_cur_size".  Change member "tab" to be a htab_t.
2825         (create_filename_seen_cache): Update.
2826         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2827         (filename_seen): Update.
2828
2829 2012-07-13  Doug Evans  <dje@google.com>
2830
2831         * symtab.c (filename_seen): Update comment.
2832
2833 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2834             Doug Evans  <dje@google.com>
2835
2836         * buildsym.c (end_symtab_1): Split it to ...
2837         (end_symtab_get_static_block): ... this ...
2838         (end_symtab_from_static_block): ... and this function.
2839         (end_symtab, end_expandable_symtab): Call them.
2840         * buildsym.h (end_symtab_get_static_block)
2841         (end_symtab_from_static_block): New declarations.
2842         * dwarf2read.c (process_full_comp_unit): New variable static_block.
2843         Set its valid CU ranges.
2844
2845 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2846
2847         * dwarf2loc.c (disassemble_dwarf_expression): Handle
2848         DW_OP_GNU_parameter_ref.
2849
2850 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2851
2852         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2853         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2854
2855 2012-07-13  Doug Evans  <dje@google.com>
2856
2857         * symtab.c (output_source_filename): Delete unnecessary forward decl.
2858         (filename_seen_cache): New struct.
2859         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2860         (create_filename_seen_cache): New function.
2861         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2862         (filename_seen): Delete arg "first".  New arg "cache".  All callers
2863         updated.
2864         (output_source_filename_data): New struct.
2865         (output_source_filename): Delete arg "first".  New arg "data".
2866         All callers updated.
2867         (sources_info): Delete local "first".  New locals "data", "cleanups".
2868         Rewrite to use filename_seen_cache.
2869         (add_partial_filename_data): Delete member "first".  New member
2870         "filename_seen_cache".  All uses updated.
2871         (make_source_files_completion_list): Rewrite to use
2872         filename_seen_cache.
2873
2874 2012-07-12  Doug Evans  <dje@google.com>
2875
2876         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2877
2878 2012-07-10  Doug Evans  <dje@google.com>
2879
2880         PR gdb/13498
2881         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2882         all_type_unit_groups, type_unit_groups, tu_stats.
2883         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2884         All uses updated.  Add type_unit_group to union "s".
2885         (type_unit_group): New struct.
2886         (IS_TYPE_UNIT_GROUP): New macro.
2887         (abbrev_table): Delete unused member "section".
2888         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2889         (dw2_get_cu): Assert not used with type_unit_group.
2890         (dw2_get_primary_cu): New function.
2891         (dw2_build_type_unit_groups_reader): New function.
2892         (dw2_build_type_unit_groups): New function.
2893         (dw2_get_file_names): Assert not called on type units.
2894         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2895         Redo loop to iterate over type unit groups instead of type units.
2896         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2897         (read_abbrev_offset): New function.
2898         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
2899         updated.
2900         (create_partial_symtab): New function.
2901         (process_psymtab_comp_unit_reader): Assert not used with type units.
2902         Call create_partial_symtab.
2903         (process_psymtab_type_unit): Delete.
2904         (hash_type_unit_group, eq_type_unit_group): New functions.
2905         (allocate_type_unit_groups_table): New function.
2906         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2907         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2908         (create_type_unit_group, get_type_unit_group): New functions.
2909         (tu_abbrev_offset): New struct.
2910         (sort_tu_by_abbrev_offset): New function.
2911         (add_type_unit_group_to_table): New function.
2912         (build_type_unit_groups): New function.
2913         (build_type_psymtabs_reader): New function.
2914         (build_type_psymtab_dependencies): New function.
2915         (build_type_psymtabs): Rewrite.
2916         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2917         is seen in a type unit.
2918         (process_queue): Move symtab expansion debugging printfs here.
2919         Call process_full_type_unit for type units.
2920         (compute_symtab_includes): Assert not called for type units.
2921         (process_cu_includes): Don't call compute_symtab_includes for
2922         type units.
2923         (process_full_type_unit): New function.
2924         (process_imported_unit_die): Flag an error if called for type units.
2925         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
2926         updated.  Assert not called for type units.
2927         (read_file_scope): Call dwarf2_start_symtab.
2928         (setup_type_unit_groups): New function.
2929         (read_type_unit_scope): Rewrite.
2930         (abbrev_table_read_table): Initialize abbrev_table->offset.
2931         (abbrev_table_free_cleanup): New function.
2932         (dwarf2_start_symtab): New function.
2933         (load_full_type_unit): Assert not called for type unit groups.
2934         * buildsym.c (finish_block_internal): New arg "expandable".
2935         All callers updated.
2936         (start_symtab): Move most contents to ...
2937         (restart_symtab): ... here.  New function.
2938         (reset_symtab_globals): New function.
2939         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
2940         Call reset_symtab_globals.
2941         (end_symtab, end_expandable_symtab): New functions.
2942         (set_missing_symtab, augment_type_symtab): New functions.
2943         * buildsym.h (end_expandable_symtab): Declare.
2944         (augment_type_symtab, restart_symtab): Declare.
2945         * psympriv.h (struct partial_symtab): New member "anonymous".
2946         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2947         anonymous psymtabs.
2948         (read_psymtabs_with_filename): Ditto.
2949         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2950         (expand_symtabs_matching_via_partial): Ditto.
2951         (dump_psymtab): Update.
2952         * dictionary.c (dict_add_pending): New function.
2953         * dictionary.h (dict_add_pending): Declare.
2954
2955 2012-07-09  Doug Evans  <dje@google.com>
2956
2957         * buildsym.c (start_subfile): Remove unnecessary check for
2958         name == NULL.
2959
2960         * psymtab.c (allocate_psymtab): Use host_address_to_string.
2961
2962         * dwarf2read.c (load_full_type_unit): Simplify.
2963
2964         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2965         to struct signatured_type **.  All uses updated.
2966
2967         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2968         All callers updated.
2969
2970 2012-07-09  Tom Tromey  <tromey@redhat.com>
2971
2972         * c-exp.y (check_parameter_typelist): New function.
2973         (parameter_typelist): Call it.
2974         * eval.c (make_params): Handle '(void)' case.
2975         * gdbtypes.c (lookup_function_type_with_arguments): Handle
2976         '(void)' case.
2977
2978 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2979
2980         * common/linux-ptrace.c: Include gdb_assert.h.
2981         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2982         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2983         stdint.h.
2984         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2985         functions.
2986         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2987         * linux-nat.c (linux_child_post_attach)
2988         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2989
2990 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2991
2992         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2993         nptl <2.7 bug workaround for core files.
2994
2995 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2996
2997         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2998         clearing.
2999         (save_siginfo): Remove.
3000         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3001         call.
3002         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3003         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3004         * linux-nat.h (struct lwp_info): Remove field siginfo.
3005
3006 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3007
3008         Code cleanup for the next patch.
3009         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3010         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3011         call for it.
3012         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3013         (ia64_linux_stopped_data_address):
3014         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3015         the return value.
3016         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3017         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3018         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3019         call for it.
3020
3021 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3022
3023         PR 14321
3024         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3025         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3026
3027 2012-07-06  Tom Tromey  <tromey@redhat.com>
3028
3029         * c-exp.y (DOTDOTDOT): New token.
3030         (func_mod, exp): Use parameter_typelist.
3031         (parameter_typelist): New production.
3032         (tokentab3): Add "..." token.
3033         * eval.c (make_params): Handle varargs.
3034         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3035         varargs.
3036
3037 2012-07-06  Tom Tromey  <tromey@redhat.com>
3038
3039         PR exp/9608:
3040         * c-exp.y (%union) <tvec>: Change type.
3041         (func_mod): Now uses <tvec> type.
3042         (exp): Update for tvec change.
3043         (direct_abs_decl): Push the typelist.
3044         (func_mod): Return a typelist.
3045         (nonempty_typelist): Update for tvec change.
3046         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3047         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3048         * parse.c (pop_type_list): New function.
3049         (push_typelist): New function.
3050         (follow_types): Handle tp_function_with_arguments.
3051         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3052         (enum type_pieces) <tp_function_with_arguments>: New constant.
3053         (union type_stack_elt) <typelist_val>: New field.
3054         (push_typelist): Declare.
3055
3056 2012-07-06  Tom Tromey  <tromey@redhat.com>
3057
3058         * c-exp.y (%union) <type_stack>: New field.
3059         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3060         (ptr_operator_ts): New production.
3061         (ptype): Update.
3062         * parse.c (type_stack_reserve): New function.
3063         (check_type_stack_depth): Use it.
3064         (pop_type_stack, append_type_stack, push_type_stack)
3065         (get_type_stack, type_stack_cleanup): New functions.
3066         (follow_types): Handle tp_type_stack.
3067         (_initialize_parse): Simplify initialization.
3068         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3069         constant.
3070         (union type_stack_elt) <stack_val>: New field.
3071         (get_type_stack, append_type_stack, push_type_stack)
3072         (type_stack_cleanup): Declare.
3073
3074 2012-07-06  Tom Tromey  <tromey@redhat.com>
3075
3076         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3077         Remove.
3078         (struct type_stack): New.
3079         * parse.c (type_stack, type_stack_size, type_stack_depth):
3080         Remove.
3081         (type_stack): New global.
3082         (parse_exp_in_context, check_type_stack_depth)
3083         (insert_into_type_stack, insert_type, push_type, push_type_int)
3084         (insert_type_address_space, pop_type, pop_type_int)
3085         (_initialize_parse): Update.
3086
3087 2012-07-06  Tom Tromey  <tromey@redhat.com>
3088
3089         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3090         Remove %type.
3091
3092 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3093
3094         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3095
3096 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3097             Jan Kratochvil  <jan.kratochvil@redhat.com>
3098
3099         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3100         alloca with xmalloc/xfree.
3101
3102 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3103
3104         * MAINTAINERS (Write After Approval): Add myself to the list.
3105
3106 2012-07-05  Doug Evans  <dje@google.com>
3107
3108         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3109
3110 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3111
3112         * ax-gdb.c (cli/cli-utils.h): New include.
3113         (linespec.h): Ditto.
3114         (agent_eval_command_one): New function.
3115         (agent_command_1): Ditto.
3116         (agent_command): Call function agent_command_1.
3117         (agent_eval_command): Ditto.
3118         (_initialize_ax_gdb): Change help for "maint agent"
3119         and "maint agent-eval".
3120
3121 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3122
3123         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3124         * cli/cli-utils.c (check_for_argument): New function.
3125         * cli/cli-utils.h (check_for_argument): Ditto.
3126
3127 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3128
3129         * NEWS: Mention x32 ABI support.
3130
3131 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3132
3133         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3134         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3135
3136         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3137         and pc_regnum_from_eax to -1.  Update SP regnum from
3138         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3139         needed.
3140
3141         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3142         pc_regnum_from_eax.
3143
3144 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3145
3146         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3147         * dwarf2expr.h: Include gdbtypes.h.
3148         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3149         these forward declarations.
3150         (cu_offset, sect_offset): Move these ...
3151         * gdbtypes.h: Remove include dwarf2expr.h.
3152         (cu_offset, sect_offset): ... here.
3153
3154 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3155
3156         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3157         (amd64_linux_sigtramp_code): This.
3158         (amd64_x32_linux_sigtramp_code): New.
3159         (LINUX_SIGTRAMP_LEN): Updated.
3160         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3161
3162 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3163
3164         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3165
3166 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3167
3168         * config.in: Regenerate.
3169         * configure: Regenerate.
3170         * configure.ac: Remove check for gnu/libc-version.h.
3171         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3172         gnu/libc-version.h.
3173         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3174         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3175         inferior_has_bug.  Extend the comment.
3176
3177 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3178
3179         * linux-thread-db.c (inferior_has_bug): New function.
3180         (thread_db_find_new_threads_silently): Return boolean as checked by
3181         inferior_has_bug, describe it in the comments.
3182         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3183         earlier.  Abort the initialization if it returned non-zero.
3184         (thread_db_new_objfile): Exclude debug files.
3185         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3186         if UNTIL_NO_NEW,
3187
3188 2012-07-02  Doug Evans  <dje@google.com>
3189
3190         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3191         related to queue management.
3192
3193         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3194         instead of "debug dwarf2-die" in debugging printfs.
3195         (create_debug_info_hash_table_reader): Ditto.
3196         (create_debug_info_hash_table): Ditto.
3197         (init_dwo_file): Ditto.
3198         (init_cutu_and_read_dies): Add debugging printf.
3199         (init_cutu_and_read_dies_no_follow): Ditto.
3200         (process_psymtab_comp_unit_reader): Ditto.
3201
3202 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3203
3204         Add target-side support for dynamic printf.
3205         * NEWS: Mention the additional style.
3206         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3207         (struct bp_location): New field cmd_bytecode.
3208         * breakpoint.c: Include format.h.
3209         (disconnected_dprintf): New global.
3210         (parse_cmd_to_aexpr): New function.
3211         (build_target_command_list): New function.
3212         (insert_bp_location): Call it.
3213         (remove_breakpoints_pid): Skip dprintf breakpoints.
3214         (print_one_breakpoint_location): Ditto.
3215         (dprintf_style_agent): New global.
3216         (dprintf_style_enums): Add dprintf_style_agent.
3217         (update_dprintf_command_list): Add agent case.
3218         (agent_printf_command): New function.
3219         (_initialize_breakpoint): Add new commands.
3220         * common/ax.def (printf): New bytecode.
3221         * ax.h (ax_string): Declare.
3222         * ax-gdb.h (gen_printf): Declare.
3223         * ax-gdb.c: Include cli-utils.h, format.h.
3224         (gen_printf): New function.
3225         (maint_agent_print_command): New function.
3226         (_initialize_ax_gdb): Add maint agent-printf command.
3227         * ax-general.c (ax_string): New function.
3228         (ax_print): Add printf disassembly.
3229         * Makefile.in (SFILES): Add format.c
3230         (COMMON_OBS): Add format.o.
3231         * common/format.h: New file.
3232         * common/format.c: New file.
3233         * printcmd.c: Include format.h.
3234         (ui_printf): Call parse_format_string.
3235         * remote.c (remote_state): New field breakpoint_commands.
3236         (PACKET_BreakpointCommands): New enum.
3237         (remote_breakpoint_commands_feature): New function.
3238         (remote_protocol_features): Add new BreakpointCommands entry.
3239         (remote_can_run_breakpoint_commands): New function.
3240         (remote_add_target_side_commands): New function.
3241         (remote_insert_breakpoint): Call it.
3242         (remote_insert_hw_breakpoint): Ditto.
3243         (_initialize_remote): Add new packet configuration for
3244         target-side breakpoint commands.
3245         * target.h (struct target_ops): New field
3246         to_can_run_breakpoint_commands.
3247         (target_can_run_breakpoint_commands): New macro.
3248         * target.c (update_current_target): Handle
3249         to_can_run_breakpoint_commands.
3250
3251 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3252
3253         Execute -ix and -iex only after system and user gdbinit files.
3254         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3255         processing down after gdbinit files.
3256
3257 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3258
3259         Add fnmatch-gnu module.
3260         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3261         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3262         * gnulib/aclocal.m4: Regenerate.
3263         * gnulib/config.in: Regenerate.
3264         * gnulib/configure: Regenerate.
3265         * gnulib/import/dummy.c: Remove.
3266         * gnulib/import/Makefile.am: Regenerate.
3267         * gnulib/import/Makefile.in: Likewise.
3268         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3269         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3270         * gnulib/import/alloca.c: New file.
3271         * gnulib/import/alloca.in.h: Likewise.
3272         * gnulib/import/config.charset: Likewise.
3273         * gnulib/import/fnmatch.c: Likewise.
3274         * gnulib/import/fnmatch.in.h: Likewise.
3275         * gnulib/import/fnmatch_loop.c: Likewise.
3276         * gnulib/import/localcharset.c: Likewise.
3277         * gnulib/import/localcharset.h: Likewise.
3278         * gnulib/import/m4/alloca.m4: Likewise.
3279         * gnulib/import/m4/codeset.m4: Likewise.
3280         * gnulib/import/m4/configmake.m4: Likewise.
3281         * gnulib/import/m4/fcntl-o.m4: Likewise.
3282         * gnulib/import/m4/fnmatch.m4: Likewise.
3283         * gnulib/import/m4/glibc21.m4: Likewise.
3284         * gnulib/import/m4/localcharset.m4: Likewise.
3285         * gnulib/import/m4/locale-fr.m4: Likewise.
3286         * gnulib/import/m4/locale-ja.m4: Likewise.
3287         * gnulib/import/m4/locale-zh.m4: Likewise.
3288         * gnulib/import/m4/mbrtowc.m4: Likewise.
3289         * gnulib/import/m4/mbsinit.m4: Likewise.
3290         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3291         * gnulib/import/m4/mbstate_t.m4: Likewise.
3292         * gnulib/import/m4/stdbool.m4: Likewise.
3293         * gnulib/import/m4/wchar_h.m4: Likewise.
3294         * gnulib/import/m4/wctype_h.m4: Likewise.
3295         * gnulib/import/m4/wint_t.m4: Likewise.
3296         * gnulib/import/mbrtowc.c: Likewise.
3297         * gnulib/import/mbsinit.c: Likewise.
3298         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3299         * gnulib/import/mbsrtowcs-state.c: Likewise.
3300         * gnulib/import/mbsrtowcs.c: Likewise.
3301         * gnulib/import/ref-add.sin: Likewise.
3302         * gnulib/import/ref-del.sin: Likewise.
3303         * gnulib/import/stdbool.in.h: Likewise.
3304         * gnulib/import/streq.h: Likewise.
3305         * gnulib/import/strnlen1.c: Likewise.
3306         * gnulib/import/strnlen1.h: Likewise.
3307         * gnulib/import/verify.h: Likewise.
3308         * gnulib/import/wchar.in.h: Likewise.
3309         * gnulib/import/wctype.in.h: Likewise.
3310
3311 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3312
3313         Support shell wildcards for 'set auto-load safe-path'.
3314         * auto-load.c: Include fnmatch.h.
3315         (filename_is_in_dir): Rename to ...
3316         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3317         it.  Update function comment.  Rename dir_len to pattern_len.  New
3318         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3319         messages.  Use gdb_filename_fnmatch.
3320         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3321         pattern.
3322         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3323         * defs.h (gdb_filename_fnmatch): New declaration.
3324         * utils.c: Include fnmatch.h.
3325         (gdb_filename_fnmatch): New function.
3326
3327 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3328
3329         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3330         `-probe' and `-probe-stap' options.
3331
3332 2012-07-01  Yao Qi  <yao@codesourcery.com>
3333
3334         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3335         always_inserted_off, and always_inserted_enums.
3336         Change always_inserted_mode's type to 'enum auto_boolean'.
3337         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3338         callers.
3339         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3340         of add_setshow_enum_cmd.
3341         * infrun.c: Remove can_use_displaced_stepping_auto,
3342         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3343         can_use_displaced_stepping_enum.
3344         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3345         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3346         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3347         add_setshow_enum_cmd.
3348
3349 2012-06-30  Doug Evans  <dje@google.com>
3350
3351         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3352         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3353         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3354
3355 2012-06-29  Doug Evans  <dje@google.com>
3356
3357         * linespec.c: #include "stack.h".
3358         (decode_line_with_current_source): Moved here from symtab.c and
3359         renamed from decode_line_spec.  All callers updated.
3360         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3361         renamed from decode_line_spec_1.  All callers updated.
3362         * linespec.h (decode_line_with_current_source): Move declaration here
3363         from symtab.h and renamed from decode_line_spec.
3364         (decode_line_with_last_displayed): Move declaration here from symtab.h
3365         and renamed from decode_line_spec_1.
3366         * macrocmd.c: #include "linespec.h".
3367         * symtab.c: Remove #include "linespec.h".
3368
3369 2012-06-28  Doug Evans  <dje@google.com>
3370
3371         * dwarf2read.c (get_cu_length): New function.
3372         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3373         (create_debug_types_hash_table): Ditto.
3374         (init_cutu_and_read_dies): Ditto.
3375         (init_cutu_and_read_dies_no_follow): Ditto.
3376
3377         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3378
3379         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3380         (struct abbrev_table): Define.
3381         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3382         abbrev_table.
3383         (init_cutu_and_read_dies): Update.
3384         (abbrev_table_alloc_abbrev): New function.  Replaces
3385         dwarf_alloc_abbrev.  All callers updated.
3386         (abbrev_table_add_abbrev): New function.
3387         (abbrev_table_lookup_abbrev): New function.  Replaces
3388         dwarf2_lookup_abbrev.  All callers updated.
3389         (abbrev_table_read_table): New function.  Contents moved here from
3390         dwarf2_read_abbrevs.
3391         (dwarf2_read_abbrevs): Call it.
3392         (abbrev_table_free): New function.
3393         (dwarf2_free_abbrev_table): Call it.
3394
3395 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3396
3397         * osdata.c (info_osdata_command): Filter out "Title" columns
3398         from non-MI uses.
3399         * common/linux-osdata.c (struct osdata_type): Add title field.
3400         (osdata_table): Add titles to each entry.
3401         (linux_command_xfer_osdata): Add a column for title data.
3402
3403 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3404
3405         Make logging work for MI.
3406         * NEWS: Mention it.
3407         * interps.h (interp_set_logging_ftype): New typedef.
3408         (struct interp_procs): New field set_logging_proc.
3409         (current_interp_set_logging): Declare.
3410         * interps.c (current_interp_set_logging): New function.
3411         * cli/cli-logging.c: Include interps.h.
3412         (set_logging_redirect): Call current_interp_set_logging.
3413         (pop_output_files): Ditto.
3414         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3415         * mi/mi-console.h (mi_console_set_raw): Declare.
3416         * mi/mi-console.c (mi_console_set_raw): New function.
3417         * mi/mi-interp.c (saved_raw_stdout): New global.
3418         (mi_set_logging): New function.
3419         (_initialize_mi_interp): Add it to interp procs.
3420
3421 2012-06-28  Doug Evans  <dje@google.com>
3422
3423         * symtab.c (lookup_symbol_aux_objfile): Use
3424         ALL_OBJFILE_PRIMARY_SYMTABS.
3425
3426         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3427
3428 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3429
3430         * common/buffer.c: Include inttypes.h and stdint.h.
3431         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3432
3433 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3434             Pedro Alves  <palves@redhat.com>
3435
3436         * gdbthread.h (ALL_THREADS): New macro.
3437         (thread_list): Declare.
3438         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3439         going, but instead fall through to the stepping handling.
3440         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3441         the passed in signal.  Adjust debug output.
3442         (resume_callback): Rename to ...
3443         (linux_nat_resume_callback): ... this.  Pass the thread's last
3444         stop signal, if in "pass" state.
3445         (linux_nat_resume): Adjust to rename.
3446         (stop_wait_callback): New assertion.  Don't respawn signals;
3447         instead let the LWP remain with SIGNALLED set.
3448         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3449         * remote.c (append_pending_thread_resumptions): New.
3450         (remote_vcont_resume): Call it.
3451         * target.h (target_resume): Extend comment.
3452
3453 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3454
3455         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3456
3457 2012-06-27  Doug Evans  <dje@google.com>
3458
3459         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3460         Delete have_addr_base, unused.  All uses updated.
3461         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3462         (dwarf2_get_pc_bounds): Add ranges_base.
3463         (dwarf2_record_block_ranges): Ditto.
3464
3465 2012-06-27  Tom Tromey  <tromey@redhat.com>
3466
3467         PR macros/7961:
3468         * varobj.c (varobj_create): Update.
3469         (varobj_set_value): Update.
3470         * tracepoint.c (validate_actionline): Update.
3471         (encode_actions_1): Update.
3472         * parse.c (parse_exp_1): Add 'pc' argument.
3473         (parse_exp_in_context): Add 'pc' argument.  Change how
3474         expression_context_pc is set.
3475         (parse_expression): Update.
3476         (parse_field_expression): Update.
3477         * expression.h (parse_exp_1): Update.
3478         * eval.c (parse_to_comma_and_eval): Update.
3479         * breakpoint.c (set_breakpoint_condition): Update.
3480         (update_watchpoint): Update.
3481         (init_breakpoint_sal): Update
3482         (find_condition_and_thread): Update.
3483         (watch_command_1): Update.
3484         (update_breakpoint_locations): Update.
3485         * ada-lang.c (ada_read_renaming_var_value): Update.
3486         (create_excep_cond_exprs): Update.
3487
3488 2012-06-27  Doug Evans  <dje@google.com>
3489
3490         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3491         type units.
3492
3493 2012-06-26  Doug Evans  <dje@google.com>
3494
3495         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3496         prototype.
3497         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3498         updated.
3499         (read_and_check_comp_unit_head): Ditto.
3500         (read_and_check_type_unit_head): Ditto.
3501
3502 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3503
3504         New attribute 'last' for gdb.Symtab_and_line.
3505         * NEWS (Python Scripting): Add entry about the new attribute.
3506         * python/py-symtab.c (salpy_get_last): New function which
3507         implements the get method for the 'last' attribute of
3508         gdb.Symtab_and_line.
3509         (sal_object_getset): Add entry for the 'last' attribute.
3510
3511 2012-06-26  Doug Evans  <dje@google.com>
3512
3513         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3514         (dwo_sections): Add macinfo, macro.
3515         (dwarf2_locate_dwo_sections): Watch for macro sections.
3516         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3517         All callers updated.  Handle DWO files.
3518
3519         * NEWS: Mention new options "set debug dwarf2-read" and
3520         "set debug symtab-create".
3521         * dwarf2read.c (dwarf2_read_debug): New static global.
3522         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3523         (process_queue): Ditto.
3524         (process_full_comp_unit): Ditto.
3525         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3526         * elfread.c (elf_symfile_read): Add debugging printf.
3527         * minsyms.c (install_minimal_symbols): Ditto.
3528         * psymtab.c (allocate_psymtab): Ditto.
3529         * symfile.c (allocate_symtab): Ditto.
3530         * symtab.c (symtab_create_debug): New global.
3531         (_initialize_symtab): Add new option "set debug symtab-create".
3532         * symtab.h (symtab_create_debug): Declare.
3533
3534         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3535         (lookup_dwo_type_unit): Ditto.
3536
3537 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3538             H.J. Lu  <hongjiu.lu@intel.com>
3539
3540         * amd64-linux-nat.c: Include <sys/user.h>.
3541         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3542         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3543         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3544
3545         * configure.ac: Check if the fs_base and gs_base members of
3546         `struct user_regs_struct' exist.
3547         * config.in: Regenerated.
3548         * configure: Likewise.
3549
3550 2012-06-25  Michael Eager  <eager@eagercon.com>
3551
3552         PR python/14291
3553         * python/python.c (gdbpy_write): Check for interrupted output.
3554
3555 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3556
3557         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3558         register as a stack alignment in ARM mode.
3559
3560 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3561
3562         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3563         * gnulib/config.in: Regenerate.
3564         * gnulib/configure: Likewise.
3565         * gnulib/import/m4/extensions.m4: Update it.
3566         * gnulib/import/m4/gnulib-common.m4: Likewise.
3567         * gnulib/import/m4/memmem.m4: Likewise.
3568         * gnulib/import/m4/mmap-anon.m4: Likewise.
3569         * gnulib/import/m4/multiarch.m4: Likewise.
3570         * gnulib/import/stdint.in.h: Likewise.
3571
3572 2012-06-24  Yao Qi  <yao@codesourcery.com>
3573
3574         * corefile.c (write_memory_with_notification): New.
3575         * gdbcore.h: Declare write_memory_with_notification.
3576         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3577         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3578         * valops.c (value_assign): Likewise.
3579         * python/py-inferior.c (infpy_write_memory): Call
3580         'write_memory_with_notification'.
3581
3582 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3583
3584         * cc-with-index.sh: Use also -ex "set auto-load no".
3585
3586 2012-06-23  Doug Evans  <dje@google.com>
3587
3588         PR 14125
3589         * NEWS: Document additions to .gdb_index.
3590         * dwarf2read.c: #include "gdb/gdb-index.h".
3591         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3592         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3593         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3594         (dwarf2_read_index): Recognize version 7.
3595         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3596         block_kind, domain): All callers updated.
3597         (dw2_find_symbol_file): Handle new index CU values.
3598         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3599         (add_index_entry): New args is_static, kind.  All callers updated.
3600         (offset_type_compare, uniquify_cu_indices): New functions
3601         (symbol_kind): New function.
3602         (write_psymtabs_to_index): Remove duplicate CU values.
3603         (write_psymtabs_to_index): Write .gdb_index version 7.
3604
3605 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3606
3607         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3608         * configure: Regenerate.
3609
3610 2012-06-20  Yao Qi  <yao@codesourcery.com>
3611
3612         * python/py-inferior.c: Update comments of infpy_read_memory
3613         and infpy_write_memory.
3614
3615 2012-06-19  Tom Tromey  <tromey@redhat.com>
3616
3617         PR exp/9514:
3618         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3619         (push_type_address_space): Remove.
3620         * parse.c (insert_into_type_stack): New function.
3621         (insert_type): Likewise.
3622         (insert_type_address_space): Rename from push_type_address_space.
3623         Insert tp_space_identifier.
3624         * c-exp.y (ptr_operator): New production.
3625         (abs_decl): Use ptr_operator.
3626         (space_identifier): Call insert_type_address_space.
3627         (ptype): Don't use const_or_volatile_or_space_identifier.
3628         (const_or_volatile_noopt): Call insert_type.
3629         (conversion_type_id, conversion_declarator): New productions.
3630         (operator): Use conversion_type_id.
3631
3632 2012-06-18  Doug Evans  <dje@google.com>
3633
3634         * symtab.h (minimal_symbol): New member created_by_gdb.
3635         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3636         created by gdb.
3637         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3638         (search_symbols): Call it instead of lookup_symbol.
3639         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3640
3641         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3642         Adjust address for DW_OP_GNU_addr_index.
3643         * dwarf2expr.h (dwarf_expr_context): Update comment.
3644         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3645         all callers updated.  Handle TLS vars described with
3646         DW_OP_GNU_const_index.
3647         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3648         and DW_OP_GNU_const_index.
3649         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3650
3651         * block.c (find_block_in_blockvector): Make explicit the fact that we
3652         ignore GLOBAL_BLOCK.
3653
3654 2012-06-18  Tom Tromey  <tromey@redhat.com>
3655
3656         * c-exp.y (operator): Remove trailing space after "delete" and
3657         "delete[]".
3658
3659 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3660             Jan Kratochvil  <jan.kratochvil@redhat.com>
3661
3662         Switch i386 and derived targets to ON_STACK.
3663         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3664         (amd64_dicos_init_abi): Remove its installment.
3665         * dicos-tdep.c (dicos_init_abi): Remove the
3666         set_gdbarch_call_dummy_location call.  Update the comment here.
3667         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3668         (i386_dicos_init_abi): Remove its installment.
3669         * i386-tdep.c (i386_push_dummy_code): New function.
3670         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3671         i386_push_dummy_code.
3672
3673 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3674
3675         Remove stale dummy frames.
3676         * breakpoint.c: Include dummy-frame.h.
3677         (longjmp_breakpoint_ops): New variable.
3678         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3679         bp_longjmp_call_dummy.
3680         (bpstat_what, bptype_string, print_one_breakpoint_location)
3681         (init_bp_location): Support bp_longjmp_call_dummy.
3682         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3683         (set_longjmp_breakpoint_for_call_dummy)
3684         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3685         functions.
3686         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3687         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3688         FIXME comment and extend the other comment for bp_call_dummy.
3689         (set_longjmp_breakpoint_for_call_dummy)
3690         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3691         * dummy-frame.c: Include gdbthread.h.
3692         (pop_dummy_frame_bpt): New function.
3693         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3694         (dummy_frame_discard): New function.
3695         (cleanup_dummy_frames): Update the comment about longjmps.
3696         * dummy-frame.h (dummy_frame_discard): New declaration.
3697         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3698         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3699         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3700         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3701         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3702         keep_going if IS_LONGJMP and there is no other reason to stop.
3703
3704 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3705
3706         * remote-sim.c (sim_command_completer): Initialize
3707         variable 'result'.
3708
3709 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3710
3711         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3712         * dwarf2loc.c (call_site_parameter_matches): Support
3713         CALL_SITE_PARAMETER_PARAM_OFFSET.
3714         (needs_dwarf_reg_entry_value): Push stub value.
3715         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3716         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3717         * gdbtypes.h (enum call_site_parameter_kind): New item
3718         CALL_SITE_PARAMETER_PARAM_OFFSET.
3719         (struct call_site.parameter.u): New field param_offset.
3720
3721 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3722
3723         Code cleanup: Generalize call_site.parameter key.
3724         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3725         variable dwarf_reg.  New variable kind_u.  Update parameters to
3726         push_dwarf_reg_entry_value.
3727         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3728         * dwarf2expr.h (enum call_site_parameter_kind)
3729         (union call_site_parameter_u): Forward declarations.
3730         (struct dwarf_expr_context_funcs): Update parameters and their
3731         description for push_dwarf_reg_entry_value.
3732         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3733         * dwarf2loc.c (call_site_parameter_matches): New function.
3734         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3735         description.  Use call_site_parameter_matches.
3736         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3737         Update parameters and their description.
3738         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3739         New variable kind_u.  Adjust the caller for updated parameters.
3740         (needs_dwarf_reg_entry_value): Update parameters.
3741         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3742         instead of attr.  Update for the changed fields of struct
3743         call_site_parameter.
3744         * gdbtypes.h: Include dwarf2expr.h.
3745         (enum call_site_parameter_kind): New.
3746         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3747         fb_offset into new union u.
3748
3749 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3750
3751         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3752         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3753         for x32.
3754
3755 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3756
3757         * amd64-linux-nat.c (compat_x32_clock_t): New.
3758         (compat_x32_siginfo_t): Likewise.
3759         (compat_x32_siginfo_from_siginfo): Likewise.
3760         (siginfo_from_compat_x32_siginfo): Likewise.
3761         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3762         and siginfo_from_compat_x32_siginfo for x32.
3763
3764 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3765
3766         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3767
3768 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3769
3770         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3771         instead of gdbarch_ptr_bit.
3772         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3773         (amd64_supply_native_gregset): Likewise.
3774         (amd64_collect_native_gregset): Likewise.
3775         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3776         (amd64_supply_xsave): Likewise.
3777         (amd64_collect_fxsave): Likewise.
3778         (amd64_collect_xsave): Likewise.
3779
3780 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3781
3782         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3783         (amd64_linux_read_description): Check DS segment register for
3784         x32 process.
3785
3786 2012-06-15  Tom Tromey  <tromey@redhat.com>
3787
3788         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3789         init_cutu_and_read_dies.
3790
3791 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3792
3793         * MAINTAINERS (Write After Approval): Add myself to the list.
3794
3795 2012-06-15  Tom Tromey  <tromey@redhat.com>
3796
3797         * valops.c (value_find_oload_method_list): Now static.
3798         * value.h (value_find_oload_method_list): Don't declare.
3799
3800 2012-06-15  Tom Tromey  <tromey@redhat.com>
3801
3802         * valops.c (find_overload_match): Use value_ind.
3803
3804 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
3805
3806         * infrun.c (handle_inferior_event): Correct indentation.
3807
3808 2012-06-14  Doug Evans  <dje@google.com>
3809
3810         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3811         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3812         All uses updated.
3813         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
3814         updated.  Handle DEBUG_LOC_START_LENGTH.
3815         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3816         (loclist_describe_location): Ditto.
3817
3818 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
3819
3820         PR backtrace/13866
3821         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3822         after hiding inline functions.
3823
3824 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3825
3826         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3827         _initialize_inf_ttrace.
3828
3829 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3830
3831         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3832         _initialize_hppa_hpux_nat.
3833
3834 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3835
3836         * remote-sim.c (sim_command_completer): Change type of return
3837         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
3838
3839 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3840             Jan Kratochvil  <jan.kratochvil@redhat.com>
3841
3842         PR tdep/14222
3843         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3844         stack on a 16-byte boundary.
3845
3846 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
3847
3848         * jit.c (finalize_symtab): Set function's return type to 'void' by
3849         default.
3850
3851 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3852             H.J. Lu  <hongjiu.lu@intel.com>
3853
3854         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3855         Move bits common to both the classic LP64 and the new x32 ILP32
3856         ABI here.
3857         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3858         (amd64_x32_linux_init_abi): New function.
3859         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3860         subtype.
3861
3862         * i386-tdep.h (i386_pseudo_register_name): New prototype.
3863         * i386-tdep.c (i386_pseudo_register_name): Make public.
3864         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3865         * amd64-tdep.c (amd64_dword_names): Add "eip".
3866         (amd64_x32_pseudo_register_type): New function
3867         (amd64_x32_init_abi): New function.
3868
3869 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3870
3871         PR build/14003
3872         * inferior.h (struct inferior_suspend_state): Comment out.
3873         (struct inferior): Comment out the field suspend.
3874         * infrun.c (struct infcall_suspend_state): Comment out the field
3875         inferior_suspend.
3876         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3877         out its assignment.
3878
3879 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3880
3881         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3882         * c-exp.y (classify_inner_name): Remove caller assumptions in the
3883         function comment.  Return ERROR for unresolved cases.  Implement
3884         returning proper NAME.
3885         (yylex): Accept also NAME from classify_inner_name.
3886         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3887         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
3888         LOC_TYPEDEF type.
3889         * cp-support.h (cp_lookup_nested_type): Update its declaration.
3890
3891 2012-06-13  Tom Tromey  <tromey@redhat.com>
3892
3893         * breakpoint.c (condition_completer): New function.
3894         (_initialize_breakpoint): Use it.
3895         * value.c (complete_internalvar): New function.
3896         * value.h (complete_internalvar): Declare.
3897
3898 2012-06-13  Tom Tromey  <tromey@redhat.com>
3899
3900         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3901         * breakpoint.c (catch_syscall_completer): Return a VEC.
3902         * cli/cli-cmds.c (complete_command): Update.
3903         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3904         (complete_on_enum): Likewise.
3905         * command.h: Include gdb_vecs.h.
3906         (completer_ftype): Change return type.
3907         (complete_on_cmdlist, complete_on_enum): Likewise.
3908         * completer.c (noop_completer, filename_completer)
3909         (location_completer): Return a VEC.
3910         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
3911         to a VEC.
3912         (expression_completer, complete_line_internal, complete_line)
3913         (command_completer): Return a VEC.
3914         (gdb_completion_word_break_characters, line_completion_function):
3915         Update.
3916         * completer.h: Include gdb_vecs.h.
3917         (complete_line, noop_completer, filename_completer)
3918         (expression_completer, location_completer, command_completer):
3919         Update.
3920         * f-lang.c (f_word_break_characters): Return a VEC.
3921         * interps.c (interpreter_completer): Return a VEC.
3922         * language.h (struct language_defn)
3923         <la_make_symbol_completion_list>: Return a VEC.
3924         * python/py-cmd.c (cmdpy_completer): Return a VEC.
3925         * symtab.c (free_completion_list): Take a VEC.
3926         (return_val_size, return_val_index): Remove.
3927         (return_val): Now a VEC.
3928         (completion_list_add_name): Update.
3929         (default_make_symbol_completion_list_break_on)
3930         (default_make_symbol_completion_list, make_symbol_completion_list)
3931         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3932         Return a VEC.
3933         (add_filename_to_list): Update.
3934         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3935         <list>: Now a VEC.
3936         (maybe_add_partial_symtab_filename): Update.
3937         (make_source_files_completion_list): Return a VEC.
3938         * symtab.h (default_make_symbol_completion_list_break_on)
3939         (default_make_symbol_completion_list, make_symbol_completion_list)
3940         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3941         (make_source_files_completion_list): Update.
3942
3943 2012-06-13  Tom Tromey  <tromey@redhat.com>
3944
3945         * breakpoint.c (add_catch_command): Use completer_ftype.
3946         * breakpoint.h: Include command.h.
3947         (add_catch_command): Use completer_ftype.
3948         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3949         * cli/cli-decode.h (struct cmd_list_element) <completer>:
3950         Use completer_ftype.
3951         * command.h (completer_ftype): New typedef.
3952         (set_cmd_completer): Use it.
3953         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3954         completer_ftype.
3955
3956 2012-06-13  Pedro Alves  <palves@redhat.com>
3957
3958         Partial revert of previous change.
3959
3960         * serial.c (scb_base): New global.
3961         (serial_for_fd): New.
3962         (serial_open, serial_fdopen_ops): Link new serial in open serials
3963         chain.
3964         (do_serial_close): Unlink serial from the open serials chain.
3965
3966 2012-06-12  Pedro Alves  <palves@redhat.com>
3967
3968         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3969         threads here.
3970         (prepare_for_detach): No longer context switch here in non-stop
3971         mode.
3972         (fetch_inferior_event): Ditto.
3973         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3974         to the event thread before removing breakpoints.  Switch to the
3975         event thread before inserting breakpoints and resuming.
3976         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3977         event thread before resuming.
3978         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3979         Switch to the event thread before removing breakpoints.
3980
3981 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
3982
3983         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3984         special characters correctly for the Windows shells.  See
3985         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3986         report.
3987         [!__MINGW32__]: Remove extra double quote character from special
3988         characters.
3989
3990 2012-06-11  Stan Shebs  <stan@codesourcery.com>
3991
3992         * ui-out.h: Remove #if 0 declarations.
3993         * ui-out.c: Remove #if 0 functions.
3994
3995 2012-06-11  Pedro Alves  <palves@redhat.com>
3996
3997         * ser-base.c (run_async_handler_and_reschedule): New.
3998         (fd_event, push_event): Use it.
3999         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4000         reference count to 1.
4001         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4002         instead of xfree.
4003         (serial_is_open, serial_ref, serial_unref): New.
4004         * serial.h (serial_open): Adjust comment.
4005         (serial_is_open): Declare.
4006         (serial_close): Adjust comment.
4007         (serial_ref, serial_unref) Declare.
4008         (struct serial): New field 'refcnt'.
4009
4010 2012-06-11  Pedro Alves  <palves@redhat.com>
4011
4012         Remove #if 0'd "connect" command, and unnecessary associated
4013         refcounting and serial reuse bits.
4014
4015         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4016         * serial.c (last_serial_opened): Delete.
4017         (scb_base): Delete.
4018         (serial_open): Adjust.
4019         (serial_for_fd): Delete.
4020         (serial_fdopen_ops, do_serial_close): Adjust.
4021         (serial_fdopen_ops): Adjust.
4022
4023 2012-06-11  Pedro Alves  <palves@redhat.com>
4024
4025         * serial.c (do_serial_close): Remove early return when SCB is
4026         null.
4027
4028 2012-06-11  Tom Tromey  <tromey@redhat.com>
4029
4030         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4031
4032 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4033
4034         Fix regression by the "ambiguous linespec" series.
4035         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4036         get_last_displayed_symtab and get_last_displayed_line and depending
4037         on CURSAL.
4038
4039 2012-06-11  Tom Tromey  <tromey@redhat.com>
4040
4041         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4042         (dw2_find_symbol_file): Use it.
4043
4044 2012-06-11  Michael Eager  <eager@eagercon.com>
4045
4046         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4047         * mips-linux-tdep.h (mips_signals): New
4048
4049 2012-06-11  Tom Tromey  <tromey@redhat.com>
4050
4051         * infrun.c (handle_inferior_event)
4052         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4053         breakpoint.
4054         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4055         exception logic in all cases.  Update comments.
4056         (insert_longjmp_resume_breakpoint): Set the exception resume
4057         breakpoint.
4058
4059 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4060
4061         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4062
4063 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4064
4065         * valarith.c (binop_types_user_defined_p): Fix a typo.
4066
4067 2012-06-08  Yao Qi  <yao@codesourcery.com>
4068             Chung-Lin Tang <cltang@codesourcery.com>
4069
4070         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4071         * arch-utils.h: Declare.
4072         * gdbarch.sh: Add return_in_first_hidden_param_p.
4073         * gdbarch.c, gdbarch.h: Regenerated.
4074         * infcall.c (call_function_by_hand): Call
4075         gdbarch_return_in_first_hidden_param_p instead of
4076         language_pass_by_reference.
4077
4078         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4079         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4080         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4081         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4082         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4083         `cplus_return_struct_by_reference'.
4084         (tic6x_return_value): Handle language cplusplus.
4085         (tic6x_return_in_first_hidden_param_p): New.
4086         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4087
4088 2012-06-07  Doug Evans  <dje@google.com>
4089
4090         * dwarf2read.c (dwarf2_cu): Add comment.
4091
4092 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4093
4094         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4095         variable.
4096         (mips_eabi_push_dummy_call): Likewise.
4097         (mips_n32n64_push_dummy_call): Likewise.
4098         (mips_o32_push_dummy_call): Likewise.
4099         (mips_o64_push_dummy_call): Likewise.
4100
4101 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4102
4103         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4104
4105 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4106
4107         * mips-tdep.c (mips_pseudo_register_type): Use
4108         mips_float_register_p.
4109
4110 2012-06-06  Pedro Alves  <palves@redhat.com>
4111
4112         * infrun.c (handle_inferior_event): Remove calls to
4113         reinit_frame_cache that follow a context_switch call.
4114
4115 2012-06-06  Pedro Alves  <palves@redhat.com>
4116
4117         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4118         context_switch and remove stale comment.
4119
4120 2012-06-06  Pedro Alves  <palves@redhat.com>
4121
4122         * infrun.c (struct execution_control_state): Remove
4123         `new_thread_event' field.
4124         (handle_inferior_event): Simplify new threads handling; don't
4125         resume the inferior if we find a new thread.
4126
4127 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4128
4129         * NEWS: Document the deprecation of SH's 'regs' command.
4130         * inferior.h (all_registers_info): Add function declaration.
4131         * sh-tdep.c (sh_show_regs): Remove variable.
4132         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4133         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4134         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4135         (sh_show_regs_command): Remove functions.
4136         (sh_gdbarch_init): Don't set sh_show_regs.
4137         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4138         'info all-registers'.
4139         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4140         (sh64_show_regs): Remove functions.
4141         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4142
4143 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4144
4145         * configure.ac: Move development=true below AC_INIT.
4146         * configure: Regenerate.
4147
4148 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4149
4150         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4151         gdb_stdout.
4152
4153 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4154
4155         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4156         argument as ssize_t.
4157         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4158         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4159         * target.c (target_read_stack, target_write_memory)
4160         (target_write_raw_memory): Likewise.
4161         * target.h (target_read_stack, target_write_memory)
4162         (target_write_raw_memory): Likewise.
4163
4164 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4165
4166         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4167         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4168         * target.c (target_read_memory): Change LEN to ssize_t.
4169         * target.h (target_read_memory): Change LEN to ssize_t.
4170
4171 2012-06-05  Pedro Alves  <palves@redhat.com>
4172
4173         PR backtrace/13866
4174
4175         * breakpoint.c (until_break_command): Only fetch the selected
4176         frame after decode_line_1.
4177
4178 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4179
4180         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4181         event breakpoint at _start, __start or main if a program
4182         interpreter is not found.
4183
4184 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4185
4186         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4187         Add declaration.
4188         * windows-tdep.c: #include "objfiles.h".
4189         (windows_iterate_over_objfiles_in_search_order): New function.
4190         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4191         iterate_over_objfiles_in_search_order gdbarch method to
4192         windows_iterate_over_objfiles_in_search_order.
4193         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4194
4195 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4196
4197         * gdbarch.sh: Add generation of
4198         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4199         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4200         (iterate_over_objfiles_in_search_order): New gdbarch method.
4201         * gdbarch.h, gdbarch.c: Regenerate.
4202         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4203         Add declaration.
4204         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4205         New function.
4206         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4207         out of lookup_symbol_aux_symtabs.
4208         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4209         call to lookup_symbol_aux_objfile.
4210         (struct global_sym_lookup_data): New type.
4211         (lookup_symbol_global_iterator_cb): New function.
4212         (lookup_symbol_global): Search for symbol using
4213         gdbarch_iterate_over_objfiles_in_search_order and
4214         lookup_symbol_global_iterator_cb.
4215         * findvar.c (struct minsym_lookup_data): New type.
4216         (minsym_lookup_iterator_cb): New function.
4217         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4218         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4219         and minsym_lookup_iterator_cb.
4220
4221 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4222
4223         Revert the following patch:
4224         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4225         try locating the symbol in the symbol's own objfile first, before
4226         extending the search to all objfiles.
4227         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4228         out of lookup_symbol_aux_symtabs.
4229         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4230         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4231         Do not search EXCLUDE_OBJFILE.
4232         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4233         (lookup_symbol_global): Search for matches in the block's objfile
4234         first, before searching all other objfiles.
4235
4236 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4237
4238         * breakpoint.c (find_condition_and_thread): Stop parsing
4239         as soon as the first invalid keyword is found.
4240
4241 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4242
4243         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4244
4245 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4246
4247         * config/djgpp/djcheck.sh: Add copyright header.
4248
4249 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4250
4251         * copyright.py (update_files, main): Fix path to update-copyright
4252         script.
4253
4254 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4255
4256         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4257         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4258         for which a reminder to update by hand is printed.
4259
4260 2012-06-04  Doug Evans  <dje@google.com>
4261
4262         * buildsym.c (make_blockvector): Add comment.
4263
4264 2012-06-04  Pedro Alves  <palves@redhat.com>
4265
4266         * arch-utils.c (default_gdb_signal_from_target): Delete.
4267         * arch-utils.h (default_gdb_signal_from_target): Delete.
4268         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4269         gdbarch_gdb_signal_from_target_p.
4270         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4271         predicate).
4272         * gdbarch.h: Regenerate.
4273         * gdbarch.c: Regenerate.
4274
4275 2012-06-04  Pedro Alves  <palves@redhat.com>
4276
4277         * gdbarch.sh (gdb_signal_from_target): Mention that the
4278         implementation of the method must be host independent.
4279         * gdbarch.h: Regenerate.
4280
4281 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4282
4283         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4284         parameters.
4285         (target_read_memory_bfd): New function.
4286         (symbol_file_add_from_memory): Use it.
4287
4288 2012-06-03  Doug Evans  <dje@google.com>
4289
4290         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4291         of primary symtab.
4292         (basic_lookup_transparent_type): Ditto.
4293
4294         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4295         (ALL_PRIMARY_SYMTABS): Use it.
4296         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4297         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4298         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4299         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4300         (basic_lookup_transparent_type): Ditto.
4301
4302 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4303
4304         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4305         it to optimize resolution of demangled name.
4306
4307 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4308
4309         * configure.ac (development): Define new variable.
4310         Call AC_CHECK_LIB for mcheck if $development.
4311         (ERROR_ON_WARNING): Enable it by default only if $development.
4312         * config.in: Regenerate.
4313         * configure: Regenerate.
4314
4315 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4316
4317         * target.c (target_read_memory): Make LEN argument as size_t.
4318         * target.h (target_read_memory): Likewise.
4319
4320 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4321
4322         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4323
4324 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4325
4326         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4327         BookE interface for PowerPC server processors if not available
4328         in the Linux Kernel.
4329
4330 2012-05-31  Keith Seitz  <keiths@redhat.com>
4331
4332         * linespec.c (decode_objc): Add cleanup to free
4333         INFO.FILE_SYMTABS.
4334         (find_linespec_symbols): Add cleanup to free CLASSES.
4335         * symfile.c (find_separate_debug_file_by_debuglink): Add
4336         cleanup to free DEBUGLINK.
4337         * ui-out.c (clear_header_list): No need to check if
4338         HEADER_NEXT.COLHDR is NULL.
4339         Free HEADER_NEXT.COL_NAME.
4340
4341 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4342
4343         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4344         warning.
4345
4346 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4347
4348         * configure.host (gdb_host_cpu): Handle tilegx*.
4349         (gdb_host): Handle tilegx-*-linux*.
4350         * tilegx-linux-nat.c: New file.
4351         * config/tilegx/linux.mh: New file.
4352
4353 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4354
4355         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4356         tilegx-linux-tdep.o.
4357         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4358         tilegx-linux-tdep.c.
4359         * configure.tgt: Handle tilegx-*-linux*.
4360         * tilegx-tdep.h: New file.
4361         * tilegx-tdep.c: New file.
4362         * tilegx-linux-tdep.c: New file.
4363         * regformats/reg-tilegx.dat: New file.
4364
4365 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4366
4367         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4368         accounting of hw watchpoints on ppc.
4369
4370 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4371
4372         * source.c (openp): Expand tilde in path entries.
4373
4374 2012-05-29  Doug Evans  <dje@google.com>
4375
4376         * buildsym.c (block_compar): Fix comment.
4377         (end_symtab): Fix and clarify some comments.
4378
4379         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4380         cleanup_undefined_types.
4381         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4382         All callers updated.
4383
4384 2012-05-29  Tom Tromey  <tromey@redhat.com>
4385
4386         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4387         fails.
4388         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4389         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4390         fails.
4391         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4392         fails.
4393
4394 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4395
4396         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4397         (struct darwin_info): ... New struct.
4398         (solib_darwin_pspace_data): New variable.
4399         (darwin_pspace_data_cleanup): New function.
4400         (get_darwin_info): Likewise.
4401         (darwin_dyld_version_ok, darwin_load_image_infos)
4402         (darwin_solib_get_all_image_info_addr_at_init)
4403         (darwin_solib_read_all_image_info_addr): Add info argument.
4404         Adjust code.
4405         (darwin_current_sos): Use per pspace structure.
4406         (darwin_solib_create_inferior_hook): Likewise.
4407         (darwin_clear_solib): Likewise.
4408         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4409
4410 2012-05-28  Pedro Alves  <palves@redhat.com>
4411
4412         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4413         block that uses them.  Clear ecss before handling each event.
4414
4415 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4416
4417         * solib-svr4.c (svr4_current_sos): New comment on
4418         svr4_current_sos_via_xfer_libraries fall back.
4419
4420 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4421
4422         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4423         it as a fallback for TYPE_IS_OPAQUE.
4424         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4425         symbols for lookup_symbol.
4426
4427 2012-05-24  John Steele Scott  <toojays@toojays.net>
4428
4429         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4430         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4431         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4432         (check_producer): ... this new function, which also checks for ICC
4433         and caches the result.
4434         (producer_is_icc): New function.
4435         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4436         producer was ICC.
4437
4438 2012-05-24  Pedro Alves  <palves@redhat.com>
4439
4440         PR gdb/7205
4441
4442         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4443         (default_gdb_signal_to_target): ... this.  Add comment.
4444         (default_gdb_signal_from_host): Rename to ...
4445         (default_gdb_signal_from_target): ... this.  Add comment.
4446         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4447         (default_gdb_signal_to_target): ... this.
4448         (default_gdb_signal_from_host): Rename to ...
4449         (default_gdb_signal_from_target): ... this.
4450         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4451         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4452         (gdb_signal_from_target): ... this.  Adjust to
4453         default_gdb_signal_from_host naming change.  Extend comment.
4454         (gdb_signal_to_host): Rename to ...
4455         (gdb_signal_to_target): ... this.  Adjust to
4456         default_gdb_signal_to_host naming change.
4457         * gdbarch.h, gdbarch.c: Renegerate.
4458
4459 2012-05-24  Pedro Alves  <palves@redhat.com>
4460
4461         PR gdb/7205
4462
4463         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4464
4465 2012-05-24  Pedro Alves  <palves@redhat.com>
4466
4467         PR gdb/7205
4468
4469         Replace target_signal with gdb_signal throughout.
4470
4471 2012-05-24  Pedro Alves  <palves@redhat.com>
4472
4473         PR tui/14159
4474
4475         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4476         string, instead of reusing the va_list argument.
4477
4478 2012-05-24  Tom Tromey  <tromey@redhat.com>
4479
4480         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4481         Remove.
4482
4483 2012-05-23  Doug Evans  <dje@google.com>
4484
4485         * symtab.c (search_symbols): Formatting fixes.
4486         (print_symbol_info): Formatting fixes.
4487
4488         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4489         int64_t change to leb128 API.
4490         (read_encoded_value, decode_frame_entry_1): Ditto.
4491         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4492         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4493         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4494         (execute_stack_op): Ditto.
4495         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4496         (safe_read_uleb128, safe_read_sleb128): Ditto.
4497         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4498         (dwarf2_compile_expr_to_ax): Ditto.
4499         (locexpr_describe_location_piece): Ditto.
4500         (disassemble_dwarf_expression): Ditto.
4501         (locexpr_describe_location_1): Ditto.
4502
4503 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4504             Kwok Cheung Yeung  <kcy@codesourcery.com>
4505
4506         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4507         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4508         (mi-cmd-info.o): New rule.
4509         * osdata.h (info_osdata_command): New declaration.
4510         * osdata.c (info_osdata_command): Change to non-static.
4511         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4512         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4513         * mi/mi-cmd-info.c: New file.
4514
4515 2012-05-23  Doug Evans  <dje@google.com>
4516
4517         * symtab.c (search_symbols): Pass NULL for file_matcher to
4518         expand_symtabs_matching if there are no files to match.
4519
4520         * gdbtypes.c (lookup_typename): Simplify.
4521
4522 2012-05-23  Pedro Alves  <palves@redhat.com>
4523
4524         * arch-utils.h (default_target_signal_to_host): Delete.
4525         * arch-utils.c (default_target_signal_to_host): Delete.
4526         * gdbarch.sh (target_signal_to_host): Remove.
4527         * gdbarch.h, gdbarch.c: Regenerate.
4528
4529 2012-05-22  Doug Evans  <dje@google.com>
4530
4531         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4532         "const gdb_byte *".
4533         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4534         (execute_cfa_program): Update to match API of leb128 functions.
4535         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4536         "const gdb_byte *".
4537         (read_unsigned_leb128, read_signed_leb128): Delete.
4538         (read_initial_length): Change type of buf argument to
4539         "const gdb_byte *".
4540         (read_encoded_value): Update to match API of leb128 functions.
4541         (decode_frame_entry): Change result to "const gdb_byte *", and
4542         similarly for "start" parameter.
4543         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4544         (dwarf2_build_frame_info): Change local frame_ptr to
4545         "const gdb_byte *".
4546         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4547         read_uleb128, read_sleb128.  All callers updated.
4548         (safe_skip_leb128): New function.
4549         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4550         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4551         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4552         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4553         read_uleb128, read_sleb128.
4554         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4555         (execute_stack_op): Update to match API of leb128 functions.
4556         * dwarf2expr.h: #include "leb128.h".
4557         (read_uleb128, read_sleb128): Delete.
4558         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4559         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4560         * dwarf2loc.c (debug_loc_kind): New enum.
4561         (decode_debug_loc_addresses): New function.
4562         (decode_debug_loc_dwo_addresses): New function.
4563         (dwarf2_find_location_expression): Rewrite.
4564         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4565         (locexpr_describe_location_piece): Ditto.
4566         (disassemble_dwarf_expression): Ditto.
4567         (locexpr_describe_location_1): Ditto.
4568         (loclist_describe_location): Rewrite.
4569         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4570         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4571         (dwarf2_section_buffer_overflow_complaint): Renamed from
4572         dwarf2_macros_too_long_complaint.  All callers updated.
4573         (skip_leb128): Delete.
4574         (init_cu_die_reader): Initialize reader->buffer_end.
4575         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4576         (skip_form_bytes): New arg buffer_end.  All callers updated.
4577         Replace call to skip_leb128 with gdb_skip_leb128.
4578         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4579         (fill_in_loclist_baton): Initialize baton->from_dwo.
4580
4581 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4582
4583         * mips-linux-nat.c (mips_linux_read_description): Use a more
4584         verbose error message.
4585
4586 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4587
4588         * NEWS: Add MIPS/Linux DSP support.
4589         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4590         (SIGCONTEXT_DSPCTL): New macro.
4591         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4592         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4593         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4594         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4595         (N64_SIGCONTEXT_HI3): Likewise.
4596         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4597         (N64_SIGCONTEXT_LO3): Likewise.
4598         (N64_SIGCONTEXT_DSPCTL): Likewise.
4599         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4600         (mips_linux_o32_sigframe_init): Handle DSP registers.
4601         (mips_linux_n32n64_sigframe_init): Likewise.
4602
4603 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4604
4605         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4606         call to abort.
4607
4608 2012-05-22  Pedro Alves  <palves@redhat.com>
4609
4610         * target.h (store_waitstatus): Move declaration ...
4611         * inf-child.h (store_waitstatus): ... here.
4612         * target.c: Move inclusion of gdb_wait.h, and ...
4613         (store_waitstatus): ... this ...
4614         * inf-child.c: ... here.
4615         * linux-nat.c: Include inf-child.h.
4616         * rs6000-nat.c: Include inf-child.h.
4617         * spu-linux-nat.c: Include inf-child.h.
4618
4619 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4620
4621         * tracepoint.c (start_tracing): Add missing i18n markup.
4622         (stop_tracing, set_trace_user): Ditto.
4623         (set_trace_notes, set_trace_stop_notes): Ditto.
4624
4625 2012-05-21  Tom Tromey  <tromey@redhat.com>
4626
4627         PR c++/7173:
4628         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4629         types.
4630         * value.h (value_cast_pointers): Update.
4631         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4632         (value_cast): Update.
4633         (update_search_result): New function.
4634         (do_search_struct_field): New, from search_struct_field.  Check
4635         for ambiguous results.
4636         (search_struct_field): Rewrite.
4637         * infcall.c (value_arg_coerce): Update.
4638         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4639         value_cast_pointers.
4640         * ada-lang.c (ada_convert_actual): Update.
4641
4642 2012-05-21  Tom Tromey  <tromey@redhat.com>
4643
4644         * macroexp.c (macro_stringify): Terminate the string.
4645
4646 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4647
4648         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4649         Describe it.
4650         * auto-load.c (auto_load_expand_dir_vars): New function.
4651         (auto_load_safe_path_vec_update): Use it, remove the
4652         substitute_path_component call thanks to it.
4653         (auto_load_objfile_script): Remove the debug_file_directory processing.
4654         Use auto_load_expand_dir_vars, remove the substitute_path_component
4655         call thanks to it.
4656         * configure: Regenerate.
4657         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4658         path.  Escape $ also for $debugdir.
4659         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4660         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4661
4662 2012-05-20  Doug Evans  <dje@google.com>
4663
4664         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4665         before use.  Check for symtab->includes == NULL before scanning it.
4666
4667 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4668
4669         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4670
4671 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4672
4673         * NEWS: Add microMIPS support and "set mips compression",
4674         "show mips compression" commands.
4675         * mips-tdep.h (mips_isa): New enum.
4676         (gdbarch_tdep): Add mips_isa.
4677         (mips_pc_is_mips16): Update prototype.
4678         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4679         * mips-tdep.c (mips_compression_mips16): New variable.
4680         (mips_compression_micromips): Likewise.
4681         (mips_compression_strings): Likewise.
4682         (mips_compression_string): Likewise.
4683         (is_mips16_isa, is_micromips_isa): New functions.
4684         (is_mips16_addr): Rename to...
4685         (is_compact_addr): ... this.
4686         (unmake_mips16_addr): Likewise to...
4687         (unmake_compact_addr): ... this.
4688         (make_mips16_addr): Likewise to...
4689         (make_compact_addr): ... this.
4690         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4691         functions.
4692         (mips_elf_make_msymbol_special): Handle microMIPS code.
4693         (msymbol_is_special): Rename to...
4694         (msymbol_is_mips16): ... this.
4695         (mips_make_symbol_special, mips_pc_is_mips16): Update
4696         accordingly.
4697         (msymbol_is_mips, msymbol_is_micromips): New functions.
4698         (mips16_to_32_reg): Rename to...
4699         (mips_reg3_to_reg): ... this.
4700         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4701         (mips_pc_isa): Likewise.
4702         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4703         code.
4704         (mips_fetch_instruction): Pass return status instead of printing
4705         an error message if requested.  Handle microMIPS code.  Bail out
4706         on an invalid ISA.
4707         (micromips_op): New macro.
4708         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4709         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4710         (b6s4_op, b7s3_reg): Likewise.
4711         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4712         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4713         (mips_insn_size): New function.
4714         (mips32_next_pc): Update mips_fetch_instruction call.
4715         (micromips_relative_offset7): New function.
4716         (micromips_relative_offset10): Likewise.
4717         (micromips_relative_offset16): Likewise.
4718         (micromips_pc_insn_size): Likewise.
4719         (micromips_bc1_pc): Likewise.
4720         (micromips_next_pc): Likewise.
4721         (unpack_mips16): Update mips_fetch_instruction call.
4722         (extended_mips16_next_pc): Update according to change to
4723         mips16_to_32_reg.
4724         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4725         code.
4726         (mips16_scan_prologue): Update mips_fetch_instruction call.
4727         Update according to change to mips16_to_32_reg.
4728         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4729         (mips_insn16_frame_base_sniffer): Likewise.
4730         (micromips_decode_imm9): New function.
4731         (micromips_scan_prologue): Likewise.
4732         (mips_micro_frame_cache): Likewise.
4733         (mips_micro_frame_this_id): Likewise.
4734         (mips_micro_frame_prev_register): Likewise.
4735         (mips_micro_frame_sniffer): Likewise.
4736         (mips_micro_frame_unwind): New variable.
4737         (mips_micro_frame_base_address): New function.
4738         (mips_micro_frame_base): New variable.
4739         (mips_micro_frame_base_sniffer): New function.
4740         (mips32_scan_prologue): Update mips_fetch_instruction call.
4741         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4742         rather than for MIPS16.
4743         (mips_insn32_frame_base_sniffer): Likewise.
4744         (mips_addr_bits_remove): Handle microMIPS code.
4745         (deal_with_atomic_sequence): Rename to...
4746         (mips_deal_with_atomic_sequence): ... this.  Update the type
4747         of the variable used to hold an instruction.  Remove the ISA bit
4748         check.  Update mips_fetch_instruction call.
4749         (micromips_deal_with_atomic_sequence): New function.
4750         (deal_with_atomic_sequence): Likewise.
4751         (mips_about_to_return): Handle microMIPS code.  Update
4752         mips_fetch_instruction call.
4753         (heuristic_proc_start): Check for the standard MIPS ISA rather
4754         than for MIPS16.  Update mips_pc_is_mips16 and
4755         mips_fetch_instruction calls.  Handle microMIPS code.
4756         (mips_push_dummy_code): Handle microMIPS code.
4757         (mips_eabi_push_dummy_call): Likewise.
4758         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4759         (mips_o64_push_dummy_call): Handle microMIPS code.
4760         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4761         (is_delayed): Remove function.
4762         (mips_single_step_through_delay): Replace the call to is_delayed
4763         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4764         Handle microMIPS code.
4765         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4766         microMIPS code.
4767         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4768         call.
4769         (micromips_in_function_epilogue_p): New function.
4770         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4771         call.
4772         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4773         Handle microMIPS.
4774         (gdb_print_insn_mips): Likewise.
4775         (mips_breakpoint_from_pc): Likewise.
4776         (mips_remote_breakpoint_from_pc): New function.
4777         (mips32_instruction_has_delay_slot): Simplify making use of the
4778         updated mips_fetch_instruction interface.
4779         (micromips_instruction_has_delay_slot): New function.
4780         (mips16_instruction_has_delay_slot): Simplify making use of the
4781         updated mips_fetch_instruction interface.
4782         (mips_adjust_breakpoint_address): Check for the standard MIPS
4783         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4784         calls.  Handle microMIPS code.
4785         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4786         (mips_skip_trampoline_code): Handle microMIPS code.
4787         (global_mips_compression): New function.
4788         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4789         file flags.  Register the microMIPS remote breakpoint handler
4790         and heuristic frame unwinder.
4791         (show_mips_compression): New function.
4792         (_initialize_mips_tdep): Add the "set mips compression" and
4793         "show mips compression" commands.
4794
4795 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4796
4797         * ada-lang.c:
4798         * ada-tasks.c:
4799         * ada-varobj.c:
4800         * amd64-darwin-tdep.c:
4801         * arm-symbian-tdep.c:
4802         * arm-tdep.c:
4803         * avr-tdep.c:
4804         * ax-gdb.c:
4805         * bfin-linux-tdep.c:
4806         * breakpoint.c:
4807         * c-valprint.c:
4808         * cli/cli-cmds.c:
4809         * coffread.c:
4810         * cp-support.c:
4811         * cris-tdep.c:
4812         * dwarf2-frame-tailcall.c:
4813         * dwarf2-frame.c:
4814         * dwarf2expr.c:
4815         * dwarf2loc.c:
4816         * dwarf2read.c:
4817         * elfread.c:
4818         * eval.c:
4819         * expprint.c:
4820         * f-valprint.c:
4821         * frv-tdep.c:
4822         * h8300-tdep.c:
4823         * hppa-hpux-tdep.c:
4824         * hppa-tdep.c:
4825         * hppanbsd-tdep.c:
4826         * i386-nto-tdep.c:
4827         * i386-tdep.c:
4828         * i387-tdep.c:
4829         * ia64-tdep.c:
4830         * jit.c:
4831         * linespec.c:
4832         * linux-tdep.c:
4833         * lm32-tdep.c:
4834         * m2-valprint.c:
4835         * m32c-tdep.c:
4836         * m32r-rom.c:
4837         * m32r-tdep.c:
4838         * m68k-tdep.c:
4839         * m68klinux-tdep.c:
4840         * mi/mi-main.c:
4841         * microblaze-tdep.c:
4842         * mips-linux-tdep.c:
4843         * mips-tdep.c:
4844         * mn10300-tdep.c:
4845         * p-valprint.c:
4846         * parse.c:
4847         * ppc-linux-tdep.c:
4848         * ppc-sysv-tdep.c:
4849         * printcmd.c:
4850         * python/py-finishbreakpoint.c:
4851         * python/py-inferior.c:
4852         * python/py-infthread.c:
4853         * python/py-type.c:
4854         * python/python.c:
4855         * remote-fileio.c:
4856         * remote-m32r-sdi.c:
4857         * remote-mips.c:
4858         * reverse.c:
4859         * rl78-tdep.c:
4860         * rs6000-aix-tdep.c:
4861         * rs6000-tdep.c:
4862         * s390-tdep.c:
4863         * score-tdep.c:
4864         * sh64-tdep.c:
4865         * skip.c:
4866         * solib-darwin.c:
4867         * solib-dsbt.c:
4868         * solib-frv.c:
4869         * sparc-tdep.c:
4870         * spu-multiarch.c:
4871         * spu-tdep.c:
4872         * stack.c:
4873         * symfile.c:
4874         * symtab.c:
4875         * tic6x-tdep.c:
4876         * tracepoint.c:
4877         * v850-tdep.c:
4878         * valarith.c:
4879         * valprint.c:
4880         * value.c:
4881         * xcoffread.c:
4882         * xtensa-tdep.c:
4883         * ada-lang.c:
4884         * ada-tasks.c:
4885         * ada-varobj.c:
4886         * amd64-darwin-tdep.c:
4887         * arm-symbian-tdep.c:
4888         * arm-tdep.c: Delete unused variables.
4889
4890 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4891
4892         Rename $ddir to $datadir.
4893         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4894         * auto-load.c (auto_load_safe_path_vec_update)
4895         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4896         * configure: Regenerate.
4897         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4898         Likewise.  Remove the 'use $ddir' help string.
4899
4900 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4901
4902         * auto-load.c (show_auto_load_safe_path): Accept any combination of
4903         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4904
4905 2012-05-18  Tom Tromey  <tromey@redhat.com>
4906
4907         PR exp/13907:
4908         * valprint.h (struct value_print_options) <symbol_print>: New
4909         field.
4910         * valprint.c (user_print_options): Add default for symbol_print.
4911         (show_symbol_print): New function.
4912         (generic_val_print): Respect symbol_print.
4913         (_initialize_valprint): Add "print symbol" setting.
4914         * f-valprint.c (f_val_print): Respect symbol_print.
4915         * c-valprint.c (c_val_print): Respect symbol_print.
4916         * NEWS: Update.
4917         * printcmd.c (print_address_symbolic): Return int.  Ignore some
4918         zero-size symbols.
4919         (print_address_demangle): Return int.
4920         * defs.h: (print_address_symbolic): Return int.
4921         * value.h (print_address_demangle): Return int.
4922
4923 2012-05-18  Tom Tromey  <tromey@redhat.com>
4924
4925         * valprint.c (val_print_string): Don't print leading space.
4926         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4927         print space before string or vtbl.
4928         * m2-valprint.c (print_unpacked_pointer): Optionally print space
4929         before string.
4930         * jv-valprint.c (java_value_print): Print space before string.
4931         * go-valprint.c (print_go_string): Print space before string.
4932         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4933         space before string.
4934         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4935         space before string or vtbl.
4936         * auxv.c (fprint_target_auxv): Print space after address.
4937
4938 2012-05-18  Tom Tromey  <tromey@redhat.com>
4939
4940         * printcmd.c (print_address_demangle): Remove special case for 0.
4941
4942 2012-05-18  Tom Tromey  <tromey@redhat.com>
4943
4944         * printcmd.c (print_address_demangle): Add 'opts' argument.
4945         * p-valprint.c (pascal_val_print): Update.
4946         * jv-valprint.c (java_val_print): Update.
4947         * value.h: Update.
4948         * valprint.c (generic_val_print): Update.
4949         (print_function_pointer_address): Add 'options' argument.  Remove
4950         'addressprint' argument.  Update.
4951         * m2-valprint.c (print_unpacked_pointer): Update.
4952         * gnu-v3-abi.c (print_one_vtable): Update.
4953         (gnuv3_print_method_ptr): Update.
4954         * f-valprint.c (f_val_print): Update.
4955         * cp-valprint.c (cp_print_value_fields): Update.
4956         * valprint.h (print_function_pointer_address): Update.
4957         * c-valprint.c (c_val_print): Update.
4958
4959 2012-05-18  Tom Tromey  <tromey@redhat.com>
4960
4961         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4962         directly corresponding to the found psymtab.
4963         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4964         (dw2_find_pc_sect_symtab): Use it.
4965         * block.h (blockvector_contains_pc): Declare.
4966         * block.c (find_block_in_blockvector): New function.
4967         (blockvector_for_pc_sect): Use it.
4968         (blockvector_contains_pc): New function.
4969
4970 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4971
4972         * mips-tdep.h (mips_write_pc): New prototype.
4973         * mips-tdep.c (mips_write_pc): Make external, add description.
4974         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4975         add description.
4976
4977 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4978
4979         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4980         mips_regnum->pc.
4981         (mips_unwind_pc, mips_write_pc): Likewise.
4982         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4983         gdbarch_read_pc.
4984
4985 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
4986
4987         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4988         proc_warn, proc_error, proc_get_status, proc_flags,
4989         proc_why, proc_what, proc_nsysarg, proc_sysargs,
4990         proc_set_run_on_last_close, proc_unset_run_on_last_close,
4991         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4992         proc_stop_process, proc_wait_for_stop, proc_run_process,
4993         proc_set_traced_signals, proc_set_traced_faults,
4994         proc_set_traced_sysentry, proc_set_traced_sysexit,
4995         proc_set_held_signals, proc_get_held_signals,
4996         proc_get_traced_signals, proc_get_traced_faults,
4997         proc_get_traced_sysentry, proc_get_traced_sysexit,
4998         proc_clear_current_fault, proc_set_current_signal,
4999         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5000         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5001         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5002         proc_get_current_thread, proc_get_current_thread,
5003         proc_get_current_thread, proc_update_threads,
5004         proc_update_threads, proc_update_threads, proc_update_threads,
5005         proc_iterate_over_threads, procfs_find_new_threads,
5006         procfs_pid_to_str): Make static.  Remove advance declaration.
5007         (proc_cursig): Make static.  Conditionalized defintion on
5008         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5009         (proc_syscall, proc_set_kill_on_last_close,
5010         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5011         proc_get_pending_signals, proc_get_signal_actions,
5012         proc_trace_signal, proc_ignore_signal): Delete.
5013
5014 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5015
5016         * coffread.c (cs_section_address): Passing proper argument for
5017         `bfd_get_section_vma'.
5018         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5019         `bfd_get_section_flags'.
5020         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5021         `bfd_get_section_vma'.
5022
5023 2012-05-16  Tom Tromey  <tromey@redhat.com>
5024
5025         PR macros/13205:
5026         * macrotab.h: (macro_define_special): Declare.
5027         (enum macro_special_kind): New.
5028         (struct macro_definition) <argc, replacement>: Update comments.
5029         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5030         (macro_define_object_internal): New function.
5031         (macro_define_object): Use it.
5032         (macro_define_special): New function.
5033         (fixup_definition): New function.
5034         (macro_lookup_definition, foreach_macro_in_scope)
5035         (foreach_macro): Use fixup_definition.
5036         * macroexp.h (macro_stringify): Declare.
5037         * macroexp.c (free_buffer_return_text): New function.
5038         (stringify): Constify "arg".
5039         (macro_stringify): New function.
5040         * dwarf2read.c (macro_start_file): Call macro_define_special.
5041
5042 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5043             Maciej W. Rozycki  <macro@mips.com>
5044
5045         * breakpoint.h (bp_location): Add related_address member.
5046         * inferior.h (get_return_value): Take a pointer to struct value
5047         instead of struct type for the function requested.
5048         * value.h (using_struct_return): Likewise.
5049         * gdbarch.sh (return_value): Take a pointer to struct value
5050         instead of struct type for the function requested.
5051         * breakpoint.c (set_breakpoint_location_function): Initialize
5052         related_address for bp_gnu_ifunc_resolver breakpoints.
5053         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5054         requested function's address to gdbarch_return_value.
5055         * eval.c (evaluate_subexp_standard): Pass the requested
5056         function's address to using_struct_return.
5057         * infcall.c (call_function_by_hand): Pass the requested
5058         function's address to using_struct_return and
5059         gdbarch_return_value.
5060         * infcmd.c (get_return_value): Take a pointer to struct value
5061         instead of struct type for the function requested.
5062         (print_return_value): Update accordingly.
5063         (finish_command_continuation): Likewise.
5064         * stack.c (return_command): Pass the requested function's
5065         address to using_struct_return and gdbarch_return_value.
5066         * value.c (using_struct_return): Take a pointer to struct value
5067         instead of struct type for the function requested.  Pass the
5068         requested function's address to gdbarch_return_value.
5069         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5070         New function_value member, replacing function_type.
5071         (bpfinishpy_dealloc): Update accordingly.
5072         (bpfinishpy_pre_stop_hook): Likewise.
5073         (bpfinishpy_init): Likewise.  Record the requested function's
5074         address.
5075         * mips-tdep.c (mips_fval_reg): New enum.
5076         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5077         words put in GP registers.
5078         (mips_o64_push_dummy_call): Update a comment.
5079         (mips_o32_return_value): Take a pointer to struct value instead
5080         of struct type for the function requested and use it to check if
5081         using the MIPS16 calling convention.  Return the designated
5082         general purpose registers for floating-point values returned in
5083         MIPS16 mode.
5084         (mips_o64_return_value): Likewise.
5085         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5086         (ppc_sysv_abi_broken_return_value): Likewise.
5087         (ppc64_sysv_abi_return_value): Likewise.
5088         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5089         value instead of struct type for the function requested.
5090         * amd64-tdep.c (amd64_return_value): Likewise.
5091         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5092         * arm-tdep.c (arm_return_value): Likewise.
5093         * avr-tdep.c (avr_return_value): Likewise.
5094         * bfin-tdep.c (bfin_return_value): Likewise.
5095         * cris-tdep.c (cris_return_value): Likewise.
5096         * frv-tdep.c (frv_return_value): Likewise.
5097         * h8300-tdep.c (h8300_return_value): Likewise.
5098         (h8300h_return_value): Likewise.
5099         * hppa-tdep.c (hppa32_return_value): Likewise.
5100         (hppa64_return_value): Likewise.
5101         * i386-tdep.c (i386_return_value): Likewise.
5102         * ia64-tdep.c (ia64_return_value): Likewise.
5103         * iq2000-tdep.c (iq2000_return_value): Likewise.
5104         * lm32-tdep.c (lm32_return_value): Likewise.
5105         * m32c-tdep.c (m32c_return_value): Likewise.
5106         * m32r-tdep.c (m32r_return_value): Likewise.
5107         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5108         * m68k-tdep.c (m68k_return_value): Likewise.
5109         (m68k_svr4_return_value): Likewise.
5110         * m88k-tdep.c (m88k_return_value): Likewise.
5111         * mep-tdep.c (mep_return_value): Likewise.
5112         * microblaze-tdep.c (microblaze_return_value): Likewise.
5113         * mn10300-tdep.c (mn10300_return_value): Likewise.
5114         * moxie-tdep.c (moxie_return_value): Likewise.
5115         * mt-tdep.c (mt_return_value): Likewise.
5116         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5117         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5118         (ppc_sysv_abi_broken_return_value): Likewise.
5119         (ppc64_sysv_abi_return_value): Likewise.
5120         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5121         * rl78-tdep.c (rl78_return_value): Likewise.
5122         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5123         * rx-tdep.c (rx_return_value): Likewise.
5124         * s390-tdep.c (s390_return_value): Likewise.
5125         * score-tdep.c (score_return_value): Likewise.
5126         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5127         (sh_return_value_fpu): Likewise.
5128         * sh64-tdep.c (sh64_return_value): Likewise.
5129         * sparc-tdep.c (sparc32_return_value): Likewise.
5130         * sparc64-tdep.c (sparc64_return_value): Likewise.
5131         * spu-tdep.c (spu_return_value): Likewise.
5132         * tic6x-tdep.c (tic6x_return_value): Likewise.
5133         * v850-tdep.c (v850_return_value): Likewise.
5134         * vax-tdep.c (vax_return_value): Likewise.
5135         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5136         * xtensa-tdep.c (xtensa_return_value): Likewise.
5137         * gdbarch.c: Regenerate.
5138         * gdbarch.h: Regenerate.
5139
5140 2012-05-15  Tom Tromey  <tromey@redhat.com>
5141
5142         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5143
5144 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5145
5146         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5147         of command in two error message.
5148
5149 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5150
5151         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5152
5153 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5154
5155         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5156
5157 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5158
5159         * NEWS (show auto-load scripts-directory): Add forgotten command.
5160
5161 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5162
5163         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5164         parameters.
5165
5166 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5167
5168         * amd64-tdep.c: Include features/i386/x32.c and
5169         features/i386/x32-avx.c.
5170         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5171         initialize_tdesc_x32_avx.
5172
5173 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5174
5175         Add dynamic printf.
5176         * breakpoint.h (enum bptype): New type bp_dprintf.
5177         (struct breakpoint): New field extra_string.
5178         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5179         (create_breakpoint): Add extra_string arg.
5180         * breakpoint.c (dprintf_breakpoint_ops): New.
5181         (is_breakpoint): Add bp_dprintf.
5182         (bpstat_what): Add dprintf case.
5183         (bptype_string): Ditto.
5184         (print_one_breakpoint_location): Ditto.
5185         (init_bp_location): Ditto.
5186         (bkpt_print_mention): Ditto.
5187         (dprintf_style_enums): New array.
5188         (dprintf_style): New global.
5189         (dprintf_function): New global.
5190         (dprintf_channel): New global.
5191         (update_dprintf_command_list): New function.
5192         (update_dprintf_commands): New function.
5193         (init_breakpoint_sal): Add extra_string argument, handle it.
5194         (create_breakpoint_sal): Add extra_string argument.
5195         (create_breakpoints_sal): Add extra_string argument, update callers.
5196         (find_condition_and_thread): Add extra argument.
5197         (create_breakpoint): Add extra_string argument, record it.
5198         (dprintf_command): New function.
5199         (break_command_1): Add arg to create_breakpoint call.
5200         (handle_gnu_v3_exceptions): Ditto.
5201         (trace_command): Ditto.
5202         (ftrace_command): Ditto.
5203         (strace_command): Ditto.
5204         (bkpt_print_mention): Add dprintf case.
5205         (create_breakpoint_sal_default): Add extra_string argument.
5206         (_initialize_breakpoint): Add new commands.
5207         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5208         * python/py-breakpoint.c (bppy_init): Ditto.
5209         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5210
5211 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5212
5213         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5214
5215 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5216
5217         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5218         unsigned long long.
5219
5220 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5221
5222         Add a new function gdb.find_pc_line to the Python API.
5223         * NEWS (Python Scripting): Add entry about the new function.
5224         * python/python.c (gdbpy_find_pc_line): New function which
5225         implements gdb.find_pc_line.
5226         (GdbMethods): Add entry for the new function.
5227
5228 2012-05-12  Pedro Alves  <palves@redhat.com>
5229
5230         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5231         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5232
5233 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5234
5235         * inferior.c: Include completer.h
5236         (initialize_inferiors): Set completer of add-inferior to
5237         filename_completer.
5238
5239 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5240
5241         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5242         gdbarch_ptr_bit for x32 core dump.
5243
5244 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5245
5246         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5247         and features/i386/x32-avx-linux.c.
5248
5249 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5250             Kwok Cheung Yeung  <kcy@codesourcery.com>
5251
5252         * NEWS: Describe new info os commands.
5253         * common/linux-osdata.c (PID_T, TIME_T): Define.
5254         (MAX_PID_T_STRLEN): New.
5255         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5256         MAX_PID_T_STRLEN.
5257         (command_from_pid): Add comment.  Change to use PID_T.
5258         (commandline_from_pid):  Change to use PID_T.
5259         (user_from_pid): Add comment.
5260         (get_process_owner): Add comment. Change to use PID_T and
5261         MAX_PID_T_STRLEN.
5262         (get_number_of_cpu_cores): Add comment.
5263         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5264         MAX_PID_T_STRLEN.
5265         (linux_xfer_osdata_processes): Change to use PID_T and
5266         MAX_PID_T_STRLEN.
5267         (compare_processes): New function.
5268         (linux_xfer_osdata_processgroups): New function.
5269         (linux_xfer_osdata_threads): Change to use PID_T.
5270         (linux_xfer_osdata_fds): New function.
5271         (format_socket_state, print_sockets): New functions.
5272         (union socket_addr): New union.
5273         (linux_xfer_osdata_isockets): New function.
5274         (time_from_time_t, group_from_gid): New functions.
5275         (linux_xfer_osdata_shm): New function.
5276         (linux_xfer_osdata_sem): New function.
5277         (linux_xfer_osdata_msg): New function.
5278         (linux_xfer_osdata_modules): New function.
5279         (osdata_table): Add new entries.
5280         * common/buffer.c (buffer_xml_printf): Add support for long and
5281         long long format specifiers.
5282
5283 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5284
5285         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5286         (tdesc_x32_avx_linux): Likewise.
5287
5288 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5289
5290         Implement multi-component --with-auto-load-dir.
5291         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5292         entries.
5293         (--with-auto-load-safe-path): Update the default value description.
5294         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5295         New.
5296         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5297         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5298         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5299         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5300         "set auto-load scripts-directory".
5301         * config.in: Regenerate.
5302         * configure: Regenerate.
5303         * configure.ac (--with-auto-load-dir): New configure option.
5304         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5305
5306 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5307
5308         Provide $ddir substitution for --with-auto-load-safe-path.
5309         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5310         entries.
5311         * auto-load.c: Include observer.h.
5312         (auto_load_safe_path_vec_update): Call substitute_path_component for
5313         each component.  New variable ddir_subst.
5314         (auto_load_gdb_datadir_changed): New function.
5315         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5316         AUTO_LOAD_SAFE_PATH.  New comment.
5317         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5318         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5319         * config.in: Regenerate.
5320         * configure: Regenerate.
5321         * configure.ac (--auto-load-safe-path): Rename
5322         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5323         GDB_DATADIR/auto-load.
5324         * defs.h (substitute_path_component): New declaration.
5325         * top.c: Include observer.h.
5326         (set_gdb_datadir): New function.
5327         (init_main): Install it for "set data-directory".
5328         * utils.c (substitute_path_component): New function.
5329
5330 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5331
5332         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5333         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5334         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5335         DEBUG_FILE_DIRECTORY.
5336
5337 2012-05-10  Tom Tromey  <tromey@redhat.com>
5338
5339         * dwarf2read.c (recursively_write_psymbols): New function.
5340         (write_psymtabs_to_index): Use it.
5341
5342         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5343         field.
5344         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5345         (load_partial_comp_unit): Update.
5346         (queue_comp_unit): Add argument 'pretend_language'.
5347         (process_queue): Update.
5348         (psymtab_to_symtab_1): Skip dependencies that have a user.
5349         (load_partial_comp_unit_reader): Give meaning to the 'data'
5350         argument.
5351         (load_full_comp_unit): Add 'pretend_language' argument.
5352         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5353         language on CU.
5354         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5355         Update.
5356         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5357         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5358         Update.
5359         (prepare_one_comp_unit): Add 'pretend_language' argument.
5360
5361         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5362         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5363         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5364         (dw2_do_instantiate_symtab): Check whether symtab was read in
5365         before queueing.
5366         (dw2_instantiate_symtab): Add assertion.  Call
5367         process_cu_includes.
5368         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5369         (partial_symtab_p): New typedef.
5370         (set_partial_user): New function.
5371         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5372         (scan_partial_symbols): Add imported CU to imported_symtabs.
5373         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5374         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5375         (get_symtab, recursively_compute_inclusions)
5376         (compute_symtab_includes, process_cu_includes)
5377         (process_imported_unit_die): New functions.
5378         (process_die) <DW_TAG_imported_unit>: New case.
5379         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5380
5381         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5382         comment.
5383         (struct partial_die_info) <locdesc>: Remove.
5384         <d>: New field.
5385         (process_psymtab_comp_unit): Add 'read_partial' argument.
5386         Update.
5387         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5388         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5389         (add_partial_symbol): Update.
5390         (process_die): Handle DW_TAG_partial_unit.
5391         (read_file_scope): Update comment.
5392         (load_partial_dies): Handle DW_TAG_imported_unit.
5393         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5394         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5395
5396 2012-05-10  Tom Tromey  <tromey@redhat.com>
5397
5398         * cc-with-dwz.sh: New file.
5399
5400 2012-05-10  Tom Tromey  <tromey@redhat.com>
5401
5402         * symtab.h (struct symtab) <includes, user>: New fields.
5403         * block.h (struct block_iterator) <d, idx, which>: New fields.
5404         * block.c (initialize_block_iterator, find_iterator_symtab)
5405         (block_iterator_step, block_iter_name_step)
5406         (block_iter_match_step): New functions.
5407         (block_iterator_first, block_iterator_next)
5408         (block_iter_name_first, block_iter_name_next)
5409         (block_iter_match_first, block_iter_match_next): Rewrite.
5410         (get_block_symtab): New function.
5411
5412 2012-05-10  Tom Tromey  <tromey@redhat.com>
5413
5414         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5415         set_block_symtab.
5416         * jit.c (finalize_symtab): Use allocate_global_block,
5417         set_block_symtab.
5418         * buildsym.c (finish_block_internal): New function, from old
5419         finish_block.
5420         (finish_block): Rewrite.
5421         (end_symtab): Use finish_block_internal, set_block_symtab.
5422         * block.h (struct global_block): New.
5423         (allocate_global_block, set_block_symtab): Declare.
5424         * block.c (allocate_global_block, set_block_symtab): New
5425         functions.
5426
5427 2012-05-10  Tom Tromey  <tromey@redhat.com>
5428
5429         * psymtab.c (partial_map_expand_apply): Add assertion.
5430         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5431         (psymtab_to_symtab): Find unshared psymtab.
5432         (dump_psymtab): Print including psymtabs.
5433         (recursively_search_psymtabs): New function.
5434         (expand_symtabs_matching_via_partial): Use it.
5435         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5436         fields.
5437         (enum psymtab_search_status): New.
5438
5439 2012-05-10  Tom Tromey  <tromey@redhat.com>
5440
5441         * tracepoint.c (scope_info): Update.
5442         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5443         (find_pc_sect_symtab, search_symbols)
5444         (default_make_symbol_completion_list_break_on)
5445         (make_file_symbol_completion_list): Update.
5446         * symmisc.c (dump_symtab_1): Update.
5447         * stack.c (print_frame_args, iterate_over_block_locals)
5448         (print_frame_labels, iterate_over_block_arg_vars): Update.
5449         * python/py-block.c (block_object) <dict>: Remove.
5450         <block>: New field.
5451         <iter>: Change type.
5452         (blpy_iter): Update.
5453         (blpy_block_syms_iternext): Update.
5454         * psymtab.c (map_block): Use block iterators.
5455         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5456         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5457         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5458         * infrun.c (check_exception_resume): Update.
5459         * cp-support.c (make_symbol_overload_list_block): Update.
5460         * coffread.c (patch_opaque_types): Update.
5461         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5462         * block.h (struct block_iterator): New.
5463         (block_iterator_first, block_iterator_next, block_iter_name_first)
5464         (block_iter_name_next, block_iter_match_first)
5465         (block_iter_match_next): Declare.
5466         (ALL_BLOCK_SYMBOLS): Redefine.
5467         * block.c (block_iterator_first, block_iterator_next)
5468         (block_iter_name_first, block_iter_name_next)
5469         (block_iter_match_first, block_iter_match_next): New functions.
5470         * ada-lang.c (ada_add_block_symbols)
5471         (ada_make_symbol_completion_list): Use block iterator.
5472
5473 2012-05-10  Tom Tromey  <tromey@redhat.com>
5474
5475         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5476         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5477         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5478         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5479         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5480         Update.
5481
5482 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5483
5484         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5485         print-file-var-lib2.c, print-file-var-main.c and
5486         print-file-var.exp (located in gdb/testsuite/gdb.base).
5487
5488 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5489
5490         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5491         try locating the symbol in the symbol's own objfile first, before
5492         extending the search to all objfiles.
5493         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5494         out of lookup_symbol_aux_symtabs.
5495         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5496         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5497         Do not search EXCLUDE_OBJFILE.
5498         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5499         (lookup_symbol_global): Search for matches in the block's objfile
5500         first, before searching all other objfiles.
5501
5502 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5503
5504         * printcmd.c (set_command): Add pre/post inc/dec.
5505
5506 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5507
5508         * gdb.1: Document -ex option.
5509
5510 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5511
5512         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5513         * inferior.h (AT_SYMBOL): Delete.
5514
5515 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5516
5517         * mips-tdep.c (mips_push_dummy_code): New function.
5518         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5519         ON_STACK and install mips_push_dummy_code as our gdbarch
5520         push_dummy_code routine.
5521
5522 2012-05-09  Pedro Alves  <palves@redhat.com>
5523
5524         * target.c (set_maintenance_target_async_permitted): Rename to ...
5525         (set_target_async_command): ... this.
5526         (show_maintenance_target_async_permitted): Rename to ...
5527         (show_target_async_command): ... this.
5528         (initialize_targets): Adjust.
5529
5530 2012-05-08  Doug Evans  <dje@google.com>
5531
5532         * go-exp.y (classify_name): Add missing assignment of fields of
5533         yylval.ssym.
5534
5535 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5536
5537         Display the ">" prompt in interactive mode while reading canned
5538         commands, even when the current interpreter is MI.
5539
5540         * interps.c (interp_set_temp): New function.
5541
5542         * interps.h (interp_set_temp): Add prototype.
5543
5544         * cli/cli-script.c (restore_interp): New cleanup function.
5545         (read_command_lines): Temporarily override the current interpreter
5546         with CLI and arrange for restoring the original one.
5547
5548 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5549
5550         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5551
5552 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5553
5554         * probe.c (parse_probes): Move conditional to check for
5555         debuginfo files from here...
5556         * stap-probe.c (stap_get_probes): ... to here.
5557
5558 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5559             H.J. Lu  <hongjiu.lu@intel.com>
5560
5561         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5562         `movl %esp, %ebp' for the X32 ABI.
5563
5564 2012-05-07  Tom Tromey  <tromey@redhat.com>
5565
5566         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5567         get_DW_TAG_name.
5568         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5569         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5570         (dwarf_stack_op_name): Remove.
5571         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5572         (decode_locdesc): Use get_DW_OP_name.
5573         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5574         (dwarf2_compile_expr_to_ax): Likewise.
5575         (disassemble_dwarf_expression): Likewise.
5576         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5577
5578 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5579
5580         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5581         (sh_linux_sigtramp_cache): New function.
5582         (sh_linux_sigreturn_init): New function.
5583         (sh_linux_rt_sigreturn_init): New function.
5584         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5585         patterns.
5586         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5587         syscall codes.
5588         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5589         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5590         (sh_linux_init_abi): Add init calls to register new tramp_frame
5591         definitions under 32-bit SH, update comments.
5592
5593 2012-05-07  Pedro Alves  <palves@redhat.com>
5594
5595         PR gdb/10952
5596
5597         * amd64-linux-tdep.c: Include glibc-tdep.h.
5598         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5599         gdbarch_skip_solib_resolver callback.
5600
5601 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5602
5603         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5604         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5605         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5606         (add_auto_load_safe_path): Change the error message.
5607         (_initialize_auto_load): Change the "safe-path" help text.
5608         * configure: Regenerate
5609         * configure.ac (--without-auto-load-safe-path): Set
5610         WITH_AUTO_LOAD_SAFE_PATH to /.
5611
5612 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5613
5614         * stap-probe.h: Do not include unecessary `probe.h'.
5615
5616 2012-05-05  Alan Modra  <amodra@gmail.com>
5617
5618         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5619         bfd_und_section_ptr.
5620         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5621         and bfd_com_section_ptr.
5622
5623 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5624
5625         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5626
5627 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5628
5629         * windows-nat.h (segment_register_p_ftype): New typedef.
5630         (windows_set_segment_register_p): Add declaration.
5631         * windows-nat.c (segment_register_p): New static global.
5632         (windows_set_segment_register_p): New function.
5633         (do_windows_fetch_inferior_registers): Add special handling
5634         for segment registers.
5635         * amd64-windows-nat.c: #include "amd64-tdep.h".
5636         (amd64_windows_segment_register_p): New function.
5637         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5638         * i386-windows-nat.c: #include "i386-tdep.h".
5639         (i386_windows_segment_register_p): New function.
5640         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5641
5642 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5643
5644         * printcmd.c (set_command): Emit a warning if the expression is not
5645         an assignment.
5646
5647 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5648
5649         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5650         Make static.
5651
5652 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5653
5654         * stap-probe.c (stap_is_operator): Change declaration.
5655         (stap_get_opcode): Change return value.
5656         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5657         `stap_parse_argument_1'.
5658
5659 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5660
5661         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5662         debug log.
5663
5664 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5665
5666         Add two new methods global_block and static_block to gdb.Symtab
5667         objects.
5668         * NEWS (Python scripting): Add entry about the new methods.
5669         * python/py-symtab.c (stpy_global_block): New function which
5670         implements the gdb.Symtab.global_block() method.
5671         (stpy_static_block): New function which implements the
5672         gdb.Symtab.static_block() method.
5673         (symtab_object_methods): Add entries for the two new methods.
5674
5675 2012-05-03  Doug Evans  <dje@google.com>
5676
5677         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5678         files.
5679
5680 2012-05-03  Yao Qi  <yao@codesourcery.com>
5681
5682         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5683         space.
5684         (i386_process_record): Ditto.
5685
5686 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5687
5688         * infcall.c (unwind_on_signal_p): Make static.
5689
5690 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5691
5692         * sol-thread.c (solaris_pid_to_str): Make static.
5693         (_initialize_sol_thread): Add prototype.
5694
5695 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5696
5697         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5698
5699 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5700
5701         * MAINTAINERS: Remove myself.
5702
5703 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5704
5705         Fix --without-auto-load-safe-path for MS-Windows host platform.
5706         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5707
5708 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5709
5710         * gdb_curses.h: Undefine KEY_EVENT before including curses
5711         headers.  Move "#undef MOUSE_MOVED" before any curses header
5712         inclusion.
5713
5714 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5715
5716         * features/i386/i386-mmx-linux.c: Regenerate.
5717         * features/rs6000/powerpc-32.c: Likewise.
5718         * features/rs6000/powerpc-32l.c: Likewise.
5719         * features/rs6000/powerpc-403.c: Likewise.
5720         * features/rs6000/powerpc-403gc.c: Likewise.
5721         * features/rs6000/powerpc-405.c: Likewise.
5722         * features/rs6000/powerpc-505.c: Likewise.
5723         * features/rs6000/powerpc-601.c: Likewise.
5724         * features/rs6000/powerpc-602.c: Likewise.
5725         * features/rs6000/powerpc-603.c: Likewise.
5726         * features/rs6000/powerpc-604.c: Likewise.
5727         * features/rs6000/powerpc-64.c: Likewise.
5728         * features/rs6000/powerpc-64l.c: Likewise.
5729         * features/rs6000/powerpc-750.c: Likewise.
5730         * features/rs6000/powerpc-860.c: Likewise.
5731         * features/rs6000/powerpc-e500.c: Likewise.
5732         * features/rs6000/powerpc-e500l.c: Likewise.
5733         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5734         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5735         * features/rs6000/rs6000.c: Likewise.
5736
5737 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5738
5739         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5740         variable.
5741         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5742         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5743         (stap_parse_argument) <e>: Likewise.
5744         (handle_stap_probe) <byte_order>: Likewise.
5745
5746 2012-04-30  Doug Evans  <dje@google.com>
5747
5748         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5749         init_and_read_dies_worker.  All callers updated.
5750         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5751         replaced with init_cutu_and_read_dies.
5752         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5753         (find_partial_die): Remove FIXME.  Don't free current CU.
5754
5755 2012-04-30  Sterling Augustine  <saugustine@google.com>
5756
5757         * contrib: New directory.
5758         * contrib/test_pubnames_and_indexes.py: New file.
5759
5760 2012-04-30  Doug Evans  <dje@google.com>
5761
5762         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5763         All callers updated.
5764         (init_cu_die_reader): Verify the section is non-empty.
5765         (dwarf_decode_line_header): Don't dereference section->asection
5766         until we know the section is present.
5767
5768 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5769
5770         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5771         probes.
5772
5773 2012-04-29  Yao Qi  <yao@codesourcery.com>
5774
5775         * gdb-code-style.el: New hook gdb-markup-hook
5776         and gdb-comment-hook.
5777
5778 2012-04-28  Doug Evans  <dje@google.com>
5779
5780         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5781         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5782         objfile->obfd.
5783         * symfile.h (dwarf2_debug_sections): New member addr.
5784         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5785         (ctx_no_get_addr_index): New function.
5786         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5787         (ctx_no_get_addr_index): Declare.
5788         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5789         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5790         (dwarf_expr_ctx_funcs): Update.
5791         (needs_get_addr_index): New function.
5792         (needs_frame_ctx_funcs): Update.
5793         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5794         * dwarf2read.c: #include "gdbcore.h".
5795         (dwarf2_per_objfile): New members addr, dwo_files.
5796         (dwarf2_elf_names): Add entry for addr.
5797         (struct dwo_section_names): New type.
5798         (dwo_section_names): New static global.
5799         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5800         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5801         old debug_types_section member updated to use this.
5802         Rename member debug_types_section to info_or_types_section,
5803         all uses updated.
5804         (signatured_type): Rename member type_offset to type_offset_in_tu,
5805         all uses updated.  New member type_offset_in_section.
5806         (struct dwo_sections): New type.
5807         (struct dwo_unit): New type.
5808         (struct dwo_file): New type.
5809         (die_reader_specs): New member dwo_file.
5810         (dwarf2_locate_sections): Watch for .debug_addr.
5811         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5812         (dwarf2_read_section): Get bfd of section from bfd's asection,
5813         instead of objfile.
5814         (create_cus_from_index): Initialize the_cu->info_or_types_section.
5815         (create_signatured_type_table_from_index): Initialize
5816         sig_type->info_or_types_section.
5817         (dw2_get_file_names): Statement lists for type units with DWO files
5818         live in the DWO file.
5819         (create_debug_types_hash_table): New function.
5820         (create_all_type_units): Rewrite.
5821         (init_cu_die_reader): New arg dwo_file, all callers updated.
5822         (init_and_read_dies_worker): Get section from
5823         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
5824         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5825         continue reading the CU/TU from there.
5826         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5827         updated.  Get section from this_cu->info_or_types_section.
5828         (create_all_comp_units): Initialize this_cu->info_or_types_section.
5829         (skip_one_die): New cases DW_FORM_GNU_addr_index,
5830         DW_FORM_GNU_str_index.
5831         (hash_dwo_file, eq_dwo_file): New functions.
5832         (allocate_dwo_file_hash_table): New function.
5833         (hash_dwo_unit, eq_dwo_unit): New functions.
5834         (allocate_dwo_unit_table): New function.
5835         (dwarf2_locate_dwo_sections): New function.
5836         (struct create_dwo_info_table_data): New type.
5837         (create_debug_info_hash_table_reader): New function.
5838         (create_debug_info_hash_table): New function.
5839         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5840         (lookup_dwo_file): New function.
5841         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5842         (free_dwo_file, free_dwo_file_cleanup): New functions.
5843         (free_dwo_file_from_slot, free_dwo_files): New functions.
5844         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5845         (dwarf2_record_block_ranges): Ditto.
5846         (read_partial_die): Ditto.
5847         (process_enumeration_scope): Update to use type_offset_in_section.
5848         (read_full_die_1): New function.
5849         (read_full_die): Rewrite.
5850         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5851         DW_FORM_GNU_str_index.
5852         (read_addr_index_1, read_addr_index): New functions.
5853         (read_addr_index_from_leb128): New function.
5854         (struct dwarf2_read_addr_index_data): New type.
5855         (dwarf2_read_addr_index_reader): New function.
5856         (dwarf2_read_addr_index): New function.
5857         (read_str_index): New function.
5858         (leb128_size): New function.
5859         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5860         If processing a type unit from a DWO file, get the line section
5861         from the DWO file.
5862         (var_decode_location): Watch for DW_OP_GNU_addr_index.
5863         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5864         DW_FORM_GNU_str_index.
5865         (lookup_die_type): Check whether section offset of type's die is
5866         known before looking it up.  Remove assert.  Condition can
5867         legimately happen for inter-cu type references.
5868         (dwarf_attr_name): Handle Fission attributes.
5869         (dwarf_form_name): Handle Fission forms.
5870         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5871         DW_FORM_GNU_str_index.
5872         (follow_die_sig): Update to use type_offset_in_section.
5873         (decode_locdesc): New case DW_OP_GNU_addr_index.
5874         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5875         DW_FORM_GNU_str_index.
5876         (cu_debug_loc_section): New function.
5877         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5878         (dwarf2_per_objfile_free): Unmap .debug_addr section.
5879         Free DWO files if present.
5880         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5881
5882         Refactor DIE reading.
5883         * dwarf2read.c (dwarf2_per_objfile): Replace members
5884         debug_info_type_hash and debug_types_type_hash with die_type_hash.
5885         (die_reader_specs): New member "die_section".  Temporarily make
5886         member "buffer" non-const, pending constifying all info_ptr uses.
5887         (die_reader_func_ftype): New typedef.
5888         (dw2_get_file_names_reader): New function.
5889         (dw2_get_file_names): Rewrite.
5890         (read_and_check_type_unit_head): Rename arg type_offset to
5891         type_offset_in_tu.
5892         (create_all_type_units): Improve debugging message.
5893         Improve dummy type unit check.
5894         (init_cu_die_reader): New arg "section".  All callers updated.
5895         (init_and_read_dies_worker): New function.
5896         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5897         (init_cutu_and_read_dies_no_follow): New function.
5898         (init_cutu_and_read_dies_simple): New function.
5899         (process_psymtab_comp_unit_reader): New function.
5900         (process_psymtab_comp_unit): Delete args section,
5901         is_debug_types_section.  Rewrite.  All callers updated.
5902         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5903         All callers updated.  Rewrite.
5904         (load_partial_comp_unit_reader): New function.
5905         (load_partial_comp_unit): Rewrite.
5906         (skip_children): New arg reader.  Delete args buffer, cu.
5907         All callers updated.
5908         (skip_one_die): New arg reader.  Delete args buffer, cu.
5909         All callers updated.
5910         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
5911         All callers updated.
5912         (load_full_comp_unit_reader): New function.
5913         (load_full_comp_unit): Rewrite.
5914         (read_comp_unit): Delete.
5915         (read_die_and_children_1): Delete, contents moved ...
5916         (read_die_and_children): ... here.
5917         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
5918         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
5919         All callers updated.
5920         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
5921         All callers updated.
5922         (find_partial_die): Rewrite load_all_dies support.
5923         (read_attribute_value): New arg reader.  Delete args abfd, cu.
5924         All callers updated.
5925         (read_attribute): New arg reader.  Delete args abfd, cu.
5926         All callers updated.
5927         (load_full_type_unit): Add assert.
5928         (read_signatured_type_reader): New function.
5929         (read_signatured_type): Rewrite.
5930         (free_stack_comp_unit): Remove call to age_cached_comp_units.
5931         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5932         All callers updated.  Set per_cu->cu = NULL after freeing it.
5933         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5934         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5935         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5936         (set_die_type): Update.
5937         (get_die_type_at_offset): Update.
5938         (read_file_scope): Call prepare_one_comp_unit.
5939         (read_type_unit_scope): Ditto.
5940         (prepare_one_comp_unit): Set producer if present.
5941
5942 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
5943
5944         * probe.c (compile_rx_or_error): Silence ARI warning about missing
5945          gettext function on `error'.
5946
5947 2012-04-27  Doug Evans  <dje@google.com>
5948
5949         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5950         is empty.
5951
5952 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5953             Tom Tromey  <tromey@redhat.com>
5954
5955         * breakpoint.c (struct breakpoint_objfile_data)
5956         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5957         <exception_probes>: New fields.
5958         (free_breakpoint_probes): New function.
5959         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5960         `_Unwind_DebugHook'.
5961         (create_exception_master_breakpoint): Likewise.
5962         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5963         * infrun.c: Including necessary header files for handling SystemTap
5964         probes.
5965         (handle_inferior_event): Handling longjmp breakpoint and exceptions
5966         via SystemTap probes.
5967         (check_exception_resume): Remove `func' argument.  Handle exception
5968         unwinding breakpoint set via a SystemTap probe.
5969         (insert_exception_resume_from_probe): New function.
5970
5971 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5972             Tom Tromey  <tromey@redhat.com>
5973             Jan Kratochvil  <jan.kratochvil@redhat.com>
5974
5975         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5976         (COMMON_OBS): Likewise.
5977         (HFILES_NO_SRCDIR): Add `probe'.
5978         * NEWS: Mention support for static and SystemTap probes.
5979         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5980         SystemTap probes' arguments parser.
5981         * arm-linux-tdep.c: Including headers needed to perform the parsing
5982         of SystemTap probes' arguments.
5983         (arm_stap_is_single_operand): New function.
5984         (arm_stap_parse_special_token): Likewise.
5985         (arm_linux_init_abi): Initializing proper fields used by SystemTap
5986         probes' arguments parser.
5987         * ax-gdb.c (require_rvalue): Removing static declaration.
5988         (gen_expr): Likewise.
5989         * ax-gdb.h (gen_expr): Declaring function.
5990         (require_rvalue): Likewise.
5991         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5992         (bkpt_probe_breakpoint_ops): New variable.
5993         (momentary_breakpoint_from_master): Set the `probe' value.
5994         (add_location_to_breakpoint): Likewise.
5995         (break_command_1): Using proper breakpoint_ops according to the
5996         argument passed by the user in the command line.
5997         (bkpt_probe_insert_location): New function.
5998         (bkpt_probe_remove_location): Likewise.
5999         (bkpt_probe_create_sals_from_address): Likewise.
6000         (bkpt_probe_decode_linespec): Likewise.
6001         (tracepoint_probe_create_sals_from_address): Likewise.
6002         (tracepoint_probe_decode_linespec): Likewise.
6003         (tracepoint_probe_breakpoint_ops): New variable.
6004         (trace_command): Using proper breakpoint_ops according to the
6005         argument passed by the user in the command line.
6006         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6007         static probes on breakpoints and tracepoints.
6008         * breakpoint.h (struct bp_location) <probe>: New field.
6009         * cli-utils.c (skip_spaces_const): New function.
6010         (extract_arg): Likewise.
6011         * cli-utils.h (skip_spaces_const): Likewise.
6012         (extract_arg): Likewise.
6013         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6014         * configure.ac: Append `stap-probe.o' to be generated when ELF
6015         support is present.
6016         * configure: Regenerate.
6017         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6018         * elfread.c: Include `probe.h' and `arch-utils.h'.
6019         (probe_key): New variable.
6020         (elf_get_probes): New function.
6021         (elf_get_probe_argument_count): Likewise.
6022         (elf_evaluate_probe_argument): Likewise.
6023         (elf_compile_to_ax): Likewise.
6024         (elf_symfile_relocate_probe): Likewise.
6025         (stap_probe_key_free): Likewise.
6026         (elf_probe_fns): New variable.
6027         (elf_sym_fns): Add `sym_probe_fns' value.
6028         (elf_sym_fns_lazy_psyms): Likewise.
6029         (elf_sym_fns_gdb_index): Likewise.
6030         (_initialize_elfread): Initialize objfile cache for static
6031         probes.
6032         * gdb_vecs.h (struct probe): New forward declaration.
6033         (probe_p): New VEC declaration.
6034         * gdbarch.c: Regenerate.
6035         * gdbarch.h: Regenerate.
6036         * gdbarch.sh (stap_integer_prefix): New variable.
6037         (stap_integer_suffix): Likewise.
6038         (stap_register_prefix): Likewise.
6039         (stap_register_suffix): Likewise.
6040         (stap_register_indirection_prefix): Likewise.
6041         (stap_register_indirection_suffix): Likewise.
6042         (stap_gdb_register_prefix): Likewise.
6043         (stap_gdb_register_suffix): Likewise.
6044         (stap_is_single_operand): New function.
6045         (stap_parse_special_token): Likewise.
6046         (struct stap_parse_info): Forward declaration.
6047         * i386-tdep.c: Including headers needed to perform the parsing
6048         of SystemTap probes' arguments.
6049         (i386_stap_is_single_operand): New function.
6050         (i386_stap_parse_special_token): Likewise.
6051         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6052         probes' arguments parser.
6053         * i386-tdep.h (i386_stap_is_single_operand): New function.
6054         (i386_stap_parse_special_token): Likewise.
6055         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6056         * mipsread.c (ecoff_sym_fns): Likewise.
6057         * objfiles.c (objfile_relocate1): Support relocation for static
6058         probes.
6059         * parse.c (prefixify_expression): Remove static declaration.
6060         (initialize_expout): Likewise.
6061         (reallocate_expout): Likewise.
6062         * parser-defs.h (initialize_expout): Declare function.
6063         (reallocate_expout): Likewise.
6064         (prefixify_expression): Likewise.
6065         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6066         of SystemTap probes' arguments.
6067         (ppc_stap_is_single_operand): New function.
6068         (ppc_stap_parse_special_token): Likewise.
6069         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6070         probes' arguments parser.
6071         * probe.c: New file, for generic statically defined probe support.
6072         * probe.h: Likewise.
6073         * s390-tdep.c: Including headers needed to perform the parsing of
6074         SystemTap probes' arguments.
6075         (s390_stap_is_single_operand): New function.
6076         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6077         probes' arguments parser.
6078         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6079         * stap-probe.c: New file, for SystemTap probe support.
6080         * stap-probe.h: Likewise.
6081         * symfile.h: Include `gdb_vecs.h'.
6082         (struct sym_probe_fns): New struct.
6083         (struct sym_fns) <sym_probe_fns>: New field.
6084         * symtab.c (init_sal): Initialize `probe' field.
6085         * symtab.h (struct probe): Forward declaration.
6086         (struct symtab_and_line) <probe>: New field.
6087         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6088         locations.
6089         (stop_tracing): Likewise.
6090         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6091
6092 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6093             Tom Tromey  <tromey@redhat.com>
6094
6095         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6096         and to compile agent expressions.
6097         * infrun.c (siginfo_make_value): New argument `ignore'.
6098         (siginfo_funcs): New struct.
6099         (_initialize_infrun): New argument when calling
6100         `create_internalvar_type_lazy'.
6101         * thread.c (thread_id_make_value): New argument `ignore'.
6102         (thread_funcs): New struct.
6103         (_initialize_thread): New argument when calling
6104         `create_internalvar_type_lazy'.
6105         * tracepoint.c (sdata_make_value): New argument `ignore'.
6106         (sdata_funcs): New struct.
6107         (_initialize_tracepoint): New argument when calling
6108         `create_internalvar_type_lazy'.
6109         * value.c (make_value): New struct.
6110         (create_internalvar_type_lazy): New argument `data'.
6111         (compile_internalvar_to_ax): New function.
6112         (value_of_internalvar): Properly handling `make_value' case.
6113         (clear_internalvar): Likewise.
6114         (show_convenience): Adding `TRY_CATCH' block.
6115         * value.h (internalvar_make_value): Delete, replace by...
6116         (struct internalvar_funcs): ... this.
6117         (create_internalvar_type_lazy) <fun>: Delete argument.
6118         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6119         (compile_internalvar_to_ax): New function.
6120         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6121         (tlb_funcs): New struct.
6122         (_initialize_windows_tdep): New argument when calling
6123         `create_internalvar_type_lazy'.
6124
6125 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6126
6127         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6128         see whether it is an address or a constant offset from DW_AT_low_pc.
6129         (dwarf2_record_block_ranges): Likewise.
6130         (read_partial_die): Likewise.
6131
6132 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6133
6134         * MAINTAINERS (Write After Approval): Add myself to the list.
6135
6136 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6137
6138         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6139         (proc_prettyprint_signal): Likewise.
6140         (proc_prettyprint_faultset): Likewise.
6141         (proc_prettyprint_fault): Likewise.
6142         (proc_prettyprint_actionset): Likewise.
6143         (proc_prettyprint_flags): Move to new proc-flags.c section.
6144         (proc_prettyfprint_flags): New prototype.
6145         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6146         (proc_syscall, proc_cursig): Likewise.
6147         (proc_set_kill_on_last_close): Likewise.
6148         (proc_unset_kill_on_last_close): Likewise.
6149         (proc_set_watchpoint): Make static.
6150         (proc_delete_dead_threads): Likewise.
6151         (procfs_set_watchpoint): Likewise.
6152         (_initialize_procfs): Add prototype.
6153         * proc-events.c: Include proc-utils.h.
6154         (init_syscall_table): Make static.
6155         * proc-api.c (_initialize_proc_api): Add prototype.
6156         * proc-flags.c: Include proc-utils.h.
6157
6158 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6159
6160         * configure.ac: Add AC_ARG_PROGRAM.
6161         * configure: Regenerate.
6162
6163 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6164
6165         Fix DW_AT_lower_bound defaults for DWARF-4+.
6166         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6167         high.  New variable low_default_is_valid.  Implement DWARF-4+
6168         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6169         no default by the DWARF standard.
6170
6171 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6172             Maciej W. Rozycki  <macro@codesourcery.com>
6173
6174         * infrun.c (handle_inferior_event): Move the check for return
6175         trampolines ahead of the check for function trampolines.
6176         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6177         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6178         (mips_str_mips16_ret_stub): Likewise.
6179         (mips_str_call_fp_stub): Likewise.
6180         (mips_str_call_stub): Likewise.
6181         (mips_str_fn_stub): Likewise.
6182         (mips_str_pic): Likewise.
6183         (mips_in_frame_stub): New function.
6184         (mips_unwind_pc): Return the return address rather than the PC
6185         if the PC of an intermediate frame is inside a call thunk.
6186         (mips_is_stub_suffix): New function.
6187         (mips_is_stub_mode): Likewise.
6188         (mips_get_mips16_fn_stub_pc): Likewise.
6189         (mips_skip_mips16_trampoline_code): Update to handle all the
6190         currently generated stub types.  Don't recurse into __fn_stub
6191         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6192         Use cooked register accesses.
6193         (mips_in_return_stub): Reintroduce function.
6194         (mips_skip_trampoline_code): Traverse trampolines recursively.
6195         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6196
6197 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6198
6199         GDB 7.4.1 released.
6200
6201 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6202
6203         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6204         * features/arm-with-m-vfp-d16.xml: New file. Describes
6205         Cortex-M with VFPv4-sp-d16 FPU register layout.
6206         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6207         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6208         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6209         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6210         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6211
6212 2012-04-25  Doug Evans  <dje@google.com>
6213
6214         * cli/cli-decode.c (print_doc_line): Use stream instead of
6215         current_uiout.
6216
6217 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6218
6219         * features/arm-with-iwmmxt.c: Regenerate.
6220         * features/arm-with-m-fpa-layout.c: Likewise.
6221         * features/arm-with-m.c: Likewise.
6222         * features/arm-with-neon.c: Likewise.
6223         * features/arm-with-vfpv2.c: Likewise.
6224         * features/arm-with-vfpv3.c: Likewise.
6225         * features/mips-dsp-linux.c: Likewise.
6226         * features/mips-linux.c: Likewise.
6227         * features/mips64-dsp-linux.c: Likewise.
6228         * features/mips64-linux.c: Likewise.
6229         * features/s390-linux32.c: Likewise.
6230         * features/s390-linux32v1.c: Likewise.
6231         * features/s390-linux32v2.c: Likewise.
6232         * features/s390-linux64.c: Likewise.
6233         * features/s390-linux64v1.c: Likewise.
6234         * features/s390-linux64v2.c: Likewise.
6235         * features/s390x-linux64.c: Likewise.
6236         * features/s390x-linux64v1.c: Likewise.
6237         * features/s390x-linux64v2.c: Likewise.
6238         * features/tic6x-c62x-linux.c: Likewise.
6239         * features/tic6x-c62x.c: Likewise.
6240         * features/tic6x-c64x-linux.c: Likewise.
6241         * features/tic6x-c64x.c: Likewise.
6242         * features/tic6x-c64xp-linux.c: Likewise.
6243         * features/tic6x-c64xp.c: Likewise.
6244         * target-descriptions.c: Only generate `field_type' and `type'
6245         variables when needed.
6246
6247 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6248
6249         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6250
6251 2012-04-25  Doug Evans  <dje@google.com>
6252
6253         Initial pass at Go language support.
6254         * NEWS: Mention Go.
6255         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6256         go-valprint.c.
6257         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6258         (YYFILES): Add go-exp.c.
6259         (YYOBJ): Add go-exp.o.
6260         (local-maintainer-clean): Delete go-exp.c.
6261         * defs.h (enum language): Add language_go.
6262         * dwarf2read.c: #include "go-lang.h".
6263         (fixup_go_packaging): New function.
6264         (process_full_comp_unit): Call it when processing Go CUs.
6265         (dwarf2_physname): Add Go support.
6266         (read_file_scope): Handle missing language spec for GNU Go.
6267         (set_cu_language): Handle DW_LANG_Go.
6268         * go-exp.y: New file.
6269         * go-lang.h: New file.
6270         * go-lang.c: New file.
6271         * go-typeprint.c: New file.
6272         * go-valprint.c: New file.
6273         * symtab.c: #include "go-lang.h".
6274         (symbol_set_language): Handle language_go.
6275         (symbol_find_demangled_name, symbol_set_names): Ditto.
6276         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6277
6278 2012-04-24  Jim Meyering  <meyering@redhat.com>
6279
6280         avoid a few strncpy-induced buffer overruns
6281         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6282         fname and psargs before trying to concatenate.
6283         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6284         "name" before applying strchr.
6285
6286 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6287
6288         * CONTRIBUTE: Use unified diff instead of context diff when
6289         generating patches.
6290
6291 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6292
6293         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6294         code.  Handle JR.HB correctly.
6295
6296 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6297
6298         * mips-tdep.c
6299         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6300         with the other MIPS16 helpers.
6301
6302 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6303
6304         * observer.sh: Conditionally declare `args', thus cleaning up
6305         unused instances of this variable.
6306
6307 2012-04-24  Yao Qi  <yao@codesourcery.com>
6308
6309         Revert this patch to allow breakpoint always-inserted
6310         in record target.
6311         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6312         * breakpoint.c: Include record.h.
6313         (breakpoints_always_inserted_mode): Return false when the record
6314         target is in use.
6315
6316         * breakpoint.c (iterate_over_bp_locations): New.
6317         * breakpoint.h: Declare.
6318         New typedef walk_bp_location_callback.
6319         * record.c (record_open): Call record_init_record_breakpoints.
6320         (record_sync_record_breakpoints): New.
6321         (record_init_record_breakpoints): New.
6322         * NEWS: Mention supporting breakpoint always-inserted mode in
6323         record target.
6324
6325 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6326
6327         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6328         any thread.
6329
6330 2012-04-24  Yao Qi  <yao@codesourcery.com>
6331
6332         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6333         (is_catchpoint): ... it.
6334         (print_one_breakpoint_location): Caller update.
6335         * breakpoint.h: Update declaration.
6336
6337 2012-04-23  David S. Miller  <davem@davemloft.net>
6338
6339         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6340
6341 2012-04-23  Tom Tromey  <tromey@redhat.com>
6342
6343         * buildsym.c (add_free_pendings): Remove.
6344         * buildsym.h (add_free_pendings): Remove.
6345
6346 2012-04-23  Doug Evans  <dje@google.com>
6347
6348         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6349         attr.u.unsnd instead of attr.u.addr.
6350         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6351         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6352         DW_FORM_ref_udata.
6353         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6354         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6355         DW_FORM_ref_udata.
6356         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6357
6358 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6359
6360         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6361         (mips_o32_return_value): Likewise.
6362         (mips_o64_return_value): Likewise.
6363
6364 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6365
6366         * ada-lang.c (ada_evaluate_subexp): Add cases for
6367         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6368         their treatment in eval.c.
6369
6370 2012-04-21  David S. Miller  <davem@davemloft.net>
6371
6372         * sparc-tdep.c (X_DISP10): Define.
6373         (sparc_analyze_control_transfer): Handle compare-and-branch.
6374
6375 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6376
6377         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6378         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6379
6380 2012-04-20  Nigel Stephens  <nigel@mips.com>
6381             Maciej W. Rozycki  <macro@codesourcery.com>
6382
6383         * mips-tdep.c (mips_float_register_p): New function.
6384         (mips_convert_register_float_case_p): Use mips_float_register_p.
6385         (mips_register_type): Likewise.
6386         (mips_print_register): Likewise.
6387         (print_gp_register_row): Likewise.
6388         (mips_print_registers_info): Likewise.
6389
6390 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6391
6392         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6393         of mips16 symbols.
6394
6395 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6396
6397         * MAINTAINERS (Write After Approval): Add myself to the list.
6398
6399 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6400
6401         * MAINTAINERS: Update my e-mail address.
6402
6403 2012-04-20  Pedro Alves  <palves@redhat.com>
6404
6405         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6406         $srcdir.
6407         * configure: Regenerate.
6408
6409 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6410
6411         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6412         declaration.
6413         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6414
6415 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6416
6417         Fix compilation compatibility with python-2.4
6418         * python/py-type.c (convert_field): Cast ADDRSTRING for
6419         PyObject_SetAttrString as non-const.  New comment.
6420
6421 2012-04-19  Tom Tromey  <tromey@redhat.com>
6422
6423         * top.c (quit_target): Use all_cleanups.
6424         * main.c (captured_command_loop): Use all_cleanups.
6425         * exceptions.c (throw_exception): Use all_cleanups.
6426
6427 2012-04-19  Pedro Alves  <palves@redhat.com>
6428
6429         * Makefile.in (GNULIB_BUILDDIR): New.
6430         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6431         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6432         (CLEANDIRS). Remove gnulib/import.
6433         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6434         (all-lib): Ditto.
6435         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6436         (gnulib/import/Makefile): Replace gnulib/import with
6437         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6438         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6439         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6440         acx_configure_dir.m4.
6441         * acinclude.m4: Include acx_configure_dir.m4.
6442         * acx_configure_dir.m4: New file.
6443         * aclocal.m4: Regenerate.
6444         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6445         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6446         (GNULIB): New variable.
6447         (GNULIB_STDINT_H): Adjust.
6448         (AC_OUTPUT): Don't output gnulib/Makefile.
6449         * gdb/defs.h: Include build-gnulib/config.h.
6450         * aclocal.m4: Regenerate.
6451         * config.in: Regenerate.
6452         * configure: Regenerate.
6453
6454         * gnulib/Makefile.in: New file.
6455         * gnulib/configure.ac: New file.
6456         * gnulib/aclocal.m4: New file.
6457         * gnulib/config.in: New file.
6458         * gnulib/configure: New file.
6459         * gnulib/: Re-run gnulib-tool to adjust.
6460
6461 2012-04-19  Doug Evans  <dje@google.com>
6462
6463         * cleanups.h (struct cleanup): Move to cleanups.c.
6464         (make_cleanup_dtor_ftype): New typedef.
6465         (make_cleanup_dtor): Use it.
6466         (ALL_CLEANUPS): Replace with ...
6467         (all_cleanups): ... this.  Declare.  All uses updated.
6468         * cleanups.c: #include "gdb_assert.h".
6469         (sentinel_cleanup): New static global.
6470         (SENTINEL_CLEANUP): Define.
6471         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6472         (make_my_cleanup2): Assert result is non-NULL.
6473         (all_cleanups): New function.
6474         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6475         of NULL.
6476
6477 2012-04-19  Pedro Alves  <palves@redhat.com>
6478
6479         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6480         Adjust paths to gnulib imported files.
6481
6482 2012-04-19  Pedro Alves  <palves@redhat.com>
6483
6484         * gnulib/: Move whole directory ...
6485         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6486         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6487         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6488         (aclocal_m4_deps): Adjust.
6489         * aclocal.m4: Regenerate.
6490         * configure: Regenerate.
6491         * configure.ac: Adjust AC_OUTPUT output.
6492
6493 2012-04-19  Yao Qi  <yao@codesourcery.com>
6494
6495         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6496         (vec.o): New rule.
6497         * vec.c: Move it ...
6498         * common/vec.c: ... here.
6499         * vec.h: Move it ...
6500         * common/vec.h: ... here.
6501
6502 2012-04-19  Yao Qi  <yao@codesourcery.com>
6503
6504         * gdb-code-style.el: New.
6505
6506 2012-04-18  Pedro Alves  <palves@redhat.com>
6507
6508         Update gnulib from latest git.
6509         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6510
6511         * gnulib/Makefile.am: Update.
6512         * gnulib/dummy.c: Update.
6513         * gnulib/extra/arg-nonnull.h: Update.
6514         * gnulib/extra/c++defs.h: Update.
6515         * gnulib/extra/update-copyright: Update.
6516         * gnulib/extra/warn-on-use.h: Update.
6517         * gnulib/inttypes.in.h: Update.
6518         * gnulib/m4/00gnulib.m4: Update.
6519         * gnulib/m4/extensions.m4: Update.
6520         * gnulib/m4/gnulib-cache.m4: Update.
6521         * gnulib/m4/gnulib-common.m4: Update.
6522         * gnulib/m4/gnulib-comp.m4: Update.
6523         * gnulib/m4/gnulib-tool.m4: Update.
6524         * gnulib/m4/include_next.m4: Update.
6525         * gnulib/m4/inttypes-pri.m4: Update.
6526         * gnulib/m4/inttypes.m4: Update.
6527         * gnulib/m4/longlong.m4: Update.
6528         * gnulib/m4/memchr.m4: Update.
6529         * gnulib/m4/memmem.m4: Update.
6530         * gnulib/m4/mmap-anon.m4: Update.
6531         * gnulib/m4/multiarch.m4: Update.
6532         * gnulib/m4/onceonly.m4: Update.
6533         * gnulib/m4/stddef_h.m4: Update.
6534         * gnulib/m4/stdint.m4: Update.
6535         * gnulib/m4/string_h.m4: Update.
6536         * gnulib/m4/warn-on-use.m4: Update.
6537         * gnulib/m4/wchar_h.m4: Update.
6538         * gnulib/m4/wchar_t.m4: Update.
6539         * gnulib/m4/wint_t.m4: Update.
6540         * gnulib/memchr.c: Update.
6541         * gnulib/memmem.c: Update.
6542         * gnulib/stddef.in.h: Update.
6543         * gnulib/stdint.in.h: Update.
6544         * gnulib/str-two-way.h: Update.
6545         * gnulib/string.in.h: Update.
6546         * gnulib/wchar.in.h: Update.
6547
6548         * gnulib/extra/arg-nonnull.h: Delete.
6549         * gnulib/extra/c++defs.h: Delete.
6550         * gnulib/extra/warn-on-use.h: Delete.
6551         * gnulib/m4/wchar_h.m4: Delete.
6552         * gnulib/m4/wint_t.m4: Delete.
6553         * gnulib/wchar.in.h: Delete.
6554
6555         * gnulib/extra/snippets/arg-nonnull.h: New.
6556         * gnulib/extra/snippets/c++defs.h: New.
6557         * gnulib/extra/snippets/warn-on-use.h: New.
6558
6559         * aclocal.m4: Regenerate.
6560         * config.in: Regenerate.
6561         * configure: Regenerate.
6562         * gnulib/Makefile.in: Regenerate.
6563
6564 2012-04-18  Pedro Alves  <palves@redhat.com>
6565
6566         Reimport the update-copyright module from gnulib
6567         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6568
6569         * configure: Regenerate.
6570         * gnulib/Makefile.am: Update.
6571         * gnulib/Makefile.in: Regenerate.
6572         * gnulib/extra/update-copyright: Update.
6573         * gnulib/m4/gnulib-cache.m4: Update.
6574         * gnulib/m4/gnulib-comp.m4: Update.
6575
6576 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6577
6578         * configure.ac (aix): Put -lpthread into libs.
6579         * configure: Regenerate.
6580
6581 2012-04-18  Tom Tromey  <tromey@redhat.com>
6582
6583         * linespec.c (convert_linespec_to_sals): Don't use
6584         SYMBOL_OBJ_SECTION.
6585         (compare_msymbols): Arguments are minsym_and_objfile, not
6586         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6587
6588 2012-04-18  Pedro Alves  <palves@redhat.com>
6589
6590         Revert gnulib/ part of:
6591         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6592         Copyright year update in most files (performed by copyright.sh).
6593
6594 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6595
6596         Fix 64-bit constants on 32-bit hosts.
6597         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6598         from unsigned long to ULONGEST.
6599         (read_signed_leb128): Change declaration return type from long to
6600         LONGEST.
6601         (dwarf2_const_value_attr): Change declaration parameter value from long
6602         to LONGEST.
6603         (dwarf2_compute_name): Change variable value from long to LONGEST.
6604         (read_unsigned_leb128): Change return type, variable result and some
6605         casts from unsigned long to ULONGEST.
6606         (read_signed_leb128): Change return type, variable result and some
6607         casts from long to LONGEST.
6608         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6609         value from long to LONGEST.
6610         (dwarf2_const_value): Change variable value from long to LONGEST.
6611         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6612         plongest and hex_string.
6613         * symtab.h (struct general_symbol_info): Change ivalue from long to
6614         LONGEST, remove the comment.
6615         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6616         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6617
6618 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6619
6620         PR symtab/7259:
6621         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6622         * ada-lang.c (ada_discrete_type_high_bound)
6623         (ada_discrete_type_low_bound): Fix function comment.  Use
6624         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6625         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6626         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6627         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6628         Use TYPE_FIELD_ENUMVAL.
6629         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6630         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6631         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6632         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6633         TYPE_CODE_ENUM.
6634         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6635         * dwarf2read.c (process_enumeration_scope): Likewise.
6636         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6637         field.bitpos.
6638         (class StructMainTypePrettyPrinter): Support also
6639         FIELD_LOC_KIND_ENUMVAL.
6640         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6641         TYPE_CODE_ENUM.
6642         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6643         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6644         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6645         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6646         field enumval.
6647         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6648         accommodate enumval.
6649         (struct call_site): Adjust loc_kind to accommodate enumval.
6650         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6651         (TYPE_FIELD_ENUMVAL): New macros.
6652         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6653         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6654         TYPE_CODE_ENUM.
6655         * p-typeprint.c (pascal_type_print_base): Likewise.
6656         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6657         enumval.
6658         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6659         * python/py-type.c (convert_field): New variable addrstring.  Use
6660         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6661         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6662         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6663         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6664         TYPE_CODE_ENUM.
6665         * valprint.c (generic_val_print): Likewise.
6666
6667 2012-04-17  Doug Evans  <dje@google.com>
6668
6669         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6670
6671         * dwarf2read.c: Whitespace fixes.
6672         (lookup_signatured_type): Tweak comment.
6673         (get_die_type_at_offset): Fix comment.
6674
6675 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6676
6677         * xcoffread.c (xcoff_secnum_to_sections): New function.
6678         (secnum_to_section, secnum_to_bfd_section): Reimplement
6679         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6680         into "n_scnum".
6681         (RECORD_MINIMAL_SYMBOL): Delete.
6682         (record_minimal_symbol): New function.
6683         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6684         by call to record_minimal_symbol and set misc_func_recorded
6685         to 1.  Set last_csect_sec to the XCOFF section index instead
6686         of GDB's section_offset index.  Update calls to
6687         prim_record_minimal_symbol_and_info to pass the BFD section
6688         as well.
6689
6690 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6691
6692         * xcoffread.c (read_xcoff_symtab): Delete variables
6693         last_csect_val and last_csect_sec and associated code.
6694
6695 2012-04-17  Doug Evans  <dje@google.com>
6696
6697         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6698         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6699         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6700         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6701
6702         * cleanups.h: New file.
6703         * cleanups.c: New file.
6704         * Makefile.in (SFILES): Add cleanups.c.
6705         (HFILES_NO_SRCDIR): Add cleanups.h.
6706         (COMMON_OBS): Add cleanups.o.
6707         * defs.h (struct cleanup): Moved to cleanups.h.
6708         (do_cleanups,do_final_cleanups): Ditto.
6709         (discard_cleanups,discard_final_cleanups): Ditto
6710         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6711         (save_cleanups,save_final_cleanups): Ditto.
6712         (restore_cleanups,restore_final_cleanups): Ditto.
6713         (null_cleanup): Ditto.
6714         (make_my_cleanup,make_my_cleanup2): Ditto.
6715         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6716         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6717         (do_cleanups,do_final_cleanups): Ditto.
6718         (discard_cleanups,discard_final_cleanups): Ditto
6719         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6720         (save_cleanups,save_final_cleanups): Ditto.
6721         (restore_cleanups,restore_final_cleanups): Ditto.
6722         (null_cleanup): Ditto.
6723         (make_my_cleanup,make_my_cleanup2): Ditto.
6724         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6725
6726         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6727         make_my_cleanup.
6728         (make_cleanup_dyn_string_delete): Ditto.
6729         (make_cleanup_ui_file_delete): Ditto.
6730         (make_cleanup_ui_out_redirect_pop): Ditto.
6731         (make_cleanup_free_section_addr_info): Ditto.
6732         (make_cleanup_restore_integer): Ditto.
6733         (make_cleanup_unpush_target): Ditto.
6734         (make_cleanup_value_free_to_mark): Ditto.
6735         (make_cleanup_value_free): Ditto.
6736         (make_cleanup_free_so): Ditto.
6737
6738 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6739
6740         New option "set debug auto-load".
6741         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6742         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6743         (auto_load_safe_path_vec_update)
6744         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6745         if DEBUG_AUTO_LOAD.
6746         (file_is_auto_load_safe): New parameters debug_fmt and ....
6747         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6748         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6749         caller by explanatory string.
6750         (_initialize_auto_load): Register "set debug auto-load".
6751         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6752         and ....
6753         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6754         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6755         by explanatory string.
6756         * main.c (captured_main): Likewise.
6757         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6758         (source_section_scripts): Likewise.
6759
6760 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6761
6762         New option "set auto-load safe-path".
6763         * NEWS: New commands "set auto-load safe-path"
6764         and "show auto-load safe-path".
6765         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6766         (auto_load_safe_path, auto_load_safe_path_vec)
6767         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6768         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6769         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6770         (source_gdb_script_for_objfile): New variable is_safe.  Call
6771         file_is_auto_load_safe.  Return if it is not.
6772         (struct loaded_script): New field loaded.
6773         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6774         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6775         output "Missing" to "No".
6776         (_initialize_auto_load): New variable cmd.  Initialize
6777         auto_load_safe_path.  Register "set auto-load safe-path",
6778         "show auto-load safe-path" and "add-auto-load-safe-path".
6779         * auto-load.h (maybe_add_script): Add parameter loaded.
6780         (file_is_auto_load_safe): New declaration.
6781         * config.in: Regenerate.
6782         * configure: Regenerate.
6783         * configure.ac: New parameters --with-auto-load-safe-path
6784         and --without-auto-load-safe-path.
6785         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6786         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6787         * main.c (captured_main): Check file_is_auto_load_safe for
6788         LOCAL_GDBINIT.
6789         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6790         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6791         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6792         not.
6793
6794 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6795
6796         auto-load: Implementation.
6797         * NEWS: New descriptions for "info auto-load",
6798         "info auto-load gdb-scripts", "info auto-load python-scripts",
6799         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6800         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6801         and "show auto-load-scripts".  New description for "set auto-load",
6802         "show auto-load", "set auto-load gdb-scripts",
6803         "show auto-load gdb-scripts", "set auto-load python-scripts",
6804         "show auto-load python-scripts", "set auto-load local-gdbinit",
6805         "show auto-load local-gdbinit", "set auto-load libthread-db" and
6806         "show auto-load libthread-db".
6807         * auto-load.c: Remove include python/python-internal.h.  Add includes
6808         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6809         cli/cli-setshow.h.
6810         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6811         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6812         (gdbpy_global_auto_load): Rename to ...
6813         (global_auto_load): ... here.
6814         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6815         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6816         (script_language_gdb, source_gdb_script_for_objfile): New.
6817         (struct loaded_script): New field language.
6818         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6819         LANGUAGE.
6820         (maybe_add_script): Add parameter language.  Drop redundant
6821         entry.full_path initialization.  Initialize entry.language and
6822         (*slot)->language.
6823         (auto_load_objfile_script): Change parameter suffix to language.
6824         Remove the call of maybe_add_script.
6825         Call language->source_script_for_objfile.
6826         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6827         New.
6828         (collect_matching_scripts): Adjust it for
6829         struct collect_matching_scripts_data.
6830         (auto_load_info_scripts_pattern_nl): New variable.
6831         (info_auto_load_scripts): Rename to ...
6832         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
6833         for struct collect_matching_scripts_data.
6834         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6835         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6836         (auto_load_show_cmdlist_get, info_auto_load_cmd)
6837         (auto_load_info_cmdlist_get): New.
6838         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6839         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
6840         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6841         "info auto-load local-gdbinit".
6842         * auto-load.h (struct script_language): New.
6843         (gdbpy_global_auto_load): Rename to ...
6844         (global_auto_load): ... here.
6845         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6846         (auto_load_local_gdbinit_loaded): New declarations.
6847         (maybe_add_script): New parameter language.
6848         (auto_load_objfile_script): Change parameter suffix to language.
6849         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6850         (auto_load_info_scripts, auto_load_set_cmdlist_get)
6851         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6852         declarations.
6853         * linux-thread-db.c: Include auto-load.h and ctype.h.
6854         (auto_load_thread_db, show_auto_load_thread_db): New.
6855         (struct thread_db_info): New field filename.
6856         (delete_thread_db_info): Call xfree for FILENAME.
6857         (try_thread_db_load): Initialize FILENAME.
6858         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6859         if !AUTO_LOAD_THREAD_DB.
6860         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6861         (_initialize_thread_db): Install auto_load_thread_db
6862         as "set auto-load libthread-db" and install info_auto_load_libthread_db
6863         as "info auto-load libthread-db".
6864         * main.c (captured_main): Rename gdbpy_global_auto_load to
6865         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6866         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6867         (print_gdb_help): Extend the help for 'local init file'.
6868         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6869         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6870         (auto_load_scripts): Rename to ...
6871         (auto_load_python_scripts): ... here, update the comment.
6872         (gdbpy_load_auto_script_for_objfile): New declaration.
6873         (show_auto_load_python_scripts, script_language_python)
6874         (gdbpy_load_auto_script_for_objfile): New.
6875         (source_section_scripts): Refactor the code.
6876         (load_auto_scripts_for_objfile): Rename to ...
6877         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6878         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6879         (info_auto_load_python_scripts): New.
6880         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6881         Rename "set auto-load-scripts" to "set auto-load python-scripts".
6882         Register "set auto-load-scripts" as its deprecated alias.  Register
6883         "info auto-load python-scripts".  Register "info auto-load-scripts" as
6884         its deprecated alias.
6885         (load_auto_scripts_for_objfile): Rename to ...
6886         (gdbpy_load_auto_scripts_for_objfile): ... here.
6887         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6888         (gdbpy_load_auto_scripts_for_objfile): ... here.
6889
6890 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6891
6892         auto-load: Move files.
6893         * Makefile.in (SFILES): Add auto-load.c.
6894         (HFILES_NO_SRCDIR): Add auto-load.h.
6895         (COMMON_OBS): Add auto-load.o.
6896         (distclean): Change .gdbinit for gdb-gdb.gdb.
6897         * auto-load.c: New file, with parts from python/py-auto-load.c.
6898         * auto-load.h: New file, with parts from python/python.h.
6899         * configure: Regenerate.
6900         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6901         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6902         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6903         * main.c: Include auto-load.h.
6904         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6905         command.h, observer.h and progspace.h to auto-load.c.  Add include
6906         auto-load.h.
6907         (gdbpy_global_auto_load, struct auto_load_pspace_info)
6908         (struct loaded_script, auto_load_pspace_data)
6909         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6910         (hash_loaded_script_entry, eq_loaded_script_entry)
6911         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6912         (maybe_add_script): Move to auto-load.c.
6913         (source_section_scripts): Change maybe_add_script parameters passing,
6914         use script_not_found_warning_print.
6915         (clear_section_scripts, auto_load_objfile_script)
6916         (auto_load_new_objfile, loaded_script_ptr)
6917         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6918         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6919         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6920         auto_load_new_objfile and info_auto_load_scripts initizations to
6921         auto-load.c.
6922         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6923
6924 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6925
6926         Code cleanup.
6927         * charset.c (find_charset_names): Remove variables ix and elt.
6928         Use free_char_ptr_vec.
6929         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6930         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
6931         debugdir_end.  New variable debugdir_len.
6932         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6933         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6934         declarations.
6935         * progspace.c (clear_program_space_solib_cache): Remove variables ix
6936         and elt.  Use free_char_ptr_vec.
6937         * source.c (add_path): Remove variables argv, arg and argv_index.
6938         New variables dir_vec, back_to, ix and name.
6939         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
6940         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
6941         no longer expecting DIRNAME_SEPARATOR.
6942         (openp): Remove variable p, p1 and len.  New variables dir_vec,
6943         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
6944         no longer expecting DIRNAME_SEPARATOR.
6945         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6946         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
6947         debugdir_end.
6948         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6949         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6950         (dirnames_to_char_ptr_vec): New functions.
6951
6952 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6953
6954         Code cleanup.
6955         * source.c (add_path): Remove always true conditional 'p == 0' and
6956         unindent its code block.
6957
6958 2012-04-17  Pedro Alves  <palves@redhat.com>
6959
6960         * gdbtypes.h (FIELD_BITPOS): Rename to ...
6961         (FIELD_BITPOS_LVAL): ... this.
6962         (FIELD_BITPOS): New.
6963         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6964         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6965         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6966         SET_FIELD_BITPOS.
6967         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6968         SET_FIELD_BITPOS.
6969         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6970         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6971         * target-descriptions.c (tdesc_gdb_type): Adjust to use
6972         SET_FIELD_BITPOS.
6973
6974 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6975
6976         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6977         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6978         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6979         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6980         * jv-lang.c (java_link_class_type): Likewise, once.
6981         * stabsread.c (read_enum_type): Likewise.
6982
6983 2012-04-16  Yao Qi  <yao@codesourcery.com>
6984
6985         * common/agent.c (agent_run_command): Add one more parameter `len'.
6986         Update callers.
6987         * common/agent.h: Update declaration.
6988         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6989         Update.
6990         (linux_child_static_tracepoint_markers_by_strid): Ditto.
6991
6992 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
6993
6994         PR mi/13393
6995         * value.c (value_actual_type): New function.
6996         * value.h (value_actual_type): New declaration.
6997         * varobj.c (update_type_if_necessary): New function.
6998         (varobj_create): Call value_actual_type instead of
6999         value_type.
7000         (install_dynamic_child): distinct changed and type changed MI variable
7001         objects.
7002         (update_dynamic_varobj_children): Updated for install_dynamic_child
7003         change.  All callers updated.
7004         (varobj_update): Support for MI variable object type change if
7005         the value changed and RTTI is used to determine the type.
7006         (create_child_with_value): Call value_actual_type instead of
7007         value_type.
7008         (adjust_value_for_child_access): Extended with a new parameter which
7009         specify whether the given value should be casted to enclosing type.
7010         All callers updated.
7011
7012 2012-04-14  Yao Qi  <yao@codesourcery.com>
7013
7014         Import gnulib module inttypes from git
7015         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7016         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7017         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7018         gnulib/m4/inttypes-pri.m4
7019         * aclocal.m4, config.in, configure: Regenerated.
7020         * gnulib/Makefile.am: Update.
7021         * gnulib/Makefile.in: Update.
7022         * gnulib/m4/gnulib-cache.m4: Update.
7023         * gnulib/m4/gnulib-comp.m4: Update.
7024         * gnulib/inttypes.in.h: New.
7025         * gnulib/m4/inttypes-pri.m4: New.
7026         * gnulib/m4/inttypes.m4: New.
7027
7028 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7029
7030         * infrun.c (resume): Update PC address to the real PC after
7031         preparing to do displaced stepping.
7032
7033 2012-04-12  Doug Evans  <dje@google.com>
7034
7035         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7036         All callers updated.
7037
7038 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7039
7040         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7041
7042 2012-04-12  Doug Evans  <dje@google.com>
7043
7044         * dwarf2read.c (create_all_type_units): Renamed from
7045         create_debug_types_hash_table.  All callers updated.
7046
7047         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7048         local type_sig to sig_type, type_offset to type_offset_in_tu.
7049         (hash_signatured_type): Renamed from hash_type_signature,
7050         all callers updated.
7051         (eq_signatured_type): Renamed from eq_type_signature,
7052         all callers updated.
7053         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7054         (process_enumeration_scope): Ditto.
7055         (lookup_signatured_type_at_offset): Ditto.
7056         (load_full_type_unit, read_signatured_type): Ditto.
7057
7058 2012-04-12  Yao Qi  <yao@codesourcery.com>
7059
7060         * remote.c (async_remote_interrupt): Correct function name in
7061         debug message.
7062         (async_remote_interrupt_twice): Ditto.
7063
7064 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7065
7066         * source.c (find_and_open_source): Consistently pass resulting
7067         full path through xfullpath.
7068
7069 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7070
7071         Provide more specific displaced-stepping memory error message.
7072         * infrun.c (displaced_step_prepare): New variable status.  Call
7073         target_read_memory instead of read_memory, provide more specific
7074         error message.
7075
7076 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7077
7078         PR gdb/13901
7079         * darwin-nat.c (darwin_execvp): Revert previous patch.
7080
7081 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7082
7083         PR gdb/13901
7084         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7085         in case of change.
7086
7087 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7088
7089         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7090         warning.
7091
7092 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7093
7094         New command 'explore' which helps explore values and types in
7095         scope.
7096         * NEWS: Add an entry about the new 'explore' command.
7097         * data-directory/Makefile.in: Add gdb/command/explore.py
7098         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7099         command using the GDB Python API.
7100
7101 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7102
7103         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7104         extension in jump target calculation.
7105
7106 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7107
7108         * mips-tdep.c (mips32_next_pc): Handle JALX.
7109
7110 2012-04-10  Yao Qi  <yao@codesourcery.com>
7111
7112         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7113
7114 2012-04-10  Yao Qi  <yao@codesourcery.com>
7115
7116         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7117         and gnulib/m4/gnulib-tool.m4.
7118
7119 2012-04-10  Doug Evans  <dje@google.com>
7120
7121         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7122         (load_partial_dies): Clarify comment.
7123         (find_partial_die): Support rereading type units.
7124         Clarify CU handling, if we know offset is in CU, don't search for the
7125         containing CU.  Add comment regarding memory waste.
7126
7127 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7128
7129         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7130         i386/x32-avx and i386/x32-avx-linux.
7131         (i386/x32-expedite): New.
7132         (i386/x32-linux-expedite): Likewise.
7133         (i386/x32-avx-expedite): Likewise.
7134         (i386/x32-avx-linux-expedite): Likewise.
7135         ($(outdir)/i386/x32.dat): Likewise.
7136         ($(outdir)/i386/x32-linux.dat): Likewise.
7137         ($(outdir)/i386/x32-avx.dat): Likewise.
7138         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7139
7140         * features/i386/x32-avx-linux.xml: New file.
7141         * features/i386/x32-avx.xml: Likewise.
7142         * features/i386/x32-core.xml: Likewise.
7143         * features/i386/x32-linux.xml: Likewise.
7144         * features/i386/x32.xml: Likewise.
7145
7146         * features/i386/x32-avx-linux.c: New.  Generated.
7147         * features/i386/x32-avx.c: Likewise.
7148         * features/i386/x32-linux.c: Likewise.
7149         * features/i386/x32.c: Likewise.
7150         * regformats/i386/x32-avx-linux.dat: Likewise.
7151         * regformats/i386/x32-avx.dat: Likewise.
7152         * regformats/i386/x32-linux.dat: Likewise.
7153         * regformats/i386/x32.dat: Likewise.
7154
7155 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7156
7157         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7158         code to kill the inferior.
7159
7160 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7161
7162         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7163         defines.
7164         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7165         defines.
7166         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7167         (yyvsp): New defines.
7168         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7169         defines.
7170         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7171         defines.
7172         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7173         defines.
7174         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7175         defines.
7176         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7177         defines.
7178
7179 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7180
7181         * sparc64-tdep.c (sparc64_store_arguments)
7182         (sparc64_store_arguments): Fix coding style.
7183
7184 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7185
7186         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7187         complex floats, adjust some related comments and tighten a related
7188         assertion.
7189         (sparc64_extract_return_value): Handle complex floats.
7190
7191 2012-04-07  Doug Evans  <dje@google.com>
7192
7193         * dwarf2read.c (load_partial_dies): Change condition to assert.
7194
7195 2012-04-06  Doug Evans  <dje@google.com>
7196
7197         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7198         "mov %rsp,%rbp".
7199
7200 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7201
7202         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7203         fencepost error.
7204         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7205         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7206         architecture.
7207
7208 2012-04-05  Keith Seitz  <keiths@redhat.com>
7209
7210         * linespec.c (decode_compound): Remove.
7211         (enum offset_relative_sign): New enum.
7212         (struct line_offset): New struct.
7213         (struct linespec): New struct.
7214         (struct linespec_state): Move file_symtabs,
7215         user_filename, and user_function into struct linespec.
7216         Make result an anonymous struct holding vectors of
7217         symbolp and minsym_and_objfile_d.
7218         Add language member.
7219         (enum ls_token_type): New enum.
7220         (linespec_keywords): New array.
7221         (struct ls_token): New struct.
7222         (struct ls_parser): New struct.
7223         (linespec_lexer_lex_number): New function.
7224         (linespec_lexer_lex_keyword): New function.
7225         (is_ada_operator): New function.
7226         (skip_quote_char): New function.
7227         (copy_token_string): New function.
7228         (is_closing_quote_enclosed): New function.
7229         (find_parameter_list_end): New function.
7230         (linespec_lexer_lex_string): New function.
7231         (linespec_lexer_lex_one): New function.
7232         (linespec_lexer_consume_token): New function.
7233         (linespec_lexer_peek_token): New function.
7234         (cplusplus_error): Remove unused function.
7235         (find_methods): Update comment.
7236         (find_toplevel_char): Return const.
7237         (is_objc_method_format): Remove unused function.
7238         (find_toplevel_string): New function.
7239         (is_linespec_boundary): Remove.
7240         (symbol_not_found_error): New function.
7241         (find_method_overload_end): Remove function.
7242         (unexpected_linespec_error): New function.
7243         (keep_name_info): Remove.
7244         (linespec_parse_line_offset): New function.
7245         (linespec_parse_basic): New function.
7246         (canonicalize_linespec): New function.
7247         (decode_line_internal): Remove.
7248         (create_sals_line_offset): New function adapted from
7249         decode_all_digits.
7250         (convert_linespec_to_sals): New function.
7251         (parse_linespec): New function.
7252         (linespec_parser_new): New function.
7253         (linespec_state_destructor): Change parameter type to
7254         struct linespec_state *.
7255         Add language parameter.
7256         Remove freeing of moved members.
7257         (linespec_parser_delete): New function.
7258         (decode_line_full): Use parse_linespec and linespec_parser_new.
7259         (decode_line_1): Likewise.
7260         (decode_indirect): Rename to ...
7261         (linespec_expression_to_pc): ... this and rewrite
7262         to simply find CORE_ADDR, storing this result for later
7263         conversion to SALs.
7264         (locate_first_half): Remove.
7265         (deocde_objc): Add parameter LS.
7266         Initialize new struct collect_info members.
7267         Handle minimal symbols, too.
7268         (decode_compound): Delete.
7269         (lookup_prefix_sym): Rewrite.
7270         (compare_msymbols): New function.
7271         (find_method): Rewrite.
7272         Do not call cplusplus_error.
7273         (symtabs_from_filename): Rewrite.
7274         (collect_function_symbols): Delete.
7275         (find_function_symbols): Rewrite without ARGPTR-style
7276         processing.
7277         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7278         (decode_dollar): Adapted and renamed to ...
7279         (linespec_parse_variable): ... this.
7280         (find_linespec_symbols): New function.
7281         (decode_label): Adapted and renamed to ...
7282         (find_label_symbols): ... this.
7283         (decode_digits_list_mode): Add and use LS argument.
7284         (decode_digits_ordinary): Likewise.
7285         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7286         If in list mode, allow any symbol class.  Otherwise, only
7287         permit LOC_BLOCK symbols.
7288         (minsym_found): Update comments.
7289         (search_minsyms_for_name): Do not convert the matching symbol
7290         into a SAL.  Simply push the symbol and objfile into the
7291         result vector.
7292         (decode_variable): Delete. Contents adapted into
7293         find_linespec_symbols.
7294
7295         * cp-support.c (SKIP_SPACE): Remove.
7296         (operator_tokens): Remove unused global.
7297         (cp_validate_operator): Remove.
7298         * cp-support.h (cp_validate_operator): Remove declaration.
7299
7300 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7301
7302         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7303         for TYPE_VPTR_FIELDNO.
7304         * valprint.c (valprint_check_validity): Make it global, move the
7305         function comment ...
7306         * value.h (valprint_check_validity): ... to this new declaration.
7307
7308 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7309
7310         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7311         the STATE32 api for i386 state.
7312         (i386_darwin_store_inferior_registers): Likewise.
7313
7314 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7315
7316         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7317         SS offset.
7318         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7319         format_string.
7320
7321 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7322
7323         PR gdb/13901
7324         * darwin-nat.c (darwin_execvp): Set binary preference.
7325
7326 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7327
7328         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7329
7330 2012-03-30  Tom Tromey  <tromey@redhat.com>
7331
7332         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7333         of TRY_CATCH.  Fix error handling.
7334         * python/py-value.c (convert_value_from_python): Move 'old'
7335         declaration to innermost scope.
7336
7337 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7338             Andrey Smirnov  <andrew.smirnov@gmail.com>
7339
7340         -Wshadow warning fix.
7341         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7342         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7343         Adjust code accordingly.
7344
7345 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7346
7347         * ada-lang.c (symbol_completion_add): Rename parameter
7348         "encoded" into "encoded_p".  Ajust code and documentation
7349         accordingly.
7350
7351 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7352             Andrey Smirnov  <andrew.smirnov@gmail.com>
7353
7354         -Wshadow warning fix.
7355         * ada-lang.c (symbol_completion_add): Rename parameter
7356         "wild_match" into wild_match_p.  Update code and documentation
7357         accordingly.
7358
7359 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7360
7361         * ada-lang.c (symbol_completion_match): Rename parameter
7362         "encoded" into "encoded_p".  Ajust code and documentation
7363         accordingly.
7364
7365 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7366             Andrey Smirnov  <andrew.smirnov@gmail.com>
7367
7368         -Wshadow warning fix.
7369         * ada-lang.c (symbol_completion_match): Rename parameter
7370         "wild_match" into "wild_match_p".  Adjust code and function
7371         documentation accordingly.
7372
7373 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7374             Andrey Smirnov  <andrew.smirnov@gmail.com>
7375
7376         -Wshadow warning fix.
7377         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7378         "symbol_info" into "info".  Adjust code accordingly.
7379         (ada_lookup_symbol): Likewise.
7380
7381 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7382
7383         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7384         of this function's documentation.
7385
7386 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7387             Andrey Smirnov  <andrew.smirnov@gmail.com>
7388
7389         -Wshadow warning fix.
7390         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7391         variable into "wild_match_p".  Adjust code accordingly.
7392
7393 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7394             Andrey Smirnov  <andrew.smirnov@gmail.com>
7395
7396         -Wshadow warning fix.
7397         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7398         parameter into "wild_match_p".  Adjust code accordingly.
7399         Document this parameter in the function description.
7400
7401 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7402             Andrey Smirnov  <andrew.smirnov@gmail.com>
7403
7404         -Wshadow warning fix.
7405         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7406         "wild_match" parameter to "wild_match_p" (-Wshadow).
7407
7408 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7409
7410         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7411         in function documentation.
7412
7413 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7414             Andrey Smirnov  <andrew.smirnov@gmail.com>
7415
7416         -Wshadow warning fix.
7417         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7418         variable into wild_match_p.  Adjust code accordingly.
7419
7420 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7421             Andrey Smirnov  <andrew.smirnov@gmail.com>
7422
7423         * ada-valprint.c (ada_val_print_1): Move the code handling
7424         TYPE_CODE_ENUM inside its own lexical block.  Declare
7425         variables len and val there, instead of in the function's
7426         top level block.  Avoid declaring deref_val again in a way
7427         that shadows another variable of the same name declared
7428         in one of the up-level blocks.  Just re-use the up-level
7429         variable instead.
7430
7431 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7432
7433         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7434         Replace block_found argument by symbol_info.  Adjust
7435         implementation accordingly.  Add function documentation.
7436         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7437         Fix documentation.
7438         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7439         * ada-exp.y (write_object_renaming): Adjust to new
7440         ada_lookup_encoded_symbol API.
7441
7442 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7443
7444         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7445         documentation.
7446
7447 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7448
7449         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7450         (v850_register_name): Add the mpu and fpu register names.
7451         (v850e_register_name): Add the mpu and fpu register names.
7452         (v850e2_register_name): New function.
7453         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7454         bfd_mach_v850e2v3.
7455
7456 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7457
7458         * NEWS: Add entry for Ada varobj support.
7459
7460 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7461
7462         * varobj.c (default_value_is_changeable_p): New function,
7463         extracted from varobj_value_is_changeable_p.  Add declaration.
7464         (ada_value_is_changeable_p): New function, extracted from
7465         varobj_value_is_changeable_p.  Add declaration.
7466         (struct language_specific): New field "value_is_changeable_p".
7467         (languages): Add entries for new field.
7468         (varobj_create): Set language before calling install_new_value.
7469         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7470         "value_is_changeable_p" language callback.
7471
7472 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7473
7474         * ada-varobj.h, ada-varobj.c: New files.
7475         * Makefile.in (SFILES): Add ada-varobj.c.
7476         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7477         (COMMON_OBS): Add ada-varobj.o.
7478
7479 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7480
7481         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7482         (struct language_specific): New field "value_has_mutated".
7483         (languages): Set field "value_has_mutated" in each entry of array.
7484         (varobj_value_has_mutated): New function.
7485         (varobj_udpdate): Add handling of type mutation.
7486         (value_of_root): Add handling of type mutation.
7487         (ada_value_has_mutated): New function.
7488
7489 2012-03-28  Pedro Alves  <palves@redhat.com>
7490
7491         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7492         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7493
7494 2012-03-28  Tom Tromey  <tromey@redhat.com>
7495
7496         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7497         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7498         before returning.
7499
7500 2012-03-28  Tom Tromey  <tromey@redhat.com>
7501
7502         * .dir-locals.el: New file.
7503
7504 2012-03-28  Pedro Alves  <palves@redhat.com>
7505
7506         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7507
7508 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7509
7510         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7511         handling for r0.
7512
7513 2012-03-27  Pedro Alves  <palves@redhat.com>
7514
7515         Eliminate struct ui_stream.
7516
7517         * ui-out.h (struct ui_stream): Delete.
7518         (ui_out_field_stream): Adjust prototype.
7519         (ui_out_stream_new, ui_out_stream_delete)
7520         (make_cleanup_ui_out_stream_delete): Delete declarations.
7521         * ui-out.c (ui_out_field_stream): Change prototype to take a
7522         ui_file instead of a ui_stream.  Adjust.
7523         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7524         (make_cleanup_ui_out_stream_delete): Delete.
7525         * breakpoint.c (print_breakpoint_location)
7526         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7527         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7528         * disasm.c (dump_insns): Ditto.
7529         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7530         prototype.
7531         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7532         ui_stream/ui_out_stream_new.
7533         * infcmd.c (print_return_value): Ditto.
7534         * osdata.c (info_osdata_command): Don't allocate a local
7535         ui_stream.
7536         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7537         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7538         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7539         allocate a local ui_stream.
7540         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7541         instead of ui_stream/ui_out_stream_new.
7542         (list_args_or_locals): Don't allocate a local ui_stream.
7543         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7544         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7545         ui_stream/ui_out_stream_new.
7546         * cli/cli-setshow.c (do_setshow_command): Ditto.
7547
7548 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7549
7550         * arm-linux-tdep.c (arm_linux_init_abi): Call
7551         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7552         * arm-tdep.c (arm_process_record): New function.
7553         (deallocate_reg_mem): New function.
7554         (decode_insn): New function.
7555         (thumb_record_branch): New function.
7556         (thumb_record_ldm_stm_swi(): New function.
7557         (thumb_record_misc): New function.
7558         (thumb_record_ld_st_stack): New function.
7559         (thumb_record_ld_st_imm_offset): New function.
7560         (thumb_record_ld_st_reg_offset(): New function.
7561         (thumb_record_add_sub_cmp_mov): New function.
7562         (thumb_record_shift_add_sub): New function.
7563         (arm_record_coproc_data_proc): New function.
7564         (arm_record_coproc): New function.
7565         (arm_record_b_bl): New function.
7566         (arm_record_ld_st_multiple): New function.
7567         (arm_record_ld_st_reg_offset): New function.
7568         (arm_record_ld_st_imm_offset): New function.
7569         (arm_record_data_proc_imm): New function.
7570         (arm_record_data_proc_misc_ld_str): New function.
7571         (arm_record_extension_space): New function.
7572         (arm_record_strx): New function.
7573         (sbo_sbz): New function.
7574         (struct insn_decode_record): New structure for arm insn record.
7575         (REG_ALLOC): New macro for reg allocations.
7576         (MEM_ALLOC): New macro for memory allocations.
7577         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7578
7579 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7580
7581         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7582         (store_register): Likewise.
7583
7584 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7585
7586         * MAINTAINERS (Write After Approval): Add myself to the list.
7587
7588 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7589
7590         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7591         Describe also the option "auto".
7592
7593 2012-03-22  Richard Henderson  <rth@redhat.com>
7594
7595         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7596         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7597
7598 2012-03-22  Richard Henderson  <rth@redhat.com>
7599
7600         * jit.c (jit_read_code_entry): Compute alignment and offset of
7601         int64_t member before computing entry_size.
7602
7603 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7604
7605         Python scripting: Add new method Value.referenced_value to
7606         gdb.Value which can dereference pointer as well as reference
7607         values.
7608         * NEWS: Add entry under 'Python scripting' about the new method
7609         Value.referenced_value on gdb.Value objects.
7610         * python/py-value.c (valpy_referenced_value): New function
7611         defining a new method on gdb.Value objects which can dereference
7612         pointer and reference values.
7613
7614 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7615
7616         * MAINTAINERS (Write After Approval): Add myself to the list.
7617
7618 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7619
7620         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7621         in addition to "main".
7622
7623 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7624
7625         * expression.h (op_name): Add declaration.
7626         * expprint.c (op_name): Remove declaration.  Make non-static.
7627         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7628
7629 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7630
7631         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7632         of struct siginfo.
7633         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7634         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7635         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7636         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7637         (linux_nat_get_siginfo): Likewise.
7638         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7639         (linux_nat_get_siginfo): Likewise.
7640         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7641         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7642         * procfs.c (gdb_siginfo_t): Likewise.
7643
7644 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7645
7646         * .gitignore: Ignore more files.
7647
7648 2012-03-20  Pedro Alves  <palves@redhat.com>
7649
7650         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7651         returns.
7652
7653 2012-03-20  Yao Qi  <yao@codesourcery.com>
7654
7655         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7656         comment.
7657
7658 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7659
7660         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7661         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7662         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7663         sect_offset.
7664         * dwarf2expr.h (cu_offset, sect_offset): New types.
7665         (struct dwarf_expr_context_funcs) <dwarf_call>
7666         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7667         sect_offset.
7668         (struct dwarf_expr_context) <len>: Improve the comment.
7669         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7670         cu_offset and sect_offset.
7671         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7672         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7673         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7674         * dwarf2loc.h: Include dwarf2expr.h.
7675         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7676         and sect_offset.
7677         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7678         Improve the comment.
7679         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7680         (struct signatured_type, struct line_header, struct partial_die_info)
7681         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7682         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7683         (get_die_type_at_offset, create_cus_from_index)
7684         (create_signatured_type_table_from_index, dw2_get_file_names)
7685         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7686         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7687         (create_debug_types_hash_table, process_psymtab_comp_unit)
7688         (load_partial_comp_unit, create_all_comp_units)
7689         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7690         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7691         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7692         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7693         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7694         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7695         (find_partial_die, read_attribute_value, lookup_die_type)
7696         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7697         (is_ref_attr): New function comment.
7698         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7699         Use cu_offset and sect_offset.
7700         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7701         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7702         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7703         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7704         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7705         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7706         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7707         sect_offset.
7708
7709 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7710
7711         Code cleanup.
7712         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7713         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7714         with xfree.
7715         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7716
7717 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7718
7719         * NEWS: Describe new options --init-command=FILE, -ix and
7720         --init-eval-command=COMMAND, -iex.
7721         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7722         CMDARG_INIT_COMMAND.
7723         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7724         "init-command", "init-eval-command", "ix" and "iex" to the variable
7725         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7726         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7727         (print_gdb_help): Describe --init-command=FILE, -ix and
7728         --init-eval-command=COMMAND, -iex.
7729
7730 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7731
7732         Code cleanup.
7733         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7734         (cmdarg_s, VEC (cmdarg_s)): New.
7735         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7736         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7737         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7738         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7739         of CMDARG.
7740
7741 2012-03-19  Tom Tromey  <tromey@redhat.com>
7742
7743         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7744
7745 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7746
7747         PR symtab/13777
7748         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7749         GCC >=4.5.
7750
7751 2012-03-16  Chris January  <chris.january@allinea.com>
7752
7753         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7754         of clear.
7755
7756 2012-03-16  Chris January  <chris.january@allinea.com>
7757
7758         * source.c (add_path): Use memmove instead of strcpy because the
7759         strings overlap.
7760
7761 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7762
7763         * value.h (set_value_parent): Add declaration.
7764         * value.c (set_value_parent): New function.
7765         (value_address): If VALUE->PARENT is not NULL, then use it as
7766         the base address instead of VALUE->LOCATION.address.
7767         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7768         the same as OBJ's address.  Adjust V's offset accordingly.
7769         Set V's parent.
7770
7771 2012-03-16  Gary Benson  <gbenson@redhat.com>
7772
7773         PR breakpoints/10738
7774         * dwarf2read.c (use_deprecated_index_sections): New global.
7775         (struct partial_die_info): New member may_be_inlined.
7776         (read_partial_die): Set may_be_inlined where appropriate.
7777         (add_partial_subprogram): Add partial symbols for partial
7778         DIEs that may be inlined.
7779         (new_symbol_full): Add inlined subroutines to the current
7780         scope.
7781         (write_psymtabs_to_index): Bump version number.
7782         (dwarf2_read_index): Read only version 6 indices unless
7783         use_deprecated_index_sections is set.
7784         * linespec.c (symbol_and_data_callback): New structure.
7785         (iterate_inline_only): New function.
7786         (iterate_over_all_matching_symtabs): New argument
7787         "include_inline".  If nonzero, also call the callback for
7788         symbols representing inlined subroutines.
7789         (lookup_prefix_sym): Pass extra argument to the above.
7790         (find_function_symbols): Likewise.
7791         (add_matching_symbols_to_info): Likewise.
7792         * NEWS: Mention that GDB can now set breakpoints on inlined
7793         functions.
7794
7795 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7796
7797         * p-typeprint.c (pascal_type_print_method_args):
7798         Fix display of parameter of methods.
7799
7800 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7801
7802         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7803         Add missing prototype.
7804
7805 2012-03-16  Yao Qi  <yao@codesourcery.com>
7806             Jan Kratochvil  <jan.kratochvil@redhat.com>
7807
7808         Fix false compilation warning.
7809         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7810
7811 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
7812             Pedro Alves  <pedro@codesourcery.com>
7813
7814         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7815         (arm_register_g_packet_guesses): New function.
7816         (arm_gdbarch_init): Don't force a target description with
7817         registers when the executable is detected as M-profile.  Instead
7818         set gdbarch->tdep->is_m.  Register `g' packet guesses.
7819         (_initialize_arm_tdep): Initialize the new target description.
7820         * features/arm-with-m-fpa-layout.xml: New description.
7821         * features/arm-with-m-fpa-layout.c: New, generated.
7822
7823 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
7824
7825         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7826         Update function description.
7827         (insert_bp_location): Do not wipe bl->target_info out.
7828         * mem-break.c: #include "gdb_string.h".
7829         (default_memory_insert_breakpoint): Do not call target_read_memory
7830         with a pointer to the breakpoint's shadow_contents buffer.  Use
7831         a local buffer instead.
7832         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7833
7834 2012-03-15  Tom Tromey  <tromey@redhat.com>
7835
7836         * NEWS: Mention "info vtbl", not "info vtable".
7837         * cp-support.c (info_vtbl_command): Fix comment.
7838         (_initialize_cp_support): Fix text.
7839
7840 2012-03-15  Tom Tromey  <tromey@redhat.com>
7841
7842         * cp-valprint.c (cp_print_value_fields): Use
7843         print_function_pointer_address for vtable slot.
7844
7845 2012-03-15  Tom Tromey  <tromey@redhat.com>
7846
7847         * gnu-v3-abi.c (struct value_and_voffset): New.
7848         (hash_value_and_voffset, eq_value_and_voffset)
7849         (compare_value_and_voffset, compute_vtable_size)
7850         (print_one_vtable, gnuv3_print_vtable): New functions.
7851         (init_gnuv3_ops): Initialize 'print_vtable' field.
7852         * cp-support.c (info_vtbl_command): New function.
7853         (_initialize_cp_support): Add "info vtbl".
7854         * cp-abi.h (cplus_print_vtable): Declare.
7855         (struct cp_abi_ops) <print_vtable>: New field.
7856         * cp-abi.c (cplus_print_vtable): New function.
7857         * NEWS: Update.
7858
7859 2012-03-15  Tom Tromey  <tromey@redhat.com>
7860
7861         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7862         iterate_over_symbols.
7863
7864 2012-03-14  Doug Evans  <dje@google.com>
7865
7866         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7867         DW_OP_GNU_parameter_ref.
7868
7869 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7870
7871         Fix double prompt of 'interpreter-exec mi'.
7872         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7873         (mi_interpreter_resume): use it.
7874         (mi_execute_command_input_handler): New function.
7875         * mi/mi-main.c (mi_execute_command): Move prompt printing to
7876         mi_execute_command_input_handler.
7877
7878 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
7879
7880         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7881         prototype.
7882         (darwin_debug_port_info): Make static.
7883         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7884         * machoread.c (_initialize_machoread): Add prototype.
7885         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7886         (i386_darwin_set_control, i386_darwin_get_control)
7887         i386_darwin_dr_set_addr, i386_darwin_get_addr)
7888         i386_darwin_get_status, i386_darwin_get_control):
7889         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7890
7891 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7892
7893         * ax-gdb.c (gen_usual_unary): Remove special handling of
7894         enum and bool types.
7895
7896 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7897
7898         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7899
7900 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7901
7902         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7903
7904 2012-03-13  Chris January  <chris.january@allinea.com>
7905
7906         * aix-thread.c (fill_sprs): Store the floating point registers
7907         at the correct offsets into vals.
7908
7909 2012-03-13  Doug Evans  <dje@google.com>
7910
7911         * NEWS: Mention symbol-reloading has been deleted.
7912         * symfile.c (symbol_reloading): Delete.
7913         (show_symbol_reloading): Delete.
7914         (_initialize_symfile): Delete set/show symbol-reloading.
7915
7916         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7917         read_in_chain until we have successfully read it in.
7918         (load_full_comp_unit): Ditto.
7919         (read_signatured_type): Add comment.
7920
7921 2012-03-13  Chris January  <chris.january@allinea.com>
7922
7923         * stabsread.c (fix_common_block): Change type of valu argument
7924         to CORE_ADDR.
7925
7926 2012-03-13  Chris January  <chris.january@allinea.com>
7927
7928         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7929         instruction.
7930
7931 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7932
7933         * common/linux-procfs.c (linux_proc_get_int): New, from
7934         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7935         field.
7936         (linux_proc_get_tgid): Only call linux_proc_get_int.
7937         (linux_proc_get_tracerpid): New.
7938         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7939         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7940         linux_proc_pid_has_state.
7941         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7942         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7943         (linux_ptrace_attach_warnings): New.
7944         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7945         New declaration.
7946         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7947         (linux_nat_attach): New variables ex, buffer, message and message_s.
7948         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7949
7950 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7951
7952         * Makefile.in (linux-ptrace.o): New.
7953         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7954         from linux-nat.c.
7955         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7956         * common/linux-ptrace.c: New file.
7957         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7958         * config/arm/linux.mh: Likewise.
7959         * config/i386/linux.mh: Likewise.
7960         * config/i386/linux64.mh: Likewise.
7961         * config/ia64/linux.mh: Likewise.
7962         * config/m32r/linux.mh: Likewise.
7963         * config/m68k/linux.mh: Likewise.
7964         * config/mips/linux.mh: Likewise.
7965         * config/pa/linux.mh: Likewise.
7966         * config/powerpc/linux.mh: Likewise.
7967         * config/powerpc/ppc64-linux.mh: Likewise.
7968         * config/powerpc/spu-linux.mh: Likewise.
7969         * config/s390/s390.mh: Likewise.
7970         * config/sparc/linux.mh: Likewise.
7971         * config/sparc/linux64.mh: Likewise.
7972         * config/xtensa/linux.mh: Likewise.
7973         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7974         common/linux-procfs.c.
7975         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7976
7977 2012-03-13  Hui Zhu  <teawater@gmail.com>
7978             Pedro Alves  <palves@redhat.com>
7979
7980         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
7981         CREATE_BREAKPOINT_FLAGS_INSERTED.
7982         (create_breakpoint_sal, create_breakpoints_sal)
7983         (base_breakpoint_create_breakpoints_sal)
7984         (tracepoint_create_breakpoints_sal)
7985         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
7986         down.
7987         (break_command_1, handle_gnu_v3_exceptions, trace_command)
7988         (ftrace_command, strace_command): Adjust.
7989         (create_tracepoint_from_upload): Pass
7990         CREATE_BREAKPOINT_FLAGS_INSERTED.
7991         * breakpoint.h (enum breakpoint_create_flags): New.
7992         (create_breakpoint): New flags parameter.
7993         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7994         * python/py-breakpoint.c (bppy_init): Adjust.
7995         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7996         * spu-tdep.c (spu_catch_start): Adjust.
7997
7998 2012-03-13  Pedro Alves  <palves@redhat.com>
7999             Hui Zhu  <teawater@gmail.com>
8000             Yao Qi  <yao@codesourcery.com>
8001
8002         * remote.c (struct remote_state): New field `starting_up'.
8003         (remote_start_remote): Set and clear it.
8004         (remote_can_download_tracepoint): If starting up, return false.
8005
8006 2012-03-13  Yao Qi  <yao@codesourcery.com>
8007
8008         * inferior.h (struct inferior): Remove fields any_syscall_count,
8009         syscalls_counts and total_syscalls_count.  Move them to new
8010         struct catch_syscall_inferior_data in breakpoint.c.
8011         * breakpoint.c: Call DEF_VEC_I(int).
8012         (struct catch_syscall_inferior_data): New.
8013         (get_catch_syscall_inferior_data): New.
8014         (catch_syscall_inferior_data_cleanup): New.
8015         (insert_catch_syscall): Update to access data in
8016         struct catch_syscall_inferior_data.
8017         (insert_catch_syscall): Likewise.
8018         (remove_catch_syscall): Likewise.
8019         (remove_catch_syscall): Likewise.
8020         (is_syscall_catchpoint_enabled): Likewise.
8021         (add_catch_command): Likewise.
8022         (_initialize_breakpoint): Register cleanup.
8023         * breakpoint.h: Removed DEF_VEC_I(int).
8024         * dwarf2loc.c: Call DEF_VEC_I(int).
8025         * mi/mi-main.c: Likewise.
8026
8027 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8028
8029         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8030
8031 2012-03-12  Chris January  <chris.january@allinea.com>
8032
8033         * aix-thread.c (_initialize_aix_thread): Add prototype.
8034         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8035         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8036
8037 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8038
8039         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8040         include of "amd64-nat.h".
8041
8042 2012-03-12  Tom Tromey  <tromey@redhat.com>
8043
8044         * buildsym.c (record_pending_block): Now static.
8045         * buildsym.h: (record_pending_block): Remove.
8046
8047 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8048
8049         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8050
8051 2012-03-09  Tom Tromey  <tromey@redhat.com>
8052
8053         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8054         producer_is_gxx_lt_4_6>: New fields.
8055         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8056
8057 2012-03-09  Tom Tromey  <tromey@redhat.com>
8058
8059         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8060
8061 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8062
8063         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8064         prototype.
8065
8066 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8067
8068         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8069
8070 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8071
8072         Fix -Wmissing-prototypes build.
8073         * arm-linux-nat.c (get_thread_id): Make it static.
8074         * xtensa-linux-nat.c (get_thread_id): Likewise.
8075
8076 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8077
8078         * server.c (process_point_options): If a conditional expression
8079         is found, only print a message if remote_debug is nonzero.
8080
8081 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8082
8083         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8084         of internal error for unknown/unsupported types.
8085
8086 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8087
8088         Fix CU relative vs. absolute DIE offsets.
8089         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8090         offset to offset_in_cu.
8091         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8092         TYPE_OFFSET.
8093         (dwarf2_fetch_die_location_block): Rename parameter offset to
8094         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8095
8096 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8097
8098         * libunwind-frame.c: Rename to ...
8099         * ia64-libunwind-tdep.c: ... here.
8100         * libunwind-frame.h: Rename to ...
8101         * ia64-libunwind-tdep.h: ... here.
8102         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8103         ia64-libunwind-tdep.h.
8104         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8105         * README (--with-libunwind): Rename to ...
8106         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8107         * config.in: Regenerate.
8108         * configure: Regenerate.
8109         * configure.ac: New option --with-libunwind-ia64, make the
8110         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8111         Remove AC_DEFINE for HAVE_LIBUNWIND.
8112         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8113         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8114         Rename libunwind-frame in the general comment.
8115         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8116         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8117         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8118         the general comment.
8119         * ia64-tdep.c: Rename libunwind-frame.h #include to
8120         ia64-libunwind-tdep.h.
8121         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8122         (ia64_libunwind_descr): Rename libunwind-frame to
8123         ia64-libunwind-tdep in these function comments.
8124         * ia64-tdep.h: Rename libunwind-frame.h #include to
8125         ia64-libunwind-tdep.h.
8126         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8127         ia64-libunwind-tdep in that data comment.
8128
8129 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8130
8131         * libunwind-frame.h (struct frame_unwind): New declaration.
8132
8133 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8134
8135         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8136         "set breakpoint condition-evaluation" command.
8137
8138 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8139
8140         * sparc-stub.c: Move to stubs/
8141         * sh-stub.c: Likewise.
8142         * m68k-stub.c: Likewise.
8143         * m32r-stub.c: Likewise.
8144         * i386-stub.c: Likewise.
8145
8146 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8147
8148         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8149         linux_get_siginfo_type.
8150
8151         * m68klinux-nat.c: Include "gdb_proc_service.h".
8152         (PTRACE_GET_THREAD_AREA): Define.
8153         (ps_get_thread_area): New function.
8154
8155 2012-03-08  Yao Qi  <yao@codesourcery.com>
8156
8157         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8158         `xsnprintf'.
8159         (remote_query_attached): Likewise.
8160         (remote_static_tracepoint_marker_at): Likewise.
8161         (remote_set_permissions): Likewise.
8162         (remote_detach_1, extended_remote_attach_1): Likewise.
8163         (send_g_packet, remote_vkill): Likewise.
8164         (extended_remote_disable_randomization): Likewise.
8165         (remote_add_target_side_condition): Likewise.
8166         (remote_insert_breakpoint): Likewise.
8167         (remote_remove_breakpoint): Likewise.
8168         (remote_insert_watchpoint): Likewise.
8169         (remote_remove_watchpoint): Likewise.
8170         (remote_insert_hw_breakpoint): Likewise.
8171         (remote_insert_hw_breakpoint): Likewise.
8172         (remote_remove_hw_breakpoint): Likewise.
8173         (remote_download_command_source): Likewise.
8174         (remote_download_tracepoint): Likewise.
8175         (remote_download_trace_state_variable): Likewise.
8176         (remote_disable_tracepoint): Likewise.
8177         (remote_trace_set_readonly_regions): Likewise.
8178         (remote_get_tracepoint_status): Likewise.
8179         (remote_trace_find): Likewise.
8180         (remote_get_trace_state_variable_value): Likewise.
8181         (remote_set_disconnected_tracing): Likewise.
8182         (remote_set_circular_trace_buffer): Likewise.
8183         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8184         (remote_use_agent): Likewise.
8185         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8186         Update callers.
8187
8188 2012-03-07  Pedro Alves  <palves@redhat.com>
8189
8190         * NEWS: Mention QProgramSignals.
8191         * inferior.h (update_signals_program_target): Declare.
8192         * infrun.c: (update_signals_program_target): New.
8193         (handle_command): Update the target of the new program signals
8194         array changes.
8195         * remote.c (PACKET_QProgramSignals): New enum.
8196         (last_program_signals_packet): New global.
8197         (remote_program_signals): New.
8198         (remote_start_remote): Update the target with the program signals
8199         list.
8200         (remote_protocol_features): Add entry for QPassSignals.
8201         (remote_open_1): Free anc clear last_program_signals_packet.
8202         (init_remote_ops): Install remote_program_signals.
8203         * target.c (update_current_target): Adjust.
8204         (target_program_signals): New.
8205         * target.h (struct target_ops) <to_program_signals>: New field.
8206         (target_program_signals): Declare.
8207
8208 2012-03-07  Pedro Alves  <palves@redhat.com>
8209
8210         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8211         extensions.
8212
8213 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8214
8215         * m68klinux-nat.c (getregs_supplies): Make static.
8216         (getfpregs_supplies): Likewise.
8217         (have_ptrace_getregs): Likewise.
8218
8219 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8220
8221         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8222         in call to get_die_type_at_offset.
8223
8224 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8225
8226         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8227         * mi/mi-cmd-disas.c: Ditto.
8228         * mi/mi-cmd-env.c: Ditto.
8229         * mi/mi-cmd-file.c: Ditto.
8230         * mi/mi-cmd-stack.c: Ditto.
8231         * mi/mi-cmd-target.c: Ditto.
8232         * mi/mi-cmd-var.c: Ditto.
8233         * mi/mi-cmds.c: Ditto.
8234         * mi/mi-cmds.h: Ditto.
8235         * mi/mi-console.c: Ditto.
8236         * mi/mi-getopt.c: Ditto.
8237         * mi/mi-getopt.h: Ditto.
8238         * mi/mi-interp.c: Ditto.
8239         * mi/mi-main.c: Ditto.
8240         * mi/mi-out.c: Ditto.
8241         * mi/mi-parse.c: Ditto.
8242         * mi/mi-parse.h: Ditto.
8243         * mi/mi-symbol-cmds.c: Ditto.
8244
8245         * mi/mi-getopt.h: Move mi_opt struct up.
8246         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8247         return.
8248         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8249
8250 2012-03-06  Tom Tromey  <tromey@redhat.com>
8251
8252         * proc-service.c (ps_pglobal_lookup): Set the current program
8253         space.
8254
8255 2012-03-06  Pedro Alves  <palves@redhat.com>
8256
8257         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8258
8259 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8260
8261         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8262
8263 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8264
8265         Code cleanup.
8266         * common/linux-osdata.c (linux_common_core_of_thread): New function
8267         comment.
8268         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8269         call by linux_common_core_of_thread.
8270         (linux_nat_core_of_thread_1): Remove.
8271         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8272         * linux-thread-db.c: Include linux-osdata.h.
8273         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8274         linux_common_core_of_thread.
8275
8276 2012-03-05  Tom Tromey  <tromey@redhat.com>
8277
8278         * value.c (value_primitive_field): Don't fetch contents for
8279         non-virtual bases.
8280
8281 2012-03-05  Tom Tromey  <tromey@redhat.com>
8282
8283         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8284
8285 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8286
8287         * s390-nat.c: Include "gregset.h".
8288
8289 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8290
8291         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8292         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8293         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8294         load also LIBUNWIND_SO_7.
8295
8296 2012-03-05  Pedro Alves  <palves@redhat.com>
8297
8298         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8299         is not NULL, and remove resulting dead code.
8300
8301 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8302
8303         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8304         prologue to sh_analyze_prologue.
8305         (sh_analyze_prologue): Make better use of such an upper limit, and
8306         generally be more cautious about accessing memory.
8307
8308 2012-03-05  Tom Tromey  <tromey@redhat.com>
8309
8310         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8311         _initialize_ia64_hpux_tdep.
8312
8313 2012-03-05  Pedro Alves  <palves@redhat.com>
8314
8315         PR gdb/13766
8316
8317         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8318         the register state is clear, supply explicit zero, instead of
8319         marking the register unavailable.
8320
8321 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8322
8323         * NEWS: Mention OpenVMS ia64 new target.
8324
8325 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8326
8327         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8328         (ia64_unw_accessors, ia64_unw_rse_accessors)
8329         (ia64_libunwind_descr): Declare.
8330         * ia64-vms-tdep.c: New file.
8331         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8332         (ia64_libunwind_descr): Make them public.
8333         * configure.tgt: Add ia64-*-*vms*.
8334         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8335         (ALLDEPFILES): Add ia64-vms-tdep.c
8336
8337 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8338
8339         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8340         * remote.c (PACKET_qXfer_uib): New enum value.
8341         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8342         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8343         (_initialize_remote): Call add_packet_config_cmd for
8344         xfer:uib packet.
8345
8346 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8347
8348         * osabi.c (gdb_osabi_names): Add OpenVMS.
8349         (generic_elf_osabi_sniffer): Likewise.
8350         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8351
8352 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8353
8354         Removed unused code.
8355         * libunwind-frame.c (libunwind_frame_unwind)
8356         (libunwind_frame_base_address): Remove.
8357         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8358
8359 2012-03-04  Yao Qi  <yao@codesourcery.com>
8360
8361         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8362         remove trailing new line.
8363         (agent_run_command, agent_run_command): Add _ markup.
8364         (agent_capability_check): Likewise.
8365
8366 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8367
8368         * breakpoint.c (set_condition_evaluation_mode): Set
8369         CONDITION_EVALUATION_MODE unconditionally.
8370
8371 2012-03-03  Yao Qi  <yao@codesourcery.com>
8372
8373         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8374         * common/agent.h: Update declaration.
8375         * inf-child.c (inf_child_use_agent): New.
8376         (inf_child_can_use_agent): New.
8377         (inf_child_target): Initialize fields `to_use_agent'
8378         and `to_can_use_agent'.
8379         * agent.c (agent_new_objfile): New.
8380         (_initialize_agent): Add agent_new_objfile to new_objfile
8381         observer.
8382
8383         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8384         New.
8385         (linux_target_install_ops): Initialize field
8386         `to_static_tracepoint_markers_by_strid'.
8387         * remote.c (free_current_marker): Move it to ...
8388         * tracepoint.c (free_current_marker): ... here.  New.
8389         (cleanup_target_stop): New.
8390         * tracepoint.h: Declare free_current_marker.
8391         * NEWS: Add one entry about `info static-tracepoint-marker'.
8392
8393 2012-03-03  Yao Qi  <yao@codesourcery.com>
8394
8395         * common/agent.c (agent_loaded_p): New.
8396         (agent_look_up_symbols): New global.
8397         * common/agent.h: Declare agent_loaded_p.
8398
8399 2012-03-03  Yao Qi  <yao@codesourcery.com>
8400
8401         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8402         (agent_capability_check, agent_capability_invalidate): New.
8403         (symbol_list): New array element.
8404         * common/agent.h (enum agent_capa): New.
8405         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8406
8407 2012-03-03  Yao Qi  <yao@codesourcery.com>
8408
8409         * target.h (struct target_ops) <to_use_agent>: New field.
8410         (struct target_ops) <to_can_use_agent>: New field.
8411         (target_use_agent, target_can_use_agent): New macro.
8412         * target.c (update_current_target): Update.
8413         * remote.c: New enum `PACKET_QAgent'.
8414         (remote_protocol_features): Add a new element.
8415         (remote_use_agent, remote_can_use_agent): New.
8416         (init_remote_ops): Initialize field `can_use_agent' with
8417         remote_can_use_agent.  Intiailize field `use_agent' with
8418         remote_use_agent.
8419         * common/agent.c (use_agent): New global.
8420         * common/agent.h: Declare it.
8421         * tracepoint.c (info_static_tracepoint_markers_command): Add
8422         comment.
8423         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8424         (COMMON_OBS): Add common/agent.o and agent.o
8425         (common-agent.o): New rule.
8426         * agent.c: New.
8427
8428 2012-03-03  Yao Qi  <yao@codesourcery.com>
8429
8430         * common/agent.c: New.
8431         * common/agent.h: New.
8432         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8433         AC_CHECK_HEADERS.
8434         * configure, configh.in: Regenerated.
8435
8436 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8437
8438         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8439         unless it exists for this architecture.
8440
8441 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8442
8443         * language.h (struct language_defn): New "method" la_read_var_value.
8444         * findvar.c: #include "language.h".
8445         (default_read_var_value): Renames read_var_value.  Rewrite
8446         function description.
8447         (read_var_value): New function.
8448         * value.h (default_read_var_value): Add prototype.
8449         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8450         New functions.
8451         (ada_language_defn): Add entry for la_read_var_value.
8452         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8453         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8454         language_defn structures to add entry for new la_read_var_value
8455         field.
8456
8457 2012-03-02  Tom Tromey  <tromey@redhat.com>
8458             Pedro Alves  <palves@redhat.com>
8459
8460         PR breakpoints/13776:
8461         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8462         breakpoints.
8463         (delete_longjmp_breakpoint_at_next_stop): New.
8464         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8465         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8466         before deleting the inferior.  Add comments.
8467         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8468         breakpoints immediately, but only on next stop.  Move that code
8469         next to where we mark other breakpoints for deletion.
8470
8471 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8472
8473         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8474         marker.
8475         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8476         violation.
8477
8478 2012-03-02  Pedro Alves  <palves@redhat.com>
8479
8480         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8481
8482 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8483
8484         Fix -Wmissing-prototypes build.
8485         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8486         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8487         (gdbsim_has_memory): Likewise.
8488
8489 2012-03-02  Yao Qi  <yao@codesourcery.com>
8490
8491         Fix -Wmissing-prototypes build.
8492         * charset.c (phony_iconv_open): Make static.
8493         (phony_iconv_close, phony_iconv): Likewise.
8494         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8495         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8496         prototype.
8497         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8498         * ser-mingw.c (create_select_thread): Make static.
8499         * windows-termcap.c (tgetent): New prototype.
8500         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8501
8502 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8503
8504         Fix -Wmissing-prototypes build.
8505         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8506         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8507         (_initialize_loadable): New prototypes.
8508
8509 2012-03-02  Doug Evans  <dje@google.com>
8510
8511         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8512         abbrev table, read_comp_unit will do it.
8513
8514 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8515
8516         Fix -Wmissing-prototypes build.
8517         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8518         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8519         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8520         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8521         (_initialize_arm_symbian_tdep): New prototype.
8522         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8523         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8524         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8525         static.
8526         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8527         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8528         prototype.
8529         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8530         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8531         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8532         static.
8533         * moxie-tdep.c (moxie_process_record): Likewise.
8534         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8535         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8536         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8537         (_initialize_rl78_tdep): New prototype.
8538         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8539         (_initialize_rx_tdep): New prototype.
8540         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8541         (_initialize_darwin_solib): New prototype.
8542         * solib-spu.c: Include solib-spu.h.
8543         (_initialize_spu_solib): New prototype.
8544         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8545         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8546         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8547         (tic6x_software_single_step): Make it static.
8548         (_initialize_tic6x_tdep): New prototype.
8549
8550 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8551
8552         Fix -Wmissing-prototypes build.
8553         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8554         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8555
8556 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8557
8558         Fix -Wmissing-prototypes build.
8559         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8560         (frv_have_stopped_data_address): Remove.
8561
8562 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8563
8564         Fix -Wmissing-prototypes build.
8565         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8566         * sh-tdep.c: Include sh64-tdep.h.
8567         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8568         * sh64-tdep.c: Include sh64-tdep.h.
8569         * sh64-tdep.h: New file.
8570
8571 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8572
8573         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8574
8575 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8576
8577         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8578         sp_regnum once the gdbarch_init_osabi hook has been called.
8579
8580 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8581
8582         * mips-tdep.c (mips32_bc1_pc): New function.
8583         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8584         BPOSGE32 and BPOSGE64 instructions.
8585         (deal_with_atomic_sequence): Likewise.
8586         (mips32_instruction_has_delay_slot): Likewise.
8587
8588 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8589             Chris Dearman  <chris@mips.com>
8590             Maciej W. Rozycki  <macro@codesourcery.com>
8591             Joseph Myers  <joseph@codesourcery.com>
8592
8593         * features/mips-dsp.xml: New file.
8594         * features/mips64-dsp.xml: New file.
8595         * features/mips-dsp-linux.xml: New file.
8596         * features/mips64-dsp-linux.xml: New file.
8597         * features/Makefile (WHICH): Add mips-dsp-linux and
8598         mips64-dsp-linux.
8599         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8600         * features/mips-dsp-linux.c: New file.
8601         * features/mips64-dsp-linux.c: New file.
8602         * regformats/mips-dsp-linux.dat: New file.
8603         * regformats/mips64-dsp-linux.dat: New file.
8604         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8605         registers.
8606         (mips64_linux_register_addr): Likewise.
8607         (mips64_linux_regsets_fetch_registers): Likewise.
8608         (mips64_linux_regsets_store_registers): Likewise.
8609         (mips64_linux_fetch_registers): Update call to
8610         mips64_linux_regsets_fetch_registers.
8611         (mips64_linux_store_registers): Update call to
8612         mips64_linux_regsets_store_registers.
8613         (mips_linux_read_description): Probe for DSP registers.
8614         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8615         and initialize_tdesc_mips64_dsp_linux.
8616         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8617         Remove padding of no longer used embedded register slots.
8618         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8619         (MIPS_RESTART_REGNUM): Redefine enum value.
8620         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8621         strings.
8622         (mips_tx39_reg_names): Likewise.
8623         (mips_linux_reg_names): New array of register names for Linux
8624         targets.
8625         (mips_register_name): Check for a null pointer in
8626         mips_processor_reg_names and return an empty string.
8627         (mips_register_type): Exclude embedded registers for the IRIX
8628         and Linux ABIs.
8629         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8630         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8631         DSP registers.
8632         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8633         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8634         (mips_gdbarch_init): Likewise.  Initialize internal register
8635         indices for the Linux ABI.  Use dynamic numbers to refer to
8636         registers, as applicable, while parsing the target description.
8637         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8638
8639 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8640
8641         * frame.h (read_frame_register_unsigned): Fix typo in function
8642         description.
8643
8644 2012-03-01  Pedro Alves  <palves@redhat.com>
8645
8646         * jit-reader.in [!__cplusplus]
8647         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8648
8649 2012-03-01  Pedro Alves  <palves@redhat.com>
8650
8651         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8652         * configure: Regenerate.
8653
8654 2012-03-01  Pedro Alves  <palves@redhat.com>
8655
8656         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8657         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8658         (ftrace_command, strace_command): Make static.
8659         * d-lang.c (_initialize_d_language): Declare.
8660         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8661         * dwarf2loc.c (_initialize_dwarf2loc):
8662         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8663         * exec.c (exec_get_section_table): Make static.
8664         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8665         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8666         * inferior.c (remove_inferior_command, add_inferior_command)
8667         (clone_inferior_command): Make static.
8668         * linux-nat.c (linux_nat_thread_address_space)
8669         (linux_nat_core_of_thread): Make static.
8670         * linux-tdep.c (_initialize_linux_tdep): Declare.
8671         * objc-lang.c (_initialize_objc_lang): Declare.
8672         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8673         Make static.
8674         (_initialize_opencl_language): Declare.
8675         * record.c (_initialize_record): Declare.
8676         * remote.c (demand_private_info, remote_get_tib_address)
8677         (remote_supports_cond_tracepoints)
8678         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8679         Make static.
8680         * skip.c (_initialize_step_skip): Declare.
8681         * symtab.c (skip_prologue_using_lineinfo): Make static.
8682         * tracepoint.c (delete_trace_state_variable)
8683         (trace_variable_command, delete_trace_variable_command)
8684         (get_uploaded_tsv, find_matching_tracepoint_location)
8685         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8686         Make static.
8687         * value.c (pack_unsigned_long): Make static.
8688         * varobj.c (varobj_ensure_python_env): Make static.
8689         * windows-tdep.c (_initialize_windows_tdep): Declare.
8690         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8691
8692 2012-03-01  Pedro Alves  <palves@redhat.com>
8693
8694         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8695         gdbarch parameter.
8696         (linux_init_abi): Install it as has_shared_address_space gdbarch
8697         callback.
8698
8699 2012-03-01  Pedro Alves  <palves@redhat.com>
8700
8701         * observer.c (observer_test_first_notification_function)
8702         (observer_test_second_notification_function)
8703         (observer_test_third_notification_function): Add declarations.
8704
8705 2012-03-01  Pedro Alves  <palves@redhat.com>
8706
8707         * common/signals.c (default_target_signal_to_host)
8708         (default_target_signal_from_host): Move ...
8709         * arch-utils.c: ... here.
8710         * arch-utils.h (default_target_signal_to_host)
8711         (default_target_signal_from_host): Declare.
8712
8713         * common/signals.c (target_signal_from_command): Move ...
8714         * infrun.c: ... here.
8715         * inferior.h (target_signal_from_command): Declare.
8716         * target.h (target_signal_from_command)
8717         (default_target_signal_from_host, default_target_signal_to_host):
8718         Delete declarations.
8719
8720         * common/signals.c (_initialize_signals): Delete.
8721
8722 2012-03-01  Pedro Alves  <palves@redhat.com>
8723
8724         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8725         both __cplusplus and !__cplusplus.
8726
8727 2012-03-01  Pedro Alves  <palves@redhat.com>
8728
8729         * psymtab.c (find_and_open_source): Delete declaration.
8730         * source.c (find_and_open_source): Move comment ...
8731         * source.h (find_and_open_source): ... to this new declaration.
8732
8733 2012-03-01  Pedro Alves  <palves@redhat.com>
8734
8735         * inline-frame.c: Include inline-frame.h.
8736
8737 2012-03-01  Pedro Alves  <palves@redhat.com>
8738
8739         * tui/tui-data.c (set_gen_win_origin): Delete.
8740         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8741         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8742
8743 2012-03-01  Pedro Alves  <palves@redhat.com>
8744
8745         * remote.c (encode_actions): Delete declaration.
8746         * tracepoint.c (encode_actions): Make extern.
8747         * tracepoint.h (encode_actions): Declare.
8748
8749 2012-03-01  Pedro Alves  <palves@redhat.com>
8750
8751         * python/py-breakpoint.c: Include python.h.
8752         * python/py-continueevent.c (create_continue_event_object): Make
8753         static.
8754         * python/py-lazy-string.c (stpy_get_type): Make static.
8755         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8756         Make static.
8757         * python/py-utils.c (unicode_to_target_python_string): Make
8758         static.
8759         * python/py-value.c: Include python.h.
8760
8761 2012-03-01  Pedro Alves  <palves@redhat.com>
8762
8763         * inferior.c (delete_threads_of_inferior): Delete.
8764
8765 2012-03-01  Pedro Alves  <palves@redhat.com>
8766
8767         Import fallback definitions from glibc.
8768
8769         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8770         ps_prochandle): Forward declare.
8771         (ps_err_e): Use glibc's comments.
8772         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8773         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8774         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8775         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8776         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8777         (struct ps_prochandle): Adjust comment.
8778
8779 2012-03-01  Pedro Alves  <palves@redhat.com>
8780
8781         * ada-lang.c (ada_modulus_from_name): Delete.
8782         * ada-lex.l (lexer_init): Make static.
8783
8784 2012-03-01  Pedro Alves  <palves@redhat.com>
8785
8786         PR gdb/13767
8787
8788         * frame.c (read_frame_register_unsigned): New.
8789         * frame.h (read_frame_register_unsigned): Declare.
8790         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8791         Handle it.
8792         (print_i387_control_word): New parameter `control_p'.  Handle it.
8793         (i387_print_float_info): Handle unavailable float registers.
8794
8795 2012-03-01  Keith Seitz  <keiths@redhat.com>
8796
8797         * linespec.c (decode_line_2): Sort the list of methods
8798         alphabetically before presenting the user with a selection
8799         menu.
8800
8801 2012-03-01  Doug Evans  <dje@google.com>
8802
8803         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8804         has_namespace_info.
8805         (dwarf2_read_abbrevs): Remove corresponding initialization.
8806
8807 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
8808
8809         * NEWS: Mention new python command class gdb.COMMAND_USER.
8810         * cli/cli-cmds.c (show_user): Print error when used on a python
8811         command.
8812         (init_cli_cmds): Update documentation strings for "show user" and
8813         "set/show max-user-call-depth" to clarify that it does not apply to
8814         python commands.
8815         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8816         error check.
8817         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8818         gdb python api.
8819         * top.c (execute_command): Only execute a user-defined command as a
8820         legacy macro if c->user_commands is set.
8821
8822 2012-03-01  Tom Tromey  <tromey@redhat.com>
8823
8824         * valprint.h (struct generic_val_print_decorations): New.
8825         (generic_val_print): Declare.
8826         * valprint.c (generic_val_print): New function.
8827         * p-valprint.c (p_decorations): New global.
8828         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8829         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8830         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8831         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8832         * m2-valprint.c (m2_decorations): New global.
8833         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8834         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8835         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8836         TYPE_CODE_ERROR>: Call generic_val_print.
8837         * f-valprint.c (f_decorations): New global.
8838         (f_val_print): Use print_function_pointer_address.
8839         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8840         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8841         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8842         generic_val_print.
8843         * c-valprint.c (c_decorations): New global.
8844         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8845         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8846         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8847         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8848         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8849         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8850         case.
8851
8852 2012-03-01  Tom Tromey  <tromey@redhat.com>
8853
8854         * valprint.c (val_print): Update.
8855         * p-valprint (pascal_val_print): Return void.
8856         * p-lang.h (pascal_val_print): Return void.
8857         * m2-valprint.c (m2_val_print): Return void.
8858         * m2-lang.h (m2_val_print): Return void.
8859         * language.h (struct language_defn) <la_val_print>: Return void.
8860         * language.c (unk_lang_val_print): Return void.
8861         * jv-valprint.c (java_val_print): Return void.
8862         * jv-lang.h (java_val_print): Return void.
8863         * f-valprint.c (f_val_print): Return void.
8864         * f-lang.h (f_val_print): Return void.
8865         * d-valprint.c (d_val_print): Return void.
8866         (dynamic_array_type): Update.
8867         * d-lang.h (d_val_print): Return void.
8868         * c-valprint.c (c_val_print): Return void.
8869         * c-lang.h (c_val_print): Return void.
8870         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8871         void.
8872         * ada-lang.h (ada_val_print): Return void.
8873
8874 2012-03-01  Tom Tromey  <tromey@redhat.com>
8875
8876         * value.h (val_print): Return void.
8877         * valprint.c (val_print): Return void.
8878
8879 2012-03-01  Tom Tromey  <tromey@redhat.com>
8880
8881         * value.h (common_val_print): Return void.
8882         * valprint.c (common_val_print): Return void.
8883
8884 2012-03-01  Tom Tromey  <tromey@redhat.com>
8885
8886         * value.h (value_print): Return void.
8887         * valprint.c (value_print): Return void.
8888         * p-valprint.c (pascal_value_print): Return void.
8889         * p-lang.h (pascal_value_print): Return void.
8890         * language.h (struct language_defn) <la_value_print>: Return
8891         void.
8892         * language.c (unk_lang_value_print): Return void.
8893         * jv-valprint.c (java_value_print): Return void.
8894         * jv-lang.h (java_value_print): Return void.
8895         * f-valprint.c (c_value_print): Don't declare.
8896         Include c-lang.h.
8897         * c-valprint.c (c_value_print): Return void.
8898         * c-lang.h (c_value_print): Return void.
8899         * ada-valprint.c (ada_value_print): Return void.
8900         * ada-lang.h (ada_value_print): Return void.
8901
8902 2012-03-01  Tom Tromey  <tromey@redhat.com>
8903
8904         * value.c (value_primitive_field): Handle virtual base classes.
8905
8906 2012-03-01  Tom Tromey  <tromey@redhat.com>
8907
8908         * gdbtypes.h (struct vbase): Remove.
8909
8910 2012-03-01  Tom Tromey  <tromey@redhat.com>
8911
8912         * c-valprint.c (print_function_pointer_address): Move...
8913         * valprint.c: ... here.  Make non-static.
8914         * m2-valprint.c (print_function_pointer_address): Remove.
8915         * valprint.h (print_function_pointer_address): Declare.
8916
8917 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8918
8919         * NEWS: Document the fact that one can provide a condition when
8920         creating an Ada exception catchpoint.
8921
8922 2012-03-01  Tom Tromey  <tromey@redhat.com>
8923
8924         * valprint.c (val_print_type_code_flags): Fix placement of
8925         trailing brace.
8926
8927 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8928
8929         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8930         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8931         environment variable before calling update-copyright.
8932
8933 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8934
8935         * gnulib/extra/update-copyright: Update to the latest from
8936         gnulib's git repository.
8937         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8938         variable to 2 instead of 1.
8939
8940 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8941
8942         * varobj.c (c_value_of_variable): Remove dead code.
8943
8944 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8945
8946         * ada-lex.p (processId): Do not modify already encoded IDs.
8947         Update function documentation.
8948
8949 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8950
8951         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8952         "name" with "struct symbol *name_sym".
8953         * ada-exp.y (write_var_or_type): Update call to
8954         ada_find_renaming_symbol.
8955         "name" with "struct symbol *name_sym". Adjust Implementation
8956         accordingly.  Adjust the function documentation.
8957
8958 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8959
8960         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8961         * ada-lang.c (ada_find_any_type): Add advance declaration.
8962         Make static.  Replace ada_find_any_symbol by
8963         ada_find_any_type_symbol.
8964         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8965         Improve function description.  Make static.
8966         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8967         Replace ada_find_any_symbol by ada_find_any_type_symbol.
8968
8969 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8970
8971         * ada-lang.c (struct tag_args): Delete.
8972         (ada_get_tsd_type): Function body moved up in source file.
8973         (ada_tag_name_1, ada_tag_name_2): Delete.
8974         (ada_get_tsd_from_tag): New function.
8975         (ada_tag_name_from_tsd): New function.
8976         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8977         to determine the tag name.
8978
8979 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8980
8981         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8982         declaration.
8983         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8984         function.
8985
8986 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8987
8988         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8989
8990 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8991
8992         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8993         full searches.
8994
8995 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8996
8997         * ada-lang.c (constrained_packed_array_type): If there is a
8998         parallel XA type, use it to determine the array index type.
8999
9000 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9001
9002         * ada-valprint.c (ada_val_print_1): If our value is a reference
9003         to an array descriptor, dereference it before converting it
9004         to a simple array.
9005
9006 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9007
9008         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9009         creating fixed value.
9010         (ada_value_ind, ada_coerce_ref, assign_component)
9011         (ada_evaluate_subexp): Remove call to unwrap_value before
9012         call to ada_to_fixed_value.
9013
9014 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9015
9016         * ada-lang.c (to_fixed_array_type): Set result's type name.
9017
9018 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9019
9020         * ada-lang.c (catch_ada_exception_command_split): Add new
9021         argument cond_string.  Add support for condition at end of
9022         "catch exception" commands.
9023         (ada_decode_exception_location): Add new argument cond_string.
9024         Update call to catch_ada_exception_command_split.
9025         (create_ada_exception_catchpoint): Add new argument cond_string.
9026         Set the breakpoint condition if needed.
9027         (catch_ada_exception_command): Update call to
9028         ada_decode_exception_location.
9029         (ada_decode_assert_location): Add function documentation.
9030         Add support for condition at end of "catch assert" command.
9031         (catch_assert_command): Update calls to ada_decode_assert_location
9032         and create_ada_exception_catchpoint.
9033
9034 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9035
9036         Fix disp-step-syscall.exp: fork: single step over fork.
9037         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9038         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9039         comment, change parameters gdbarch and ptid to regcache.  Remove
9040         parameter regcache, initialize gdbarch from regcache here.
9041         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9042         New functions.
9043         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9044         instead.
9045         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9046         'syscall'.  Make the 'int' check more strict.
9047
9048 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9049
9050         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9051         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9052         (i386_linux_intx80_sysenter_syscall_record): ... here.
9053         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9054         Use the renamed function name.
9055
9056 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9057
9058         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9059         * breakpoint.c (until_break_command): Likewise.
9060         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9061         * infcall.c (call_function_by_hand): Likewise.
9062         * infcmd.c (finish_forward): Likewise.
9063         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9064
9065 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9066
9067         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9068         avoid variable assignments inside condition.
9069
9070 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9071
9072         Fix static analysis issue found by cppcheck.
9073         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9074         uninitialized BUF for size 2.
9075
9076 2012-02-27  Chris Dearman  <chris@mips.com>
9077             Nathan Froyd  <froydnj@codesourcery.com>
9078             Maciej W. Rozycki  <macro@codesourcery.com>
9079
9080         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9081         (mips16_instruction_has_delay_slot): Likewise.
9082         (mips_segment_boundary): Likewise.
9083         (mips_adjust_breakpoint_address): Likewise.
9084         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9085
9086 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9087             Maciej W. Rozycki  <macro@codesourcery.com>
9088
9089         * infrun.c (handle_inferior_event): Don't proceed through
9090         shared library trampolines if stepping at the machine
9091         instruction level.
9092
9093 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9094
9095         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9096         too.
9097
9098 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9099
9100         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9101         (sh_stub_unwind_sniffer): New functions.
9102         (sh_stub_unwind): New variable.
9103         (sh_gdbarch_init): Wire everything.
9104
9105 2012-02-27  Pedro Alves  <palves@redhat.com>
9106
9107         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9108         (linux_nat_post_attach_wait): Adjust to use
9109         linux_proc_pid_is_stopped.
9110         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9111         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9112         based on pid_is_stopped from both linux-nat.c and
9113         gdbserver/linux-low.c, and renamed.
9114
9115 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9116
9117         * remote.c (remote_watchpoint_addr_within_range): New function.
9118         (init_remote_ops): Use it.
9119
9120 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9121
9122         * target.h (target_watchpoint_addr_within_range): Document macro.
9123
9124 2012-02-24  Pedro Alves  <palves@redhat.com>
9125
9126         * stack.c (set_last_displayed_sal): Issue internal_error instead
9127         of warning, and issue it after clearing the last displayed sal.
9128
9129 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9130             Pedro Alves  <palves@redhat.com>
9131
9132         * breakpoint.c (until_break_command): Install breakpoints after
9133         all frame manipulations.
9134
9135 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9136
9137         * remote.c (remote_supports_cond_breakpoints): New forward
9138         declaration.
9139         (remote_add_target_side_condition): New function.
9140         (remote_insert_breakpoint): Add target-side breakpoint
9141         conditional if supported.
9142         (remote_insert_hw_breakpoint): Likewise.
9143         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9144         hook.
9145
9146         * target.c (update_current_target): Inherit
9147         to_supports_evaluation_of_breakpoint_conditions.
9148         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9149
9150         * target.h (struct target_ops)
9151         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9152         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9153
9154         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9155         (condition_evaluation_both, condition_evaluation_auto,
9156         condition_evaluation_host, condition_evaluation_target,
9157         condition_evaluation_enums, condition_evaluation_mode_1,
9158         condition_evaluation_mode): New static globals.
9159         (translate_condition_evaluation_mode): New function.
9160         (breakpoint_condition_evaluation_mode): New function.
9161         (gdb_evaluates_breakpoint_condition_p): New function.
9162         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9163         (mark_breakpoint_modified): New function.
9164         (mark_breakpoint_location_modified): New function.
9165         (set_condition_evaluation_mode): New function.
9166         (show_condition_evaluation_mode): New function.
9167         (bp_location_compare_addrs): New function.
9168         (get_first_location_gte_addr): New helper function.
9169         (set_breakpoint_condition): Free condition bytecode if locations
9170         has become unconditional.  Call mark_breakpoint_modified (...).
9171         (condition_command): Call update_global_location_list (1) for
9172         breakpoints.
9173         (breakpoint_xfer_memory): Use is_breakpoint (...).
9174         (is_breakpoint): New function.
9175         (parse_cond_to_aexpr): New function.
9176         (build_target_condition_list): New function.
9177         (insert_bp_location): Handle target-side conditional
9178         breakpoints and call build_target_condition_list (...).
9179         (update_inserted_breakpoint_locations): New function.
9180         (insert_breakpoint_locations): Handle target-side conditional
9181         breakpoints.
9182         (bpstat_check_breakpoint_conditions): Add comment.
9183         (bp_condition_evaluator): New function.
9184         (bp_location_condition_evaluator): New function.
9185         (print_breakpoint_location): Print information on where the condition
9186         will be evaluated.
9187         (print_one_breakpoint_location): Likewise.
9188         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9189         breakpoint location.
9190         (force_breakpoint_reinsertion): New functions.
9191         (update_global_location_list): Handle target-side breakpoint
9192         conditions.
9193         Reinsert locations that are already inserted if conditions have
9194         changed.
9195         (bp_location_dtor): Free agent expression bytecode.
9196         (disable_breakpoint): Call mark_breakpoint_modified (...).
9197         Call update_global_location_list (...) with parameter 1 for breakpoints.
9198         (disable_command): Call mark_breakpoint_location_modified (...).
9199         Call update_global_location_list (...) with parameter 1 for breakpoints.
9200         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9201         (enable_command): mark_breakpoint_location_modified (...).
9202         (_initialize_breakpoint): Update documentation and add
9203         condition-evaluation breakpoint subcommand.
9204
9205         * breakpoint.h: Include ax.h.
9206         (condition_list): New data structure.
9207         (condition_status): New enum.
9208         (bp_target_info) <cond_list>: New field.
9209         (bp_location) <condition_changed, cond_bytecode>: New fields.
9210         (is_breakpoint): New prototype.
9211
9212 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9213
9214         * remote.c (remote_state) <cond_breakpoints>: New field.
9215         (PACKET_ConditionalBreakpoints): New enum.
9216         (remote_cond_breakpoint_feature): New function.
9217         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9218         (remote_supports_cond_breakpoints): New function.
9219         (_initialize_remote): Add new packet configuration for
9220         target-side conditional breakpoints.
9221
9222 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9223
9224         * NEWS: Mention target-side conditional breakpoint support,
9225         new condition-evaluation breakpoint subcommand and remote
9226         packet extensions.
9227
9228 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9229
9230         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9231         number.
9232
9233 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9234
9235         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9236         (after_prologue): Remove.
9237
9238 2012-02-23  Tom Tromey  <tromey@redhat.com>
9239
9240         * jv-valprint.c (java_val_print): Remove dead code.
9241
9242 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9243
9244         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9245         known_tasks_element and known_tasks_length fields.
9246         (read_known_tasks_array): Change argument type.  Use pointer type
9247         and number of elements from DATA.  Adjust.
9248         (read_known_tasks_list): Likewise.
9249         (get_known_tasks_addr): Remove.
9250         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9251         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9252         type and array length.  Merge former get_known_tasks_addr code.
9253
9254 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9255
9256         PR backtrace/13716
9257         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9258         it after set_momentary_breakpoint.
9259
9260 2012-02-22  Sterling Augustine  <saugustine@google.com>
9261
9262         PR 13689:
9263         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9264
9265 2012-02-22  Gary Benson  <gbenson@redhat.com>
9266
9267         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9268         (find_slot_in_mapped_hash): Likewise.
9269
9270 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9271
9272         PR build/13638
9273         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9274         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9275         * configure: Regenerate.
9276
9277 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9278             Pedro Alves  <palves@redhat.com>
9279
9280         * ia64-tdep.c: Do not include libunwind-ia64.h.
9281         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9282         Include libunwind-ia64.h instead of libunwind.h.
9283         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9284         for libunwind.h existence.
9285         * configure, config.in: Regenerate.
9286
9287 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9288
9289         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9290         instead of value_rtti_target_type.
9291         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9292         instead of value_rtti_target_type.
9293         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9294         value_rtti_target_type.
9295         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9296         (value_rtti_target_type): Rename to ...
9297         (value_rtti_indirect_type): ... here and make it indirect.  Update
9298         function comment.
9299         * value.c (readjust_indirect_value_type): New function.
9300         (coerce_ref): Support for enclosing type setting for references
9301         with readjust_indirect_value_type.
9302         * value.h (readjust_value_type): New declaration.
9303         (value_rtti_target_type): Rename to ...
9304         (value_rtti_indirect_type): ... here.
9305
9306 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9307
9308         * MAINTAINERS (Write After Approval): Add myself to the list.
9309
9310 2012-02-20  Doug Evans  <dje@google.com>
9311
9312         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9313         Rename objfile_p_char parameter to objfilep.
9314         (build_objfile_section_table): Result is now void.  All callers
9315         updated.
9316         * objfiles.h (struct objfile): Tweak comments, whitespace.
9317         (build_objfile_section_table): Update.
9318
9319         * elfread.c (elf_symfile_segments): Fix warning text.
9320
9321 2012-02-20  Tom Tromey  <tromey@redhat.com>
9322
9323         PR gdb/13498:
9324         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9325         particular set of file names once.
9326         (dw2_map_symbol_filenames): Likewise.
9327
9328 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9329
9330         Code cleanup.
9331         * main.c (write_files): Remove the declaration.
9332         (external_editor_command): Move the declaration ...
9333         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9334
9335 2012-02-20  Tom Tromey  <tromey@redhat.com>
9336
9337         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9338         extraneous block.
9339
9340 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9341
9342         * darwin-nat.h (enum darwin_msg_state): Add comments.
9343
9344 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9345
9346         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9347         value.
9348
9349 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9350
9351         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9352         between function description and implementation.
9353
9354 2012-02-17  Tom Tromey  <tromey@redhat.com>
9355
9356         PR python/12070:
9357         * python/py-event.c (event_object_getset): New global.
9358         (event_object_type): Reference it.
9359         * python/py-type.c (field_object_getset): New global.
9360         (field_object_type): Reference it.
9361         * python/python-internal.h (gdb_py_generic_dict): Declare.
9362         * python/py-utils.c (gdb_py_generic_dict): New function.
9363
9364 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9365
9366         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9367
9368 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9369
9370         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9371         TYPE_CALLING_CONVENTION annotation.
9372
9373 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9374
9375         * MAINTAINERS: Add rx to target ISA section.
9376         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9377         (ALLDEPFILES): Add rx-tdep.c.
9378
9379 2012-02-16  Tom Tromey  <tromey@redhat.com>
9380
9381         * symfile.c (symbol_file_add_main_1): Use inferior's
9382         symfile_flags.
9383         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9384         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9385         inferior.
9386         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9387         inferior.
9388         (follow_exec): Use inferior's symfile_flags.
9389         * inferior.h (struct inferior) <symfile_flags>: New field.
9390
9391 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9392
9393         PR gdb/9734:
9394         * remote-sim.c (gdbsim_create_inferior): Call error() when
9395         sim_create_inferior() fails.
9396
9397 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9398
9399         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9400
9401 2012-02-16  Tom Tromey  <tromey@redhat.com>
9402
9403         PR c++/13653:
9404         * thread.c (struct current_thread_cleanup) <was_removable>: New
9405         field.
9406         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9407         (make_cleanup_restore_current_thread): Initialize new field.
9408
9409 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9410
9411         * MAINTAINERS: Add rl78 to target ISA section.
9412         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9413         (ALLDEPFILES): Add rl78-tdep.c.
9414         * NEWS: Mention rl78 as a new target.
9415
9416 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9417
9418         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9419         data.
9420         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9421
9422 2012-02-15  Tom Tromey  <tromey@redhat.com>
9423
9424         PR gdb/12659:
9425         * infcmd.c (registers_info): Print just the current register's
9426         name.
9427
9428 2012-02-15  Tom Tromey  <tromey@redhat.com>
9429
9430         * python/py-symbol.c (sympy_value): Use _().
9431
9432 2012-02-15  Pedro Alves  <palves@redhat.com>
9433
9434         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9435         output to be like native targets'.
9436         (remote_pid_to_str): Special case the null ptid.
9437
9438 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9439
9440         * NEWS: Mention enable count command.
9441         * breakpoint.h (struct breakpoint): New field enable_count.
9442         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9443         (enable_breakpoint): Add arg to call.
9444         (struct disp_data): New struct.
9445         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9446         (do_map_enable_once_breakpoint): Create a struct and pass it.
9447         (do_map_enable_delete_breakpoint): Ditto.
9448         (do_map_enable_count_breakpoint): New function.
9449         (enable_count_command): New function.
9450         (bpstat_stop_status): Decrement enable_count.
9451         (print_one_breakpoint_location): Report enable count.
9452         (_initialize_breakpoint): Add enable count command.
9453
9454 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9455
9456         * rl78-tdep.c (reggroups.h): Include.
9457         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9458         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9459         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9460         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9461         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9462         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9463         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9464         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9465         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9466         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9467         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9468         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9469         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9470         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9471         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9472         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9473         beginning of register list.
9474         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9475         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9476         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9477         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9478         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9479         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9480         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9481         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9482         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9483         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9484         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9485         the pseudo registers.  Rearrange other pseudo registers too so
9486         that the bank registers appear at the end.
9487         (rl78_register_type): Account for the fact that the byte sized
9488         bank registers are now pseudo-registers.
9489         (rl78_register_name): Rearrange the register name array.  Make
9490         initial set of raw banked registers inaccessible.
9491         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9492         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9493         case for copying bytes back and forth between raw and pseudo
9494         versions of the banked registers.  Update other cases to reflect
9495         the changed names.
9496         (rl78_return_value): Update to account for changed names of
9497         raw registers.
9498         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9499         rl78_register_sim_regno().
9500
9501 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9502
9503         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9504         the name parameter being passed to find_pc_partial_function().
9505
9506 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9507
9508         * MAINTAINERS: Step down from being ia64 target maintainer.
9509
9510 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9511
9512         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9513         compilation warning.
9514
9515 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9516
9517         Fix crash on loaded shlibs without loaded exec_bfd.
9518         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9519         (set_section_command): Replace exec_bfd by p->bfd.
9520
9521 2012-02-10  Tom Tromey  <tromey@redhat.com>
9522
9523         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9524         when we have a C++ qualified name.
9525
9526 2012-02-10  Pedro Alves  <palves@redhat.com>
9527
9528         * inferior.c (inferior_pid_to_str): New.
9529         (print_inferior, inferior_command): Use it.
9530
9531 2012-02-10  Pedro Alves  <palves@redhat.com>
9532
9533         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9534         the test CFLAGS.
9535         * configure: Regenerate.
9536
9537 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9538
9539         * linespec.c (decode_line_internal): Fix comment correctness.
9540
9541 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9542
9543         PR gdb/12953
9544         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9545         * amd64bsd-nat.c: Add support for debug registers (adapted from
9546         i386bsd-nat.c).
9547         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9548         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9549         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9550         (amd64bsd_dr_get_control): New functions.
9551         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9552         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9553         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9554         watchpoints initialization.
9555         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9556
9557 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9558
9559         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9560         flds_bnds.fields.
9561         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9562
9563 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9564
9565         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9566
9567 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9568
9569         * language.h (symbol_name_cmp_ftype): Renames
9570         symbol_name_match_p_ftype.
9571         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9572         la_get_symbol_name_match_p.
9573         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9574         ada_get_symbol_name_match_p.  Update comment.
9575         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9576         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9577         Renames symbol_name_match_p.  Update field type.
9578         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9579         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9580         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9581         "la_get_symbol_name_cmp" in comments.
9582         * language.c: Likewise.
9583
9584 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9585
9586         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9587         %eflags offset.
9588         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9589         (amd64_sol2_gregset32_reg_offs): Likewise.
9590
9591 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9592
9593         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9594         of the returned BFD is allocated by GDB.
9595
9596 2012-02-07  Tom Tromey  <tromey@redhat.com>
9597
9598         PR python/12027:
9599         * python/python-internal.h (frame_object_type): Declare.
9600         * python/py-symbol.c (sympy_needs_frame): New function.
9601         (sympy_value): New function.
9602         (symbol_object_getset): Add "needs_frame".
9603         (symbol_object_methods): Add "value".
9604         * python/py-frame.c (frame_object_type): No longer static.
9605
9606 2012-02-07  Tom Tromey  <tromey@redhat.com>
9607
9608         PR python/13599:
9609         * python/py-symbol.c (sympy_line): New function.
9610         (symbol_object_getset): Add "line".
9611
9612 2012-02-07  Tom Tromey  <tromey@redhat.com>
9613
9614         * charset.c (find_charset_names): Check 'in' against NULL.
9615
9616 2012-02-06  Doug Evans  <dje@google.com>
9617
9618         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9619         and fields.name members from char * to const char *.  All uses updated.
9620         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9621         from char * to const char *.  All uses updated.
9622         (type_name_no_tag): Update.
9623         (lookup_unsigned_typename, lookup_signed_typename): Update.
9624         * gdbtypes.c (type_name_no_tag): Change result type
9625         from char * to const char *.  All callers updated.
9626         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9627         name parameter from char * to const char *.
9628         * symtab.h (struct cplus_specific): Change type of demangled_name
9629         member from char * to const char *.  All uses updated.
9630         (struct general_symbol_info): Change type of name and
9631         mangled_lang.demangled_name members from char * to const char *.
9632         All uses updated.
9633         (symbol_get_demangled_name, symbol_natural_name): Update.
9634         (symbol_demangled_name, symbol_search_name): Update.
9635         * symtab.c (symbol_get_demangled_name): Change result type
9636         from char * to const char *.  All callers updated.
9637         (symbol_natural_name, symbol_demangled_name): Ditto.
9638         (symbol_search_name): Ditto.
9639         (completion_list_add_name): Change type of symname,sym_text,
9640         text,word parameters from char * to const char *.
9641         (completion_list_objc_symbol): Change type of sym_text,
9642         text,word parameters from char * to const char *.
9643         * ada-lang.c (find_struct_field): Change type of name parameter
9644         from char * to const char *.
9645         (encoded_ordered_before): Similarly for N0,N1 parameters.
9646         (old_renaming_is_invisible): Similarly for function_name parameter.
9647         (ada_type_name): Change result type from char * to const char *.
9648         All callers updated.
9649         * ada-lang.h (ada_type_name): Update.
9650         * buildsym.c (hashname): Change type of name parameter
9651         from char * to const char *.
9652         * buildsym.h (hashname): Update.
9653         * dbxread.c (end_psymtab): Change type of include_list parameter
9654         from char ** to const char **.
9655         * dwarf2read.c (determine_prefix): Change result type
9656         from char * to const char *.  All callers updated.
9657         * f-lang.c (find_common_for_function): Change type of name, funcname
9658         parameters from char * to const char *.
9659         * f-lang.c (find_common_for_function): Update.
9660         * f-valprint.c (list_all_visible_commons): Change type of funcname
9661         parameters from char * to const char *.
9662         * gdbarch.sh (static_transform_name): Change type of name parameter
9663         and result from char * to const char *.
9664         * gdbarch.c: Regenerate.
9665         * gdbarch.h: Regenerate.
9666         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9667         of name parameter from char * to const char *.
9668         * jv-lang.c (java_primitive_type_from_name): Ditto.
9669         (java_demangled_signature_length): Similarly for signature parameter.
9670         (java_demangled_signature_copy): Ditto.
9671         (java_demangle_type_signature): Ditto.
9672         * jv-lang.h (java_primitive_type_from_name): Update.
9673         (java_demangle_type_signature): Update.
9674         * objc-lang.c (specialcmp): Change type of a,b parameters
9675         from char * to const char *.
9676         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9677         from char * to const char *.  All callers updated.
9678         * p-lang.h (is_pascal_string_type): Update.
9679         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9680         of name parameter from char * to const char *.
9681         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9682         * utils.c (fprintf_symbol_filtered): Ditto.
9683         * defs.h (fprintf_symbol_filtered): Update.
9684         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9685         * stabsread.h (end_psymtab): Update.
9686         * stack.c (find_frame_funname): Change type of funname parameter
9687         from char ** to const char **.
9688         * stack.h (find_frame_funname): Update.
9689         * typeprint.c (type_print): Change type of varstring parameter
9690         from char * to const char *.
9691         * value.h (type_print): Update.
9692         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9693         from char * to const char *.  All callers updated.
9694         (xcoff_end_psymtab): Change type of include_list parameter
9695         from char ** to const char **.  All callers updated.
9696         (swap_sym): Similarly for name parameter.  All callers updated.
9697         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9698         Use xstrdup.
9699         (process_coff_symbol): Use xstrdup.
9700         * stabsread.c (stabs_method_name_from_physname): Renamed from
9701         update_method_name_from_physname.  Change result type from void
9702         to char *.  All callers updated.
9703         (read_member_functions): In has_destructor case, store name in objfile
9704         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9705
9706 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9707
9708         * configure: Rebuild.
9709         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9710         LDFLAGS.
9711
9712 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9713
9714         * configure.tgt (rl78-*-elf): New target.
9715         * rl78-tdep.c: New file.
9716
9717 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9718
9719         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9720         and continue the loop.  Add QUIT statement.
9721
9722 2012-02-03  Tom Tromey  <tromey@redhat.com>
9723
9724         PR gdb/13596:
9725         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9726         bfd_lookup_symbol_from_symtab.
9727         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9728         gdb_bfd_lookup_symbol_from_symtab.
9729
9730 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9731
9732         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9733         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9734         symbol.  Add assertion that sym2 is never NULL.
9735
9736 2012-02-02  Doug Evans  <dje@google.com>
9737
9738         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9739         "name" parameter to const char ** from char **.  All callers updated.
9740         (find_pc_partial_function): Ditto.
9741         (cache_pc_function_name): Change type to const char * from char *.
9742         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9743         (find_pc_partial_function): Update.
9744         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9745         type of "name" parameter to const char * from char *.
9746         All uses updated.
9747         * arch-utils.c (generic_in_solib_return_trampoline): Change
9748         type of "name" parameter to const char * from char *.
9749         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9750         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9751         type of "name" parameter to const char * from char *.
9752         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9753         * gdbarch.c: Regenerate.
9754         * gdbarch.h: Regenerate.
9755         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9756         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9757         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9758         type of "name" parameter to const char * from char *.
9759         * skip.c (skip_function_pc): Ditto.
9760         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9761         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9762         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9763         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9764         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9765         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9766         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9767         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9768         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9769
9770 2012-02-02  Pedro Alves  <palves@redhat.com>
9771
9772         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9773         the current inferior has no execution.  Make sure the current
9774         remote process matches gdb's current inferior.
9775
9776 2012-02-02  Tom Tromey  <tromey@redhat.com>
9777
9778         PR gdb/13405:
9779         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9780         read-only memory.
9781
9782 2012-02-02  Tom Tromey  <tromey@redhat.com>
9783
9784         PR gdb/9307:
9785         * symtab.c (lookup_language_this): Set block_found.
9786
9787 2012-02-01  Tom Tromey  <tromey@redhat.com>
9788
9789         PR gdb/13431:
9790         * jit.c (struct jit_inferior_data): Rewrite.
9791         (struct jit_objfile_data): New.
9792         (get_jit_objfile_data): New function.
9793         (add_objfile_entry): Update.
9794         (jit_read_descriptor): Return int.  Replace descriptor_addr
9795         argument with inf_data.  Update.  Don't call error.
9796         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9797         descriptor here.
9798         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9799         (jit_reset_inferior_data_and_breakpoints)
9800         (jit_inferior_created_observer): Remove.
9801         (jit_inferior_exit_hook): Update.
9802         (jit_executable_changed_observer): Remove.
9803         (jit_event_handler): Update.
9804         (free_objfile_data): Reset inferior data if needed.
9805         (_initialize_jit): Update.
9806
9807 2012-02-01  Tom Tromey  <tromey@redhat.com>
9808
9809         * jit.c (bfd_open_from_target_memory): Move higher in file.
9810
9811 2012-02-01  Tristan Gingold  <gingold@adacore.com>
9812
9813         * libunwind-frame.c (libunwind_load): Display message if dlopen
9814         failed.
9815
9816 2012-02-01  Gary Benson  <gbenson@redhat.com>
9817
9818         * symtab.h (symbol_found_callback_ftype): New typedef.
9819         (iterate_over_symbols): Use the above.
9820         * symtab.c (iterate_over_symbols): Likewise.
9821         * language.h (language_defn->la_iterate_over_symbols): Likewise.
9822         * ada-lang.c (ada_iterate_over_symbols): Likewise.
9823         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9824         (iterate_name_matcher): Document return values.
9825         (collect_one_symbol): Likewise.
9826         (collect_function_symbols): Likewise.
9827         (collect_symbols): Likewise.
9828
9829 2012-02-01  Tom Tromey  <tromey@redhat.com>
9830
9831         * ada-lang.c (resolve_subexp): Update.
9832         (ada_lookup_symbol_list): Add 'full_search' argument.
9833         (ada_iterate_over_symbols): Pass 0 as full_search argument to
9834         ada_lookup_symbol_list.
9835         (ada_lookup_encoded_symbol): Update.
9836         (get_var_value): Update.
9837         * ada-exp.y (block_lookup): Update.
9838         (write_var_or_type): Update.
9839         (write_name_assoc): Update.
9840         * ada-lang.h (ada_lookup_symbol_list): Update.
9841
9842 2012-01-31  Tom Tromey  <tromey@redhat.com>
9843
9844         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9845         comment.
9846
9847 2012-01-31  Doug Evans  <dje@google.com>
9848
9849         * symtab.h: Remove outdated comment.
9850         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9851
9852 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9853
9854         Fix build error in Darwin port.
9855         * i386-darwin-nat.c: Include i386-nat.h.
9856
9857 2012-01-30  Tom Tromey  <tromey@redhat.com>
9858
9859         PR breakpoints/13568:
9860         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9861         argument.  Check for recursive includes.
9862         (dwarf_decode_macros): Create an include hash.
9863
9864 2012-01-30  Michael Eager  <eager@eagercon.com>
9865
9866         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9867         * ppc-linux-tdep.c: Include glibc-tdep.h.
9868         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9869         (powerpc_linux_in_plt_stub): New function.
9870         (powerpc_linux_in_dynsym_resolve_code): New function.
9871         (ppc_skip_trampoline_code): New function.
9872         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9873         Use glibc_skip_solib_resolver.
9874
9875 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9876
9877         Code cleanup: Make 1440 bytes of data segment read-only.
9878         * arch-utils.c (endian_enum): Make it const char *const [].
9879         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9880         Likewise.
9881         * breakpoint.c (always_inserted_enums): Likewise.
9882         * cli/cli-cmds.c (script_ext_enums): Likewise.
9883         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9884         enumlist parameter const char *const *.
9885         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9886         const char *const *.
9887         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9888         parameter const char *const *.
9889         * cris-tdep.c (cris_modes): Make it const char *const [].
9890         * filesystem.c (target_file_system_kinds): Likewise.
9891         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9892         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9893         (can_use_displaced_stepping_enum, scheduler_enums)
9894         (exec_direction_names): Likewise.
9895         * language.c (_initialize_language): Make the type_or_range_names and
9896         case_sensitive_names variables const char *const [].
9897         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9898         * python/python.c (python_excp_enums): Likewise.
9899         * remote.c (interrupt_sequence_modes): Likewise.
9900         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9901         * serial.c (logbase_enums): Likewise.
9902         * sh-tdep.c (sh_cc_enum): Likewise.
9903         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9904         Likewise.
9905         * symtab.c (multiple_symbols_modes): Likewise.
9906         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9907         Likewise.
9908         * utils.c (internal_problem_modes): Likewise.
9909
9910 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9911
9912         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9913         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9914         result.
9915
9916 2012-01-27  Doug Evans  <dje@google.com>
9917
9918         * configure.ac (with_python): Fix absolute path handling for win32.
9919         * configure: Regenerate.
9920
9921 2012-01-26  Doug Evans  <dje@google.com>
9922
9923         * symtab.c: Whitespace cleanup, no code changes.
9924
9925         * symtab.c (lookup_symbol_in_language): Improve comment.
9926         (lookup_symbol_aux): Fix comment.
9927
9928         * psymtab.c (add_psymbol_to_list): Result is now "void".
9929         * psympriv.h (add_psymbol_to_list): Update.
9930
9931         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9932
9933 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9934
9935         Do not open script filenames twice.
9936         * cli/cli-cmds.c (source_script_from_stream): Pass to
9937         source_python_script also STREAM.
9938         * python/py-auto-load.c (source_section_scripts): Pass to
9939         source_python_script_for_objfile also STREAM.
9940         (auto_load_objfile_script): Pass to source_python_script_for_objfile
9941         also INPUT.
9942         * python/python-internal.h (source_python_script_for_objfile): New
9943         parameter file, rename parameter file to filename.
9944         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9945         instead if !_WIN32.  Update the function comment.
9946         (source_python_script, source_python_script_for_objfile)
9947         (source_python_script): New parameter file, rename parameter file to
9948         filename.  Pass FILENAME to python_run_simple_file.
9949         * python/python.h (source_python_script): New parameter file, rename
9950         parameter file to filename.
9951
9952 2012-01-26  Pedro Alves  <palves@redhat.com>
9953
9954         * corelow.c (core_has_fake_pid): Delete.
9955         (core_close): Delete references to `core_has_fake_pid'.
9956         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9957         (core_open): Delete references to `core_has_fake_pid'.
9958         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9959         the removed global.
9960
9961 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
9962
9963         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9964         Remove language parameter from name_matcher.  Adjust the comment.
9965         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9966         Remove language parameter.
9967         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9968         * linespec.c (iterate_name_matcher): Likewise.
9969         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9970         name_matcher.  Adjust call accordingly.
9971         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9972         (maintenance_check_symtabs): Adjust type of parameter "fun".
9973         * psymtab.h (maintenance_check_symtabs): Likewise.
9974
9975 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
9976
9977         * language.h (symbol_name_match_p_ftype): New typedef.
9978         (struct language_defn): Replace field la_symbol_name_compare
9979         by la_get_symbol_name_match_p.
9980         * ada-lang.c (ada_get_symbol_name_match_p): New function.
9981         (ada_language_defn): Use it.
9982         * linespec.c (struct symbol_matcher_data): New type.
9983         (iterate_name_matcher): Rewrite.
9984         (iterate_over_all_matching_symtabs): Pass a pointer to
9985         a symbol_matcher_data struct to expand_symtabs_matching
9986         instead of just the lookup name.
9987         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9988         opencl-lang.c, p-lang.c, language.c: Delete field
9989         la_symbol_name_compare, and replace by NULL for new field
9990         la_get_symbol_name_match_p.
9991         * symfile.h (struct quick_symbol_functions): Update comment.
9992
9993 2012-01-25  Tom Tromey  <tromey@redhat.com>
9994
9995         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9996         dereferencing.
9997
9998 2012-01-24  Tom Tromey  <tromey@redhat.com>
9999
10000         PR symtab/12406:
10001         * solib.c (update_solib_list): Update the program space's
10002         added_solibs and deleted_solibs fields.
10003         * progspace.h (struct program_space) <added_solibs,
10004         deleted_solibs>: New fields.
10005         (clear_program_space_solib_cache): Declare.
10006         * progspace.c (release_program_space): Call
10007         clear_program_space_solib_cache.
10008         (clear_program_space_solib_cache): New function.
10009         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10010         bpstat_stop_status.  Use handle_solib_event.
10011         * breakpoint.c: Include gdb_regex.h.
10012         (print_solib_event): New function.
10013         (bpstat_print): Use print_solib_event.
10014         (bpstat_stop_status): Add special case for bp_shlib_event.
10015         (handle_solib_event): New function.
10016         (bpstat_what): Use handle_solib_event.
10017         (struct solib_catchpoint): New.
10018         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10019         (breakpoint_hit_catch_solib, check_status_catch_solib)
10020         (print_it_catch_solib, print_one_catch_solib)
10021         (print_mention_catch_solib, print_recreate_catch_solib): New
10022         functions.
10023         (catch_solib_breakpoint_ops): New global.
10024         (catch_load_or_unload, catch_load_command_1)
10025         (catch_unload_command_1): New functions.
10026         (internal_bkpt_check_status): Add special case for
10027         bp_shlib_event.
10028         (internal_bkpt_print_it): Use print_solib_event.
10029         (initialize_breakpoint_ops): Initialize
10030         catch_solib_breakpoint_ops.
10031         (_initialize_breakpoint): Register "catch load" and "catch
10032         unload".
10033         * breakpoint.h (handle_solib_event): Declare.
10034         * NEWS: Add entry for "catch load" and "catch unload".
10035
10036 2012-01-24  Tom Tromey  <tromey@redhat.com>
10037
10038         * ada-lang.c: Include gdb_vecs.h.
10039         * charset.c: Include gdb_vecs.h.
10040         * tracepoint.h: Include gdb_vecs.h.
10041         * gdb_vecs.h: New file.
10042
10043 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10044
10045         * breakpoint.c (breakpoint_hit_catch_fork)
10046         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10047         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10048         * infrun.c (inferior_has_forked, inferior_has_vforked)
10049         (inferior_has_execd, inferior_has_called_syscall): Delete.
10050         (handle_syscall_event): Get syscall_number from the execution
10051         control state's wait status.
10052         (wait_for_inferior): Don't clear syscall_number.
10053
10054 2012-01-24  Pedro Alves  <palves@redhat.com>
10055
10056         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10057         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10058         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10059         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10060         `ws' parameter.
10061         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10062         false for events other than TARGET_SIGNAL_TRAP.
10063         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10064         Add `ws' parameter.
10065         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10066         events other than TARGET_SIGNAL_TRAP.
10067         (tracepoint_breakpoint_hit): Add `ws' parameter.
10068         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10069         parameter.
10070         (bpstat_stop_status): Same.
10071         (pc_at_non_inline_function): Same.
10072         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10073         to pass the current event's waitstatus to bpstat_stop_status
10074         and pc_at_non_inline_function.
10075
10076 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10077
10078         Code cleanup.
10079         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10080         Update the function comment for it.
10081         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10082         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10083         for STREAM.
10084
10085 2012-01-24  Pedro Alves  <palves@redhat.com>
10086
10087         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10088         outside `bs->stop' block.
10089         (bpstat_what): Rework bp_shlib_event handling.
10090         (internal_bkpt_check_status): If the breakpoint is a
10091         bp_shlib_event, then set bs->stop and bs->print if
10092         stop_on_solib_events is set.
10093
10094 2012-01-24  Gary Benson  <gbenson@redhat.com>
10095
10096         Delete #if 0'd out code.
10097         * stack.c (print_frame_label_vars): Remove.
10098         (catch_info): Likewise.
10099         (_initialize_stack): Remove "info catch" command.
10100         * NEWS: Mention the above.
10101
10102 2012-01-24  Pedro Alves  <palves@redhat.com>
10103
10104         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10105         it.
10106         (remote_notice_new_inferior): If the remote end doesn't support
10107         the multiprocess extensions, then the PID is fake.
10108         (add_current_inferior_and_thread): New.
10109         (remote_start_remote): Use it.
10110         (extended_remote_attach_1): Adjust.
10111         (extended_remote_create_inferior_1): Use
10112         add_current_inferior_and_thread.
10113
10114 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10115
10116         Fix watchpoints to be specific for each inferior.
10117         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10118         current_program_space.
10119         * i386-nat.c (i386_inferior_data_cleanup): New.
10120         (i386_inferior_data_get): Replace variable inf_data_local by an
10121         inferior_data call.
10122         (i386_use_watchpoints): Initialize i386_inferior_data.
10123         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10124         specific iterate_over_lwps.
10125
10126 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10127
10128         Fix watchpoints across inferior fork.
10129         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10130         comment for linux_nat_iterate_watchpoint_lwps.
10131         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10132         linux_nat_iterate_watchpoint_lwps.
10133         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10134         * i386-linux-nat.c (update_debug_registers_callback): Update the
10135         comment for linux_nat_iterate_watchpoint_lwps.
10136         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10137         linux_nat_iterate_watchpoint_lwps.
10138         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10139         * i386-nat.c: Include inferior.h.
10140         (dr_mirror): Remove.
10141         (i386_inferior_data, struct i386_inferior_data)
10142         (i386_inferior_data_get): New.
10143         (i386_debug_reg_state): Use i386_inferior_data_get.
10144         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10145         (i386_insert_watchpoint, i386_remove_watchpoint)
10146         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10147         (i386_remove_hw_breakpoint): New variable state, use
10148         i386_debug_reg_state instead of DR_MIRROR.
10149         * linux-nat.c (delete_lwp): New declaration.
10150         (num_lwps): Move here from downwards.
10151         (delete_lwp_cleanup): New.
10152         (linux_child_follow_fork): Create new child_lp, call
10153         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10154         PTRACE_DETACH.
10155         (num_lwps): Move upwards.
10156         (linux_nat_iterate_watchpoint_lwps): New.
10157         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10158         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10159
10160 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10161
10162         GDB 7.4 released.
10163
10164 2012-01-23  Pedro Alves  <palves@redhat.com>
10165
10166         * top.c (caution): Rename to ...
10167         (confirm): ... this.
10168         (show_caution): Rename to ...
10169         (show_confirm): ... this.
10170         (quit_cover): Adjust.
10171         (init_main): Adjust.
10172         * top.h (caution): Rename to ...
10173         (confirm): ... this.
10174         * utils.c (internal_vproblem, defaulted_query): Adjust.
10175
10176 2012-01-23  Pedro Alves  <palves@redhat.com>
10177
10178         * top.c (caution): Update comment.
10179         (execute_command): Don't consider the current value of `caution'.
10180
10181 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10182
10183         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10184
10185 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10186
10187         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10188         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10189         * target.c (target_fileio_pwrite): Remove buffer address from
10190         debug output.
10191         (target_fileio_pread): Likewise.
10192
10193 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10194
10195         * NEWS: Document remote "info proc" and "generate-core-file".
10196
10197 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10198
10199         * gdbarch.sh (find_memory_regions): New callback.
10200         * gdbarch.c, gdbarch.h: Regenerate.
10201
10202         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10203         callback before falling back to target method.
10204
10205         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10206         (linux_target_install_ops): No longer install it.
10207
10208         * linux-tdep.c (linux_find_memory_regions): New function.
10209         (linux_init_abi): Install it.
10210
10211 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10212
10213         * gdbarch.sh (make_corefile_notes): New architecture callback.
10214         * gdbarch.c: Regenerate.
10215         * gdbarch.h: Likewise.
10216
10217         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10218         before target_make_corefile_notes.  If NULL is returned, the
10219         target does not support core file generation.
10220
10221         * linux-nat.c: Include "linux-tdep.h".
10222         (find_signalled_thread, find_stop_signal): Remove.
10223         (linux_nat_do_thread_registers): Likewise.
10224         (struct linux_nat_corefile_thread_data): Likewise.
10225         (linux_nat_corefile_thread_callback): Likewise.
10226         (iterate_over_spus): Likewise.
10227         (struct linux_spu_corefile_data): Likewise.
10228         (linux_spu_corefile_callback): Likewise.
10229         (linux_spu_make_corefile_notes): Likewise.
10230         (linux_nat_collect_thread_registers): New function.
10231         (linux_nat_make_corefile_notes): Replace contents by call to
10232         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10233         as native-only callback.
10234
10235         * linux-tdep.h: Include "bfd.h".
10236         (struct regcache): Add forward declaration.
10237         (linux_collect_thread_registers_ftype): New typedef.
10238         (linux_make_corefile_notes): Add prototype.
10239         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10240         "regset.h", and "elf-bfd.h".
10241         (find_signalled_thread, find_stop_signal): New functions.
10242         (linux_spu_make_corefile_notes): Likewise.
10243         (linux_collect_thread_registers): Likewise.
10244         (struct linux_corefile_thread_data): New data structure.
10245         (linux_corefile_thread_callback): New funcion.
10246         (linux_make_corefile_notes): Likewise.
10247         (linux_make_corefile_notes_1): Likewise.
10248         (linux_init_abi): Install it.
10249
10250 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10251
10252         * gdbarch.sh (info_proc): New callback.
10253         * gdbarch.c, gdbarch.h: Regenerate.
10254
10255         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10256         before falling back to the target info_proc callback.
10257
10258         * linux-nat.c: Do not include "cli/cli-utils.h".
10259         (linux_nat_info_proc): Remove.
10260         (linux_target_install_ops): No longer install it.
10261
10262         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10263         (read_mapping): New function.
10264         (linux_info_proc): Likewise.
10265         (linux_init_abi): Install it.
10266
10267 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10268
10269         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10270         * infcmd.c: (info_proc_cmd_1): New function.
10271         (info_proc_cmd): New function, moved here from equivalent routine
10272         orignally in linux-nat.c.
10273         (info_proc_cmd_mappings): Likewise.
10274         (info_proc_cmd_stat): Likewise.
10275         (info_proc_cmd_status): Likewise.
10276         (info_proc_cmd_cwd): Likewise.
10277         (info_proc_cmd_cmdline): Likewise.
10278         (info_proc_cmd_exe): Likewise.
10279         (info_proc_cmd_all): Likewise.
10280         (_initialize_infcmd): Install "info proc" command and subcommands.
10281
10282         * target.h (struct target_ops): Add to_info_proc.
10283         (target_info_proc): Add prototype.
10284         * target.c (target_info_proc): New function.
10285
10286         * procfs.c (procfs_info_proc): Add prototype.
10287         (info_proc_cmd): Rename into ...
10288         (procfs_info_proc): ... this.  Update argument types as appropriate
10289         for a to_info_proc implementation.  Handle "what" argument.
10290         (procfs_target): Install procfs_info_proc.
10291         (_initialize_procfs): No longer install "info proc" command.
10292
10293         * linux-nat.c: (enum info_proc_what): Remove.
10294         (linux_nat_info_proc_cmd_1): Rename into ...
10295         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10296         for a to_info_proc implementation.
10297         (linux_nat_info_proc_cmd): Remove.
10298         (linux_nat_info_proc_cmd_mappings): Likewise.
10299         (linux_nat_info_proc_cmd_stat): Likewise.
10300         (linux_nat_info_proc_cmd_status): Likewise.
10301         (linux_nat_info_proc_cmd_cwd): Likewise.
10302         (linux_nat_info_proc_cmd_cmdline): Likewise.
10303         (linux_nat_info_proc_cmd_exe): Likewise.
10304         (linux_nat_info_proc_cmd_all): Likewise.
10305         (linux_target_install_ops): Install linux_nat_info_proc.
10306         (_initialize_linux_nat): No longer install "info proc" command
10307         and subcommands.
10308
10309 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10310
10311         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10312         * config.in, configure: Regenerate.
10313
10314         * target.h (struct target_ops): Add to_fileio_readlink.
10315         (target_fileio_readlink): Add prototype.
10316         * target.c (target_fileio_readlink): New function.
10317
10318         * inf-child.c: Conditionally include <sys/param.h>.
10319         (inf_child_fileio_readlink): New function.
10320         (inf_child_target): Install it.
10321
10322         * remote.c (PACKET_vFile_readlink): New enum value.
10323         (remote_hostio_readlink): New function.
10324         (init_remote_ops): Install it.
10325         (_initialize_remote): Handle vFile:readlink packet type.
10326
10327 2012-01-20  Pedro Alves  <palves@redhat.com>
10328             Ulrich Weigand  <ulrich.weigand@linaro.org>
10329
10330         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10331         * config.in, configure: Regenerate.
10332
10333         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10334         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10335         (target_fileio_open): Add prototype.
10336         (target_fileio_pwrite): Likewise.
10337         (target_fileio_pread): Likewise.
10338         (target_fileio_close): Likewise.
10339         (target_fileio_unlink): Likewise.
10340         (target_fileio_read_alloc): Likewise.
10341         (target_fileio_read_stralloc): Likewise.
10342
10343         * target.c: Include "gdb/fileio.h".
10344         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10345         (default_fileio_target): New function.
10346         (target_fileio_open): Likewise.
10347         (target_fileio_pwrite): Likewise.
10348         (target_fileio_pread): Likewise.
10349         (target_fileio_close): Likewise.
10350         (target_fileio_unlink): Likewise.
10351         (target_fileio_close_cleanup): Likewise.
10352         (target_fileio_read_alloc_1): Likewise.
10353         (target_fileio_read_alloc): Likewise.
10354         (target_fileio_read_stralloc): Likewise.
10355
10356         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10357         <fcntl.h>, and <unistd.h>.
10358         (inf_child_fileio_open_flags_to_host): New function.
10359         (inf_child_errno_to_fileio_error): Likewise.
10360         (inf_child_fileio_open): Likewise.
10361         (inf_child_fileio_pwrite): Likewise.
10362         (inf_child_fileio_pread): Likewise.
10363         (inf_child_fileio_close): Likewise.
10364         (inf_child_fileio_unlink): Likewise.
10365         (inf_child_target): Install to_fileio routines.
10366
10367         * remote.c (init_remote_ops): Install to_fileio routines.
10368
10369 2012-01-20  Pedro Alves  <palves@redhat.com>
10370             Ulrich Weigand  <ulrich.weigand@linaro.org>
10371
10372         * remote.c (remote_multi_process_p): Only check for multi-process
10373         protocol feature, do not check for extended protocol.
10374         (remote_supports_multi_process): Check for extended protocol here.
10375         (set_general_process): Likewise.
10376         (extended_remote_kill): Likewise.
10377         (remote_pid_to_str): Likewise.
10378         (remote_query_supported): Always query multiprocess mode.
10379
10380 2012-01-20  Pedro Alves  <palves@redhat.com>
10381             Ulrich Weigand  <ulrich.weigand@linaro.org>
10382
10383         * inferior.h (struct inferior): Add fake_pid_p.
10384         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10385         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10386         magic_null_ptid since the remote side doesn't provide a real PID.
10387
10388 2012-01-19  Tom Tromey  <tromey@redhat.com>
10389
10390         * NEWS: Combine the two Python sections.
10391
10392 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10393
10394         * target.h (target_close): Update comment on the target's unpush state.
10395
10396 2012-01-19  Pedro Alves  <palves@redhat.com>
10397
10398         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10399         linux_nat_async directly instead of going through the target
10400         vector.
10401         * target.c (unpush_target): Close target after unpushing it, not
10402         before.
10403
10404 2012-01-19  Gary Benson  <gbenson@redhat.com>
10405
10406         * mdebugread.c (sort_blocks): Replace integer constants with ones
10407         derived from FIRST_LOCAL_BLOCK.
10408
10409 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10410             Jan Kratochvil  <jan.kratochvil@redhat.com>
10411
10412         PR gdb/9538
10413         * symfile.c (find_separate_debug_file): New function.
10414         (terminate_after_last_dir_separator): Likewise.
10415         (find_separate_debug_file_by_debuglink): Also try realpath.
10416         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10417         * configure: Regenerate.
10418         * config.in: Regenerate.
10419
10420 2012-01-18  Doug Evans  <dje@google.com>
10421
10422         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10423         (main.o): Remove rule.
10424         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10425         (--with-sysroot): Rewrite.
10426         * configure: Regenerate.
10427         * config.in: Regenerate.
10428
10429 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10430
10431         * parse.c (initialize_expout): New function.
10432         (reallocate_expout): Likewise.
10433         (parse_exp_in_context): Use `initialize_expout' and
10434         `reallocate_expout' when appropriate.
10435
10436 2012-01-18  Pedro Alves  <palves@redhat.com>
10437
10438         * record.c (struct record_breakpoint, record_breakpoint_p)
10439         (record_breakpoints): New.
10440         (record_insert_breakpoint, record_remove_breakpoint): Manage
10441         record breakpoints list.  Only remove breakpoints from the
10442         inferior if they had been inserted there in the first place.
10443
10444 2012-01-17  Doug Evans  <dje@google.com>
10445
10446         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10447         if we know we don't have a file name to look for.
10448
10449 2012-01-17  Pedro Alves  <palves@redhat.com>
10450
10451         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10452         the frame's stop reason is UNWIND_UNAVAILABLE.
10453
10454 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10455
10456         Fix compilation error.
10457         * m2-exp.y (yyerror): Use ANSI C prototype.
10458
10459 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10460
10461         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10462         (growbuf_by_size): Likewise.
10463         (yyerror): Likewise.
10464         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10465         (modblock): Remove variable (was #if 0'ed).
10466         (parse_number): Convert prototype from K&R to ANSI C.
10467         (yyerror): Likewise.
10468         * objc-exp.y (parse_number): Likewise.
10469         (yyerror): Likewise.
10470         (yylex): Remove #if 0'ed code.
10471         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10472         (yyerror): Likewise.
10473
10474 2012-01-16  Tom Tromey  <tromey@redhat.com>
10475
10476         * NEWS: Add item.
10477         * symtab.h (compare_filenames_for_search): Declare.
10478         * symtab.c (compare_filenames_for_search): New function.
10479         (iterate_over_some_symtabs): Use it.
10480         * symfile.h (struct quick_symbol_functions)
10481         <map_symtabs_matching_filename>: Change spec.
10482         * psymtab.c (partial_map_symtabs_matching_filename): Use
10483         compare_filenames_for_search.  Update for new spec.
10484         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10485         compare_filenames_for_search.  Update for new spec.
10486         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10487
10488 2012-01-16  Tom Tromey  <tromey@redhat.com>
10489
10490         PR python/13281:
10491         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10492         (struct main_type) <flag_flag_enum>: New field.
10493         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10494         * NEWS: Add entries.
10495         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10496         enums.
10497         * python/lib/gdb/printing.py (_EnumInstance): New class.
10498         (FlagEnumerationPrinter): Likewise.
10499
10500 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10501
10502         * breakpoint.c (create_sals_from_address_default): New function.
10503         (create_breakpoints_sal_default): Likewise.
10504         (decode_linespec_default): Likewise.
10505         (is_marker_spec): Removed.
10506         (strace_marker_p): New function.
10507         (init_breakpoint_sal): Using `strace_marker_p' instead of
10508         `is_marker_spec'.
10509         (create_breakpoint): Call method `create_sals_from_address' from
10510         breakpoint_ops, replacing code that created SALs conditionally
10511         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10512         replacing code that created breakpoints conditionally on the type
10513         wanted.
10514         (base_breakpoint_create_sals_from_address): New function.
10515         (base_breakpoint_create_breakpoints_sal): Likewise.
10516         (base_breakpoint_decode_linespec): Likewise.
10517         (base_breakpoint_ops): Add methods
10518         `base_breakpoint_create_sals_from_address',
10519         `base_breakpoint_create_breakpoints_sal' and
10520         `base_breakpoint_decode_linespec'.
10521         (bkpt_create_sals_from_address): New function.
10522         (bkpt_create_breakpoints_sal): Likewise.
10523         (bkpt_decode_linespec): Likewise.
10524         (tracepoint_create_sals_from_address): Likewise.
10525         (tracepoint_create_breakpoints_sal): Likewise.
10526         (tracepoint_decode_linespec): Likewise.
10527         (strace_marker_create_sals_from_address): Likewise.
10528         (strace_marker_create_breakpoints_sal): Likewise.
10529         (strace_marker_decode_linespec): Likewise.
10530         (strace_marker_breakpoint_ops): New variable.
10531         (addr_string_to_sals): Remove `marker_spec'.  Call method
10532         `decode_linespec' from breakpoint_ops, replacing code that decoded
10533         an address string into a SAL.  Use `strace_marker_p' instead of
10534         `marker_spec'.
10535         (strace_command): Decide whether we are dealing with a static
10536         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10537         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10538         * breakpoint.h (linespec_result, linespec_sals): New forward
10539         declarations.
10540         (breakpoint_ops) <create_sals_from_address>,
10541         <create_breakpoints_sal>, <decode_linespec>: New methods.
10542
10543 2012-01-14  Doug Evans  <dje@google.com>
10544
10545         * NEWS: Update text for "maint set python print-stack".
10546         It is deprecated in gdb 7.4 and deleted in 7.5.
10547
10548 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10549
10550         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10551         including curses.h.
10552
10553 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10554
10555         * configure: Regenerate.
10556         * config.in: Regenerate.
10557
10558 2012-01-12  Keith Seitz  <keiths@redhat.com>
10559
10560         PR mi/10586
10561         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10562         (ANONYMOUS_UNION_NAME): Define.
10563         (is_path_expr_parent): New function.
10564         (get_path_expr_parent): New function.
10565         (is_anonymous_child): New function.
10566         (create_child_with_value): If the child is anonymous and without
10567         a name, assign an object name to it.
10568         (c_describe_child): Use get_path_expr_parent to determine
10569         the parent expression.
10570         If there field represents an anonymous struct or union and
10571         has no name, set an appropriate display name and expression.
10572         (cplus_describe_child): Likewise.
10573
10574 2012-01-12  Pedro Alves  <palves@redhat.com>
10575
10576         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10577         available when %ebp is found to be zero (outermost).
10578
10579 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10580
10581         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10582         an internal gdb_static_assert.
10583         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10584
10585 2012-01-11  Tom Tromey  <tromey@redhat.com>
10586
10587         PR gdb/9598:
10588         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10589         catch" and "catch throw".
10590
10591 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10592
10593         * blockframe.c (block_innermost_frame): Start search from selected
10594         frame, if present, or otherwise the current frame.
10595
10596         * c-exp.y (variable): Update innermost_block for
10597         'block COLONCOLON NAME' clause.
10598         * m2-exp.y (variable): Ditto.
10599         * objc-exp.y (variable): Ditto.
10600
10601 2012-01-10  Tom Tromey  <tromey@redhat.com>
10602
10603         PR python/13199:
10604         * python/python.c (finish_python_initialization): Set sys.argv.
10605
10606 2012-01-10  Doug Evans  <dje@google.com>
10607
10608         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10609         "want_line_info".  All callers updated.
10610         (dwarf_decode_lines_1): New function.
10611         (handle_DW_AT_stmt_list): Add function comment.
10612         New arg "want_line_info".  All callers updated.
10613         (read_file_scope,read_type_unit_scope): Move comment from
10614         handle_DW_AT_stmt_list to here.
10615
10616 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10617
10618         Fix regression after libiberty/ update for GCC PR 6057 and others.
10619         * c-exp.y (operator) <OPERATOR DELETE>
10620         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10621         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10622         (make_builtin_type, make_name): New variable i, add gdb_assert.
10623         (operator) <OPERATOR NEW>: Update ARGS to 3.
10624         (operator) <OPERATOR DELETE>: Add trailing space.
10625         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10626         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10627         * cp-support.c (cp_canonicalize_string): Check NULL from
10628         cp_comp_to_string, call warning and return.
10629
10630 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10631
10632         Fix duplicate .o files after omitting libbfd.a.
10633         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10634         (SFILES): Add corelow.c.
10635         (COMMON_OBS): Add corelow.o.
10636         (ALLDEPFILES): Remove corelow.c.
10637         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10638         * config/alpha/alpha-osf3.mh: Likewise.
10639         * config/alpha/fbsd.mh: Likewise.
10640         * config/arm/nbsdaout.mh: Likewise.
10641         * config/arm/nbsdelf.mh: Likewise.
10642         * config/i386/i386gnu.mh: Likewise.
10643         * config/ia64/hpux.mh: Likewise.
10644         * config/ia64/linux.mh: Likewise.
10645         * config/m32r/linux.mh: Likewise.
10646         * config/m68k/linux.mh: Likewise.
10647         * config/mips/irix5.mh: Likewise.
10648         * config/mips/irix6.mh: Likewise.
10649         * config/pa/hpux.mh: Likewise.
10650         * config/pa/linux.mh: Likewise.
10651         * config/powerpc/aix.mh: Likewise.
10652         * config/sparc/linux.mh: Likewise.
10653         * config/sparc/linux64.mh: Likewise.
10654         * config/sparc/sol2.mh: Likewise.
10655         * config/vax/vax.mh: Likewise.
10656         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10657         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10658         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10659         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10660         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10661         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10662         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10663         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10664         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10665         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10666         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10667         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10668         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10669         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10670         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10671         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10672         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10673         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10674         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10675         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10676         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10677         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10678         corelow.o from gdb_target_obs.
10679         * corefile.c (core_target): Update the comment on NULL value.
10680         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10681         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10682         MATCHES.  Drop YUMMY set on NULL.
10683         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10684         reclaim CORE_DATA if it is already NULL.
10685
10686 2012-01-09  Doug Evans  <dje@google.com>
10687
10688         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10689         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10690
10691 2012-01-09  Keith Seitz  <keiths@redhat.com>
10692
10693         * breakpoint.c (wrapper.h): Don't include.
10694
10695 2012-01-09  Keith Seitz  <keiths@redhat.com>
10696
10697         * Makefile.in (SFILES): Remove wrapper.c.
10698         (HFILES_NO_SRCDIR): Remove wrapper.h.
10699         (COMMON_OBS): Remove wrapper.o.
10700         * cli/cli-interp.c: Don't inlude wrapper.h.
10701         * corelow.c: Likewise.
10702         (core_open): Replace gdb_target_find_new_threads with
10703         TRY_CATCH around target_find_new_threads.
10704         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10705         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10706         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10707         evaluate_expression.
10708         (varobj_set_value): Likewise for evaluate_expression and
10709         value_assign.
10710         (install_new_variable): Likewise for value_fetch_lazy.
10711         (adjust_value_for_child_access): Likewise for value_ind.
10712         (c_describe_child): Likewise for value_subscript and
10713         value_ind.
10714         (c_value_of_root): Likewise for evaluate_expression.
10715         * wrapper.c: Remove.
10716         * wrapper.h: Remove.
10717
10718 2012-01-09  Doug Evans  <dje@google.com>
10719
10720         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10721         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10722         "abfd" args with "section".  All callers updated.
10723         Error checking code moved ...
10724         (error_check_comp_unit_head): ... here.  New function.
10725         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10726         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10727         (create_debug_types_hash_table): Simplify by using
10728         read_and_check_type_unit_head.
10729
10730         * parser-defs.h (namecopy): Delete.
10731         * parse.c (namecopy, namecopy_size): Move into copy_name.
10732
10733 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10734
10735         Partially fix duplicate .o files after omitting libbfd.a.
10736         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10737         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10738         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10739         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10740         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10741         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10742         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10743
10744 2012-01-09  Pedro Alves  <palves@redhat.com>
10745
10746         * MAINTAINERS: Update my email address.
10747
10748 2012-01-08  Doug Evans  <dje@google.com>
10749
10750         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10751         n_type_units.  Rename type_comp_units to all_type_units.
10752         All uses updated.
10753         (add_signatured_type_cu_to_table): Renamed from
10754         add_signatured_type_cu_to_list.  All callers updated.
10755
10756         * gdbtypes.h (struct cplus_struct_type): Delete member
10757         nfn_fields_total.  All uses removed.
10758
10759 2012-01-06  Doug Evans  <dje@google.com>
10760
10761         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10762         to top of file.
10763         (dwarf2_find_comp_unit): Delete.
10764         (process_psymtab_comp_unit): Make result "void".
10765         Delete args buffer, info_ptr, buffer_size, and replace with
10766         "section".  All callers updated.
10767         (dwarf2_build_psymtabs_hard): Simplify.
10768
10769 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10770             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10771
10772         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10773         before `struct gdb_exception'.
10774         * breakpoint.c (update_global_location_list_nothrow)
10775         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10776         * cp-abi.c (value_rtti_type): Likewise.
10777         * cp-support.c (cp_validate_operator): Likewise.
10778         * infrun.c (insert_exception_resume_breakpoint)
10779         (check_exception_resume, keep_going): Likewise.
10780         * mi-interp.c (mi_breakpoint_created)
10781         (mi_breakpoint_modified): Likewise.
10782         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10783         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10784         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10785
10786 2012-01-05  Doug Evans  <dje@google.com>
10787
10788         * dwarf2read.c (statement_prologue): Delete, unused.
10789
10790         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10791         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10792
10793         * dwarf2read.c (comp_unit_header): Delete, unused.
10794
10795 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10796
10797         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10798         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10799
10800 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10801
10802         * infrun.c (normal_stop): Don't skip calling the normal_stop
10803         observers if the thread was doing a multi-step, but stopped for
10804         some reason other than stepping.
10805
10806 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
10807
10808         * cli/cli-decode.h: Add comments.
10809         (CMD_LIST_AMBIGUOUS): Moved to command.h
10810         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10811         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10812         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10813         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10814         (add_com, add_com_alias, add_info, add_info_alias)
10815         (complete_on_cmdlist, complete_on_enum, help_list): Remove
10816         declarations.
10817         * command.h: Add and adjust comments.
10818         (CMD_LIST_AMBIGUOUS): Moved here.
10819         (help_cmd, help_cmd_list): Delete declarations.
10820
10821 2012-01-04  Doug Evans  <dje@google.com>
10822
10823         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10824         All callers updated.
10825         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10826         Replace all arguments with "per_cu".  All callers updated.
10827
10828         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10829
10830         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10831         New arg "per_cu".  All callers updated.
10832
10833         Delete #if 0'd out code.
10834         * language.c (binop_result_type): Delete.
10835         (simple_type, ordered_type, same_type, integral_type): Delete.
10836         (numeric_type, character_type, string_type, boolean_type): Delete.
10837         (float_type, structured_type): Delete.
10838         * language.h: Update.
10839
10840 2012-01-04  Tom Tromey  <tromey@redhat.com>
10841
10842         * python/py-value.c (valpy_binop): Initialize 'res_val'.
10843
10844 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10845
10846         * corefile.c (close_exec_file): Delete.
10847         (reopen_exec_file): Remove commented out code that seems related
10848         to close_exec_file, which is being deleted here.
10849         * inferior.h (close_exec_file): Delete.
10850         * fork-child.c (fork_inferior): Remove call to fork_inferior.
10851
10852 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10853
10854         * ada-lang.c: #include "cli/cli-utils.h".
10855         (get_selections): Use skip_spaces.
10856         (ada_get_next_arg): Use skip_spaces and skip_to_space.
10857         (catch_ada_exception_command_split): Use skip_spaces.
10858         (ada_decode_assert_location): Likewise.
10859
10860 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10861
10862         * linespec.c (decode_line_internal): Check for C++ or Java
10863         compound constructs only if the current language is C, C++
10864         or Java.
10865
10866 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10867
10868         Revert:
10869         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10870                     Joel Brobecker  <brobecker@adacore.com>
10871         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10872         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10873         3 times.
10874         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10875         fall through into AT_ENTRY_POINT.
10876         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10877         DUMMY_ADDR with it.
10878         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10879         PPC_INSN_SIZE skip to 3 times.
10880
10881 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10882
10883         * linespec.c (add_minsym): Preserve function descriptors.
10884
10885 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
10886
10887         * breakpoint.c (all_locations_are_pending): Consider locations
10888         in program spaces executing during startup pending as well.
10889
10890 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10891
10892         Copyright year update in most files of the GDB Project.
10893
10894 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10895
10896         * copyright.sh: Delete.
10897         * copyright.py: Rewrite.
10898
10899 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10900
10901         * gnulib/extra/update-copyright: New file, imported from gnulib.
10902
10903 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10904
10905         * README (Copyright and License Notices): New section.
10906
10907 2012-01-03  Tom Tromey  <tromey@redhat.com>
10908
10909         PR python/12533:
10910         * python/py-value.c (valpy_dereference, valpy_get_address
10911         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10912         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10913         (valpy_absolute, valpy_richcompare): Free intermediate values.
10914
10915 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
10916
10917         * ada-lang.c: Reformat the copyright notice.
10918
10919 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10920
10921         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10922         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10923         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10924         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10925         Revert this part of:
10926         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10927         Build gdb directly from *.o files not using libgdb.a.
10928         * Makefile.in (COMMON_OBS): Remove solib-target.o.
10929
10930 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10931
10932         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10933         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10934         Reformat the copyright header.
10935
10936 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10937
10938         Revert this part of:
10939         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10940         Remove the gdbtui binary.
10941         * gdb.c (main): Remove args.interpreter_p initialization.
10942         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10943         * main.h (struct captured_main_args): Remove interpreter_p.
10944
10945 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10946
10947         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10948
10949 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10950
10951         * top.c (print_gdb_version): Update copyright year.
10952
10953 2012-01-02  Yao Qi  <yao@codesourcery.com>
10954
10955         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10956
10957 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10958             Joel Brobecker  <brobecker@adacore.com>
10959
10960         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10961         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10962         3 times.
10963         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10964         fall through into AT_ENTRY_POINT.
10965         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10966         DUMMY_ADDR with it.
10967         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10968         PPC_INSN_SIZE skip to 3 times.
10969
10970 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10971
10972         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10973         the return value.
10974         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10975
10976 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10977
10978         Build gdb directly from *.o files not using libgdb.a.
10979         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10980         (COMMON_OBS): Remove solib-target.o.
10981         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10982         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10983         (LIBGDB_OBS, libgdb.a): Move it above.
10984         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10985         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10986         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10987         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10988         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10989         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10990         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10991         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10992         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10993         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10994         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10995         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10996         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10997         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10998         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10999         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11000         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11001         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11002         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11003         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11004         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11005         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11006         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11007         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11008         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11009         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11010         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11011
11012 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11013
11014         Remove the gdbtui binary.
11015         * .gitignore (/gdbtui): Remove.
11016         * Makefile.in (TUI): Remove.
11017         (SUBDIR_TUI_OBS): Remove tui-main.o.
11018         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11019         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11020         (tui-main.o): Remove.
11021         (all_object_files): Remove tui-main.o.
11022         * NEWS: New note for the gdbtui removal.
11023         * configure: Rebuilt.
11024         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11025         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11026         CONFIG_UNINSTALL respectively.
11027         * gdb.c (main): Remove args.interpreter_p initialization.
11028         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11029         * main.h (struct captured_main_args): Remove interpreter_p.
11030         * tui/tui-main.c: Remove.
11031
11032 2012-01-01  Doug Evans  <dje@google.com>
11033
11034         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11035         (dwarf2_physname, read_import_statement): Ditto.
11036         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11037         (process_structure_scope read_subroutine_type): Ditto.
11038         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11039         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11040         (dwarf2_fetch_die_location_block): Ditto.
11041         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11042
11043         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11044         All callers updated.
11045         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11046         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11047         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11048
11049         * dwarf2read.c (load_cu): Move assert to more useful location.
11050
11051         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11052         All callers updated.
11053
11054         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11055         (dwarf2_elf_names): Minor reformat.
11056         (dwarf2_per_cu_data): Tweak comment.
11057         (dwarf2_read_section): Fix comment.
11058         (create_all_comp_units): Fix comment.
11059         (load_full_comp_unit): Fix comment.
11060         (process_full_comp_unit): Fix comment.
11061         (read_signatured_type): Fix comment.
11062
11063 For older changes see ChangeLog-2011.
11064 \f
11065 Local Variables:
11066 mode: change-log
11067 left-margin: 8
11068 fill-column: 74
11069 version-control: never
11070 coding: utf-8
11071 End: