PR gdb/12796
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
2
3         PR gdb/12796
4         PR gdb/12798
5         PR gdb/12800
6         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
7         AMD64_FTAG_REGNUM.
8         * amd64-tdep.c (amd64_classify): Classify complex types.
9         (amd64_return_value): Handle the COMPLEX_X87 class.
10
11 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
12
13         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
14         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
15
16 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
17
18         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
19         function.
20         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
21         to amd64_windows_auto_wide_charset.
22
23 2012-10-23  Yao Qi  <yao@codesourcery.com>
24
25         * event-top.c (mark_async_signal_handler_wrapper): Remove.
26         * event-top.h: Remove its declaration.
27         (async_request_quit): Call mark_async_signal_handler instead of
28         mark_async_signal_handler_wrapper.
29         (async_do_nothing, async_disconnect): Likewise.
30         (async_stop_sig): Likewise.
31         * remote.c (handle_remote_sigint): Likewise.
32         (handle_remote_sigint_twice): Likewise.
33
34 2012-10-23  Yao Qi  <yao@codesourcery.com>
35
36         * event-top.c (sigint_token, sighup_token): Replace 'void *'
37         with 'static struct async_signal_handler *'.
38         (sighup_token, sigquit_token, sigstp_token): Likewise.
39
40 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
41
42         * gdbarch.sh (function_list): Use 'pstring' when printing
43         a variable which could return NULL.
44         * gdbarch.c: Regenerate.
45
46 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
47             Tom Tromey  <tromey@redhat.com>
48
49         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
50         inneffective if condition by gdb assertion.  Add function
51         description comment.
52
53 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
54
55         * parser-defs.h (struct exp_descriptor): Document constraint
56         on return value for "op_name" callbacks.
57
58 2012-10-18  Tom Tromey  <tromey@redhat.com>
59
60         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
61         * symtab.c (iterate_over_some_symtabs): Constify.
62         * source.h (symtab_to_fullname): Return 'const char *'.
63         * source.c (symtab_to_fullname): Return 'const char *'.
64         * python/py-symtab.c (stpy_fullname): Constify.
65         * cli/cli-cmds.c (edit_command): Constify.
66         * breakpoint.c (print_breakpoint_location)
67         (update_static_tracepoint): Constify.
68
69 2012-10-18  Tom Tromey  <tromey@redhat.com>
70
71         * breakpoint.c (compare_breakpoints): Fix comparison.
72
73 2012-10-18  Tom Tromey  <tromey@redhat.com>
74
75         * valprint.c (generic_emit_char, generic_printstr): Pass size of
76         gdb_wchar_t to convert_between_encodings.
77
78 2012-10-17  Yao Qi  <yao@codesourcery.com>
79
80         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
81         more parameter 'inferior'.
82         * corefile.c (write_memory_with_notification): Caller update.
83
84         * mi/mi-cmd-var.c: Include "mi-main.h".
85         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
86         to 1 and restore it later.
87         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
88         and "data-write-memory-bytes.
89         * mi/mi-interp.c: Include objfiles.h.
90         (mi_interpreter_init): Call observer_attach_memory_changed.
91         (mi_memory_changed): New.
92         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
93         New field.
94
95         * NEWS: Mention new MI notification "memory-changed".
96
97 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
98
99         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
100
101 2012-10-15  Doug Evans  <dje@google.com>
102
103         New option -nh: inhibit loading of ~/.gdbinit.
104         * NEWS: Mention -nh.
105         * main.c (captured_main): Recognize and process -nh.
106         (print_gdb_help): Mention -nh.
107         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
108
109 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
110
111         PR backtrace/14646
112         PR gdb/14647
113         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
114         pc_regnum_from_eax.
115         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
116         nor pc_regnum_from_eax.
117         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
118         nor pc_regnum_from_eax.
119
120 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
121
122         Fix entry values resolving in inlined frames.
123         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
124         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
125         entries of FRAME.
126
127 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
128
129         * configure.ac: Build with -DMS_WIN64 if building with Python
130         enabled using GCC on amd64-windows.
131         * configure: Regenerate.
132
133 2012-10-15  Tom Tromey  <tromey@redhat.com>
134
135         PR python/14635:
136         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
137         to Py_None.
138
139 2012-10-15  Tom Tromey  <tromey@redhat.com>
140
141         PR python/14634:
142         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
143
144 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
145
146         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
147         reset thread numbering back to 1.
148
149 2012-10-11  Doug Evans  <dje@google.com>
150
151         PR breakpoints/14643.
152         * linespec.c (struct ls_parser): New member keyword_ok.
153         (linespec_lexer_lex_string): Add comment.
154         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
155         for one.
156         (parse_linespec): Set keyword_ok.
157
158 2012-10-10  Doug Evans  <dje@google.com>
159
160         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
161         "0x" prefix on address in log message.
162
163         * dwarf2read.c (read_1_byte): Add const to buf parameter.
164         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
165         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
166         (lookup_dwo_file): Add const to dwo_name parameter.
167         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
168
169 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
170
171         Fix crash during stepping on ppc32.
172         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
173         SYM.
174
175 2012-10-03  Doug Evans  <dje@google.com>
176
177         PR symtab/14601
178         * buildsym.c (buildsym_init): Reset using_directives to NULL.
179
180 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
181
182         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
183         output and use uint32_t not long to ensure 4 byte size.
184
185 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
186
187         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
188         unref'ed it.
189
190 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
191
192         * target.c (simple_search_memory): Include access length in
193         warning message.
194
195 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
196             Edjunior Machado  <emachado@linux.vnet.ibm.com>
197
198         PR gdb/13989
199         * solib.c (solib_find): Prevent GDB from loading native libraries when
200         debugging a cross-target corefile.
201
202 2012-09-28  selven  <pcthegreat@gmail.com>
203
204         Make definition match declaration.
205
206         * regcache.c (regcache_register_status): Change return type to
207         enum register_status.
208
209 2012-09-28  Yao Qi  <yao@codesourcery.com>
210
211         * mi/mi-main.c (mi_cmd_data_write_memory): Call
212         write_memory_with_notification instead of write_memory.
213         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
214         instead of target_write_memory.
215
216 2012-09-28  Yao Qi  <yao@codesourcery.com>
217
218         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
219         when the length of content is not an even number.
220
221 2012-09-27  Tom Tromey  <tromey@redhat.com>
222
223         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
224         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
225
226 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
227
228         * sol-thread.c (sol_thread_fetch_registers)
229         (sol_thread_store_registers): Delete commented out code.
230
231 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
232
233         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
234         Move these functions to sparc-sol-thread.c.
235         * sparc-sol-thread.c: New file.
236         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
237         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
238         configurations.
239         * configure: Regenerate.
240
241 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
242
243         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
244         Remove commented-out code.
245
246 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
247
248         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
249         Enable this code for sparc hosts only.
250
251 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
252
253         * procfs.h (procfs_find_LDT_entry): Add declaration.
254         * sol-thread.c (ps_lgetLDT): Delete local declaration of
255         function procfs_find_LDT_entry.
256
257 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
258
259         * procfs.c (proc_get_LDT_entry): Make static.
260
261 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
262
263         * procfs.c (proc_find_memory_regions): Fix declaration.
264
265 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
266
267         * amd64-tdep.c (amd64_return_value): Revert previous change
268         that used TYPE_LENGTH directly.
269         * bfin-tdep.c (bfin_extract_return_value): Likewise.
270         (bfin_store_return_value): Likewise.
271         * cris-tdep.c (cris_store_return_value): Likewise.
272         (cris_extract_return_value): Likewise.
273         * h8300-tdep.c (h8300_extract_return_value): Likewise.
274         * hppa-tdep.c (hppa64_return_value): Likewise.
275         * lm32-tdep.c (lm32_store_return_value): Likewise.
276         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
277         * spu-tdep.c (spu_value_from_register): Likewise.
278         * vax-tdep.c (vax_return_value): Likewise.
279
280 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
281
282         * gdbtypes.c (lookup_array_range_type): Expand parameters
283         LOW_BOUND and HIGH_BOUND to LONGEST.
284         (lookup_string_range_type): Likewise.
285         * gdbtypes.h (lookup_array_range_type): Likewise.
286         (lookup_string_range_type): Likewise.
287         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
288         Expand HIGHBOUND to ssize_t.
289         (value_string): Likewise.
290         * value.h (value_cstring): Expand parameter LEN to ssize_t.
291         (value_string): Likewise.
292
293 2012-09-27  Yao Qi  <yao@codesourcery.com>
294
295         PR breakpoints/13898
296         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
297         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
298         per breakpoint type.
299
300 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
301
302         * procfs.c: Add gdb_bfd header.
303         * rs6000-nat.c: Likewise.
304         * solib-pa64.c: Likewise.
305         * spu-linux-nat.c: Likewise.
306         * windows-nat.c: Likewise.
307
308 2012-09-26  Tom Tromey  <tromey@redhat.com>
309
310         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
311
312 2012-09-26  Tom Tromey  <tromey@redhat.com>
313
314         * dwarf2read.c (mark_common_block_symbol_computed): New function.
315         (read_common_block): Handle child DIEs with
316         DW_AT_data_member_location.
317         (new_symbol_full): Add special case for common blocks.
318
319 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
320             Tom Tromey  <tromey@redhat.com>
321
322         * dwarf2read.c (read_common_block): Rewrite.
323         (new_symbol_full): Handle DW_TAG_common_block.
324         * f-lang.c (head_common_list, find_common_for_function):
325         Remove.
326         * f-lang.h (struct common_entry, struct saved_f77_common,
327         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
328         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
329         BLANK_COMMON_NAME_LOCAL): Remove.
330         (struct common_block): New.
331         * f-valprint.c (list_all_visible_commons): Remove.
332         (info_common_command_for_block): New function.
333         (info_common_command): Use it.
334         * stack.c (iterate_over_block_locals): Special case for
335         COMMON_BLOCK_DOMAIN.
336         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
337         constant.
338         (struct general_symbol_info) <value.common_block>: New field.
339         (SYMBOL_VALUE_COMMON_BLOCK): New define.
340
341 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
342             Tom Tromey  <tromey@redhat.com>
343
344         * f-lang.c (allocate_saved_bf_node,
345         allocate_saved_function_node, allocate_saved_f77_common_node,
346         allocate_common_entry_node, tail_common_list, current_common,
347         saved_bf_list, saved_bf_list_end, current_head_bf_list,
348         tmp_bf_ptr, add_common_block, add_common_entry,
349         find_first_common_named, patch_common_entries,
350         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
351         global_remote_debug, get_bf_for_fcn, saved_function_list,
352         saved_function_list_end, clear_function_list, struct saved_fcn,
353         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
354         SAVED_BF, SAVED_BF_PTR): Remove.
355         * f-lang.h (tail_common_list, current_common,
356         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
357         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
358         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
359         real_main_c_value): Remove.
360         * f-valprint.c (there_is_a_visible_common_named): Remove.
361
362 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
363
364         * breakpoint.c (update_global_location_list): Ignore previous
365         duplicate status of a breakpoint when starting a new scan for
366         duplicate breakpoints.
367
368 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
369         PR breakpoints/14419
370         * arm-tdep.c (arm_skip_prologue): Extending producer check to
371         support LLVM compiler.
372
373 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
374
375         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
376         * bfin-tdep.c (bfin_extract_return_value): Likewise.
377         (bfin_store_return_value): Likewise.
378         * cris-tdep.c (cris_store_return_value): Likewise.
379         (cris_extract_return_value): Likewise.
380         * h8300-tdep.c (h8300_extract_return_value): Likewise.
381         * hppa-tdep.c (hppa64_return_value): Likewise.
382         * lm32-tdep.c (lm32_store_return_value): Likewise.
383         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
384         * spu-tdep.c (spu_value_from_register): Likewise.
385         * vax-tdep.c (vax_return_value): Likewise.
386
387 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
388
389         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
390         parameter LEN to ssize_t.
391
392 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
393
394         * ada-valprint.c (ada_val_print_1): Eliminate single-use
395         variable LEN.
396         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
397         directly.
398         (alpha_store_return_value): Likewise.
399         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
400         (amd64_push_arguments): Likewise.
401         * ax-gdb.c (gen_trace_static_fields): Likewise.
402         (gen_traced_pop): Likewise.
403         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
404         * breakpoint.c (update_watchpoint): Likewise.
405         * findcmd.c (parse_find_args): Use local variable for type
406         instead of length.
407         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
408         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
409         (h8300_store_return_value): Likewise.
410         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
411         Use i386_darwin_arg_type_alignment directly.
412         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
413         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
414         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
415         (m68hc11_extract_return_value): Likewise.
416         * mep-tdep.c (mep_push_dummy_call): Likewise.
417         * printcmd.c (float_type_from_length): Likewise.
418         * s390-tdep.c (s390_value_from_register): Likewise.
419         * stack.c (read_frame_arg): Likewise.
420         * tracepoint.c (encode_actions_1): Likewise.
421         * valops.c (value_fetch_lazy): Use local variable for type
422         instead of length.  Use TYPE_LENGTH directly.
423         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
424
425 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
426
427         * symtab.c (skip_prologue_sal): Fix typo in comment.
428
429 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
430
431         * linespec.c (create_sals_line_offset): Fix typo in comment.
432
433 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
434
435         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
436         use plongest to print the array size.
437
438 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
439
440         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
441         * p-valprint.c (pascal_type_print_base): Likewise.
442
443 2012-09-22  Yao Qi  <yao@codesourcery.com>
444
445         * remote.c (remote_get_trace_status): Remove setting default
446         values of fields of 'ts'.
447
448 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
449
450         Fix internal error on canonicalization of clang types.
451         * cp-name-parser.y (operator): New comment at make_operator call for
452         new, delete, new[] and delete[].
453         (exp): Use "sizeof ".  Add new comment at make_operator call.
454
455 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
456
457         Fix disassemble without parameters in tailcall frame.
458         * cli/cli-cmds.c (disassemble_current_function): Use
459         get_frame_address_in_block.
460
461 2012-09-21  Tom Tromey  <tromey@redhat.com>
462
463         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
464         TYPE_CODE_UNION>: Unify, removing a goto.
465
466 2012-09-21  Tom Tromey  <tromey@redhat.com>
467
468         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
469
470 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
471
472         * findvar.c (read_frame_register_value): Mark the result value as
473         optimized out if any of the input registers have been optimized out.
474
475 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
476
477         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
478
479 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
480
481         * eval.c (evaluate_subexp_standard): Eliminate single-use
482         variable LOWER.
483
484 2012-09-21  Yao Qi  <yao@codesourcery.com>
485
486         * mi/mi-interp.c: Declare mi_record_changed.
487         (mi_interpreter_init): Call observer_attach_record_changed.
488         (mi_record_changed): New.
489         * record.c (record_open): Call observer_notify_record_changed.
490         (cmd_record_stop): Call observer_notify_record_changed.
491         * NEWS: Mention it.
492
493 2012-09-20  Tom Tromey  <tromey@redhat.com>
494
495         * NEWS: Update.
496         * python/python.c (finalize_python): New function.
497         (_initialize_python): Make a final cleanup.
498
499 2012-09-19  Doug Evans  <dje@google.com>
500
501         * buildsym.h (param_symbols): Delete, unused.
502         (context_stack): Delete member "params", unused.
503         * buildsym.c (push_context): Update.
504         * dwarf2read.c (read_func_scope): Update.
505
506 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
507
508         * sh-tdep.c (sh_register_convert_to_virtual)
509         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
510         all callers.  Just do a memcpy if not the little-endian case.
511
512         * h8300-tdep.c (h8300_gdbarch_init): Invoke
513         set_gdbarch_double_format and set_gdbarch_long_double_format.
514         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
515         set_gdbarch_double_format.
516         * sh-tdep.c (sh_gdbarch_init): Likewise.
517
518         * NEWS: Document the removal of SH's 'regs' command.
519         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
520         command.
521
522 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
523
524         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
525         `jump'.
526
527 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
528
529         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
530         language when iterating over symbols.
531
532 2012-09-18  Yao Qi  <yao@codesourcery.com>
533
534         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
535         (mi_interpreter_init): Call observer_attach_tsv_created and
536         observer_attach_tsv_deleted.
537         (mi_tsv_created, mi_tsv_deleted): New.
538         * tracepoint.c (delete_trace_state_variable): Call
539         observer_notify_tsv_deleted.
540         (trace_variable_command): Call observer_notify_tsv_created.
541         (delete_trace_variable_command): Call
542         observer_notify_tsv_deleted.
543         (create_tsv_from_upload): Call observer_notify_tsv_created.
544         * NEWS: Mention it.
545
546 2012-09-18  Yao Qi  <yao@codesourcery.com>
547
548         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
549         if traceframe changed.
550         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
551         "trace-find".
552         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
553         (mi_interpreter_init): Hook mi_traceframe_changed to observer
554         'traceframe_changed'.
555         (mi_traceframe_changed): New.
556         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
557         New field.
558         * NEWS: Mention the new MI notification.
559
560 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
561
562         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
563
564 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
565
566         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
567         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
568         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
569         Extend code also for PaX support.  Convert all gdb_assert to warning
570         calls.
571
572 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
573
574         Implement auto-load user conveniences suggested by Doug Evans.
575         * auto-load.c: Include top.h.
576         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
577         (_initialize_auto_load): New variable scripts_directory_help.  Mention
578         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
579         scripts-directory.  Document in online help one can use also files for
580         set auto-load safe-path.
581         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
582         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
583
584 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
585
586         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
587         of LEN.
588
589 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
590
591         * m2-valprint.c (m2_print_array_contents): Eliminate variable
592         ELTLEN and use TYPE_LENGTH directly.
593         (m2_val_print): Likewise.
594         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
595         variable LEN and use TYPE_LENGTH directly.
596         (m68k_svr4_store_return_value): Likewise.
597         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
598         ARGLEN and use TYPE_LENGTH directly.
599         (mips_o64_push_dummy_call): Likewise.
600         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
601         variable LENGTH and use TYPE_LENGTH directly.
602         (s390_function_arg_float): Likewise.
603         (s390_function_arg_integer): Likewise.
604         (s390_push_dummy_call): Likewise.
605         (s390_return_value_convention): Likewise.
606         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
607         TYPE_LENGTH directly.
608
609 2012-09-17  Yao Qi  <yao@codesourcery.com>
610
611         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
612         Update comment to add_setshow_integer_cmd.
613         * cli/cli-setshow.c (do_set_command): Handle case
614         'var_zuinteger_unlimited'.
615         (do_show_command): Likewise.
616         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
617         for command 'remotetimeout'.
618         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
619         to var_integer.
620         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
621         for command 'set listsize'.
622
623 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
624
625         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
626         variable LEN.
627
628 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
629
630         PR 14119
631         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
632         (frame_pop): Drop also TAILCALL_FRAME frames.
633         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
634
635 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
636             Pedro Alves  <palves@redhat.com>
637
638         PR 14548
639         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
640         function start if we are already at function start.  Both for
641         reverse-next and for reverse-step into function without line number
642         info.
643
644 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
645
646         Code cleanup - rename 'inline' depth to 'artificial' depth.
647         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
648         frame_id_artificial_p, extend the comment.
649         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
650         * frame.c (fprint_frame_id): Rename at a user, change debug output
651         text to "artificial=".
652         (skip_inlined_frames): Rename to ...
653         (skip_artificial_frames): ... here.  Extend the comment.
654         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
655         (frame_id_inlined_p): Rename to ...
656         (frame_id_artificial_p): ... here.  Rename at a user.
657         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
658         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
659         at a user.
660         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
661         Extend the comment.
662         (frame_id_inlined_p): Rename to ...
663         (frame_id_artificial_p): ... here.
664         * inline-frame.c (inline_frame_this_id): Rename at a user.
665
666 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
667
668         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
669         vector variables using vector_size syntax rather than array
670         syntax.
671
672 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
673
674         * valarith.c (value_concat): Replace unsafe ALLOCA with
675         XMALLOC/XFREE.
676
677 2012-09-14  Pedro Alves  <palves@redhat.com>
678
679         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
680
681 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
682
683         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
684         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
685         data-directory as appropriate.
686
687 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
688
689         * printcmd.c (ui_printf): Eliminate single-use variable
690         PARAM_LEN.
691
692 2012-09-14  Yao Qi  <yao@codesourcery.com>
693             Pedro Alves  <palves@redhat.com>
694
695         * valops.c (value_assign): Move observer_notify_target_changed
696         below to replace reinit_frame_cache.
697
698 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
699
700         Refactor Python "gdb" module into a proper Python package, by
701         introducing a new "_gdb" module for code implemented in C, and
702         using reload/__import__ instead of exec.
703         * python/lib/gdb/__init__.py: Import * from _gdb.
704         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
705         prompt_hook, sys.argv): Moved from finish_python_initialization.
706         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
707         (packages, auto_load_packages): New list and function replacing
708         module_dict and auto-loading code, using __file__ instead of
709         gdb.PYTHONDIR and reload/__import__ instead of exec.
710         (GdbSetPythonDirectory): Replacing function of the same name
711         from finish_python_initialization, using reload/__import__ instead
712         of exec, as well as call auto_load_packages.
713         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
714         gdb_python_module and not gdb_module.
715         * python/python-internal.h (gdb_python_module): Declare.
716         * python/python.c (gdb_python_module): New global.
717         (before_prompt_hook): Check gdb_python_module and not gdb_module.
718         (_initialize_python): Rename gdb module to _gdb.
719         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
720         (finish_python_initialization): Move Python code to
721         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
722         __main__.
723
724 2012-09-13  Pedro Alves  <palves@redhat.com>
725
726         * Makefile.in (COMMON_OBS): Add registry.o.
727         * registry.c: New file.
728         * registry.h (struct registry_container): Declare.
729         (registry_data_callback): New typedef.
730         (struct registry_data, struct registry_data_registration, struct
731         registry_data_registry): New type.
732         (register_data_with_cleanup, registry_alloc_data)
733         (registry_callback_adaptor, registry_clear_data)
734         (registry_container_free_data, registry_set_data, registry_data):
735         Declare.
736         (DEFINE_REGISTRY): Refactor structures and functions as shims over
737         the new common structures and functions.
738         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
739         callback typedefs.
740
741 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
742
743         * remote.c (remote_insert_hw_breakpoint): Throw exception if
744         there is an error inserting hardware breakpoints and use the
745         error message from the target.
746
747         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
748         Catch this exception and print the error message contained within. Do not
749         print the default hardware error breakpoint message in this case.
750
751 2012-09-12  Doug Evans  <dje@google.com>
752
753         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
754         cu == NULL.
755
756 2012-09-11  Doug Evans  <dje@google.com>
757
758         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
759         .gdb_index symbol attributes if there are none.
760
761 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
762
763         * symtab.h (struct minimal_symbol) [has_size]: New field.
764         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
765         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
766         * printcmd.c (build_address_symbolic): Only filter out zero-sized
767         minimal symbols if the symbol's size is actually known.
768         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
769         of msymbol's size field.  Add comment.
770         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
771         SET_MSYMBOL_SIZE to set the minimal symbol size.
772
773 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
774
775         * minsyms.c (install_minimal_symbols): Use memset to fill entire
776         minimal_symbol struct object, rather than setting some of its
777         fields one by one.
778
779 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
780
781         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
782         passed_a_ptr flag when displaying typedef types.
783
784 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
785
786         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
787         the optimized_out flag is preserved.
788
789 2012-09-10  Anthony Green  <green@moxielogic.com>
790
791         * moxie-tdep.c (moxie_analyze_prologue): Update for function
792         prologue changes in GCC.
793
794 2012-09-10  Keith Seitz  <keiths@redhat.com>
795
796         PR gdb/13483
797         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
798         (BOOL_CONVERSION_BADNESS): ... this.
799         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
800         (rank_one_type): Allow all boolean conversions
801         permitted by the standard.
802
803 2012-09-06  Tom Tromey  <tromey@redhat.com>
804
805         * python/py-newobjfileevent.c (create_new_objfile_event_object):
806         Don't decref py_objfile.
807
808 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
809
810         Do not enable -lmcheck by default when Python is enabled with
811         threading support.
812         * configure.ac: (python_has_threads) New variable, by testing
813         if WITH_THREAD is defined in Python.h.
814         Move --enable-lmcheck after --with-python.
815         Do not enable -lmcheck by default if python_has_threads=yes.
816         Warn if --enable-lmcheck and python_has_threads=yes.
817         * configure: Regenerate.
818
819 2012-08-31  Yao Qi  <yao@codesourcery.com>
820
821         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
822         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
823         Update some commands.
824         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
825         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
826         to 1.
827
828 2012-08-31  Yao Qi  <yao@codesourcery.com>
829
830         * mi/mi-cmds.c (mi_cmds): Add 'static'.
831
832 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
833
834         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
835
836 2012-08-29  Doug Evans  <dje@google.com>
837
838         * main.c (print_gdb_help): Remove reference to
839         --use-deprecated-index-sections.
840
841 2012-08-28  Yao Qi  <yao@codesourcery.com>
842
843         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
844         (init_cmds): Call add_setshow_uinteger_cmd for command
845         'max-user-call-depth'.
846         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
847         declaration of 'max_user_call_depth'.
848         * frame.c (backtrace_limit): Add 'unsigned'.
849         (_initialize_frame): Call add_setshow_uinteger_cmd for command
850         'limit'.
851         * remote.c (remoteaddresssize): Add 'unsigned'.
852         (remote_address_masked): Change local var 'address_size' to
853         'unsigned'.
854         (_initialize_remote): Call add_setshow_uinteger_cmd for
855         'remoteaddresssize'.
856         * top.c (history_size): Add 'unsigned'.
857         (show_commands): Change local variables to 'unsigned'.
858         (set_history_size_command): Don't check history_size is negative.
859         Adjust the condition to call unstifle_history and set history_size
860         to UNIT_MAX.
861
862 2012-08-28  Pedro Alves  <palves@redhat.com>
863
864         PR gdb/14428
865
866         * infcmd.c (default_print_one_register_info): New, factored out
867         from default_print_registers_info.
868         (default_print_registers_info): Use it.  Mark value unavailable if
869         necessary.
870         (registers_info): Print user registers with
871         default_print_one_register_info.
872
873 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
874
875         PR tui/14486
876         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
877         is not NULL before referencing it.
878
879 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
880
881         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
882         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
883         original PC for it.
884
885 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
886             Jan Kratochvil  <jan.kratochvil@redhat.com>
887
888         * auto-load.c (auto_load_objfile_script): Rename to ...
889         (auto_load_objfile_script_1): ... here, change variable realname to
890         parameter realname, document it, add return value, add variable retval.
891         (auto_load_objfile_script): New function.
892
893 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
894
895         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
896         followed by a whitespace.
897
898 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
899
900         PR gdb/14494.
901         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
902         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
903         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
904         here.
905
906 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
907
908         * memattr.c (create_mem_region): Fix memory region overlapping
909         checking.
910
911 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
912
913         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
914         with xmalloc/cleanup.
915         * mt-tdep.c (mt_push_dummy_call): Likewise.
916         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
917         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
918
919 2012-08-24  Yao Qi  <yao@codesourcery.com>
920
921         * jv-exp.y (push_expression_name): Add "." at the end of error
922         message.
923
924 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
925
926         Document how to return from "python-interactive" to GDB.
927         * python/python.c (_initialize_python): Update documentation.
928
929 2012-08-23  Pedro Alves  <palves@redhat.com>
930
931         * infrun.c (_initialize_infrun) <handle command help text>:
932         Mention that multiple signals are supported.
933
934 2012-08-23  Pedro Alves  <palves@redhat.com>
935
936         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
937         string.
938
939 2012-08-23  Yao Qi  <yao@codesourcery.com>
940
941         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
942         (tfind_1): Don't call registers_changed, set_traceframe_num,
943         and clear_traceframe_info.
944         Call set_current_traceframe.
945         (set_current_traceframe): call set_traceframe_num.
946
947 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
948
949         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
950         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
951
952 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
953
954         Enable readline in Python in a GDB-specific way and block the
955         standard Python readline module to prevent conflicts with GDB.
956         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
957         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
958         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
959         * python/py-gdb-readline.c: New file.
960         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
961         prototype.
962         * python/python.c (_initialize_python): Call
963         gdbpy_initialize_gdb_readline.
964
965 2012-08-22  Keith Seitz  <keiths@redhat.com>
966
967         * defs.h: Include build-gnulib/config.h
968
969 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
970
971         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
972         and blx pc.
973
974 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
975
976         Add a new "python-interactive" command that starts a standard
977         Python interactive prompt with "pi" as alias, and add "py" as
978         an alias to "python".
979         * NEWS: Mention the new commands.
980         * python/python.c (eval_python_command): New function.
981         (python_interactive_command): For "python-interactive" with
982         arguments, call eval_python_command.  For "python-interactive"
983         without arguments, call PyRun_InteractiveLoop.
984         (_initialize_python): Add "python-interactive" command with
985         "pi" as alias, and add "py" as an alias to "python".
986
987 2012-08-22  Tom Tromey  <tromey@redhat.com>
988
989         * defs.h (quit_flag): Don't declare.
990         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
991         (QUIT): Use new functions.
992         * event-top.c (command_handler): Use clear_quit_flag.
993         (handle_sigint): Use set_quit_flag.
994         (async_request_quit): Use check_quit_flag.  Don't check
995         immediate_quit.
996         * exceptions.c (throw_exception): Use clear_quit_flag.
997         * main.c (captured_main): Use clear_quit_flag.
998         * python/python.c (clear_quit_flag, set_quit_flag)
999         (check_quit_flag): New functions.
1000         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1001         clear_quit_flag.
1002         * remote.c (remote_wait_as): Use check_quit_flag,
1003         clear_quit_flag.
1004         (remote_start_remote): Call QUIT.
1005         * symfile.c (load_progress): Use check_quit_flag.
1006         * top.c (command_loop): Use clear_quit_flag.
1007         (command_line_input): Call QUIT.
1008         * utils.c (quit_flag): Conditionally define.
1009         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1010         functions.
1011         (prompt_for_continue): Call QUIT.  Use quit, not
1012         async_request_quit.
1013         * remote-mips.c (mips_expect_timeout): Call QUIT.
1014         * monitor.c (monitor_expect): Call QUIT.
1015
1016 2012-08-22  Tom Tromey  <tromey@redhat.com>
1017
1018         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1019         (async_init_signals): Update.
1020         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1021         (SIGWINCH_HANDLER_BODY): Remove.
1022
1023 2012-08-22  Tom Tromey  <tromey@redhat.com>
1024
1025         * jit.c (jit_object_close_impl): Don't malloc the objfile
1026         name.
1027         * objfiles.c (allocate_objfile): Don't malloc the objfile
1028         name.
1029         (free_objfile): Don't free the objfile name.
1030         * objfiles.h (struct objfile) <name>: Update comment.
1031         * symfile.c (reread_symbols): Fix reference counting.  Don't
1032         malloc objfile name.
1033
1034 2012-08-22  Tom Tromey  <tromey@redhat.com>
1035
1036         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1037         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1038         (symfile_bfd_open): Likewise.
1039         (generic_load): Likewise.
1040         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1041         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1042         gdb_bfd_open.
1043         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1044         Use gdb_bfd_open.
1045         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1046         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1047         (pmon_load_fast): Likewise.
1048         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1049         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1050         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1051         (macho_check_dsym): Likewise.
1052         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1053         (m32r_upload_command): Likewise.
1054         * gdb_bfd.h (gdb_bfd_cache): Declare.
1055         * gdb_bfd.c (struct gdb_bfd_data): New.
1056         (gdb_bfd_cache): New global.
1057         (struct gdb_bfd_cache_search): New.
1058         (hash_bfd): New function.
1059         (eq_bfd): Likewise.
1060         (gdb_bfd_open): Likewise.
1061         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1062         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1063         gdb_bfd_data.
1064         * exec.c (exec_file_attach): Use gdb_bfd_open.
1065         * dsrec.c (load_srec): Use gdb_bfd_open.
1066
1067 2012-08-22  Tom Tromey  <tromey@redhat.com>
1068
1069         * dwarf2read.c (macro_start_file): Update.
1070         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1071         (free_objfile_per_bfd_storage): Destroy macro_cache.
1072         (allocate_objfile, free_objfile): Update.
1073         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1074         New field.
1075         (struct objfile) <macro_cache>: Remove.
1076         * symfile.c (reread_symbols): Update.
1077         * symmisc.c (print_symbol_bcache_statistics): Update.
1078         (print_objfile_statistics): Update.
1079
1080 2012-08-22  Tom Tromey  <tromey@redhat.com>
1081
1082         * elfread.c (elf_symtab_read): Update.
1083         * objfiles.c (objfiles_bfd_data): New global.
1084         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1085         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1086         (allocate_objfile, free_objfile): Update.
1087         (_initialize_objfiles): Initialize objfiles_bfd_data.
1088         * objfiles.h (struct objfile_per_bfd_storage): New.
1089         (struct objfile) <per_bfd>: New field.
1090         <filename_cache>: Remove.
1091         (set_objfile_per_bfd): Declare.
1092         * symfile.c (reread_symbols): Update.  Call
1093         set_objfile_per_bfd.
1094         (allocate_symtab): Update.
1095         * symmisc.c (print_symbol_bcache_statistics): Update.
1096         (print_objfile_statistics): Print the size of the BFD obstack.
1097
1098 2012-08-22  Tom Tromey  <tromey@redhat.com>
1099
1100         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1101         * gdb_bfd.c: Use DEFINE_REGISTRY.
1102         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1103         (gdb_bfd_ref): Call bfd_alloc_data.
1104         (gdb_bfd_unref): Call bfd_free_data.
1105
1106 2012-08-22  Tom Tromey  <tromey@redhat.com>
1107
1108         * registry.h (struct registry_fields): New.
1109         (REGISTRY_FIELDS): Redefine.
1110         (REGISTRY_ACCESS_FIELD): New macro.
1111         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1112         functions.
1113
1114 2012-08-22  Tom Tromey  <tromey@redhat.com>
1115
1116         * auto-load.c (_initialize_auto_load): Update.
1117         * solib-svr4.c (_initialize_svr4_solib): Update
1118         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1119         * solib-darwin.c (_initialize_darwin_solib): Update.
1120         * registry.h: New file.
1121         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1122         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1123         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1124         (register_program_space_data_with_cleanup)
1125         (register_program_space_data, program_space_alloc_data)
1126         (clear_program_space_data, set_program_space_data)
1127         (program_space_data): Don't declare.
1128         * progspace.c: Use DEFINE_REGISTRY.
1129         (struct program_space_data, struct
1130         program_space_data_registration, struct
1131         program_space_data_registry, program_space_data_registry)
1132         (register_program_space_data_with_cleanup)
1133         (register_program_space_data, program_space_alloc_data)
1134         (program_space_free_data, clear_program_space_data)
1135         (set_program_space_data, program_space_data): Remove.
1136         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1137         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1138         (register_objfile_data_with_cleanup, register_objfile_data)
1139         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1140         declare.
1141         * objfiles.c: Use DEFINE_REGISTRY.
1142         (struct objfile_data, struct objfile_data_registration, struct
1143         objfile_data_registry, objfile_data_registry)
1144         (register_objfile_data_with_cleanup, register_objfile_data)
1145         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1146         (set_objfile_data, objfile_data): Remove.
1147         (_initialize_objfiles): Update.
1148         * jit.c (_initialize_jit): Update.
1149         * inflow.c (_initialize_inflow): Update.
1150         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1151         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1152         (register_inferior_data_with_cleanup, register_inferior_data)
1153         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1154         declare.
1155         * inferior.c: Use DEFINE_REGISTRY.
1156         (struct inferior_data, struct inferior_data_registration, struct
1157         inferior_data_registry, inferior_data_registry)
1158         (register_inferior_data_with_cleanup, register_inferior_data)
1159         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1160         (set_inferior_data, inferior_data): Remove.
1161         * auxv.c (_initialize_auxv): Update.
1162         * ada-lang.c (_initialize_ada_language): Update.
1163         * breakpoint.c (_initialize_breakpoint): Update.
1164         * i386-nat.c (i386_use_watchpoints): Update.
1165
1166 2012-08-22  Tom Tromey  <tromey@redhat.com>
1167
1168         * exec.c (exec_close, exec_file_attach): Update.
1169         (add_to_section_table): Initialize 'key' field.
1170         (add_target_sections, remove_target_sections): Add 'key' argument.
1171         * exec.h (add_target_sections, remove_target_sections): Add
1172         'key' argument.
1173         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1174         (reload_shared_libraries_1): Update.
1175         * target.h (struct target_section) <key>: New field.
1176
1177 2012-08-22  Tom Tromey  <tromey@redhat.com>
1178
1179         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1180
1181 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1182
1183         * symfile.c (allocate_symtab): Use host_address_to_string
1184         function instead of cast of pointer to long which is not
1185         compatible with x86_64-w64-mingw32 build.
1186
1187 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1188
1189         * mips-tdep.c (is_octeon): New function.
1190         (is_octeon_bbit_op): New function.
1191         (mips32_next_pc): Handle Octeon's bbit instructions.
1192         (mips32_instruction_has_delay_slot): Likewise.
1193
1194 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1195
1196         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1197         before the function.
1198
1199 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1200
1201         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1202
1203 2012-08-19  Keith Seitz  <keiths@redhat.com>
1204
1205         PR c++/14365
1206         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1207         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1208
1209 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1210
1211         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1212         The typo broke "make TAGS".
1213
1214 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1215
1216         GDB 7.5 released.
1217
1218 2012-08-17  Keith Seitz  <keiths@redhat.com>
1219
1220         PR c++/13356
1221         * gdbtypes.c (strict_type_checking): New variable.
1222         (show_strict_type_checking): New function.
1223         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1224         if strict type checking is disabled.
1225         (_initialize_gdbtypes): Add "check type" subcommand.
1226         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1227
1228 2012-08-17  Keith Seitz  <keiths@redhat.com>
1229
1230         * language.h (type_mode): Remove.
1231         (type_check): Remove.
1232         (struct language_defn): Remove la_type_check.
1233         (STRICT_TYPE): Remove unused macro.
1234         (type_error): Remove.
1235         * language.c (set_type_range_case): Renamed to ...
1236         (set_range_case): ... this.  Update all callers.
1237         Remove type_mode/type_check.
1238         (type_mode): Remove.
1239         (type_check): Remove.
1240         (show_type_command): Remove.
1241         (set_type_command): Remove.
1242         (language_info): Remove type checking output.
1243         (type_error): Remove unused function.
1244         (range_error): Update comment.
1245         (unknown_language_defn): Remove la_type_check.
1246         (auto_language_defn): Likewise.
1247         (local_language_defn): Likewise.
1248         (_initialize_language): Remove "check type" subcommand.
1249         * ada-lang.c (ada_language_defn): Remove la_type_check.
1250         * c-lang.c (c_language_defn): Likewise.
1251         (cplus_language_defn): Likewise.
1252         (asm_language_defn): Likewise.
1253         (minimal_language_defn): Likewise.
1254         * d-lang.c (d_language_defn): Likewise.
1255         * f-lang.c (f_language_defn): Likewise.
1256         * go-lang.c (go_language_defn): Likewise.
1257         * jv-lang.c (java_language_defn): Likewise.
1258         * m2-lang.c (m2_language_defn): Likewise.
1259         * objc-lang.c (objc_language_defn): Likewise.
1260         * opencl-lang.c (opencl_language_defn): Likewise.
1261         * p-lang.c (pascal_language_defn): Likewise.
1262
1263 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1264
1265         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1266
1267 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1268
1269         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1270         New function.
1271         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1272         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1273         to access the bsp and bspstore registers if not.
1274
1275 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1276
1277         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1278         * breakpoint.c (detach_breakpoints): Change pid parameter into
1279         a ptid.  Adjust code accordingly.
1280         * infrun.c (handle_inferior_event): Delete variable child_pid.
1281         Update call to detach_breakpoints to pass the child ptid for
1282         fork events.
1283         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1284         assert that inferior_ptid's lwp is zero.
1285         (linux_handle_extended_wait): Update call to detach_breakpoints.
1286         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1287         detach_breakpoints.
1288
1289 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1290
1291         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1292         parent, only call detach_breakpoints if tts.tts_event ==
1293         TTEVT_VFORK.
1294
1295 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1296
1297         * dwarf2-frame.c (dwarf2_frame_cache): Use
1298         get_frame_address_in_block instead of get_frame_pc as
1299         the bound for executing the frame's FDE.
1300
1301 2012-08-16  Yao Qi  <yao@codesourcery.com>
1302
1303         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1304         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1305         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1306         (c_type_print_varspec_suffix): Likewise.
1307         * eval.c (evaluate_subexp_standard): Likewise.
1308         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1309         (f_type_print_varspec_suffix): Likewise.
1310         * gdbtypes.c (is_scalar_type): Likewise.
1311         (recursive_dump_type): Likewise.
1312         * infcall.c (value_arg_coerce): Likewise.
1313         * m2-valprint.c (m2_val_print): Likewise.
1314         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1315         (pascal_type_print_varspec_suffix): Likewise.
1316         (pascal_type_print_base): Likewise.
1317         * p-valprint.c (pascal_val_print): Likewise.
1318         (pascal_val_print): Likewise.
1319         * valops.c (value_slice): Likewise.
1320         * valprint.c (scalar_type_p): Likewise.
1321         * valarith.c (value_bitstring_subscript): Remove.
1322         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1323         Remove comment on TYPE_CODE_BITSTRING.
1324
1325         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1326         TYPE_CODE_BITSTRING.
1327
1328         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1329         slot 0.
1330
1331 2012-08-16  Yao Qi  <yao@codesourcery.com>
1332
1333         * tracepoint.c (trace_find_none_command): Remove.
1334         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1335
1336 2012-08-16  Yao Qi  <yao@codesourcery.com>
1337
1338         * remote.c (handle_notification): Remove parameter 'length'.
1339         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1340
1341 2012-08-15  Keith Seitz  <keiths@redhat.com>
1342
1343         * gdbtypes.c (opaque_type_resolution): Make static.
1344         Add missing comment.
1345         (overload_debug): Add missing comment.
1346         (show_opaque_type_resolution): Likewise.
1347         (show_overload_debug): Likewise.
1348         (print_bit_vector): Remove unnecessary forward declaration.
1349         (print_arg_types): Likewise.
1350         (dump_fn_fieldlists): Likewise.
1351         (print_cplus_stuff): Likewise.
1352
1353 2012-08-15  Tom Tromey  <tromey@redhat.com>
1354
1355         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1356         (gdb_bfd_ref): Initialize new field.
1357         (gdb_bfd_unref): Unref the archive BFD.
1358         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1359         parent archive.
1360
1361 2012-08-15  Tom Tromey  <tromey@redhat.com>
1362
1363         PR python/14387:
1364         * python/py-bpevent.c (create_breakpoint_event_object): Update
1365         comment.
1366         * python/py-event.c (evpy_add_attribute): Update comment.
1367         * python/py-exitedevent.c (create_exited_event_object): Fix
1368         reference counting and error handling.
1369         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1370         Fix reference counting.
1371         * python/py-signalevent.c (create_signal_event_object): Fix
1372         reference counting and error handling.
1373         * python/py-stopevent.c (emit_stop_event): Fix reference
1374         counting.
1375         * python/py-threadevent.c (get_event_thread): Return a
1376         borrowed reference.
1377         * python/py-type.c (convert_field): Fix reference counting.
1378
1379 2012-08-15  Tom Tromey  <tromey@redhat.com>
1380
1381         * dwarf2read.c (dwarf_decode_macro_bytes)
1382         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1383         as hash key.
1384
1385 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1386
1387         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1388         stepi, nexti, finish, next, step, jump, and continue commands.
1389         * infrun.c (_initialize_infrun): Update help text for the handle
1390         command.
1391
1392 2012-08-14  Doug Evans  <dje@google.com>
1393
1394         * gdbtypes.c (struct extra): Delete, unused.
1395
1396         * gdbtypes.c: Whitespace cleanup.
1397         (address_space_name_to_int): Remove "extern" from definition.
1398         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1399
1400         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1401         TYPE_POINTER_TYPE (type).
1402
1403 2012-08-14  Gary Benson  <gbenson@redhat.com>
1404
1405         * solib-svr4.c (svr4_free_library_list): Use free_so.
1406
1407 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1408
1409         * .gitignore: Add go-exp.c.
1410
1411 2012-08-13  Doug Evans  <dje@google.com>
1412
1413         * value.c (show_convenience): Tweak comment.
1414         (_initialize_values): Mention convenience functions in the help text
1415         for "show convenience".
1416
1417 2012-08-13  Yao Qi  <yao@codesourcery.com>
1418
1419         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1420         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1421         TERNOP_SLICE_COUNT.
1422         * eval.c (evaluate_subexp_standard): Likewise.
1423         * expprint.c (print_subexp_standard): Likewise.
1424         (dump_subexp_body_standard): Likewise.
1425         * parse.c (operator_length_standard): Likewise.
1426
1427 2012-08-13  Yao Qi  <yao@codesourcery.com>
1428
1429         * std-operator.def: Remove OP_BITSTRING.
1430         * breakpoint.c (watchpoint_exp_is_const): Update.
1431         * eval.c (evaluate_subexp_standard): Remove handling to
1432         OP_BITSTRING.
1433         * expprint.c (print_subexp_standard): Likewise.
1434         (dump_subexp_body_standard): Likewise.
1435         * parse.c (operator_length_standard): Likewise.
1436         * valops.c (value_bitstring): Remove.
1437         * value.h: Remove the declaration of 'value_bitstring'.
1438
1439 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1440
1441         * linespec.c (find_methods): Remove unused variables `i1' and
1442         `name_len'.
1443         (decode_line_full): Likewise for `arg_start'.
1444
1445 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1446
1447         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1448         (zlib_decompress_section): Likewise for `section_data'.
1449         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1450
1451 2012-08-10  Doug Evans  <dje@google.com>
1452
1453         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1454         * NEWS: Document them.
1455         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1456         function/strfns.py.
1457         * python/py-type.c (typy_array_1): New function.
1458         (typy_array): Call it.
1459         (typy_vector): New function.
1460         (type_object_methods): Add "vector".
1461         * python/lib/gdb/function/__init__.py: New file.
1462         * python/lib/gdb/function/strfns.py: New file.
1463
1464 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1465
1466         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1467         for TYPE_FIELD_BITPOS.
1468         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1469
1470 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1471
1472         PR cli/10436:
1473         * common/vec.h (VEC_merge): Define.
1474         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1475         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1476         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1477         * completer.c: Include gdb_signals.h.
1478         (signal_completer): Define.
1479         * completer.h (signal_completer): Add prototype.
1480         * infcmd.c (_initialize_infcmd): Assign the command
1481         completer for "signal" to handle_completer.
1482         * infrun.c: Include completer.h.
1483         (handle_completer): Define.
1484         (_initialize_infrun): Declare a new local variable c.  Store the
1485         result of add_com("handle") to it.  Assign the command
1486         completer for "handle" to handle_completer.
1487
1488 2012-08-09  Yao Qi  <yao@codesourcery.com>
1489
1490         * cli/cli-decode.c (set_cmd_prefix): New.
1491         (lookup_cmd_for_prefixlist): New.
1492         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1493         of each cmd_list_element in *prefixlist.
1494         (add_setshow_cmd_full): set_cmd_prefix.
1495         (add_alias_cmd): Likewise.
1496         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1497         Declare 'auto_boolean_enums'.
1498         * cli/cli-setshow.c: Include "observer.h".
1499         (notify_command_param_changed_p): New.
1500         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1501         Remove 'static'.
1502         (do_setshow_command): Split it to ...
1503         (do_set_command, do_show_command): ... them.  New.
1504         (do_set_command): Call observer_notify_command_param_changed if
1505         notify_command_param_changed_p returns true.
1506         (cmd_show_list): Caller update.
1507         * auto-load.c (set_auto_load_cmd): Likewise.
1508         * remote.c (show_remote_cmd): Likewise.
1509         * cli/cli-setshow.h: Update declarations.
1510         * top.c (execute_command): Call do_set_command and do_show_command.
1511
1512         * NEWS: Mention new MI notification.
1513         * mi/mi-interp.c: Declare mi_command_param_changed.
1514         (mi_interpreter_init): Attach mi_command_param_changed to
1515         observer command_param_changed.
1516         (mi_command_param_changed): New.
1517         Remove mi_suppress_breakpoint_notifications.
1518         Define global variable mi_suppress_notification.
1519         (mi_breakpoint_created): Update.
1520         (mi_breakpoint_deleted): Likewise.
1521         (mi_breakpoint_modified): Likewise.
1522         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1523         'gdb-set' and set mi_suppress_notification.
1524         * mi/mi-main.h: (mi_suppress_notification): New struct.
1525
1526 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1527             Jan Kratochvil  <jan.kratochvil@redhat.com>
1528
1529         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1530
1531 2012-08-09  Yao Qi  <yao@codesourcery.com>
1532
1533         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1534         (skiplist): Move it to skip.c.
1535         (init_cmd_lists): Remove code setting enablebreaklist and
1536         skiplist to NULL.
1537         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1538         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1539         skiplist.
1540         * gdbcmd.h: Likewise.
1541         * skip.c (_initialize_step_skip): Move 'skiplist' from
1542         cli/cli-cmds.c.
1543
1544 2012-08-09  Yao Qi  <yao@codesourcery.com>
1545
1546         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1547         * gnu-nat.c, symfile.c: Likewise.
1548
1549 2012-08-08  Aaron Gamble  <agamble@google.com>
1550
1551         * utils.c (prompt_for_continue_wait_time): New static global.
1552         (make_command_stats_cleanup): Initialize it.
1553         (report_command_stats): Subtract time waiting for user.
1554         (prompt_for_continue): Track time waiting for user.
1555         (defaulted_query): Track time waiting for user.
1556
1557 2012-08-08  Doug Evans  <dje@google.com>
1558
1559         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1560         UNOP_MEMVAL_TYPE.
1561         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1562         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1563         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1564         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1565         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1566         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1567         elt.
1568         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1569         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1570         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1571         (dump_prefix_expression): Handle OP_TYPE.
1572
1573 2012-08-08  Keith Seitz  <keiths@redhat.com>
1574
1575         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1576         addr_start.
1577
1578 2012-08-08  Doug Evans  <dje@google.com>
1579
1580         * linux-thread-db.c: #include "gdb_vecs.h".
1581         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1582         updated.
1583         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1584         (thread_db_load_search): Use a vector to iterate over path elements.
1585         Handle text appearing after "$pdir".
1586
1587         * gdb_string.h: Moved to ...
1588         * common/gdb_string.h: ... here.
1589         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1590         gdb_string.h and gdb_assert.h.
1591
1592 2012-08-08  Yao Qi  <yao@codesourcery.com>
1593
1594         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1595         (tic6x_value_to_register): Likewise.
1596         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1597         and set_gdbarch_value_to_register.
1598
1599 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1600             Jean-Marc Saffroy  <saffroy@gmail.com>
1601
1602         PR 11804
1603         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1604         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1605         * gcore.c (gcore_create_callback): New function comment.  Add modified
1606         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1607         according to MODIFIED.
1608         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1609         the passed modified value to FUNC.
1610         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1611         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1612         first.  New variables modified and has_anonymous.  Parse the lines of
1613         smaps file.  Add the passed MODIFIED value to FUNC.
1614         * procfs.c (find_memory_regions_callback): Add the passed modified
1615         value.
1616
1617 2012-08-06  Tom Tromey  <tromey@redhat.com>
1618
1619         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1620         (dwarf2_frame_cache): Use it.
1621         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1622         cache initialization constraint.
1623
1624 2012-08-06  Tom Tromey  <tromey@redhat.com>
1625
1626         PR python/14386:
1627         * varobj.c (update_dynamic_varobj_children): Don't call
1628         PyIter_Check.
1629
1630 2012-08-06  Tom Tromey  <tromey@redhat.com>
1631
1632         PR cli/14392:
1633         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1634
1635 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1636
1637         * NEWS: New entry for 'cd' default parameters.
1638         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1639
1640 2012-08-03  Tom Tromey  <tromey@redhat.com>
1641
1642         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1643         return.
1644
1645 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1646
1647         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1648         to attempting lseek/write.
1649         (inf_child_fileio_pread): Likewise for pread.
1650
1651 2012-08-02  Yao Qi  <yao@codesourcery.com>
1652
1653         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1654         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1655         add_setshow_zinteger_cmd.
1656         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1657         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1658         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1659         instead of add_setshow_zinteger_cmd.
1660         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1661         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1662         instead of add_setshow_zinteger_cmd.
1663         * frame.c (frame_debug): Add 'unsigned'.
1664         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1665         add_setshow_zinteger_cmd.
1666         * frame.h: Update the declaration of 'frame_debug'.
1667         * gdbtypes.c (overload_debug): Add 'unsigned'.
1668         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1669         add_setshow_zinteger_cmd.
1670         * inferior.h: Update declaration of 'debug_infrun'.
1671         * infrun.c (debug_infrun): Add 'unsigned'.
1672         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1673         add_setshow_zinteger_cmd.
1674         * jit.c (jit_debug): Add 'unsigned'.
1675         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1676         add_setshow_zinteger_cmd.
1677         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1678         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1679         instead of add_setshow_zinteger_cmd.
1680         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1681         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1682         add_setshow_zinteger_cmd.
1683         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1684         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1685         instead of add_setshow_zinteger_cmd.
1686         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1687         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1688         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1689         intead of add_setshow_zinteger_cmd.
1690         * mips-tdep.c (mips_debug): Add 'unsigned'.
1691         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1692         instead of add_setshow_zinteger_cmd.
1693         * monitor.c (monitor_debug): Add 'unsigned'.
1694         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1695         add_setshow_zinteger_cmd.
1696         * observer.c (observer_debug): Add 'unsigned'.
1697         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1698         add_setshow_zinteger_cmd.
1699         * parse.c (expressiondebug): Add 'unsigned'.
1700         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1701         add_setshow_zinteger_cmd.
1702         * record.c (record_debug): Add 'unsigned'.
1703         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1704         add_setshow_zinteger_cmd.
1705         * record.h: Update the declaration of 'record_debug'.
1706         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1707         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1708         add_setshow_zinteger_cmd.
1709         * serial.c (global_serial_debug_p): Add 'unsigned'.
1710         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1711         add_setshow_zinteger_cmd.
1712         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1713         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1714         add_setshow_zinteger_cmd.
1715         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1716         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1717         add_setshow_zinteger_cmd.
1718         * target.c (targetdebug): Add 'unsigned'.
1719         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1720         add_setshow_zinteger_cmd.
1721         * valops.c (overload_debug): Add 'unsigned'.
1722         * varobj.c (varobjdebug): Add 'unsigned'.
1723         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1724         add_setshow_zinteger_cmd.
1725         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1726         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1727         instead of add_setshow_zinteger_cmd.
1728
1729         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1730         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1731         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1732         instead of add_setshow_zinteger_cmd.
1733         * gdbarch.c, gdbarch.h: Re-generated.
1734
1735 2012-08-02  Yao Qi  <yao@codesourcery.com>
1736
1737         * nto-tdep.c: Don't include cli/cli-decode.h and
1738         cli/cli-cmds.h.
1739         (_initialize_nto_tdep): Remove.
1740         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1741         Remove field.
1742         Remove macro nto_internal_debugging.
1743
1744 2012-08-01  Richard Henderson  <rth@redhat.com>
1745
1746         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1747         (mep-*-*) [gdb_target_obs]: Likewise.
1748
1749 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
1750
1751         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1752         linux_get_siginfo_type.
1753
1754 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1755
1756         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1757         AT_ENTRY_POINT.
1758         (call_function_by_hand) <ON_STACK>: Call write_memory with
1759         gdbarch_breakpoint_from_pc, if possible.
1760         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1761         here.
1762
1763 2012-07-31  Yao Qi  <yao@codesourcery.com>
1764
1765         * tracepoint.c: Add 'static' for some variables.
1766
1767 2012-07-31  Yao Qi  <yao@codesourcery.com>
1768
1769         * go32-nat.c: Declare _initialize_go32_nat.
1770         * ser-go32.c: Declare _initialize_ser_dos.
1771         * top.c (do_chdir_cleanup): Add 'static'.
1772
1773 2012-07-30  Keith Seitz  <keiths@redhat.com>
1774
1775         * linespec.c (linespec_lex_number): A number followed
1776         by quotes is a valid number, too.
1777
1778 2012-07-30  Tom Tromey  <tromey@redhat.com>
1779
1780         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1781
1782 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
1783
1784         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1785         attempt to 4-byte-align HW breakpoint addresses for Thumb.
1786
1787 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
1788
1789         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1790         invalid or reevaluated to prevent prevent references to possibly
1791         delete'd type objects being left in the varobj.
1792
1793 2012-07-27  Tom Tromey  <tromey@redhat.com>
1794             Jan Kratochvil  <jan.kratochvil@redhat.com>
1795
1796         * copying.awk: Print buffer-read-only and vi ro markers.
1797         * copying.c: Rebuild.
1798         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1799         * gdbarch.c, gdbarch.h: Rebuild.
1800         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1801         buffer-read-only and vi ro markers.
1802         * features/arm-with-iwmmxt.c: Rebuild.
1803         * features/arm-with-m-fpa-layout.c: Rebuild.
1804         * features/arm-with-m-vfp-d16.c: Rebuild.
1805         * features/arm-with-m.c: Rebuild.
1806         * features/arm-with-neon.c: Rebuild.
1807         * features/arm-with-vfpv2.c: Rebuild.
1808         * features/arm-with-vfpv3.c: Rebuild.
1809         * features/i386/amd64-avx-linux.c: Rebuild.
1810         * features/i386/amd64-avx.c: Rebuild.
1811         * features/i386/amd64-linux.c: Rebuild.
1812         * features/i386/amd64.c: Rebuild.
1813         * features/i386/i386-avx-linux.c: Rebuild.
1814         * features/i386/i386-avx.c: Rebuild.
1815         * features/i386/i386-linux.c: Rebuild.
1816         * features/i386/i386-mmx-linux.c: Rebuild.
1817         * features/i386/i386-mmx.c: Rebuild.
1818         * features/i386/i386.c: Rebuild.
1819         * features/i386/x32-avx-linux.c: Rebuild.
1820         * features/i386/x32-avx.c: Rebuild.
1821         * features/i386/x32-linux.c: Rebuild.
1822         * features/i386/x32.c: Rebuild.
1823         * features/mips-dsp-linux.c: Rebuild.
1824         * features/mips-linux.c: Rebuild.
1825         * features/mips64-dsp-linux.c: Rebuild.
1826         * features/mips64-linux.c: Rebuild.
1827         * features/rs6000/powerpc-32.c: Rebuild.
1828         * features/rs6000/powerpc-32l.c: Rebuild.
1829         * features/rs6000/powerpc-403.c: Rebuild.
1830         * features/rs6000/powerpc-403gc.c: Rebuild.
1831         * features/rs6000/powerpc-405.c: Rebuild.
1832         * features/rs6000/powerpc-505.c: Rebuild.
1833         * features/rs6000/powerpc-601.c: Rebuild.
1834         * features/rs6000/powerpc-602.c: Rebuild.
1835         * features/rs6000/powerpc-603.c: Rebuild.
1836         * features/rs6000/powerpc-604.c: Rebuild.
1837         * features/rs6000/powerpc-64.c: Rebuild.
1838         * features/rs6000/powerpc-64l.c: Rebuild.
1839         * features/rs6000/powerpc-7400.c: Rebuild.
1840         * features/rs6000/powerpc-750.c: Rebuild.
1841         * features/rs6000/powerpc-860.c: Rebuild.
1842         * features/rs6000/powerpc-altivec32.c: Rebuild.
1843         * features/rs6000/powerpc-altivec32l.c: Rebuild.
1844         * features/rs6000/powerpc-altivec64.c: Rebuild.
1845         * features/rs6000/powerpc-altivec64l.c: Rebuild.
1846         * features/rs6000/powerpc-cell32l.c: Rebuild.
1847         * features/rs6000/powerpc-cell64l.c: Rebuild.
1848         * features/rs6000/powerpc-e500.c: Rebuild.
1849         * features/rs6000/powerpc-e500l.c: Rebuild.
1850         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1851         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1852         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1853         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1854         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1855         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1856         * features/rs6000/powerpc-vsx32.c: Rebuild.
1857         * features/rs6000/powerpc-vsx32l.c: Rebuild.
1858         * features/rs6000/powerpc-vsx64.c: Rebuild.
1859         * features/rs6000/powerpc-vsx64l.c: Rebuild.
1860         * features/rs6000/rs6000.c: Rebuild.
1861         * features/s390-linux32.c: Rebuild.
1862         * features/s390-linux32v1.c: Rebuild.
1863         * features/s390-linux32v2.c: Rebuild.
1864         * features/s390-linux64.c: Rebuild.
1865         * features/s390-linux64v1.c: Rebuild.
1866         * features/s390-linux64v2.c: Rebuild.
1867         * features/s390x-linux64.c: Rebuild.
1868         * features/s390x-linux64v1.c: Rebuild.
1869         * features/s390x-linux64v2.c: Rebuild.
1870         * features/tic6x-c62x-linux.c: Rebuild.
1871         * features/tic6x-c62x.c: Rebuild.
1872         * features/tic6x-c64x-linux.c: Rebuild.
1873         * features/tic6x-c64x.c: Rebuild.
1874         * features/tic6x-c64xp-linux.c: Rebuild.
1875         * features/tic6x-c64xp.c: Rebuild.
1876
1877 2012-07-27  Tom Tromey  <tromey@redhat.com>
1878
1879         * c-exp.y (classify_name): Avoid assignment in condition.
1880
1881 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
1882
1883         * amd64-windows-tdep.c: Include "frame.h".
1884         (amd64_windows_skip_trampoline_code): New function.
1885         (amd64_windows_init_abi): Add trampoline registration.
1886
1887 2012-07-27  Yao Qi  <yao@codesourcery.com>
1888
1889         * tracepoint.c (cur_traceframe_number): Remove.
1890         (set_tfile_traceframe): Remove.
1891         (tfile_trace_find, tfile_fetch_registers): Update callers.
1892         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1893         (tfile_open, tfile_trace_find): Likewise.
1894
1895 2012-07-27  Yao Qi  <yao@codesourcery.com>
1896
1897         * thread.c (switch_to_thread): Don't call registers_changed.
1898
1899 2012-07-26  Tom Tromey  <tromey@redhat.com>
1900
1901         * Makefile.in (SFILES): Remove objc-exp.y.
1902         (YYFILES): Remove objc-exp.c.
1903         (YYOBJ): Remove objc-exp.o.
1904         (local-maintainer-clean): Don't mention objc-exp.c.
1905         * c-exp.y: Include objc-lang.h.
1906         (%union) <class>: New field.
1907         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1908         (exp): Clone subscript production for OBJC_LBRAC.  Add various
1909         Objective C productions.
1910         (msglist, msgarglist, msgarg): New productions.
1911         (array_mod, func_mod, operator): Clone productions for
1912         OBJC_LBRAC.
1913         (parse_string_or_char): Handle '@' strings.
1914         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
1915         (classify_name): Check la_name_of_this.  Recognize ObjC class
1916         names.
1917         * objc-exp.y: Remove.
1918         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1919         * objc-lang.h (objc_parse, objc_error): Don't declare.
1920
1921 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
1922
1923         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1924
1925 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1926
1927         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1928         and decrement.
1929
1930 2012-07-26  Tom Tromey  <tromey@redhat.com>
1931
1932         * copying.c: Rebuild.
1933         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
1934         'no_class'.
1935
1936 2012-07-26  Tom Tromey  <tromey@redhat.com>
1937
1938         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1939         immediate_quit.
1940         (print_objfile_statistics): Likewise.
1941         (maintenance_print_symbols): Likewise.
1942         (maintenance_print_msymbols): Likewise.
1943         (maintenance_print_objfiles): Likewise.
1944         * psymtab.c (print_partial_symbols): Call QUIT.
1945         (maintenance_print_psymbols): Likewise.  Don't modify
1946         immediate_quit.
1947         * copying.c (show_copying_command): Don't modify immediate_quit.
1948         (show_warranty_command): Likewise.
1949         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1950
1951 2012-07-26  Keith Seitz  <keiths@redhat.com>
1952
1953         * linespec.c (linespec_lexer_lex_number): The input
1954         is also a valid number if the next character is a comma
1955         or colon.
1956
1957 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
1958
1959         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1960         configure options.
1961
1962 2012-07-26  Tristan Gingold  <gingold@adacore.com>
1963
1964         * machoread.c: Include gdb_bfd.h.
1965
1966 2012-07-26  Tristan Gingold  <gingold@adacore.com>
1967
1968         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1969         offset.
1970
1971 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1972
1973         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1974         SIZE to size_t.
1975         (dwarf2_evaluate_loc_desc): Likewise.
1976         (dwarf2_loc_desc_needs_frame): Likewise.
1977         (locexpr_describe_location_1): Likewise.
1978         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1979         size_t.
1980         (struct dwarf2_loclist_baton): Likewise.
1981         * dwarf2read.c (struct dwarf_block): Likewise.
1982         (dump_die_shallow): Use pulongest to print dwarf_block.size.
1983         (decode_locdesc): Expand SIZE and I to size_t.
1984
1985 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1986
1987         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1988
1989 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
1990
1991         * doublest.c (convert_doublest_to_floatformat): If the exponent
1992         is too small, treat the value as zero.  If the exponent is too
1993         large, treat the value as infinity.
1994
1995 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
1996
1997         * configure.ac: Add --enable-lmcheck configure option.
1998         * configure: Regenerate.
1999
2000 2012-07-25  Tom Tromey  <tromey@redhat.com>
2001
2002         * NEWS: Mention maint info bfds.
2003         * gdb_bfd.c (all_bfds): New global.
2004         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2005         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2006         New functions.
2007
2008 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2009
2010         * configure.tgt: Add v850*-*-rtems*.
2011
2012 2012-07-25  Tom Tromey  <tromey@redhat.com>
2013
2014         * macrotab.c (macro_bcache_str): Remove cast.
2015
2016 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2017
2018         * linespec.c (linespec_lexer_lex_number): Update comments,
2019         change the return and add check to make sure the input is
2020         the decimal numbers.
2021         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2022         false, call linespec_lexer_lex_string.
2023
2024 2012-07-24  Tom Tromey  <tromey@redhat.com>
2025
2026         * symfile.c (symbol_file_add): Don't open BFD twice.
2027
2028 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2029
2030         * breakpoint.c (create_breakpoint): Store condition for pending
2031         breakpoints.
2032
2033 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2034
2035         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2036         (m68k_return_value): Handle complex types like structures.
2037         (m68k_svr4_return_value): Likewise.
2038
2039 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2040
2041         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2042         parameters to bfd_get_section_name.
2043
2044 2012-07-24  Yao Qi  <yao@codesourcery.com>
2045
2046         * cli/cli-setshow.c: Handle case 'var_uinteger'
2047         and 'var_zuninteger' together.  Handle case 'var_integer' and
2048         'var_zinteger' together.
2049
2050 2012-07-23  Keith Seitz  <keiths@redhat.com>
2051
2052         * linespec.c (convert_linespec_to_sal): Don't add
2053         any symbols to the result vector if symbol_to_sal
2054         returns zero.
2055
2056 2012-07-23  Keith Seitz  <keiths@redhat.com>
2057
2058         * linespec.c (decode_objc): Record the function name
2059         in the linespec.
2060
2061 2012-07-23  Tom Tromey  <tromey@redhat.com>
2062
2063         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2064         counting.
2065         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2066         (map_vmap): Acquire a reference to the BFD.
2067
2068 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2069
2070         * p-valprint.c (pascal_object_print_value): Replace potentially
2071         unsafe alloca with xmalloc/xfree.
2072         * valops.c (search_struct_method): Likewise.
2073
2074 2012-07-23  Tom Tromey  <tromey@redhat.com>
2075
2076         * solib-svr4.c (enable_break): Update.
2077         * bfd-target.h (target_bfd_reopen): Update documentation.
2078
2079 2012-07-23  Tom Tromey  <tromey@redhat.com>
2080
2081         * symfile.c (separate_debug_file_exists): Update.
2082         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2083         (reread_symbols): Update.
2084         * elfread.c (build_id_verify): Update.
2085         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2086         bfd_open_maybe_remote.
2087
2088 2012-07-23  Tom Tromey  <tromey@redhat.com>
2089
2090         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2091
2092 2012-07-23  Tom Tromey  <tromey@redhat.com>
2093
2094         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2095         and 'abfd'.
2096         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2097         and 'abfd'.
2098         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2099         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2100         'abfd'.
2101         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2102         * objfiles.c (allocate_objfile): Acquire a new reference.
2103         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2104         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2105         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2106         a cleanup for 'nbfd'.
2107         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2108         for 'nbfd'.
2109         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2110         make a cleanup for 'abfd'.
2111         (symbol_file_add): Make a BFD cleanup.
2112
2113 2012-07-23  Tom Tromey  <tromey@redhat.com>
2114
2115         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2116         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2117         * corelow.c (core_open): Use gdb_bfd_fopen.
2118         * dsrec.c (load_srec): Use gdb_bfd_openr.
2119         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2120         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2121         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2122         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2123         (gdb_bfd_fdopenr): New functions.
2124         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2125         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2126         (gdb_bfd_fdopenr): Declare.
2127         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2128         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2129         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2130         gdb_bfd_openr_next_archived_file.
2131         (macho_check_dsym): Use gdb_bfd_openr.
2132         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2133         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2134         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2135         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2136         gdb_bfd_openr.
2137         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2138         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2139         gdb_bfd_openr_next_archived_file.
2140         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2141         Use gdb_bfd_openr.
2142         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2143         gdb_bfd_openr.
2144         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2145         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2146         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2147         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2148         (symfile_bfd_open): Use gdb_bfd_fopen.
2149         (generic_load): Use gdb_bfd_openr.
2150         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2151
2152 2012-07-23  Tom Tromey  <tromey@redhat.com>
2153
2154         * bfd-target.c (target_bfd_reopen): Update.
2155         * cli/cli-dump.c (bfd_openr_with_cleanup)
2156         (bfd_openw_with_cleanup): Update.
2157         * corelow.c (core_open): Update.
2158         * dsrec.c (load_srec): Update.
2159         * exec.c (exec_file_attach): Update.
2160         * gcore.c (create_gcore_bfd): Update.
2161         * gdb_bfd.c (gdb_bfd_ref): Return void.
2162         (gdb_bfd_open): Update.
2163         * gdb_bfd.h (gdb_bfd_ref): Return void.
2164         Update comments.
2165         * jit.c (jit_bfd_try_read_symtab): Update.
2166         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2167         * machoread.c (macho_symfile_read_all_oso): Update.
2168         (macho_check_dsym): Update.
2169         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2170         * remote-m32r-sdi.c (m32r_load): Update.
2171         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2172         * rs6000-nat.c (add_vmap): Update.
2173         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2174         Update.
2175         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2176         * solib-spu.c (spu_bfd_open): Update.
2177         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2178         * spu-linux-nat.c (spu_bfd_open): Update.
2179         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2180         (generic_load): Update.
2181         * windows-nat.c (windows_make_so): Update.
2182
2183 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2184
2185         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2186
2187 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2188
2189         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2190         SIGTRAMP_FRAME unwinding.
2191
2192 2012-07-20  Doug Evans  <dje@google.com>
2193
2194         * NEWS: Document new options "set/show use-deprecated-index-sections",
2195         and delete reference to --use-deprecated-index-sections.
2196         * symfile.h (use_deprecated_index_sections): Delete.
2197         * dwarf2read.c (use_deprecated_index_sections): Make static.
2198         (read_index_from_section): Update wording of how to load
2199         deprecated index sections.
2200         (_initialize_dwarf2_read): New options
2201         "set/show use-deprecated-index-sections".
2202         * main.c (captured_main): Delete --use-deprecated-index-sections.
2203
2204 2012-07-20  Pedro Alves  <palves@redhat.com>
2205
2206         PR threads/11692
2207         PR gdb/12203
2208
2209         * infrun.c (handle_inferior_event) <new thread>: Don't special
2210         case minus_one_ptid.
2211         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2212         * linux-thread-db.c (thread_get_info_callback): Don't return early
2213         if the thread is zombie.
2214         (thread_from_lwp): Change return type to void.  Rewrite stale
2215         comment.
2216         (attach_thread): Don't return early if the thread is zombie,
2217         instead set its "dying" flag.
2218         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2219         (find_new_threads_callback): Don't return early if the thread is
2220         zombie.
2221
2222 2012-07-20  Pedro Alves  <palves@redhat.com>
2223
2224         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2225         * target.c (target_wait): Likewise.
2226         (str_comma_list_concat_elem, do_option, target_options_to_string):
2227         New functions.
2228         * target.h (target_options_to_string): Declare.
2229
2230 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2231             Tom Tromey  <tromey@redhat.com>
2232
2233         * dwarf2read.c (dwarf_decode_macros)
2234         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2235         DW_MACRO_GNU_transparent_include_alt>: New cases.
2236         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2237         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2238
2239 2012-07-20  Tom Tromey  <tromey@redhat.com>
2240
2241         * dwarf2read.c (try_open_dwo_file): Don't call
2242         gdb_bfd_stash_filename.
2243
2244 2012-07-20  Pedro Alves  <palves@redhat.com>
2245
2246         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2247         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2248         (i386_process_record): Tweak description comments.
2249
2250 2012-07-20  Pedro Alves  <palves@redhat.com>
2251
2252         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2253         (i386_process_record): Use record_read_memory.
2254         * record.c (record_read_memory): New function.
2255         (record_arch_list_add_mem, record_exec_insn): Use
2256         record_read_memory.
2257         * record.h (record_read_memory): Declare.
2258
2259 2012-07-20  Yao Qi  <yao@codesourcery.com>
2260
2261         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2262         NULL for xfree.
2263
2264 2012-07-19  Pedro Alves  <palves@redhat.com>
2265
2266         * record.c (record_resume): Ask the target beneath to report all
2267         signals.
2268
2269 2012-07-19  Doug Evans  <dje@google.com>
2270
2271         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2272         there's no section at address zero.
2273         (dwarf2_record_block_ranges): Ditto.
2274
2275 2012-07-19  Yao Qi  <yao@codesourcery.com>
2276
2277         * command.h, remote.c: Fix a typo in comment.
2278
2279 2012-07-19  Tom Tromey  <tromey@redhat.com>
2280
2281         PR exp/13206:
2282         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2283         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2284         OP_DECLTYPE>: New cases.
2285         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2286         (type_exp): Add new productions.
2287         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2288         and decltype.
2289         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2290         New case.
2291         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2292         OP_DECLTYPE>: New case.
2293         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2294         New case.
2295         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2296         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2297
2298 2012-07-19  Tom Tromey  <tromey@redhat.com>
2299
2300         * c-exp.y (enum token_flags): New.
2301         (struct token) <cxx_only>: Remove.
2302         <flags>: New field.
2303         (tokentab3, tokentab2, ident_tokens): Update.
2304         (lex_one_token): Update.  Handle FLAG_SHADOW.
2305
2306 2012-07-19  Tom Tromey  <tromey@redhat.com>
2307
2308         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2309         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2310         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2311         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2312         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2313         type_exp production where appropriate.
2314         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2315         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2316         <UNOP_MEMVAL_TYPE>: New case.
2317         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2318         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2319         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2320         <UNOP_MEMVAL_TYPE>: New case.
2321         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2322         UNOP_REINTERPRET_CAST>: Update.
2323         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2324         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2325         UNOP_REINTERPRET_CAST>: Update.
2326         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2327         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2328         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2329         constants.
2330
2331 2012-07-19  Yao Qi  <yao@codesourcery.com>
2332             Jan Kratochvil <jan.kratochvil@redhat.com>
2333
2334         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2335         and case 'var_optional_filename' together.
2336         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2337         instead of add_setshow_optional_filename_cmd for setshow command
2338         'args'.  Set completer for 'set args'.
2339
2340 2012-07-18  Doug Evans  <dje@google.com>
2341
2342         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2343         * common/gdb_vecs.c: New file, contents from utils.c.
2344         * common/host-defs.h: New file, contents from defs.h.
2345         * utils.h: New file, contents from defs.h.
2346         * defs.h: Move all declarations of objects defined in utils.c
2347         to utils.h (except QUIT() and related).
2348         #include "utils.h", "host-defs.h".
2349         * probe.h (probe_p): Move here from gdb_vecs.h.
2350         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2351         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2352         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2353         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2354         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2355         (COMMON_OBS): Add gdb_vecs.o.
2356         (gdb_vecs.o): New rule.
2357
2358 2012-07-18  Keith Seitz  <keiths@redhat.com>
2359
2360         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2361         parameter.  If non-zero, use SYMNAME as the canonical name
2362         for the SaL.
2363         Update all callers.
2364         (convert_linespec_to_sals): Use add_sal_to_sals for
2365         expressions, too.
2366         (decode_line_full): No need to "fill in missing canonical names"
2367         anymore. Simply make cleanups for the allocated names.
2368
2369 2012-07-18  Keith Seitz  <keiths@redhat.com>
2370
2371         * linespec.c (struct linespec): Constify expression,
2372         source_filename, function_name, and label_name.
2373         (symbol_not_found_error): Make all parameters const.
2374         (linespec_parser_delete): No need to check for NULL
2375         when using xfree. Cast const char * to char * for xfree.
2376
2377 2012-07-18  Keith Seitz  <keiths@redhat.com>
2378
2379         * breakpoint.c (invalid_thread_id_error): New function.
2380         (find_condition_and_thread): Use invalid_thread_id_error.
2381         (watch_command_1): Likewise.
2382
2383 2012-07-18  Tom Tromey  <tromey@redhat.com>
2384
2385         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2386         * contrib/cc-with-tweaks.sh: New file.
2387
2388 2012-07-18  Tom Tromey  <tromey@redhat.com>
2389
2390         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2391         (locate_dwz_sections): Recognize .gdb_index.
2392         (create_cus_from_index_list): New function.
2393         (create_cus_from_index): Use it.  Handle .dwz data.
2394         (read_index_from_section): New function, extracted from
2395         dwarf2_read_index.
2396         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2397         if needed.
2398
2399 2012-07-18  Tom Tromey  <tromey@redhat.com>
2400
2401         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2402         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2403         <is_dwz>: New field.
2404         (struct dwz_file): New.
2405         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2406         (locate_dwz_sections, dwarf2_get_dwz_file)
2407         (get_abbrev_section_for_cu): New functions.
2408         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2409         (read_and_check_type_unit_head): Add abbrev_section argument.
2410         (create_debug_types_hash_table): Update.
2411         (init_cutu_and_read_dies): Use proper abbrev section.
2412         (init_cutu_and_read_dies_no_follow): Likewise.
2413         (set_partial_user): Do nothing if PST==NULL.
2414         (read_comp_units_from_section): New function.
2415         (create_all_comp_units): Use it.
2416         (scan_partial_symbols, partial_die_parent_scope): Update.
2417         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2418         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2419         (find_partial_die): Add offset_in_dwz argument.  Update.
2420         (guess_partial_die_structure_name, fixup_partial_die): Update.
2421         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2422         DW_FORM_GNU_strp_alt.
2423         (read_indirect_string_from_dwz): New function.
2424         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2425         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2426         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2427         (follow_die_offset): Add offset_in_dwz argument.
2428         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2429         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2430         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2431         Handle new macro forms.
2432         (dwarf_decode_macros): Update.
2433         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2434         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2435         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2436         (create_debug_types_hash_table): Use correct abbrev section.
2437         (get_debug_line_section): New function.
2438         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2439         (process_full_comp_unit): Pass 'required' argument to
2440         end_symtab_get_static_block.
2441         * buildsym.h (end_symtab_get_static_block): Update.
2442         * buildsym.c (end_symtab_get_static_block): Add 'required'
2443         argument.
2444         (end_symtab, end_expandable_symtab): Update.
2445
2446 2012-07-18  Tom Tromey  <tromey@redhat.com>
2447
2448         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2449         (pagesize): Remove.
2450         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2451         (zlib_decompress_section): Remove.
2452         (dwarf2_read_section): Use gdb_bfd_map_section.
2453         (munmap_section_buffer): Remove.
2454         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2455         munmap_section_buffer.
2456         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2457         (struct gdb_bfd_section_data): New.
2458         (free_one_bfd_section): New function.
2459         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2460         (get_section_descriptor, zlib_decompress_section)
2461         (gdb_bfd_map_section): New functions.
2462         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2463
2464 2012-07-18  Tom Tromey  <tromey@redhat.com>
2465
2466         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2467
2468 2012-07-18  Tom Tromey  <tromey@redhat.com>
2469
2470         * gdb_bfd.c (struct gdb_bfd_data): New.
2471         (gdb_bfd_cache): New global.
2472         (struct gdb_bfd_cache_search): New.
2473         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2474         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2475         * gdb_bfd.h (gdb_bfd_open): Declare.
2476
2477 2012-07-18  Tom Tromey  <tromey@redhat.com>
2478
2479         * utils.c (make_cleanup_bfd_unref): Rename from
2480         make_cleanup_bfd_close.
2481         * defs.h (make_cleanup_bfd_unref): Rename from
2482         make_cleanup_bfd_close.
2483         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2484         (bfd_openw_with_cleanup): Update.
2485         * corelow.c (core_open): Update.
2486         * dsrec.c (load_srec): Update.
2487         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2488         * remote-m32r-sdi.c (m32r_load): Update.
2489         * remote-mips.c (mips_load_srec): Update.
2490         (pmon_load_fast): Update.
2491         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2492         Update.
2493         (darwin_bfd_open): Update.
2494         * solib.c (solib_bfd_fopen): Update.
2495         * symfile-mem.c (symbol_file_add_from_memory): Update.
2496         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2497         (symfile_bfd_open): Update.
2498         (generic_load): Update.
2499
2500 2012-07-18  Tom Tromey  <tromey@redhat.com>
2501
2502         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2503         (pmon_load_fast): Likewise.
2504         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2505         (m32r_upload_command): Likewise.
2506         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2507         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2508         Use make_cleanup_bfd_close.
2509
2510 2012-07-18  Tom Tromey  <tromey@redhat.com>
2511
2512         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2513         gdb_bfd_stash_filename.
2514         (load_command): Open the new BFD before freeing the old.
2515         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2516         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2517         Call gdb_bfd_stash_filename.
2518         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2519         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2520         gdb_bfd_stash_filename.
2521         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2522         Free found_pathname.
2523         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2524         gdb_bfd_stash_filename.
2525         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2526         * machoread.c (macho_add_oso_symfile): Call
2527         gdb_bfd_stash_filename.
2528         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2529         gdb_bfd_stash_filename.
2530         (macho_check_dsym): Don't copy filename.  Call
2531         gdb_bfd_stash_filename.
2532         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2533         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2534         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2535         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2536         * exec.c (exec_close): Don't free the BFD's filename.
2537         (exec_file_attach): Don't copy the filename.  Call
2538         gdb_bfd_stash_filename.
2539         * corelow.c (core_close): Don't free the BFD's filename.
2540         (core_open): Call gdb_bfd_stash_filename.
2541         * corefile.c (reopen_exec_file): Remove #if 0 code.
2542         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2543         pathname.
2544         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2545
2546 2012-07-18  Tom Tromey  <tromey@redhat.com>
2547
2548         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2549         gdb_bfd_unref.
2550         (free_dwo_file): Use gdb_bfd_unref.
2551         * cli/cli-dump.c: Include gdb_bfd.h.
2552         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2553         (bfd_openr_with_cleanup): Likewise.
2554         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2555         gdb_bfd_unref.
2556         * utils.c: Include gdb_bfd.h.
2557         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2558         * symfile.c: Include gdb_bfd.h.
2559         (separate_debug_file_exists): Use gdb_bfd_unref.
2560         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2561         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2562         (generic_load): Use gdb_bfd_ref.
2563         (reread_symbols): Use gdb_bfd_unref.
2564         * symfile-mem.c: Include gdb_bfd.h.
2565         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2566         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2567         * solib.c: Include gdb_bfd.h.
2568         (solib_bfd_fopen): Use gdb_bfd_ref.
2569         (solib_bfd_open): Use gdb_bfd_unref.
2570         (free_so_symbols): Use gdb_bfd_unref.
2571         (reload_shared_libraries_1): Use gdb_bfd_unref.
2572         * solib-spu.c: Include gdb_bfd.h.
2573         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2574         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2575         gdb_bfd_unref.
2576         * solib-frv.c: Include gdb_bfd.h.
2577         (enable_break2): Use gdb_bfd_unref.
2578         * solib-dsbt.c: Include gdb_bfd.h.
2579         (enable_break2): Use gdb_bfd_unref.
2580         * solib-darwin.c: Include gdb_bfd.h.
2581         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2582         gdb_bfd_unref.
2583         (darwin_bfd_open): Use gdb_bfd_unref.
2584         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2585         * remote-mips.c: Include gdb_bfd.h.
2586         (mips_load_srec): Use gdb_bfd_ref.
2587         (pmon_load_fast): Use gdb_bfd_ref.
2588         * remote-m32r-sdi.c: Include gdb_bfd.h.
2589         (m32r_load): Use gdb_bfd_ref.
2590         * record.c: Include gdb_bfd.h.
2591         (record_save_cleanups): Use gdb_bfd_unref.
2592         (cmd_record_save): Use gdb_bfd_unref.
2593         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2594         gdb_bfd_unref.
2595         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2596         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2597         * objfiles.c: Include gdb_bfd.h.
2598         (free_objfile): Use gdb_bfd_unref.
2599         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2600         gdb_bfd.c.
2601         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2602         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2603         (macho_check_dsym): Likewise.
2604         * m32r-rom.c: Include gdb_bfd.h.
2605         (m32r_load): Use gdb_bfd_ref.
2606         (m32r_upload_command): Use gdb_bfd_ref.
2607         * jit.c: Include gdb_bfd.h.
2608         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2609         * gdb_bfd.h: New file.
2610         * gdb_bfd.c: New file.
2611         * gcore.c: Include gdb_bfd.h.
2612         (create_gcore_bfd): Use gdb_bfd_ref.
2613         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2614         (gcore_command): Use gdb_bfd_unref.
2615         * exec.c: Include gdb_bfd.h.
2616         (exec_close): Use gdb_bfd_unref.
2617         (exec_close_1): Use gdb_bfd_unref.
2618         (exec_file_attach): Use gdb_bfd_ref.
2619         * elfread.c: Include gdb_bfd.h.
2620         (build_id_verify): Use gdb_bfd_unref.
2621         * dsrec.c: Include gdb_bfd.h.
2622         (load_srec): Use gdb_bfd_ref.
2623         * corelow.c: Include gdb_bfd.h.
2624         (core_close): Use gdb_bfd_unref.
2625         (core_open): Use gdb_bfd_ref.
2626         * bfd-target.c: Include gdb_bfd.h.
2627         (target_bfd_xclose): Use gdb_bfd_unref.
2628         (target_bfd_reopen): Use gdb_bfd_ref.
2629         * Makefile.in (SFILES): Add gdb_bfd.c.
2630         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2631         (COMMON_OBS): Add gdb_bfd.o.
2632
2633 2012-07-18  Keith Seitz  <keiths@redhat.com>
2634
2635         * breakpoint.c (find_condition_and_thread): Initialize
2636         TASK and REST.
2637         (create_breakpiont): find_condition_and_thread will now
2638         initialize COND_STRING, THREAD, and REST (and TASK).
2639         (addr_string_to_sals): Likewise.
2640
2641 2012-07-18  Pedro Alves  <palves@redhat.com>
2642
2643         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2644         Pull the single step breakpoints out of the target.
2645
2646 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2647
2648         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2649         * stap-probe.c (compile_probe_arg): Likewise.
2650
2651 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2652
2653         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2654         (elf_compile_to_ax): Likewise.
2655         * infrun.c (insert_exception_resume_from_probe): Likewise.
2656         (check_exception_resume): Remove `objfile' variable.
2657         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2658         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2659         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2660         (compare_entries): Rename to...
2661         (compare_probes): ...this.  Adjust function to work with
2662         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2663         respectively.
2664         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2665         `VEC (probe_p) *'.
2666         (print_ui_out_info): Adjust argument to be `struct probe *'.
2667         (info_probes_for_ops): Adjust internal computations to use
2668         `VEC (probe_p) *'.
2669         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2670         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2671         gen_info_probes_table_values>: Remove `objfile' argument.
2672         (struct probe) <objfile>: New field.
2673         (find_probe_by_pc): Remove `objfile' argument.
2674         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2675         (stap_get_probe_argument_count): Likewise.
2676         (stap_get_arg): Likewise.
2677         (stap_evaluate_probe_argument): Likewise.
2678         (stap_compile_to_ax): Likewise.
2679         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2680         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2681         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2682         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2683         sym_compile_to_ax>: Likewise.
2684
2685 2012-07-18  Terry Guo  <terry.guo@arm.com>
2686
2687         PR 14329
2688         * defs.h (GDB_MI_MSG_WIDTH): New.
2689         * ser_base (ser_base_read_error_fd): New function.
2690         (do_ser_base_readchar): Poll error file descriptor as well as
2691         standard output.
2692         (generic_readchar): Refactor error handling.
2693
2694 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2695
2696         * NEWS: Create a new section for the next release branch.
2697         Rename the section of the current branch, now that it has
2698         been cut.
2699
2700 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2701
2702         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2703         * version.in: Bump version to 7.5.50.20120718-cvs.
2704
2705 2012-07-17  Keith Seitz  <keiths@redhat.com>
2706
2707         * linespec.c (linespec_parse_line_offset): Make parameter
2708         const.
2709
2710 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2711
2712         PR 11914
2713         * f-valprint.c (info_common_command): New variable frame_id.
2714         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2715         * printcmd.c (print_variable_and_value): Extend function comment.
2716         Add comment for invalidated FRAME.
2717         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2718         FI form FRAME_ID after each print_frame_local_vars.
2719         (struct print_variable_and_value_data): Change frame to frame_id.
2720         (do_print_variable_and_value): New variable frame, initialize it from
2721         p->frame_id.  Add comment for invalidated FRAME.
2722         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2723         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2724         for invalidated FRAME.
2725
2726 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2727             Pedro Alves  <palves@redhat.com>
2728
2729         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2730         loop.
2731
2732 2012-07-16  Tom Tromey  <tromey@redhat.com>
2733
2734         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2735
2736 2012-07-15  Doug Evans  <dje@google.com>
2737
2738         * dwarf2read.c (stmt_list_hash): New struct.
2739         (type_unit_group): Embed "per_cu" member, remove pointer.
2740         New union member "t", move member "tus" into it, all uses updated.
2741         New member "hash", replaces member "line_offset, all uses updated.
2742         (quick_file_names): Replace member "offset" with "hash", all uses
2743         updated.
2744         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2745         (hash_file_name_entry, eq_file_name_entry): Call them.
2746         (hash_type_unit_group, eq_type_unit_group): Ditto.
2747         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2748         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2749         (dw2_get_file_names): Update.
2750         (create_type_unit_group): Replace "per_cu" arg with "cu".
2751         All callers updated.  Fix "quick" (.gdb_index) handling.
2752         (get_type_unit_group): Replace "per_cu" arg with "cu".
2753         All callers updated.
2754         (build_type_unit_groups): Don't reset tu_stats.
2755
2756         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2757         "tab_cur_size".  Change member "tab" to be a htab_t.
2758         (create_filename_seen_cache): Update.
2759         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2760         (filename_seen): Update.
2761
2762 2012-07-13  Doug Evans  <dje@google.com>
2763
2764         * symtab.c (filename_seen): Update comment.
2765
2766 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2767             Doug Evans  <dje@google.com>
2768
2769         * buildsym.c (end_symtab_1): Split it to ...
2770         (end_symtab_get_static_block): ... this ...
2771         (end_symtab_from_static_block): ... and this function.
2772         (end_symtab, end_expandable_symtab): Call them.
2773         * buildsym.h (end_symtab_get_static_block)
2774         (end_symtab_from_static_block): New declarations.
2775         * dwarf2read.c (process_full_comp_unit): New variable static_block.
2776         Set its valid CU ranges.
2777
2778 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2779
2780         * dwarf2loc.c (disassemble_dwarf_expression): Handle
2781         DW_OP_GNU_parameter_ref.
2782
2783 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2784
2785         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2786         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2787
2788 2012-07-13  Doug Evans  <dje@google.com>
2789
2790         * symtab.c (output_source_filename): Delete unnecessary forward decl.
2791         (filename_seen_cache): New struct.
2792         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2793         (create_filename_seen_cache): New function.
2794         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2795         (filename_seen): Delete arg "first".  New arg "cache".  All callers
2796         updated.
2797         (output_source_filename_data): New struct.
2798         (output_source_filename): Delete arg "first".  New arg "data".
2799         All callers updated.
2800         (sources_info): Delete local "first".  New locals "data", "cleanups".
2801         Rewrite to use filename_seen_cache.
2802         (add_partial_filename_data): Delete member "first".  New member
2803         "filename_seen_cache".  All uses updated.
2804         (make_source_files_completion_list): Rewrite to use
2805         filename_seen_cache.
2806
2807 2012-07-12  Doug Evans  <dje@google.com>
2808
2809         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2810
2811 2012-07-10  Doug Evans  <dje@google.com>
2812
2813         PR gdb/13498
2814         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2815         all_type_unit_groups, type_unit_groups, tu_stats.
2816         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2817         All uses updated.  Add type_unit_group to union "s".
2818         (type_unit_group): New struct.
2819         (IS_TYPE_UNIT_GROUP): New macro.
2820         (abbrev_table): Delete unused member "section".
2821         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2822         (dw2_get_cu): Assert not used with type_unit_group.
2823         (dw2_get_primary_cu): New function.
2824         (dw2_build_type_unit_groups_reader): New function.
2825         (dw2_build_type_unit_groups): New function.
2826         (dw2_get_file_names): Assert not called on type units.
2827         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2828         Redo loop to iterate over type unit groups instead of type units.
2829         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2830         (read_abbrev_offset): New function.
2831         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
2832         updated.
2833         (create_partial_symtab): New function.
2834         (process_psymtab_comp_unit_reader): Assert not used with type units.
2835         Call create_partial_symtab.
2836         (process_psymtab_type_unit): Delete.
2837         (hash_type_unit_group, eq_type_unit_group): New functions.
2838         (allocate_type_unit_groups_table): New function.
2839         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2840         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2841         (create_type_unit_group, get_type_unit_group): New functions.
2842         (tu_abbrev_offset): New struct.
2843         (sort_tu_by_abbrev_offset): New function.
2844         (add_type_unit_group_to_table): New function.
2845         (build_type_unit_groups): New function.
2846         (build_type_psymtabs_reader): New function.
2847         (build_type_psymtab_dependencies): New function.
2848         (build_type_psymtabs): Rewrite.
2849         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2850         is seen in a type unit.
2851         (process_queue): Move symtab expansion debugging printfs here.
2852         Call process_full_type_unit for type units.
2853         (compute_symtab_includes): Assert not called for type units.
2854         (process_cu_includes): Don't call compute_symtab_includes for
2855         type units.
2856         (process_full_type_unit): New function.
2857         (process_imported_unit_die): Flag an error if called for type units.
2858         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
2859         updated.  Assert not called for type units.
2860         (read_file_scope): Call dwarf2_start_symtab.
2861         (setup_type_unit_groups): New function.
2862         (read_type_unit_scope): Rewrite.
2863         (abbrev_table_read_table): Initialize abbrev_table->offset.
2864         (abbrev_table_free_cleanup): New function.
2865         (dwarf2_start_symtab): New function.
2866         (load_full_type_unit): Assert not called for type unit groups.
2867         * buildsym.c (finish_block_internal): New arg "expandable".
2868         All callers updated.
2869         (start_symtab): Move most contents to ...
2870         (restart_symtab): ... here.  New function.
2871         (reset_symtab_globals): New function.
2872         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
2873         Call reset_symtab_globals.
2874         (end_symtab, end_expandable_symtab): New functions.
2875         (set_missing_symtab, augment_type_symtab): New functions.
2876         * buildsym.h (end_expandable_symtab): Declare.
2877         (augment_type_symtab, restart_symtab): Declare.
2878         * psympriv.h (struct partial_symtab): New member "anonymous".
2879         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2880         anonymous psymtabs.
2881         (read_psymtabs_with_filename): Ditto.
2882         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2883         (expand_symtabs_matching_via_partial): Ditto.
2884         (dump_psymtab): Update.
2885         * dictionary.c (dict_add_pending): New function.
2886         * dictionary.h (dict_add_pending): Declare.
2887
2888 2012-07-09  Doug Evans  <dje@google.com>
2889
2890         * buildsym.c (start_subfile): Remove unnecessary check for
2891         name == NULL.
2892
2893         * psymtab.c (allocate_psymtab): Use host_address_to_string.
2894
2895         * dwarf2read.c (load_full_type_unit): Simplify.
2896
2897         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2898         to struct signatured_type **.  All uses updated.
2899
2900         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2901         All callers updated.
2902
2903 2012-07-09  Tom Tromey  <tromey@redhat.com>
2904
2905         * c-exp.y (check_parameter_typelist): New function.
2906         (parameter_typelist): Call it.
2907         * eval.c (make_params): Handle '(void)' case.
2908         * gdbtypes.c (lookup_function_type_with_arguments): Handle
2909         '(void)' case.
2910
2911 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2912
2913         * common/linux-ptrace.c: Include gdb_assert.h.
2914         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2915         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2916         stdint.h.
2917         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2918         functions.
2919         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2920         * linux-nat.c (linux_child_post_attach)
2921         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2922
2923 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2924
2925         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2926         nptl <2.7 bug workaround for core files.
2927
2928 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2929
2930         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2931         clearing.
2932         (save_siginfo): Remove.
2933         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2934         call.
2935         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2936         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2937         * linux-nat.h (struct lwp_info): Remove field siginfo.
2938
2939 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2940
2941         Code cleanup for the next patch.
2942         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2943         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2944         call for it.
2945         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2946         (ia64_linux_stopped_data_address):
2947         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2948         the return value.
2949         * linux-nat.h (linux_nat_get_siginfo): Likewise.
2950         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2951         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2952         call for it.
2953
2954 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2955
2956         PR 14321
2957         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2958         Increase buffer sizes to 2x we need, not just 2x of the previous size.
2959
2960 2012-07-06  Tom Tromey  <tromey@redhat.com>
2961
2962         * c-exp.y (DOTDOTDOT): New token.
2963         (func_mod, exp): Use parameter_typelist.
2964         (parameter_typelist): New production.
2965         (tokentab3): Add "..." token.
2966         * eval.c (make_params): Handle varargs.
2967         * gdbtypes.c (lookup_function_type_with_arguments): Handle
2968         varargs.
2969
2970 2012-07-06  Tom Tromey  <tromey@redhat.com>
2971
2972         PR exp/9608:
2973         * c-exp.y (%union) <tvec>: Change type.
2974         (func_mod): Now uses <tvec> type.
2975         (exp): Update for tvec change.
2976         (direct_abs_decl): Push the typelist.
2977         (func_mod): Return a typelist.
2978         (nonempty_typelist): Update for tvec change.
2979         * gdbtypes.c (lookup_function_type_with_arguments): New function.
2980         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2981         * parse.c (pop_type_list): New function.
2982         (push_typelist): New function.
2983         (follow_types): Handle tp_function_with_arguments.
2984         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
2985         (enum type_pieces) <tp_function_with_arguments>: New constant.
2986         (union type_stack_elt) <typelist_val>: New field.
2987         (push_typelist): Declare.
2988
2989 2012-07-06  Tom Tromey  <tromey@redhat.com>
2990
2991         * c-exp.y (%union) <type_stack>: New field.
2992         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
2993         (ptr_operator_ts): New production.
2994         (ptype): Update.
2995         * parse.c (type_stack_reserve): New function.
2996         (check_type_stack_depth): Use it.
2997         (pop_type_stack, append_type_stack, push_type_stack)
2998         (get_type_stack, type_stack_cleanup): New functions.
2999         (follow_types): Handle tp_type_stack.
3000         (_initialize_parse): Simplify initialization.
3001         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3002         constant.
3003         (union type_stack_elt) <stack_val>: New field.
3004         (get_type_stack, append_type_stack, push_type_stack)
3005         (type_stack_cleanup): Declare.
3006
3007 2012-07-06  Tom Tromey  <tromey@redhat.com>
3008
3009         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3010         Remove.
3011         (struct type_stack): New.
3012         * parse.c (type_stack, type_stack_size, type_stack_depth):
3013         Remove.
3014         (type_stack): New global.
3015         (parse_exp_in_context, check_type_stack_depth)
3016         (insert_into_type_stack, insert_type, push_type, push_type_int)
3017         (insert_type_address_space, pop_type, pop_type_int)
3018         (_initialize_parse): Update.
3019
3020 2012-07-06  Tom Tromey  <tromey@redhat.com>
3021
3022         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3023         Remove %type.
3024
3025 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3026
3027         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3028
3029 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3030             Jan Kratochvil  <jan.kratochvil@redhat.com>
3031
3032         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3033         alloca with xmalloc/xfree.
3034
3035 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3036
3037         * MAINTAINERS (Write After Approval): Add myself to the list.
3038
3039 2012-07-05  Doug Evans  <dje@google.com>
3040
3041         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3042
3043 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3044
3045         * ax-gdb.c (cli/cli-utils.h): New include.
3046         (linespec.h): Ditto.
3047         (agent_eval_command_one): New function.
3048         (agent_command_1): Ditto.
3049         (agent_command): Call function agent_command_1.
3050         (agent_eval_command): Ditto.
3051         (_initialize_ax_gdb): Change help for "maint agent"
3052         and "maint agent-eval".
3053
3054 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3055
3056         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3057         * cli/cli-utils.c (check_for_argument): New function.
3058         * cli/cli-utils.h (check_for_argument): Ditto.
3059
3060 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3061
3062         * NEWS: Mention x32 ABI support.
3063
3064 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3065
3066         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3067         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3068
3069         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3070         and pc_regnum_from_eax to -1.  Update SP regnum from
3071         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3072         needed.
3073
3074         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3075         pc_regnum_from_eax.
3076
3077 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3078
3079         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3080         * dwarf2expr.h: Include gdbtypes.h.
3081         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3082         these forward declarations.
3083         (cu_offset, sect_offset): Move these ...
3084         * gdbtypes.h: Remove include dwarf2expr.h.
3085         (cu_offset, sect_offset): ... here.
3086
3087 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3088
3089         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3090         (amd64_linux_sigtramp_code): This.
3091         (amd64_x32_linux_sigtramp_code): New.
3092         (LINUX_SIGTRAMP_LEN): Updated.
3093         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3094
3095 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3096
3097         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3098
3099 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3100
3101         * config.in: Regenerate.
3102         * configure: Regenerate.
3103         * configure.ac: Remove check for gnu/libc-version.h.
3104         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3105         gnu/libc-version.h.
3106         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3107         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3108         inferior_has_bug.  Extend the comment.
3109
3110 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3111
3112         * linux-thread-db.c (inferior_has_bug): New function.
3113         (thread_db_find_new_threads_silently): Return boolean as checked by
3114         inferior_has_bug, describe it in the comments.
3115         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3116         earlier.  Abort the initialization if it returned non-zero.
3117         (thread_db_new_objfile): Exclude debug files.
3118         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3119         if UNTIL_NO_NEW,
3120
3121 2012-07-02  Doug Evans  <dje@google.com>
3122
3123         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3124         related to queue management.
3125
3126         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3127         instead of "debug dwarf2-die" in debugging printfs.
3128         (create_debug_info_hash_table_reader): Ditto.
3129         (create_debug_info_hash_table): Ditto.
3130         (init_dwo_file): Ditto.
3131         (init_cutu_and_read_dies): Add debugging printf.
3132         (init_cutu_and_read_dies_no_follow): Ditto.
3133         (process_psymtab_comp_unit_reader): Ditto.
3134
3135 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3136
3137         Add target-side support for dynamic printf.
3138         * NEWS: Mention the additional style.
3139         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3140         (struct bp_location): New field cmd_bytecode.
3141         * breakpoint.c: Include format.h.
3142         (disconnected_dprintf): New global.
3143         (parse_cmd_to_aexpr): New function.
3144         (build_target_command_list): New function.
3145         (insert_bp_location): Call it.
3146         (remove_breakpoints_pid): Skip dprintf breakpoints.
3147         (print_one_breakpoint_location): Ditto.
3148         (dprintf_style_agent): New global.
3149         (dprintf_style_enums): Add dprintf_style_agent.
3150         (update_dprintf_command_list): Add agent case.
3151         (agent_printf_command): New function.
3152         (_initialize_breakpoint): Add new commands.
3153         * common/ax.def (printf): New bytecode.
3154         * ax.h (ax_string): Declare.
3155         * ax-gdb.h (gen_printf): Declare.
3156         * ax-gdb.c: Include cli-utils.h, format.h.
3157         (gen_printf): New function.
3158         (maint_agent_print_command): New function.
3159         (_initialize_ax_gdb): Add maint agent-printf command.
3160         * ax-general.c (ax_string): New function.
3161         (ax_print): Add printf disassembly.
3162         * Makefile.in (SFILES): Add format.c
3163         (COMMON_OBS): Add format.o.
3164         * common/format.h: New file.
3165         * common/format.c: New file.
3166         * printcmd.c: Include format.h.
3167         (ui_printf): Call parse_format_string.
3168         * remote.c (remote_state): New field breakpoint_commands.
3169         (PACKET_BreakpointCommands): New enum.
3170         (remote_breakpoint_commands_feature): New function.
3171         (remote_protocol_features): Add new BreakpointCommands entry.
3172         (remote_can_run_breakpoint_commands): New function.
3173         (remote_add_target_side_commands): New function.
3174         (remote_insert_breakpoint): Call it.
3175         (remote_insert_hw_breakpoint): Ditto.
3176         (_initialize_remote): Add new packet configuration for
3177         target-side breakpoint commands.
3178         * target.h (struct target_ops): New field
3179         to_can_run_breakpoint_commands.
3180         (target_can_run_breakpoint_commands): New macro.
3181         * target.c (update_current_target): Handle
3182         to_can_run_breakpoint_commands.
3183
3184 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3185
3186         Execute -ix and -iex only after system and user gdbinit files.
3187         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3188         processing down after gdbinit files.
3189
3190 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3191
3192         Add fnmatch-gnu module.
3193         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3194         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3195         * gnulib/aclocal.m4: Regenerate.
3196         * gnulib/config.in: Regenerate.
3197         * gnulib/configure: Regenerate.
3198         * gnulib/import/dummy.c: Remove.
3199         * gnulib/import/Makefile.am: Regenerate.
3200         * gnulib/import/Makefile.in: Likewise.
3201         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3202         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3203         * gnulib/import/alloca.c: New file.
3204         * gnulib/import/alloca.in.h: Likewise.
3205         * gnulib/import/config.charset: Likewise.
3206         * gnulib/import/fnmatch.c: Likewise.
3207         * gnulib/import/fnmatch.in.h: Likewise.
3208         * gnulib/import/fnmatch_loop.c: Likewise.
3209         * gnulib/import/localcharset.c: Likewise.
3210         * gnulib/import/localcharset.h: Likewise.
3211         * gnulib/import/m4/alloca.m4: Likewise.
3212         * gnulib/import/m4/codeset.m4: Likewise.
3213         * gnulib/import/m4/configmake.m4: Likewise.
3214         * gnulib/import/m4/fcntl-o.m4: Likewise.
3215         * gnulib/import/m4/fnmatch.m4: Likewise.
3216         * gnulib/import/m4/glibc21.m4: Likewise.
3217         * gnulib/import/m4/localcharset.m4: Likewise.
3218         * gnulib/import/m4/locale-fr.m4: Likewise.
3219         * gnulib/import/m4/locale-ja.m4: Likewise.
3220         * gnulib/import/m4/locale-zh.m4: Likewise.
3221         * gnulib/import/m4/mbrtowc.m4: Likewise.
3222         * gnulib/import/m4/mbsinit.m4: Likewise.
3223         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3224         * gnulib/import/m4/mbstate_t.m4: Likewise.
3225         * gnulib/import/m4/stdbool.m4: Likewise.
3226         * gnulib/import/m4/wchar_h.m4: Likewise.
3227         * gnulib/import/m4/wctype_h.m4: Likewise.
3228         * gnulib/import/m4/wint_t.m4: Likewise.
3229         * gnulib/import/mbrtowc.c: Likewise.
3230         * gnulib/import/mbsinit.c: Likewise.
3231         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3232         * gnulib/import/mbsrtowcs-state.c: Likewise.
3233         * gnulib/import/mbsrtowcs.c: Likewise.
3234         * gnulib/import/ref-add.sin: Likewise.
3235         * gnulib/import/ref-del.sin: Likewise.
3236         * gnulib/import/stdbool.in.h: Likewise.
3237         * gnulib/import/streq.h: Likewise.
3238         * gnulib/import/strnlen1.c: Likewise.
3239         * gnulib/import/strnlen1.h: Likewise.
3240         * gnulib/import/verify.h: Likewise.
3241         * gnulib/import/wchar.in.h: Likewise.
3242         * gnulib/import/wctype.in.h: Likewise.
3243
3244 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3245
3246         Support shell wildcards for 'set auto-load safe-path'.
3247         * auto-load.c: Include fnmatch.h.
3248         (filename_is_in_dir): Rename to ...
3249         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3250         it.  Update function comment.  Rename dir_len to pattern_len.  New
3251         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3252         messages.  Use gdb_filename_fnmatch.
3253         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3254         pattern.
3255         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3256         * defs.h (gdb_filename_fnmatch): New declaration.
3257         * utils.c: Include fnmatch.h.
3258         (gdb_filename_fnmatch): New function.
3259
3260 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3261
3262         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3263         `-probe' and `-probe-stap' options.
3264
3265 2012-07-01  Yao Qi  <yao@codesourcery.com>
3266
3267         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3268         always_inserted_off, and always_inserted_enums.
3269         Change always_inserted_mode's type to 'enum auto_boolean'.
3270         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3271         callers.
3272         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3273         of add_setshow_enum_cmd.
3274         * infrun.c: Remove can_use_displaced_stepping_auto,
3275         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3276         can_use_displaced_stepping_enum.
3277         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3278         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3279         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3280         add_setshow_enum_cmd.
3281
3282 2012-06-30  Doug Evans  <dje@google.com>
3283
3284         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3285         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3286         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3287
3288 2012-06-29  Doug Evans  <dje@google.com>
3289
3290         * linespec.c: #include "stack.h".
3291         (decode_line_with_current_source): Moved here from symtab.c and
3292         renamed from decode_line_spec.  All callers updated.
3293         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3294         renamed from decode_line_spec_1.  All callers updated.
3295         * linespec.h (decode_line_with_current_source): Move declaration here
3296         from symtab.h and renamed from decode_line_spec.
3297         (decode_line_with_last_displayed): Move declaration here from symtab.h
3298         and renamed from decode_line_spec_1.
3299         * macrocmd.c: #include "linespec.h".
3300         * symtab.c: Remove #include "linespec.h".
3301
3302 2012-06-28  Doug Evans  <dje@google.com>
3303
3304         * dwarf2read.c (get_cu_length): New function.
3305         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3306         (create_debug_types_hash_table): Ditto.
3307         (init_cutu_and_read_dies): Ditto.
3308         (init_cutu_and_read_dies_no_follow): Ditto.
3309
3310         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3311
3312         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3313         (struct abbrev_table): Define.
3314         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3315         abbrev_table.
3316         (init_cutu_and_read_dies): Update.
3317         (abbrev_table_alloc_abbrev): New function.  Replaces
3318         dwarf_alloc_abbrev.  All callers updated.
3319         (abbrev_table_add_abbrev): New function.
3320         (abbrev_table_lookup_abbrev): New function.  Replaces
3321         dwarf2_lookup_abbrev.  All callers updated.
3322         (abbrev_table_read_table): New function.  Contents moved here from
3323         dwarf2_read_abbrevs.
3324         (dwarf2_read_abbrevs): Call it.
3325         (abbrev_table_free): New function.
3326         (dwarf2_free_abbrev_table): Call it.
3327
3328 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3329
3330         * osdata.c (info_osdata_command): Filter out "Title" columns
3331         from non-MI uses.
3332         * common/linux-osdata.c (struct osdata_type): Add title field.
3333         (osdata_table): Add titles to each entry.
3334         (linux_command_xfer_osdata): Add a column for title data.
3335
3336 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3337
3338         Make logging work for MI.
3339         * NEWS: Mention it.
3340         * interps.h (interp_set_logging_ftype): New typedef.
3341         (struct interp_procs): New field set_logging_proc.
3342         (current_interp_set_logging): Declare.
3343         * interps.c (current_interp_set_logging): New function.
3344         * cli/cli-logging.c: Include interps.h.
3345         (set_logging_redirect): Call current_interp_set_logging.
3346         (pop_output_files): Ditto.
3347         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3348         * mi/mi-console.h (mi_console_set_raw): Declare.
3349         * mi/mi-console.c (mi_console_set_raw): New function.
3350         * mi/mi-interp.c (saved_raw_stdout): New global.
3351         (mi_set_logging): New function.
3352         (_initialize_mi_interp): Add it to interp procs.
3353
3354 2012-06-28  Doug Evans  <dje@google.com>
3355
3356         * symtab.c (lookup_symbol_aux_objfile): Use
3357         ALL_OBJFILE_PRIMARY_SYMTABS.
3358
3359         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3360
3361 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3362
3363         * common/buffer.c: Include inttypes.h and stdint.h.
3364         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3365
3366 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3367             Pedro Alves  <palves@redhat.com>
3368
3369         * gdbthread.h (ALL_THREADS): New macro.
3370         (thread_list): Declare.
3371         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3372         going, but instead fall through to the stepping handling.
3373         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3374         the passed in signal.  Adjust debug output.
3375         (resume_callback): Rename to ...
3376         (linux_nat_resume_callback): ... this.  Pass the thread's last
3377         stop signal, if in "pass" state.
3378         (linux_nat_resume): Adjust to rename.
3379         (stop_wait_callback): New assertion.  Don't respawn signals;
3380         instead let the LWP remain with SIGNALLED set.
3381         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3382         * remote.c (append_pending_thread_resumptions): New.
3383         (remote_vcont_resume): Call it.
3384         * target.h (target_resume): Extend comment.
3385
3386 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3387
3388         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3389
3390 2012-06-27  Doug Evans  <dje@google.com>
3391
3392         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3393         Delete have_addr_base, unused.  All uses updated.
3394         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3395         (dwarf2_get_pc_bounds): Add ranges_base.
3396         (dwarf2_record_block_ranges): Ditto.
3397
3398 2012-06-27  Tom Tromey  <tromey@redhat.com>
3399
3400         PR macros/7961:
3401         * varobj.c (varobj_create): Update.
3402         (varobj_set_value): Update.
3403         * tracepoint.c (validate_actionline): Update.
3404         (encode_actions_1): Update.
3405         * parse.c (parse_exp_1): Add 'pc' argument.
3406         (parse_exp_in_context): Add 'pc' argument.  Change how
3407         expression_context_pc is set.
3408         (parse_expression): Update.
3409         (parse_field_expression): Update.
3410         * expression.h (parse_exp_1): Update.
3411         * eval.c (parse_to_comma_and_eval): Update.
3412         * breakpoint.c (set_breakpoint_condition): Update.
3413         (update_watchpoint): Update.
3414         (init_breakpoint_sal): Update
3415         (find_condition_and_thread): Update.
3416         (watch_command_1): Update.
3417         (update_breakpoint_locations): Update.
3418         * ada-lang.c (ada_read_renaming_var_value): Update.
3419         (create_excep_cond_exprs): Update.
3420
3421 2012-06-27  Doug Evans  <dje@google.com>
3422
3423         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3424         type units.
3425
3426 2012-06-26  Doug Evans  <dje@google.com>
3427
3428         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3429         prototype.
3430         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3431         updated.
3432         (read_and_check_comp_unit_head): Ditto.
3433         (read_and_check_type_unit_head): Ditto.
3434
3435 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3436
3437         New attribute 'last' for gdb.Symtab_and_line.
3438         * NEWS (Python Scripting): Add entry about the new attribute.
3439         * python/py-symtab.c (salpy_get_last): New function which
3440         implements the get method for the 'last' attribute of
3441         gdb.Symtab_and_line.
3442         (sal_object_getset): Add entry for the 'last' attribute.
3443
3444 2012-06-26  Doug Evans  <dje@google.com>
3445
3446         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3447         (dwo_sections): Add macinfo, macro.
3448         (dwarf2_locate_dwo_sections): Watch for macro sections.
3449         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3450         All callers updated.  Handle DWO files.
3451
3452         * NEWS: Mention new options "set debug dwarf2-read" and
3453         "set debug symtab-create".
3454         * dwarf2read.c (dwarf2_read_debug): New static global.
3455         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3456         (process_queue): Ditto.
3457         (process_full_comp_unit): Ditto.
3458         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3459         * elfread.c (elf_symfile_read): Add debugging printf.
3460         * minsyms.c (install_minimal_symbols): Ditto.
3461         * psymtab.c (allocate_psymtab): Ditto.
3462         * symfile.c (allocate_symtab): Ditto.
3463         * symtab.c (symtab_create_debug): New global.
3464         (_initialize_symtab): Add new option "set debug symtab-create".
3465         * symtab.h (symtab_create_debug): Declare.
3466
3467         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3468         (lookup_dwo_type_unit): Ditto.
3469
3470 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3471             H.J. Lu  <hongjiu.lu@intel.com>
3472
3473         * amd64-linux-nat.c: Include <sys/user.h>.
3474         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3475         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3476         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3477
3478         * configure.ac: Check if the fs_base and gs_base members of
3479         `struct user_regs_struct' exist.
3480         * config.in: Regenerated.
3481         * configure: Likewise.
3482
3483 2012-06-25  Michael Eager  <eager@eagercon.com>
3484
3485         PR python/14291
3486         * python/python.c (gdbpy_write): Check for interrupted output.
3487
3488 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3489
3490         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3491         register as a stack alignment in ARM mode.
3492
3493 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3494
3495         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3496         * gnulib/config.in: Regenerate.
3497         * gnulib/configure: Likewise.
3498         * gnulib/import/m4/extensions.m4: Update it.
3499         * gnulib/import/m4/gnulib-common.m4: Likewise.
3500         * gnulib/import/m4/memmem.m4: Likewise.
3501         * gnulib/import/m4/mmap-anon.m4: Likewise.
3502         * gnulib/import/m4/multiarch.m4: Likewise.
3503         * gnulib/import/stdint.in.h: Likewise.
3504
3505 2012-06-24  Yao Qi  <yao@codesourcery.com>
3506
3507         * corefile.c (write_memory_with_notification): New.
3508         * gdbcore.h: Declare write_memory_with_notification.
3509         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3510         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3511         * valops.c (value_assign): Likewise.
3512         * python/py-inferior.c (infpy_write_memory): Call
3513         'write_memory_with_notification'.
3514
3515 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3516
3517         * cc-with-index.sh: Use also -ex "set auto-load no".
3518
3519 2012-06-23  Doug Evans  <dje@google.com>
3520
3521         PR 14125
3522         * NEWS: Document additions to .gdb_index.
3523         * dwarf2read.c: #include "gdb/gdb-index.h".
3524         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3525         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3526         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3527         (dwarf2_read_index): Recognize version 7.
3528         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3529         block_kind, domain): All callers updated.
3530         (dw2_find_symbol_file): Handle new index CU values.
3531         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3532         (add_index_entry): New args is_static, kind.  All callers updated.
3533         (offset_type_compare, uniquify_cu_indices): New functions
3534         (symbol_kind): New function.
3535         (write_psymtabs_to_index): Remove duplicate CU values.
3536         (write_psymtabs_to_index): Write .gdb_index version 7.
3537
3538 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3539
3540         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3541         * configure: Regenerate.
3542
3543 2012-06-20  Yao Qi  <yao@codesourcery.com>
3544
3545         * python/py-inferior.c: Update comments of infpy_read_memory
3546         and infpy_write_memory.
3547
3548 2012-06-19  Tom Tromey  <tromey@redhat.com>
3549
3550         PR exp/9514:
3551         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3552         (push_type_address_space): Remove.
3553         * parse.c (insert_into_type_stack): New function.
3554         (insert_type): Likewise.
3555         (insert_type_address_space): Rename from push_type_address_space.
3556         Insert tp_space_identifier.
3557         * c-exp.y (ptr_operator): New production.
3558         (abs_decl): Use ptr_operator.
3559         (space_identifier): Call insert_type_address_space.
3560         (ptype): Don't use const_or_volatile_or_space_identifier.
3561         (const_or_volatile_noopt): Call insert_type.
3562         (conversion_type_id, conversion_declarator): New productions.
3563         (operator): Use conversion_type_id.
3564
3565 2012-06-18  Doug Evans  <dje@google.com>
3566
3567         * symtab.h (minimal_symbol): New member created_by_gdb.
3568         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3569         created by gdb.
3570         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3571         (search_symbols): Call it instead of lookup_symbol.
3572         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3573
3574         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3575         Adjust address for DW_OP_GNU_addr_index.
3576         * dwarf2expr.h (dwarf_expr_context): Update comment.
3577         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3578         all callers updated.  Handle TLS vars described with
3579         DW_OP_GNU_const_index.
3580         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3581         and DW_OP_GNU_const_index.
3582         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3583
3584         * block.c (find_block_in_blockvector): Make explicit the fact that we
3585         ignore GLOBAL_BLOCK.
3586
3587 2012-06-18  Tom Tromey  <tromey@redhat.com>
3588
3589         * c-exp.y (operator): Remove trailing space after "delete" and
3590         "delete[]".
3591
3592 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3593             Jan Kratochvil  <jan.kratochvil@redhat.com>
3594
3595         Switch i386 and derived targets to ON_STACK.
3596         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3597         (amd64_dicos_init_abi): Remove its installment.
3598         * dicos-tdep.c (dicos_init_abi): Remove the
3599         set_gdbarch_call_dummy_location call.  Update the comment here.
3600         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3601         (i386_dicos_init_abi): Remove its installment.
3602         * i386-tdep.c (i386_push_dummy_code): New function.
3603         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3604         i386_push_dummy_code.
3605
3606 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3607
3608         Remove stale dummy frames.
3609         * breakpoint.c: Include dummy-frame.h.
3610         (longjmp_breakpoint_ops): New variable.
3611         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3612         bp_longjmp_call_dummy.
3613         (bpstat_what, bptype_string, print_one_breakpoint_location)
3614         (init_bp_location): Support bp_longjmp_call_dummy.
3615         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3616         (set_longjmp_breakpoint_for_call_dummy)
3617         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3618         functions.
3619         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3620         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3621         FIXME comment and extend the other comment for bp_call_dummy.
3622         (set_longjmp_breakpoint_for_call_dummy)
3623         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3624         * dummy-frame.c: Include gdbthread.h.
3625         (pop_dummy_frame_bpt): New function.
3626         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3627         (dummy_frame_discard): New function.
3628         (cleanup_dummy_frames): Update the comment about longjmps.
3629         * dummy-frame.h (dummy_frame_discard): New declaration.
3630         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3631         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3632         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3633         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3634         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3635         keep_going if IS_LONGJMP and there is no other reason to stop.
3636
3637 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3638
3639         * remote-sim.c (sim_command_completer): Initialize
3640         variable 'result'.
3641
3642 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3643
3644         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3645         * dwarf2loc.c (call_site_parameter_matches): Support
3646         CALL_SITE_PARAMETER_PARAM_OFFSET.
3647         (needs_dwarf_reg_entry_value): Push stub value.
3648         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3649         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3650         * gdbtypes.h (enum call_site_parameter_kind): New item
3651         CALL_SITE_PARAMETER_PARAM_OFFSET.
3652         (struct call_site.parameter.u): New field param_offset.
3653
3654 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3655
3656         Code cleanup: Generalize call_site.parameter key.
3657         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3658         variable dwarf_reg.  New variable kind_u.  Update parameters to
3659         push_dwarf_reg_entry_value.
3660         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3661         * dwarf2expr.h (enum call_site_parameter_kind)
3662         (union call_site_parameter_u): Forward declarations.
3663         (struct dwarf_expr_context_funcs): Update parameters and their
3664         description for push_dwarf_reg_entry_value.
3665         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3666         * dwarf2loc.c (call_site_parameter_matches): New function.
3667         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3668         description.  Use call_site_parameter_matches.
3669         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3670         Update parameters and their description.
3671         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3672         New variable kind_u.  Adjust the caller for updated parameters.
3673         (needs_dwarf_reg_entry_value): Update parameters.
3674         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3675         instead of attr.  Update for the changed fields of struct
3676         call_site_parameter.
3677         * gdbtypes.h: Include dwarf2expr.h.
3678         (enum call_site_parameter_kind): New.
3679         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3680         fb_offset into new union u.
3681
3682 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3683
3684         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3685         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3686         for x32.
3687
3688 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3689
3690         * amd64-linux-nat.c (compat_x32_clock_t): New.
3691         (compat_x32_siginfo_t): Likewise.
3692         (compat_x32_siginfo_from_siginfo): Likewise.
3693         (siginfo_from_compat_x32_siginfo): Likewise.
3694         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3695         and siginfo_from_compat_x32_siginfo for x32.
3696
3697 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3698
3699         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3700
3701 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3702
3703         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3704         instead of gdbarch_ptr_bit.
3705         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3706         (amd64_supply_native_gregset): Likewise.
3707         (amd64_collect_native_gregset): Likewise.
3708         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3709         (amd64_supply_xsave): Likewise.
3710         (amd64_collect_fxsave): Likewise.
3711         (amd64_collect_xsave): Likewise.
3712
3713 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3714
3715         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3716         (amd64_linux_read_description): Check DS segment register for
3717         x32 process.
3718
3719 2012-06-15  Tom Tromey  <tromey@redhat.com>
3720
3721         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3722         init_cutu_and_read_dies.
3723
3724 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3725
3726         * MAINTAINERS (Write After Approval): Add myself to the list.
3727
3728 2012-06-15  Tom Tromey  <tromey@redhat.com>
3729
3730         * valops.c (value_find_oload_method_list): Now static.
3731         * value.h (value_find_oload_method_list): Don't declare.
3732
3733 2012-06-15  Tom Tromey  <tromey@redhat.com>
3734
3735         * valops.c (find_overload_match): Use value_ind.
3736
3737 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
3738
3739         * infrun.c (handle_inferior_event): Correct indentation.
3740
3741 2012-06-14  Doug Evans  <dje@google.com>
3742
3743         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3744         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3745         All uses updated.
3746         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
3747         updated.  Handle DEBUG_LOC_START_LENGTH.
3748         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3749         (loclist_describe_location): Ditto.
3750
3751 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
3752
3753         PR backtrace/13866
3754         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3755         after hiding inline functions.
3756
3757 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3758
3759         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3760         _initialize_inf_ttrace.
3761
3762 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3763
3764         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3765         _initialize_hppa_hpux_nat.
3766
3767 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3768
3769         * remote-sim.c (sim_command_completer): Change type of return
3770         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
3771
3772 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3773             Jan Kratochvil  <jan.kratochvil@redhat.com>
3774
3775         PR tdep/14222
3776         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3777         stack on a 16-byte boundary.
3778
3779 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
3780
3781         * jit.c (finalize_symtab): Set function's return type to 'void' by
3782         default.
3783
3784 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3785             H.J. Lu  <hongjiu.lu@intel.com>
3786
3787         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3788         Move bits common to both the classic LP64 and the new x32 ILP32
3789         ABI here.
3790         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3791         (amd64_x32_linux_init_abi): New function.
3792         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3793         subtype.
3794
3795         * i386-tdep.h (i386_pseudo_register_name): New prototype.
3796         * i386-tdep.c (i386_pseudo_register_name): Make public.
3797         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3798         * amd64-tdep.c (amd64_dword_names): Add "eip".
3799         (amd64_x32_pseudo_register_type): New function
3800         (amd64_x32_init_abi): New function.
3801
3802 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3803
3804         PR build/14003
3805         * inferior.h (struct inferior_suspend_state): Comment out.
3806         (struct inferior): Comment out the field suspend.
3807         * infrun.c (struct infcall_suspend_state): Comment out the field
3808         inferior_suspend.
3809         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3810         out its assignment.
3811
3812 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3813
3814         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3815         * c-exp.y (classify_inner_name): Remove caller assumptions in the
3816         function comment.  Return ERROR for unresolved cases.  Implement
3817         returning proper NAME.
3818         (yylex): Accept also NAME from classify_inner_name.
3819         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3820         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
3821         LOC_TYPEDEF type.
3822         * cp-support.h (cp_lookup_nested_type): Update its declaration.
3823
3824 2012-06-13  Tom Tromey  <tromey@redhat.com>
3825
3826         * breakpoint.c (condition_completer): New function.
3827         (_initialize_breakpoint): Use it.
3828         * value.c (complete_internalvar): New function.
3829         * value.h (complete_internalvar): Declare.
3830
3831 2012-06-13  Tom Tromey  <tromey@redhat.com>
3832
3833         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3834         * breakpoint.c (catch_syscall_completer): Return a VEC.
3835         * cli/cli-cmds.c (complete_command): Update.
3836         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3837         (complete_on_enum): Likewise.
3838         * command.h: Include gdb_vecs.h.
3839         (completer_ftype): Change return type.
3840         (complete_on_cmdlist, complete_on_enum): Likewise.
3841         * completer.c (noop_completer, filename_completer)
3842         (location_completer): Return a VEC.
3843         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
3844         to a VEC.
3845         (expression_completer, complete_line_internal, complete_line)
3846         (command_completer): Return a VEC.
3847         (gdb_completion_word_break_characters, line_completion_function):
3848         Update.
3849         * completer.h: Include gdb_vecs.h.
3850         (complete_line, noop_completer, filename_completer)
3851         (expression_completer, location_completer, command_completer):
3852         Update.
3853         * f-lang.c (f_word_break_characters): Return a VEC.
3854         * interps.c (interpreter_completer): Return a VEC.
3855         * language.h (struct language_defn)
3856         <la_make_symbol_completion_list>: Return a VEC.
3857         * python/py-cmd.c (cmdpy_completer): Return a VEC.
3858         * symtab.c (free_completion_list): Take a VEC.
3859         (return_val_size, return_val_index): Remove.
3860         (return_val): Now a VEC.
3861         (completion_list_add_name): Update.
3862         (default_make_symbol_completion_list_break_on)
3863         (default_make_symbol_completion_list, make_symbol_completion_list)
3864         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3865         Return a VEC.
3866         (add_filename_to_list): Update.
3867         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3868         <list>: Now a VEC.
3869         (maybe_add_partial_symtab_filename): Update.
3870         (make_source_files_completion_list): Return a VEC.
3871         * symtab.h (default_make_symbol_completion_list_break_on)
3872         (default_make_symbol_completion_list, make_symbol_completion_list)
3873         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3874         (make_source_files_completion_list): Update.
3875
3876 2012-06-13  Tom Tromey  <tromey@redhat.com>
3877
3878         * breakpoint.c (add_catch_command): Use completer_ftype.
3879         * breakpoint.h: Include command.h.
3880         (add_catch_command): Use completer_ftype.
3881         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3882         * cli/cli-decode.h (struct cmd_list_element) <completer>:
3883         Use completer_ftype.
3884         * command.h (completer_ftype): New typedef.
3885         (set_cmd_completer): Use it.
3886         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3887         completer_ftype.
3888
3889 2012-06-13  Pedro Alves  <palves@redhat.com>
3890
3891         Partial revert of previous change.
3892
3893         * serial.c (scb_base): New global.
3894         (serial_for_fd): New.
3895         (serial_open, serial_fdopen_ops): Link new serial in open serials
3896         chain.
3897         (do_serial_close): Unlink serial from the open serials chain.
3898
3899 2012-06-12  Pedro Alves  <palves@redhat.com>
3900
3901         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3902         threads here.
3903         (prepare_for_detach): No longer context switch here in non-stop
3904         mode.
3905         (fetch_inferior_event): Ditto.
3906         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3907         to the event thread before removing breakpoints.  Switch to the
3908         event thread before inserting breakpoints and resuming.
3909         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3910         event thread before resuming.
3911         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3912         Switch to the event thread before removing breakpoints.
3913
3914 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
3915
3916         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3917         special characters correctly for the Windows shells.  See
3918         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3919         report.
3920         [!__MINGW32__]: Remove extra double quote character from special
3921         characters.
3922
3923 2012-06-11  Stan Shebs  <stan@codesourcery.com>
3924
3925         * ui-out.h: Remove #if 0 declarations.
3926         * ui-out.c: Remove #if 0 functions.
3927
3928 2012-06-11  Pedro Alves  <palves@redhat.com>
3929
3930         * ser-base.c (run_async_handler_and_reschedule): New.
3931         (fd_event, push_event): Use it.
3932         * serial.c (serial_open, serial_fdopen_ops): Set the initial
3933         reference count to 1.
3934         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
3935         instead of xfree.
3936         (serial_is_open, serial_ref, serial_unref): New.
3937         * serial.h (serial_open): Adjust comment.
3938         (serial_is_open): Declare.
3939         (serial_close): Adjust comment.
3940         (serial_ref, serial_unref) Declare.
3941         (struct serial): New field 'refcnt'.
3942
3943 2012-06-11  Pedro Alves  <palves@redhat.com>
3944
3945         Remove #if 0'd "connect" command, and unnecessary associated
3946         refcounting and serial reuse bits.
3947
3948         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3949         * serial.c (last_serial_opened): Delete.
3950         (scb_base): Delete.
3951         (serial_open): Adjust.
3952         (serial_for_fd): Delete.
3953         (serial_fdopen_ops, do_serial_close): Adjust.
3954         (serial_fdopen_ops): Adjust.
3955
3956 2012-06-11  Pedro Alves  <palves@redhat.com>
3957
3958         * serial.c (do_serial_close): Remove early return when SCB is
3959         null.
3960
3961 2012-06-11  Tom Tromey  <tromey@redhat.com>
3962
3963         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3964
3965 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3966
3967         Fix regression by the "ambiguous linespec" series.
3968         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
3969         get_last_displayed_symtab and get_last_displayed_line and depending
3970         on CURSAL.
3971
3972 2012-06-11  Tom Tromey  <tromey@redhat.com>
3973
3974         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3975         (dw2_find_symbol_file): Use it.
3976
3977 2012-06-11  Michael Eager  <eager@eagercon.com>
3978
3979         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3980         * mips-linux-tdep.h (mips_signals): New
3981
3982 2012-06-11  Tom Tromey  <tromey@redhat.com>
3983
3984         * infrun.c (handle_inferior_event)
3985         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3986         breakpoint.
3987         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3988         exception logic in all cases.  Update comments.
3989         (insert_longjmp_resume_breakpoint): Set the exception resume
3990         breakpoint.
3991
3992 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
3993
3994         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3995
3996 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
3997
3998         * valarith.c (binop_types_user_defined_p): Fix a typo.
3999
4000 2012-06-08  Yao Qi  <yao@codesourcery.com>
4001             Chung-Lin Tang <cltang@codesourcery.com>
4002
4003         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4004         * arch-utils.h: Declare.
4005         * gdbarch.sh: Add return_in_first_hidden_param_p.
4006         * gdbarch.c, gdbarch.h: Regenerated.
4007         * infcall.c (call_function_by_hand): Call
4008         gdbarch_return_in_first_hidden_param_p instead of
4009         language_pass_by_reference.
4010
4011         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4012         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4013         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4014         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4015         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4016         `cplus_return_struct_by_reference'.
4017         (tic6x_return_value): Handle language cplusplus.
4018         (tic6x_return_in_first_hidden_param_p): New.
4019         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4020
4021 2012-06-07  Doug Evans  <dje@google.com>
4022
4023         * dwarf2read.c (dwarf2_cu): Add comment.
4024
4025 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4026
4027         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4028         variable.
4029         (mips_eabi_push_dummy_call): Likewise.
4030         (mips_n32n64_push_dummy_call): Likewise.
4031         (mips_o32_push_dummy_call): Likewise.
4032         (mips_o64_push_dummy_call): Likewise.
4033
4034 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4035
4036         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4037
4038 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4039
4040         * mips-tdep.c (mips_pseudo_register_type): Use
4041         mips_float_register_p.
4042
4043 2012-06-06  Pedro Alves  <palves@redhat.com>
4044
4045         * infrun.c (handle_inferior_event): Remove calls to
4046         reinit_frame_cache that follow a context_switch call.
4047
4048 2012-06-06  Pedro Alves  <palves@redhat.com>
4049
4050         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4051         context_switch and remove stale comment.
4052
4053 2012-06-06  Pedro Alves  <palves@redhat.com>
4054
4055         * infrun.c (struct execution_control_state): Remove
4056         `new_thread_event' field.
4057         (handle_inferior_event): Simplify new threads handling; don't
4058         resume the inferior if we find a new thread.
4059
4060 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4061
4062         * NEWS: Document the deprecation of SH's 'regs' command.
4063         * inferior.h (all_registers_info): Add function declaration.
4064         * sh-tdep.c (sh_show_regs): Remove variable.
4065         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4066         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4067         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4068         (sh_show_regs_command): Remove functions.
4069         (sh_gdbarch_init): Don't set sh_show_regs.
4070         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4071         'info all-registers'.
4072         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4073         (sh64_show_regs): Remove functions.
4074         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4075
4076 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4077
4078         * configure.ac: Move development=true below AC_INIT.
4079         * configure: Regenerate.
4080
4081 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4082
4083         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4084         gdb_stdout.
4085
4086 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4087
4088         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4089         argument as ssize_t.
4090         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4091         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4092         * target.c (target_read_stack, target_write_memory)
4093         (target_write_raw_memory): Likewise.
4094         * target.h (target_read_stack, target_write_memory)
4095         (target_write_raw_memory): Likewise.
4096
4097 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4098
4099         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4100         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4101         * target.c (target_read_memory): Change LEN to ssize_t.
4102         * target.h (target_read_memory): Change LEN to ssize_t.
4103
4104 2012-06-05  Pedro Alves  <palves@redhat.com>
4105
4106         PR backtrace/13866
4107
4108         * breakpoint.c (until_break_command): Only fetch the selected
4109         frame after decode_line_1.
4110
4111 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4112
4113         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4114         event breakpoint at _start, __start or main if a program
4115         interpreter is not found.
4116
4117 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4118
4119         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4120         Add declaration.
4121         * windows-tdep.c: #include "objfiles.h".
4122         (windows_iterate_over_objfiles_in_search_order): New function.
4123         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4124         iterate_over_objfiles_in_search_order gdbarch method to
4125         windows_iterate_over_objfiles_in_search_order.
4126         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4127
4128 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4129
4130         * gdbarch.sh: Add generation of
4131         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4132         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4133         (iterate_over_objfiles_in_search_order): New gdbarch method.
4134         * gdbarch.h, gdbarch.c: Regenerate.
4135         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4136         Add declaration.
4137         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4138         New function.
4139         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4140         out of lookup_symbol_aux_symtabs.
4141         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4142         call to lookup_symbol_aux_objfile.
4143         (struct global_sym_lookup_data): New type.
4144         (lookup_symbol_global_iterator_cb): New function.
4145         (lookup_symbol_global): Search for symbol using
4146         gdbarch_iterate_over_objfiles_in_search_order and
4147         lookup_symbol_global_iterator_cb.
4148         * findvar.c (struct minsym_lookup_data): New type.
4149         (minsym_lookup_iterator_cb): New function.
4150         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4151         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4152         and minsym_lookup_iterator_cb.
4153
4154 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4155
4156         Revert the following patch:
4157         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4158         try locating the symbol in the symbol's own objfile first, before
4159         extending the search to all objfiles.
4160         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4161         out of lookup_symbol_aux_symtabs.
4162         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4163         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4164         Do not search EXCLUDE_OBJFILE.
4165         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4166         (lookup_symbol_global): Search for matches in the block's objfile
4167         first, before searching all other objfiles.
4168
4169 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4170
4171         * breakpoint.c (find_condition_and_thread): Stop parsing
4172         as soon as the first invalid keyword is found.
4173
4174 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4175
4176         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4177
4178 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4179
4180         * config/djgpp/djcheck.sh: Add copyright header.
4181
4182 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4183
4184         * copyright.py (update_files, main): Fix path to update-copyright
4185         script.
4186
4187 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4188
4189         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4190         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4191         for which a reminder to update by hand is printed.
4192
4193 2012-06-04  Doug Evans  <dje@google.com>
4194
4195         * buildsym.c (make_blockvector): Add comment.
4196
4197 2012-06-04  Pedro Alves  <palves@redhat.com>
4198
4199         * arch-utils.c (default_gdb_signal_from_target): Delete.
4200         * arch-utils.h (default_gdb_signal_from_target): Delete.
4201         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4202         gdbarch_gdb_signal_from_target_p.
4203         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4204         predicate).
4205         * gdbarch.h: Regenerate.
4206         * gdbarch.c: Regenerate.
4207
4208 2012-06-04  Pedro Alves  <palves@redhat.com>
4209
4210         * gdbarch.sh (gdb_signal_from_target): Mention that the
4211         implementation of the method must be host independent.
4212         * gdbarch.h: Regenerate.
4213
4214 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4215
4216         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4217         parameters.
4218         (target_read_memory_bfd): New function.
4219         (symbol_file_add_from_memory): Use it.
4220
4221 2012-06-03  Doug Evans  <dje@google.com>
4222
4223         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4224         of primary symtab.
4225         (basic_lookup_transparent_type): Ditto.
4226
4227         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4228         (ALL_PRIMARY_SYMTABS): Use it.
4229         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4230         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4231         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4232         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4233         (basic_lookup_transparent_type): Ditto.
4234
4235 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4236
4237         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4238         it to optimize resolution of demangled name.
4239
4240 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4241
4242         * configure.ac (development): Define new variable.
4243         Call AC_CHECK_LIB for mcheck if $development.
4244         (ERROR_ON_WARNING): Enable it by default only if $development.
4245         * config.in: Regenerate.
4246         * configure: Regenerate.
4247
4248 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4249
4250         * target.c (target_read_memory): Make LEN argument as size_t.
4251         * target.h (target_read_memory): Likewise.
4252
4253 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4254
4255         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4256
4257 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4258
4259         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4260         BookE interface for PowerPC server processors if not available
4261         in the Linux Kernel.
4262
4263 2012-05-31  Keith Seitz  <keiths@redhat.com>
4264
4265         * linespec.c (decode_objc): Add cleanup to free
4266         INFO.FILE_SYMTABS.
4267         (find_linespec_symbols): Add cleanup to free CLASSES.
4268         * symfile.c (find_separate_debug_file_by_debuglink): Add
4269         cleanup to free DEBUGLINK.
4270         * ui-out.c (clear_header_list): No need to check if
4271         HEADER_NEXT.COLHDR is NULL.
4272         Free HEADER_NEXT.COL_NAME.
4273
4274 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4275
4276         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4277         warning.
4278
4279 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4280
4281         * configure.host (gdb_host_cpu): Handle tilegx*.
4282         (gdb_host): Handle tilegx-*-linux*.
4283         * tilegx-linux-nat.c: New file.
4284         * config/tilegx/linux.mh: New file.
4285
4286 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4287
4288         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4289         tilegx-linux-tdep.o.
4290         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4291         tilegx-linux-tdep.c.
4292         * configure.tgt: Handle tilegx-*-linux*.
4293         * tilegx-tdep.h: New file.
4294         * tilegx-tdep.c: New file.
4295         * tilegx-linux-tdep.c: New file.
4296         * regformats/reg-tilegx.dat: New file.
4297
4298 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4299
4300         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4301         accounting of hw watchpoints on ppc.
4302
4303 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4304
4305         * source.c (openp): Expand tilde in path entries.
4306
4307 2012-05-29  Doug Evans  <dje@google.com>
4308
4309         * buildsym.c (block_compar): Fix comment.
4310         (end_symtab): Fix and clarify some comments.
4311
4312         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4313         cleanup_undefined_types.
4314         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4315         All callers updated.
4316
4317 2012-05-29  Tom Tromey  <tromey@redhat.com>
4318
4319         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4320         fails.
4321         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4322         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4323         fails.
4324         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4325         fails.
4326
4327 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4328
4329         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4330         (struct darwin_info): ... New struct.
4331         (solib_darwin_pspace_data): New variable.
4332         (darwin_pspace_data_cleanup): New function.
4333         (get_darwin_info): Likewise.
4334         (darwin_dyld_version_ok, darwin_load_image_infos)
4335         (darwin_solib_get_all_image_info_addr_at_init)
4336         (darwin_solib_read_all_image_info_addr): Add info argument.
4337         Adjust code.
4338         (darwin_current_sos): Use per pspace structure.
4339         (darwin_solib_create_inferior_hook): Likewise.
4340         (darwin_clear_solib): Likewise.
4341         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4342
4343 2012-05-28  Pedro Alves  <palves@redhat.com>
4344
4345         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4346         block that uses them.  Clear ecss before handling each event.
4347
4348 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4349
4350         * solib-svr4.c (svr4_current_sos): New comment on
4351         svr4_current_sos_via_xfer_libraries fall back.
4352
4353 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4354
4355         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4356         it as a fallback for TYPE_IS_OPAQUE.
4357         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4358         symbols for lookup_symbol.
4359
4360 2012-05-24  John Steele Scott  <toojays@toojays.net>
4361
4362         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4363         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4364         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4365         (check_producer): ... this new function, which also checks for ICC
4366         and caches the result.
4367         (producer_is_icc): New function.
4368         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4369         producer was ICC.
4370
4371 2012-05-24  Pedro Alves  <palves@redhat.com>
4372
4373         PR gdb/7205
4374
4375         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4376         (default_gdb_signal_to_target): ... this.  Add comment.
4377         (default_gdb_signal_from_host): Rename to ...
4378         (default_gdb_signal_from_target): ... this.  Add comment.
4379         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4380         (default_gdb_signal_to_target): ... this.
4381         (default_gdb_signal_from_host): Rename to ...
4382         (default_gdb_signal_from_target): ... this.
4383         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4384         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4385         (gdb_signal_from_target): ... this.  Adjust to
4386         default_gdb_signal_from_host naming change.  Extend comment.
4387         (gdb_signal_to_host): Rename to ...
4388         (gdb_signal_to_target): ... this.  Adjust to
4389         default_gdb_signal_to_host naming change.
4390         * gdbarch.h, gdbarch.c: Renegerate.
4391
4392 2012-05-24  Pedro Alves  <palves@redhat.com>
4393
4394         PR gdb/7205
4395
4396         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4397
4398 2012-05-24  Pedro Alves  <palves@redhat.com>
4399
4400         PR gdb/7205
4401
4402         Replace target_signal with gdb_signal throughout.
4403
4404 2012-05-24  Pedro Alves  <palves@redhat.com>
4405
4406         PR tui/14159
4407
4408         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4409         string, instead of reusing the va_list argument.
4410
4411 2012-05-24  Tom Tromey  <tromey@redhat.com>
4412
4413         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4414         Remove.
4415
4416 2012-05-23  Doug Evans  <dje@google.com>
4417
4418         * symtab.c (search_symbols): Formatting fixes.
4419         (print_symbol_info): Formatting fixes.
4420
4421         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4422         int64_t change to leb128 API.
4423         (read_encoded_value, decode_frame_entry_1): Ditto.
4424         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4425         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4426         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4427         (execute_stack_op): Ditto.
4428         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4429         (safe_read_uleb128, safe_read_sleb128): Ditto.
4430         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4431         (dwarf2_compile_expr_to_ax): Ditto.
4432         (locexpr_describe_location_piece): Ditto.
4433         (disassemble_dwarf_expression): Ditto.
4434         (locexpr_describe_location_1): Ditto.
4435
4436 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4437             Kwok Cheung Yeung  <kcy@codesourcery.com>
4438
4439         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4440         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4441         (mi-cmd-info.o): New rule.
4442         * osdata.h (info_osdata_command): New declaration.
4443         * osdata.c (info_osdata_command): Change to non-static.
4444         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4445         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4446         * mi/mi-cmd-info.c: New file.
4447
4448 2012-05-23  Doug Evans  <dje@google.com>
4449
4450         * symtab.c (search_symbols): Pass NULL for file_matcher to
4451         expand_symtabs_matching if there are no files to match.
4452
4453         * gdbtypes.c (lookup_typename): Simplify.
4454
4455 2012-05-23  Pedro Alves  <palves@redhat.com>
4456
4457         * arch-utils.h (default_target_signal_to_host): Delete.
4458         * arch-utils.c (default_target_signal_to_host): Delete.
4459         * gdbarch.sh (target_signal_to_host): Remove.
4460         * gdbarch.h, gdbarch.c: Regenerate.
4461
4462 2012-05-22  Doug Evans  <dje@google.com>
4463
4464         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4465         "const gdb_byte *".
4466         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4467         (execute_cfa_program): Update to match API of leb128 functions.
4468         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4469         "const gdb_byte *".
4470         (read_unsigned_leb128, read_signed_leb128): Delete.
4471         (read_initial_length): Change type of buf argument to
4472         "const gdb_byte *".
4473         (read_encoded_value): Update to match API of leb128 functions.
4474         (decode_frame_entry): Change result to "const gdb_byte *", and
4475         similarly for "start" parameter.
4476         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4477         (dwarf2_build_frame_info): Change local frame_ptr to
4478         "const gdb_byte *".
4479         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4480         read_uleb128, read_sleb128.  All callers updated.
4481         (safe_skip_leb128): New function.
4482         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4483         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4484         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4485         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4486         read_uleb128, read_sleb128.
4487         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4488         (execute_stack_op): Update to match API of leb128 functions.
4489         * dwarf2expr.h: #include "leb128.h".
4490         (read_uleb128, read_sleb128): Delete.
4491         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4492         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4493         * dwarf2loc.c (debug_loc_kind): New enum.
4494         (decode_debug_loc_addresses): New function.
4495         (decode_debug_loc_dwo_addresses): New function.
4496         (dwarf2_find_location_expression): Rewrite.
4497         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4498         (locexpr_describe_location_piece): Ditto.
4499         (disassemble_dwarf_expression): Ditto.
4500         (locexpr_describe_location_1): Ditto.
4501         (loclist_describe_location): Rewrite.
4502         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4503         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4504         (dwarf2_section_buffer_overflow_complaint): Renamed from
4505         dwarf2_macros_too_long_complaint.  All callers updated.
4506         (skip_leb128): Delete.
4507         (init_cu_die_reader): Initialize reader->buffer_end.
4508         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4509         (skip_form_bytes): New arg buffer_end.  All callers updated.
4510         Replace call to skip_leb128 with gdb_skip_leb128.
4511         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4512         (fill_in_loclist_baton): Initialize baton->from_dwo.
4513
4514 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4515
4516         * mips-linux-nat.c (mips_linux_read_description): Use a more
4517         verbose error message.
4518
4519 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4520
4521         * NEWS: Add MIPS/Linux DSP support.
4522         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4523         (SIGCONTEXT_DSPCTL): New macro.
4524         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4525         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4526         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4527         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4528         (N64_SIGCONTEXT_HI3): Likewise.
4529         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4530         (N64_SIGCONTEXT_LO3): Likewise.
4531         (N64_SIGCONTEXT_DSPCTL): Likewise.
4532         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4533         (mips_linux_o32_sigframe_init): Handle DSP registers.
4534         (mips_linux_n32n64_sigframe_init): Likewise.
4535
4536 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4537
4538         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4539         call to abort.
4540
4541 2012-05-22  Pedro Alves  <palves@redhat.com>
4542
4543         * target.h (store_waitstatus): Move declaration ...
4544         * inf-child.h (store_waitstatus): ... here.
4545         * target.c: Move inclusion of gdb_wait.h, and ...
4546         (store_waitstatus): ... this ...
4547         * inf-child.c: ... here.
4548         * linux-nat.c: Include inf-child.h.
4549         * rs6000-nat.c: Include inf-child.h.
4550         * spu-linux-nat.c: Include inf-child.h.
4551
4552 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4553
4554         * tracepoint.c (start_tracing): Add missing i18n markup.
4555         (stop_tracing, set_trace_user): Ditto.
4556         (set_trace_notes, set_trace_stop_notes): Ditto.
4557
4558 2012-05-21  Tom Tromey  <tromey@redhat.com>
4559
4560         PR c++/7173:
4561         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4562         types.
4563         * value.h (value_cast_pointers): Update.
4564         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4565         (value_cast): Update.
4566         (update_search_result): New function.
4567         (do_search_struct_field): New, from search_struct_field.  Check
4568         for ambiguous results.
4569         (search_struct_field): Rewrite.
4570         * infcall.c (value_arg_coerce): Update.
4571         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4572         value_cast_pointers.
4573         * ada-lang.c (ada_convert_actual): Update.
4574
4575 2012-05-21  Tom Tromey  <tromey@redhat.com>
4576
4577         * macroexp.c (macro_stringify): Terminate the string.
4578
4579 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4580
4581         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4582         Describe it.
4583         * auto-load.c (auto_load_expand_dir_vars): New function.
4584         (auto_load_safe_path_vec_update): Use it, remove the
4585         substitute_path_component call thanks to it.
4586         (auto_load_objfile_script): Remove the debug_file_directory processing.
4587         Use auto_load_expand_dir_vars, remove the substitute_path_component
4588         call thanks to it.
4589         * configure: Regenerate.
4590         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4591         path.  Escape $ also for $debugdir.
4592         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4593         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4594
4595 2012-05-20  Doug Evans  <dje@google.com>
4596
4597         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4598         before use.  Check for symtab->includes == NULL before scanning it.
4599
4600 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4601
4602         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4603
4604 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4605
4606         * NEWS: Add microMIPS support and "set mips compression",
4607         "show mips compression" commands.
4608         * mips-tdep.h (mips_isa): New enum.
4609         (gdbarch_tdep): Add mips_isa.
4610         (mips_pc_is_mips16): Update prototype.
4611         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4612         * mips-tdep.c (mips_compression_mips16): New variable.
4613         (mips_compression_micromips): Likewise.
4614         (mips_compression_strings): Likewise.
4615         (mips_compression_string): Likewise.
4616         (is_mips16_isa, is_micromips_isa): New functions.
4617         (is_mips16_addr): Rename to...
4618         (is_compact_addr): ... this.
4619         (unmake_mips16_addr): Likewise to...
4620         (unmake_compact_addr): ... this.
4621         (make_mips16_addr): Likewise to...
4622         (make_compact_addr): ... this.
4623         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4624         functions.
4625         (mips_elf_make_msymbol_special): Handle microMIPS code.
4626         (msymbol_is_special): Rename to...
4627         (msymbol_is_mips16): ... this.
4628         (mips_make_symbol_special, mips_pc_is_mips16): Update
4629         accordingly.
4630         (msymbol_is_mips, msymbol_is_micromips): New functions.
4631         (mips16_to_32_reg): Rename to...
4632         (mips_reg3_to_reg): ... this.
4633         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4634         (mips_pc_isa): Likewise.
4635         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4636         code.
4637         (mips_fetch_instruction): Pass return status instead of printing
4638         an error message if requested.  Handle microMIPS code.  Bail out
4639         on an invalid ISA.
4640         (micromips_op): New macro.
4641         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4642         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4643         (b6s4_op, b7s3_reg): Likewise.
4644         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4645         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4646         (mips_insn_size): New function.
4647         (mips32_next_pc): Update mips_fetch_instruction call.
4648         (micromips_relative_offset7): New function.
4649         (micromips_relative_offset10): Likewise.
4650         (micromips_relative_offset16): Likewise.
4651         (micromips_pc_insn_size): Likewise.
4652         (micromips_bc1_pc): Likewise.
4653         (micromips_next_pc): Likewise.
4654         (unpack_mips16): Update mips_fetch_instruction call.
4655         (extended_mips16_next_pc): Update according to change to
4656         mips16_to_32_reg.
4657         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4658         code.
4659         (mips16_scan_prologue): Update mips_fetch_instruction call.
4660         Update according to change to mips16_to_32_reg.
4661         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4662         (mips_insn16_frame_base_sniffer): Likewise.
4663         (micromips_decode_imm9): New function.
4664         (micromips_scan_prologue): Likewise.
4665         (mips_micro_frame_cache): Likewise.
4666         (mips_micro_frame_this_id): Likewise.
4667         (mips_micro_frame_prev_register): Likewise.
4668         (mips_micro_frame_sniffer): Likewise.
4669         (mips_micro_frame_unwind): New variable.
4670         (mips_micro_frame_base_address): New function.
4671         (mips_micro_frame_base): New variable.
4672         (mips_micro_frame_base_sniffer): New function.
4673         (mips32_scan_prologue): Update mips_fetch_instruction call.
4674         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4675         rather than for MIPS16.
4676         (mips_insn32_frame_base_sniffer): Likewise.
4677         (mips_addr_bits_remove): Handle microMIPS code.
4678         (deal_with_atomic_sequence): Rename to...
4679         (mips_deal_with_atomic_sequence): ... this.  Update the type
4680         of the variable used to hold an instruction.  Remove the ISA bit
4681         check.  Update mips_fetch_instruction call.
4682         (micromips_deal_with_atomic_sequence): New function.
4683         (deal_with_atomic_sequence): Likewise.
4684         (mips_about_to_return): Handle microMIPS code.  Update
4685         mips_fetch_instruction call.
4686         (heuristic_proc_start): Check for the standard MIPS ISA rather
4687         than for MIPS16.  Update mips_pc_is_mips16 and
4688         mips_fetch_instruction calls.  Handle microMIPS code.
4689         (mips_push_dummy_code): Handle microMIPS code.
4690         (mips_eabi_push_dummy_call): Likewise.
4691         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4692         (mips_o64_push_dummy_call): Handle microMIPS code.
4693         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4694         (is_delayed): Remove function.
4695         (mips_single_step_through_delay): Replace the call to is_delayed
4696         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4697         Handle microMIPS code.
4698         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4699         microMIPS code.
4700         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4701         call.
4702         (micromips_in_function_epilogue_p): New function.
4703         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4704         call.
4705         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4706         Handle microMIPS.
4707         (gdb_print_insn_mips): Likewise.
4708         (mips_breakpoint_from_pc): Likewise.
4709         (mips_remote_breakpoint_from_pc): New function.
4710         (mips32_instruction_has_delay_slot): Simplify making use of the
4711         updated mips_fetch_instruction interface.
4712         (micromips_instruction_has_delay_slot): New function.
4713         (mips16_instruction_has_delay_slot): Simplify making use of the
4714         updated mips_fetch_instruction interface.
4715         (mips_adjust_breakpoint_address): Check for the standard MIPS
4716         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4717         calls.  Handle microMIPS code.
4718         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4719         (mips_skip_trampoline_code): Handle microMIPS code.
4720         (global_mips_compression): New function.
4721         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4722         file flags.  Register the microMIPS remote breakpoint handler
4723         and heuristic frame unwinder.
4724         (show_mips_compression): New function.
4725         (_initialize_mips_tdep): Add the "set mips compression" and
4726         "show mips compression" commands.
4727
4728 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4729
4730         * ada-lang.c:
4731         * ada-tasks.c:
4732         * ada-varobj.c:
4733         * amd64-darwin-tdep.c:
4734         * arm-symbian-tdep.c:
4735         * arm-tdep.c:
4736         * avr-tdep.c:
4737         * ax-gdb.c:
4738         * bfin-linux-tdep.c:
4739         * breakpoint.c:
4740         * c-valprint.c:
4741         * cli/cli-cmds.c:
4742         * coffread.c:
4743         * cp-support.c:
4744         * cris-tdep.c:
4745         * dwarf2-frame-tailcall.c:
4746         * dwarf2-frame.c:
4747         * dwarf2expr.c:
4748         * dwarf2loc.c:
4749         * dwarf2read.c:
4750         * elfread.c:
4751         * eval.c:
4752         * expprint.c:
4753         * f-valprint.c:
4754         * frv-tdep.c:
4755         * h8300-tdep.c:
4756         * hppa-hpux-tdep.c:
4757         * hppa-tdep.c:
4758         * hppanbsd-tdep.c:
4759         * i386-nto-tdep.c:
4760         * i386-tdep.c:
4761         * i387-tdep.c:
4762         * ia64-tdep.c:
4763         * jit.c:
4764         * linespec.c:
4765         * linux-tdep.c:
4766         * lm32-tdep.c:
4767         * m2-valprint.c:
4768         * m32c-tdep.c:
4769         * m32r-rom.c:
4770         * m32r-tdep.c:
4771         * m68k-tdep.c:
4772         * m68klinux-tdep.c:
4773         * mi/mi-main.c:
4774         * microblaze-tdep.c:
4775         * mips-linux-tdep.c:
4776         * mips-tdep.c:
4777         * mn10300-tdep.c:
4778         * p-valprint.c:
4779         * parse.c:
4780         * ppc-linux-tdep.c:
4781         * ppc-sysv-tdep.c:
4782         * printcmd.c:
4783         * python/py-finishbreakpoint.c:
4784         * python/py-inferior.c:
4785         * python/py-infthread.c:
4786         * python/py-type.c:
4787         * python/python.c:
4788         * remote-fileio.c:
4789         * remote-m32r-sdi.c:
4790         * remote-mips.c:
4791         * reverse.c:
4792         * rl78-tdep.c:
4793         * rs6000-aix-tdep.c:
4794         * rs6000-tdep.c:
4795         * s390-tdep.c:
4796         * score-tdep.c:
4797         * sh64-tdep.c:
4798         * skip.c:
4799         * solib-darwin.c:
4800         * solib-dsbt.c:
4801         * solib-frv.c:
4802         * sparc-tdep.c:
4803         * spu-multiarch.c:
4804         * spu-tdep.c:
4805         * stack.c:
4806         * symfile.c:
4807         * symtab.c:
4808         * tic6x-tdep.c:
4809         * tracepoint.c:
4810         * v850-tdep.c:
4811         * valarith.c:
4812         * valprint.c:
4813         * value.c:
4814         * xcoffread.c:
4815         * xtensa-tdep.c:
4816         * ada-lang.c:
4817         * ada-tasks.c:
4818         * ada-varobj.c:
4819         * amd64-darwin-tdep.c:
4820         * arm-symbian-tdep.c:
4821         * arm-tdep.c: Delete unused variables.
4822
4823 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4824
4825         Rename $ddir to $datadir.
4826         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4827         * auto-load.c (auto_load_safe_path_vec_update)
4828         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4829         * configure: Regenerate.
4830         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4831         Likewise.  Remove the 'use $ddir' help string.
4832
4833 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4834
4835         * auto-load.c (show_auto_load_safe_path): Accept any combination of
4836         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4837
4838 2012-05-18  Tom Tromey  <tromey@redhat.com>
4839
4840         PR exp/13907:
4841         * valprint.h (struct value_print_options) <symbol_print>: New
4842         field.
4843         * valprint.c (user_print_options): Add default for symbol_print.
4844         (show_symbol_print): New function.
4845         (generic_val_print): Respect symbol_print.
4846         (_initialize_valprint): Add "print symbol" setting.
4847         * f-valprint.c (f_val_print): Respect symbol_print.
4848         * c-valprint.c (c_val_print): Respect symbol_print.
4849         * NEWS: Update.
4850         * printcmd.c (print_address_symbolic): Return int.  Ignore some
4851         zero-size symbols.
4852         (print_address_demangle): Return int.
4853         * defs.h: (print_address_symbolic): Return int.
4854         * value.h (print_address_demangle): Return int.
4855
4856 2012-05-18  Tom Tromey  <tromey@redhat.com>
4857
4858         * valprint.c (val_print_string): Don't print leading space.
4859         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4860         print space before string or vtbl.
4861         * m2-valprint.c (print_unpacked_pointer): Optionally print space
4862         before string.
4863         * jv-valprint.c (java_value_print): Print space before string.
4864         * go-valprint.c (print_go_string): Print space before string.
4865         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4866         space before string.
4867         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4868         space before string or vtbl.
4869         * auxv.c (fprint_target_auxv): Print space after address.
4870
4871 2012-05-18  Tom Tromey  <tromey@redhat.com>
4872
4873         * printcmd.c (print_address_demangle): Remove special case for 0.
4874
4875 2012-05-18  Tom Tromey  <tromey@redhat.com>
4876
4877         * printcmd.c (print_address_demangle): Add 'opts' argument.
4878         * p-valprint.c (pascal_val_print): Update.
4879         * jv-valprint.c (java_val_print): Update.
4880         * value.h: Update.
4881         * valprint.c (generic_val_print): Update.
4882         (print_function_pointer_address): Add 'options' argument.  Remove
4883         'addressprint' argument.  Update.
4884         * m2-valprint.c (print_unpacked_pointer): Update.
4885         * gnu-v3-abi.c (print_one_vtable): Update.
4886         (gnuv3_print_method_ptr): Update.
4887         * f-valprint.c (f_val_print): Update.
4888         * cp-valprint.c (cp_print_value_fields): Update.
4889         * valprint.h (print_function_pointer_address): Update.
4890         * c-valprint.c (c_val_print): Update.
4891
4892 2012-05-18  Tom Tromey  <tromey@redhat.com>
4893
4894         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4895         directly corresponding to the found psymtab.
4896         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4897         (dw2_find_pc_sect_symtab): Use it.
4898         * block.h (blockvector_contains_pc): Declare.
4899         * block.c (find_block_in_blockvector): New function.
4900         (blockvector_for_pc_sect): Use it.
4901         (blockvector_contains_pc): New function.
4902
4903 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4904
4905         * mips-tdep.h (mips_write_pc): New prototype.
4906         * mips-tdep.c (mips_write_pc): Make external, add description.
4907         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4908         add description.
4909
4910 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4911
4912         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4913         mips_regnum->pc.
4914         (mips_unwind_pc, mips_write_pc): Likewise.
4915         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4916         gdbarch_read_pc.
4917
4918 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
4919
4920         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4921         proc_warn, proc_error, proc_get_status, proc_flags,
4922         proc_why, proc_what, proc_nsysarg, proc_sysargs,
4923         proc_set_run_on_last_close, proc_unset_run_on_last_close,
4924         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4925         proc_stop_process, proc_wait_for_stop, proc_run_process,
4926         proc_set_traced_signals, proc_set_traced_faults,
4927         proc_set_traced_sysentry, proc_set_traced_sysexit,
4928         proc_set_held_signals, proc_get_held_signals,
4929         proc_get_traced_signals, proc_get_traced_faults,
4930         proc_get_traced_sysentry, proc_get_traced_sysexit,
4931         proc_clear_current_fault, proc_set_current_signal,
4932         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4933         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4934         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4935         proc_get_current_thread, proc_get_current_thread,
4936         proc_get_current_thread, proc_update_threads,
4937         proc_update_threads, proc_update_threads, proc_update_threads,
4938         proc_iterate_over_threads, procfs_find_new_threads,
4939         procfs_pid_to_str): Make static.  Remove advance declaration.
4940         (proc_cursig): Make static.  Conditionalized defintion on
4941         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4942         (proc_syscall, proc_set_kill_on_last_close,
4943         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4944         proc_get_pending_signals, proc_get_signal_actions,
4945         proc_trace_signal, proc_ignore_signal): Delete.
4946
4947 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
4948
4949         * coffread.c (cs_section_address): Passing proper argument for
4950         `bfd_get_section_vma'.
4951         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4952         `bfd_get_section_flags'.
4953         * remote.c (remote_trace_set_readonly_regions): Likewise, for
4954         `bfd_get_section_vma'.
4955
4956 2012-05-16  Tom Tromey  <tromey@redhat.com>
4957
4958         PR macros/13205:
4959         * macrotab.h: (macro_define_special): Declare.
4960         (enum macro_special_kind): New.
4961         (struct macro_definition) <argc, replacement>: Update comments.
4962         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4963         (macro_define_object_internal): New function.
4964         (macro_define_object): Use it.
4965         (macro_define_special): New function.
4966         (fixup_definition): New function.
4967         (macro_lookup_definition, foreach_macro_in_scope)
4968         (foreach_macro): Use fixup_definition.
4969         * macroexp.h (macro_stringify): Declare.
4970         * macroexp.c (free_buffer_return_text): New function.
4971         (stringify): Constify "arg".
4972         (macro_stringify): New function.
4973         * dwarf2read.c (macro_start_file): Call macro_define_special.
4974
4975 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
4976             Maciej W. Rozycki  <macro@mips.com>
4977
4978         * breakpoint.h (bp_location): Add related_address member.
4979         * inferior.h (get_return_value): Take a pointer to struct value
4980         instead of struct type for the function requested.
4981         * value.h (using_struct_return): Likewise.
4982         * gdbarch.sh (return_value): Take a pointer to struct value
4983         instead of struct type for the function requested.
4984         * breakpoint.c (set_breakpoint_location_function): Initialize
4985         related_address for bp_gnu_ifunc_resolver breakpoints.
4986         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4987         requested function's address to gdbarch_return_value.
4988         * eval.c (evaluate_subexp_standard): Pass the requested
4989         function's address to using_struct_return.
4990         * infcall.c (call_function_by_hand): Pass the requested
4991         function's address to using_struct_return and
4992         gdbarch_return_value.
4993         * infcmd.c (get_return_value): Take a pointer to struct value
4994         instead of struct type for the function requested.
4995         (print_return_value): Update accordingly.
4996         (finish_command_continuation): Likewise.
4997         * stack.c (return_command): Pass the requested function's
4998         address to using_struct_return and gdbarch_return_value.
4999         * value.c (using_struct_return): Take a pointer to struct value
5000         instead of struct type for the function requested.  Pass the
5001         requested function's address to gdbarch_return_value.
5002         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5003         New function_value member, replacing function_type.
5004         (bpfinishpy_dealloc): Update accordingly.
5005         (bpfinishpy_pre_stop_hook): Likewise.
5006         (bpfinishpy_init): Likewise.  Record the requested function's
5007         address.
5008         * mips-tdep.c (mips_fval_reg): New enum.
5009         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5010         words put in GP registers.
5011         (mips_o64_push_dummy_call): Update a comment.
5012         (mips_o32_return_value): Take a pointer to struct value instead
5013         of struct type for the function requested and use it to check if
5014         using the MIPS16 calling convention.  Return the designated
5015         general purpose registers for floating-point values returned in
5016         MIPS16 mode.
5017         (mips_o64_return_value): Likewise.
5018         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5019         (ppc_sysv_abi_broken_return_value): Likewise.
5020         (ppc64_sysv_abi_return_value): Likewise.
5021         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5022         value instead of struct type for the function requested.
5023         * amd64-tdep.c (amd64_return_value): Likewise.
5024         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5025         * arm-tdep.c (arm_return_value): Likewise.
5026         * avr-tdep.c (avr_return_value): Likewise.
5027         * bfin-tdep.c (bfin_return_value): Likewise.
5028         * cris-tdep.c (cris_return_value): Likewise.
5029         * frv-tdep.c (frv_return_value): Likewise.
5030         * h8300-tdep.c (h8300_return_value): Likewise.
5031         (h8300h_return_value): Likewise.
5032         * hppa-tdep.c (hppa32_return_value): Likewise.
5033         (hppa64_return_value): Likewise.
5034         * i386-tdep.c (i386_return_value): Likewise.
5035         * ia64-tdep.c (ia64_return_value): Likewise.
5036         * iq2000-tdep.c (iq2000_return_value): Likewise.
5037         * lm32-tdep.c (lm32_return_value): Likewise.
5038         * m32c-tdep.c (m32c_return_value): Likewise.
5039         * m32r-tdep.c (m32r_return_value): Likewise.
5040         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5041         * m68k-tdep.c (m68k_return_value): Likewise.
5042         (m68k_svr4_return_value): Likewise.
5043         * m88k-tdep.c (m88k_return_value): Likewise.
5044         * mep-tdep.c (mep_return_value): Likewise.
5045         * microblaze-tdep.c (microblaze_return_value): Likewise.
5046         * mn10300-tdep.c (mn10300_return_value): Likewise.
5047         * moxie-tdep.c (moxie_return_value): Likewise.
5048         * mt-tdep.c (mt_return_value): Likewise.
5049         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5050         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5051         (ppc_sysv_abi_broken_return_value): Likewise.
5052         (ppc64_sysv_abi_return_value): Likewise.
5053         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5054         * rl78-tdep.c (rl78_return_value): Likewise.
5055         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5056         * rx-tdep.c (rx_return_value): Likewise.
5057         * s390-tdep.c (s390_return_value): Likewise.
5058         * score-tdep.c (score_return_value): Likewise.
5059         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5060         (sh_return_value_fpu): Likewise.
5061         * sh64-tdep.c (sh64_return_value): Likewise.
5062         * sparc-tdep.c (sparc32_return_value): Likewise.
5063         * sparc64-tdep.c (sparc64_return_value): Likewise.
5064         * spu-tdep.c (spu_return_value): Likewise.
5065         * tic6x-tdep.c (tic6x_return_value): Likewise.
5066         * v850-tdep.c (v850_return_value): Likewise.
5067         * vax-tdep.c (vax_return_value): Likewise.
5068         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5069         * xtensa-tdep.c (xtensa_return_value): Likewise.
5070         * gdbarch.c: Regenerate.
5071         * gdbarch.h: Regenerate.
5072
5073 2012-05-15  Tom Tromey  <tromey@redhat.com>
5074
5075         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5076
5077 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5078
5079         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5080         of command in two error message.
5081
5082 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5083
5084         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5085
5086 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5087
5088         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5089
5090 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5091
5092         * NEWS (show auto-load scripts-directory): Add forgotten command.
5093
5094 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5095
5096         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5097         parameters.
5098
5099 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5100
5101         * amd64-tdep.c: Include features/i386/x32.c and
5102         features/i386/x32-avx.c.
5103         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5104         initialize_tdesc_x32_avx.
5105
5106 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5107
5108         Add dynamic printf.
5109         * breakpoint.h (enum bptype): New type bp_dprintf.
5110         (struct breakpoint): New field extra_string.
5111         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5112         (create_breakpoint): Add extra_string arg.
5113         * breakpoint.c (dprintf_breakpoint_ops): New.
5114         (is_breakpoint): Add bp_dprintf.
5115         (bpstat_what): Add dprintf case.
5116         (bptype_string): Ditto.
5117         (print_one_breakpoint_location): Ditto.
5118         (init_bp_location): Ditto.
5119         (bkpt_print_mention): Ditto.
5120         (dprintf_style_enums): New array.
5121         (dprintf_style): New global.
5122         (dprintf_function): New global.
5123         (dprintf_channel): New global.
5124         (update_dprintf_command_list): New function.
5125         (update_dprintf_commands): New function.
5126         (init_breakpoint_sal): Add extra_string argument, handle it.
5127         (create_breakpoint_sal): Add extra_string argument.
5128         (create_breakpoints_sal): Add extra_string argument, update callers.
5129         (find_condition_and_thread): Add extra argument.
5130         (create_breakpoint): Add extra_string argument, record it.
5131         (dprintf_command): New function.
5132         (break_command_1): Add arg to create_breakpoint call.
5133         (handle_gnu_v3_exceptions): Ditto.
5134         (trace_command): Ditto.
5135         (ftrace_command): Ditto.
5136         (strace_command): Ditto.
5137         (bkpt_print_mention): Add dprintf case.
5138         (create_breakpoint_sal_default): Add extra_string argument.
5139         (_initialize_breakpoint): Add new commands.
5140         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5141         * python/py-breakpoint.c (bppy_init): Ditto.
5142         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5143
5144 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5145
5146         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5147
5148 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5149
5150         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5151         unsigned long long.
5152
5153 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5154
5155         Add a new function gdb.find_pc_line to the Python API.
5156         * NEWS (Python Scripting): Add entry about the new function.
5157         * python/python.c (gdbpy_find_pc_line): New function which
5158         implements gdb.find_pc_line.
5159         (GdbMethods): Add entry for the new function.
5160
5161 2012-05-12  Pedro Alves  <palves@redhat.com>
5162
5163         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5164         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5165
5166 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5167
5168         * inferior.c: Include completer.h
5169         (initialize_inferiors): Set completer of add-inferior to
5170         filename_completer.
5171
5172 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5173
5174         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5175         gdbarch_ptr_bit for x32 core dump.
5176
5177 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5178
5179         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5180         and features/i386/x32-avx-linux.c.
5181
5182 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5183             Kwok Cheung Yeung  <kcy@codesourcery.com>
5184
5185         * NEWS: Describe new info os commands.
5186         * common/linux-osdata.c (PID_T, TIME_T): Define.
5187         (MAX_PID_T_STRLEN): New.
5188         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5189         MAX_PID_T_STRLEN.
5190         (command_from_pid): Add comment.  Change to use PID_T.
5191         (commandline_from_pid):  Change to use PID_T.
5192         (user_from_pid): Add comment.
5193         (get_process_owner): Add comment. Change to use PID_T and
5194         MAX_PID_T_STRLEN.
5195         (get_number_of_cpu_cores): Add comment.
5196         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5197         MAX_PID_T_STRLEN.
5198         (linux_xfer_osdata_processes): Change to use PID_T and
5199         MAX_PID_T_STRLEN.
5200         (compare_processes): New function.
5201         (linux_xfer_osdata_processgroups): New function.
5202         (linux_xfer_osdata_threads): Change to use PID_T.
5203         (linux_xfer_osdata_fds): New function.
5204         (format_socket_state, print_sockets): New functions.
5205         (union socket_addr): New union.
5206         (linux_xfer_osdata_isockets): New function.
5207         (time_from_time_t, group_from_gid): New functions.
5208         (linux_xfer_osdata_shm): New function.
5209         (linux_xfer_osdata_sem): New function.
5210         (linux_xfer_osdata_msg): New function.
5211         (linux_xfer_osdata_modules): New function.
5212         (osdata_table): Add new entries.
5213         * common/buffer.c (buffer_xml_printf): Add support for long and
5214         long long format specifiers.
5215
5216 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5217
5218         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5219         (tdesc_x32_avx_linux): Likewise.
5220
5221 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5222
5223         Implement multi-component --with-auto-load-dir.
5224         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5225         entries.
5226         (--with-auto-load-safe-path): Update the default value description.
5227         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5228         New.
5229         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5230         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5231         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5232         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5233         "set auto-load scripts-directory".
5234         * config.in: Regenerate.
5235         * configure: Regenerate.
5236         * configure.ac (--with-auto-load-dir): New configure option.
5237         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5238
5239 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5240
5241         Provide $ddir substitution for --with-auto-load-safe-path.
5242         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5243         entries.
5244         * auto-load.c: Include observer.h.
5245         (auto_load_safe_path_vec_update): Call substitute_path_component for
5246         each component.  New variable ddir_subst.
5247         (auto_load_gdb_datadir_changed): New function.
5248         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5249         AUTO_LOAD_SAFE_PATH.  New comment.
5250         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5251         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5252         * config.in: Regenerate.
5253         * configure: Regenerate.
5254         * configure.ac (--auto-load-safe-path): Rename
5255         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5256         GDB_DATADIR/auto-load.
5257         * defs.h (substitute_path_component): New declaration.
5258         * top.c: Include observer.h.
5259         (set_gdb_datadir): New function.
5260         (init_main): Install it for "set data-directory".
5261         * utils.c (substitute_path_component): New function.
5262
5263 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5264
5265         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5266         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5267         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5268         DEBUG_FILE_DIRECTORY.
5269
5270 2012-05-10  Tom Tromey  <tromey@redhat.com>
5271
5272         * dwarf2read.c (recursively_write_psymbols): New function.
5273         (write_psymtabs_to_index): Use it.
5274
5275         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5276         field.
5277         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5278         (load_partial_comp_unit): Update.
5279         (queue_comp_unit): Add argument 'pretend_language'.
5280         (process_queue): Update.
5281         (psymtab_to_symtab_1): Skip dependencies that have a user.
5282         (load_partial_comp_unit_reader): Give meaning to the 'data'
5283         argument.
5284         (load_full_comp_unit): Add 'pretend_language' argument.
5285         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5286         language on CU.
5287         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5288         Update.
5289         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5290         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5291         Update.
5292         (prepare_one_comp_unit): Add 'pretend_language' argument.
5293
5294         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5295         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5296         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5297         (dw2_do_instantiate_symtab): Check whether symtab was read in
5298         before queueing.
5299         (dw2_instantiate_symtab): Add assertion.  Call
5300         process_cu_includes.
5301         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5302         (partial_symtab_p): New typedef.
5303         (set_partial_user): New function.
5304         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5305         (scan_partial_symbols): Add imported CU to imported_symtabs.
5306         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5307         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5308         (get_symtab, recursively_compute_inclusions)
5309         (compute_symtab_includes, process_cu_includes)
5310         (process_imported_unit_die): New functions.
5311         (process_die) <DW_TAG_imported_unit>: New case.
5312         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5313
5314         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5315         comment.
5316         (struct partial_die_info) <locdesc>: Remove.
5317         <d>: New field.
5318         (process_psymtab_comp_unit): Add 'read_partial' argument.
5319         Update.
5320         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5321         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5322         (add_partial_symbol): Update.
5323         (process_die): Handle DW_TAG_partial_unit.
5324         (read_file_scope): Update comment.
5325         (load_partial_dies): Handle DW_TAG_imported_unit.
5326         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5327         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5328
5329 2012-05-10  Tom Tromey  <tromey@redhat.com>
5330
5331         * cc-with-dwz.sh: New file.
5332
5333 2012-05-10  Tom Tromey  <tromey@redhat.com>
5334
5335         * symtab.h (struct symtab) <includes, user>: New fields.
5336         * block.h (struct block_iterator) <d, idx, which>: New fields.
5337         * block.c (initialize_block_iterator, find_iterator_symtab)
5338         (block_iterator_step, block_iter_name_step)
5339         (block_iter_match_step): New functions.
5340         (block_iterator_first, block_iterator_next)
5341         (block_iter_name_first, block_iter_name_next)
5342         (block_iter_match_first, block_iter_match_next): Rewrite.
5343         (get_block_symtab): New function.
5344
5345 2012-05-10  Tom Tromey  <tromey@redhat.com>
5346
5347         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5348         set_block_symtab.
5349         * jit.c (finalize_symtab): Use allocate_global_block,
5350         set_block_symtab.
5351         * buildsym.c (finish_block_internal): New function, from old
5352         finish_block.
5353         (finish_block): Rewrite.
5354         (end_symtab): Use finish_block_internal, set_block_symtab.
5355         * block.h (struct global_block): New.
5356         (allocate_global_block, set_block_symtab): Declare.
5357         * block.c (allocate_global_block, set_block_symtab): New
5358         functions.
5359
5360 2012-05-10  Tom Tromey  <tromey@redhat.com>
5361
5362         * psymtab.c (partial_map_expand_apply): Add assertion.
5363         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5364         (psymtab_to_symtab): Find unshared psymtab.
5365         (dump_psymtab): Print including psymtabs.
5366         (recursively_search_psymtabs): New function.
5367         (expand_symtabs_matching_via_partial): Use it.
5368         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5369         fields.
5370         (enum psymtab_search_status): New.
5371
5372 2012-05-10  Tom Tromey  <tromey@redhat.com>
5373
5374         * tracepoint.c (scope_info): Update.
5375         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5376         (find_pc_sect_symtab, search_symbols)
5377         (default_make_symbol_completion_list_break_on)
5378         (make_file_symbol_completion_list): Update.
5379         * symmisc.c (dump_symtab_1): Update.
5380         * stack.c (print_frame_args, iterate_over_block_locals)
5381         (print_frame_labels, iterate_over_block_arg_vars): Update.
5382         * python/py-block.c (block_object) <dict>: Remove.
5383         <block>: New field.
5384         <iter>: Change type.
5385         (blpy_iter): Update.
5386         (blpy_block_syms_iternext): Update.
5387         * psymtab.c (map_block): Use block iterators.
5388         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5389         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5390         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5391         * infrun.c (check_exception_resume): Update.
5392         * cp-support.c (make_symbol_overload_list_block): Update.
5393         * coffread.c (patch_opaque_types): Update.
5394         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5395         * block.h (struct block_iterator): New.
5396         (block_iterator_first, block_iterator_next, block_iter_name_first)
5397         (block_iter_name_next, block_iter_match_first)
5398         (block_iter_match_next): Declare.
5399         (ALL_BLOCK_SYMBOLS): Redefine.
5400         * block.c (block_iterator_first, block_iterator_next)
5401         (block_iter_name_first, block_iter_name_next)
5402         (block_iter_match_first, block_iter_match_next): New functions.
5403         * ada-lang.c (ada_add_block_symbols)
5404         (ada_make_symbol_completion_list): Use block iterator.
5405
5406 2012-05-10  Tom Tromey  <tromey@redhat.com>
5407
5408         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5409         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5410         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5411         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5412         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5413         Update.
5414
5415 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5416
5417         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5418         print-file-var-lib2.c, print-file-var-main.c and
5419         print-file-var.exp (located in gdb/testsuite/gdb.base).
5420
5421 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5422
5423         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5424         try locating the symbol in the symbol's own objfile first, before
5425         extending the search to all objfiles.
5426         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5427         out of lookup_symbol_aux_symtabs.
5428         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5429         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5430         Do not search EXCLUDE_OBJFILE.
5431         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5432         (lookup_symbol_global): Search for matches in the block's objfile
5433         first, before searching all other objfiles.
5434
5435 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5436
5437         * printcmd.c (set_command): Add pre/post inc/dec.
5438
5439 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5440
5441         * gdb.1: Document -ex option.
5442
5443 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5444
5445         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5446         * inferior.h (AT_SYMBOL): Delete.
5447
5448 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5449
5450         * mips-tdep.c (mips_push_dummy_code): New function.
5451         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5452         ON_STACK and install mips_push_dummy_code as our gdbarch
5453         push_dummy_code routine.
5454
5455 2012-05-09  Pedro Alves  <palves@redhat.com>
5456
5457         * target.c (set_maintenance_target_async_permitted): Rename to ...
5458         (set_target_async_command): ... this.
5459         (show_maintenance_target_async_permitted): Rename to ...
5460         (show_target_async_command): ... this.
5461         (initialize_targets): Adjust.
5462
5463 2012-05-08  Doug Evans  <dje@google.com>
5464
5465         * go-exp.y (classify_name): Add missing assignment of fields of
5466         yylval.ssym.
5467
5468 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5469
5470         Display the ">" prompt in interactive mode while reading canned
5471         commands, even when the current interpreter is MI.
5472
5473         * interps.c (interp_set_temp): New function.
5474
5475         * interps.h (interp_set_temp): Add prototype.
5476
5477         * cli/cli-script.c (restore_interp): New cleanup function.
5478         (read_command_lines): Temporarily override the current interpreter
5479         with CLI and arrange for restoring the original one.
5480
5481 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5482
5483         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5484
5485 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5486
5487         * probe.c (parse_probes): Move conditional to check for
5488         debuginfo files from here...
5489         * stap-probe.c (stap_get_probes): ... to here.
5490
5491 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5492             H.J. Lu  <hongjiu.lu@intel.com>
5493
5494         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5495         `movl %esp, %ebp' for the X32 ABI.
5496
5497 2012-05-07  Tom Tromey  <tromey@redhat.com>
5498
5499         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5500         get_DW_TAG_name.
5501         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5502         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5503         (dwarf_stack_op_name): Remove.
5504         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5505         (decode_locdesc): Use get_DW_OP_name.
5506         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5507         (dwarf2_compile_expr_to_ax): Likewise.
5508         (disassemble_dwarf_expression): Likewise.
5509         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5510
5511 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5512
5513         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5514         (sh_linux_sigtramp_cache): New function.
5515         (sh_linux_sigreturn_init): New function.
5516         (sh_linux_rt_sigreturn_init): New function.
5517         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5518         patterns.
5519         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5520         syscall codes.
5521         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5522         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5523         (sh_linux_init_abi): Add init calls to register new tramp_frame
5524         definitions under 32-bit SH, update comments.
5525
5526 2012-05-07  Pedro Alves  <palves@redhat.com>
5527
5528         PR gdb/10952
5529
5530         * amd64-linux-tdep.c: Include glibc-tdep.h.
5531         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5532         gdbarch_skip_solib_resolver callback.
5533
5534 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5535
5536         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5537         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5538         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5539         (add_auto_load_safe_path): Change the error message.
5540         (_initialize_auto_load): Change the "safe-path" help text.
5541         * configure: Regenerate
5542         * configure.ac (--without-auto-load-safe-path): Set
5543         WITH_AUTO_LOAD_SAFE_PATH to /.
5544
5545 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5546
5547         * stap-probe.h: Do not include unecessary `probe.h'.
5548
5549 2012-05-05  Alan Modra  <amodra@gmail.com>
5550
5551         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5552         bfd_und_section_ptr.
5553         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5554         and bfd_com_section_ptr.
5555
5556 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5557
5558         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5559
5560 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5561
5562         * windows-nat.h (segment_register_p_ftype): New typedef.
5563         (windows_set_segment_register_p): Add declaration.
5564         * windows-nat.c (segment_register_p): New static global.
5565         (windows_set_segment_register_p): New function.
5566         (do_windows_fetch_inferior_registers): Add special handling
5567         for segment registers.
5568         * amd64-windows-nat.c: #include "amd64-tdep.h".
5569         (amd64_windows_segment_register_p): New function.
5570         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5571         * i386-windows-nat.c: #include "i386-tdep.h".
5572         (i386_windows_segment_register_p): New function.
5573         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5574
5575 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5576
5577         * printcmd.c (set_command): Emit a warning if the expression is not
5578         an assignment.
5579
5580 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5581
5582         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5583         Make static.
5584
5585 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5586
5587         * stap-probe.c (stap_is_operator): Change declaration.
5588         (stap_get_opcode): Change return value.
5589         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5590         `stap_parse_argument_1'.
5591
5592 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5593
5594         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5595         debug log.
5596
5597 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5598
5599         Add two new methods global_block and static_block to gdb.Symtab
5600         objects.
5601         * NEWS (Python scripting): Add entry about the new methods.
5602         * python/py-symtab.c (stpy_global_block): New function which
5603         implements the gdb.Symtab.global_block() method.
5604         (stpy_static_block): New function which implements the
5605         gdb.Symtab.static_block() method.
5606         (symtab_object_methods): Add entries for the two new methods.
5607
5608 2012-05-03  Doug Evans  <dje@google.com>
5609
5610         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5611         files.
5612
5613 2012-05-03  Yao Qi  <yao@codesourcery.com>
5614
5615         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5616         space.
5617         (i386_process_record): Ditto.
5618
5619 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5620
5621         * infcall.c (unwind_on_signal_p): Make static.
5622
5623 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5624
5625         * sol-thread.c (solaris_pid_to_str): Make static.
5626         (_initialize_sol_thread): Add prototype.
5627
5628 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5629
5630         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5631
5632 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5633
5634         * MAINTAINERS: Remove myself.
5635
5636 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5637
5638         Fix --without-auto-load-safe-path for MS-Windows host platform.
5639         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5640
5641 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5642
5643         * gdb_curses.h: Undefine KEY_EVENT before including curses
5644         headers.  Move "#undef MOUSE_MOVED" before any curses header
5645         inclusion.
5646
5647 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5648
5649         * features/i386/i386-mmx-linux.c: Regenerate.
5650         * features/rs6000/powerpc-32.c: Likewise.
5651         * features/rs6000/powerpc-32l.c: Likewise.
5652         * features/rs6000/powerpc-403.c: Likewise.
5653         * features/rs6000/powerpc-403gc.c: Likewise.
5654         * features/rs6000/powerpc-405.c: Likewise.
5655         * features/rs6000/powerpc-505.c: Likewise.
5656         * features/rs6000/powerpc-601.c: Likewise.
5657         * features/rs6000/powerpc-602.c: Likewise.
5658         * features/rs6000/powerpc-603.c: Likewise.
5659         * features/rs6000/powerpc-604.c: Likewise.
5660         * features/rs6000/powerpc-64.c: Likewise.
5661         * features/rs6000/powerpc-64l.c: Likewise.
5662         * features/rs6000/powerpc-750.c: Likewise.
5663         * features/rs6000/powerpc-860.c: Likewise.
5664         * features/rs6000/powerpc-e500.c: Likewise.
5665         * features/rs6000/powerpc-e500l.c: Likewise.
5666         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5667         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5668         * features/rs6000/rs6000.c: Likewise.
5669
5670 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5671
5672         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5673         variable.
5674         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5675         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5676         (stap_parse_argument) <e>: Likewise.
5677         (handle_stap_probe) <byte_order>: Likewise.
5678
5679 2012-04-30  Doug Evans  <dje@google.com>
5680
5681         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5682         init_and_read_dies_worker.  All callers updated.
5683         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5684         replaced with init_cutu_and_read_dies.
5685         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5686         (find_partial_die): Remove FIXME.  Don't free current CU.
5687
5688 2012-04-30  Sterling Augustine  <saugustine@google.com>
5689
5690         * contrib: New directory.
5691         * contrib/test_pubnames_and_indexes.py: New file.
5692
5693 2012-04-30  Doug Evans  <dje@google.com>
5694
5695         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5696         All callers updated.
5697         (init_cu_die_reader): Verify the section is non-empty.
5698         (dwarf_decode_line_header): Don't dereference section->asection
5699         until we know the section is present.
5700
5701 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5702
5703         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5704         probes.
5705
5706 2012-04-29  Yao Qi  <yao@codesourcery.com>
5707
5708         * gdb-code-style.el: New hook gdb-markup-hook
5709         and gdb-comment-hook.
5710
5711 2012-04-28  Doug Evans  <dje@google.com>
5712
5713         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5714         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5715         objfile->obfd.
5716         * symfile.h (dwarf2_debug_sections): New member addr.
5717         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5718         (ctx_no_get_addr_index): New function.
5719         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5720         (ctx_no_get_addr_index): Declare.
5721         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5722         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5723         (dwarf_expr_ctx_funcs): Update.
5724         (needs_get_addr_index): New function.
5725         (needs_frame_ctx_funcs): Update.
5726         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5727         * dwarf2read.c: #include "gdbcore.h".
5728         (dwarf2_per_objfile): New members addr, dwo_files.
5729         (dwarf2_elf_names): Add entry for addr.
5730         (struct dwo_section_names): New type.
5731         (dwo_section_names): New static global.
5732         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5733         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5734         old debug_types_section member updated to use this.
5735         Rename member debug_types_section to info_or_types_section,
5736         all uses updated.
5737         (signatured_type): Rename member type_offset to type_offset_in_tu,
5738         all uses updated.  New member type_offset_in_section.
5739         (struct dwo_sections): New type.
5740         (struct dwo_unit): New type.
5741         (struct dwo_file): New type.
5742         (die_reader_specs): New member dwo_file.
5743         (dwarf2_locate_sections): Watch for .debug_addr.
5744         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5745         (dwarf2_read_section): Get bfd of section from bfd's asection,
5746         instead of objfile.
5747         (create_cus_from_index): Initialize the_cu->info_or_types_section.
5748         (create_signatured_type_table_from_index): Initialize
5749         sig_type->info_or_types_section.
5750         (dw2_get_file_names): Statement lists for type units with DWO files
5751         live in the DWO file.
5752         (create_debug_types_hash_table): New function.
5753         (create_all_type_units): Rewrite.
5754         (init_cu_die_reader): New arg dwo_file, all callers updated.
5755         (init_and_read_dies_worker): Get section from
5756         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
5757         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5758         continue reading the CU/TU from there.
5759         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5760         updated.  Get section from this_cu->info_or_types_section.
5761         (create_all_comp_units): Initialize this_cu->info_or_types_section.
5762         (skip_one_die): New cases DW_FORM_GNU_addr_index,
5763         DW_FORM_GNU_str_index.
5764         (hash_dwo_file, eq_dwo_file): New functions.
5765         (allocate_dwo_file_hash_table): New function.
5766         (hash_dwo_unit, eq_dwo_unit): New functions.
5767         (allocate_dwo_unit_table): New function.
5768         (dwarf2_locate_dwo_sections): New function.
5769         (struct create_dwo_info_table_data): New type.
5770         (create_debug_info_hash_table_reader): New function.
5771         (create_debug_info_hash_table): New function.
5772         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5773         (lookup_dwo_file): New function.
5774         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5775         (free_dwo_file, free_dwo_file_cleanup): New functions.
5776         (free_dwo_file_from_slot, free_dwo_files): New functions.
5777         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5778         (dwarf2_record_block_ranges): Ditto.
5779         (read_partial_die): Ditto.
5780         (process_enumeration_scope): Update to use type_offset_in_section.
5781         (read_full_die_1): New function.
5782         (read_full_die): Rewrite.
5783         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5784         DW_FORM_GNU_str_index.
5785         (read_addr_index_1, read_addr_index): New functions.
5786         (read_addr_index_from_leb128): New function.
5787         (struct dwarf2_read_addr_index_data): New type.
5788         (dwarf2_read_addr_index_reader): New function.
5789         (dwarf2_read_addr_index): New function.
5790         (read_str_index): New function.
5791         (leb128_size): New function.
5792         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5793         If processing a type unit from a DWO file, get the line section
5794         from the DWO file.
5795         (var_decode_location): Watch for DW_OP_GNU_addr_index.
5796         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5797         DW_FORM_GNU_str_index.
5798         (lookup_die_type): Check whether section offset of type's die is
5799         known before looking it up.  Remove assert.  Condition can
5800         legimately happen for inter-cu type references.
5801         (dwarf_attr_name): Handle Fission attributes.
5802         (dwarf_form_name): Handle Fission forms.
5803         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5804         DW_FORM_GNU_str_index.
5805         (follow_die_sig): Update to use type_offset_in_section.
5806         (decode_locdesc): New case DW_OP_GNU_addr_index.
5807         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5808         DW_FORM_GNU_str_index.
5809         (cu_debug_loc_section): New function.
5810         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5811         (dwarf2_per_objfile_free): Unmap .debug_addr section.
5812         Free DWO files if present.
5813         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5814
5815         Refactor DIE reading.
5816         * dwarf2read.c (dwarf2_per_objfile): Replace members
5817         debug_info_type_hash and debug_types_type_hash with die_type_hash.
5818         (die_reader_specs): New member "die_section".  Temporarily make
5819         member "buffer" non-const, pending constifying all info_ptr uses.
5820         (die_reader_func_ftype): New typedef.
5821         (dw2_get_file_names_reader): New function.
5822         (dw2_get_file_names): Rewrite.
5823         (read_and_check_type_unit_head): Rename arg type_offset to
5824         type_offset_in_tu.
5825         (create_all_type_units): Improve debugging message.
5826         Improve dummy type unit check.
5827         (init_cu_die_reader): New arg "section".  All callers updated.
5828         (init_and_read_dies_worker): New function.
5829         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5830         (init_cutu_and_read_dies_no_follow): New function.
5831         (init_cutu_and_read_dies_simple): New function.
5832         (process_psymtab_comp_unit_reader): New function.
5833         (process_psymtab_comp_unit): Delete args section,
5834         is_debug_types_section.  Rewrite.  All callers updated.
5835         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5836         All callers updated.  Rewrite.
5837         (load_partial_comp_unit_reader): New function.
5838         (load_partial_comp_unit): Rewrite.
5839         (skip_children): New arg reader.  Delete args buffer, cu.
5840         All callers updated.
5841         (skip_one_die): New arg reader.  Delete args buffer, cu.
5842         All callers updated.
5843         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
5844         All callers updated.
5845         (load_full_comp_unit_reader): New function.
5846         (load_full_comp_unit): Rewrite.
5847         (read_comp_unit): Delete.
5848         (read_die_and_children_1): Delete, contents moved ...
5849         (read_die_and_children): ... here.
5850         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
5851         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
5852         All callers updated.
5853         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
5854         All callers updated.
5855         (find_partial_die): Rewrite load_all_dies support.
5856         (read_attribute_value): New arg reader.  Delete args abfd, cu.
5857         All callers updated.
5858         (read_attribute): New arg reader.  Delete args abfd, cu.
5859         All callers updated.
5860         (load_full_type_unit): Add assert.
5861         (read_signatured_type_reader): New function.
5862         (read_signatured_type): Rewrite.
5863         (free_stack_comp_unit): Remove call to age_cached_comp_units.
5864         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5865         All callers updated.  Set per_cu->cu = NULL after freeing it.
5866         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5867         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5868         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5869         (set_die_type): Update.
5870         (get_die_type_at_offset): Update.
5871         (read_file_scope): Call prepare_one_comp_unit.
5872         (read_type_unit_scope): Ditto.
5873         (prepare_one_comp_unit): Set producer if present.
5874
5875 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
5876
5877         * probe.c (compile_rx_or_error): Silence ARI warning about missing
5878          gettext function on `error'.
5879
5880 2012-04-27  Doug Evans  <dje@google.com>
5881
5882         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5883         is empty.
5884
5885 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5886             Tom Tromey  <tromey@redhat.com>
5887
5888         * breakpoint.c (struct breakpoint_objfile_data)
5889         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5890         <exception_probes>: New fields.
5891         (free_breakpoint_probes): New function.
5892         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5893         `_Unwind_DebugHook'.
5894         (create_exception_master_breakpoint): Likewise.
5895         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5896         * infrun.c: Including necessary header files for handling SystemTap
5897         probes.
5898         (handle_inferior_event): Handling longjmp breakpoint and exceptions
5899         via SystemTap probes.
5900         (check_exception_resume): Remove `func' argument.  Handle exception
5901         unwinding breakpoint set via a SystemTap probe.
5902         (insert_exception_resume_from_probe): New function.
5903
5904 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5905             Tom Tromey  <tromey@redhat.com>
5906             Jan Kratochvil  <jan.kratochvil@redhat.com>
5907
5908         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5909         (COMMON_OBS): Likewise.
5910         (HFILES_NO_SRCDIR): Add `probe'.
5911         * NEWS: Mention support for static and SystemTap probes.
5912         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5913         SystemTap probes' arguments parser.
5914         * arm-linux-tdep.c: Including headers needed to perform the parsing
5915         of SystemTap probes' arguments.
5916         (arm_stap_is_single_operand): New function.
5917         (arm_stap_parse_special_token): Likewise.
5918         (arm_linux_init_abi): Initializing proper fields used by SystemTap
5919         probes' arguments parser.
5920         * ax-gdb.c (require_rvalue): Removing static declaration.
5921         (gen_expr): Likewise.
5922         * ax-gdb.h (gen_expr): Declaring function.
5923         (require_rvalue): Likewise.
5924         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5925         (bkpt_probe_breakpoint_ops): New variable.
5926         (momentary_breakpoint_from_master): Set the `probe' value.
5927         (add_location_to_breakpoint): Likewise.
5928         (break_command_1): Using proper breakpoint_ops according to the
5929         argument passed by the user in the command line.
5930         (bkpt_probe_insert_location): New function.
5931         (bkpt_probe_remove_location): Likewise.
5932         (bkpt_probe_create_sals_from_address): Likewise.
5933         (bkpt_probe_decode_linespec): Likewise.
5934         (tracepoint_probe_create_sals_from_address): Likewise.
5935         (tracepoint_probe_decode_linespec): Likewise.
5936         (tracepoint_probe_breakpoint_ops): New variable.
5937         (trace_command): Using proper breakpoint_ops according to the
5938         argument passed by the user in the command line.
5939         (initialize_breakpoint_ops): Initializing breakpoint_ops for
5940         static probes on breakpoints and tracepoints.
5941         * breakpoint.h (struct bp_location) <probe>: New field.
5942         * cli-utils.c (skip_spaces_const): New function.
5943         (extract_arg): Likewise.
5944         * cli-utils.h (skip_spaces_const): Likewise.
5945         (extract_arg): Likewise.
5946         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5947         * configure.ac: Append `stap-probe.o' to be generated when ELF
5948         support is present.
5949         * configure: Regenerate.
5950         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5951         * elfread.c: Include `probe.h' and `arch-utils.h'.
5952         (probe_key): New variable.
5953         (elf_get_probes): New function.
5954         (elf_get_probe_argument_count): Likewise.
5955         (elf_evaluate_probe_argument): Likewise.
5956         (elf_compile_to_ax): Likewise.
5957         (elf_symfile_relocate_probe): Likewise.
5958         (stap_probe_key_free): Likewise.
5959         (elf_probe_fns): New variable.
5960         (elf_sym_fns): Add `sym_probe_fns' value.
5961         (elf_sym_fns_lazy_psyms): Likewise.
5962         (elf_sym_fns_gdb_index): Likewise.
5963         (_initialize_elfread): Initialize objfile cache for static
5964         probes.
5965         * gdb_vecs.h (struct probe): New forward declaration.
5966         (probe_p): New VEC declaration.
5967         * gdbarch.c: Regenerate.
5968         * gdbarch.h: Regenerate.
5969         * gdbarch.sh (stap_integer_prefix): New variable.
5970         (stap_integer_suffix): Likewise.
5971         (stap_register_prefix): Likewise.
5972         (stap_register_suffix): Likewise.
5973         (stap_register_indirection_prefix): Likewise.
5974         (stap_register_indirection_suffix): Likewise.
5975         (stap_gdb_register_prefix): Likewise.
5976         (stap_gdb_register_suffix): Likewise.
5977         (stap_is_single_operand): New function.
5978         (stap_parse_special_token): Likewise.
5979         (struct stap_parse_info): Forward declaration.
5980         * i386-tdep.c: Including headers needed to perform the parsing
5981         of SystemTap probes' arguments.
5982         (i386_stap_is_single_operand): New function.
5983         (i386_stap_parse_special_token): Likewise.
5984         (i386_elf_init_abi): Initializing proper fields used by SystemTap
5985         probes' arguments parser.
5986         * i386-tdep.h (i386_stap_is_single_operand): New function.
5987         (i386_stap_parse_special_token): Likewise.
5988         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5989         * mipsread.c (ecoff_sym_fns): Likewise.
5990         * objfiles.c (objfile_relocate1): Support relocation for static
5991         probes.
5992         * parse.c (prefixify_expression): Remove static declaration.
5993         (initialize_expout): Likewise.
5994         (reallocate_expout): Likewise.
5995         * parser-defs.h (initialize_expout): Declare function.
5996         (reallocate_expout): Likewise.
5997         (prefixify_expression): Likewise.
5998         * ppc-linux-tdep.c: Including headers needed to perform the parsing
5999         of SystemTap probes' arguments.
6000         (ppc_stap_is_single_operand): New function.
6001         (ppc_stap_parse_special_token): Likewise.
6002         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6003         probes' arguments parser.
6004         * probe.c: New file, for generic statically defined probe support.
6005         * probe.h: Likewise.
6006         * s390-tdep.c: Including headers needed to perform the parsing of
6007         SystemTap probes' arguments.
6008         (s390_stap_is_single_operand): New function.
6009         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6010         probes' arguments parser.
6011         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6012         * stap-probe.c: New file, for SystemTap probe support.
6013         * stap-probe.h: Likewise.
6014         * symfile.h: Include `gdb_vecs.h'.
6015         (struct sym_probe_fns): New struct.
6016         (struct sym_fns) <sym_probe_fns>: New field.
6017         * symtab.c (init_sal): Initialize `probe' field.
6018         * symtab.h (struct probe): Forward declaration.
6019         (struct symtab_and_line) <probe>: New field.
6020         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6021         locations.
6022         (stop_tracing): Likewise.
6023         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6024
6025 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6026             Tom Tromey  <tromey@redhat.com>
6027
6028         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6029         and to compile agent expressions.
6030         * infrun.c (siginfo_make_value): New argument `ignore'.
6031         (siginfo_funcs): New struct.
6032         (_initialize_infrun): New argument when calling
6033         `create_internalvar_type_lazy'.
6034         * thread.c (thread_id_make_value): New argument `ignore'.
6035         (thread_funcs): New struct.
6036         (_initialize_thread): New argument when calling
6037         `create_internalvar_type_lazy'.
6038         * tracepoint.c (sdata_make_value): New argument `ignore'.
6039         (sdata_funcs): New struct.
6040         (_initialize_tracepoint): New argument when calling
6041         `create_internalvar_type_lazy'.
6042         * value.c (make_value): New struct.
6043         (create_internalvar_type_lazy): New argument `data'.
6044         (compile_internalvar_to_ax): New function.
6045         (value_of_internalvar): Properly handling `make_value' case.
6046         (clear_internalvar): Likewise.
6047         (show_convenience): Adding `TRY_CATCH' block.
6048         * value.h (internalvar_make_value): Delete, replace by...
6049         (struct internalvar_funcs): ... this.
6050         (create_internalvar_type_lazy) <fun>: Delete argument.
6051         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6052         (compile_internalvar_to_ax): New function.
6053         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6054         (tlb_funcs): New struct.
6055         (_initialize_windows_tdep): New argument when calling
6056         `create_internalvar_type_lazy'.
6057
6058 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6059
6060         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6061         see whether it is an address or a constant offset from DW_AT_low_pc.
6062         (dwarf2_record_block_ranges): Likewise.
6063         (read_partial_die): Likewise.
6064
6065 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6066
6067         * MAINTAINERS (Write After Approval): Add myself to the list.
6068
6069 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6070
6071         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6072         (proc_prettyprint_signal): Likewise.
6073         (proc_prettyprint_faultset): Likewise.
6074         (proc_prettyprint_fault): Likewise.
6075         (proc_prettyprint_actionset): Likewise.
6076         (proc_prettyprint_flags): Move to new proc-flags.c section.
6077         (proc_prettyfprint_flags): New prototype.
6078         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6079         (proc_syscall, proc_cursig): Likewise.
6080         (proc_set_kill_on_last_close): Likewise.
6081         (proc_unset_kill_on_last_close): Likewise.
6082         (proc_set_watchpoint): Make static.
6083         (proc_delete_dead_threads): Likewise.
6084         (procfs_set_watchpoint): Likewise.
6085         (_initialize_procfs): Add prototype.
6086         * proc-events.c: Include proc-utils.h.
6087         (init_syscall_table): Make static.
6088         * proc-api.c (_initialize_proc_api): Add prototype.
6089         * proc-flags.c: Include proc-utils.h.
6090
6091 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6092
6093         * configure.ac: Add AC_ARG_PROGRAM.
6094         * configure: Regenerate.
6095
6096 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6097
6098         Fix DW_AT_lower_bound defaults for DWARF-4+.
6099         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6100         high.  New variable low_default_is_valid.  Implement DWARF-4+
6101         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6102         no default by the DWARF standard.
6103
6104 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6105             Maciej W. Rozycki  <macro@codesourcery.com>
6106
6107         * infrun.c (handle_inferior_event): Move the check for return
6108         trampolines ahead of the check for function trampolines.
6109         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6110         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6111         (mips_str_mips16_ret_stub): Likewise.
6112         (mips_str_call_fp_stub): Likewise.
6113         (mips_str_call_stub): Likewise.
6114         (mips_str_fn_stub): Likewise.
6115         (mips_str_pic): Likewise.
6116         (mips_in_frame_stub): New function.
6117         (mips_unwind_pc): Return the return address rather than the PC
6118         if the PC of an intermediate frame is inside a call thunk.
6119         (mips_is_stub_suffix): New function.
6120         (mips_is_stub_mode): Likewise.
6121         (mips_get_mips16_fn_stub_pc): Likewise.
6122         (mips_skip_mips16_trampoline_code): Update to handle all the
6123         currently generated stub types.  Don't recurse into __fn_stub
6124         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6125         Use cooked register accesses.
6126         (mips_in_return_stub): Reintroduce function.
6127         (mips_skip_trampoline_code): Traverse trampolines recursively.
6128         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6129
6130 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6131
6132         GDB 7.4.1 released.
6133
6134 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6135
6136         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6137         * features/arm-with-m-vfp-d16.xml: New file. Describes
6138         Cortex-M with VFPv4-sp-d16 FPU register layout.
6139         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6140         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6141         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6142         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6143         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6144
6145 2012-04-25  Doug Evans  <dje@google.com>
6146
6147         * cli/cli-decode.c (print_doc_line): Use stream instead of
6148         current_uiout.
6149
6150 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6151
6152         * features/arm-with-iwmmxt.c: Regenerate.
6153         * features/arm-with-m-fpa-layout.c: Likewise.
6154         * features/arm-with-m.c: Likewise.
6155         * features/arm-with-neon.c: Likewise.
6156         * features/arm-with-vfpv2.c: Likewise.
6157         * features/arm-with-vfpv3.c: Likewise.
6158         * features/mips-dsp-linux.c: Likewise.
6159         * features/mips-linux.c: Likewise.
6160         * features/mips64-dsp-linux.c: Likewise.
6161         * features/mips64-linux.c: Likewise.
6162         * features/s390-linux32.c: Likewise.
6163         * features/s390-linux32v1.c: Likewise.
6164         * features/s390-linux32v2.c: Likewise.
6165         * features/s390-linux64.c: Likewise.
6166         * features/s390-linux64v1.c: Likewise.
6167         * features/s390-linux64v2.c: Likewise.
6168         * features/s390x-linux64.c: Likewise.
6169         * features/s390x-linux64v1.c: Likewise.
6170         * features/s390x-linux64v2.c: Likewise.
6171         * features/tic6x-c62x-linux.c: Likewise.
6172         * features/tic6x-c62x.c: Likewise.
6173         * features/tic6x-c64x-linux.c: Likewise.
6174         * features/tic6x-c64x.c: Likewise.
6175         * features/tic6x-c64xp-linux.c: Likewise.
6176         * features/tic6x-c64xp.c: Likewise.
6177         * target-descriptions.c: Only generate `field_type' and `type'
6178         variables when needed.
6179
6180 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6181
6182         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6183
6184 2012-04-25  Doug Evans  <dje@google.com>
6185
6186         Initial pass at Go language support.
6187         * NEWS: Mention Go.
6188         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6189         go-valprint.c.
6190         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6191         (YYFILES): Add go-exp.c.
6192         (YYOBJ): Add go-exp.o.
6193         (local-maintainer-clean): Delete go-exp.c.
6194         * defs.h (enum language): Add language_go.
6195         * dwarf2read.c: #include "go-lang.h".
6196         (fixup_go_packaging): New function.
6197         (process_full_comp_unit): Call it when processing Go CUs.
6198         (dwarf2_physname): Add Go support.
6199         (read_file_scope): Handle missing language spec for GNU Go.
6200         (set_cu_language): Handle DW_LANG_Go.
6201         * go-exp.y: New file.
6202         * go-lang.h: New file.
6203         * go-lang.c: New file.
6204         * go-typeprint.c: New file.
6205         * go-valprint.c: New file.
6206         * symtab.c: #include "go-lang.h".
6207         (symbol_set_language): Handle language_go.
6208         (symbol_find_demangled_name, symbol_set_names): Ditto.
6209         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6210
6211 2012-04-24  Jim Meyering  <meyering@redhat.com>
6212
6213         avoid a few strncpy-induced buffer overruns
6214         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6215         fname and psargs before trying to concatenate.
6216         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6217         "name" before applying strchr.
6218
6219 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6220
6221         * CONTRIBUTE: Use unified diff instead of context diff when
6222         generating patches.
6223
6224 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6225
6226         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6227         code.  Handle JR.HB correctly.
6228
6229 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6230
6231         * mips-tdep.c
6232         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6233         with the other MIPS16 helpers.
6234
6235 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6236
6237         * observer.sh: Conditionally declare `args', thus cleaning up
6238         unused instances of this variable.
6239
6240 2012-04-24  Yao Qi  <yao@codesourcery.com>
6241
6242         Revert this patch to allow breakpoint always-inserted
6243         in record target.
6244         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6245         * breakpoint.c: Include record.h.
6246         (breakpoints_always_inserted_mode): Return false when the record
6247         target is in use.
6248
6249         * breakpoint.c (iterate_over_bp_locations): New.
6250         * breakpoint.h: Declare.
6251         New typedef walk_bp_location_callback.
6252         * record.c (record_open): Call record_init_record_breakpoints.
6253         (record_sync_record_breakpoints): New.
6254         (record_init_record_breakpoints): New.
6255         * NEWS: Mention supporting breakpoint always-inserted mode in
6256         record target.
6257
6258 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6259
6260         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6261         any thread.
6262
6263 2012-04-24  Yao Qi  <yao@codesourcery.com>
6264
6265         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6266         (is_catchpoint): ... it.
6267         (print_one_breakpoint_location): Caller update.
6268         * breakpoint.h: Update declaration.
6269
6270 2012-04-23  David S. Miller  <davem@davemloft.net>
6271
6272         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6273
6274 2012-04-23  Tom Tromey  <tromey@redhat.com>
6275
6276         * buildsym.c (add_free_pendings): Remove.
6277         * buildsym.h (add_free_pendings): Remove.
6278
6279 2012-04-23  Doug Evans  <dje@google.com>
6280
6281         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6282         attr.u.unsnd instead of attr.u.addr.
6283         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6284         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6285         DW_FORM_ref_udata.
6286         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6287         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6288         DW_FORM_ref_udata.
6289         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6290
6291 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6292
6293         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6294         (mips_o32_return_value): Likewise.
6295         (mips_o64_return_value): Likewise.
6296
6297 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6298
6299         * ada-lang.c (ada_evaluate_subexp): Add cases for
6300         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6301         their treatment in eval.c.
6302
6303 2012-04-21  David S. Miller  <davem@davemloft.net>
6304
6305         * sparc-tdep.c (X_DISP10): Define.
6306         (sparc_analyze_control_transfer): Handle compare-and-branch.
6307
6308 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6309
6310         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6311         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6312
6313 2012-04-20  Nigel Stephens  <nigel@mips.com>
6314             Maciej W. Rozycki  <macro@codesourcery.com>
6315
6316         * mips-tdep.c (mips_float_register_p): New function.
6317         (mips_convert_register_float_case_p): Use mips_float_register_p.
6318         (mips_register_type): Likewise.
6319         (mips_print_register): Likewise.
6320         (print_gp_register_row): Likewise.
6321         (mips_print_registers_info): Likewise.
6322
6323 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6324
6325         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6326         of mips16 symbols.
6327
6328 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6329
6330         * MAINTAINERS (Write After Approval): Add myself to the list.
6331
6332 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6333
6334         * MAINTAINERS: Update my e-mail address.
6335
6336 2012-04-20  Pedro Alves  <palves@redhat.com>
6337
6338         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6339         $srcdir.
6340         * configure: Regenerate.
6341
6342 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6343
6344         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6345         declaration.
6346         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6347
6348 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6349
6350         Fix compilation compatibility with python-2.4
6351         * python/py-type.c (convert_field): Cast ADDRSTRING for
6352         PyObject_SetAttrString as non-const.  New comment.
6353
6354 2012-04-19  Tom Tromey  <tromey@redhat.com>
6355
6356         * top.c (quit_target): Use all_cleanups.
6357         * main.c (captured_command_loop): Use all_cleanups.
6358         * exceptions.c (throw_exception): Use all_cleanups.
6359
6360 2012-04-19  Pedro Alves  <palves@redhat.com>
6361
6362         * Makefile.in (GNULIB_BUILDDIR): New.
6363         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6364         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6365         (CLEANDIRS). Remove gnulib/import.
6366         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6367         (all-lib): Ditto.
6368         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6369         (gnulib/import/Makefile): Replace gnulib/import with
6370         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6371         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6372         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6373         acx_configure_dir.m4.
6374         * acinclude.m4: Include acx_configure_dir.m4.
6375         * acx_configure_dir.m4: New file.
6376         * aclocal.m4: Regenerate.
6377         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6378         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6379         (GNULIB): New variable.
6380         (GNULIB_STDINT_H): Adjust.
6381         (AC_OUTPUT): Don't output gnulib/Makefile.
6382         * gdb/defs.h: Include build-gnulib/config.h.
6383         * aclocal.m4: Regenerate.
6384         * config.in: Regenerate.
6385         * configure: Regenerate.
6386
6387         * gnulib/Makefile.in: New file.
6388         * gnulib/configure.ac: New file.
6389         * gnulib/aclocal.m4: New file.
6390         * gnulib/config.in: New file.
6391         * gnulib/configure: New file.
6392         * gnulib/: Re-run gnulib-tool to adjust.
6393
6394 2012-04-19  Doug Evans  <dje@google.com>
6395
6396         * cleanups.h (struct cleanup): Move to cleanups.c.
6397         (make_cleanup_dtor_ftype): New typedef.
6398         (make_cleanup_dtor): Use it.
6399         (ALL_CLEANUPS): Replace with ...
6400         (all_cleanups): ... this.  Declare.  All uses updated.
6401         * cleanups.c: #include "gdb_assert.h".
6402         (sentinel_cleanup): New static global.
6403         (SENTINEL_CLEANUP): Define.
6404         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6405         (make_my_cleanup2): Assert result is non-NULL.
6406         (all_cleanups): New function.
6407         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6408         of NULL.
6409
6410 2012-04-19  Pedro Alves  <palves@redhat.com>
6411
6412         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6413         Adjust paths to gnulib imported files.
6414
6415 2012-04-19  Pedro Alves  <palves@redhat.com>
6416
6417         * gnulib/: Move whole directory ...
6418         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6419         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6420         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6421         (aclocal_m4_deps): Adjust.
6422         * aclocal.m4: Regenerate.
6423         * configure: Regenerate.
6424         * configure.ac: Adjust AC_OUTPUT output.
6425
6426 2012-04-19  Yao Qi  <yao@codesourcery.com>
6427
6428         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6429         (vec.o): New rule.
6430         * vec.c: Move it ...
6431         * common/vec.c: ... here.
6432         * vec.h: Move it ...
6433         * common/vec.h: ... here.
6434
6435 2012-04-19  Yao Qi  <yao@codesourcery.com>
6436
6437         * gdb-code-style.el: New.
6438
6439 2012-04-18  Pedro Alves  <palves@redhat.com>
6440
6441         Update gnulib from latest git.
6442         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6443
6444         * gnulib/Makefile.am: Update.
6445         * gnulib/dummy.c: Update.
6446         * gnulib/extra/arg-nonnull.h: Update.
6447         * gnulib/extra/c++defs.h: Update.
6448         * gnulib/extra/update-copyright: Update.
6449         * gnulib/extra/warn-on-use.h: Update.
6450         * gnulib/inttypes.in.h: Update.
6451         * gnulib/m4/00gnulib.m4: Update.
6452         * gnulib/m4/extensions.m4: Update.
6453         * gnulib/m4/gnulib-cache.m4: Update.
6454         * gnulib/m4/gnulib-common.m4: Update.
6455         * gnulib/m4/gnulib-comp.m4: Update.
6456         * gnulib/m4/gnulib-tool.m4: Update.
6457         * gnulib/m4/include_next.m4: Update.
6458         * gnulib/m4/inttypes-pri.m4: Update.
6459         * gnulib/m4/inttypes.m4: Update.
6460         * gnulib/m4/longlong.m4: Update.
6461         * gnulib/m4/memchr.m4: Update.
6462         * gnulib/m4/memmem.m4: Update.
6463         * gnulib/m4/mmap-anon.m4: Update.
6464         * gnulib/m4/multiarch.m4: Update.
6465         * gnulib/m4/onceonly.m4: Update.
6466         * gnulib/m4/stddef_h.m4: Update.
6467         * gnulib/m4/stdint.m4: Update.
6468         * gnulib/m4/string_h.m4: Update.
6469         * gnulib/m4/warn-on-use.m4: Update.
6470         * gnulib/m4/wchar_h.m4: Update.
6471         * gnulib/m4/wchar_t.m4: Update.
6472         * gnulib/m4/wint_t.m4: Update.
6473         * gnulib/memchr.c: Update.
6474         * gnulib/memmem.c: Update.
6475         * gnulib/stddef.in.h: Update.
6476         * gnulib/stdint.in.h: Update.
6477         * gnulib/str-two-way.h: Update.
6478         * gnulib/string.in.h: Update.
6479         * gnulib/wchar.in.h: Update.
6480
6481         * gnulib/extra/arg-nonnull.h: Delete.
6482         * gnulib/extra/c++defs.h: Delete.
6483         * gnulib/extra/warn-on-use.h: Delete.
6484         * gnulib/m4/wchar_h.m4: Delete.
6485         * gnulib/m4/wint_t.m4: Delete.
6486         * gnulib/wchar.in.h: Delete.
6487
6488         * gnulib/extra/snippets/arg-nonnull.h: New.
6489         * gnulib/extra/snippets/c++defs.h: New.
6490         * gnulib/extra/snippets/warn-on-use.h: New.
6491
6492         * aclocal.m4: Regenerate.
6493         * config.in: Regenerate.
6494         * configure: Regenerate.
6495         * gnulib/Makefile.in: Regenerate.
6496
6497 2012-04-18  Pedro Alves  <palves@redhat.com>
6498
6499         Reimport the update-copyright module from gnulib
6500         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6501
6502         * configure: Regenerate.
6503         * gnulib/Makefile.am: Update.
6504         * gnulib/Makefile.in: Regenerate.
6505         * gnulib/extra/update-copyright: Update.
6506         * gnulib/m4/gnulib-cache.m4: Update.
6507         * gnulib/m4/gnulib-comp.m4: Update.
6508
6509 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6510
6511         * configure.ac (aix): Put -lpthread into libs.
6512         * configure: Regenerate.
6513
6514 2012-04-18  Tom Tromey  <tromey@redhat.com>
6515
6516         * linespec.c (convert_linespec_to_sals): Don't use
6517         SYMBOL_OBJ_SECTION.
6518         (compare_msymbols): Arguments are minsym_and_objfile, not
6519         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6520
6521 2012-04-18  Pedro Alves  <palves@redhat.com>
6522
6523         Revert gnulib/ part of:
6524         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6525         Copyright year update in most files (performed by copyright.sh).
6526
6527 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6528
6529         Fix 64-bit constants on 32-bit hosts.
6530         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6531         from unsigned long to ULONGEST.
6532         (read_signed_leb128): Change declaration return type from long to
6533         LONGEST.
6534         (dwarf2_const_value_attr): Change declaration parameter value from long
6535         to LONGEST.
6536         (dwarf2_compute_name): Change variable value from long to LONGEST.
6537         (read_unsigned_leb128): Change return type, variable result and some
6538         casts from unsigned long to ULONGEST.
6539         (read_signed_leb128): Change return type, variable result and some
6540         casts from long to LONGEST.
6541         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6542         value from long to LONGEST.
6543         (dwarf2_const_value): Change variable value from long to LONGEST.
6544         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6545         plongest and hex_string.
6546         * symtab.h (struct general_symbol_info): Change ivalue from long to
6547         LONGEST, remove the comment.
6548         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6549         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6550
6551 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6552
6553         PR symtab/7259:
6554         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6555         * ada-lang.c (ada_discrete_type_high_bound)
6556         (ada_discrete_type_low_bound): Fix function comment.  Use
6557         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6558         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6559         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6560         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6561         Use TYPE_FIELD_ENUMVAL.
6562         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6563         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6564         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6565         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6566         TYPE_CODE_ENUM.
6567         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6568         * dwarf2read.c (process_enumeration_scope): Likewise.
6569         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6570         field.bitpos.
6571         (class StructMainTypePrettyPrinter): Support also
6572         FIELD_LOC_KIND_ENUMVAL.
6573         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6574         TYPE_CODE_ENUM.
6575         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6576         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6577         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6578         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6579         field enumval.
6580         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6581         accommodate enumval.
6582         (struct call_site): Adjust loc_kind to accommodate enumval.
6583         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6584         (TYPE_FIELD_ENUMVAL): New macros.
6585         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6586         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6587         TYPE_CODE_ENUM.
6588         * p-typeprint.c (pascal_type_print_base): Likewise.
6589         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6590         enumval.
6591         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6592         * python/py-type.c (convert_field): New variable addrstring.  Use
6593         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6594         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6595         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6596         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6597         TYPE_CODE_ENUM.
6598         * valprint.c (generic_val_print): Likewise.
6599
6600 2012-04-17  Doug Evans  <dje@google.com>
6601
6602         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6603
6604         * dwarf2read.c: Whitespace fixes.
6605         (lookup_signatured_type): Tweak comment.
6606         (get_die_type_at_offset): Fix comment.
6607
6608 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6609
6610         * xcoffread.c (xcoff_secnum_to_sections): New function.
6611         (secnum_to_section, secnum_to_bfd_section): Reimplement
6612         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6613         into "n_scnum".
6614         (RECORD_MINIMAL_SYMBOL): Delete.
6615         (record_minimal_symbol): New function.
6616         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6617         by call to record_minimal_symbol and set misc_func_recorded
6618         to 1.  Set last_csect_sec to the XCOFF section index instead
6619         of GDB's section_offset index.  Update calls to
6620         prim_record_minimal_symbol_and_info to pass the BFD section
6621         as well.
6622
6623 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6624
6625         * xcoffread.c (read_xcoff_symtab): Delete variables
6626         last_csect_val and last_csect_sec and associated code.
6627
6628 2012-04-17  Doug Evans  <dje@google.com>
6629
6630         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6631         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6632         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6633         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6634
6635         * cleanups.h: New file.
6636         * cleanups.c: New file.
6637         * Makefile.in (SFILES): Add cleanups.c.
6638         (HFILES_NO_SRCDIR): Add cleanups.h.
6639         (COMMON_OBS): Add cleanups.o.
6640         * defs.h (struct cleanup): Moved to cleanups.h.
6641         (do_cleanups,do_final_cleanups): Ditto.
6642         (discard_cleanups,discard_final_cleanups): Ditto
6643         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6644         (save_cleanups,save_final_cleanups): Ditto.
6645         (restore_cleanups,restore_final_cleanups): Ditto.
6646         (null_cleanup): Ditto.
6647         (make_my_cleanup,make_my_cleanup2): Ditto.
6648         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6649         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6650         (do_cleanups,do_final_cleanups): Ditto.
6651         (discard_cleanups,discard_final_cleanups): Ditto
6652         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6653         (save_cleanups,save_final_cleanups): Ditto.
6654         (restore_cleanups,restore_final_cleanups): Ditto.
6655         (null_cleanup): Ditto.
6656         (make_my_cleanup,make_my_cleanup2): Ditto.
6657         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6658
6659         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6660         make_my_cleanup.
6661         (make_cleanup_dyn_string_delete): Ditto.
6662         (make_cleanup_ui_file_delete): Ditto.
6663         (make_cleanup_ui_out_redirect_pop): Ditto.
6664         (make_cleanup_free_section_addr_info): Ditto.
6665         (make_cleanup_restore_integer): Ditto.
6666         (make_cleanup_unpush_target): Ditto.
6667         (make_cleanup_value_free_to_mark): Ditto.
6668         (make_cleanup_value_free): Ditto.
6669         (make_cleanup_free_so): Ditto.
6670
6671 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6672
6673         New option "set debug auto-load".
6674         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6675         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6676         (auto_load_safe_path_vec_update)
6677         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6678         if DEBUG_AUTO_LOAD.
6679         (file_is_auto_load_safe): New parameters debug_fmt and ....
6680         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6681         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6682         caller by explanatory string.
6683         (_initialize_auto_load): Register "set debug auto-load".
6684         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6685         and ....
6686         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6687         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6688         by explanatory string.
6689         * main.c (captured_main): Likewise.
6690         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6691         (source_section_scripts): Likewise.
6692
6693 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6694
6695         New option "set auto-load safe-path".
6696         * NEWS: New commands "set auto-load safe-path"
6697         and "show auto-load safe-path".
6698         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6699         (auto_load_safe_path, auto_load_safe_path_vec)
6700         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6701         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6702         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6703         (source_gdb_script_for_objfile): New variable is_safe.  Call
6704         file_is_auto_load_safe.  Return if it is not.
6705         (struct loaded_script): New field loaded.
6706         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6707         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6708         output "Missing" to "No".
6709         (_initialize_auto_load): New variable cmd.  Initialize
6710         auto_load_safe_path.  Register "set auto-load safe-path",
6711         "show auto-load safe-path" and "add-auto-load-safe-path".
6712         * auto-load.h (maybe_add_script): Add parameter loaded.
6713         (file_is_auto_load_safe): New declaration.
6714         * config.in: Regenerate.
6715         * configure: Regenerate.
6716         * configure.ac: New parameters --with-auto-load-safe-path
6717         and --without-auto-load-safe-path.
6718         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6719         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6720         * main.c (captured_main): Check file_is_auto_load_safe for
6721         LOCAL_GDBINIT.
6722         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6723         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6724         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6725         not.
6726
6727 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6728
6729         auto-load: Implementation.
6730         * NEWS: New descriptions for "info auto-load",
6731         "info auto-load gdb-scripts", "info auto-load python-scripts",
6732         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6733         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6734         and "show auto-load-scripts".  New description for "set auto-load",
6735         "show auto-load", "set auto-load gdb-scripts",
6736         "show auto-load gdb-scripts", "set auto-load python-scripts",
6737         "show auto-load python-scripts", "set auto-load local-gdbinit",
6738         "show auto-load local-gdbinit", "set auto-load libthread-db" and
6739         "show auto-load libthread-db".
6740         * auto-load.c: Remove include python/python-internal.h.  Add includes
6741         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6742         cli/cli-setshow.h.
6743         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6744         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6745         (gdbpy_global_auto_load): Rename to ...
6746         (global_auto_load): ... here.
6747         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6748         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6749         (script_language_gdb, source_gdb_script_for_objfile): New.
6750         (struct loaded_script): New field language.
6751         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6752         LANGUAGE.
6753         (maybe_add_script): Add parameter language.  Drop redundant
6754         entry.full_path initialization.  Initialize entry.language and
6755         (*slot)->language.
6756         (auto_load_objfile_script): Change parameter suffix to language.
6757         Remove the call of maybe_add_script.
6758         Call language->source_script_for_objfile.
6759         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6760         New.
6761         (collect_matching_scripts): Adjust it for
6762         struct collect_matching_scripts_data.
6763         (auto_load_info_scripts_pattern_nl): New variable.
6764         (info_auto_load_scripts): Rename to ...
6765         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
6766         for struct collect_matching_scripts_data.
6767         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6768         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6769         (auto_load_show_cmdlist_get, info_auto_load_cmd)
6770         (auto_load_info_cmdlist_get): New.
6771         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6772         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
6773         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6774         "info auto-load local-gdbinit".
6775         * auto-load.h (struct script_language): New.
6776         (gdbpy_global_auto_load): Rename to ...
6777         (global_auto_load): ... here.
6778         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6779         (auto_load_local_gdbinit_loaded): New declarations.
6780         (maybe_add_script): New parameter language.
6781         (auto_load_objfile_script): Change parameter suffix to language.
6782         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6783         (auto_load_info_scripts, auto_load_set_cmdlist_get)
6784         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6785         declarations.
6786         * linux-thread-db.c: Include auto-load.h and ctype.h.
6787         (auto_load_thread_db, show_auto_load_thread_db): New.
6788         (struct thread_db_info): New field filename.
6789         (delete_thread_db_info): Call xfree for FILENAME.
6790         (try_thread_db_load): Initialize FILENAME.
6791         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6792         if !AUTO_LOAD_THREAD_DB.
6793         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6794         (_initialize_thread_db): Install auto_load_thread_db
6795         as "set auto-load libthread-db" and install info_auto_load_libthread_db
6796         as "info auto-load libthread-db".
6797         * main.c (captured_main): Rename gdbpy_global_auto_load to
6798         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6799         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6800         (print_gdb_help): Extend the help for 'local init file'.
6801         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6802         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6803         (auto_load_scripts): Rename to ...
6804         (auto_load_python_scripts): ... here, update the comment.
6805         (gdbpy_load_auto_script_for_objfile): New declaration.
6806         (show_auto_load_python_scripts, script_language_python)
6807         (gdbpy_load_auto_script_for_objfile): New.
6808         (source_section_scripts): Refactor the code.
6809         (load_auto_scripts_for_objfile): Rename to ...
6810         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6811         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6812         (info_auto_load_python_scripts): New.
6813         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6814         Rename "set auto-load-scripts" to "set auto-load python-scripts".
6815         Register "set auto-load-scripts" as its deprecated alias.  Register
6816         "info auto-load python-scripts".  Register "info auto-load-scripts" as
6817         its deprecated alias.
6818         (load_auto_scripts_for_objfile): Rename to ...
6819         (gdbpy_load_auto_scripts_for_objfile): ... here.
6820         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6821         (gdbpy_load_auto_scripts_for_objfile): ... here.
6822
6823 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6824
6825         auto-load: Move files.
6826         * Makefile.in (SFILES): Add auto-load.c.
6827         (HFILES_NO_SRCDIR): Add auto-load.h.
6828         (COMMON_OBS): Add auto-load.o.
6829         (distclean): Change .gdbinit for gdb-gdb.gdb.
6830         * auto-load.c: New file, with parts from python/py-auto-load.c.
6831         * auto-load.h: New file, with parts from python/python.h.
6832         * configure: Regenerate.
6833         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6834         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6835         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6836         * main.c: Include auto-load.h.
6837         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6838         command.h, observer.h and progspace.h to auto-load.c.  Add include
6839         auto-load.h.
6840         (gdbpy_global_auto_load, struct auto_load_pspace_info)
6841         (struct loaded_script, auto_load_pspace_data)
6842         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6843         (hash_loaded_script_entry, eq_loaded_script_entry)
6844         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6845         (maybe_add_script): Move to auto-load.c.
6846         (source_section_scripts): Change maybe_add_script parameters passing,
6847         use script_not_found_warning_print.
6848         (clear_section_scripts, auto_load_objfile_script)
6849         (auto_load_new_objfile, loaded_script_ptr)
6850         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6851         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6852         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6853         auto_load_new_objfile and info_auto_load_scripts initizations to
6854         auto-load.c.
6855         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6856
6857 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6858
6859         Code cleanup.
6860         * charset.c (find_charset_names): Remove variables ix and elt.
6861         Use free_char_ptr_vec.
6862         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6863         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
6864         debugdir_end.  New variable debugdir_len.
6865         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6866         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6867         declarations.
6868         * progspace.c (clear_program_space_solib_cache): Remove variables ix
6869         and elt.  Use free_char_ptr_vec.
6870         * source.c (add_path): Remove variables argv, arg and argv_index.
6871         New variables dir_vec, back_to, ix and name.
6872         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
6873         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
6874         no longer expecting DIRNAME_SEPARATOR.
6875         (openp): Remove variable p, p1 and len.  New variables dir_vec,
6876         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
6877         no longer expecting DIRNAME_SEPARATOR.
6878         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6879         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
6880         debugdir_end.
6881         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6882         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6883         (dirnames_to_char_ptr_vec): New functions.
6884
6885 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6886
6887         Code cleanup.
6888         * source.c (add_path): Remove always true conditional 'p == 0' and
6889         unindent its code block.
6890
6891 2012-04-17  Pedro Alves  <palves@redhat.com>
6892
6893         * gdbtypes.h (FIELD_BITPOS): Rename to ...
6894         (FIELD_BITPOS_LVAL): ... this.
6895         (FIELD_BITPOS): New.
6896         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6897         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6898         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6899         SET_FIELD_BITPOS.
6900         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6901         SET_FIELD_BITPOS.
6902         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6903         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6904         * target-descriptions.c (tdesc_gdb_type): Adjust to use
6905         SET_FIELD_BITPOS.
6906
6907 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6908
6909         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6910         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6911         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6912         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6913         * jv-lang.c (java_link_class_type): Likewise, once.
6914         * stabsread.c (read_enum_type): Likewise.
6915
6916 2012-04-16  Yao Qi  <yao@codesourcery.com>
6917
6918         * common/agent.c (agent_run_command): Add one more parameter `len'.
6919         Update callers.
6920         * common/agent.h: Update declaration.
6921         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6922         Update.
6923         (linux_child_static_tracepoint_markers_by_strid): Ditto.
6924
6925 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
6926
6927         PR mi/13393
6928         * value.c (value_actual_type): New function.
6929         * value.h (value_actual_type): New declaration.
6930         * varobj.c (update_type_if_necessary): New function.
6931         (varobj_create): Call value_actual_type instead of
6932         value_type.
6933         (install_dynamic_child): distinct changed and type changed MI variable
6934         objects.
6935         (update_dynamic_varobj_children): Updated for install_dynamic_child
6936         change.  All callers updated.
6937         (varobj_update): Support for MI variable object type change if
6938         the value changed and RTTI is used to determine the type.
6939         (create_child_with_value): Call value_actual_type instead of
6940         value_type.
6941         (adjust_value_for_child_access): Extended with a new parameter which
6942         specify whether the given value should be casted to enclosing type.
6943         All callers updated.
6944
6945 2012-04-14  Yao Qi  <yao@codesourcery.com>
6946
6947         Import gnulib module inttypes from git
6948         (250b80067c1e1d8faa0c42fb572f721975b929c5)
6949         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6950         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6951         gnulib/m4/inttypes-pri.m4
6952         * aclocal.m4, config.in, configure: Regenerated.
6953         * gnulib/Makefile.am: Update.
6954         * gnulib/Makefile.in: Update.
6955         * gnulib/m4/gnulib-cache.m4: Update.
6956         * gnulib/m4/gnulib-comp.m4: Update.
6957         * gnulib/inttypes.in.h: New.
6958         * gnulib/m4/inttypes-pri.m4: New.
6959         * gnulib/m4/inttypes.m4: New.
6960
6961 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
6962
6963         * infrun.c (resume): Update PC address to the real PC after
6964         preparing to do displaced stepping.
6965
6966 2012-04-12  Doug Evans  <dje@google.com>
6967
6968         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6969         All callers updated.
6970
6971 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
6972
6973         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6974
6975 2012-04-12  Doug Evans  <dje@google.com>
6976
6977         * dwarf2read.c (create_all_type_units): Renamed from
6978         create_debug_types_hash_table.  All callers updated.
6979
6980         * dwarf2read.c (create_signatured_type_table_from_index): Rename
6981         local type_sig to sig_type, type_offset to type_offset_in_tu.
6982         (hash_signatured_type): Renamed from hash_type_signature,
6983         all callers updated.
6984         (eq_signatured_type): Renamed from eq_type_signature,
6985         all callers updated.
6986         (create_debug_types_hash_table): Rename local type_sig to sig_type.
6987         (process_enumeration_scope): Ditto.
6988         (lookup_signatured_type_at_offset): Ditto.
6989         (load_full_type_unit, read_signatured_type): Ditto.
6990
6991 2012-04-12  Yao Qi  <yao@codesourcery.com>
6992
6993         * remote.c (async_remote_interrupt): Correct function name in
6994         debug message.
6995         (async_remote_interrupt_twice): Ditto.
6996
6997 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
6998
6999         * source.c (find_and_open_source): Consistently pass resulting
7000         full path through xfullpath.
7001
7002 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7003
7004         Provide more specific displaced-stepping memory error message.
7005         * infrun.c (displaced_step_prepare): New variable status.  Call
7006         target_read_memory instead of read_memory, provide more specific
7007         error message.
7008
7009 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7010
7011         PR gdb/13901
7012         * darwin-nat.c (darwin_execvp): Revert previous patch.
7013
7014 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7015
7016         PR gdb/13901
7017         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7018         in case of change.
7019
7020 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7021
7022         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7023         warning.
7024
7025 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7026
7027         New command 'explore' which helps explore values and types in
7028         scope.
7029         * NEWS: Add an entry about the new 'explore' command.
7030         * data-directory/Makefile.in: Add gdb/command/explore.py
7031         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7032         command using the GDB Python API.
7033
7034 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7035
7036         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7037         extension in jump target calculation.
7038
7039 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7040
7041         * mips-tdep.c (mips32_next_pc): Handle JALX.
7042
7043 2012-04-10  Yao Qi  <yao@codesourcery.com>
7044
7045         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7046
7047 2012-04-10  Yao Qi  <yao@codesourcery.com>
7048
7049         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7050         and gnulib/m4/gnulib-tool.m4.
7051
7052 2012-04-10  Doug Evans  <dje@google.com>
7053
7054         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7055         (load_partial_dies): Clarify comment.
7056         (find_partial_die): Support rereading type units.
7057         Clarify CU handling, if we know offset is in CU, don't search for the
7058         containing CU.  Add comment regarding memory waste.
7059
7060 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7061
7062         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7063         i386/x32-avx and i386/x32-avx-linux.
7064         (i386/x32-expedite): New.
7065         (i386/x32-linux-expedite): Likewise.
7066         (i386/x32-avx-expedite): Likewise.
7067         (i386/x32-avx-linux-expedite): Likewise.
7068         ($(outdir)/i386/x32.dat): Likewise.
7069         ($(outdir)/i386/x32-linux.dat): Likewise.
7070         ($(outdir)/i386/x32-avx.dat): Likewise.
7071         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7072
7073         * features/i386/x32-avx-linux.xml: New file.
7074         * features/i386/x32-avx.xml: Likewise.
7075         * features/i386/x32-core.xml: Likewise.
7076         * features/i386/x32-linux.xml: Likewise.
7077         * features/i386/x32.xml: Likewise.
7078
7079         * features/i386/x32-avx-linux.c: New.  Generated.
7080         * features/i386/x32-avx.c: Likewise.
7081         * features/i386/x32-linux.c: Likewise.
7082         * features/i386/x32.c: Likewise.
7083         * regformats/i386/x32-avx-linux.dat: Likewise.
7084         * regformats/i386/x32-avx.dat: Likewise.
7085         * regformats/i386/x32-linux.dat: Likewise.
7086         * regformats/i386/x32.dat: Likewise.
7087
7088 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7089
7090         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7091         code to kill the inferior.
7092
7093 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7094
7095         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7096         defines.
7097         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7098         defines.
7099         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7100         (yyvsp): New defines.
7101         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7102         defines.
7103         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7104         defines.
7105         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7106         defines.
7107         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7108         defines.
7109         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7110         defines.
7111
7112 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7113
7114         * sparc64-tdep.c (sparc64_store_arguments)
7115         (sparc64_store_arguments): Fix coding style.
7116
7117 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7118
7119         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7120         complex floats, adjust some related comments and tighten a related
7121         assertion.
7122         (sparc64_extract_return_value): Handle complex floats.
7123
7124 2012-04-07  Doug Evans  <dje@google.com>
7125
7126         * dwarf2read.c (load_partial_dies): Change condition to assert.
7127
7128 2012-04-06  Doug Evans  <dje@google.com>
7129
7130         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7131         "mov %rsp,%rbp".
7132
7133 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7134
7135         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7136         fencepost error.
7137         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7138         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7139         architecture.
7140
7141 2012-04-05  Keith Seitz  <keiths@redhat.com>
7142
7143         * linespec.c (decode_compound): Remove.
7144         (enum offset_relative_sign): New enum.
7145         (struct line_offset): New struct.
7146         (struct linespec): New struct.
7147         (struct linespec_state): Move file_symtabs,
7148         user_filename, and user_function into struct linespec.
7149         Make result an anonymous struct holding vectors of
7150         symbolp and minsym_and_objfile_d.
7151         Add language member.
7152         (enum ls_token_type): New enum.
7153         (linespec_keywords): New array.
7154         (struct ls_token): New struct.
7155         (struct ls_parser): New struct.
7156         (linespec_lexer_lex_number): New function.
7157         (linespec_lexer_lex_keyword): New function.
7158         (is_ada_operator): New function.
7159         (skip_quote_char): New function.
7160         (copy_token_string): New function.
7161         (is_closing_quote_enclosed): New function.
7162         (find_parameter_list_end): New function.
7163         (linespec_lexer_lex_string): New function.
7164         (linespec_lexer_lex_one): New function.
7165         (linespec_lexer_consume_token): New function.
7166         (linespec_lexer_peek_token): New function.
7167         (cplusplus_error): Remove unused function.
7168         (find_methods): Update comment.
7169         (find_toplevel_char): Return const.
7170         (is_objc_method_format): Remove unused function.
7171         (find_toplevel_string): New function.
7172         (is_linespec_boundary): Remove.
7173         (symbol_not_found_error): New function.
7174         (find_method_overload_end): Remove function.
7175         (unexpected_linespec_error): New function.
7176         (keep_name_info): Remove.
7177         (linespec_parse_line_offset): New function.
7178         (linespec_parse_basic): New function.
7179         (canonicalize_linespec): New function.
7180         (decode_line_internal): Remove.
7181         (create_sals_line_offset): New function adapted from
7182         decode_all_digits.
7183         (convert_linespec_to_sals): New function.
7184         (parse_linespec): New function.
7185         (linespec_parser_new): New function.
7186         (linespec_state_destructor): Change parameter type to
7187         struct linespec_state *.
7188         Add language parameter.
7189         Remove freeing of moved members.
7190         (linespec_parser_delete): New function.
7191         (decode_line_full): Use parse_linespec and linespec_parser_new.
7192         (decode_line_1): Likewise.
7193         (decode_indirect): Rename to ...
7194         (linespec_expression_to_pc): ... this and rewrite
7195         to simply find CORE_ADDR, storing this result for later
7196         conversion to SALs.
7197         (locate_first_half): Remove.
7198         (deocde_objc): Add parameter LS.
7199         Initialize new struct collect_info members.
7200         Handle minimal symbols, too.
7201         (decode_compound): Delete.
7202         (lookup_prefix_sym): Rewrite.
7203         (compare_msymbols): New function.
7204         (find_method): Rewrite.
7205         Do not call cplusplus_error.
7206         (symtabs_from_filename): Rewrite.
7207         (collect_function_symbols): Delete.
7208         (find_function_symbols): Rewrite without ARGPTR-style
7209         processing.
7210         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7211         (decode_dollar): Adapted and renamed to ...
7212         (linespec_parse_variable): ... this.
7213         (find_linespec_symbols): New function.
7214         (decode_label): Adapted and renamed to ...
7215         (find_label_symbols): ... this.
7216         (decode_digits_list_mode): Add and use LS argument.
7217         (decode_digits_ordinary): Likewise.
7218         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7219         If in list mode, allow any symbol class.  Otherwise, only
7220         permit LOC_BLOCK symbols.
7221         (minsym_found): Update comments.
7222         (search_minsyms_for_name): Do not convert the matching symbol
7223         into a SAL.  Simply push the symbol and objfile into the
7224         result vector.
7225         (decode_variable): Delete. Contents adapted into
7226         find_linespec_symbols.
7227
7228         * cp-support.c (SKIP_SPACE): Remove.
7229         (operator_tokens): Remove unused global.
7230         (cp_validate_operator): Remove.
7231         * cp-support.h (cp_validate_operator): Remove declaration.
7232
7233 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7234
7235         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7236         for TYPE_VPTR_FIELDNO.
7237         * valprint.c (valprint_check_validity): Make it global, move the
7238         function comment ...
7239         * value.h (valprint_check_validity): ... to this new declaration.
7240
7241 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7242
7243         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7244         the STATE32 api for i386 state.
7245         (i386_darwin_store_inferior_registers): Likewise.
7246
7247 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7248
7249         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7250         SS offset.
7251         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7252         format_string.
7253
7254 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7255
7256         PR gdb/13901
7257         * darwin-nat.c (darwin_execvp): Set binary preference.
7258
7259 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7260
7261         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7262
7263 2012-03-30  Tom Tromey  <tromey@redhat.com>
7264
7265         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7266         of TRY_CATCH.  Fix error handling.
7267         * python/py-value.c (convert_value_from_python): Move 'old'
7268         declaration to innermost scope.
7269
7270 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7271             Andrey Smirnov  <andrew.smirnov@gmail.com>
7272
7273         -Wshadow warning fix.
7274         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7275         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7276         Adjust code accordingly.
7277
7278 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7279
7280         * ada-lang.c (symbol_completion_add): Rename parameter
7281         "encoded" into "encoded_p".  Ajust code and documentation
7282         accordingly.
7283
7284 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7285             Andrey Smirnov  <andrew.smirnov@gmail.com>
7286
7287         -Wshadow warning fix.
7288         * ada-lang.c (symbol_completion_add): Rename parameter
7289         "wild_match" into wild_match_p.  Update code and documentation
7290         accordingly.
7291
7292 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7293
7294         * ada-lang.c (symbol_completion_match): Rename parameter
7295         "encoded" into "encoded_p".  Ajust code and documentation
7296         accordingly.
7297
7298 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7299             Andrey Smirnov  <andrew.smirnov@gmail.com>
7300
7301         -Wshadow warning fix.
7302         * ada-lang.c (symbol_completion_match): Rename parameter
7303         "wild_match" into "wild_match_p".  Adjust code and function
7304         documentation accordingly.
7305
7306 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7307             Andrey Smirnov  <andrew.smirnov@gmail.com>
7308
7309         -Wshadow warning fix.
7310         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7311         "symbol_info" into "info".  Adjust code accordingly.
7312         (ada_lookup_symbol): Likewise.
7313
7314 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7315
7316         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7317         of this function's documentation.
7318
7319 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7320             Andrey Smirnov  <andrew.smirnov@gmail.com>
7321
7322         -Wshadow warning fix.
7323         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7324         variable into "wild_match_p".  Adjust code accordingly.
7325
7326 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7327             Andrey Smirnov  <andrew.smirnov@gmail.com>
7328
7329         -Wshadow warning fix.
7330         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7331         parameter into "wild_match_p".  Adjust code accordingly.
7332         Document this parameter in the function description.
7333
7334 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7335             Andrey Smirnov  <andrew.smirnov@gmail.com>
7336
7337         -Wshadow warning fix.
7338         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7339         "wild_match" parameter to "wild_match_p" (-Wshadow).
7340
7341 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7342
7343         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7344         in function documentation.
7345
7346 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7347             Andrey Smirnov  <andrew.smirnov@gmail.com>
7348
7349         -Wshadow warning fix.
7350         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7351         variable into wild_match_p.  Adjust code accordingly.
7352
7353 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7354             Andrey Smirnov  <andrew.smirnov@gmail.com>
7355
7356         * ada-valprint.c (ada_val_print_1): Move the code handling
7357         TYPE_CODE_ENUM inside its own lexical block.  Declare
7358         variables len and val there, instead of in the function's
7359         top level block.  Avoid declaring deref_val again in a way
7360         that shadows another variable of the same name declared
7361         in one of the up-level blocks.  Just re-use the up-level
7362         variable instead.
7363
7364 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7365
7366         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7367         Replace block_found argument by symbol_info.  Adjust
7368         implementation accordingly.  Add function documentation.
7369         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7370         Fix documentation.
7371         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7372         * ada-exp.y (write_object_renaming): Adjust to new
7373         ada_lookup_encoded_symbol API.
7374
7375 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7376
7377         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7378         documentation.
7379
7380 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7381
7382         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7383         (v850_register_name): Add the mpu and fpu register names.
7384         (v850e_register_name): Add the mpu and fpu register names.
7385         (v850e2_register_name): New function.
7386         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7387         bfd_mach_v850e2v3.
7388
7389 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7390
7391         * NEWS: Add entry for Ada varobj support.
7392
7393 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7394
7395         * varobj.c (default_value_is_changeable_p): New function,
7396         extracted from varobj_value_is_changeable_p.  Add declaration.
7397         (ada_value_is_changeable_p): New function, extracted from
7398         varobj_value_is_changeable_p.  Add declaration.
7399         (struct language_specific): New field "value_is_changeable_p".
7400         (languages): Add entries for new field.
7401         (varobj_create): Set language before calling install_new_value.
7402         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7403         "value_is_changeable_p" language callback.
7404
7405 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7406
7407         * ada-varobj.h, ada-varobj.c: New files.
7408         * Makefile.in (SFILES): Add ada-varobj.c.
7409         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7410         (COMMON_OBS): Add ada-varobj.o.
7411
7412 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7413
7414         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7415         (struct language_specific): New field "value_has_mutated".
7416         (languages): Set field "value_has_mutated" in each entry of array.
7417         (varobj_value_has_mutated): New function.
7418         (varobj_udpdate): Add handling of type mutation.
7419         (value_of_root): Add handling of type mutation.
7420         (ada_value_has_mutated): New function.
7421
7422 2012-03-28  Pedro Alves  <palves@redhat.com>
7423
7424         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7425         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7426
7427 2012-03-28  Tom Tromey  <tromey@redhat.com>
7428
7429         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7430         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7431         before returning.
7432
7433 2012-03-28  Tom Tromey  <tromey@redhat.com>
7434
7435         * .dir-locals.el: New file.
7436
7437 2012-03-28  Pedro Alves  <palves@redhat.com>
7438
7439         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7440
7441 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7442
7443         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7444         handling for r0.
7445
7446 2012-03-27  Pedro Alves  <palves@redhat.com>
7447
7448         Eliminate struct ui_stream.
7449
7450         * ui-out.h (struct ui_stream): Delete.
7451         (ui_out_field_stream): Adjust prototype.
7452         (ui_out_stream_new, ui_out_stream_delete)
7453         (make_cleanup_ui_out_stream_delete): Delete declarations.
7454         * ui-out.c (ui_out_field_stream): Change prototype to take a
7455         ui_file instead of a ui_stream.  Adjust.
7456         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7457         (make_cleanup_ui_out_stream_delete): Delete.
7458         * breakpoint.c (print_breakpoint_location)
7459         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7460         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7461         * disasm.c (dump_insns): Ditto.
7462         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7463         prototype.
7464         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7465         ui_stream/ui_out_stream_new.
7466         * infcmd.c (print_return_value): Ditto.
7467         * osdata.c (info_osdata_command): Don't allocate a local
7468         ui_stream.
7469         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7470         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7471         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7472         allocate a local ui_stream.
7473         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7474         instead of ui_stream/ui_out_stream_new.
7475         (list_args_or_locals): Don't allocate a local ui_stream.
7476         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7477         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7478         ui_stream/ui_out_stream_new.
7479         * cli/cli-setshow.c (do_setshow_command): Ditto.
7480
7481 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7482
7483         * arm-linux-tdep.c (arm_linux_init_abi): Call
7484         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7485         * arm-tdep.c (arm_process_record): New function.
7486         (deallocate_reg_mem): New function.
7487         (decode_insn): New function.
7488         (thumb_record_branch): New function.
7489         (thumb_record_ldm_stm_swi(): New function.
7490         (thumb_record_misc): New function.
7491         (thumb_record_ld_st_stack): New function.
7492         (thumb_record_ld_st_imm_offset): New function.
7493         (thumb_record_ld_st_reg_offset(): New function.
7494         (thumb_record_add_sub_cmp_mov): New function.
7495         (thumb_record_shift_add_sub): New function.
7496         (arm_record_coproc_data_proc): New function.
7497         (arm_record_coproc): New function.
7498         (arm_record_b_bl): New function.
7499         (arm_record_ld_st_multiple): New function.
7500         (arm_record_ld_st_reg_offset): New function.
7501         (arm_record_ld_st_imm_offset): New function.
7502         (arm_record_data_proc_imm): New function.
7503         (arm_record_data_proc_misc_ld_str): New function.
7504         (arm_record_extension_space): New function.
7505         (arm_record_strx): New function.
7506         (sbo_sbz): New function.
7507         (struct insn_decode_record): New structure for arm insn record.
7508         (REG_ALLOC): New macro for reg allocations.
7509         (MEM_ALLOC): New macro for memory allocations.
7510         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7511
7512 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7513
7514         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7515         (store_register): Likewise.
7516
7517 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7518
7519         * MAINTAINERS (Write After Approval): Add myself to the list.
7520
7521 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7522
7523         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7524         Describe also the option "auto".
7525
7526 2012-03-22  Richard Henderson  <rth@redhat.com>
7527
7528         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7529         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7530
7531 2012-03-22  Richard Henderson  <rth@redhat.com>
7532
7533         * jit.c (jit_read_code_entry): Compute alignment and offset of
7534         int64_t member before computing entry_size.
7535
7536 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7537
7538         Python scripting: Add new method Value.referenced_value to
7539         gdb.Value which can dereference pointer as well as reference
7540         values.
7541         * NEWS: Add entry under 'Python scripting' about the new method
7542         Value.referenced_value on gdb.Value objects.
7543         * python/py-value.c (valpy_referenced_value): New function
7544         defining a new method on gdb.Value objects which can dereference
7545         pointer and reference values.
7546
7547 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7548
7549         * MAINTAINERS (Write After Approval): Add myself to the list.
7550
7551 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7552
7553         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7554         in addition to "main".
7555
7556 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7557
7558         * expression.h (op_name): Add declaration.
7559         * expprint.c (op_name): Remove declaration.  Make non-static.
7560         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7561
7562 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7563
7564         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7565         of struct siginfo.
7566         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7567         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7568         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7569         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7570         (linux_nat_get_siginfo): Likewise.
7571         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7572         (linux_nat_get_siginfo): Likewise.
7573         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7574         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7575         * procfs.c (gdb_siginfo_t): Likewise.
7576
7577 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7578
7579         * .gitignore: Ignore more files.
7580
7581 2012-03-20  Pedro Alves  <palves@redhat.com>
7582
7583         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7584         returns.
7585
7586 2012-03-20  Yao Qi  <yao@codesourcery.com>
7587
7588         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7589         comment.
7590
7591 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7592
7593         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7594         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7595         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7596         sect_offset.
7597         * dwarf2expr.h (cu_offset, sect_offset): New types.
7598         (struct dwarf_expr_context_funcs) <dwarf_call>
7599         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7600         sect_offset.
7601         (struct dwarf_expr_context) <len>: Improve the comment.
7602         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7603         cu_offset and sect_offset.
7604         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7605         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7606         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7607         * dwarf2loc.h: Include dwarf2expr.h.
7608         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7609         and sect_offset.
7610         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7611         Improve the comment.
7612         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7613         (struct signatured_type, struct line_header, struct partial_die_info)
7614         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7615         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7616         (get_die_type_at_offset, create_cus_from_index)
7617         (create_signatured_type_table_from_index, dw2_get_file_names)
7618         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7619         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7620         (create_debug_types_hash_table, process_psymtab_comp_unit)
7621         (load_partial_comp_unit, create_all_comp_units)
7622         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7623         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7624         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7625         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7626         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7627         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7628         (find_partial_die, read_attribute_value, lookup_die_type)
7629         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7630         (is_ref_attr): New function comment.
7631         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7632         Use cu_offset and sect_offset.
7633         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7634         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7635         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7636         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7637         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7638         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7639         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7640         sect_offset.
7641
7642 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7643
7644         Code cleanup.
7645         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7646         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7647         with xfree.
7648         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7649
7650 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7651
7652         * NEWS: Describe new options --init-command=FILE, -ix and
7653         --init-eval-command=COMMAND, -iex.
7654         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7655         CMDARG_INIT_COMMAND.
7656         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7657         "init-command", "init-eval-command", "ix" and "iex" to the variable
7658         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7659         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7660         (print_gdb_help): Describe --init-command=FILE, -ix and
7661         --init-eval-command=COMMAND, -iex.
7662
7663 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7664
7665         Code cleanup.
7666         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7667         (cmdarg_s, VEC (cmdarg_s)): New.
7668         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7669         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7670         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7671         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7672         of CMDARG.
7673
7674 2012-03-19  Tom Tromey  <tromey@redhat.com>
7675
7676         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7677
7678 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7679
7680         PR symtab/13777
7681         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7682         GCC >=4.5.
7683
7684 2012-03-16  Chris January  <chris.january@allinea.com>
7685
7686         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7687         of clear.
7688
7689 2012-03-16  Chris January  <chris.january@allinea.com>
7690
7691         * source.c (add_path): Use memmove instead of strcpy because the
7692         strings overlap.
7693
7694 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7695
7696         * value.h (set_value_parent): Add declaration.
7697         * value.c (set_value_parent): New function.
7698         (value_address): If VALUE->PARENT is not NULL, then use it as
7699         the base address instead of VALUE->LOCATION.address.
7700         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7701         the same as OBJ's address.  Adjust V's offset accordingly.
7702         Set V's parent.
7703
7704 2012-03-16  Gary Benson  <gbenson@redhat.com>
7705
7706         PR breakpoints/10738
7707         * dwarf2read.c (use_deprecated_index_sections): New global.
7708         (struct partial_die_info): New member may_be_inlined.
7709         (read_partial_die): Set may_be_inlined where appropriate.
7710         (add_partial_subprogram): Add partial symbols for partial
7711         DIEs that may be inlined.
7712         (new_symbol_full): Add inlined subroutines to the current
7713         scope.
7714         (write_psymtabs_to_index): Bump version number.
7715         (dwarf2_read_index): Read only version 6 indices unless
7716         use_deprecated_index_sections is set.
7717         * linespec.c (symbol_and_data_callback): New structure.
7718         (iterate_inline_only): New function.
7719         (iterate_over_all_matching_symtabs): New argument
7720         "include_inline".  If nonzero, also call the callback for
7721         symbols representing inlined subroutines.
7722         (lookup_prefix_sym): Pass extra argument to the above.
7723         (find_function_symbols): Likewise.
7724         (add_matching_symbols_to_info): Likewise.
7725         * NEWS: Mention that GDB can now set breakpoints on inlined
7726         functions.
7727
7728 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7729
7730         * p-typeprint.c (pascal_type_print_method_args):
7731         Fix display of parameter of methods.
7732
7733 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7734
7735         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7736         Add missing prototype.
7737
7738 2012-03-16  Yao Qi  <yao@codesourcery.com>
7739             Jan Kratochvil  <jan.kratochvil@redhat.com>
7740
7741         Fix false compilation warning.
7742         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7743
7744 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
7745             Pedro Alves  <pedro@codesourcery.com>
7746
7747         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7748         (arm_register_g_packet_guesses): New function.
7749         (arm_gdbarch_init): Don't force a target description with
7750         registers when the executable is detected as M-profile.  Instead
7751         set gdbarch->tdep->is_m.  Register `g' packet guesses.
7752         (_initialize_arm_tdep): Initialize the new target description.
7753         * features/arm-with-m-fpa-layout.xml: New description.
7754         * features/arm-with-m-fpa-layout.c: New, generated.
7755
7756 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
7757
7758         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7759         Update function description.
7760         (insert_bp_location): Do not wipe bl->target_info out.
7761         * mem-break.c: #include "gdb_string.h".
7762         (default_memory_insert_breakpoint): Do not call target_read_memory
7763         with a pointer to the breakpoint's shadow_contents buffer.  Use
7764         a local buffer instead.
7765         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7766
7767 2012-03-15  Tom Tromey  <tromey@redhat.com>
7768
7769         * NEWS: Mention "info vtbl", not "info vtable".
7770         * cp-support.c (info_vtbl_command): Fix comment.
7771         (_initialize_cp_support): Fix text.
7772
7773 2012-03-15  Tom Tromey  <tromey@redhat.com>
7774
7775         * cp-valprint.c (cp_print_value_fields): Use
7776         print_function_pointer_address for vtable slot.
7777
7778 2012-03-15  Tom Tromey  <tromey@redhat.com>
7779
7780         * gnu-v3-abi.c (struct value_and_voffset): New.
7781         (hash_value_and_voffset, eq_value_and_voffset)
7782         (compare_value_and_voffset, compute_vtable_size)
7783         (print_one_vtable, gnuv3_print_vtable): New functions.
7784         (init_gnuv3_ops): Initialize 'print_vtable' field.
7785         * cp-support.c (info_vtbl_command): New function.
7786         (_initialize_cp_support): Add "info vtbl".
7787         * cp-abi.h (cplus_print_vtable): Declare.
7788         (struct cp_abi_ops) <print_vtable>: New field.
7789         * cp-abi.c (cplus_print_vtable): New function.
7790         * NEWS: Update.
7791
7792 2012-03-15  Tom Tromey  <tromey@redhat.com>
7793
7794         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7795         iterate_over_symbols.
7796
7797 2012-03-14  Doug Evans  <dje@google.com>
7798
7799         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7800         DW_OP_GNU_parameter_ref.
7801
7802 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7803
7804         Fix double prompt of 'interpreter-exec mi'.
7805         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7806         (mi_interpreter_resume): use it.
7807         (mi_execute_command_input_handler): New function.
7808         * mi/mi-main.c (mi_execute_command): Move prompt printing to
7809         mi_execute_command_input_handler.
7810
7811 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
7812
7813         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7814         prototype.
7815         (darwin_debug_port_info): Make static.
7816         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7817         * machoread.c (_initialize_machoread): Add prototype.
7818         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7819         (i386_darwin_set_control, i386_darwin_get_control)
7820         i386_darwin_dr_set_addr, i386_darwin_get_addr)
7821         i386_darwin_get_status, i386_darwin_get_control):
7822         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7823
7824 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7825
7826         * ax-gdb.c (gen_usual_unary): Remove special handling of
7827         enum and bool types.
7828
7829 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7830
7831         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7832
7833 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7834
7835         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7836
7837 2012-03-13  Chris January  <chris.january@allinea.com>
7838
7839         * aix-thread.c (fill_sprs): Store the floating point registers
7840         at the correct offsets into vals.
7841
7842 2012-03-13  Doug Evans  <dje@google.com>
7843
7844         * NEWS: Mention symbol-reloading has been deleted.
7845         * symfile.c (symbol_reloading): Delete.
7846         (show_symbol_reloading): Delete.
7847         (_initialize_symfile): Delete set/show symbol-reloading.
7848
7849         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7850         read_in_chain until we have successfully read it in.
7851         (load_full_comp_unit): Ditto.
7852         (read_signatured_type): Add comment.
7853
7854 2012-03-13  Chris January  <chris.january@allinea.com>
7855
7856         * stabsread.c (fix_common_block): Change type of valu argument
7857         to CORE_ADDR.
7858
7859 2012-03-13  Chris January  <chris.january@allinea.com>
7860
7861         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7862         instruction.
7863
7864 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7865
7866         * common/linux-procfs.c (linux_proc_get_int): New, from
7867         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7868         field.
7869         (linux_proc_get_tgid): Only call linux_proc_get_int.
7870         (linux_proc_get_tracerpid): New.
7871         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7872         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7873         linux_proc_pid_has_state.
7874         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7875         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7876         (linux_ptrace_attach_warnings): New.
7877         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7878         New declaration.
7879         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7880         (linux_nat_attach): New variables ex, buffer, message and message_s.
7881         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7882
7883 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7884
7885         * Makefile.in (linux-ptrace.o): New.
7886         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7887         from linux-nat.c.
7888         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7889         * common/linux-ptrace.c: New file.
7890         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7891         * config/arm/linux.mh: Likewise.
7892         * config/i386/linux.mh: Likewise.
7893         * config/i386/linux64.mh: Likewise.
7894         * config/ia64/linux.mh: Likewise.
7895         * config/m32r/linux.mh: Likewise.
7896         * config/m68k/linux.mh: Likewise.
7897         * config/mips/linux.mh: Likewise.
7898         * config/pa/linux.mh: Likewise.
7899         * config/powerpc/linux.mh: Likewise.
7900         * config/powerpc/ppc64-linux.mh: Likewise.
7901         * config/powerpc/spu-linux.mh: Likewise.
7902         * config/s390/s390.mh: Likewise.
7903         * config/sparc/linux.mh: Likewise.
7904         * config/sparc/linux64.mh: Likewise.
7905         * config/xtensa/linux.mh: Likewise.
7906         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7907         common/linux-procfs.c.
7908         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7909
7910 2012-03-13  Hui Zhu  <teawater@gmail.com>
7911             Pedro Alves  <palves@redhat.com>
7912
7913         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
7914         CREATE_BREAKPOINT_FLAGS_INSERTED.
7915         (create_breakpoint_sal, create_breakpoints_sal)
7916         (base_breakpoint_create_breakpoints_sal)
7917         (tracepoint_create_breakpoints_sal)
7918         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
7919         down.
7920         (break_command_1, handle_gnu_v3_exceptions, trace_command)
7921         (ftrace_command, strace_command): Adjust.
7922         (create_tracepoint_from_upload): Pass
7923         CREATE_BREAKPOINT_FLAGS_INSERTED.
7924         * breakpoint.h (enum breakpoint_create_flags): New.
7925         (create_breakpoint): New flags parameter.
7926         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7927         * python/py-breakpoint.c (bppy_init): Adjust.
7928         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7929         * spu-tdep.c (spu_catch_start): Adjust.
7930
7931 2012-03-13  Pedro Alves  <palves@redhat.com>
7932             Hui Zhu  <teawater@gmail.com>
7933             Yao Qi  <yao@codesourcery.com>
7934
7935         * remote.c (struct remote_state): New field `starting_up'.
7936         (remote_start_remote): Set and clear it.
7937         (remote_can_download_tracepoint): If starting up, return false.
7938
7939 2012-03-13  Yao Qi  <yao@codesourcery.com>
7940
7941         * inferior.h (struct inferior): Remove fields any_syscall_count,
7942         syscalls_counts and total_syscalls_count.  Move them to new
7943         struct catch_syscall_inferior_data in breakpoint.c.
7944         * breakpoint.c: Call DEF_VEC_I(int).
7945         (struct catch_syscall_inferior_data): New.
7946         (get_catch_syscall_inferior_data): New.
7947         (catch_syscall_inferior_data_cleanup): New.
7948         (insert_catch_syscall): Update to access data in
7949         struct catch_syscall_inferior_data.
7950         (insert_catch_syscall): Likewise.
7951         (remove_catch_syscall): Likewise.
7952         (remove_catch_syscall): Likewise.
7953         (is_syscall_catchpoint_enabled): Likewise.
7954         (add_catch_command): Likewise.
7955         (_initialize_breakpoint): Register cleanup.
7956         * breakpoint.h: Removed DEF_VEC_I(int).
7957         * dwarf2loc.c: Call DEF_VEC_I(int).
7958         * mi/mi-main.c: Likewise.
7959
7960 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
7961
7962         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7963
7964 2012-03-12  Chris January  <chris.january@allinea.com>
7965
7966         * aix-thread.c (_initialize_aix_thread): Add prototype.
7967         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7968         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7969
7970 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
7971
7972         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7973         include of "amd64-nat.h".
7974
7975 2012-03-12  Tom Tromey  <tromey@redhat.com>
7976
7977         * buildsym.c (record_pending_block): Now static.
7978         * buildsym.h: (record_pending_block): Remove.
7979
7980 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
7981
7982         * amd64bsd-nat.c: Include amd64bsd-nat.h.
7983
7984 2012-03-09  Tom Tromey  <tromey@redhat.com>
7985
7986         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7987         producer_is_gxx_lt_4_6>: New fields.
7988         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7989
7990 2012-03-09  Tom Tromey  <tromey@redhat.com>
7991
7992         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7993
7994 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
7995
7996         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7997         prototype.
7998
7999 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8000
8001         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8002
8003 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8004
8005         Fix -Wmissing-prototypes build.
8006         * arm-linux-nat.c (get_thread_id): Make it static.
8007         * xtensa-linux-nat.c (get_thread_id): Likewise.
8008
8009 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8010
8011         * server.c (process_point_options): If a conditional expression
8012         is found, only print a message if remote_debug is nonzero.
8013
8014 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8015
8016         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8017         of internal error for unknown/unsupported types.
8018
8019 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8020
8021         Fix CU relative vs. absolute DIE offsets.
8022         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8023         offset to offset_in_cu.
8024         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8025         TYPE_OFFSET.
8026         (dwarf2_fetch_die_location_block): Rename parameter offset to
8027         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8028
8029 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8030
8031         * libunwind-frame.c: Rename to ...
8032         * ia64-libunwind-tdep.c: ... here.
8033         * libunwind-frame.h: Rename to ...
8034         * ia64-libunwind-tdep.h: ... here.
8035         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8036         ia64-libunwind-tdep.h.
8037         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8038         * README (--with-libunwind): Rename to ...
8039         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8040         * config.in: Regenerate.
8041         * configure: Regenerate.
8042         * configure.ac: New option --with-libunwind-ia64, make the
8043         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8044         Remove AC_DEFINE for HAVE_LIBUNWIND.
8045         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8046         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8047         Rename libunwind-frame in the general comment.
8048         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8049         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8050         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8051         the general comment.
8052         * ia64-tdep.c: Rename libunwind-frame.h #include to
8053         ia64-libunwind-tdep.h.
8054         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8055         (ia64_libunwind_descr): Rename libunwind-frame to
8056         ia64-libunwind-tdep in these function comments.
8057         * ia64-tdep.h: Rename libunwind-frame.h #include to
8058         ia64-libunwind-tdep.h.
8059         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8060         ia64-libunwind-tdep in that data comment.
8061
8062 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8063
8064         * libunwind-frame.h (struct frame_unwind): New declaration.
8065
8066 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8067
8068         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8069         "set breakpoint condition-evaluation" command.
8070
8071 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8072
8073         * sparc-stub.c: Move to stubs/
8074         * sh-stub.c: Likewise.
8075         * m68k-stub.c: Likewise.
8076         * m32r-stub.c: Likewise.
8077         * i386-stub.c: Likewise.
8078
8079 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8080
8081         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8082         linux_get_siginfo_type.
8083
8084         * m68klinux-nat.c: Include "gdb_proc_service.h".
8085         (PTRACE_GET_THREAD_AREA): Define.
8086         (ps_get_thread_area): New function.
8087
8088 2012-03-08  Yao Qi  <yao@codesourcery.com>
8089
8090         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8091         `xsnprintf'.
8092         (remote_query_attached): Likewise.
8093         (remote_static_tracepoint_marker_at): Likewise.
8094         (remote_set_permissions): Likewise.
8095         (remote_detach_1, extended_remote_attach_1): Likewise.
8096         (send_g_packet, remote_vkill): Likewise.
8097         (extended_remote_disable_randomization): Likewise.
8098         (remote_add_target_side_condition): Likewise.
8099         (remote_insert_breakpoint): Likewise.
8100         (remote_remove_breakpoint): Likewise.
8101         (remote_insert_watchpoint): Likewise.
8102         (remote_remove_watchpoint): Likewise.
8103         (remote_insert_hw_breakpoint): Likewise.
8104         (remote_insert_hw_breakpoint): Likewise.
8105         (remote_remove_hw_breakpoint): Likewise.
8106         (remote_download_command_source): Likewise.
8107         (remote_download_tracepoint): Likewise.
8108         (remote_download_trace_state_variable): Likewise.
8109         (remote_disable_tracepoint): Likewise.
8110         (remote_trace_set_readonly_regions): Likewise.
8111         (remote_get_tracepoint_status): Likewise.
8112         (remote_trace_find): Likewise.
8113         (remote_get_trace_state_variable_value): Likewise.
8114         (remote_set_disconnected_tracing): Likewise.
8115         (remote_set_circular_trace_buffer): Likewise.
8116         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8117         (remote_use_agent): Likewise.
8118         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8119         Update callers.
8120
8121 2012-03-07  Pedro Alves  <palves@redhat.com>
8122
8123         * NEWS: Mention QProgramSignals.
8124         * inferior.h (update_signals_program_target): Declare.
8125         * infrun.c: (update_signals_program_target): New.
8126         (handle_command): Update the target of the new program signals
8127         array changes.
8128         * remote.c (PACKET_QProgramSignals): New enum.
8129         (last_program_signals_packet): New global.
8130         (remote_program_signals): New.
8131         (remote_start_remote): Update the target with the program signals
8132         list.
8133         (remote_protocol_features): Add entry for QPassSignals.
8134         (remote_open_1): Free anc clear last_program_signals_packet.
8135         (init_remote_ops): Install remote_program_signals.
8136         * target.c (update_current_target): Adjust.
8137         (target_program_signals): New.
8138         * target.h (struct target_ops) <to_program_signals>: New field.
8139         (target_program_signals): Declare.
8140
8141 2012-03-07  Pedro Alves  <palves@redhat.com>
8142
8143         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8144         extensions.
8145
8146 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8147
8148         * m68klinux-nat.c (getregs_supplies): Make static.
8149         (getfpregs_supplies): Likewise.
8150         (have_ptrace_getregs): Likewise.
8151
8152 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8153
8154         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8155         in call to get_die_type_at_offset.
8156
8157 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8158
8159         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8160         * mi/mi-cmd-disas.c: Ditto.
8161         * mi/mi-cmd-env.c: Ditto.
8162         * mi/mi-cmd-file.c: Ditto.
8163         * mi/mi-cmd-stack.c: Ditto.
8164         * mi/mi-cmd-target.c: Ditto.
8165         * mi/mi-cmd-var.c: Ditto.
8166         * mi/mi-cmds.c: Ditto.
8167         * mi/mi-cmds.h: Ditto.
8168         * mi/mi-console.c: Ditto.
8169         * mi/mi-getopt.c: Ditto.
8170         * mi/mi-getopt.h: Ditto.
8171         * mi/mi-interp.c: Ditto.
8172         * mi/mi-main.c: Ditto.
8173         * mi/mi-out.c: Ditto.
8174         * mi/mi-parse.c: Ditto.
8175         * mi/mi-parse.h: Ditto.
8176         * mi/mi-symbol-cmds.c: Ditto.
8177
8178         * mi/mi-getopt.h: Move mi_opt struct up.
8179         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8180         return.
8181         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8182
8183 2012-03-06  Tom Tromey  <tromey@redhat.com>
8184
8185         * proc-service.c (ps_pglobal_lookup): Set the current program
8186         space.
8187
8188 2012-03-06  Pedro Alves  <palves@redhat.com>
8189
8190         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8191
8192 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8193
8194         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8195
8196 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8197
8198         Code cleanup.
8199         * common/linux-osdata.c (linux_common_core_of_thread): New function
8200         comment.
8201         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8202         call by linux_common_core_of_thread.
8203         (linux_nat_core_of_thread_1): Remove.
8204         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8205         * linux-thread-db.c: Include linux-osdata.h.
8206         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8207         linux_common_core_of_thread.
8208
8209 2012-03-05  Tom Tromey  <tromey@redhat.com>
8210
8211         * value.c (value_primitive_field): Don't fetch contents for
8212         non-virtual bases.
8213
8214 2012-03-05  Tom Tromey  <tromey@redhat.com>
8215
8216         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8217
8218 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8219
8220         * s390-nat.c: Include "gregset.h".
8221
8222 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8223
8224         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8225         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8226         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8227         load also LIBUNWIND_SO_7.
8228
8229 2012-03-05  Pedro Alves  <palves@redhat.com>
8230
8231         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8232         is not NULL, and remove resulting dead code.
8233
8234 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8235
8236         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8237         prologue to sh_analyze_prologue.
8238         (sh_analyze_prologue): Make better use of such an upper limit, and
8239         generally be more cautious about accessing memory.
8240
8241 2012-03-05  Tom Tromey  <tromey@redhat.com>
8242
8243         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8244         _initialize_ia64_hpux_tdep.
8245
8246 2012-03-05  Pedro Alves  <palves@redhat.com>
8247
8248         PR gdb/13766
8249
8250         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8251         the register state is clear, supply explicit zero, instead of
8252         marking the register unavailable.
8253
8254 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8255
8256         * NEWS: Mention OpenVMS ia64 new target.
8257
8258 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8259
8260         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8261         (ia64_unw_accessors, ia64_unw_rse_accessors)
8262         (ia64_libunwind_descr): Declare.
8263         * ia64-vms-tdep.c: New file.
8264         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8265         (ia64_libunwind_descr): Make them public.
8266         * configure.tgt: Add ia64-*-*vms*.
8267         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8268         (ALLDEPFILES): Add ia64-vms-tdep.c
8269
8270 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8271
8272         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8273         * remote.c (PACKET_qXfer_uib): New enum value.
8274         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8275         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8276         (_initialize_remote): Call add_packet_config_cmd for
8277         xfer:uib packet.
8278
8279 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8280
8281         * osabi.c (gdb_osabi_names): Add OpenVMS.
8282         (generic_elf_osabi_sniffer): Likewise.
8283         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8284
8285 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8286
8287         Removed unused code.
8288         * libunwind-frame.c (libunwind_frame_unwind)
8289         (libunwind_frame_base_address): Remove.
8290         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8291
8292 2012-03-04  Yao Qi  <yao@codesourcery.com>
8293
8294         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8295         remove trailing new line.
8296         (agent_run_command, agent_run_command): Add _ markup.
8297         (agent_capability_check): Likewise.
8298
8299 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8300
8301         * breakpoint.c (set_condition_evaluation_mode): Set
8302         CONDITION_EVALUATION_MODE unconditionally.
8303
8304 2012-03-03  Yao Qi  <yao@codesourcery.com>
8305
8306         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8307         * common/agent.h: Update declaration.
8308         * inf-child.c (inf_child_use_agent): New.
8309         (inf_child_can_use_agent): New.
8310         (inf_child_target): Initialize fields `to_use_agent'
8311         and `to_can_use_agent'.
8312         * agent.c (agent_new_objfile): New.
8313         (_initialize_agent): Add agent_new_objfile to new_objfile
8314         observer.
8315
8316         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8317         New.
8318         (linux_target_install_ops): Initialize field
8319         `to_static_tracepoint_markers_by_strid'.
8320         * remote.c (free_current_marker): Move it to ...
8321         * tracepoint.c (free_current_marker): ... here.  New.
8322         (cleanup_target_stop): New.
8323         * tracepoint.h: Declare free_current_marker.
8324         * NEWS: Add one entry about `info static-tracepoint-marker'.
8325
8326 2012-03-03  Yao Qi  <yao@codesourcery.com>
8327
8328         * common/agent.c (agent_loaded_p): New.
8329         (agent_look_up_symbols): New global.
8330         * common/agent.h: Declare agent_loaded_p.
8331
8332 2012-03-03  Yao Qi  <yao@codesourcery.com>
8333
8334         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8335         (agent_capability_check, agent_capability_invalidate): New.
8336         (symbol_list): New array element.
8337         * common/agent.h (enum agent_capa): New.
8338         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8339
8340 2012-03-03  Yao Qi  <yao@codesourcery.com>
8341
8342         * target.h (struct target_ops) <to_use_agent>: New field.
8343         (struct target_ops) <to_can_use_agent>: New field.
8344         (target_use_agent, target_can_use_agent): New macro.
8345         * target.c (update_current_target): Update.
8346         * remote.c: New enum `PACKET_QAgent'.
8347         (remote_protocol_features): Add a new element.
8348         (remote_use_agent, remote_can_use_agent): New.
8349         (init_remote_ops): Initialize field `can_use_agent' with
8350         remote_can_use_agent.  Intiailize field `use_agent' with
8351         remote_use_agent.
8352         * common/agent.c (use_agent): New global.
8353         * common/agent.h: Declare it.
8354         * tracepoint.c (info_static_tracepoint_markers_command): Add
8355         comment.
8356         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8357         (COMMON_OBS): Add common/agent.o and agent.o
8358         (common-agent.o): New rule.
8359         * agent.c: New.
8360
8361 2012-03-03  Yao Qi  <yao@codesourcery.com>
8362
8363         * common/agent.c: New.
8364         * common/agent.h: New.
8365         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8366         AC_CHECK_HEADERS.
8367         * configure, configh.in: Regenerated.
8368
8369 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8370
8371         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8372         unless it exists for this architecture.
8373
8374 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8375
8376         * language.h (struct language_defn): New "method" la_read_var_value.
8377         * findvar.c: #include "language.h".
8378         (default_read_var_value): Renames read_var_value.  Rewrite
8379         function description.
8380         (read_var_value): New function.
8381         * value.h (default_read_var_value): Add prototype.
8382         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8383         New functions.
8384         (ada_language_defn): Add entry for la_read_var_value.
8385         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8386         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8387         language_defn structures to add entry for new la_read_var_value
8388         field.
8389
8390 2012-03-02  Tom Tromey  <tromey@redhat.com>
8391             Pedro Alves  <palves@redhat.com>
8392
8393         PR breakpoints/13776:
8394         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8395         breakpoints.
8396         (delete_longjmp_breakpoint_at_next_stop): New.
8397         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8398         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8399         before deleting the inferior.  Add comments.
8400         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8401         breakpoints immediately, but only on next stop.  Move that code
8402         next to where we mark other breakpoints for deletion.
8403
8404 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8405
8406         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8407         marker.
8408         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8409         violation.
8410
8411 2012-03-02  Pedro Alves  <palves@redhat.com>
8412
8413         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8414
8415 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8416
8417         Fix -Wmissing-prototypes build.
8418         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8419         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8420         (gdbsim_has_memory): Likewise.
8421
8422 2012-03-02  Yao Qi  <yao@codesourcery.com>
8423
8424         Fix -Wmissing-prototypes build.
8425         * charset.c (phony_iconv_open): Make static.
8426         (phony_iconv_close, phony_iconv): Likewise.
8427         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8428         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8429         prototype.
8430         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8431         * ser-mingw.c (create_select_thread): Make static.
8432         * windows-termcap.c (tgetent): New prototype.
8433         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8434
8435 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8436
8437         Fix -Wmissing-prototypes build.
8438         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8439         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8440         (_initialize_loadable): New prototypes.
8441
8442 2012-03-02  Doug Evans  <dje@google.com>
8443
8444         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8445         abbrev table, read_comp_unit will do it.
8446
8447 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8448
8449         Fix -Wmissing-prototypes build.
8450         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8451         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8452         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8453         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8454         (_initialize_arm_symbian_tdep): New prototype.
8455         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8456         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8457         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8458         static.
8459         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8460         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8461         prototype.
8462         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8463         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8464         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8465         static.
8466         * moxie-tdep.c (moxie_process_record): Likewise.
8467         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8468         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8469         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8470         (_initialize_rl78_tdep): New prototype.
8471         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8472         (_initialize_rx_tdep): New prototype.
8473         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8474         (_initialize_darwin_solib): New prototype.
8475         * solib-spu.c: Include solib-spu.h.
8476         (_initialize_spu_solib): New prototype.
8477         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8478         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8479         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8480         (tic6x_software_single_step): Make it static.
8481         (_initialize_tic6x_tdep): New prototype.
8482
8483 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8484
8485         Fix -Wmissing-prototypes build.
8486         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8487         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8488
8489 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8490
8491         Fix -Wmissing-prototypes build.
8492         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8493         (frv_have_stopped_data_address): Remove.
8494
8495 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8496
8497         Fix -Wmissing-prototypes build.
8498         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8499         * sh-tdep.c: Include sh64-tdep.h.
8500         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8501         * sh64-tdep.c: Include sh64-tdep.h.
8502         * sh64-tdep.h: New file.
8503
8504 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8505
8506         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8507
8508 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8509
8510         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8511         sp_regnum once the gdbarch_init_osabi hook has been called.
8512
8513 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8514
8515         * mips-tdep.c (mips32_bc1_pc): New function.
8516         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8517         BPOSGE32 and BPOSGE64 instructions.
8518         (deal_with_atomic_sequence): Likewise.
8519         (mips32_instruction_has_delay_slot): Likewise.
8520
8521 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8522             Chris Dearman  <chris@mips.com>
8523             Maciej W. Rozycki  <macro@codesourcery.com>
8524             Joseph Myers  <joseph@codesourcery.com>
8525
8526         * features/mips-dsp.xml: New file.
8527         * features/mips64-dsp.xml: New file.
8528         * features/mips-dsp-linux.xml: New file.
8529         * features/mips64-dsp-linux.xml: New file.
8530         * features/Makefile (WHICH): Add mips-dsp-linux and
8531         mips64-dsp-linux.
8532         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8533         * features/mips-dsp-linux.c: New file.
8534         * features/mips64-dsp-linux.c: New file.
8535         * regformats/mips-dsp-linux.dat: New file.
8536         * regformats/mips64-dsp-linux.dat: New file.
8537         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8538         registers.
8539         (mips64_linux_register_addr): Likewise.
8540         (mips64_linux_regsets_fetch_registers): Likewise.
8541         (mips64_linux_regsets_store_registers): Likewise.
8542         (mips64_linux_fetch_registers): Update call to
8543         mips64_linux_regsets_fetch_registers.
8544         (mips64_linux_store_registers): Update call to
8545         mips64_linux_regsets_store_registers.
8546         (mips_linux_read_description): Probe for DSP registers.
8547         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8548         and initialize_tdesc_mips64_dsp_linux.
8549         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8550         Remove padding of no longer used embedded register slots.
8551         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8552         (MIPS_RESTART_REGNUM): Redefine enum value.
8553         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8554         strings.
8555         (mips_tx39_reg_names): Likewise.
8556         (mips_linux_reg_names): New array of register names for Linux
8557         targets.
8558         (mips_register_name): Check for a null pointer in
8559         mips_processor_reg_names and return an empty string.
8560         (mips_register_type): Exclude embedded registers for the IRIX
8561         and Linux ABIs.
8562         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8563         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8564         DSP registers.
8565         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8566         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8567         (mips_gdbarch_init): Likewise.  Initialize internal register
8568         indices for the Linux ABI.  Use dynamic numbers to refer to
8569         registers, as applicable, while parsing the target description.
8570         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8571
8572 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8573
8574         * frame.h (read_frame_register_unsigned): Fix typo in function
8575         description.
8576
8577 2012-03-01  Pedro Alves  <palves@redhat.com>
8578
8579         * jit-reader.in [!__cplusplus]
8580         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8581
8582 2012-03-01  Pedro Alves  <palves@redhat.com>
8583
8584         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8585         * configure: Regenerate.
8586
8587 2012-03-01  Pedro Alves  <palves@redhat.com>
8588
8589         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8590         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8591         (ftrace_command, strace_command): Make static.
8592         * d-lang.c (_initialize_d_language): Declare.
8593         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8594         * dwarf2loc.c (_initialize_dwarf2loc):
8595         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8596         * exec.c (exec_get_section_table): Make static.
8597         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8598         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8599         * inferior.c (remove_inferior_command, add_inferior_command)
8600         (clone_inferior_command): Make static.
8601         * linux-nat.c (linux_nat_thread_address_space)
8602         (linux_nat_core_of_thread): Make static.
8603         * linux-tdep.c (_initialize_linux_tdep): Declare.
8604         * objc-lang.c (_initialize_objc_lang): Declare.
8605         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8606         Make static.
8607         (_initialize_opencl_language): Declare.
8608         * record.c (_initialize_record): Declare.
8609         * remote.c (demand_private_info, remote_get_tib_address)
8610         (remote_supports_cond_tracepoints)
8611         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8612         Make static.
8613         * skip.c (_initialize_step_skip): Declare.
8614         * symtab.c (skip_prologue_using_lineinfo): Make static.
8615         * tracepoint.c (delete_trace_state_variable)
8616         (trace_variable_command, delete_trace_variable_command)
8617         (get_uploaded_tsv, find_matching_tracepoint_location)
8618         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8619         Make static.
8620         * value.c (pack_unsigned_long): Make static.
8621         * varobj.c (varobj_ensure_python_env): Make static.
8622         * windows-tdep.c (_initialize_windows_tdep): Declare.
8623         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8624
8625 2012-03-01  Pedro Alves  <palves@redhat.com>
8626
8627         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8628         gdbarch parameter.
8629         (linux_init_abi): Install it as has_shared_address_space gdbarch
8630         callback.
8631
8632 2012-03-01  Pedro Alves  <palves@redhat.com>
8633
8634         * observer.c (observer_test_first_notification_function)
8635         (observer_test_second_notification_function)
8636         (observer_test_third_notification_function): Add declarations.
8637
8638 2012-03-01  Pedro Alves  <palves@redhat.com>
8639
8640         * common/signals.c (default_target_signal_to_host)
8641         (default_target_signal_from_host): Move ...
8642         * arch-utils.c: ... here.
8643         * arch-utils.h (default_target_signal_to_host)
8644         (default_target_signal_from_host): Declare.
8645
8646         * common/signals.c (target_signal_from_command): Move ...
8647         * infrun.c: ... here.
8648         * inferior.h (target_signal_from_command): Declare.
8649         * target.h (target_signal_from_command)
8650         (default_target_signal_from_host, default_target_signal_to_host):
8651         Delete declarations.
8652
8653         * common/signals.c (_initialize_signals): Delete.
8654
8655 2012-03-01  Pedro Alves  <palves@redhat.com>
8656
8657         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8658         both __cplusplus and !__cplusplus.
8659
8660 2012-03-01  Pedro Alves  <palves@redhat.com>
8661
8662         * psymtab.c (find_and_open_source): Delete declaration.
8663         * source.c (find_and_open_source): Move comment ...
8664         * source.h (find_and_open_source): ... to this new declaration.
8665
8666 2012-03-01  Pedro Alves  <palves@redhat.com>
8667
8668         * inline-frame.c: Include inline-frame.h.
8669
8670 2012-03-01  Pedro Alves  <palves@redhat.com>
8671
8672         * tui/tui-data.c (set_gen_win_origin): Delete.
8673         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8674         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8675
8676 2012-03-01  Pedro Alves  <palves@redhat.com>
8677
8678         * remote.c (encode_actions): Delete declaration.
8679         * tracepoint.c (encode_actions): Make extern.
8680         * tracepoint.h (encode_actions): Declare.
8681
8682 2012-03-01  Pedro Alves  <palves@redhat.com>
8683
8684         * python/py-breakpoint.c: Include python.h.
8685         * python/py-continueevent.c (create_continue_event_object): Make
8686         static.
8687         * python/py-lazy-string.c (stpy_get_type): Make static.
8688         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8689         Make static.
8690         * python/py-utils.c (unicode_to_target_python_string): Make
8691         static.
8692         * python/py-value.c: Include python.h.
8693
8694 2012-03-01  Pedro Alves  <palves@redhat.com>
8695
8696         * inferior.c (delete_threads_of_inferior): Delete.
8697
8698 2012-03-01  Pedro Alves  <palves@redhat.com>
8699
8700         Import fallback definitions from glibc.
8701
8702         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8703         ps_prochandle): Forward declare.
8704         (ps_err_e): Use glibc's comments.
8705         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8706         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8707         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8708         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8709         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8710         (struct ps_prochandle): Adjust comment.
8711
8712 2012-03-01  Pedro Alves  <palves@redhat.com>
8713
8714         * ada-lang.c (ada_modulus_from_name): Delete.
8715         * ada-lex.l (lexer_init): Make static.
8716
8717 2012-03-01  Pedro Alves  <palves@redhat.com>
8718
8719         PR gdb/13767
8720
8721         * frame.c (read_frame_register_unsigned): New.
8722         * frame.h (read_frame_register_unsigned): Declare.
8723         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8724         Handle it.
8725         (print_i387_control_word): New parameter `control_p'.  Handle it.
8726         (i387_print_float_info): Handle unavailable float registers.
8727
8728 2012-03-01  Keith Seitz  <keiths@redhat.com>
8729
8730         * linespec.c (decode_line_2): Sort the list of methods
8731         alphabetically before presenting the user with a selection
8732         menu.
8733
8734 2012-03-01  Doug Evans  <dje@google.com>
8735
8736         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8737         has_namespace_info.
8738         (dwarf2_read_abbrevs): Remove corresponding initialization.
8739
8740 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
8741
8742         * NEWS: Mention new python command class gdb.COMMAND_USER.
8743         * cli/cli-cmds.c (show_user): Print error when used on a python
8744         command.
8745         (init_cli_cmds): Update documentation strings for "show user" and
8746         "set/show max-user-call-depth" to clarify that it does not apply to
8747         python commands.
8748         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8749         error check.
8750         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8751         gdb python api.
8752         * top.c (execute_command): Only execute a user-defined command as a
8753         legacy macro if c->user_commands is set.
8754
8755 2012-03-01  Tom Tromey  <tromey@redhat.com>
8756
8757         * valprint.h (struct generic_val_print_decorations): New.
8758         (generic_val_print): Declare.
8759         * valprint.c (generic_val_print): New function.
8760         * p-valprint.c (p_decorations): New global.
8761         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8762         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8763         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8764         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8765         * m2-valprint.c (m2_decorations): New global.
8766         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8767         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8768         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8769         TYPE_CODE_ERROR>: Call generic_val_print.
8770         * f-valprint.c (f_decorations): New global.
8771         (f_val_print): Use print_function_pointer_address.
8772         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8773         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8774         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8775         generic_val_print.
8776         * c-valprint.c (c_decorations): New global.
8777         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8778         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8779         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8780         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8781         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8782         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8783         case.
8784
8785 2012-03-01  Tom Tromey  <tromey@redhat.com>
8786
8787         * valprint.c (val_print): Update.
8788         * p-valprint (pascal_val_print): Return void.
8789         * p-lang.h (pascal_val_print): Return void.
8790         * m2-valprint.c (m2_val_print): Return void.
8791         * m2-lang.h (m2_val_print): Return void.
8792         * language.h (struct language_defn) <la_val_print>: Return void.
8793         * language.c (unk_lang_val_print): Return void.
8794         * jv-valprint.c (java_val_print): Return void.
8795         * jv-lang.h (java_val_print): Return void.
8796         * f-valprint.c (f_val_print): Return void.
8797         * f-lang.h (f_val_print): Return void.
8798         * d-valprint.c (d_val_print): Return void.
8799         (dynamic_array_type): Update.
8800         * d-lang.h (d_val_print): Return void.
8801         * c-valprint.c (c_val_print): Return void.
8802         * c-lang.h (c_val_print): Return void.
8803         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8804         void.
8805         * ada-lang.h (ada_val_print): Return void.
8806
8807 2012-03-01  Tom Tromey  <tromey@redhat.com>
8808
8809         * value.h (val_print): Return void.
8810         * valprint.c (val_print): Return void.
8811
8812 2012-03-01  Tom Tromey  <tromey@redhat.com>
8813
8814         * value.h (common_val_print): Return void.
8815         * valprint.c (common_val_print): Return void.
8816
8817 2012-03-01  Tom Tromey  <tromey@redhat.com>
8818
8819         * value.h (value_print): Return void.
8820         * valprint.c (value_print): Return void.
8821         * p-valprint.c (pascal_value_print): Return void.
8822         * p-lang.h (pascal_value_print): Return void.
8823         * language.h (struct language_defn) <la_value_print>: Return
8824         void.
8825         * language.c (unk_lang_value_print): Return void.
8826         * jv-valprint.c (java_value_print): Return void.
8827         * jv-lang.h (java_value_print): Return void.
8828         * f-valprint.c (c_value_print): Don't declare.
8829         Include c-lang.h.
8830         * c-valprint.c (c_value_print): Return void.
8831         * c-lang.h (c_value_print): Return void.
8832         * ada-valprint.c (ada_value_print): Return void.
8833         * ada-lang.h (ada_value_print): Return void.
8834
8835 2012-03-01  Tom Tromey  <tromey@redhat.com>
8836
8837         * value.c (value_primitive_field): Handle virtual base classes.
8838
8839 2012-03-01  Tom Tromey  <tromey@redhat.com>
8840
8841         * gdbtypes.h (struct vbase): Remove.
8842
8843 2012-03-01  Tom Tromey  <tromey@redhat.com>
8844
8845         * c-valprint.c (print_function_pointer_address): Move...
8846         * valprint.c: ... here.  Make non-static.
8847         * m2-valprint.c (print_function_pointer_address): Remove.
8848         * valprint.h (print_function_pointer_address): Declare.
8849
8850 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8851
8852         * NEWS: Document the fact that one can provide a condition when
8853         creating an Ada exception catchpoint.
8854
8855 2012-03-01  Tom Tromey  <tromey@redhat.com>
8856
8857         * valprint.c (val_print_type_code_flags): Fix placement of
8858         trailing brace.
8859
8860 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8861
8862         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8863         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8864         environment variable before calling update-copyright.
8865
8866 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8867
8868         * gnulib/extra/update-copyright: Update to the latest from
8869         gnulib's git repository.
8870         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8871         variable to 2 instead of 1.
8872
8873 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8874
8875         * varobj.c (c_value_of_variable): Remove dead code.
8876
8877 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8878
8879         * ada-lex.p (processId): Do not modify already encoded IDs.
8880         Update function documentation.
8881
8882 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8883
8884         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8885         "name" with "struct symbol *name_sym".
8886         * ada-exp.y (write_var_or_type): Update call to
8887         ada_find_renaming_symbol.
8888         "name" with "struct symbol *name_sym". Adjust Implementation
8889         accordingly.  Adjust the function documentation.
8890
8891 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8892
8893         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8894         * ada-lang.c (ada_find_any_type): Add advance declaration.
8895         Make static.  Replace ada_find_any_symbol by
8896         ada_find_any_type_symbol.
8897         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8898         Improve function description.  Make static.
8899         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8900         Replace ada_find_any_symbol by ada_find_any_type_symbol.
8901
8902 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8903
8904         * ada-lang.c (struct tag_args): Delete.
8905         (ada_get_tsd_type): Function body moved up in source file.
8906         (ada_tag_name_1, ada_tag_name_2): Delete.
8907         (ada_get_tsd_from_tag): New function.
8908         (ada_tag_name_from_tsd): New function.
8909         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8910         to determine the tag name.
8911
8912 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8913
8914         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8915         declaration.
8916         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8917         function.
8918
8919 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8920
8921         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8922
8923 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8924
8925         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8926         full searches.
8927
8928 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8929
8930         * ada-lang.c (constrained_packed_array_type): If there is a
8931         parallel XA type, use it to determine the array index type.
8932
8933 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8934
8935         * ada-valprint.c (ada_val_print_1): If our value is a reference
8936         to an array descriptor, dereference it before converting it
8937         to a simple array.
8938
8939 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8940
8941         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8942         creating fixed value.
8943         (ada_value_ind, ada_coerce_ref, assign_component)
8944         (ada_evaluate_subexp): Remove call to unwrap_value before
8945         call to ada_to_fixed_value.
8946
8947 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8948
8949         * ada-lang.c (to_fixed_array_type): Set result's type name.
8950
8951 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8952
8953         * ada-lang.c (catch_ada_exception_command_split): Add new
8954         argument cond_string.  Add support for condition at end of
8955         "catch exception" commands.
8956         (ada_decode_exception_location): Add new argument cond_string.
8957         Update call to catch_ada_exception_command_split.
8958         (create_ada_exception_catchpoint): Add new argument cond_string.
8959         Set the breakpoint condition if needed.
8960         (catch_ada_exception_command): Update call to
8961         ada_decode_exception_location.
8962         (ada_decode_assert_location): Add function documentation.
8963         Add support for condition at end of "catch assert" command.
8964         (catch_assert_command): Update calls to ada_decode_assert_location
8965         and create_ada_exception_catchpoint.
8966
8967 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
8968
8969         Fix disp-step-syscall.exp: fork: single step over fork.
8970         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8971         (i386_linux_get_syscall_number_from_regcache): ... here, new function
8972         comment, change parameters gdbarch and ptid to regcache.  Remove
8973         parameter regcache, initialize gdbarch from regcache here.
8974         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8975         New functions.
8976         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8977         instead.
8978         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8979         'syscall'.  Make the 'int' check more strict.
8980
8981 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
8982
8983         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8984         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8985         (i386_linux_intx80_sysenter_syscall_record): ... here.
8986         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8987         Use the renamed function name.
8988
8989 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
8990
8991         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8992         * breakpoint.c (until_break_command): Likewise.
8993         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8994         * infcall.c (call_function_by_hand): Likewise.
8995         * infcmd.c (finish_forward): Likewise.
8996         * infrun.c (insert_exception_resume_breakpoint): Likewise.
8997
8998 2012-02-28  Tristan Gingold  <gingold@adacore.com>
8999
9000         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9001         avoid variable assignments inside condition.
9002
9003 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9004
9005         Fix static analysis issue found by cppcheck.
9006         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9007         uninitialized BUF for size 2.
9008
9009 2012-02-27  Chris Dearman  <chris@mips.com>
9010             Nathan Froyd  <froydnj@codesourcery.com>
9011             Maciej W. Rozycki  <macro@codesourcery.com>
9012
9013         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9014         (mips16_instruction_has_delay_slot): Likewise.
9015         (mips_segment_boundary): Likewise.
9016         (mips_adjust_breakpoint_address): Likewise.
9017         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9018
9019 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9020             Maciej W. Rozycki  <macro@codesourcery.com>
9021
9022         * infrun.c (handle_inferior_event): Don't proceed through
9023         shared library trampolines if stepping at the machine
9024         instruction level.
9025
9026 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9027
9028         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9029         too.
9030
9031 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9032
9033         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9034         (sh_stub_unwind_sniffer): New functions.
9035         (sh_stub_unwind): New variable.
9036         (sh_gdbarch_init): Wire everything.
9037
9038 2012-02-27  Pedro Alves  <palves@redhat.com>
9039
9040         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9041         (linux_nat_post_attach_wait): Adjust to use
9042         linux_proc_pid_is_stopped.
9043         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9044         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9045         based on pid_is_stopped from both linux-nat.c and
9046         gdbserver/linux-low.c, and renamed.
9047
9048 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9049
9050         * remote.c (remote_watchpoint_addr_within_range): New function.
9051         (init_remote_ops): Use it.
9052
9053 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9054
9055         * target.h (target_watchpoint_addr_within_range): Document macro.
9056
9057 2012-02-24  Pedro Alves  <palves@redhat.com>
9058
9059         * stack.c (set_last_displayed_sal): Issue internal_error instead
9060         of warning, and issue it after clearing the last displayed sal.
9061
9062 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9063             Pedro Alves  <palves@redhat.com>
9064
9065         * breakpoint.c (until_break_command): Install breakpoints after
9066         all frame manipulations.
9067
9068 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9069
9070         * remote.c (remote_supports_cond_breakpoints): New forward
9071         declaration.
9072         (remote_add_target_side_condition): New function.
9073         (remote_insert_breakpoint): Add target-side breakpoint
9074         conditional if supported.
9075         (remote_insert_hw_breakpoint): Likewise.
9076         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9077         hook.
9078
9079         * target.c (update_current_target): Inherit
9080         to_supports_evaluation_of_breakpoint_conditions.
9081         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9082
9083         * target.h (struct target_ops)
9084         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9085         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9086
9087         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9088         (condition_evaluation_both, condition_evaluation_auto,
9089         condition_evaluation_host, condition_evaluation_target,
9090         condition_evaluation_enums, condition_evaluation_mode_1,
9091         condition_evaluation_mode): New static globals.
9092         (translate_condition_evaluation_mode): New function.
9093         (breakpoint_condition_evaluation_mode): New function.
9094         (gdb_evaluates_breakpoint_condition_p): New function.
9095         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9096         (mark_breakpoint_modified): New function.
9097         (mark_breakpoint_location_modified): New function.
9098         (set_condition_evaluation_mode): New function.
9099         (show_condition_evaluation_mode): New function.
9100         (bp_location_compare_addrs): New function.
9101         (get_first_location_gte_addr): New helper function.
9102         (set_breakpoint_condition): Free condition bytecode if locations
9103         has become unconditional.  Call mark_breakpoint_modified (...).
9104         (condition_command): Call update_global_location_list (1) for
9105         breakpoints.
9106         (breakpoint_xfer_memory): Use is_breakpoint (...).
9107         (is_breakpoint): New function.
9108         (parse_cond_to_aexpr): New function.
9109         (build_target_condition_list): New function.
9110         (insert_bp_location): Handle target-side conditional
9111         breakpoints and call build_target_condition_list (...).
9112         (update_inserted_breakpoint_locations): New function.
9113         (insert_breakpoint_locations): Handle target-side conditional
9114         breakpoints.
9115         (bpstat_check_breakpoint_conditions): Add comment.
9116         (bp_condition_evaluator): New function.
9117         (bp_location_condition_evaluator): New function.
9118         (print_breakpoint_location): Print information on where the condition
9119         will be evaluated.
9120         (print_one_breakpoint_location): Likewise.
9121         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9122         breakpoint location.
9123         (force_breakpoint_reinsertion): New functions.
9124         (update_global_location_list): Handle target-side breakpoint
9125         conditions.
9126         Reinsert locations that are already inserted if conditions have
9127         changed.
9128         (bp_location_dtor): Free agent expression bytecode.
9129         (disable_breakpoint): Call mark_breakpoint_modified (...).
9130         Call update_global_location_list (...) with parameter 1 for breakpoints.
9131         (disable_command): Call mark_breakpoint_location_modified (...).
9132         Call update_global_location_list (...) with parameter 1 for breakpoints.
9133         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9134         (enable_command): mark_breakpoint_location_modified (...).
9135         (_initialize_breakpoint): Update documentation and add
9136         condition-evaluation breakpoint subcommand.
9137
9138         * breakpoint.h: Include ax.h.
9139         (condition_list): New data structure.
9140         (condition_status): New enum.
9141         (bp_target_info) <cond_list>: New field.
9142         (bp_location) <condition_changed, cond_bytecode>: New fields.
9143         (is_breakpoint): New prototype.
9144
9145 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9146
9147         * remote.c (remote_state) <cond_breakpoints>: New field.
9148         (PACKET_ConditionalBreakpoints): New enum.
9149         (remote_cond_breakpoint_feature): New function.
9150         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9151         (remote_supports_cond_breakpoints): New function.
9152         (_initialize_remote): Add new packet configuration for
9153         target-side conditional breakpoints.
9154
9155 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9156
9157         * NEWS: Mention target-side conditional breakpoint support,
9158         new condition-evaluation breakpoint subcommand and remote
9159         packet extensions.
9160
9161 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9162
9163         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9164         number.
9165
9166 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9167
9168         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9169         (after_prologue): Remove.
9170
9171 2012-02-23  Tom Tromey  <tromey@redhat.com>
9172
9173         * jv-valprint.c (java_val_print): Remove dead code.
9174
9175 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9176
9177         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9178         known_tasks_element and known_tasks_length fields.
9179         (read_known_tasks_array): Change argument type.  Use pointer type
9180         and number of elements from DATA.  Adjust.
9181         (read_known_tasks_list): Likewise.
9182         (get_known_tasks_addr): Remove.
9183         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9184         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9185         type and array length.  Merge former get_known_tasks_addr code.
9186
9187 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9188
9189         PR backtrace/13716
9190         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9191         it after set_momentary_breakpoint.
9192
9193 2012-02-22  Sterling Augustine  <saugustine@google.com>
9194
9195         PR 13689:
9196         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9197
9198 2012-02-22  Gary Benson  <gbenson@redhat.com>
9199
9200         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9201         (find_slot_in_mapped_hash): Likewise.
9202
9203 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9204
9205         PR build/13638
9206         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9207         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9208         * configure: Regenerate.
9209
9210 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9211             Pedro Alves  <palves@redhat.com>
9212
9213         * ia64-tdep.c: Do not include libunwind-ia64.h.
9214         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9215         Include libunwind-ia64.h instead of libunwind.h.
9216         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9217         for libunwind.h existence.
9218         * configure, config.in: Regenerate.
9219
9220 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9221
9222         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9223         instead of value_rtti_target_type.
9224         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9225         instead of value_rtti_target_type.
9226         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9227         value_rtti_target_type.
9228         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9229         (value_rtti_target_type): Rename to ...
9230         (value_rtti_indirect_type): ... here and make it indirect.  Update
9231         function comment.
9232         * value.c (readjust_indirect_value_type): New function.
9233         (coerce_ref): Support for enclosing type setting for references
9234         with readjust_indirect_value_type.
9235         * value.h (readjust_value_type): New declaration.
9236         (value_rtti_target_type): Rename to ...
9237         (value_rtti_indirect_type): ... here.
9238
9239 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9240
9241         * MAINTAINERS (Write After Approval): Add myself to the list.
9242
9243 2012-02-20  Doug Evans  <dje@google.com>
9244
9245         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9246         Rename objfile_p_char parameter to objfilep.
9247         (build_objfile_section_table): Result is now void.  All callers
9248         updated.
9249         * objfiles.h (struct objfile): Tweak comments, whitespace.
9250         (build_objfile_section_table): Update.
9251
9252         * elfread.c (elf_symfile_segments): Fix warning text.
9253
9254 2012-02-20  Tom Tromey  <tromey@redhat.com>
9255
9256         PR gdb/13498:
9257         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9258         particular set of file names once.
9259         (dw2_map_symbol_filenames): Likewise.
9260
9261 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9262
9263         Code cleanup.
9264         * main.c (write_files): Remove the declaration.
9265         (external_editor_command): Move the declaration ...
9266         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9267
9268 2012-02-20  Tom Tromey  <tromey@redhat.com>
9269
9270         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9271         extraneous block.
9272
9273 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9274
9275         * darwin-nat.h (enum darwin_msg_state): Add comments.
9276
9277 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9278
9279         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9280         value.
9281
9282 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9283
9284         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9285         between function description and implementation.
9286
9287 2012-02-17  Tom Tromey  <tromey@redhat.com>
9288
9289         PR python/12070:
9290         * python/py-event.c (event_object_getset): New global.
9291         (event_object_type): Reference it.
9292         * python/py-type.c (field_object_getset): New global.
9293         (field_object_type): Reference it.
9294         * python/python-internal.h (gdb_py_generic_dict): Declare.
9295         * python/py-utils.c (gdb_py_generic_dict): New function.
9296
9297 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9298
9299         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9300
9301 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9302
9303         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9304         TYPE_CALLING_CONVENTION annotation.
9305
9306 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9307
9308         * MAINTAINERS: Add rx to target ISA section.
9309         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9310         (ALLDEPFILES): Add rx-tdep.c.
9311
9312 2012-02-16  Tom Tromey  <tromey@redhat.com>
9313
9314         * symfile.c (symbol_file_add_main_1): Use inferior's
9315         symfile_flags.
9316         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9317         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9318         inferior.
9319         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9320         inferior.
9321         (follow_exec): Use inferior's symfile_flags.
9322         * inferior.h (struct inferior) <symfile_flags>: New field.
9323
9324 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9325
9326         PR gdb/9734:
9327         * remote-sim.c (gdbsim_create_inferior): Call error() when
9328         sim_create_inferior() fails.
9329
9330 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9331
9332         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9333
9334 2012-02-16  Tom Tromey  <tromey@redhat.com>
9335
9336         PR c++/13653:
9337         * thread.c (struct current_thread_cleanup) <was_removable>: New
9338         field.
9339         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9340         (make_cleanup_restore_current_thread): Initialize new field.
9341
9342 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9343
9344         * MAINTAINERS: Add rl78 to target ISA section.
9345         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9346         (ALLDEPFILES): Add rl78-tdep.c.
9347         * NEWS: Mention rl78 as a new target.
9348
9349 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9350
9351         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9352         data.
9353         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9354
9355 2012-02-15  Tom Tromey  <tromey@redhat.com>
9356
9357         PR gdb/12659:
9358         * infcmd.c (registers_info): Print just the current register's
9359         name.
9360
9361 2012-02-15  Tom Tromey  <tromey@redhat.com>
9362
9363         * python/py-symbol.c (sympy_value): Use _().
9364
9365 2012-02-15  Pedro Alves  <palves@redhat.com>
9366
9367         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9368         output to be like native targets'.
9369         (remote_pid_to_str): Special case the null ptid.
9370
9371 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9372
9373         * NEWS: Mention enable count command.
9374         * breakpoint.h (struct breakpoint): New field enable_count.
9375         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9376         (enable_breakpoint): Add arg to call.
9377         (struct disp_data): New struct.
9378         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9379         (do_map_enable_once_breakpoint): Create a struct and pass it.
9380         (do_map_enable_delete_breakpoint): Ditto.
9381         (do_map_enable_count_breakpoint): New function.
9382         (enable_count_command): New function.
9383         (bpstat_stop_status): Decrement enable_count.
9384         (print_one_breakpoint_location): Report enable count.
9385         (_initialize_breakpoint): Add enable count command.
9386
9387 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9388
9389         * rl78-tdep.c (reggroups.h): Include.
9390         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9391         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9392         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9393         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9394         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9395         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9396         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9397         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9398         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9399         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9400         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9401         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9402         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9403         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9404         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9405         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9406         beginning of register list.
9407         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9408         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9409         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9410         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9411         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9412         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9413         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9414         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9415         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9416         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9417         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9418         the pseudo registers.  Rearrange other pseudo registers too so
9419         that the bank registers appear at the end.
9420         (rl78_register_type): Account for the fact that the byte sized
9421         bank registers are now pseudo-registers.
9422         (rl78_register_name): Rearrange the register name array.  Make
9423         initial set of raw banked registers inaccessible.
9424         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9425         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9426         case for copying bytes back and forth between raw and pseudo
9427         versions of the banked registers.  Update other cases to reflect
9428         the changed names.
9429         (rl78_return_value): Update to account for changed names of
9430         raw registers.
9431         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9432         rl78_register_sim_regno().
9433
9434 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9435
9436         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9437         the name parameter being passed to find_pc_partial_function().
9438
9439 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9440
9441         * MAINTAINERS: Step down from being ia64 target maintainer.
9442
9443 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9444
9445         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9446         compilation warning.
9447
9448 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9449
9450         Fix crash on loaded shlibs without loaded exec_bfd.
9451         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9452         (set_section_command): Replace exec_bfd by p->bfd.
9453
9454 2012-02-10  Tom Tromey  <tromey@redhat.com>
9455
9456         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9457         when we have a C++ qualified name.
9458
9459 2012-02-10  Pedro Alves  <palves@redhat.com>
9460
9461         * inferior.c (inferior_pid_to_str): New.
9462         (print_inferior, inferior_command): Use it.
9463
9464 2012-02-10  Pedro Alves  <palves@redhat.com>
9465
9466         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9467         the test CFLAGS.
9468         * configure: Regenerate.
9469
9470 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9471
9472         * linespec.c (decode_line_internal): Fix comment correctness.
9473
9474 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9475
9476         PR gdb/12953
9477         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9478         * amd64bsd-nat.c: Add support for debug registers (adapted from
9479         i386bsd-nat.c).
9480         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9481         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9482         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9483         (amd64bsd_dr_get_control): New functions.
9484         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9485         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9486         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9487         watchpoints initialization.
9488         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9489
9490 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9491
9492         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9493         flds_bnds.fields.
9494         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9495
9496 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9497
9498         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9499
9500 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9501
9502         * language.h (symbol_name_cmp_ftype): Renames
9503         symbol_name_match_p_ftype.
9504         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9505         la_get_symbol_name_match_p.
9506         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9507         ada_get_symbol_name_match_p.  Update comment.
9508         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9509         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9510         Renames symbol_name_match_p.  Update field type.
9511         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9512         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9513         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9514         "la_get_symbol_name_cmp" in comments.
9515         * language.c: Likewise.
9516
9517 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9518
9519         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9520         %eflags offset.
9521         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9522         (amd64_sol2_gregset32_reg_offs): Likewise.
9523
9524 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9525
9526         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9527         of the returned BFD is allocated by GDB.
9528
9529 2012-02-07  Tom Tromey  <tromey@redhat.com>
9530
9531         PR python/12027:
9532         * python/python-internal.h (frame_object_type): Declare.
9533         * python/py-symbol.c (sympy_needs_frame): New function.
9534         (sympy_value): New function.
9535         (symbol_object_getset): Add "needs_frame".
9536         (symbol_object_methods): Add "value".
9537         * python/py-frame.c (frame_object_type): No longer static.
9538
9539 2012-02-07  Tom Tromey  <tromey@redhat.com>
9540
9541         PR python/13599:
9542         * python/py-symbol.c (sympy_line): New function.
9543         (symbol_object_getset): Add "line".
9544
9545 2012-02-07  Tom Tromey  <tromey@redhat.com>
9546
9547         * charset.c (find_charset_names): Check 'in' against NULL.
9548
9549 2012-02-06  Doug Evans  <dje@google.com>
9550
9551         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9552         and fields.name members from char * to const char *.  All uses updated.
9553         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9554         from char * to const char *.  All uses updated.
9555         (type_name_no_tag): Update.
9556         (lookup_unsigned_typename, lookup_signed_typename): Update.
9557         * gdbtypes.c (type_name_no_tag): Change result type
9558         from char * to const char *.  All callers updated.
9559         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9560         name parameter from char * to const char *.
9561         * symtab.h (struct cplus_specific): Change type of demangled_name
9562         member from char * to const char *.  All uses updated.
9563         (struct general_symbol_info): Change type of name and
9564         mangled_lang.demangled_name members from char * to const char *.
9565         All uses updated.
9566         (symbol_get_demangled_name, symbol_natural_name): Update.
9567         (symbol_demangled_name, symbol_search_name): Update.
9568         * symtab.c (symbol_get_demangled_name): Change result type
9569         from char * to const char *.  All callers updated.
9570         (symbol_natural_name, symbol_demangled_name): Ditto.
9571         (symbol_search_name): Ditto.
9572         (completion_list_add_name): Change type of symname,sym_text,
9573         text,word parameters from char * to const char *.
9574         (completion_list_objc_symbol): Change type of sym_text,
9575         text,word parameters from char * to const char *.
9576         * ada-lang.c (find_struct_field): Change type of name parameter
9577         from char * to const char *.
9578         (encoded_ordered_before): Similarly for N0,N1 parameters.
9579         (old_renaming_is_invisible): Similarly for function_name parameter.
9580         (ada_type_name): Change result type from char * to const char *.
9581         All callers updated.
9582         * ada-lang.h (ada_type_name): Update.
9583         * buildsym.c (hashname): Change type of name parameter
9584         from char * to const char *.
9585         * buildsym.h (hashname): Update.
9586         * dbxread.c (end_psymtab): Change type of include_list parameter
9587         from char ** to const char **.
9588         * dwarf2read.c (determine_prefix): Change result type
9589         from char * to const char *.  All callers updated.
9590         * f-lang.c (find_common_for_function): Change type of name, funcname
9591         parameters from char * to const char *.
9592         * f-lang.c (find_common_for_function): Update.
9593         * f-valprint.c (list_all_visible_commons): Change type of funcname
9594         parameters from char * to const char *.
9595         * gdbarch.sh (static_transform_name): Change type of name parameter
9596         and result from char * to const char *.
9597         * gdbarch.c: Regenerate.
9598         * gdbarch.h: Regenerate.
9599         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9600         of name parameter from char * to const char *.
9601         * jv-lang.c (java_primitive_type_from_name): Ditto.
9602         (java_demangled_signature_length): Similarly for signature parameter.
9603         (java_demangled_signature_copy): Ditto.
9604         (java_demangle_type_signature): Ditto.
9605         * jv-lang.h (java_primitive_type_from_name): Update.
9606         (java_demangle_type_signature): Update.
9607         * objc-lang.c (specialcmp): Change type of a,b parameters
9608         from char * to const char *.
9609         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9610         from char * to const char *.  All callers updated.
9611         * p-lang.h (is_pascal_string_type): Update.
9612         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9613         of name parameter from char * to const char *.
9614         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9615         * utils.c (fprintf_symbol_filtered): Ditto.
9616         * defs.h (fprintf_symbol_filtered): Update.
9617         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9618         * stabsread.h (end_psymtab): Update.
9619         * stack.c (find_frame_funname): Change type of funname parameter
9620         from char ** to const char **.
9621         * stack.h (find_frame_funname): Update.
9622         * typeprint.c (type_print): Change type of varstring parameter
9623         from char * to const char *.
9624         * value.h (type_print): Update.
9625         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9626         from char * to const char *.  All callers updated.
9627         (xcoff_end_psymtab): Change type of include_list parameter
9628         from char ** to const char **.  All callers updated.
9629         (swap_sym): Similarly for name parameter.  All callers updated.
9630         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9631         Use xstrdup.
9632         (process_coff_symbol): Use xstrdup.
9633         * stabsread.c (stabs_method_name_from_physname): Renamed from
9634         update_method_name_from_physname.  Change result type from void
9635         to char *.  All callers updated.
9636         (read_member_functions): In has_destructor case, store name in objfile
9637         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9638
9639 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9640
9641         * configure: Rebuild.
9642         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9643         LDFLAGS.
9644
9645 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9646
9647         * configure.tgt (rl78-*-elf): New target.
9648         * rl78-tdep.c: New file.
9649
9650 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9651
9652         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9653         and continue the loop.  Add QUIT statement.
9654
9655 2012-02-03  Tom Tromey  <tromey@redhat.com>
9656
9657         PR gdb/13596:
9658         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9659         bfd_lookup_symbol_from_symtab.
9660         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9661         gdb_bfd_lookup_symbol_from_symtab.
9662
9663 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9664
9665         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9666         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9667         symbol.  Add assertion that sym2 is never NULL.
9668
9669 2012-02-02  Doug Evans  <dje@google.com>
9670
9671         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9672         "name" parameter to const char ** from char **.  All callers updated.
9673         (find_pc_partial_function): Ditto.
9674         (cache_pc_function_name): Change type to const char * from char *.
9675         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9676         (find_pc_partial_function): Update.
9677         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9678         type of "name" parameter to const char * from char *.
9679         All uses updated.
9680         * arch-utils.c (generic_in_solib_return_trampoline): Change
9681         type of "name" parameter to const char * from char *.
9682         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9683         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9684         type of "name" parameter to const char * from char *.
9685         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9686         * gdbarch.c: Regenerate.
9687         * gdbarch.h: Regenerate.
9688         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9689         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9690         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9691         type of "name" parameter to const char * from char *.
9692         * skip.c (skip_function_pc): Ditto.
9693         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9694         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9695         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9696         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9697         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9698         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9699         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9700         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9701         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9702
9703 2012-02-02  Pedro Alves  <palves@redhat.com>
9704
9705         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9706         the current inferior has no execution.  Make sure the current
9707         remote process matches gdb's current inferior.
9708
9709 2012-02-02  Tom Tromey  <tromey@redhat.com>
9710
9711         PR gdb/13405:
9712         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9713         read-only memory.
9714
9715 2012-02-02  Tom Tromey  <tromey@redhat.com>
9716
9717         PR gdb/9307:
9718         * symtab.c (lookup_language_this): Set block_found.
9719
9720 2012-02-01  Tom Tromey  <tromey@redhat.com>
9721
9722         PR gdb/13431:
9723         * jit.c (struct jit_inferior_data): Rewrite.
9724         (struct jit_objfile_data): New.
9725         (get_jit_objfile_data): New function.
9726         (add_objfile_entry): Update.
9727         (jit_read_descriptor): Return int.  Replace descriptor_addr
9728         argument with inf_data.  Update.  Don't call error.
9729         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9730         descriptor here.
9731         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9732         (jit_reset_inferior_data_and_breakpoints)
9733         (jit_inferior_created_observer): Remove.
9734         (jit_inferior_exit_hook): Update.
9735         (jit_executable_changed_observer): Remove.
9736         (jit_event_handler): Update.
9737         (free_objfile_data): Reset inferior data if needed.
9738         (_initialize_jit): Update.
9739
9740 2012-02-01  Tom Tromey  <tromey@redhat.com>
9741
9742         * jit.c (bfd_open_from_target_memory): Move higher in file.
9743
9744 2012-02-01  Tristan Gingold  <gingold@adacore.com>
9745
9746         * libunwind-frame.c (libunwind_load): Display message if dlopen
9747         failed.
9748
9749 2012-02-01  Gary Benson  <gbenson@redhat.com>
9750
9751         * symtab.h (symbol_found_callback_ftype): New typedef.
9752         (iterate_over_symbols): Use the above.
9753         * symtab.c (iterate_over_symbols): Likewise.
9754         * language.h (language_defn->la_iterate_over_symbols): Likewise.
9755         * ada-lang.c (ada_iterate_over_symbols): Likewise.
9756         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9757         (iterate_name_matcher): Document return values.
9758         (collect_one_symbol): Likewise.
9759         (collect_function_symbols): Likewise.
9760         (collect_symbols): Likewise.
9761
9762 2012-02-01  Tom Tromey  <tromey@redhat.com>
9763
9764         * ada-lang.c (resolve_subexp): Update.
9765         (ada_lookup_symbol_list): Add 'full_search' argument.
9766         (ada_iterate_over_symbols): Pass 0 as full_search argument to
9767         ada_lookup_symbol_list.
9768         (ada_lookup_encoded_symbol): Update.
9769         (get_var_value): Update.
9770         * ada-exp.y (block_lookup): Update.
9771         (write_var_or_type): Update.
9772         (write_name_assoc): Update.
9773         * ada-lang.h (ada_lookup_symbol_list): Update.
9774
9775 2012-01-31  Tom Tromey  <tromey@redhat.com>
9776
9777         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9778         comment.
9779
9780 2012-01-31  Doug Evans  <dje@google.com>
9781
9782         * symtab.h: Remove outdated comment.
9783         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9784
9785 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9786
9787         Fix build error in Darwin port.
9788         * i386-darwin-nat.c: Include i386-nat.h.
9789
9790 2012-01-30  Tom Tromey  <tromey@redhat.com>
9791
9792         PR breakpoints/13568:
9793         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9794         argument.  Check for recursive includes.
9795         (dwarf_decode_macros): Create an include hash.
9796
9797 2012-01-30  Michael Eager  <eager@eagercon.com>
9798
9799         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9800         * ppc-linux-tdep.c: Include glibc-tdep.h.
9801         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9802         (powerpc_linux_in_plt_stub): New function.
9803         (powerpc_linux_in_dynsym_resolve_code): New function.
9804         (ppc_skip_trampoline_code): New function.
9805         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9806         Use glibc_skip_solib_resolver.
9807
9808 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9809
9810         Code cleanup: Make 1440 bytes of data segment read-only.
9811         * arch-utils.c (endian_enum): Make it const char *const [].
9812         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9813         Likewise.
9814         * breakpoint.c (always_inserted_enums): Likewise.
9815         * cli/cli-cmds.c (script_ext_enums): Likewise.
9816         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9817         enumlist parameter const char *const *.
9818         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9819         const char *const *.
9820         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9821         parameter const char *const *.
9822         * cris-tdep.c (cris_modes): Make it const char *const [].
9823         * filesystem.c (target_file_system_kinds): Likewise.
9824         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9825         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9826         (can_use_displaced_stepping_enum, scheduler_enums)
9827         (exec_direction_names): Likewise.
9828         * language.c (_initialize_language): Make the type_or_range_names and
9829         case_sensitive_names variables const char *const [].
9830         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9831         * python/python.c (python_excp_enums): Likewise.
9832         * remote.c (interrupt_sequence_modes): Likewise.
9833         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9834         * serial.c (logbase_enums): Likewise.
9835         * sh-tdep.c (sh_cc_enum): Likewise.
9836         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9837         Likewise.
9838         * symtab.c (multiple_symbols_modes): Likewise.
9839         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9840         Likewise.
9841         * utils.c (internal_problem_modes): Likewise.
9842
9843 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9844
9845         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9846         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9847         result.
9848
9849 2012-01-27  Doug Evans  <dje@google.com>
9850
9851         * configure.ac (with_python): Fix absolute path handling for win32.
9852         * configure: Regenerate.
9853
9854 2012-01-26  Doug Evans  <dje@google.com>
9855
9856         * symtab.c: Whitespace cleanup, no code changes.
9857
9858         * symtab.c (lookup_symbol_in_language): Improve comment.
9859         (lookup_symbol_aux): Fix comment.
9860
9861         * psymtab.c (add_psymbol_to_list): Result is now "void".
9862         * psympriv.h (add_psymbol_to_list): Update.
9863
9864         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9865
9866 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9867
9868         Do not open script filenames twice.
9869         * cli/cli-cmds.c (source_script_from_stream): Pass to
9870         source_python_script also STREAM.
9871         * python/py-auto-load.c (source_section_scripts): Pass to
9872         source_python_script_for_objfile also STREAM.
9873         (auto_load_objfile_script): Pass to source_python_script_for_objfile
9874         also INPUT.
9875         * python/python-internal.h (source_python_script_for_objfile): New
9876         parameter file, rename parameter file to filename.
9877         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9878         instead if !_WIN32.  Update the function comment.
9879         (source_python_script, source_python_script_for_objfile)
9880         (source_python_script): New parameter file, rename parameter file to
9881         filename.  Pass FILENAME to python_run_simple_file.
9882         * python/python.h (source_python_script): New parameter file, rename
9883         parameter file to filename.
9884
9885 2012-01-26  Pedro Alves  <palves@redhat.com>
9886
9887         * corelow.c (core_has_fake_pid): Delete.
9888         (core_close): Delete references to `core_has_fake_pid'.
9889         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9890         (core_open): Delete references to `core_has_fake_pid'.
9891         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9892         the removed global.
9893
9894 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
9895
9896         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9897         Remove language parameter from name_matcher.  Adjust the comment.
9898         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9899         Remove language parameter.
9900         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9901         * linespec.c (iterate_name_matcher): Likewise.
9902         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9903         name_matcher.  Adjust call accordingly.
9904         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9905         (maintenance_check_symtabs): Adjust type of parameter "fun".
9906         * psymtab.h (maintenance_check_symtabs): Likewise.
9907
9908 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
9909
9910         * language.h (symbol_name_match_p_ftype): New typedef.
9911         (struct language_defn): Replace field la_symbol_name_compare
9912         by la_get_symbol_name_match_p.
9913         * ada-lang.c (ada_get_symbol_name_match_p): New function.
9914         (ada_language_defn): Use it.
9915         * linespec.c (struct symbol_matcher_data): New type.
9916         (iterate_name_matcher): Rewrite.
9917         (iterate_over_all_matching_symtabs): Pass a pointer to
9918         a symbol_matcher_data struct to expand_symtabs_matching
9919         instead of just the lookup name.
9920         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9921         opencl-lang.c, p-lang.c, language.c: Delete field
9922         la_symbol_name_compare, and replace by NULL for new field
9923         la_get_symbol_name_match_p.
9924         * symfile.h (struct quick_symbol_functions): Update comment.
9925
9926 2012-01-25  Tom Tromey  <tromey@redhat.com>
9927
9928         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9929         dereferencing.
9930
9931 2012-01-24  Tom Tromey  <tromey@redhat.com>
9932
9933         PR symtab/12406:
9934         * solib.c (update_solib_list): Update the program space's
9935         added_solibs and deleted_solibs fields.
9936         * progspace.h (struct program_space) <added_solibs,
9937         deleted_solibs>: New fields.
9938         (clear_program_space_solib_cache): Declare.
9939         * progspace.c (release_program_space): Call
9940         clear_program_space_solib_cache.
9941         (clear_program_space_solib_cache): New function.
9942         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9943         bpstat_stop_status.  Use handle_solib_event.
9944         * breakpoint.c: Include gdb_regex.h.
9945         (print_solib_event): New function.
9946         (bpstat_print): Use print_solib_event.
9947         (bpstat_stop_status): Add special case for bp_shlib_event.
9948         (handle_solib_event): New function.
9949         (bpstat_what): Use handle_solib_event.
9950         (struct solib_catchpoint): New.
9951         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9952         (breakpoint_hit_catch_solib, check_status_catch_solib)
9953         (print_it_catch_solib, print_one_catch_solib)
9954         (print_mention_catch_solib, print_recreate_catch_solib): New
9955         functions.
9956         (catch_solib_breakpoint_ops): New global.
9957         (catch_load_or_unload, catch_load_command_1)
9958         (catch_unload_command_1): New functions.
9959         (internal_bkpt_check_status): Add special case for
9960         bp_shlib_event.
9961         (internal_bkpt_print_it): Use print_solib_event.
9962         (initialize_breakpoint_ops): Initialize
9963         catch_solib_breakpoint_ops.
9964         (_initialize_breakpoint): Register "catch load" and "catch
9965         unload".
9966         * breakpoint.h (handle_solib_event): Declare.
9967         * NEWS: Add entry for "catch load" and "catch unload".
9968
9969 2012-01-24  Tom Tromey  <tromey@redhat.com>
9970
9971         * ada-lang.c: Include gdb_vecs.h.
9972         * charset.c: Include gdb_vecs.h.
9973         * tracepoint.h: Include gdb_vecs.h.
9974         * gdb_vecs.h: New file.
9975
9976 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
9977
9978         * breakpoint.c (breakpoint_hit_catch_fork)
9979         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9980         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9981         * infrun.c (inferior_has_forked, inferior_has_vforked)
9982         (inferior_has_execd, inferior_has_called_syscall): Delete.
9983         (handle_syscall_event): Get syscall_number from the execution
9984         control state's wait status.
9985         (wait_for_inferior): Don't clear syscall_number.
9986
9987 2012-01-24  Pedro Alves  <palves@redhat.com>
9988
9989         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9990         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9991         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9992         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9993         `ws' parameter.
9994         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
9995         false for events other than TARGET_SIGNAL_TRAP.
9996         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9997         Add `ws' parameter.
9998         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
9999         events other than TARGET_SIGNAL_TRAP.
10000         (tracepoint_breakpoint_hit): Add `ws' parameter.
10001         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10002         parameter.
10003         (bpstat_stop_status): Same.
10004         (pc_at_non_inline_function): Same.
10005         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10006         to pass the current event's waitstatus to bpstat_stop_status
10007         and pc_at_non_inline_function.
10008
10009 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10010
10011         Code cleanup.
10012         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10013         Update the function comment for it.
10014         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10015         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10016         for STREAM.
10017
10018 2012-01-24  Pedro Alves  <palves@redhat.com>
10019
10020         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10021         outside `bs->stop' block.
10022         (bpstat_what): Rework bp_shlib_event handling.
10023         (internal_bkpt_check_status): If the breakpoint is a
10024         bp_shlib_event, then set bs->stop and bs->print if
10025         stop_on_solib_events is set.
10026
10027 2012-01-24  Gary Benson  <gbenson@redhat.com>
10028
10029         Delete #if 0'd out code.
10030         * stack.c (print_frame_label_vars): Remove.
10031         (catch_info): Likewise.
10032         (_initialize_stack): Remove "info catch" command.
10033         * NEWS: Mention the above.
10034
10035 2012-01-24  Pedro Alves  <palves@redhat.com>
10036
10037         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10038         it.
10039         (remote_notice_new_inferior): If the remote end doesn't support
10040         the multiprocess extensions, then the PID is fake.
10041         (add_current_inferior_and_thread): New.
10042         (remote_start_remote): Use it.
10043         (extended_remote_attach_1): Adjust.
10044         (extended_remote_create_inferior_1): Use
10045         add_current_inferior_and_thread.
10046
10047 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10048
10049         Fix watchpoints to be specific for each inferior.
10050         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10051         current_program_space.
10052         * i386-nat.c (i386_inferior_data_cleanup): New.
10053         (i386_inferior_data_get): Replace variable inf_data_local by an
10054         inferior_data call.
10055         (i386_use_watchpoints): Initialize i386_inferior_data.
10056         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10057         specific iterate_over_lwps.
10058
10059 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10060
10061         Fix watchpoints across inferior fork.
10062         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10063         comment for linux_nat_iterate_watchpoint_lwps.
10064         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10065         linux_nat_iterate_watchpoint_lwps.
10066         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10067         * i386-linux-nat.c (update_debug_registers_callback): Update the
10068         comment for linux_nat_iterate_watchpoint_lwps.
10069         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10070         linux_nat_iterate_watchpoint_lwps.
10071         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10072         * i386-nat.c: Include inferior.h.
10073         (dr_mirror): Remove.
10074         (i386_inferior_data, struct i386_inferior_data)
10075         (i386_inferior_data_get): New.
10076         (i386_debug_reg_state): Use i386_inferior_data_get.
10077         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10078         (i386_insert_watchpoint, i386_remove_watchpoint)
10079         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10080         (i386_remove_hw_breakpoint): New variable state, use
10081         i386_debug_reg_state instead of DR_MIRROR.
10082         * linux-nat.c (delete_lwp): New declaration.
10083         (num_lwps): Move here from downwards.
10084         (delete_lwp_cleanup): New.
10085         (linux_child_follow_fork): Create new child_lp, call
10086         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10087         PTRACE_DETACH.
10088         (num_lwps): Move upwards.
10089         (linux_nat_iterate_watchpoint_lwps): New.
10090         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10091         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10092
10093 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10094
10095         GDB 7.4 released.
10096
10097 2012-01-23  Pedro Alves  <palves@redhat.com>
10098
10099         * top.c (caution): Rename to ...
10100         (confirm): ... this.
10101         (show_caution): Rename to ...
10102         (show_confirm): ... this.
10103         (quit_cover): Adjust.
10104         (init_main): Adjust.
10105         * top.h (caution): Rename to ...
10106         (confirm): ... this.
10107         * utils.c (internal_vproblem, defaulted_query): Adjust.
10108
10109 2012-01-23  Pedro Alves  <palves@redhat.com>
10110
10111         * top.c (caution): Update comment.
10112         (execute_command): Don't consider the current value of `caution'.
10113
10114 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10115
10116         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10117
10118 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10119
10120         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10121         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10122         * target.c (target_fileio_pwrite): Remove buffer address from
10123         debug output.
10124         (target_fileio_pread): Likewise.
10125
10126 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10127
10128         * NEWS: Document remote "info proc" and "generate-core-file".
10129
10130 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10131
10132         * gdbarch.sh (find_memory_regions): New callback.
10133         * gdbarch.c, gdbarch.h: Regenerate.
10134
10135         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10136         callback before falling back to target method.
10137
10138         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10139         (linux_target_install_ops): No longer install it.
10140
10141         * linux-tdep.c (linux_find_memory_regions): New function.
10142         (linux_init_abi): Install it.
10143
10144 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10145
10146         * gdbarch.sh (make_corefile_notes): New architecture callback.
10147         * gdbarch.c: Regenerate.
10148         * gdbarch.h: Likewise.
10149
10150         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10151         before target_make_corefile_notes.  If NULL is returned, the
10152         target does not support core file generation.
10153
10154         * linux-nat.c: Include "linux-tdep.h".
10155         (find_signalled_thread, find_stop_signal): Remove.
10156         (linux_nat_do_thread_registers): Likewise.
10157         (struct linux_nat_corefile_thread_data): Likewise.
10158         (linux_nat_corefile_thread_callback): Likewise.
10159         (iterate_over_spus): Likewise.
10160         (struct linux_spu_corefile_data): Likewise.
10161         (linux_spu_corefile_callback): Likewise.
10162         (linux_spu_make_corefile_notes): Likewise.
10163         (linux_nat_collect_thread_registers): New function.
10164         (linux_nat_make_corefile_notes): Replace contents by call to
10165         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10166         as native-only callback.
10167
10168         * linux-tdep.h: Include "bfd.h".
10169         (struct regcache): Add forward declaration.
10170         (linux_collect_thread_registers_ftype): New typedef.
10171         (linux_make_corefile_notes): Add prototype.
10172         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10173         "regset.h", and "elf-bfd.h".
10174         (find_signalled_thread, find_stop_signal): New functions.
10175         (linux_spu_make_corefile_notes): Likewise.
10176         (linux_collect_thread_registers): Likewise.
10177         (struct linux_corefile_thread_data): New data structure.
10178         (linux_corefile_thread_callback): New funcion.
10179         (linux_make_corefile_notes): Likewise.
10180         (linux_make_corefile_notes_1): Likewise.
10181         (linux_init_abi): Install it.
10182
10183 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10184
10185         * gdbarch.sh (info_proc): New callback.
10186         * gdbarch.c, gdbarch.h: Regenerate.
10187
10188         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10189         before falling back to the target info_proc callback.
10190
10191         * linux-nat.c: Do not include "cli/cli-utils.h".
10192         (linux_nat_info_proc): Remove.
10193         (linux_target_install_ops): No longer install it.
10194
10195         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10196         (read_mapping): New function.
10197         (linux_info_proc): Likewise.
10198         (linux_init_abi): Install it.
10199
10200 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10201
10202         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10203         * infcmd.c: (info_proc_cmd_1): New function.
10204         (info_proc_cmd): New function, moved here from equivalent routine
10205         orignally in linux-nat.c.
10206         (info_proc_cmd_mappings): Likewise.
10207         (info_proc_cmd_stat): Likewise.
10208         (info_proc_cmd_status): Likewise.
10209         (info_proc_cmd_cwd): Likewise.
10210         (info_proc_cmd_cmdline): Likewise.
10211         (info_proc_cmd_exe): Likewise.
10212         (info_proc_cmd_all): Likewise.
10213         (_initialize_infcmd): Install "info proc" command and subcommands.
10214
10215         * target.h (struct target_ops): Add to_info_proc.
10216         (target_info_proc): Add prototype.
10217         * target.c (target_info_proc): New function.
10218
10219         * procfs.c (procfs_info_proc): Add prototype.
10220         (info_proc_cmd): Rename into ...
10221         (procfs_info_proc): ... this.  Update argument types as appropriate
10222         for a to_info_proc implementation.  Handle "what" argument.
10223         (procfs_target): Install procfs_info_proc.
10224         (_initialize_procfs): No longer install "info proc" command.
10225
10226         * linux-nat.c: (enum info_proc_what): Remove.
10227         (linux_nat_info_proc_cmd_1): Rename into ...
10228         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10229         for a to_info_proc implementation.
10230         (linux_nat_info_proc_cmd): Remove.
10231         (linux_nat_info_proc_cmd_mappings): Likewise.
10232         (linux_nat_info_proc_cmd_stat): Likewise.
10233         (linux_nat_info_proc_cmd_status): Likewise.
10234         (linux_nat_info_proc_cmd_cwd): Likewise.
10235         (linux_nat_info_proc_cmd_cmdline): Likewise.
10236         (linux_nat_info_proc_cmd_exe): Likewise.
10237         (linux_nat_info_proc_cmd_all): Likewise.
10238         (linux_target_install_ops): Install linux_nat_info_proc.
10239         (_initialize_linux_nat): No longer install "info proc" command
10240         and subcommands.
10241
10242 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10243
10244         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10245         * config.in, configure: Regenerate.
10246
10247         * target.h (struct target_ops): Add to_fileio_readlink.
10248         (target_fileio_readlink): Add prototype.
10249         * target.c (target_fileio_readlink): New function.
10250
10251         * inf-child.c: Conditionally include <sys/param.h>.
10252         (inf_child_fileio_readlink): New function.
10253         (inf_child_target): Install it.
10254
10255         * remote.c (PACKET_vFile_readlink): New enum value.
10256         (remote_hostio_readlink): New function.
10257         (init_remote_ops): Install it.
10258         (_initialize_remote): Handle vFile:readlink packet type.
10259
10260 2012-01-20  Pedro Alves  <palves@redhat.com>
10261             Ulrich Weigand  <ulrich.weigand@linaro.org>
10262
10263         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10264         * config.in, configure: Regenerate.
10265
10266         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10267         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10268         (target_fileio_open): Add prototype.
10269         (target_fileio_pwrite): Likewise.
10270         (target_fileio_pread): Likewise.
10271         (target_fileio_close): Likewise.
10272         (target_fileio_unlink): Likewise.
10273         (target_fileio_read_alloc): Likewise.
10274         (target_fileio_read_stralloc): Likewise.
10275
10276         * target.c: Include "gdb/fileio.h".
10277         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10278         (default_fileio_target): New function.
10279         (target_fileio_open): Likewise.
10280         (target_fileio_pwrite): Likewise.
10281         (target_fileio_pread): Likewise.
10282         (target_fileio_close): Likewise.
10283         (target_fileio_unlink): Likewise.
10284         (target_fileio_close_cleanup): Likewise.
10285         (target_fileio_read_alloc_1): Likewise.
10286         (target_fileio_read_alloc): Likewise.
10287         (target_fileio_read_stralloc): Likewise.
10288
10289         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10290         <fcntl.h>, and <unistd.h>.
10291         (inf_child_fileio_open_flags_to_host): New function.
10292         (inf_child_errno_to_fileio_error): Likewise.
10293         (inf_child_fileio_open): Likewise.
10294         (inf_child_fileio_pwrite): Likewise.
10295         (inf_child_fileio_pread): Likewise.
10296         (inf_child_fileio_close): Likewise.
10297         (inf_child_fileio_unlink): Likewise.
10298         (inf_child_target): Install to_fileio routines.
10299
10300         * remote.c (init_remote_ops): Install to_fileio routines.
10301
10302 2012-01-20  Pedro Alves  <palves@redhat.com>
10303             Ulrich Weigand  <ulrich.weigand@linaro.org>
10304
10305         * remote.c (remote_multi_process_p): Only check for multi-process
10306         protocol feature, do not check for extended protocol.
10307         (remote_supports_multi_process): Check for extended protocol here.
10308         (set_general_process): Likewise.
10309         (extended_remote_kill): Likewise.
10310         (remote_pid_to_str): Likewise.
10311         (remote_query_supported): Always query multiprocess mode.
10312
10313 2012-01-20  Pedro Alves  <palves@redhat.com>
10314             Ulrich Weigand  <ulrich.weigand@linaro.org>
10315
10316         * inferior.h (struct inferior): Add fake_pid_p.
10317         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10318         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10319         magic_null_ptid since the remote side doesn't provide a real PID.
10320
10321 2012-01-19  Tom Tromey  <tromey@redhat.com>
10322
10323         * NEWS: Combine the two Python sections.
10324
10325 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10326
10327         * target.h (target_close): Update comment on the target's unpush state.
10328
10329 2012-01-19  Pedro Alves  <palves@redhat.com>
10330
10331         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10332         linux_nat_async directly instead of going through the target
10333         vector.
10334         * target.c (unpush_target): Close target after unpushing it, not
10335         before.
10336
10337 2012-01-19  Gary Benson  <gbenson@redhat.com>
10338
10339         * mdebugread.c (sort_blocks): Replace integer constants with ones
10340         derived from FIRST_LOCAL_BLOCK.
10341
10342 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10343             Jan Kratochvil  <jan.kratochvil@redhat.com>
10344
10345         PR gdb/9538
10346         * symfile.c (find_separate_debug_file): New function.
10347         (terminate_after_last_dir_separator): Likewise.
10348         (find_separate_debug_file_by_debuglink): Also try realpath.
10349         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10350         * configure: Regenerate.
10351         * config.in: Regenerate.
10352
10353 2012-01-18  Doug Evans  <dje@google.com>
10354
10355         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10356         (main.o): Remove rule.
10357         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10358         (--with-sysroot): Rewrite.
10359         * configure: Regenerate.
10360         * config.in: Regenerate.
10361
10362 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10363
10364         * parse.c (initialize_expout): New function.
10365         (reallocate_expout): Likewise.
10366         (parse_exp_in_context): Use `initialize_expout' and
10367         `reallocate_expout' when appropriate.
10368
10369 2012-01-18  Pedro Alves  <palves@redhat.com>
10370
10371         * record.c (struct record_breakpoint, record_breakpoint_p)
10372         (record_breakpoints): New.
10373         (record_insert_breakpoint, record_remove_breakpoint): Manage
10374         record breakpoints list.  Only remove breakpoints from the
10375         inferior if they had been inserted there in the first place.
10376
10377 2012-01-17  Doug Evans  <dje@google.com>
10378
10379         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10380         if we know we don't have a file name to look for.
10381
10382 2012-01-17  Pedro Alves  <palves@redhat.com>
10383
10384         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10385         the frame's stop reason is UNWIND_UNAVAILABLE.
10386
10387 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10388
10389         Fix compilation error.
10390         * m2-exp.y (yyerror): Use ANSI C prototype.
10391
10392 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10393
10394         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10395         (growbuf_by_size): Likewise.
10396         (yyerror): Likewise.
10397         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10398         (modblock): Remove variable (was #if 0'ed).
10399         (parse_number): Convert prototype from K&R to ANSI C.
10400         (yyerror): Likewise.
10401         * objc-exp.y (parse_number): Likewise.
10402         (yyerror): Likewise.
10403         (yylex): Remove #if 0'ed code.
10404         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10405         (yyerror): Likewise.
10406
10407 2012-01-16  Tom Tromey  <tromey@redhat.com>
10408
10409         * NEWS: Add item.
10410         * symtab.h (compare_filenames_for_search): Declare.
10411         * symtab.c (compare_filenames_for_search): New function.
10412         (iterate_over_some_symtabs): Use it.
10413         * symfile.h (struct quick_symbol_functions)
10414         <map_symtabs_matching_filename>: Change spec.
10415         * psymtab.c (partial_map_symtabs_matching_filename): Use
10416         compare_filenames_for_search.  Update for new spec.
10417         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10418         compare_filenames_for_search.  Update for new spec.
10419         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10420
10421 2012-01-16  Tom Tromey  <tromey@redhat.com>
10422
10423         PR python/13281:
10424         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10425         (struct main_type) <flag_flag_enum>: New field.
10426         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10427         * NEWS: Add entries.
10428         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10429         enums.
10430         * python/lib/gdb/printing.py (_EnumInstance): New class.
10431         (FlagEnumerationPrinter): Likewise.
10432
10433 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10434
10435         * breakpoint.c (create_sals_from_address_default): New function.
10436         (create_breakpoints_sal_default): Likewise.
10437         (decode_linespec_default): Likewise.
10438         (is_marker_spec): Removed.
10439         (strace_marker_p): New function.
10440         (init_breakpoint_sal): Using `strace_marker_p' instead of
10441         `is_marker_spec'.
10442         (create_breakpoint): Call method `create_sals_from_address' from
10443         breakpoint_ops, replacing code that created SALs conditionally
10444         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10445         replacing code that created breakpoints conditionally on the type
10446         wanted.
10447         (base_breakpoint_create_sals_from_address): New function.
10448         (base_breakpoint_create_breakpoints_sal): Likewise.
10449         (base_breakpoint_decode_linespec): Likewise.
10450         (base_breakpoint_ops): Add methods
10451         `base_breakpoint_create_sals_from_address',
10452         `base_breakpoint_create_breakpoints_sal' and
10453         `base_breakpoint_decode_linespec'.
10454         (bkpt_create_sals_from_address): New function.
10455         (bkpt_create_breakpoints_sal): Likewise.
10456         (bkpt_decode_linespec): Likewise.
10457         (tracepoint_create_sals_from_address): Likewise.
10458         (tracepoint_create_breakpoints_sal): Likewise.
10459         (tracepoint_decode_linespec): Likewise.
10460         (strace_marker_create_sals_from_address): Likewise.
10461         (strace_marker_create_breakpoints_sal): Likewise.
10462         (strace_marker_decode_linespec): Likewise.
10463         (strace_marker_breakpoint_ops): New variable.
10464         (addr_string_to_sals): Remove `marker_spec'.  Call method
10465         `decode_linespec' from breakpoint_ops, replacing code that decoded
10466         an address string into a SAL.  Use `strace_marker_p' instead of
10467         `marker_spec'.
10468         (strace_command): Decide whether we are dealing with a static
10469         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10470         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10471         * breakpoint.h (linespec_result, linespec_sals): New forward
10472         declarations.
10473         (breakpoint_ops) <create_sals_from_address>,
10474         <create_breakpoints_sal>, <decode_linespec>: New methods.
10475
10476 2012-01-14  Doug Evans  <dje@google.com>
10477
10478         * NEWS: Update text for "maint set python print-stack".
10479         It is deprecated in gdb 7.4 and deleted in 7.5.
10480
10481 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10482
10483         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10484         including curses.h.
10485
10486 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10487
10488         * configure: Regenerate.
10489         * config.in: Regenerate.
10490
10491 2012-01-12  Keith Seitz  <keiths@redhat.com>
10492
10493         PR mi/10586
10494         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10495         (ANONYMOUS_UNION_NAME): Define.
10496         (is_path_expr_parent): New function.
10497         (get_path_expr_parent): New function.
10498         (is_anonymous_child): New function.
10499         (create_child_with_value): If the child is anonymous and without
10500         a name, assign an object name to it.
10501         (c_describe_child): Use get_path_expr_parent to determine
10502         the parent expression.
10503         If there field represents an anonymous struct or union and
10504         has no name, set an appropriate display name and expression.
10505         (cplus_describe_child): Likewise.
10506
10507 2012-01-12  Pedro Alves  <palves@redhat.com>
10508
10509         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10510         available when %ebp is found to be zero (outermost).
10511
10512 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10513
10514         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10515         an internal gdb_static_assert.
10516         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10517
10518 2012-01-11  Tom Tromey  <tromey@redhat.com>
10519
10520         PR gdb/9598:
10521         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10522         catch" and "catch throw".
10523
10524 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10525
10526         * blockframe.c (block_innermost_frame): Start search from selected
10527         frame, if present, or otherwise the current frame.
10528
10529         * c-exp.y (variable): Update innermost_block for
10530         'block COLONCOLON NAME' clause.
10531         * m2-exp.y (variable): Ditto.
10532         * objc-exp.y (variable): Ditto.
10533
10534 2012-01-10  Tom Tromey  <tromey@redhat.com>
10535
10536         PR python/13199:
10537         * python/python.c (finish_python_initialization): Set sys.argv.
10538
10539 2012-01-10  Doug Evans  <dje@google.com>
10540
10541         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10542         "want_line_info".  All callers updated.
10543         (dwarf_decode_lines_1): New function.
10544         (handle_DW_AT_stmt_list): Add function comment.
10545         New arg "want_line_info".  All callers updated.
10546         (read_file_scope,read_type_unit_scope): Move comment from
10547         handle_DW_AT_stmt_list to here.
10548
10549 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10550
10551         Fix regression after libiberty/ update for GCC PR 6057 and others.
10552         * c-exp.y (operator) <OPERATOR DELETE>
10553         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10554         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10555         (make_builtin_type, make_name): New variable i, add gdb_assert.
10556         (operator) <OPERATOR NEW>: Update ARGS to 3.
10557         (operator) <OPERATOR DELETE>: Add trailing space.
10558         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10559         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10560         * cp-support.c (cp_canonicalize_string): Check NULL from
10561         cp_comp_to_string, call warning and return.
10562
10563 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10564
10565         Fix duplicate .o files after omitting libbfd.a.
10566         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10567         (SFILES): Add corelow.c.
10568         (COMMON_OBS): Add corelow.o.
10569         (ALLDEPFILES): Remove corelow.c.
10570         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10571         * config/alpha/alpha-osf3.mh: Likewise.
10572         * config/alpha/fbsd.mh: Likewise.
10573         * config/arm/nbsdaout.mh: Likewise.
10574         * config/arm/nbsdelf.mh: Likewise.
10575         * config/i386/i386gnu.mh: Likewise.
10576         * config/ia64/hpux.mh: Likewise.
10577         * config/ia64/linux.mh: Likewise.
10578         * config/m32r/linux.mh: Likewise.
10579         * config/m68k/linux.mh: Likewise.
10580         * config/mips/irix5.mh: Likewise.
10581         * config/mips/irix6.mh: Likewise.
10582         * config/pa/hpux.mh: Likewise.
10583         * config/pa/linux.mh: Likewise.
10584         * config/powerpc/aix.mh: Likewise.
10585         * config/sparc/linux.mh: Likewise.
10586         * config/sparc/linux64.mh: Likewise.
10587         * config/sparc/sol2.mh: Likewise.
10588         * config/vax/vax.mh: Likewise.
10589         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10590         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10591         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10592         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10593         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10594         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10595         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10596         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10597         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10598         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10599         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10600         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10601         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10602         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10603         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10604         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10605         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10606         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10607         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10608         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10609         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10610         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10611         corelow.o from gdb_target_obs.
10612         * corefile.c (core_target): Update the comment on NULL value.
10613         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10614         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10615         MATCHES.  Drop YUMMY set on NULL.
10616         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10617         reclaim CORE_DATA if it is already NULL.
10618
10619 2012-01-09  Doug Evans  <dje@google.com>
10620
10621         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10622         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10623
10624 2012-01-09  Keith Seitz  <keiths@redhat.com>
10625
10626         * breakpoint.c (wrapper.h): Don't include.
10627
10628 2012-01-09  Keith Seitz  <keiths@redhat.com>
10629
10630         * Makefile.in (SFILES): Remove wrapper.c.
10631         (HFILES_NO_SRCDIR): Remove wrapper.h.
10632         (COMMON_OBS): Remove wrapper.o.
10633         * cli/cli-interp.c: Don't inlude wrapper.h.
10634         * corelow.c: Likewise.
10635         (core_open): Replace gdb_target_find_new_threads with
10636         TRY_CATCH around target_find_new_threads.
10637         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10638         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10639         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10640         evaluate_expression.
10641         (varobj_set_value): Likewise for evaluate_expression and
10642         value_assign.
10643         (install_new_variable): Likewise for value_fetch_lazy.
10644         (adjust_value_for_child_access): Likewise for value_ind.
10645         (c_describe_child): Likewise for value_subscript and
10646         value_ind.
10647         (c_value_of_root): Likewise for evaluate_expression.
10648         * wrapper.c: Remove.
10649         * wrapper.h: Remove.
10650
10651 2012-01-09  Doug Evans  <dje@google.com>
10652
10653         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10654         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10655         "abfd" args with "section".  All callers updated.
10656         Error checking code moved ...
10657         (error_check_comp_unit_head): ... here.  New function.
10658         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10659         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10660         (create_debug_types_hash_table): Simplify by using
10661         read_and_check_type_unit_head.
10662
10663         * parser-defs.h (namecopy): Delete.
10664         * parse.c (namecopy, namecopy_size): Move into copy_name.
10665
10666 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10667
10668         Partially fix duplicate .o files after omitting libbfd.a.
10669         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10670         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10671         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10672         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10673         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10674         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10675         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10676
10677 2012-01-09  Pedro Alves  <palves@redhat.com>
10678
10679         * MAINTAINERS: Update my email address.
10680
10681 2012-01-08  Doug Evans  <dje@google.com>
10682
10683         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10684         n_type_units.  Rename type_comp_units to all_type_units.
10685         All uses updated.
10686         (add_signatured_type_cu_to_table): Renamed from
10687         add_signatured_type_cu_to_list.  All callers updated.
10688
10689         * gdbtypes.h (struct cplus_struct_type): Delete member
10690         nfn_fields_total.  All uses removed.
10691
10692 2012-01-06  Doug Evans  <dje@google.com>
10693
10694         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10695         to top of file.
10696         (dwarf2_find_comp_unit): Delete.
10697         (process_psymtab_comp_unit): Make result "void".
10698         Delete args buffer, info_ptr, buffer_size, and replace with
10699         "section".  All callers updated.
10700         (dwarf2_build_psymtabs_hard): Simplify.
10701
10702 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10703             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10704
10705         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10706         before `struct gdb_exception'.
10707         * breakpoint.c (update_global_location_list_nothrow)
10708         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10709         * cp-abi.c (value_rtti_type): Likewise.
10710         * cp-support.c (cp_validate_operator): Likewise.
10711         * infrun.c (insert_exception_resume_breakpoint)
10712         (check_exception_resume, keep_going): Likewise.
10713         * mi-interp.c (mi_breakpoint_created)
10714         (mi_breakpoint_modified): Likewise.
10715         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10716         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10717         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10718
10719 2012-01-05  Doug Evans  <dje@google.com>
10720
10721         * dwarf2read.c (statement_prologue): Delete, unused.
10722
10723         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10724         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10725
10726         * dwarf2read.c (comp_unit_header): Delete, unused.
10727
10728 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10729
10730         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10731         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10732
10733 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10734
10735         * infrun.c (normal_stop): Don't skip calling the normal_stop
10736         observers if the thread was doing a multi-step, but stopped for
10737         some reason other than stepping.
10738
10739 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
10740
10741         * cli/cli-decode.h: Add comments.
10742         (CMD_LIST_AMBIGUOUS): Moved to command.h
10743         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10744         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10745         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10746         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10747         (add_com, add_com_alias, add_info, add_info_alias)
10748         (complete_on_cmdlist, complete_on_enum, help_list): Remove
10749         declarations.
10750         * command.h: Add and adjust comments.
10751         (CMD_LIST_AMBIGUOUS): Moved here.
10752         (help_cmd, help_cmd_list): Delete declarations.
10753
10754 2012-01-04  Doug Evans  <dje@google.com>
10755
10756         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10757         All callers updated.
10758         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10759         Replace all arguments with "per_cu".  All callers updated.
10760
10761         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10762
10763         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10764         New arg "per_cu".  All callers updated.
10765
10766         Delete #if 0'd out code.
10767         * language.c (binop_result_type): Delete.
10768         (simple_type, ordered_type, same_type, integral_type): Delete.
10769         (numeric_type, character_type, string_type, boolean_type): Delete.
10770         (float_type, structured_type): Delete.
10771         * language.h: Update.
10772
10773 2012-01-04  Tom Tromey  <tromey@redhat.com>
10774
10775         * python/py-value.c (valpy_binop): Initialize 'res_val'.
10776
10777 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10778
10779         * corefile.c (close_exec_file): Delete.
10780         (reopen_exec_file): Remove commented out code that seems related
10781         to close_exec_file, which is being deleted here.
10782         * inferior.h (close_exec_file): Delete.
10783         * fork-child.c (fork_inferior): Remove call to fork_inferior.
10784
10785 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10786
10787         * ada-lang.c: #include "cli/cli-utils.h".
10788         (get_selections): Use skip_spaces.
10789         (ada_get_next_arg): Use skip_spaces and skip_to_space.
10790         (catch_ada_exception_command_split): Use skip_spaces.
10791         (ada_decode_assert_location): Likewise.
10792
10793 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10794
10795         * linespec.c (decode_line_internal): Check for C++ or Java
10796         compound constructs only if the current language is C, C++
10797         or Java.
10798
10799 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10800
10801         Revert:
10802         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10803                     Joel Brobecker  <brobecker@adacore.com>
10804         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10805         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10806         3 times.
10807         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10808         fall through into AT_ENTRY_POINT.
10809         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10810         DUMMY_ADDR with it.
10811         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10812         PPC_INSN_SIZE skip to 3 times.
10813
10814 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10815
10816         * linespec.c (add_minsym): Preserve function descriptors.
10817
10818 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
10819
10820         * breakpoint.c (all_locations_are_pending): Consider locations
10821         in program spaces executing during startup pending as well.
10822
10823 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10824
10825         Copyright year update in most files of the GDB Project.
10826
10827 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10828
10829         * copyright.sh: Delete.
10830         * copyright.py: Rewrite.
10831
10832 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10833
10834         * gnulib/extra/update-copyright: New file, imported from gnulib.
10835
10836 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10837
10838         * README (Copyright and License Notices): New section.
10839
10840 2012-01-03  Tom Tromey  <tromey@redhat.com>
10841
10842         PR python/12533:
10843         * python/py-value.c (valpy_dereference, valpy_get_address
10844         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10845         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10846         (valpy_absolute, valpy_richcompare): Free intermediate values.
10847
10848 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
10849
10850         * ada-lang.c: Reformat the copyright notice.
10851
10852 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10853
10854         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10855         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10856         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10857         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10858         Revert this part of:
10859         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10860         Build gdb directly from *.o files not using libgdb.a.
10861         * Makefile.in (COMMON_OBS): Remove solib-target.o.
10862
10863 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10864
10865         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10866         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10867         Reformat the copyright header.
10868
10869 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10870
10871         Revert this part of:
10872         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10873         Remove the gdbtui binary.
10874         * gdb.c (main): Remove args.interpreter_p initialization.
10875         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10876         * main.h (struct captured_main_args): Remove interpreter_p.
10877
10878 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10879
10880         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10881
10882 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10883
10884         * top.c (print_gdb_version): Update copyright year.
10885
10886 2012-01-02  Yao Qi  <yao@codesourcery.com>
10887
10888         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10889
10890 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10891             Joel Brobecker  <brobecker@adacore.com>
10892
10893         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10894         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10895         3 times.
10896         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10897         fall through into AT_ENTRY_POINT.
10898         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10899         DUMMY_ADDR with it.
10900         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10901         PPC_INSN_SIZE skip to 3 times.
10902
10903 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10904
10905         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10906         the return value.
10907         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10908
10909 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10910
10911         Build gdb directly from *.o files not using libgdb.a.
10912         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10913         (COMMON_OBS): Remove solib-target.o.
10914         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10915         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10916         (LIBGDB_OBS, libgdb.a): Move it above.
10917         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10918         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10919         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10920         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10921         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10922         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10923         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10924         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10925         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10926         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10927         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10928         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10929         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10930         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10931         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10932         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10933         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10934         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10935         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10936         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10937         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10938         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10939         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10940         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10941         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10942         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10943         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10944
10945 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10946
10947         Remove the gdbtui binary.
10948         * .gitignore (/gdbtui): Remove.
10949         * Makefile.in (TUI): Remove.
10950         (SUBDIR_TUI_OBS): Remove tui-main.o.
10951         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10952         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10953         (tui-main.o): Remove.
10954         (all_object_files): Remove tui-main.o.
10955         * NEWS: New note for the gdbtui removal.
10956         * configure: Rebuilt.
10957         * configure.ac: No longer add all-tui, clean-tui, install-tui and
10958         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10959         CONFIG_UNINSTALL respectively.
10960         * gdb.c (main): Remove args.interpreter_p initialization.
10961         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10962         * main.h (struct captured_main_args): Remove interpreter_p.
10963         * tui/tui-main.c: Remove.
10964
10965 2012-01-01  Doug Evans  <dje@google.com>
10966
10967         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10968         (dwarf2_physname, read_import_statement): Ditto.
10969         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10970         (process_structure_scope read_subroutine_type): Ditto.
10971         (read_typedef, load_partial_dies, read_partial_die): Ditto.
10972         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10973         (dwarf2_fetch_die_location_block): Ditto.
10974         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10975
10976         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10977         All callers updated.
10978         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10979         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10980         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10981
10982         * dwarf2read.c (load_cu): Move assert to more useful location.
10983
10984         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10985         All callers updated.
10986
10987         * dwarf2read.c (dwarf2_per_objfile): Add comment.
10988         (dwarf2_elf_names): Minor reformat.
10989         (dwarf2_per_cu_data): Tweak comment.
10990         (dwarf2_read_section): Fix comment.
10991         (create_all_comp_units): Fix comment.
10992         (load_full_comp_unit): Fix comment.
10993         (process_full_comp_unit): Fix comment.
10994         (read_signatured_type): Fix comment.
10995
10996 For older changes see ChangeLog-2011.
10997 \f
10998 Local Variables:
10999 mode: change-log
11000 left-margin: 8
11001 fill-column: 74
11002 version-control: never
11003 coding: utf-8
11004 End: