2012-10-26 Pedro Alves <palves@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-10-26  Pedro Alves  <palves@redhat.com>
2
3         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
4         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
5
6 2012-10-24  Tristan Gingold  <gingold@adacore.com>
7
8         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
9         Add comments.
10
11 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
12
13         * ravenscar-thread.c (ravenscar_wait): Only update the list
14         of threads and inferior_ptid if the inferior is still alive.
15
16 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
17
18         * ada-lang.c (is_known_support_routine): Use lbasename when
19         matching the symtab's filename against
20         known_runtime_file_name_patterns.
21
22 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
23
24         * ada-lang.c (ada_same_array_size_p): New function.
25         (ada_promote_array_of_integrals): New function.
26         (coerce_for_assign): Add handling of arrays where the elements
27         are integrals of a smaller size than the size of the target
28         array element type.
29
30 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
31
32         * doublest.c (convert_doublest_to_floatformat): Fix comparison
33         against maximum exponent value.
34
35 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
36
37         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
38         "unwind-seh.c".
39
40 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
41
42         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
43         strip typedef layer when computing the fixed type's field type,
44         only when computing its size.
45
46 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
47
48         PR gdb/12783
49         * i386-tdep.c (i386_return_value): Handle complex double and long
50         double.
51
52 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
53
54         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
55         New local variable args_len.
56         Quote the name of the executable when computing the command line.
57
58 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
59
60         PR gdb/12796
61         PR gdb/12798
62         PR gdb/12800
63         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
64         AMD64_FTAG_REGNUM.
65         * amd64-tdep.c (amd64_classify): Classify complex types.
66         (amd64_return_value): Handle the COMPLEX_X87 class.
67
68 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
69
70         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
71         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
72
73 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
74
75         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
76         function.
77         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
78         to amd64_windows_auto_wide_charset.
79
80 2012-10-23  Yao Qi  <yao@codesourcery.com>
81
82         * event-top.c (mark_async_signal_handler_wrapper): Remove.
83         * event-top.h: Remove its declaration.
84         (async_request_quit): Call mark_async_signal_handler instead of
85         mark_async_signal_handler_wrapper.
86         (async_do_nothing, async_disconnect): Likewise.
87         (async_stop_sig): Likewise.
88         * remote.c (handle_remote_sigint): Likewise.
89         (handle_remote_sigint_twice): Likewise.
90
91 2012-10-23  Yao Qi  <yao@codesourcery.com>
92
93         * event-top.c (sigint_token, sighup_token): Replace 'void *'
94         with 'static struct async_signal_handler *'.
95         (sighup_token, sigquit_token, sigstp_token): Likewise.
96
97 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
98
99         * gdbarch.sh (function_list): Use 'pstring' when printing
100         a variable which could return NULL.
101         * gdbarch.c: Regenerate.
102
103 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
104             Tom Tromey  <tromey@redhat.com>
105
106         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
107         inneffective if condition by gdb assertion.  Add function
108         description comment.
109
110 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
111
112         * parser-defs.h (struct exp_descriptor): Document constraint
113         on return value for "op_name" callbacks.
114
115 2012-10-18  Tom Tromey  <tromey@redhat.com>
116
117         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
118         * symtab.c (iterate_over_some_symtabs): Constify.
119         * source.h (symtab_to_fullname): Return 'const char *'.
120         * source.c (symtab_to_fullname): Return 'const char *'.
121         * python/py-symtab.c (stpy_fullname): Constify.
122         * cli/cli-cmds.c (edit_command): Constify.
123         * breakpoint.c (print_breakpoint_location)
124         (update_static_tracepoint): Constify.
125
126 2012-10-18  Tom Tromey  <tromey@redhat.com>
127
128         * breakpoint.c (compare_breakpoints): Fix comparison.
129
130 2012-10-18  Tom Tromey  <tromey@redhat.com>
131
132         * valprint.c (generic_emit_char, generic_printstr): Pass size of
133         gdb_wchar_t to convert_between_encodings.
134
135 2012-10-17  Yao Qi  <yao@codesourcery.com>
136
137         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
138         more parameter 'inferior'.
139         * corefile.c (write_memory_with_notification): Caller update.
140
141         * mi/mi-cmd-var.c: Include "mi-main.h".
142         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
143         to 1 and restore it later.
144         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
145         and "data-write-memory-bytes.
146         * mi/mi-interp.c: Include objfiles.h.
147         (mi_interpreter_init): Call observer_attach_memory_changed.
148         (mi_memory_changed): New.
149         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
150         New field.
151
152         * NEWS: Mention new MI notification "memory-changed".
153
154 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
155
156         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
157
158 2012-10-15  Doug Evans  <dje@google.com>
159
160         New option -nh: inhibit loading of ~/.gdbinit.
161         * NEWS: Mention -nh.
162         * main.c (captured_main): Recognize and process -nh.
163         (print_gdb_help): Mention -nh.
164         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
165
166 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
167
168         PR backtrace/14646
169         PR gdb/14647
170         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
171         pc_regnum_from_eax.
172         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
173         nor pc_regnum_from_eax.
174         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
175         nor pc_regnum_from_eax.
176
177 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
178
179         Fix entry values resolving in inlined frames.
180         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
181         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
182         entries of FRAME.
183
184 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
185
186         * configure.ac: Build with -DMS_WIN64 if building with Python
187         enabled using GCC on amd64-windows.
188         * configure: Regenerate.
189
190 2012-10-15  Tom Tromey  <tromey@redhat.com>
191
192         PR python/14635:
193         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
194         to Py_None.
195
196 2012-10-15  Tom Tromey  <tromey@redhat.com>
197
198         PR python/14634:
199         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
200
201 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
202
203         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
204         reset thread numbering back to 1.
205
206 2012-10-11  Doug Evans  <dje@google.com>
207
208         PR breakpoints/14643.
209         * linespec.c (struct ls_parser): New member keyword_ok.
210         (linespec_lexer_lex_string): Add comment.
211         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
212         for one.
213         (parse_linespec): Set keyword_ok.
214
215 2012-10-10  Doug Evans  <dje@google.com>
216
217         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
218         "0x" prefix on address in log message.
219
220         * dwarf2read.c (read_1_byte): Add const to buf parameter.
221         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
222         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
223         (lookup_dwo_file): Add const to dwo_name parameter.
224         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
225
226 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
227
228         Fix crash during stepping on ppc32.
229         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
230         SYM.
231
232 2012-10-03  Doug Evans  <dje@google.com>
233
234         PR symtab/14601
235         * buildsym.c (buildsym_init): Reset using_directives to NULL.
236
237 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
238
239         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
240         output and use uint32_t not long to ensure 4 byte size.
241
242 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
243
244         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
245         unref'ed it.
246
247 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
248
249         * target.c (simple_search_memory): Include access length in
250         warning message.
251
252 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
253             Edjunior Machado  <emachado@linux.vnet.ibm.com>
254
255         PR gdb/13989
256         * solib.c (solib_find): Prevent GDB from loading native libraries when
257         debugging a cross-target corefile.
258
259 2012-09-28  selven  <pcthegreat@gmail.com>
260
261         Make definition match declaration.
262
263         * regcache.c (regcache_register_status): Change return type to
264         enum register_status.
265
266 2012-09-28  Yao Qi  <yao@codesourcery.com>
267
268         * mi/mi-main.c (mi_cmd_data_write_memory): Call
269         write_memory_with_notification instead of write_memory.
270         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
271         instead of target_write_memory.
272
273 2012-09-28  Yao Qi  <yao@codesourcery.com>
274
275         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
276         when the length of content is not an even number.
277
278 2012-09-27  Tom Tromey  <tromey@redhat.com>
279
280         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
281         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
282
283 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
284
285         * sol-thread.c (sol_thread_fetch_registers)
286         (sol_thread_store_registers): Delete commented out code.
287
288 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
289
290         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
291         Move these functions to sparc-sol-thread.c.
292         * sparc-sol-thread.c: New file.
293         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
294         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
295         configurations.
296         * configure: Regenerate.
297
298 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
299
300         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
301         Remove commented-out code.
302
303 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
304
305         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
306         Enable this code for sparc hosts only.
307
308 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
309
310         * procfs.h (procfs_find_LDT_entry): Add declaration.
311         * sol-thread.c (ps_lgetLDT): Delete local declaration of
312         function procfs_find_LDT_entry.
313
314 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
315
316         * procfs.c (proc_get_LDT_entry): Make static.
317
318 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
319
320         * procfs.c (proc_find_memory_regions): Fix declaration.
321
322 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
323
324         * amd64-tdep.c (amd64_return_value): Revert previous change
325         that used TYPE_LENGTH directly.
326         * bfin-tdep.c (bfin_extract_return_value): Likewise.
327         (bfin_store_return_value): Likewise.
328         * cris-tdep.c (cris_store_return_value): Likewise.
329         (cris_extract_return_value): Likewise.
330         * h8300-tdep.c (h8300_extract_return_value): Likewise.
331         * hppa-tdep.c (hppa64_return_value): Likewise.
332         * lm32-tdep.c (lm32_store_return_value): Likewise.
333         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
334         * spu-tdep.c (spu_value_from_register): Likewise.
335         * vax-tdep.c (vax_return_value): Likewise.
336
337 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
338
339         * gdbtypes.c (lookup_array_range_type): Expand parameters
340         LOW_BOUND and HIGH_BOUND to LONGEST.
341         (lookup_string_range_type): Likewise.
342         * gdbtypes.h (lookup_array_range_type): Likewise.
343         (lookup_string_range_type): Likewise.
344         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
345         Expand HIGHBOUND to ssize_t.
346         (value_string): Likewise.
347         * value.h (value_cstring): Expand parameter LEN to ssize_t.
348         (value_string): Likewise.
349
350 2012-09-27  Yao Qi  <yao@codesourcery.com>
351
352         PR breakpoints/13898
353         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
354         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
355         per breakpoint type.
356
357 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
358
359         * procfs.c: Add gdb_bfd header.
360         * rs6000-nat.c: Likewise.
361         * solib-pa64.c: Likewise.
362         * spu-linux-nat.c: Likewise.
363         * windows-nat.c: Likewise.
364
365 2012-09-26  Tom Tromey  <tromey@redhat.com>
366
367         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
368
369 2012-09-26  Tom Tromey  <tromey@redhat.com>
370
371         * dwarf2read.c (mark_common_block_symbol_computed): New function.
372         (read_common_block): Handle child DIEs with
373         DW_AT_data_member_location.
374         (new_symbol_full): Add special case for common blocks.
375
376 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
377             Tom Tromey  <tromey@redhat.com>
378
379         * dwarf2read.c (read_common_block): Rewrite.
380         (new_symbol_full): Handle DW_TAG_common_block.
381         * f-lang.c (head_common_list, find_common_for_function):
382         Remove.
383         * f-lang.h (struct common_entry, struct saved_f77_common,
384         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
385         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
386         BLANK_COMMON_NAME_LOCAL): Remove.
387         (struct common_block): New.
388         * f-valprint.c (list_all_visible_commons): Remove.
389         (info_common_command_for_block): New function.
390         (info_common_command): Use it.
391         * stack.c (iterate_over_block_locals): Special case for
392         COMMON_BLOCK_DOMAIN.
393         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
394         constant.
395         (struct general_symbol_info) <value.common_block>: New field.
396         (SYMBOL_VALUE_COMMON_BLOCK): New define.
397
398 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
399             Tom Tromey  <tromey@redhat.com>
400
401         * f-lang.c (allocate_saved_bf_node,
402         allocate_saved_function_node, allocate_saved_f77_common_node,
403         allocate_common_entry_node, tail_common_list, current_common,
404         saved_bf_list, saved_bf_list_end, current_head_bf_list,
405         tmp_bf_ptr, add_common_block, add_common_entry,
406         find_first_common_named, patch_common_entries,
407         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
408         global_remote_debug, get_bf_for_fcn, saved_function_list,
409         saved_function_list_end, clear_function_list, struct saved_fcn,
410         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
411         SAVED_BF, SAVED_BF_PTR): Remove.
412         * f-lang.h (tail_common_list, current_common,
413         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
414         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
415         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
416         real_main_c_value): Remove.
417         * f-valprint.c (there_is_a_visible_common_named): Remove.
418
419 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
420
421         * breakpoint.c (update_global_location_list): Ignore previous
422         duplicate status of a breakpoint when starting a new scan for
423         duplicate breakpoints.
424
425 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
426         PR breakpoints/14419
427         * arm-tdep.c (arm_skip_prologue): Extending producer check to
428         support LLVM compiler.
429
430 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
431
432         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
433         * bfin-tdep.c (bfin_extract_return_value): Likewise.
434         (bfin_store_return_value): Likewise.
435         * cris-tdep.c (cris_store_return_value): Likewise.
436         (cris_extract_return_value): Likewise.
437         * h8300-tdep.c (h8300_extract_return_value): Likewise.
438         * hppa-tdep.c (hppa64_return_value): Likewise.
439         * lm32-tdep.c (lm32_store_return_value): Likewise.
440         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
441         * spu-tdep.c (spu_value_from_register): Likewise.
442         * vax-tdep.c (vax_return_value): Likewise.
443
444 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
445
446         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
447         parameter LEN to ssize_t.
448
449 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
450
451         * ada-valprint.c (ada_val_print_1): Eliminate single-use
452         variable LEN.
453         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
454         directly.
455         (alpha_store_return_value): Likewise.
456         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
457         (amd64_push_arguments): Likewise.
458         * ax-gdb.c (gen_trace_static_fields): Likewise.
459         (gen_traced_pop): Likewise.
460         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
461         * breakpoint.c (update_watchpoint): Likewise.
462         * findcmd.c (parse_find_args): Use local variable for type
463         instead of length.
464         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
465         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
466         (h8300_store_return_value): Likewise.
467         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
468         Use i386_darwin_arg_type_alignment directly.
469         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
470         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
471         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
472         (m68hc11_extract_return_value): Likewise.
473         * mep-tdep.c (mep_push_dummy_call): Likewise.
474         * printcmd.c (float_type_from_length): Likewise.
475         * s390-tdep.c (s390_value_from_register): Likewise.
476         * stack.c (read_frame_arg): Likewise.
477         * tracepoint.c (encode_actions_1): Likewise.
478         * valops.c (value_fetch_lazy): Use local variable for type
479         instead of length.  Use TYPE_LENGTH directly.
480         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
481
482 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
483
484         * symtab.c (skip_prologue_sal): Fix typo in comment.
485
486 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
487
488         * linespec.c (create_sals_line_offset): Fix typo in comment.
489
490 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
491
492         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
493         use plongest to print the array size.
494
495 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
496
497         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
498         * p-valprint.c (pascal_type_print_base): Likewise.
499
500 2012-09-22  Yao Qi  <yao@codesourcery.com>
501
502         * remote.c (remote_get_trace_status): Remove setting default
503         values of fields of 'ts'.
504
505 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
506
507         Fix internal error on canonicalization of clang types.
508         * cp-name-parser.y (operator): New comment at make_operator call for
509         new, delete, new[] and delete[].
510         (exp): Use "sizeof ".  Add new comment at make_operator call.
511
512 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
513
514         Fix disassemble without parameters in tailcall frame.
515         * cli/cli-cmds.c (disassemble_current_function): Use
516         get_frame_address_in_block.
517
518 2012-09-21  Tom Tromey  <tromey@redhat.com>
519
520         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
521         TYPE_CODE_UNION>: Unify, removing a goto.
522
523 2012-09-21  Tom Tromey  <tromey@redhat.com>
524
525         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
526
527 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
528
529         * findvar.c (read_frame_register_value): Mark the result value as
530         optimized out if any of the input registers have been optimized out.
531
532 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
533
534         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
535
536 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
537
538         * eval.c (evaluate_subexp_standard): Eliminate single-use
539         variable LOWER.
540
541 2012-09-21  Yao Qi  <yao@codesourcery.com>
542
543         * mi/mi-interp.c: Declare mi_record_changed.
544         (mi_interpreter_init): Call observer_attach_record_changed.
545         (mi_record_changed): New.
546         * record.c (record_open): Call observer_notify_record_changed.
547         (cmd_record_stop): Call observer_notify_record_changed.
548         * NEWS: Mention it.
549
550 2012-09-20  Tom Tromey  <tromey@redhat.com>
551
552         * NEWS: Update.
553         * python/python.c (finalize_python): New function.
554         (_initialize_python): Make a final cleanup.
555
556 2012-09-19  Doug Evans  <dje@google.com>
557
558         * buildsym.h (param_symbols): Delete, unused.
559         (context_stack): Delete member "params", unused.
560         * buildsym.c (push_context): Update.
561         * dwarf2read.c (read_func_scope): Update.
562
563 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
564
565         * sh-tdep.c (sh_register_convert_to_virtual)
566         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
567         all callers.  Just do a memcpy if not the little-endian case.
568
569         * h8300-tdep.c (h8300_gdbarch_init): Invoke
570         set_gdbarch_double_format and set_gdbarch_long_double_format.
571         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
572         set_gdbarch_double_format.
573         * sh-tdep.c (sh_gdbarch_init): Likewise.
574
575         * NEWS: Document the removal of SH's 'regs' command.
576         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
577         command.
578
579 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
580
581         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
582         `jump'.
583
584 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
585
586         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
587         language when iterating over symbols.
588
589 2012-09-18  Yao Qi  <yao@codesourcery.com>
590
591         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
592         (mi_interpreter_init): Call observer_attach_tsv_created and
593         observer_attach_tsv_deleted.
594         (mi_tsv_created, mi_tsv_deleted): New.
595         * tracepoint.c (delete_trace_state_variable): Call
596         observer_notify_tsv_deleted.
597         (trace_variable_command): Call observer_notify_tsv_created.
598         (delete_trace_variable_command): Call
599         observer_notify_tsv_deleted.
600         (create_tsv_from_upload): Call observer_notify_tsv_created.
601         * NEWS: Mention it.
602
603 2012-09-18  Yao Qi  <yao@codesourcery.com>
604
605         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
606         if traceframe changed.
607         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
608         "trace-find".
609         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
610         (mi_interpreter_init): Hook mi_traceframe_changed to observer
611         'traceframe_changed'.
612         (mi_traceframe_changed): New.
613         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
614         New field.
615         * NEWS: Mention the new MI notification.
616
617 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
618
619         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
620
621 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
622
623         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
624         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
625         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
626         Extend code also for PaX support.  Convert all gdb_assert to warning
627         calls.
628
629 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
630
631         Implement auto-load user conveniences suggested by Doug Evans.
632         * auto-load.c: Include top.h.
633         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
634         (_initialize_auto_load): New variable scripts_directory_help.  Mention
635         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
636         scripts-directory.  Document in online help one can use also files for
637         set auto-load safe-path.
638         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
639         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
640
641 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
642
643         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
644         of LEN.
645
646 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
647
648         * m2-valprint.c (m2_print_array_contents): Eliminate variable
649         ELTLEN and use TYPE_LENGTH directly.
650         (m2_val_print): Likewise.
651         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
652         variable LEN and use TYPE_LENGTH directly.
653         (m68k_svr4_store_return_value): Likewise.
654         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
655         ARGLEN and use TYPE_LENGTH directly.
656         (mips_o64_push_dummy_call): Likewise.
657         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
658         variable LENGTH and use TYPE_LENGTH directly.
659         (s390_function_arg_float): Likewise.
660         (s390_function_arg_integer): Likewise.
661         (s390_push_dummy_call): Likewise.
662         (s390_return_value_convention): Likewise.
663         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
664         TYPE_LENGTH directly.
665
666 2012-09-17  Yao Qi  <yao@codesourcery.com>
667
668         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
669         Update comment to add_setshow_integer_cmd.
670         * cli/cli-setshow.c (do_set_command): Handle case
671         'var_zuinteger_unlimited'.
672         (do_show_command): Likewise.
673         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
674         for command 'remotetimeout'.
675         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
676         to var_integer.
677         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
678         for command 'set listsize'.
679
680 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
681
682         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
683         variable LEN.
684
685 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
686
687         PR 14119
688         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
689         (frame_pop): Drop also TAILCALL_FRAME frames.
690         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
691
692 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
693             Pedro Alves  <palves@redhat.com>
694
695         PR 14548
696         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
697         function start if we are already at function start.  Both for
698         reverse-next and for reverse-step into function without line number
699         info.
700
701 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
702
703         Code cleanup - rename 'inline' depth to 'artificial' depth.
704         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
705         frame_id_artificial_p, extend the comment.
706         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
707         * frame.c (fprint_frame_id): Rename at a user, change debug output
708         text to "artificial=".
709         (skip_inlined_frames): Rename to ...
710         (skip_artificial_frames): ... here.  Extend the comment.
711         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
712         (frame_id_inlined_p): Rename to ...
713         (frame_id_artificial_p): ... here.  Rename at a user.
714         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
715         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
716         at a user.
717         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
718         Extend the comment.
719         (frame_id_inlined_p): Rename to ...
720         (frame_id_artificial_p): ... here.
721         * inline-frame.c (inline_frame_this_id): Rename at a user.
722
723 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
724
725         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
726         vector variables using vector_size syntax rather than array
727         syntax.
728
729 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
730
731         * valarith.c (value_concat): Replace unsafe ALLOCA with
732         XMALLOC/XFREE.
733
734 2012-09-14  Pedro Alves  <palves@redhat.com>
735
736         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
737
738 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
739
740         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
741         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
742         data-directory as appropriate.
743
744 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
745
746         * printcmd.c (ui_printf): Eliminate single-use variable
747         PARAM_LEN.
748
749 2012-09-14  Yao Qi  <yao@codesourcery.com>
750             Pedro Alves  <palves@redhat.com>
751
752         * valops.c (value_assign): Move observer_notify_target_changed
753         below to replace reinit_frame_cache.
754
755 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
756
757         Refactor Python "gdb" module into a proper Python package, by
758         introducing a new "_gdb" module for code implemented in C, and
759         using reload/__import__ instead of exec.
760         * python/lib/gdb/__init__.py: Import * from _gdb.
761         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
762         prompt_hook, sys.argv): Moved from finish_python_initialization.
763         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
764         (packages, auto_load_packages): New list and function replacing
765         module_dict and auto-loading code, using __file__ instead of
766         gdb.PYTHONDIR and reload/__import__ instead of exec.
767         (GdbSetPythonDirectory): Replacing function of the same name
768         from finish_python_initialization, using reload/__import__ instead
769         of exec, as well as call auto_load_packages.
770         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
771         gdb_python_module and not gdb_module.
772         * python/python-internal.h (gdb_python_module): Declare.
773         * python/python.c (gdb_python_module): New global.
774         (before_prompt_hook): Check gdb_python_module and not gdb_module.
775         (_initialize_python): Rename gdb module to _gdb.
776         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
777         (finish_python_initialization): Move Python code to
778         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
779         __main__.
780
781 2012-09-13  Pedro Alves  <palves@redhat.com>
782
783         * Makefile.in (COMMON_OBS): Add registry.o.
784         * registry.c: New file.
785         * registry.h (struct registry_container): Declare.
786         (registry_data_callback): New typedef.
787         (struct registry_data, struct registry_data_registration, struct
788         registry_data_registry): New type.
789         (register_data_with_cleanup, registry_alloc_data)
790         (registry_callback_adaptor, registry_clear_data)
791         (registry_container_free_data, registry_set_data, registry_data):
792         Declare.
793         (DEFINE_REGISTRY): Refactor structures and functions as shims over
794         the new common structures and functions.
795         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
796         callback typedefs.
797
798 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
799
800         * remote.c (remote_insert_hw_breakpoint): Throw exception if
801         there is an error inserting hardware breakpoints and use the
802         error message from the target.
803
804         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
805         Catch this exception and print the error message contained within. Do not
806         print the default hardware error breakpoint message in this case.
807
808 2012-09-12  Doug Evans  <dje@google.com>
809
810         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
811         cu == NULL.
812
813 2012-09-11  Doug Evans  <dje@google.com>
814
815         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
816         .gdb_index symbol attributes if there are none.
817
818 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
819
820         * symtab.h (struct minimal_symbol) [has_size]: New field.
821         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
822         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
823         * printcmd.c (build_address_symbolic): Only filter out zero-sized
824         minimal symbols if the symbol's size is actually known.
825         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
826         of msymbol's size field.  Add comment.
827         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
828         SET_MSYMBOL_SIZE to set the minimal symbol size.
829
830 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
831
832         * minsyms.c (install_minimal_symbols): Use memset to fill entire
833         minimal_symbol struct object, rather than setting some of its
834         fields one by one.
835
836 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
837
838         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
839         passed_a_ptr flag when displaying typedef types.
840
841 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
842
843         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
844         the optimized_out flag is preserved.
845
846 2012-09-10  Anthony Green  <green@moxielogic.com>
847
848         * moxie-tdep.c (moxie_analyze_prologue): Update for function
849         prologue changes in GCC.
850
851 2012-09-10  Keith Seitz  <keiths@redhat.com>
852
853         PR gdb/13483
854         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
855         (BOOL_CONVERSION_BADNESS): ... this.
856         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
857         (rank_one_type): Allow all boolean conversions
858         permitted by the standard.
859
860 2012-09-06  Tom Tromey  <tromey@redhat.com>
861
862         * python/py-newobjfileevent.c (create_new_objfile_event_object):
863         Don't decref py_objfile.
864
865 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
866
867         Do not enable -lmcheck by default when Python is enabled with
868         threading support.
869         * configure.ac: (python_has_threads) New variable, by testing
870         if WITH_THREAD is defined in Python.h.
871         Move --enable-lmcheck after --with-python.
872         Do not enable -lmcheck by default if python_has_threads=yes.
873         Warn if --enable-lmcheck and python_has_threads=yes.
874         * configure: Regenerate.
875
876 2012-08-31  Yao Qi  <yao@codesourcery.com>
877
878         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
879         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
880         Update some commands.
881         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
882         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
883         to 1.
884
885 2012-08-31  Yao Qi  <yao@codesourcery.com>
886
887         * mi/mi-cmds.c (mi_cmds): Add 'static'.
888
889 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
890
891         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
892
893 2012-08-29  Doug Evans  <dje@google.com>
894
895         * main.c (print_gdb_help): Remove reference to
896         --use-deprecated-index-sections.
897
898 2012-08-28  Yao Qi  <yao@codesourcery.com>
899
900         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
901         (init_cmds): Call add_setshow_uinteger_cmd for command
902         'max-user-call-depth'.
903         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
904         declaration of 'max_user_call_depth'.
905         * frame.c (backtrace_limit): Add 'unsigned'.
906         (_initialize_frame): Call add_setshow_uinteger_cmd for command
907         'limit'.
908         * remote.c (remoteaddresssize): Add 'unsigned'.
909         (remote_address_masked): Change local var 'address_size' to
910         'unsigned'.
911         (_initialize_remote): Call add_setshow_uinteger_cmd for
912         'remoteaddresssize'.
913         * top.c (history_size): Add 'unsigned'.
914         (show_commands): Change local variables to 'unsigned'.
915         (set_history_size_command): Don't check history_size is negative.
916         Adjust the condition to call unstifle_history and set history_size
917         to UNIT_MAX.
918
919 2012-08-28  Pedro Alves  <palves@redhat.com>
920
921         PR gdb/14428
922
923         * infcmd.c (default_print_one_register_info): New, factored out
924         from default_print_registers_info.
925         (default_print_registers_info): Use it.  Mark value unavailable if
926         necessary.
927         (registers_info): Print user registers with
928         default_print_one_register_info.
929
930 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
931
932         PR tui/14486
933         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
934         is not NULL before referencing it.
935
936 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
937
938         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
939         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
940         original PC for it.
941
942 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
943             Jan Kratochvil  <jan.kratochvil@redhat.com>
944
945         * auto-load.c (auto_load_objfile_script): Rename to ...
946         (auto_load_objfile_script_1): ... here, change variable realname to
947         parameter realname, document it, add return value, add variable retval.
948         (auto_load_objfile_script): New function.
949
950 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
951
952         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
953         followed by a whitespace.
954
955 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
956
957         PR gdb/14494.
958         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
959         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
960         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
961         here.
962
963 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
964
965         * memattr.c (create_mem_region): Fix memory region overlapping
966         checking.
967
968 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
969
970         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
971         with xmalloc/cleanup.
972         * mt-tdep.c (mt_push_dummy_call): Likewise.
973         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
974         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
975
976 2012-08-24  Yao Qi  <yao@codesourcery.com>
977
978         * jv-exp.y (push_expression_name): Add "." at the end of error
979         message.
980
981 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
982
983         Document how to return from "python-interactive" to GDB.
984         * python/python.c (_initialize_python): Update documentation.
985
986 2012-08-23  Pedro Alves  <palves@redhat.com>
987
988         * infrun.c (_initialize_infrun) <handle command help text>:
989         Mention that multiple signals are supported.
990
991 2012-08-23  Pedro Alves  <palves@redhat.com>
992
993         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
994         string.
995
996 2012-08-23  Yao Qi  <yao@codesourcery.com>
997
998         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
999         (tfind_1): Don't call registers_changed, set_traceframe_num,
1000         and clear_traceframe_info.
1001         Call set_current_traceframe.
1002         (set_current_traceframe): call set_traceframe_num.
1003
1004 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1005
1006         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1007         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1008
1009 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1010
1011         Enable readline in Python in a GDB-specific way and block the
1012         standard Python readline module to prevent conflicts with GDB.
1013         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1014         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1015         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1016         * python/py-gdb-readline.c: New file.
1017         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1018         prototype.
1019         * python/python.c (_initialize_python): Call
1020         gdbpy_initialize_gdb_readline.
1021
1022 2012-08-22  Keith Seitz  <keiths@redhat.com>
1023
1024         * defs.h: Include build-gnulib/config.h
1025
1026 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1027
1028         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1029         and blx pc.
1030
1031 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1032
1033         Add a new "python-interactive" command that starts a standard
1034         Python interactive prompt with "pi" as alias, and add "py" as
1035         an alias to "python".
1036         * NEWS: Mention the new commands.
1037         * python/python.c (eval_python_command): New function.
1038         (python_interactive_command): For "python-interactive" with
1039         arguments, call eval_python_command.  For "python-interactive"
1040         without arguments, call PyRun_InteractiveLoop.
1041         (_initialize_python): Add "python-interactive" command with
1042         "pi" as alias, and add "py" as an alias to "python".
1043
1044 2012-08-22  Tom Tromey  <tromey@redhat.com>
1045
1046         * defs.h (quit_flag): Don't declare.
1047         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1048         (QUIT): Use new functions.
1049         * event-top.c (command_handler): Use clear_quit_flag.
1050         (handle_sigint): Use set_quit_flag.
1051         (async_request_quit): Use check_quit_flag.  Don't check
1052         immediate_quit.
1053         * exceptions.c (throw_exception): Use clear_quit_flag.
1054         * main.c (captured_main): Use clear_quit_flag.
1055         * python/python.c (clear_quit_flag, set_quit_flag)
1056         (check_quit_flag): New functions.
1057         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1058         clear_quit_flag.
1059         * remote.c (remote_wait_as): Use check_quit_flag,
1060         clear_quit_flag.
1061         (remote_start_remote): Call QUIT.
1062         * symfile.c (load_progress): Use check_quit_flag.
1063         * top.c (command_loop): Use clear_quit_flag.
1064         (command_line_input): Call QUIT.
1065         * utils.c (quit_flag): Conditionally define.
1066         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1067         functions.
1068         (prompt_for_continue): Call QUIT.  Use quit, not
1069         async_request_quit.
1070         * remote-mips.c (mips_expect_timeout): Call QUIT.
1071         * monitor.c (monitor_expect): Call QUIT.
1072
1073 2012-08-22  Tom Tromey  <tromey@redhat.com>
1074
1075         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1076         (async_init_signals): Update.
1077         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1078         (SIGWINCH_HANDLER_BODY): Remove.
1079
1080 2012-08-22  Tom Tromey  <tromey@redhat.com>
1081
1082         * jit.c (jit_object_close_impl): Don't malloc the objfile
1083         name.
1084         * objfiles.c (allocate_objfile): Don't malloc the objfile
1085         name.
1086         (free_objfile): Don't free the objfile name.
1087         * objfiles.h (struct objfile) <name>: Update comment.
1088         * symfile.c (reread_symbols): Fix reference counting.  Don't
1089         malloc objfile name.
1090
1091 2012-08-22  Tom Tromey  <tromey@redhat.com>
1092
1093         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1094         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1095         (symfile_bfd_open): Likewise.
1096         (generic_load): Likewise.
1097         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1098         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1099         gdb_bfd_open.
1100         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1101         Use gdb_bfd_open.
1102         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1103         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1104         (pmon_load_fast): Likewise.
1105         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1106         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1107         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1108         (macho_check_dsym): Likewise.
1109         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1110         (m32r_upload_command): Likewise.
1111         * gdb_bfd.h (gdb_bfd_cache): Declare.
1112         * gdb_bfd.c (struct gdb_bfd_data): New.
1113         (gdb_bfd_cache): New global.
1114         (struct gdb_bfd_cache_search): New.
1115         (hash_bfd): New function.
1116         (eq_bfd): Likewise.
1117         (gdb_bfd_open): Likewise.
1118         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1119         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1120         gdb_bfd_data.
1121         * exec.c (exec_file_attach): Use gdb_bfd_open.
1122         * dsrec.c (load_srec): Use gdb_bfd_open.
1123
1124 2012-08-22  Tom Tromey  <tromey@redhat.com>
1125
1126         * dwarf2read.c (macro_start_file): Update.
1127         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1128         (free_objfile_per_bfd_storage): Destroy macro_cache.
1129         (allocate_objfile, free_objfile): Update.
1130         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1131         New field.
1132         (struct objfile) <macro_cache>: Remove.
1133         * symfile.c (reread_symbols): Update.
1134         * symmisc.c (print_symbol_bcache_statistics): Update.
1135         (print_objfile_statistics): Update.
1136
1137 2012-08-22  Tom Tromey  <tromey@redhat.com>
1138
1139         * elfread.c (elf_symtab_read): Update.
1140         * objfiles.c (objfiles_bfd_data): New global.
1141         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1142         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1143         (allocate_objfile, free_objfile): Update.
1144         (_initialize_objfiles): Initialize objfiles_bfd_data.
1145         * objfiles.h (struct objfile_per_bfd_storage): New.
1146         (struct objfile) <per_bfd>: New field.
1147         <filename_cache>: Remove.
1148         (set_objfile_per_bfd): Declare.
1149         * symfile.c (reread_symbols): Update.  Call
1150         set_objfile_per_bfd.
1151         (allocate_symtab): Update.
1152         * symmisc.c (print_symbol_bcache_statistics): Update.
1153         (print_objfile_statistics): Print the size of the BFD obstack.
1154
1155 2012-08-22  Tom Tromey  <tromey@redhat.com>
1156
1157         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1158         * gdb_bfd.c: Use DEFINE_REGISTRY.
1159         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1160         (gdb_bfd_ref): Call bfd_alloc_data.
1161         (gdb_bfd_unref): Call bfd_free_data.
1162
1163 2012-08-22  Tom Tromey  <tromey@redhat.com>
1164
1165         * registry.h (struct registry_fields): New.
1166         (REGISTRY_FIELDS): Redefine.
1167         (REGISTRY_ACCESS_FIELD): New macro.
1168         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1169         functions.
1170
1171 2012-08-22  Tom Tromey  <tromey@redhat.com>
1172
1173         * auto-load.c (_initialize_auto_load): Update.
1174         * solib-svr4.c (_initialize_svr4_solib): Update
1175         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1176         * solib-darwin.c (_initialize_darwin_solib): Update.
1177         * registry.h: New file.
1178         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1179         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1180         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1181         (register_program_space_data_with_cleanup)
1182         (register_program_space_data, program_space_alloc_data)
1183         (clear_program_space_data, set_program_space_data)
1184         (program_space_data): Don't declare.
1185         * progspace.c: Use DEFINE_REGISTRY.
1186         (struct program_space_data, struct
1187         program_space_data_registration, struct
1188         program_space_data_registry, program_space_data_registry)
1189         (register_program_space_data_with_cleanup)
1190         (register_program_space_data, program_space_alloc_data)
1191         (program_space_free_data, clear_program_space_data)
1192         (set_program_space_data, program_space_data): Remove.
1193         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1194         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1195         (register_objfile_data_with_cleanup, register_objfile_data)
1196         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1197         declare.
1198         * objfiles.c: Use DEFINE_REGISTRY.
1199         (struct objfile_data, struct objfile_data_registration, struct
1200         objfile_data_registry, objfile_data_registry)
1201         (register_objfile_data_with_cleanup, register_objfile_data)
1202         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1203         (set_objfile_data, objfile_data): Remove.
1204         (_initialize_objfiles): Update.
1205         * jit.c (_initialize_jit): Update.
1206         * inflow.c (_initialize_inflow): Update.
1207         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1208         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1209         (register_inferior_data_with_cleanup, register_inferior_data)
1210         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1211         declare.
1212         * inferior.c: Use DEFINE_REGISTRY.
1213         (struct inferior_data, struct inferior_data_registration, struct
1214         inferior_data_registry, inferior_data_registry)
1215         (register_inferior_data_with_cleanup, register_inferior_data)
1216         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1217         (set_inferior_data, inferior_data): Remove.
1218         * auxv.c (_initialize_auxv): Update.
1219         * ada-lang.c (_initialize_ada_language): Update.
1220         * breakpoint.c (_initialize_breakpoint): Update.
1221         * i386-nat.c (i386_use_watchpoints): Update.
1222
1223 2012-08-22  Tom Tromey  <tromey@redhat.com>
1224
1225         * exec.c (exec_close, exec_file_attach): Update.
1226         (add_to_section_table): Initialize 'key' field.
1227         (add_target_sections, remove_target_sections): Add 'key' argument.
1228         * exec.h (add_target_sections, remove_target_sections): Add
1229         'key' argument.
1230         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1231         (reload_shared_libraries_1): Update.
1232         * target.h (struct target_section) <key>: New field.
1233
1234 2012-08-22  Tom Tromey  <tromey@redhat.com>
1235
1236         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1237
1238 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1239
1240         * symfile.c (allocate_symtab): Use host_address_to_string
1241         function instead of cast of pointer to long which is not
1242         compatible with x86_64-w64-mingw32 build.
1243
1244 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1245
1246         * mips-tdep.c (is_octeon): New function.
1247         (is_octeon_bbit_op): New function.
1248         (mips32_next_pc): Handle Octeon's bbit instructions.
1249         (mips32_instruction_has_delay_slot): Likewise.
1250
1251 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1252
1253         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1254         before the function.
1255
1256 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1257
1258         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1259
1260 2012-08-19  Keith Seitz  <keiths@redhat.com>
1261
1262         PR c++/14365
1263         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1264         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1265
1266 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1267
1268         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1269         The typo broke "make TAGS".
1270
1271 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1272
1273         GDB 7.5 released.
1274
1275 2012-08-17  Keith Seitz  <keiths@redhat.com>
1276
1277         PR c++/13356
1278         * gdbtypes.c (strict_type_checking): New variable.
1279         (show_strict_type_checking): New function.
1280         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1281         if strict type checking is disabled.
1282         (_initialize_gdbtypes): Add "check type" subcommand.
1283         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1284
1285 2012-08-17  Keith Seitz  <keiths@redhat.com>
1286
1287         * language.h (type_mode): Remove.
1288         (type_check): Remove.
1289         (struct language_defn): Remove la_type_check.
1290         (STRICT_TYPE): Remove unused macro.
1291         (type_error): Remove.
1292         * language.c (set_type_range_case): Renamed to ...
1293         (set_range_case): ... this.  Update all callers.
1294         Remove type_mode/type_check.
1295         (type_mode): Remove.
1296         (type_check): Remove.
1297         (show_type_command): Remove.
1298         (set_type_command): Remove.
1299         (language_info): Remove type checking output.
1300         (type_error): Remove unused function.
1301         (range_error): Update comment.
1302         (unknown_language_defn): Remove la_type_check.
1303         (auto_language_defn): Likewise.
1304         (local_language_defn): Likewise.
1305         (_initialize_language): Remove "check type" subcommand.
1306         * ada-lang.c (ada_language_defn): Remove la_type_check.
1307         * c-lang.c (c_language_defn): Likewise.
1308         (cplus_language_defn): Likewise.
1309         (asm_language_defn): Likewise.
1310         (minimal_language_defn): Likewise.
1311         * d-lang.c (d_language_defn): Likewise.
1312         * f-lang.c (f_language_defn): Likewise.
1313         * go-lang.c (go_language_defn): Likewise.
1314         * jv-lang.c (java_language_defn): Likewise.
1315         * m2-lang.c (m2_language_defn): Likewise.
1316         * objc-lang.c (objc_language_defn): Likewise.
1317         * opencl-lang.c (opencl_language_defn): Likewise.
1318         * p-lang.c (pascal_language_defn): Likewise.
1319
1320 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1321
1322         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1323
1324 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1325
1326         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1327         New function.
1328         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1329         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1330         to access the bsp and bspstore registers if not.
1331
1332 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1333
1334         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1335         * breakpoint.c (detach_breakpoints): Change pid parameter into
1336         a ptid.  Adjust code accordingly.
1337         * infrun.c (handle_inferior_event): Delete variable child_pid.
1338         Update call to detach_breakpoints to pass the child ptid for
1339         fork events.
1340         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1341         assert that inferior_ptid's lwp is zero.
1342         (linux_handle_extended_wait): Update call to detach_breakpoints.
1343         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1344         detach_breakpoints.
1345
1346 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1347
1348         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1349         parent, only call detach_breakpoints if tts.tts_event ==
1350         TTEVT_VFORK.
1351
1352 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1353
1354         * dwarf2-frame.c (dwarf2_frame_cache): Use
1355         get_frame_address_in_block instead of get_frame_pc as
1356         the bound for executing the frame's FDE.
1357
1358 2012-08-16  Yao Qi  <yao@codesourcery.com>
1359
1360         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1361         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1362         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1363         (c_type_print_varspec_suffix): Likewise.
1364         * eval.c (evaluate_subexp_standard): Likewise.
1365         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1366         (f_type_print_varspec_suffix): Likewise.
1367         * gdbtypes.c (is_scalar_type): Likewise.
1368         (recursive_dump_type): Likewise.
1369         * infcall.c (value_arg_coerce): Likewise.
1370         * m2-valprint.c (m2_val_print): Likewise.
1371         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1372         (pascal_type_print_varspec_suffix): Likewise.
1373         (pascal_type_print_base): Likewise.
1374         * p-valprint.c (pascal_val_print): Likewise.
1375         (pascal_val_print): Likewise.
1376         * valops.c (value_slice): Likewise.
1377         * valprint.c (scalar_type_p): Likewise.
1378         * valarith.c (value_bitstring_subscript): Remove.
1379         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1380         Remove comment on TYPE_CODE_BITSTRING.
1381
1382         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1383         TYPE_CODE_BITSTRING.
1384
1385         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1386         slot 0.
1387
1388 2012-08-16  Yao Qi  <yao@codesourcery.com>
1389
1390         * tracepoint.c (trace_find_none_command): Remove.
1391         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1392
1393 2012-08-16  Yao Qi  <yao@codesourcery.com>
1394
1395         * remote.c (handle_notification): Remove parameter 'length'.
1396         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1397
1398 2012-08-15  Keith Seitz  <keiths@redhat.com>
1399
1400         * gdbtypes.c (opaque_type_resolution): Make static.
1401         Add missing comment.
1402         (overload_debug): Add missing comment.
1403         (show_opaque_type_resolution): Likewise.
1404         (show_overload_debug): Likewise.
1405         (print_bit_vector): Remove unnecessary forward declaration.
1406         (print_arg_types): Likewise.
1407         (dump_fn_fieldlists): Likewise.
1408         (print_cplus_stuff): Likewise.
1409
1410 2012-08-15  Tom Tromey  <tromey@redhat.com>
1411
1412         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1413         (gdb_bfd_ref): Initialize new field.
1414         (gdb_bfd_unref): Unref the archive BFD.
1415         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1416         parent archive.
1417
1418 2012-08-15  Tom Tromey  <tromey@redhat.com>
1419
1420         PR python/14387:
1421         * python/py-bpevent.c (create_breakpoint_event_object): Update
1422         comment.
1423         * python/py-event.c (evpy_add_attribute): Update comment.
1424         * python/py-exitedevent.c (create_exited_event_object): Fix
1425         reference counting and error handling.
1426         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1427         Fix reference counting.
1428         * python/py-signalevent.c (create_signal_event_object): Fix
1429         reference counting and error handling.
1430         * python/py-stopevent.c (emit_stop_event): Fix reference
1431         counting.
1432         * python/py-threadevent.c (get_event_thread): Return a
1433         borrowed reference.
1434         * python/py-type.c (convert_field): Fix reference counting.
1435
1436 2012-08-15  Tom Tromey  <tromey@redhat.com>
1437
1438         * dwarf2read.c (dwarf_decode_macro_bytes)
1439         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1440         as hash key.
1441
1442 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1443
1444         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1445         stepi, nexti, finish, next, step, jump, and continue commands.
1446         * infrun.c (_initialize_infrun): Update help text for the handle
1447         command.
1448
1449 2012-08-14  Doug Evans  <dje@google.com>
1450
1451         * gdbtypes.c (struct extra): Delete, unused.
1452
1453         * gdbtypes.c: Whitespace cleanup.
1454         (address_space_name_to_int): Remove "extern" from definition.
1455         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1456
1457         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1458         TYPE_POINTER_TYPE (type).
1459
1460 2012-08-14  Gary Benson  <gbenson@redhat.com>
1461
1462         * solib-svr4.c (svr4_free_library_list): Use free_so.
1463
1464 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1465
1466         * .gitignore: Add go-exp.c.
1467
1468 2012-08-13  Doug Evans  <dje@google.com>
1469
1470         * value.c (show_convenience): Tweak comment.
1471         (_initialize_values): Mention convenience functions in the help text
1472         for "show convenience".
1473
1474 2012-08-13  Yao Qi  <yao@codesourcery.com>
1475
1476         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1477         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1478         TERNOP_SLICE_COUNT.
1479         * eval.c (evaluate_subexp_standard): Likewise.
1480         * expprint.c (print_subexp_standard): Likewise.
1481         (dump_subexp_body_standard): Likewise.
1482         * parse.c (operator_length_standard): Likewise.
1483
1484 2012-08-13  Yao Qi  <yao@codesourcery.com>
1485
1486         * std-operator.def: Remove OP_BITSTRING.
1487         * breakpoint.c (watchpoint_exp_is_const): Update.
1488         * eval.c (evaluate_subexp_standard): Remove handling to
1489         OP_BITSTRING.
1490         * expprint.c (print_subexp_standard): Likewise.
1491         (dump_subexp_body_standard): Likewise.
1492         * parse.c (operator_length_standard): Likewise.
1493         * valops.c (value_bitstring): Remove.
1494         * value.h: Remove the declaration of 'value_bitstring'.
1495
1496 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1497
1498         * linespec.c (find_methods): Remove unused variables `i1' and
1499         `name_len'.
1500         (decode_line_full): Likewise for `arg_start'.
1501
1502 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1503
1504         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1505         (zlib_decompress_section): Likewise for `section_data'.
1506         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1507
1508 2012-08-10  Doug Evans  <dje@google.com>
1509
1510         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1511         * NEWS: Document them.
1512         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1513         function/strfns.py.
1514         * python/py-type.c (typy_array_1): New function.
1515         (typy_array): Call it.
1516         (typy_vector): New function.
1517         (type_object_methods): Add "vector".
1518         * python/lib/gdb/function/__init__.py: New file.
1519         * python/lib/gdb/function/strfns.py: New file.
1520
1521 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1522
1523         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1524         for TYPE_FIELD_BITPOS.
1525         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1526
1527 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1528
1529         PR cli/10436:
1530         * common/vec.h (VEC_merge): Define.
1531         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1532         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1533         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1534         * completer.c: Include gdb_signals.h.
1535         (signal_completer): Define.
1536         * completer.h (signal_completer): Add prototype.
1537         * infcmd.c (_initialize_infcmd): Assign the command
1538         completer for "signal" to handle_completer.
1539         * infrun.c: Include completer.h.
1540         (handle_completer): Define.
1541         (_initialize_infrun): Declare a new local variable c.  Store the
1542         result of add_com("handle") to it.  Assign the command
1543         completer for "handle" to handle_completer.
1544
1545 2012-08-09  Yao Qi  <yao@codesourcery.com>
1546
1547         * cli/cli-decode.c (set_cmd_prefix): New.
1548         (lookup_cmd_for_prefixlist): New.
1549         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1550         of each cmd_list_element in *prefixlist.
1551         (add_setshow_cmd_full): set_cmd_prefix.
1552         (add_alias_cmd): Likewise.
1553         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1554         Declare 'auto_boolean_enums'.
1555         * cli/cli-setshow.c: Include "observer.h".
1556         (notify_command_param_changed_p): New.
1557         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1558         Remove 'static'.
1559         (do_setshow_command): Split it to ...
1560         (do_set_command, do_show_command): ... them.  New.
1561         (do_set_command): Call observer_notify_command_param_changed if
1562         notify_command_param_changed_p returns true.
1563         (cmd_show_list): Caller update.
1564         * auto-load.c (set_auto_load_cmd): Likewise.
1565         * remote.c (show_remote_cmd): Likewise.
1566         * cli/cli-setshow.h: Update declarations.
1567         * top.c (execute_command): Call do_set_command and do_show_command.
1568
1569         * NEWS: Mention new MI notification.
1570         * mi/mi-interp.c: Declare mi_command_param_changed.
1571         (mi_interpreter_init): Attach mi_command_param_changed to
1572         observer command_param_changed.
1573         (mi_command_param_changed): New.
1574         Remove mi_suppress_breakpoint_notifications.
1575         Define global variable mi_suppress_notification.
1576         (mi_breakpoint_created): Update.
1577         (mi_breakpoint_deleted): Likewise.
1578         (mi_breakpoint_modified): Likewise.
1579         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1580         'gdb-set' and set mi_suppress_notification.
1581         * mi/mi-main.h: (mi_suppress_notification): New struct.
1582
1583 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1584             Jan Kratochvil  <jan.kratochvil@redhat.com>
1585
1586         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1587
1588 2012-08-09  Yao Qi  <yao@codesourcery.com>
1589
1590         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1591         (skiplist): Move it to skip.c.
1592         (init_cmd_lists): Remove code setting enablebreaklist and
1593         skiplist to NULL.
1594         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1595         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1596         skiplist.
1597         * gdbcmd.h: Likewise.
1598         * skip.c (_initialize_step_skip): Move 'skiplist' from
1599         cli/cli-cmds.c.
1600
1601 2012-08-09  Yao Qi  <yao@codesourcery.com>
1602
1603         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1604         * gnu-nat.c, symfile.c: Likewise.
1605
1606 2012-08-08  Aaron Gamble  <agamble@google.com>
1607
1608         * utils.c (prompt_for_continue_wait_time): New static global.
1609         (make_command_stats_cleanup): Initialize it.
1610         (report_command_stats): Subtract time waiting for user.
1611         (prompt_for_continue): Track time waiting for user.
1612         (defaulted_query): Track time waiting for user.
1613
1614 2012-08-08  Doug Evans  <dje@google.com>
1615
1616         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1617         UNOP_MEMVAL_TYPE.
1618         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1619         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1620         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1621         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1622         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1623         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1624         elt.
1625         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1626         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1627         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1628         (dump_prefix_expression): Handle OP_TYPE.
1629
1630 2012-08-08  Keith Seitz  <keiths@redhat.com>
1631
1632         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1633         addr_start.
1634
1635 2012-08-08  Doug Evans  <dje@google.com>
1636
1637         * linux-thread-db.c: #include "gdb_vecs.h".
1638         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1639         updated.
1640         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1641         (thread_db_load_search): Use a vector to iterate over path elements.
1642         Handle text appearing after "$pdir".
1643
1644         * gdb_string.h: Moved to ...
1645         * common/gdb_string.h: ... here.
1646         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1647         gdb_string.h and gdb_assert.h.
1648
1649 2012-08-08  Yao Qi  <yao@codesourcery.com>
1650
1651         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1652         (tic6x_value_to_register): Likewise.
1653         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1654         and set_gdbarch_value_to_register.
1655
1656 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1657             Jean-Marc Saffroy  <saffroy@gmail.com>
1658
1659         PR 11804
1660         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1661         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1662         * gcore.c (gcore_create_callback): New function comment.  Add modified
1663         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1664         according to MODIFIED.
1665         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1666         the passed modified value to FUNC.
1667         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1668         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1669         first.  New variables modified and has_anonymous.  Parse the lines of
1670         smaps file.  Add the passed MODIFIED value to FUNC.
1671         * procfs.c (find_memory_regions_callback): Add the passed modified
1672         value.
1673
1674 2012-08-06  Tom Tromey  <tromey@redhat.com>
1675
1676         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1677         (dwarf2_frame_cache): Use it.
1678         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1679         cache initialization constraint.
1680
1681 2012-08-06  Tom Tromey  <tromey@redhat.com>
1682
1683         PR python/14386:
1684         * varobj.c (update_dynamic_varobj_children): Don't call
1685         PyIter_Check.
1686
1687 2012-08-06  Tom Tromey  <tromey@redhat.com>
1688
1689         PR cli/14392:
1690         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1691
1692 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1693
1694         * NEWS: New entry for 'cd' default parameters.
1695         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1696
1697 2012-08-03  Tom Tromey  <tromey@redhat.com>
1698
1699         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1700         return.
1701
1702 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1703
1704         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1705         to attempting lseek/write.
1706         (inf_child_fileio_pread): Likewise for pread.
1707
1708 2012-08-02  Yao Qi  <yao@codesourcery.com>
1709
1710         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1711         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1712         add_setshow_zinteger_cmd.
1713         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1714         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1715         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1716         instead of add_setshow_zinteger_cmd.
1717         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1718         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1719         instead of add_setshow_zinteger_cmd.
1720         * frame.c (frame_debug): Add 'unsigned'.
1721         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1722         add_setshow_zinteger_cmd.
1723         * frame.h: Update the declaration of 'frame_debug'.
1724         * gdbtypes.c (overload_debug): Add 'unsigned'.
1725         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1726         add_setshow_zinteger_cmd.
1727         * inferior.h: Update declaration of 'debug_infrun'.
1728         * infrun.c (debug_infrun): Add 'unsigned'.
1729         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1730         add_setshow_zinteger_cmd.
1731         * jit.c (jit_debug): Add 'unsigned'.
1732         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1733         add_setshow_zinteger_cmd.
1734         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1735         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1736         instead of add_setshow_zinteger_cmd.
1737         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1738         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1739         add_setshow_zinteger_cmd.
1740         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1741         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1742         instead of add_setshow_zinteger_cmd.
1743         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1744         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1745         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1746         intead of add_setshow_zinteger_cmd.
1747         * mips-tdep.c (mips_debug): Add 'unsigned'.
1748         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1749         instead of add_setshow_zinteger_cmd.
1750         * monitor.c (monitor_debug): Add 'unsigned'.
1751         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1752         add_setshow_zinteger_cmd.
1753         * observer.c (observer_debug): Add 'unsigned'.
1754         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1755         add_setshow_zinteger_cmd.
1756         * parse.c (expressiondebug): Add 'unsigned'.
1757         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1758         add_setshow_zinteger_cmd.
1759         * record.c (record_debug): Add 'unsigned'.
1760         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1761         add_setshow_zinteger_cmd.
1762         * record.h: Update the declaration of 'record_debug'.
1763         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1764         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1765         add_setshow_zinteger_cmd.
1766         * serial.c (global_serial_debug_p): Add 'unsigned'.
1767         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1768         add_setshow_zinteger_cmd.
1769         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1770         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1771         add_setshow_zinteger_cmd.
1772         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1773         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1774         add_setshow_zinteger_cmd.
1775         * target.c (targetdebug): Add 'unsigned'.
1776         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1777         add_setshow_zinteger_cmd.
1778         * valops.c (overload_debug): Add 'unsigned'.
1779         * varobj.c (varobjdebug): Add 'unsigned'.
1780         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1781         add_setshow_zinteger_cmd.
1782         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1783         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1784         instead of add_setshow_zinteger_cmd.
1785
1786         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1787         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1788         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1789         instead of add_setshow_zinteger_cmd.
1790         * gdbarch.c, gdbarch.h: Re-generated.
1791
1792 2012-08-02  Yao Qi  <yao@codesourcery.com>
1793
1794         * nto-tdep.c: Don't include cli/cli-decode.h and
1795         cli/cli-cmds.h.
1796         (_initialize_nto_tdep): Remove.
1797         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1798         Remove field.
1799         Remove macro nto_internal_debugging.
1800
1801 2012-08-01  Richard Henderson  <rth@redhat.com>
1802
1803         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1804         (mep-*-*) [gdb_target_obs]: Likewise.
1805
1806 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
1807
1808         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1809         linux_get_siginfo_type.
1810
1811 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1812
1813         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1814         AT_ENTRY_POINT.
1815         (call_function_by_hand) <ON_STACK>: Call write_memory with
1816         gdbarch_breakpoint_from_pc, if possible.
1817         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1818         here.
1819
1820 2012-07-31  Yao Qi  <yao@codesourcery.com>
1821
1822         * tracepoint.c: Add 'static' for some variables.
1823
1824 2012-07-31  Yao Qi  <yao@codesourcery.com>
1825
1826         * go32-nat.c: Declare _initialize_go32_nat.
1827         * ser-go32.c: Declare _initialize_ser_dos.
1828         * top.c (do_chdir_cleanup): Add 'static'.
1829
1830 2012-07-30  Keith Seitz  <keiths@redhat.com>
1831
1832         * linespec.c (linespec_lex_number): A number followed
1833         by quotes is a valid number, too.
1834
1835 2012-07-30  Tom Tromey  <tromey@redhat.com>
1836
1837         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1838
1839 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
1840
1841         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1842         attempt to 4-byte-align HW breakpoint addresses for Thumb.
1843
1844 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
1845
1846         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1847         invalid or reevaluated to prevent prevent references to possibly
1848         delete'd type objects being left in the varobj.
1849
1850 2012-07-27  Tom Tromey  <tromey@redhat.com>
1851             Jan Kratochvil  <jan.kratochvil@redhat.com>
1852
1853         * copying.awk: Print buffer-read-only and vi ro markers.
1854         * copying.c: Rebuild.
1855         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1856         * gdbarch.c, gdbarch.h: Rebuild.
1857         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1858         buffer-read-only and vi ro markers.
1859         * features/arm-with-iwmmxt.c: Rebuild.
1860         * features/arm-with-m-fpa-layout.c: Rebuild.
1861         * features/arm-with-m-vfp-d16.c: Rebuild.
1862         * features/arm-with-m.c: Rebuild.
1863         * features/arm-with-neon.c: Rebuild.
1864         * features/arm-with-vfpv2.c: Rebuild.
1865         * features/arm-with-vfpv3.c: Rebuild.
1866         * features/i386/amd64-avx-linux.c: Rebuild.
1867         * features/i386/amd64-avx.c: Rebuild.
1868         * features/i386/amd64-linux.c: Rebuild.
1869         * features/i386/amd64.c: Rebuild.
1870         * features/i386/i386-avx-linux.c: Rebuild.
1871         * features/i386/i386-avx.c: Rebuild.
1872         * features/i386/i386-linux.c: Rebuild.
1873         * features/i386/i386-mmx-linux.c: Rebuild.
1874         * features/i386/i386-mmx.c: Rebuild.
1875         * features/i386/i386.c: Rebuild.
1876         * features/i386/x32-avx-linux.c: Rebuild.
1877         * features/i386/x32-avx.c: Rebuild.
1878         * features/i386/x32-linux.c: Rebuild.
1879         * features/i386/x32.c: Rebuild.
1880         * features/mips-dsp-linux.c: Rebuild.
1881         * features/mips-linux.c: Rebuild.
1882         * features/mips64-dsp-linux.c: Rebuild.
1883         * features/mips64-linux.c: Rebuild.
1884         * features/rs6000/powerpc-32.c: Rebuild.
1885         * features/rs6000/powerpc-32l.c: Rebuild.
1886         * features/rs6000/powerpc-403.c: Rebuild.
1887         * features/rs6000/powerpc-403gc.c: Rebuild.
1888         * features/rs6000/powerpc-405.c: Rebuild.
1889         * features/rs6000/powerpc-505.c: Rebuild.
1890         * features/rs6000/powerpc-601.c: Rebuild.
1891         * features/rs6000/powerpc-602.c: Rebuild.
1892         * features/rs6000/powerpc-603.c: Rebuild.
1893         * features/rs6000/powerpc-604.c: Rebuild.
1894         * features/rs6000/powerpc-64.c: Rebuild.
1895         * features/rs6000/powerpc-64l.c: Rebuild.
1896         * features/rs6000/powerpc-7400.c: Rebuild.
1897         * features/rs6000/powerpc-750.c: Rebuild.
1898         * features/rs6000/powerpc-860.c: Rebuild.
1899         * features/rs6000/powerpc-altivec32.c: Rebuild.
1900         * features/rs6000/powerpc-altivec32l.c: Rebuild.
1901         * features/rs6000/powerpc-altivec64.c: Rebuild.
1902         * features/rs6000/powerpc-altivec64l.c: Rebuild.
1903         * features/rs6000/powerpc-cell32l.c: Rebuild.
1904         * features/rs6000/powerpc-cell64l.c: Rebuild.
1905         * features/rs6000/powerpc-e500.c: Rebuild.
1906         * features/rs6000/powerpc-e500l.c: Rebuild.
1907         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1908         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1909         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1910         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1911         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1912         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1913         * features/rs6000/powerpc-vsx32.c: Rebuild.
1914         * features/rs6000/powerpc-vsx32l.c: Rebuild.
1915         * features/rs6000/powerpc-vsx64.c: Rebuild.
1916         * features/rs6000/powerpc-vsx64l.c: Rebuild.
1917         * features/rs6000/rs6000.c: Rebuild.
1918         * features/s390-linux32.c: Rebuild.
1919         * features/s390-linux32v1.c: Rebuild.
1920         * features/s390-linux32v2.c: Rebuild.
1921         * features/s390-linux64.c: Rebuild.
1922         * features/s390-linux64v1.c: Rebuild.
1923         * features/s390-linux64v2.c: Rebuild.
1924         * features/s390x-linux64.c: Rebuild.
1925         * features/s390x-linux64v1.c: Rebuild.
1926         * features/s390x-linux64v2.c: Rebuild.
1927         * features/tic6x-c62x-linux.c: Rebuild.
1928         * features/tic6x-c62x.c: Rebuild.
1929         * features/tic6x-c64x-linux.c: Rebuild.
1930         * features/tic6x-c64x.c: Rebuild.
1931         * features/tic6x-c64xp-linux.c: Rebuild.
1932         * features/tic6x-c64xp.c: Rebuild.
1933
1934 2012-07-27  Tom Tromey  <tromey@redhat.com>
1935
1936         * c-exp.y (classify_name): Avoid assignment in condition.
1937
1938 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
1939
1940         * amd64-windows-tdep.c: Include "frame.h".
1941         (amd64_windows_skip_trampoline_code): New function.
1942         (amd64_windows_init_abi): Add trampoline registration.
1943
1944 2012-07-27  Yao Qi  <yao@codesourcery.com>
1945
1946         * tracepoint.c (cur_traceframe_number): Remove.
1947         (set_tfile_traceframe): Remove.
1948         (tfile_trace_find, tfile_fetch_registers): Update callers.
1949         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1950         (tfile_open, tfile_trace_find): Likewise.
1951
1952 2012-07-27  Yao Qi  <yao@codesourcery.com>
1953
1954         * thread.c (switch_to_thread): Don't call registers_changed.
1955
1956 2012-07-26  Tom Tromey  <tromey@redhat.com>
1957
1958         * Makefile.in (SFILES): Remove objc-exp.y.
1959         (YYFILES): Remove objc-exp.c.
1960         (YYOBJ): Remove objc-exp.o.
1961         (local-maintainer-clean): Don't mention objc-exp.c.
1962         * c-exp.y: Include objc-lang.h.
1963         (%union) <class>: New field.
1964         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1965         (exp): Clone subscript production for OBJC_LBRAC.  Add various
1966         Objective C productions.
1967         (msglist, msgarglist, msgarg): New productions.
1968         (array_mod, func_mod, operator): Clone productions for
1969         OBJC_LBRAC.
1970         (parse_string_or_char): Handle '@' strings.
1971         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
1972         (classify_name): Check la_name_of_this.  Recognize ObjC class
1973         names.
1974         * objc-exp.y: Remove.
1975         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1976         * objc-lang.h (objc_parse, objc_error): Don't declare.
1977
1978 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
1979
1980         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1981
1982 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1983
1984         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1985         and decrement.
1986
1987 2012-07-26  Tom Tromey  <tromey@redhat.com>
1988
1989         * copying.c: Rebuild.
1990         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
1991         'no_class'.
1992
1993 2012-07-26  Tom Tromey  <tromey@redhat.com>
1994
1995         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1996         immediate_quit.
1997         (print_objfile_statistics): Likewise.
1998         (maintenance_print_symbols): Likewise.
1999         (maintenance_print_msymbols): Likewise.
2000         (maintenance_print_objfiles): Likewise.
2001         * psymtab.c (print_partial_symbols): Call QUIT.
2002         (maintenance_print_psymbols): Likewise.  Don't modify
2003         immediate_quit.
2004         * copying.c (show_copying_command): Don't modify immediate_quit.
2005         (show_warranty_command): Likewise.
2006         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2007
2008 2012-07-26  Keith Seitz  <keiths@redhat.com>
2009
2010         * linespec.c (linespec_lexer_lex_number): The input
2011         is also a valid number if the next character is a comma
2012         or colon.
2013
2014 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2015
2016         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2017         configure options.
2018
2019 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2020
2021         * machoread.c: Include gdb_bfd.h.
2022
2023 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2024
2025         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2026         offset.
2027
2028 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2029
2030         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2031         SIZE to size_t.
2032         (dwarf2_evaluate_loc_desc): Likewise.
2033         (dwarf2_loc_desc_needs_frame): Likewise.
2034         (locexpr_describe_location_1): Likewise.
2035         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2036         size_t.
2037         (struct dwarf2_loclist_baton): Likewise.
2038         * dwarf2read.c (struct dwarf_block): Likewise.
2039         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2040         (decode_locdesc): Expand SIZE and I to size_t.
2041
2042 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2043
2044         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2045
2046 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2047
2048         * doublest.c (convert_doublest_to_floatformat): If the exponent
2049         is too small, treat the value as zero.  If the exponent is too
2050         large, treat the value as infinity.
2051
2052 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2053
2054         * configure.ac: Add --enable-lmcheck configure option.
2055         * configure: Regenerate.
2056
2057 2012-07-25  Tom Tromey  <tromey@redhat.com>
2058
2059         * NEWS: Mention maint info bfds.
2060         * gdb_bfd.c (all_bfds): New global.
2061         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2062         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2063         New functions.
2064
2065 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2066
2067         * configure.tgt: Add v850*-*-rtems*.
2068
2069 2012-07-25  Tom Tromey  <tromey@redhat.com>
2070
2071         * macrotab.c (macro_bcache_str): Remove cast.
2072
2073 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2074
2075         * linespec.c (linespec_lexer_lex_number): Update comments,
2076         change the return and add check to make sure the input is
2077         the decimal numbers.
2078         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2079         false, call linespec_lexer_lex_string.
2080
2081 2012-07-24  Tom Tromey  <tromey@redhat.com>
2082
2083         * symfile.c (symbol_file_add): Don't open BFD twice.
2084
2085 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2086
2087         * breakpoint.c (create_breakpoint): Store condition for pending
2088         breakpoints.
2089
2090 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2091
2092         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2093         (m68k_return_value): Handle complex types like structures.
2094         (m68k_svr4_return_value): Likewise.
2095
2096 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2097
2098         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2099         parameters to bfd_get_section_name.
2100
2101 2012-07-24  Yao Qi  <yao@codesourcery.com>
2102
2103         * cli/cli-setshow.c: Handle case 'var_uinteger'
2104         and 'var_zuninteger' together.  Handle case 'var_integer' and
2105         'var_zinteger' together.
2106
2107 2012-07-23  Keith Seitz  <keiths@redhat.com>
2108
2109         * linespec.c (convert_linespec_to_sal): Don't add
2110         any symbols to the result vector if symbol_to_sal
2111         returns zero.
2112
2113 2012-07-23  Keith Seitz  <keiths@redhat.com>
2114
2115         * linespec.c (decode_objc): Record the function name
2116         in the linespec.
2117
2118 2012-07-23  Tom Tromey  <tromey@redhat.com>
2119
2120         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2121         counting.
2122         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2123         (map_vmap): Acquire a reference to the BFD.
2124
2125 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2126
2127         * p-valprint.c (pascal_object_print_value): Replace potentially
2128         unsafe alloca with xmalloc/xfree.
2129         * valops.c (search_struct_method): Likewise.
2130
2131 2012-07-23  Tom Tromey  <tromey@redhat.com>
2132
2133         * solib-svr4.c (enable_break): Update.
2134         * bfd-target.h (target_bfd_reopen): Update documentation.
2135
2136 2012-07-23  Tom Tromey  <tromey@redhat.com>
2137
2138         * symfile.c (separate_debug_file_exists): Update.
2139         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2140         (reread_symbols): Update.
2141         * elfread.c (build_id_verify): Update.
2142         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2143         bfd_open_maybe_remote.
2144
2145 2012-07-23  Tom Tromey  <tromey@redhat.com>
2146
2147         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2148
2149 2012-07-23  Tom Tromey  <tromey@redhat.com>
2150
2151         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2152         and 'abfd'.
2153         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2154         and 'abfd'.
2155         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2156         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2157         'abfd'.
2158         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2159         * objfiles.c (allocate_objfile): Acquire a new reference.
2160         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2161         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2162         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2163         a cleanup for 'nbfd'.
2164         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2165         for 'nbfd'.
2166         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2167         make a cleanup for 'abfd'.
2168         (symbol_file_add): Make a BFD cleanup.
2169
2170 2012-07-23  Tom Tromey  <tromey@redhat.com>
2171
2172         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2173         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2174         * corelow.c (core_open): Use gdb_bfd_fopen.
2175         * dsrec.c (load_srec): Use gdb_bfd_openr.
2176         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2177         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2178         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2179         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2180         (gdb_bfd_fdopenr): New functions.
2181         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2182         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2183         (gdb_bfd_fdopenr): Declare.
2184         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2185         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2186         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2187         gdb_bfd_openr_next_archived_file.
2188         (macho_check_dsym): Use gdb_bfd_openr.
2189         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2190         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2191         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2192         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2193         gdb_bfd_openr.
2194         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2195         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2196         gdb_bfd_openr_next_archived_file.
2197         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2198         Use gdb_bfd_openr.
2199         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2200         gdb_bfd_openr.
2201         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2202         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2203         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2204         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2205         (symfile_bfd_open): Use gdb_bfd_fopen.
2206         (generic_load): Use gdb_bfd_openr.
2207         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2208
2209 2012-07-23  Tom Tromey  <tromey@redhat.com>
2210
2211         * bfd-target.c (target_bfd_reopen): Update.
2212         * cli/cli-dump.c (bfd_openr_with_cleanup)
2213         (bfd_openw_with_cleanup): Update.
2214         * corelow.c (core_open): Update.
2215         * dsrec.c (load_srec): Update.
2216         * exec.c (exec_file_attach): Update.
2217         * gcore.c (create_gcore_bfd): Update.
2218         * gdb_bfd.c (gdb_bfd_ref): Return void.
2219         (gdb_bfd_open): Update.
2220         * gdb_bfd.h (gdb_bfd_ref): Return void.
2221         Update comments.
2222         * jit.c (jit_bfd_try_read_symtab): Update.
2223         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2224         * machoread.c (macho_symfile_read_all_oso): Update.
2225         (macho_check_dsym): Update.
2226         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2227         * remote-m32r-sdi.c (m32r_load): Update.
2228         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2229         * rs6000-nat.c (add_vmap): Update.
2230         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2231         Update.
2232         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2233         * solib-spu.c (spu_bfd_open): Update.
2234         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2235         * spu-linux-nat.c (spu_bfd_open): Update.
2236         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2237         (generic_load): Update.
2238         * windows-nat.c (windows_make_so): Update.
2239
2240 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2241
2242         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2243
2244 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2245
2246         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2247         SIGTRAMP_FRAME unwinding.
2248
2249 2012-07-20  Doug Evans  <dje@google.com>
2250
2251         * NEWS: Document new options "set/show use-deprecated-index-sections",
2252         and delete reference to --use-deprecated-index-sections.
2253         * symfile.h (use_deprecated_index_sections): Delete.
2254         * dwarf2read.c (use_deprecated_index_sections): Make static.
2255         (read_index_from_section): Update wording of how to load
2256         deprecated index sections.
2257         (_initialize_dwarf2_read): New options
2258         "set/show use-deprecated-index-sections".
2259         * main.c (captured_main): Delete --use-deprecated-index-sections.
2260
2261 2012-07-20  Pedro Alves  <palves@redhat.com>
2262
2263         PR threads/11692
2264         PR gdb/12203
2265
2266         * infrun.c (handle_inferior_event) <new thread>: Don't special
2267         case minus_one_ptid.
2268         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2269         * linux-thread-db.c (thread_get_info_callback): Don't return early
2270         if the thread is zombie.
2271         (thread_from_lwp): Change return type to void.  Rewrite stale
2272         comment.
2273         (attach_thread): Don't return early if the thread is zombie,
2274         instead set its "dying" flag.
2275         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2276         (find_new_threads_callback): Don't return early if the thread is
2277         zombie.
2278
2279 2012-07-20  Pedro Alves  <palves@redhat.com>
2280
2281         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2282         * target.c (target_wait): Likewise.
2283         (str_comma_list_concat_elem, do_option, target_options_to_string):
2284         New functions.
2285         * target.h (target_options_to_string): Declare.
2286
2287 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2288             Tom Tromey  <tromey@redhat.com>
2289
2290         * dwarf2read.c (dwarf_decode_macros)
2291         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2292         DW_MACRO_GNU_transparent_include_alt>: New cases.
2293         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2294         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2295
2296 2012-07-20  Tom Tromey  <tromey@redhat.com>
2297
2298         * dwarf2read.c (try_open_dwo_file): Don't call
2299         gdb_bfd_stash_filename.
2300
2301 2012-07-20  Pedro Alves  <palves@redhat.com>
2302
2303         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2304         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2305         (i386_process_record): Tweak description comments.
2306
2307 2012-07-20  Pedro Alves  <palves@redhat.com>
2308
2309         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2310         (i386_process_record): Use record_read_memory.
2311         * record.c (record_read_memory): New function.
2312         (record_arch_list_add_mem, record_exec_insn): Use
2313         record_read_memory.
2314         * record.h (record_read_memory): Declare.
2315
2316 2012-07-20  Yao Qi  <yao@codesourcery.com>
2317
2318         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2319         NULL for xfree.
2320
2321 2012-07-19  Pedro Alves  <palves@redhat.com>
2322
2323         * record.c (record_resume): Ask the target beneath to report all
2324         signals.
2325
2326 2012-07-19  Doug Evans  <dje@google.com>
2327
2328         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2329         there's no section at address zero.
2330         (dwarf2_record_block_ranges): Ditto.
2331
2332 2012-07-19  Yao Qi  <yao@codesourcery.com>
2333
2334         * command.h, remote.c: Fix a typo in comment.
2335
2336 2012-07-19  Tom Tromey  <tromey@redhat.com>
2337
2338         PR exp/13206:
2339         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2340         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2341         OP_DECLTYPE>: New cases.
2342         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2343         (type_exp): Add new productions.
2344         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2345         and decltype.
2346         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2347         New case.
2348         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2349         OP_DECLTYPE>: New case.
2350         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2351         New case.
2352         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2353         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2354
2355 2012-07-19  Tom Tromey  <tromey@redhat.com>
2356
2357         * c-exp.y (enum token_flags): New.
2358         (struct token) <cxx_only>: Remove.
2359         <flags>: New field.
2360         (tokentab3, tokentab2, ident_tokens): Update.
2361         (lex_one_token): Update.  Handle FLAG_SHADOW.
2362
2363 2012-07-19  Tom Tromey  <tromey@redhat.com>
2364
2365         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2366         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2367         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2368         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2369         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2370         type_exp production where appropriate.
2371         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2372         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2373         <UNOP_MEMVAL_TYPE>: New case.
2374         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2375         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2376         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2377         <UNOP_MEMVAL_TYPE>: New case.
2378         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2379         UNOP_REINTERPRET_CAST>: Update.
2380         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2381         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2382         UNOP_REINTERPRET_CAST>: Update.
2383         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2384         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2385         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2386         constants.
2387
2388 2012-07-19  Yao Qi  <yao@codesourcery.com>
2389             Jan Kratochvil <jan.kratochvil@redhat.com>
2390
2391         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2392         and case 'var_optional_filename' together.
2393         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2394         instead of add_setshow_optional_filename_cmd for setshow command
2395         'args'.  Set completer for 'set args'.
2396
2397 2012-07-18  Doug Evans  <dje@google.com>
2398
2399         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2400         * common/gdb_vecs.c: New file, contents from utils.c.
2401         * common/host-defs.h: New file, contents from defs.h.
2402         * utils.h: New file, contents from defs.h.
2403         * defs.h: Move all declarations of objects defined in utils.c
2404         to utils.h (except QUIT() and related).
2405         #include "utils.h", "host-defs.h".
2406         * probe.h (probe_p): Move here from gdb_vecs.h.
2407         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2408         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2409         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2410         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2411         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2412         (COMMON_OBS): Add gdb_vecs.o.
2413         (gdb_vecs.o): New rule.
2414
2415 2012-07-18  Keith Seitz  <keiths@redhat.com>
2416
2417         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2418         parameter.  If non-zero, use SYMNAME as the canonical name
2419         for the SaL.
2420         Update all callers.
2421         (convert_linespec_to_sals): Use add_sal_to_sals for
2422         expressions, too.
2423         (decode_line_full): No need to "fill in missing canonical names"
2424         anymore. Simply make cleanups for the allocated names.
2425
2426 2012-07-18  Keith Seitz  <keiths@redhat.com>
2427
2428         * linespec.c (struct linespec): Constify expression,
2429         source_filename, function_name, and label_name.
2430         (symbol_not_found_error): Make all parameters const.
2431         (linespec_parser_delete): No need to check for NULL
2432         when using xfree. Cast const char * to char * for xfree.
2433
2434 2012-07-18  Keith Seitz  <keiths@redhat.com>
2435
2436         * breakpoint.c (invalid_thread_id_error): New function.
2437         (find_condition_and_thread): Use invalid_thread_id_error.
2438         (watch_command_1): Likewise.
2439
2440 2012-07-18  Tom Tromey  <tromey@redhat.com>
2441
2442         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2443         * contrib/cc-with-tweaks.sh: New file.
2444
2445 2012-07-18  Tom Tromey  <tromey@redhat.com>
2446
2447         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2448         (locate_dwz_sections): Recognize .gdb_index.
2449         (create_cus_from_index_list): New function.
2450         (create_cus_from_index): Use it.  Handle .dwz data.
2451         (read_index_from_section): New function, extracted from
2452         dwarf2_read_index.
2453         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2454         if needed.
2455
2456 2012-07-18  Tom Tromey  <tromey@redhat.com>
2457
2458         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2459         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2460         <is_dwz>: New field.
2461         (struct dwz_file): New.
2462         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2463         (locate_dwz_sections, dwarf2_get_dwz_file)
2464         (get_abbrev_section_for_cu): New functions.
2465         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2466         (read_and_check_type_unit_head): Add abbrev_section argument.
2467         (create_debug_types_hash_table): Update.
2468         (init_cutu_and_read_dies): Use proper abbrev section.
2469         (init_cutu_and_read_dies_no_follow): Likewise.
2470         (set_partial_user): Do nothing if PST==NULL.
2471         (read_comp_units_from_section): New function.
2472         (create_all_comp_units): Use it.
2473         (scan_partial_symbols, partial_die_parent_scope): Update.
2474         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2475         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2476         (find_partial_die): Add offset_in_dwz argument.  Update.
2477         (guess_partial_die_structure_name, fixup_partial_die): Update.
2478         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2479         DW_FORM_GNU_strp_alt.
2480         (read_indirect_string_from_dwz): New function.
2481         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2482         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2483         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2484         (follow_die_offset): Add offset_in_dwz argument.
2485         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2486         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2487         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2488         Handle new macro forms.
2489         (dwarf_decode_macros): Update.
2490         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2491         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2492         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2493         (create_debug_types_hash_table): Use correct abbrev section.
2494         (get_debug_line_section): New function.
2495         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2496         (process_full_comp_unit): Pass 'required' argument to
2497         end_symtab_get_static_block.
2498         * buildsym.h (end_symtab_get_static_block): Update.
2499         * buildsym.c (end_symtab_get_static_block): Add 'required'
2500         argument.
2501         (end_symtab, end_expandable_symtab): Update.
2502
2503 2012-07-18  Tom Tromey  <tromey@redhat.com>
2504
2505         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2506         (pagesize): Remove.
2507         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2508         (zlib_decompress_section): Remove.
2509         (dwarf2_read_section): Use gdb_bfd_map_section.
2510         (munmap_section_buffer): Remove.
2511         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2512         munmap_section_buffer.
2513         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2514         (struct gdb_bfd_section_data): New.
2515         (free_one_bfd_section): New function.
2516         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2517         (get_section_descriptor, zlib_decompress_section)
2518         (gdb_bfd_map_section): New functions.
2519         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2520
2521 2012-07-18  Tom Tromey  <tromey@redhat.com>
2522
2523         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2524
2525 2012-07-18  Tom Tromey  <tromey@redhat.com>
2526
2527         * gdb_bfd.c (struct gdb_bfd_data): New.
2528         (gdb_bfd_cache): New global.
2529         (struct gdb_bfd_cache_search): New.
2530         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2531         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2532         * gdb_bfd.h (gdb_bfd_open): Declare.
2533
2534 2012-07-18  Tom Tromey  <tromey@redhat.com>
2535
2536         * utils.c (make_cleanup_bfd_unref): Rename from
2537         make_cleanup_bfd_close.
2538         * defs.h (make_cleanup_bfd_unref): Rename from
2539         make_cleanup_bfd_close.
2540         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2541         (bfd_openw_with_cleanup): Update.
2542         * corelow.c (core_open): Update.
2543         * dsrec.c (load_srec): Update.
2544         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2545         * remote-m32r-sdi.c (m32r_load): Update.
2546         * remote-mips.c (mips_load_srec): Update.
2547         (pmon_load_fast): Update.
2548         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2549         Update.
2550         (darwin_bfd_open): Update.
2551         * solib.c (solib_bfd_fopen): Update.
2552         * symfile-mem.c (symbol_file_add_from_memory): Update.
2553         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2554         (symfile_bfd_open): Update.
2555         (generic_load): Update.
2556
2557 2012-07-18  Tom Tromey  <tromey@redhat.com>
2558
2559         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2560         (pmon_load_fast): Likewise.
2561         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2562         (m32r_upload_command): Likewise.
2563         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2564         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2565         Use make_cleanup_bfd_close.
2566
2567 2012-07-18  Tom Tromey  <tromey@redhat.com>
2568
2569         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2570         gdb_bfd_stash_filename.
2571         (load_command): Open the new BFD before freeing the old.
2572         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2573         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2574         Call gdb_bfd_stash_filename.
2575         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2576         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2577         gdb_bfd_stash_filename.
2578         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2579         Free found_pathname.
2580         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2581         gdb_bfd_stash_filename.
2582         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2583         * machoread.c (macho_add_oso_symfile): Call
2584         gdb_bfd_stash_filename.
2585         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2586         gdb_bfd_stash_filename.
2587         (macho_check_dsym): Don't copy filename.  Call
2588         gdb_bfd_stash_filename.
2589         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2590         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2591         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2592         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2593         * exec.c (exec_close): Don't free the BFD's filename.
2594         (exec_file_attach): Don't copy the filename.  Call
2595         gdb_bfd_stash_filename.
2596         * corelow.c (core_close): Don't free the BFD's filename.
2597         (core_open): Call gdb_bfd_stash_filename.
2598         * corefile.c (reopen_exec_file): Remove #if 0 code.
2599         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2600         pathname.
2601         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2602
2603 2012-07-18  Tom Tromey  <tromey@redhat.com>
2604
2605         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2606         gdb_bfd_unref.
2607         (free_dwo_file): Use gdb_bfd_unref.
2608         * cli/cli-dump.c: Include gdb_bfd.h.
2609         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2610         (bfd_openr_with_cleanup): Likewise.
2611         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2612         gdb_bfd_unref.
2613         * utils.c: Include gdb_bfd.h.
2614         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2615         * symfile.c: Include gdb_bfd.h.
2616         (separate_debug_file_exists): Use gdb_bfd_unref.
2617         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2618         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2619         (generic_load): Use gdb_bfd_ref.
2620         (reread_symbols): Use gdb_bfd_unref.
2621         * symfile-mem.c: Include gdb_bfd.h.
2622         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2623         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2624         * solib.c: Include gdb_bfd.h.
2625         (solib_bfd_fopen): Use gdb_bfd_ref.
2626         (solib_bfd_open): Use gdb_bfd_unref.
2627         (free_so_symbols): Use gdb_bfd_unref.
2628         (reload_shared_libraries_1): Use gdb_bfd_unref.
2629         * solib-spu.c: Include gdb_bfd.h.
2630         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2631         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2632         gdb_bfd_unref.
2633         * solib-frv.c: Include gdb_bfd.h.
2634         (enable_break2): Use gdb_bfd_unref.
2635         * solib-dsbt.c: Include gdb_bfd.h.
2636         (enable_break2): Use gdb_bfd_unref.
2637         * solib-darwin.c: Include gdb_bfd.h.
2638         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2639         gdb_bfd_unref.
2640         (darwin_bfd_open): Use gdb_bfd_unref.
2641         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2642         * remote-mips.c: Include gdb_bfd.h.
2643         (mips_load_srec): Use gdb_bfd_ref.
2644         (pmon_load_fast): Use gdb_bfd_ref.
2645         * remote-m32r-sdi.c: Include gdb_bfd.h.
2646         (m32r_load): Use gdb_bfd_ref.
2647         * record.c: Include gdb_bfd.h.
2648         (record_save_cleanups): Use gdb_bfd_unref.
2649         (cmd_record_save): Use gdb_bfd_unref.
2650         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2651         gdb_bfd_unref.
2652         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2653         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2654         * objfiles.c: Include gdb_bfd.h.
2655         (free_objfile): Use gdb_bfd_unref.
2656         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2657         gdb_bfd.c.
2658         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2659         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2660         (macho_check_dsym): Likewise.
2661         * m32r-rom.c: Include gdb_bfd.h.
2662         (m32r_load): Use gdb_bfd_ref.
2663         (m32r_upload_command): Use gdb_bfd_ref.
2664         * jit.c: Include gdb_bfd.h.
2665         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2666         * gdb_bfd.h: New file.
2667         * gdb_bfd.c: New file.
2668         * gcore.c: Include gdb_bfd.h.
2669         (create_gcore_bfd): Use gdb_bfd_ref.
2670         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2671         (gcore_command): Use gdb_bfd_unref.
2672         * exec.c: Include gdb_bfd.h.
2673         (exec_close): Use gdb_bfd_unref.
2674         (exec_close_1): Use gdb_bfd_unref.
2675         (exec_file_attach): Use gdb_bfd_ref.
2676         * elfread.c: Include gdb_bfd.h.
2677         (build_id_verify): Use gdb_bfd_unref.
2678         * dsrec.c: Include gdb_bfd.h.
2679         (load_srec): Use gdb_bfd_ref.
2680         * corelow.c: Include gdb_bfd.h.
2681         (core_close): Use gdb_bfd_unref.
2682         (core_open): Use gdb_bfd_ref.
2683         * bfd-target.c: Include gdb_bfd.h.
2684         (target_bfd_xclose): Use gdb_bfd_unref.
2685         (target_bfd_reopen): Use gdb_bfd_ref.
2686         * Makefile.in (SFILES): Add gdb_bfd.c.
2687         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2688         (COMMON_OBS): Add gdb_bfd.o.
2689
2690 2012-07-18  Keith Seitz  <keiths@redhat.com>
2691
2692         * breakpoint.c (find_condition_and_thread): Initialize
2693         TASK and REST.
2694         (create_breakpiont): find_condition_and_thread will now
2695         initialize COND_STRING, THREAD, and REST (and TASK).
2696         (addr_string_to_sals): Likewise.
2697
2698 2012-07-18  Pedro Alves  <palves@redhat.com>
2699
2700         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2701         Pull the single step breakpoints out of the target.
2702
2703 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2704
2705         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2706         * stap-probe.c (compile_probe_arg): Likewise.
2707
2708 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2709
2710         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2711         (elf_compile_to_ax): Likewise.
2712         * infrun.c (insert_exception_resume_from_probe): Likewise.
2713         (check_exception_resume): Remove `objfile' variable.
2714         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2715         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2716         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2717         (compare_entries): Rename to...
2718         (compare_probes): ...this.  Adjust function to work with
2719         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2720         respectively.
2721         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2722         `VEC (probe_p) *'.
2723         (print_ui_out_info): Adjust argument to be `struct probe *'.
2724         (info_probes_for_ops): Adjust internal computations to use
2725         `VEC (probe_p) *'.
2726         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2727         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2728         gen_info_probes_table_values>: Remove `objfile' argument.
2729         (struct probe) <objfile>: New field.
2730         (find_probe_by_pc): Remove `objfile' argument.
2731         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2732         (stap_get_probe_argument_count): Likewise.
2733         (stap_get_arg): Likewise.
2734         (stap_evaluate_probe_argument): Likewise.
2735         (stap_compile_to_ax): Likewise.
2736         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2737         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2738         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2739         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2740         sym_compile_to_ax>: Likewise.
2741
2742 2012-07-18  Terry Guo  <terry.guo@arm.com>
2743
2744         PR 14329
2745         * defs.h (GDB_MI_MSG_WIDTH): New.
2746         * ser_base (ser_base_read_error_fd): New function.
2747         (do_ser_base_readchar): Poll error file descriptor as well as
2748         standard output.
2749         (generic_readchar): Refactor error handling.
2750
2751 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2752
2753         * NEWS: Create a new section for the next release branch.
2754         Rename the section of the current branch, now that it has
2755         been cut.
2756
2757 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2758
2759         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2760         * version.in: Bump version to 7.5.50.20120718-cvs.
2761
2762 2012-07-17  Keith Seitz  <keiths@redhat.com>
2763
2764         * linespec.c (linespec_parse_line_offset): Make parameter
2765         const.
2766
2767 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2768
2769         PR 11914
2770         * f-valprint.c (info_common_command): New variable frame_id.
2771         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2772         * printcmd.c (print_variable_and_value): Extend function comment.
2773         Add comment for invalidated FRAME.
2774         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2775         FI form FRAME_ID after each print_frame_local_vars.
2776         (struct print_variable_and_value_data): Change frame to frame_id.
2777         (do_print_variable_and_value): New variable frame, initialize it from
2778         p->frame_id.  Add comment for invalidated FRAME.
2779         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2780         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2781         for invalidated FRAME.
2782
2783 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2784             Pedro Alves  <palves@redhat.com>
2785
2786         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2787         loop.
2788
2789 2012-07-16  Tom Tromey  <tromey@redhat.com>
2790
2791         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2792
2793 2012-07-15  Doug Evans  <dje@google.com>
2794
2795         * dwarf2read.c (stmt_list_hash): New struct.
2796         (type_unit_group): Embed "per_cu" member, remove pointer.
2797         New union member "t", move member "tus" into it, all uses updated.
2798         New member "hash", replaces member "line_offset, all uses updated.
2799         (quick_file_names): Replace member "offset" with "hash", all uses
2800         updated.
2801         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2802         (hash_file_name_entry, eq_file_name_entry): Call them.
2803         (hash_type_unit_group, eq_type_unit_group): Ditto.
2804         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2805         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2806         (dw2_get_file_names): Update.
2807         (create_type_unit_group): Replace "per_cu" arg with "cu".
2808         All callers updated.  Fix "quick" (.gdb_index) handling.
2809         (get_type_unit_group): Replace "per_cu" arg with "cu".
2810         All callers updated.
2811         (build_type_unit_groups): Don't reset tu_stats.
2812
2813         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2814         "tab_cur_size".  Change member "tab" to be a htab_t.
2815         (create_filename_seen_cache): Update.
2816         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2817         (filename_seen): Update.
2818
2819 2012-07-13  Doug Evans  <dje@google.com>
2820
2821         * symtab.c (filename_seen): Update comment.
2822
2823 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2824             Doug Evans  <dje@google.com>
2825
2826         * buildsym.c (end_symtab_1): Split it to ...
2827         (end_symtab_get_static_block): ... this ...
2828         (end_symtab_from_static_block): ... and this function.
2829         (end_symtab, end_expandable_symtab): Call them.
2830         * buildsym.h (end_symtab_get_static_block)
2831         (end_symtab_from_static_block): New declarations.
2832         * dwarf2read.c (process_full_comp_unit): New variable static_block.
2833         Set its valid CU ranges.
2834
2835 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2836
2837         * dwarf2loc.c (disassemble_dwarf_expression): Handle
2838         DW_OP_GNU_parameter_ref.
2839
2840 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2841
2842         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2843         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2844
2845 2012-07-13  Doug Evans  <dje@google.com>
2846
2847         * symtab.c (output_source_filename): Delete unnecessary forward decl.
2848         (filename_seen_cache): New struct.
2849         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2850         (create_filename_seen_cache): New function.
2851         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2852         (filename_seen): Delete arg "first".  New arg "cache".  All callers
2853         updated.
2854         (output_source_filename_data): New struct.
2855         (output_source_filename): Delete arg "first".  New arg "data".
2856         All callers updated.
2857         (sources_info): Delete local "first".  New locals "data", "cleanups".
2858         Rewrite to use filename_seen_cache.
2859         (add_partial_filename_data): Delete member "first".  New member
2860         "filename_seen_cache".  All uses updated.
2861         (make_source_files_completion_list): Rewrite to use
2862         filename_seen_cache.
2863
2864 2012-07-12  Doug Evans  <dje@google.com>
2865
2866         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2867
2868 2012-07-10  Doug Evans  <dje@google.com>
2869
2870         PR gdb/13498
2871         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2872         all_type_unit_groups, type_unit_groups, tu_stats.
2873         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2874         All uses updated.  Add type_unit_group to union "s".
2875         (type_unit_group): New struct.
2876         (IS_TYPE_UNIT_GROUP): New macro.
2877         (abbrev_table): Delete unused member "section".
2878         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2879         (dw2_get_cu): Assert not used with type_unit_group.
2880         (dw2_get_primary_cu): New function.
2881         (dw2_build_type_unit_groups_reader): New function.
2882         (dw2_build_type_unit_groups): New function.
2883         (dw2_get_file_names): Assert not called on type units.
2884         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2885         Redo loop to iterate over type unit groups instead of type units.
2886         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2887         (read_abbrev_offset): New function.
2888         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
2889         updated.
2890         (create_partial_symtab): New function.
2891         (process_psymtab_comp_unit_reader): Assert not used with type units.
2892         Call create_partial_symtab.
2893         (process_psymtab_type_unit): Delete.
2894         (hash_type_unit_group, eq_type_unit_group): New functions.
2895         (allocate_type_unit_groups_table): New function.
2896         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2897         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2898         (create_type_unit_group, get_type_unit_group): New functions.
2899         (tu_abbrev_offset): New struct.
2900         (sort_tu_by_abbrev_offset): New function.
2901         (add_type_unit_group_to_table): New function.
2902         (build_type_unit_groups): New function.
2903         (build_type_psymtabs_reader): New function.
2904         (build_type_psymtab_dependencies): New function.
2905         (build_type_psymtabs): Rewrite.
2906         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2907         is seen in a type unit.
2908         (process_queue): Move symtab expansion debugging printfs here.
2909         Call process_full_type_unit for type units.
2910         (compute_symtab_includes): Assert not called for type units.
2911         (process_cu_includes): Don't call compute_symtab_includes for
2912         type units.
2913         (process_full_type_unit): New function.
2914         (process_imported_unit_die): Flag an error if called for type units.
2915         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
2916         updated.  Assert not called for type units.
2917         (read_file_scope): Call dwarf2_start_symtab.
2918         (setup_type_unit_groups): New function.
2919         (read_type_unit_scope): Rewrite.
2920         (abbrev_table_read_table): Initialize abbrev_table->offset.
2921         (abbrev_table_free_cleanup): New function.
2922         (dwarf2_start_symtab): New function.
2923         (load_full_type_unit): Assert not called for type unit groups.
2924         * buildsym.c (finish_block_internal): New arg "expandable".
2925         All callers updated.
2926         (start_symtab): Move most contents to ...
2927         (restart_symtab): ... here.  New function.
2928         (reset_symtab_globals): New function.
2929         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
2930         Call reset_symtab_globals.
2931         (end_symtab, end_expandable_symtab): New functions.
2932         (set_missing_symtab, augment_type_symtab): New functions.
2933         * buildsym.h (end_expandable_symtab): Declare.
2934         (augment_type_symtab, restart_symtab): Declare.
2935         * psympriv.h (struct partial_symtab): New member "anonymous".
2936         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2937         anonymous psymtabs.
2938         (read_psymtabs_with_filename): Ditto.
2939         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2940         (expand_symtabs_matching_via_partial): Ditto.
2941         (dump_psymtab): Update.
2942         * dictionary.c (dict_add_pending): New function.
2943         * dictionary.h (dict_add_pending): Declare.
2944
2945 2012-07-09  Doug Evans  <dje@google.com>
2946
2947         * buildsym.c (start_subfile): Remove unnecessary check for
2948         name == NULL.
2949
2950         * psymtab.c (allocate_psymtab): Use host_address_to_string.
2951
2952         * dwarf2read.c (load_full_type_unit): Simplify.
2953
2954         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2955         to struct signatured_type **.  All uses updated.
2956
2957         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2958         All callers updated.
2959
2960 2012-07-09  Tom Tromey  <tromey@redhat.com>
2961
2962         * c-exp.y (check_parameter_typelist): New function.
2963         (parameter_typelist): Call it.
2964         * eval.c (make_params): Handle '(void)' case.
2965         * gdbtypes.c (lookup_function_type_with_arguments): Handle
2966         '(void)' case.
2967
2968 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2969
2970         * common/linux-ptrace.c: Include gdb_assert.h.
2971         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2972         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2973         stdint.h.
2974         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2975         functions.
2976         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2977         * linux-nat.c (linux_child_post_attach)
2978         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2979
2980 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2981
2982         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2983         nptl <2.7 bug workaround for core files.
2984
2985 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2986
2987         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2988         clearing.
2989         (save_siginfo): Remove.
2990         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2991         call.
2992         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2993         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2994         * linux-nat.h (struct lwp_info): Remove field siginfo.
2995
2996 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2997
2998         Code cleanup for the next patch.
2999         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3000         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3001         call for it.
3002         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3003         (ia64_linux_stopped_data_address):
3004         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3005         the return value.
3006         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3007         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3008         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3009         call for it.
3010
3011 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3012
3013         PR 14321
3014         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3015         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3016
3017 2012-07-06  Tom Tromey  <tromey@redhat.com>
3018
3019         * c-exp.y (DOTDOTDOT): New token.
3020         (func_mod, exp): Use parameter_typelist.
3021         (parameter_typelist): New production.
3022         (tokentab3): Add "..." token.
3023         * eval.c (make_params): Handle varargs.
3024         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3025         varargs.
3026
3027 2012-07-06  Tom Tromey  <tromey@redhat.com>
3028
3029         PR exp/9608:
3030         * c-exp.y (%union) <tvec>: Change type.
3031         (func_mod): Now uses <tvec> type.
3032         (exp): Update for tvec change.
3033         (direct_abs_decl): Push the typelist.
3034         (func_mod): Return a typelist.
3035         (nonempty_typelist): Update for tvec change.
3036         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3037         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3038         * parse.c (pop_type_list): New function.
3039         (push_typelist): New function.
3040         (follow_types): Handle tp_function_with_arguments.
3041         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3042         (enum type_pieces) <tp_function_with_arguments>: New constant.
3043         (union type_stack_elt) <typelist_val>: New field.
3044         (push_typelist): Declare.
3045
3046 2012-07-06  Tom Tromey  <tromey@redhat.com>
3047
3048         * c-exp.y (%union) <type_stack>: New field.
3049         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3050         (ptr_operator_ts): New production.
3051         (ptype): Update.
3052         * parse.c (type_stack_reserve): New function.
3053         (check_type_stack_depth): Use it.
3054         (pop_type_stack, append_type_stack, push_type_stack)
3055         (get_type_stack, type_stack_cleanup): New functions.
3056         (follow_types): Handle tp_type_stack.
3057         (_initialize_parse): Simplify initialization.
3058         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3059         constant.
3060         (union type_stack_elt) <stack_val>: New field.
3061         (get_type_stack, append_type_stack, push_type_stack)
3062         (type_stack_cleanup): Declare.
3063
3064 2012-07-06  Tom Tromey  <tromey@redhat.com>
3065
3066         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3067         Remove.
3068         (struct type_stack): New.
3069         * parse.c (type_stack, type_stack_size, type_stack_depth):
3070         Remove.
3071         (type_stack): New global.
3072         (parse_exp_in_context, check_type_stack_depth)
3073         (insert_into_type_stack, insert_type, push_type, push_type_int)
3074         (insert_type_address_space, pop_type, pop_type_int)
3075         (_initialize_parse): Update.
3076
3077 2012-07-06  Tom Tromey  <tromey@redhat.com>
3078
3079         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3080         Remove %type.
3081
3082 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3083
3084         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3085
3086 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3087             Jan Kratochvil  <jan.kratochvil@redhat.com>
3088
3089         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3090         alloca with xmalloc/xfree.
3091
3092 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3093
3094         * MAINTAINERS (Write After Approval): Add myself to the list.
3095
3096 2012-07-05  Doug Evans  <dje@google.com>
3097
3098         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3099
3100 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3101
3102         * ax-gdb.c (cli/cli-utils.h): New include.
3103         (linespec.h): Ditto.
3104         (agent_eval_command_one): New function.
3105         (agent_command_1): Ditto.
3106         (agent_command): Call function agent_command_1.
3107         (agent_eval_command): Ditto.
3108         (_initialize_ax_gdb): Change help for "maint agent"
3109         and "maint agent-eval".
3110
3111 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3112
3113         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3114         * cli/cli-utils.c (check_for_argument): New function.
3115         * cli/cli-utils.h (check_for_argument): Ditto.
3116
3117 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3118
3119         * NEWS: Mention x32 ABI support.
3120
3121 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3122
3123         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3124         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3125
3126         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3127         and pc_regnum_from_eax to -1.  Update SP regnum from
3128         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3129         needed.
3130
3131         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3132         pc_regnum_from_eax.
3133
3134 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3135
3136         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3137         * dwarf2expr.h: Include gdbtypes.h.
3138         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3139         these forward declarations.
3140         (cu_offset, sect_offset): Move these ...
3141         * gdbtypes.h: Remove include dwarf2expr.h.
3142         (cu_offset, sect_offset): ... here.
3143
3144 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3145
3146         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3147         (amd64_linux_sigtramp_code): This.
3148         (amd64_x32_linux_sigtramp_code): New.
3149         (LINUX_SIGTRAMP_LEN): Updated.
3150         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3151
3152 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3153
3154         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3155
3156 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3157
3158         * config.in: Regenerate.
3159         * configure: Regenerate.
3160         * configure.ac: Remove check for gnu/libc-version.h.
3161         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3162         gnu/libc-version.h.
3163         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3164         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3165         inferior_has_bug.  Extend the comment.
3166
3167 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3168
3169         * linux-thread-db.c (inferior_has_bug): New function.
3170         (thread_db_find_new_threads_silently): Return boolean as checked by
3171         inferior_has_bug, describe it in the comments.
3172         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3173         earlier.  Abort the initialization if it returned non-zero.
3174         (thread_db_new_objfile): Exclude debug files.
3175         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3176         if UNTIL_NO_NEW,
3177
3178 2012-07-02  Doug Evans  <dje@google.com>
3179
3180         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3181         related to queue management.
3182
3183         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3184         instead of "debug dwarf2-die" in debugging printfs.
3185         (create_debug_info_hash_table_reader): Ditto.
3186         (create_debug_info_hash_table): Ditto.
3187         (init_dwo_file): Ditto.
3188         (init_cutu_and_read_dies): Add debugging printf.
3189         (init_cutu_and_read_dies_no_follow): Ditto.
3190         (process_psymtab_comp_unit_reader): Ditto.
3191
3192 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3193
3194         Add target-side support for dynamic printf.
3195         * NEWS: Mention the additional style.
3196         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3197         (struct bp_location): New field cmd_bytecode.
3198         * breakpoint.c: Include format.h.
3199         (disconnected_dprintf): New global.
3200         (parse_cmd_to_aexpr): New function.
3201         (build_target_command_list): New function.
3202         (insert_bp_location): Call it.
3203         (remove_breakpoints_pid): Skip dprintf breakpoints.
3204         (print_one_breakpoint_location): Ditto.
3205         (dprintf_style_agent): New global.
3206         (dprintf_style_enums): Add dprintf_style_agent.
3207         (update_dprintf_command_list): Add agent case.
3208         (agent_printf_command): New function.
3209         (_initialize_breakpoint): Add new commands.
3210         * common/ax.def (printf): New bytecode.
3211         * ax.h (ax_string): Declare.
3212         * ax-gdb.h (gen_printf): Declare.
3213         * ax-gdb.c: Include cli-utils.h, format.h.
3214         (gen_printf): New function.
3215         (maint_agent_print_command): New function.
3216         (_initialize_ax_gdb): Add maint agent-printf command.
3217         * ax-general.c (ax_string): New function.
3218         (ax_print): Add printf disassembly.
3219         * Makefile.in (SFILES): Add format.c
3220         (COMMON_OBS): Add format.o.
3221         * common/format.h: New file.
3222         * common/format.c: New file.
3223         * printcmd.c: Include format.h.
3224         (ui_printf): Call parse_format_string.
3225         * remote.c (remote_state): New field breakpoint_commands.
3226         (PACKET_BreakpointCommands): New enum.
3227         (remote_breakpoint_commands_feature): New function.
3228         (remote_protocol_features): Add new BreakpointCommands entry.
3229         (remote_can_run_breakpoint_commands): New function.
3230         (remote_add_target_side_commands): New function.
3231         (remote_insert_breakpoint): Call it.
3232         (remote_insert_hw_breakpoint): Ditto.
3233         (_initialize_remote): Add new packet configuration for
3234         target-side breakpoint commands.
3235         * target.h (struct target_ops): New field
3236         to_can_run_breakpoint_commands.
3237         (target_can_run_breakpoint_commands): New macro.
3238         * target.c (update_current_target): Handle
3239         to_can_run_breakpoint_commands.
3240
3241 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3242
3243         Execute -ix and -iex only after system and user gdbinit files.
3244         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3245         processing down after gdbinit files.
3246
3247 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3248
3249         Add fnmatch-gnu module.
3250         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3251         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3252         * gnulib/aclocal.m4: Regenerate.
3253         * gnulib/config.in: Regenerate.
3254         * gnulib/configure: Regenerate.
3255         * gnulib/import/dummy.c: Remove.
3256         * gnulib/import/Makefile.am: Regenerate.
3257         * gnulib/import/Makefile.in: Likewise.
3258         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3259         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3260         * gnulib/import/alloca.c: New file.
3261         * gnulib/import/alloca.in.h: Likewise.
3262         * gnulib/import/config.charset: Likewise.
3263         * gnulib/import/fnmatch.c: Likewise.
3264         * gnulib/import/fnmatch.in.h: Likewise.
3265         * gnulib/import/fnmatch_loop.c: Likewise.
3266         * gnulib/import/localcharset.c: Likewise.
3267         * gnulib/import/localcharset.h: Likewise.
3268         * gnulib/import/m4/alloca.m4: Likewise.
3269         * gnulib/import/m4/codeset.m4: Likewise.
3270         * gnulib/import/m4/configmake.m4: Likewise.
3271         * gnulib/import/m4/fcntl-o.m4: Likewise.
3272         * gnulib/import/m4/fnmatch.m4: Likewise.
3273         * gnulib/import/m4/glibc21.m4: Likewise.
3274         * gnulib/import/m4/localcharset.m4: Likewise.
3275         * gnulib/import/m4/locale-fr.m4: Likewise.
3276         * gnulib/import/m4/locale-ja.m4: Likewise.
3277         * gnulib/import/m4/locale-zh.m4: Likewise.
3278         * gnulib/import/m4/mbrtowc.m4: Likewise.
3279         * gnulib/import/m4/mbsinit.m4: Likewise.
3280         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3281         * gnulib/import/m4/mbstate_t.m4: Likewise.
3282         * gnulib/import/m4/stdbool.m4: Likewise.
3283         * gnulib/import/m4/wchar_h.m4: Likewise.
3284         * gnulib/import/m4/wctype_h.m4: Likewise.
3285         * gnulib/import/m4/wint_t.m4: Likewise.
3286         * gnulib/import/mbrtowc.c: Likewise.
3287         * gnulib/import/mbsinit.c: Likewise.
3288         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3289         * gnulib/import/mbsrtowcs-state.c: Likewise.
3290         * gnulib/import/mbsrtowcs.c: Likewise.
3291         * gnulib/import/ref-add.sin: Likewise.
3292         * gnulib/import/ref-del.sin: Likewise.
3293         * gnulib/import/stdbool.in.h: Likewise.
3294         * gnulib/import/streq.h: Likewise.
3295         * gnulib/import/strnlen1.c: Likewise.
3296         * gnulib/import/strnlen1.h: Likewise.
3297         * gnulib/import/verify.h: Likewise.
3298         * gnulib/import/wchar.in.h: Likewise.
3299         * gnulib/import/wctype.in.h: Likewise.
3300
3301 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3302
3303         Support shell wildcards for 'set auto-load safe-path'.
3304         * auto-load.c: Include fnmatch.h.
3305         (filename_is_in_dir): Rename to ...
3306         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3307         it.  Update function comment.  Rename dir_len to pattern_len.  New
3308         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3309         messages.  Use gdb_filename_fnmatch.
3310         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3311         pattern.
3312         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3313         * defs.h (gdb_filename_fnmatch): New declaration.
3314         * utils.c: Include fnmatch.h.
3315         (gdb_filename_fnmatch): New function.
3316
3317 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3318
3319         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3320         `-probe' and `-probe-stap' options.
3321
3322 2012-07-01  Yao Qi  <yao@codesourcery.com>
3323
3324         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3325         always_inserted_off, and always_inserted_enums.
3326         Change always_inserted_mode's type to 'enum auto_boolean'.
3327         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3328         callers.
3329         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3330         of add_setshow_enum_cmd.
3331         * infrun.c: Remove can_use_displaced_stepping_auto,
3332         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3333         can_use_displaced_stepping_enum.
3334         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3335         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3336         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3337         add_setshow_enum_cmd.
3338
3339 2012-06-30  Doug Evans  <dje@google.com>
3340
3341         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3342         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3343         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3344
3345 2012-06-29  Doug Evans  <dje@google.com>
3346
3347         * linespec.c: #include "stack.h".
3348         (decode_line_with_current_source): Moved here from symtab.c and
3349         renamed from decode_line_spec.  All callers updated.
3350         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3351         renamed from decode_line_spec_1.  All callers updated.
3352         * linespec.h (decode_line_with_current_source): Move declaration here
3353         from symtab.h and renamed from decode_line_spec.
3354         (decode_line_with_last_displayed): Move declaration here from symtab.h
3355         and renamed from decode_line_spec_1.
3356         * macrocmd.c: #include "linespec.h".
3357         * symtab.c: Remove #include "linespec.h".
3358
3359 2012-06-28  Doug Evans  <dje@google.com>
3360
3361         * dwarf2read.c (get_cu_length): New function.
3362         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3363         (create_debug_types_hash_table): Ditto.
3364         (init_cutu_and_read_dies): Ditto.
3365         (init_cutu_and_read_dies_no_follow): Ditto.
3366
3367         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3368
3369         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3370         (struct abbrev_table): Define.
3371         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3372         abbrev_table.
3373         (init_cutu_and_read_dies): Update.
3374         (abbrev_table_alloc_abbrev): New function.  Replaces
3375         dwarf_alloc_abbrev.  All callers updated.
3376         (abbrev_table_add_abbrev): New function.
3377         (abbrev_table_lookup_abbrev): New function.  Replaces
3378         dwarf2_lookup_abbrev.  All callers updated.
3379         (abbrev_table_read_table): New function.  Contents moved here from
3380         dwarf2_read_abbrevs.
3381         (dwarf2_read_abbrevs): Call it.
3382         (abbrev_table_free): New function.
3383         (dwarf2_free_abbrev_table): Call it.
3384
3385 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3386
3387         * osdata.c (info_osdata_command): Filter out "Title" columns
3388         from non-MI uses.
3389         * common/linux-osdata.c (struct osdata_type): Add title field.
3390         (osdata_table): Add titles to each entry.
3391         (linux_command_xfer_osdata): Add a column for title data.
3392
3393 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3394
3395         Make logging work for MI.
3396         * NEWS: Mention it.
3397         * interps.h (interp_set_logging_ftype): New typedef.
3398         (struct interp_procs): New field set_logging_proc.
3399         (current_interp_set_logging): Declare.
3400         * interps.c (current_interp_set_logging): New function.
3401         * cli/cli-logging.c: Include interps.h.
3402         (set_logging_redirect): Call current_interp_set_logging.
3403         (pop_output_files): Ditto.
3404         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3405         * mi/mi-console.h (mi_console_set_raw): Declare.
3406         * mi/mi-console.c (mi_console_set_raw): New function.
3407         * mi/mi-interp.c (saved_raw_stdout): New global.
3408         (mi_set_logging): New function.
3409         (_initialize_mi_interp): Add it to interp procs.
3410
3411 2012-06-28  Doug Evans  <dje@google.com>
3412
3413         * symtab.c (lookup_symbol_aux_objfile): Use
3414         ALL_OBJFILE_PRIMARY_SYMTABS.
3415
3416         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3417
3418 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3419
3420         * common/buffer.c: Include inttypes.h and stdint.h.
3421         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3422
3423 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3424             Pedro Alves  <palves@redhat.com>
3425
3426         * gdbthread.h (ALL_THREADS): New macro.
3427         (thread_list): Declare.
3428         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3429         going, but instead fall through to the stepping handling.
3430         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3431         the passed in signal.  Adjust debug output.
3432         (resume_callback): Rename to ...
3433         (linux_nat_resume_callback): ... this.  Pass the thread's last
3434         stop signal, if in "pass" state.
3435         (linux_nat_resume): Adjust to rename.
3436         (stop_wait_callback): New assertion.  Don't respawn signals;
3437         instead let the LWP remain with SIGNALLED set.
3438         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3439         * remote.c (append_pending_thread_resumptions): New.
3440         (remote_vcont_resume): Call it.
3441         * target.h (target_resume): Extend comment.
3442
3443 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3444
3445         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3446
3447 2012-06-27  Doug Evans  <dje@google.com>
3448
3449         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3450         Delete have_addr_base, unused.  All uses updated.
3451         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3452         (dwarf2_get_pc_bounds): Add ranges_base.
3453         (dwarf2_record_block_ranges): Ditto.
3454
3455 2012-06-27  Tom Tromey  <tromey@redhat.com>
3456
3457         PR macros/7961:
3458         * varobj.c (varobj_create): Update.
3459         (varobj_set_value): Update.
3460         * tracepoint.c (validate_actionline): Update.
3461         (encode_actions_1): Update.
3462         * parse.c (parse_exp_1): Add 'pc' argument.
3463         (parse_exp_in_context): Add 'pc' argument.  Change how
3464         expression_context_pc is set.
3465         (parse_expression): Update.
3466         (parse_field_expression): Update.
3467         * expression.h (parse_exp_1): Update.
3468         * eval.c (parse_to_comma_and_eval): Update.
3469         * breakpoint.c (set_breakpoint_condition): Update.
3470         (update_watchpoint): Update.
3471         (init_breakpoint_sal): Update
3472         (find_condition_and_thread): Update.
3473         (watch_command_1): Update.
3474         (update_breakpoint_locations): Update.
3475         * ada-lang.c (ada_read_renaming_var_value): Update.
3476         (create_excep_cond_exprs): Update.
3477
3478 2012-06-27  Doug Evans  <dje@google.com>
3479
3480         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3481         type units.
3482
3483 2012-06-26  Doug Evans  <dje@google.com>
3484
3485         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3486         prototype.
3487         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3488         updated.
3489         (read_and_check_comp_unit_head): Ditto.
3490         (read_and_check_type_unit_head): Ditto.
3491
3492 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3493
3494         New attribute 'last' for gdb.Symtab_and_line.
3495         * NEWS (Python Scripting): Add entry about the new attribute.
3496         * python/py-symtab.c (salpy_get_last): New function which
3497         implements the get method for the 'last' attribute of
3498         gdb.Symtab_and_line.
3499         (sal_object_getset): Add entry for the 'last' attribute.
3500
3501 2012-06-26  Doug Evans  <dje@google.com>
3502
3503         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3504         (dwo_sections): Add macinfo, macro.
3505         (dwarf2_locate_dwo_sections): Watch for macro sections.
3506         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3507         All callers updated.  Handle DWO files.
3508
3509         * NEWS: Mention new options "set debug dwarf2-read" and
3510         "set debug symtab-create".
3511         * dwarf2read.c (dwarf2_read_debug): New static global.
3512         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3513         (process_queue): Ditto.
3514         (process_full_comp_unit): Ditto.
3515         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3516         * elfread.c (elf_symfile_read): Add debugging printf.
3517         * minsyms.c (install_minimal_symbols): Ditto.
3518         * psymtab.c (allocate_psymtab): Ditto.
3519         * symfile.c (allocate_symtab): Ditto.
3520         * symtab.c (symtab_create_debug): New global.
3521         (_initialize_symtab): Add new option "set debug symtab-create".
3522         * symtab.h (symtab_create_debug): Declare.
3523
3524         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3525         (lookup_dwo_type_unit): Ditto.
3526
3527 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3528             H.J. Lu  <hongjiu.lu@intel.com>
3529
3530         * amd64-linux-nat.c: Include <sys/user.h>.
3531         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3532         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3533         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3534
3535         * configure.ac: Check if the fs_base and gs_base members of
3536         `struct user_regs_struct' exist.
3537         * config.in: Regenerated.
3538         * configure: Likewise.
3539
3540 2012-06-25  Michael Eager  <eager@eagercon.com>
3541
3542         PR python/14291
3543         * python/python.c (gdbpy_write): Check for interrupted output.
3544
3545 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3546
3547         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3548         register as a stack alignment in ARM mode.
3549
3550 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3551
3552         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3553         * gnulib/config.in: Regenerate.
3554         * gnulib/configure: Likewise.
3555         * gnulib/import/m4/extensions.m4: Update it.
3556         * gnulib/import/m4/gnulib-common.m4: Likewise.
3557         * gnulib/import/m4/memmem.m4: Likewise.
3558         * gnulib/import/m4/mmap-anon.m4: Likewise.
3559         * gnulib/import/m4/multiarch.m4: Likewise.
3560         * gnulib/import/stdint.in.h: Likewise.
3561
3562 2012-06-24  Yao Qi  <yao@codesourcery.com>
3563
3564         * corefile.c (write_memory_with_notification): New.
3565         * gdbcore.h: Declare write_memory_with_notification.
3566         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3567         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3568         * valops.c (value_assign): Likewise.
3569         * python/py-inferior.c (infpy_write_memory): Call
3570         'write_memory_with_notification'.
3571
3572 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3573
3574         * cc-with-index.sh: Use also -ex "set auto-load no".
3575
3576 2012-06-23  Doug Evans  <dje@google.com>
3577
3578         PR 14125
3579         * NEWS: Document additions to .gdb_index.
3580         * dwarf2read.c: #include "gdb/gdb-index.h".
3581         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3582         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3583         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3584         (dwarf2_read_index): Recognize version 7.
3585         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3586         block_kind, domain): All callers updated.
3587         (dw2_find_symbol_file): Handle new index CU values.
3588         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3589         (add_index_entry): New args is_static, kind.  All callers updated.
3590         (offset_type_compare, uniquify_cu_indices): New functions
3591         (symbol_kind): New function.
3592         (write_psymtabs_to_index): Remove duplicate CU values.
3593         (write_psymtabs_to_index): Write .gdb_index version 7.
3594
3595 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3596
3597         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3598         * configure: Regenerate.
3599
3600 2012-06-20  Yao Qi  <yao@codesourcery.com>
3601
3602         * python/py-inferior.c: Update comments of infpy_read_memory
3603         and infpy_write_memory.
3604
3605 2012-06-19  Tom Tromey  <tromey@redhat.com>
3606
3607         PR exp/9514:
3608         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3609         (push_type_address_space): Remove.
3610         * parse.c (insert_into_type_stack): New function.
3611         (insert_type): Likewise.
3612         (insert_type_address_space): Rename from push_type_address_space.
3613         Insert tp_space_identifier.
3614         * c-exp.y (ptr_operator): New production.
3615         (abs_decl): Use ptr_operator.
3616         (space_identifier): Call insert_type_address_space.
3617         (ptype): Don't use const_or_volatile_or_space_identifier.
3618         (const_or_volatile_noopt): Call insert_type.
3619         (conversion_type_id, conversion_declarator): New productions.
3620         (operator): Use conversion_type_id.
3621
3622 2012-06-18  Doug Evans  <dje@google.com>
3623
3624         * symtab.h (minimal_symbol): New member created_by_gdb.
3625         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3626         created by gdb.
3627         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3628         (search_symbols): Call it instead of lookup_symbol.
3629         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3630
3631         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3632         Adjust address for DW_OP_GNU_addr_index.
3633         * dwarf2expr.h (dwarf_expr_context): Update comment.
3634         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3635         all callers updated.  Handle TLS vars described with
3636         DW_OP_GNU_const_index.
3637         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3638         and DW_OP_GNU_const_index.
3639         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3640
3641         * block.c (find_block_in_blockvector): Make explicit the fact that we
3642         ignore GLOBAL_BLOCK.
3643
3644 2012-06-18  Tom Tromey  <tromey@redhat.com>
3645
3646         * c-exp.y (operator): Remove trailing space after "delete" and
3647         "delete[]".
3648
3649 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3650             Jan Kratochvil  <jan.kratochvil@redhat.com>
3651
3652         Switch i386 and derived targets to ON_STACK.
3653         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3654         (amd64_dicos_init_abi): Remove its installment.
3655         * dicos-tdep.c (dicos_init_abi): Remove the
3656         set_gdbarch_call_dummy_location call.  Update the comment here.
3657         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3658         (i386_dicos_init_abi): Remove its installment.
3659         * i386-tdep.c (i386_push_dummy_code): New function.
3660         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3661         i386_push_dummy_code.
3662
3663 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3664
3665         Remove stale dummy frames.
3666         * breakpoint.c: Include dummy-frame.h.
3667         (longjmp_breakpoint_ops): New variable.
3668         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3669         bp_longjmp_call_dummy.
3670         (bpstat_what, bptype_string, print_one_breakpoint_location)
3671         (init_bp_location): Support bp_longjmp_call_dummy.
3672         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3673         (set_longjmp_breakpoint_for_call_dummy)
3674         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3675         functions.
3676         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3677         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3678         FIXME comment and extend the other comment for bp_call_dummy.
3679         (set_longjmp_breakpoint_for_call_dummy)
3680         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3681         * dummy-frame.c: Include gdbthread.h.
3682         (pop_dummy_frame_bpt): New function.
3683         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3684         (dummy_frame_discard): New function.
3685         (cleanup_dummy_frames): Update the comment about longjmps.
3686         * dummy-frame.h (dummy_frame_discard): New declaration.
3687         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3688         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3689         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3690         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3691         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3692         keep_going if IS_LONGJMP and there is no other reason to stop.
3693
3694 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3695
3696         * remote-sim.c (sim_command_completer): Initialize
3697         variable 'result'.
3698
3699 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3700
3701         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3702         * dwarf2loc.c (call_site_parameter_matches): Support
3703         CALL_SITE_PARAMETER_PARAM_OFFSET.
3704         (needs_dwarf_reg_entry_value): Push stub value.
3705         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3706         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3707         * gdbtypes.h (enum call_site_parameter_kind): New item
3708         CALL_SITE_PARAMETER_PARAM_OFFSET.
3709         (struct call_site.parameter.u): New field param_offset.
3710
3711 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3712
3713         Code cleanup: Generalize call_site.parameter key.
3714         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3715         variable dwarf_reg.  New variable kind_u.  Update parameters to
3716         push_dwarf_reg_entry_value.
3717         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3718         * dwarf2expr.h (enum call_site_parameter_kind)
3719         (union call_site_parameter_u): Forward declarations.
3720         (struct dwarf_expr_context_funcs): Update parameters and their
3721         description for push_dwarf_reg_entry_value.
3722         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3723         * dwarf2loc.c (call_site_parameter_matches): New function.
3724         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3725         description.  Use call_site_parameter_matches.
3726         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3727         Update parameters and their description.
3728         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3729         New variable kind_u.  Adjust the caller for updated parameters.
3730         (needs_dwarf_reg_entry_value): Update parameters.
3731         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3732         instead of attr.  Update for the changed fields of struct
3733         call_site_parameter.
3734         * gdbtypes.h: Include dwarf2expr.h.
3735         (enum call_site_parameter_kind): New.
3736         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3737         fb_offset into new union u.
3738
3739 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3740
3741         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3742         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3743         for x32.
3744
3745 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3746
3747         * amd64-linux-nat.c (compat_x32_clock_t): New.
3748         (compat_x32_siginfo_t): Likewise.
3749         (compat_x32_siginfo_from_siginfo): Likewise.
3750         (siginfo_from_compat_x32_siginfo): Likewise.
3751         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3752         and siginfo_from_compat_x32_siginfo for x32.
3753
3754 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3755
3756         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3757
3758 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3759
3760         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3761         instead of gdbarch_ptr_bit.
3762         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3763         (amd64_supply_native_gregset): Likewise.
3764         (amd64_collect_native_gregset): Likewise.
3765         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3766         (amd64_supply_xsave): Likewise.
3767         (amd64_collect_fxsave): Likewise.
3768         (amd64_collect_xsave): Likewise.
3769
3770 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3771
3772         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3773         (amd64_linux_read_description): Check DS segment register for
3774         x32 process.
3775
3776 2012-06-15  Tom Tromey  <tromey@redhat.com>
3777
3778         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3779         init_cutu_and_read_dies.
3780
3781 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3782
3783         * MAINTAINERS (Write After Approval): Add myself to the list.
3784
3785 2012-06-15  Tom Tromey  <tromey@redhat.com>
3786
3787         * valops.c (value_find_oload_method_list): Now static.
3788         * value.h (value_find_oload_method_list): Don't declare.
3789
3790 2012-06-15  Tom Tromey  <tromey@redhat.com>
3791
3792         * valops.c (find_overload_match): Use value_ind.
3793
3794 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
3795
3796         * infrun.c (handle_inferior_event): Correct indentation.
3797
3798 2012-06-14  Doug Evans  <dje@google.com>
3799
3800         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3801         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3802         All uses updated.
3803         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
3804         updated.  Handle DEBUG_LOC_START_LENGTH.
3805         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3806         (loclist_describe_location): Ditto.
3807
3808 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
3809
3810         PR backtrace/13866
3811         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3812         after hiding inline functions.
3813
3814 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3815
3816         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3817         _initialize_inf_ttrace.
3818
3819 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3820
3821         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3822         _initialize_hppa_hpux_nat.
3823
3824 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3825
3826         * remote-sim.c (sim_command_completer): Change type of return
3827         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
3828
3829 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3830             Jan Kratochvil  <jan.kratochvil@redhat.com>
3831
3832         PR tdep/14222
3833         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3834         stack on a 16-byte boundary.
3835
3836 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
3837
3838         * jit.c (finalize_symtab): Set function's return type to 'void' by
3839         default.
3840
3841 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3842             H.J. Lu  <hongjiu.lu@intel.com>
3843
3844         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3845         Move bits common to both the classic LP64 and the new x32 ILP32
3846         ABI here.
3847         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3848         (amd64_x32_linux_init_abi): New function.
3849         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3850         subtype.
3851
3852         * i386-tdep.h (i386_pseudo_register_name): New prototype.
3853         * i386-tdep.c (i386_pseudo_register_name): Make public.
3854         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3855         * amd64-tdep.c (amd64_dword_names): Add "eip".
3856         (amd64_x32_pseudo_register_type): New function
3857         (amd64_x32_init_abi): New function.
3858
3859 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3860
3861         PR build/14003
3862         * inferior.h (struct inferior_suspend_state): Comment out.
3863         (struct inferior): Comment out the field suspend.
3864         * infrun.c (struct infcall_suspend_state): Comment out the field
3865         inferior_suspend.
3866         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3867         out its assignment.
3868
3869 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3870
3871         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3872         * c-exp.y (classify_inner_name): Remove caller assumptions in the
3873         function comment.  Return ERROR for unresolved cases.  Implement
3874         returning proper NAME.
3875         (yylex): Accept also NAME from classify_inner_name.
3876         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3877         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
3878         LOC_TYPEDEF type.
3879         * cp-support.h (cp_lookup_nested_type): Update its declaration.
3880
3881 2012-06-13  Tom Tromey  <tromey@redhat.com>
3882
3883         * breakpoint.c (condition_completer): New function.
3884         (_initialize_breakpoint): Use it.
3885         * value.c (complete_internalvar): New function.
3886         * value.h (complete_internalvar): Declare.
3887
3888 2012-06-13  Tom Tromey  <tromey@redhat.com>
3889
3890         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3891         * breakpoint.c (catch_syscall_completer): Return a VEC.
3892         * cli/cli-cmds.c (complete_command): Update.
3893         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3894         (complete_on_enum): Likewise.
3895         * command.h: Include gdb_vecs.h.
3896         (completer_ftype): Change return type.
3897         (complete_on_cmdlist, complete_on_enum): Likewise.
3898         * completer.c (noop_completer, filename_completer)
3899         (location_completer): Return a VEC.
3900         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
3901         to a VEC.
3902         (expression_completer, complete_line_internal, complete_line)
3903         (command_completer): Return a VEC.
3904         (gdb_completion_word_break_characters, line_completion_function):
3905         Update.
3906         * completer.h: Include gdb_vecs.h.
3907         (complete_line, noop_completer, filename_completer)
3908         (expression_completer, location_completer, command_completer):
3909         Update.
3910         * f-lang.c (f_word_break_characters): Return a VEC.
3911         * interps.c (interpreter_completer): Return a VEC.
3912         * language.h (struct language_defn)
3913         <la_make_symbol_completion_list>: Return a VEC.
3914         * python/py-cmd.c (cmdpy_completer): Return a VEC.
3915         * symtab.c (free_completion_list): Take a VEC.
3916         (return_val_size, return_val_index): Remove.
3917         (return_val): Now a VEC.
3918         (completion_list_add_name): Update.
3919         (default_make_symbol_completion_list_break_on)
3920         (default_make_symbol_completion_list, make_symbol_completion_list)
3921         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3922         Return a VEC.
3923         (add_filename_to_list): Update.
3924         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3925         <list>: Now a VEC.
3926         (maybe_add_partial_symtab_filename): Update.
3927         (make_source_files_completion_list): Return a VEC.
3928         * symtab.h (default_make_symbol_completion_list_break_on)
3929         (default_make_symbol_completion_list, make_symbol_completion_list)
3930         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3931         (make_source_files_completion_list): Update.
3932
3933 2012-06-13  Tom Tromey  <tromey@redhat.com>
3934
3935         * breakpoint.c (add_catch_command): Use completer_ftype.
3936         * breakpoint.h: Include command.h.
3937         (add_catch_command): Use completer_ftype.
3938         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3939         * cli/cli-decode.h (struct cmd_list_element) <completer>:
3940         Use completer_ftype.
3941         * command.h (completer_ftype): New typedef.
3942         (set_cmd_completer): Use it.
3943         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3944         completer_ftype.
3945
3946 2012-06-13  Pedro Alves  <palves@redhat.com>
3947
3948         Partial revert of previous change.
3949
3950         * serial.c (scb_base): New global.
3951         (serial_for_fd): New.
3952         (serial_open, serial_fdopen_ops): Link new serial in open serials
3953         chain.
3954         (do_serial_close): Unlink serial from the open serials chain.
3955
3956 2012-06-12  Pedro Alves  <palves@redhat.com>
3957
3958         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3959         threads here.
3960         (prepare_for_detach): No longer context switch here in non-stop
3961         mode.
3962         (fetch_inferior_event): Ditto.
3963         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3964         to the event thread before removing breakpoints.  Switch to the
3965         event thread before inserting breakpoints and resuming.
3966         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3967         event thread before resuming.
3968         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3969         Switch to the event thread before removing breakpoints.
3970
3971 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
3972
3973         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3974         special characters correctly for the Windows shells.  See
3975         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3976         report.
3977         [!__MINGW32__]: Remove extra double quote character from special
3978         characters.
3979
3980 2012-06-11  Stan Shebs  <stan@codesourcery.com>
3981
3982         * ui-out.h: Remove #if 0 declarations.
3983         * ui-out.c: Remove #if 0 functions.
3984
3985 2012-06-11  Pedro Alves  <palves@redhat.com>
3986
3987         * ser-base.c (run_async_handler_and_reschedule): New.
3988         (fd_event, push_event): Use it.
3989         * serial.c (serial_open, serial_fdopen_ops): Set the initial
3990         reference count to 1.
3991         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
3992         instead of xfree.
3993         (serial_is_open, serial_ref, serial_unref): New.
3994         * serial.h (serial_open): Adjust comment.
3995         (serial_is_open): Declare.
3996         (serial_close): Adjust comment.
3997         (serial_ref, serial_unref) Declare.
3998         (struct serial): New field 'refcnt'.
3999
4000 2012-06-11  Pedro Alves  <palves@redhat.com>
4001
4002         Remove #if 0'd "connect" command, and unnecessary associated
4003         refcounting and serial reuse bits.
4004
4005         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4006         * serial.c (last_serial_opened): Delete.
4007         (scb_base): Delete.
4008         (serial_open): Adjust.
4009         (serial_for_fd): Delete.
4010         (serial_fdopen_ops, do_serial_close): Adjust.
4011         (serial_fdopen_ops): Adjust.
4012
4013 2012-06-11  Pedro Alves  <palves@redhat.com>
4014
4015         * serial.c (do_serial_close): Remove early return when SCB is
4016         null.
4017
4018 2012-06-11  Tom Tromey  <tromey@redhat.com>
4019
4020         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4021
4022 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4023
4024         Fix regression by the "ambiguous linespec" series.
4025         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4026         get_last_displayed_symtab and get_last_displayed_line and depending
4027         on CURSAL.
4028
4029 2012-06-11  Tom Tromey  <tromey@redhat.com>
4030
4031         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4032         (dw2_find_symbol_file): Use it.
4033
4034 2012-06-11  Michael Eager  <eager@eagercon.com>
4035
4036         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4037         * mips-linux-tdep.h (mips_signals): New
4038
4039 2012-06-11  Tom Tromey  <tromey@redhat.com>
4040
4041         * infrun.c (handle_inferior_event)
4042         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4043         breakpoint.
4044         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4045         exception logic in all cases.  Update comments.
4046         (insert_longjmp_resume_breakpoint): Set the exception resume
4047         breakpoint.
4048
4049 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4050
4051         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4052
4053 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4054
4055         * valarith.c (binop_types_user_defined_p): Fix a typo.
4056
4057 2012-06-08  Yao Qi  <yao@codesourcery.com>
4058             Chung-Lin Tang <cltang@codesourcery.com>
4059
4060         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4061         * arch-utils.h: Declare.
4062         * gdbarch.sh: Add return_in_first_hidden_param_p.
4063         * gdbarch.c, gdbarch.h: Regenerated.
4064         * infcall.c (call_function_by_hand): Call
4065         gdbarch_return_in_first_hidden_param_p instead of
4066         language_pass_by_reference.
4067
4068         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4069         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4070         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4071         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4072         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4073         `cplus_return_struct_by_reference'.
4074         (tic6x_return_value): Handle language cplusplus.
4075         (tic6x_return_in_first_hidden_param_p): New.
4076         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4077
4078 2012-06-07  Doug Evans  <dje@google.com>
4079
4080         * dwarf2read.c (dwarf2_cu): Add comment.
4081
4082 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4083
4084         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4085         variable.
4086         (mips_eabi_push_dummy_call): Likewise.
4087         (mips_n32n64_push_dummy_call): Likewise.
4088         (mips_o32_push_dummy_call): Likewise.
4089         (mips_o64_push_dummy_call): Likewise.
4090
4091 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4092
4093         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4094
4095 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4096
4097         * mips-tdep.c (mips_pseudo_register_type): Use
4098         mips_float_register_p.
4099
4100 2012-06-06  Pedro Alves  <palves@redhat.com>
4101
4102         * infrun.c (handle_inferior_event): Remove calls to
4103         reinit_frame_cache that follow a context_switch call.
4104
4105 2012-06-06  Pedro Alves  <palves@redhat.com>
4106
4107         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4108         context_switch and remove stale comment.
4109
4110 2012-06-06  Pedro Alves  <palves@redhat.com>
4111
4112         * infrun.c (struct execution_control_state): Remove
4113         `new_thread_event' field.
4114         (handle_inferior_event): Simplify new threads handling; don't
4115         resume the inferior if we find a new thread.
4116
4117 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4118
4119         * NEWS: Document the deprecation of SH's 'regs' command.
4120         * inferior.h (all_registers_info): Add function declaration.
4121         * sh-tdep.c (sh_show_regs): Remove variable.
4122         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4123         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4124         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4125         (sh_show_regs_command): Remove functions.
4126         (sh_gdbarch_init): Don't set sh_show_regs.
4127         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4128         'info all-registers'.
4129         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4130         (sh64_show_regs): Remove functions.
4131         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4132
4133 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4134
4135         * configure.ac: Move development=true below AC_INIT.
4136         * configure: Regenerate.
4137
4138 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4139
4140         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4141         gdb_stdout.
4142
4143 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4144
4145         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4146         argument as ssize_t.
4147         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4148         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4149         * target.c (target_read_stack, target_write_memory)
4150         (target_write_raw_memory): Likewise.
4151         * target.h (target_read_stack, target_write_memory)
4152         (target_write_raw_memory): Likewise.
4153
4154 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4155
4156         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4157         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4158         * target.c (target_read_memory): Change LEN to ssize_t.
4159         * target.h (target_read_memory): Change LEN to ssize_t.
4160
4161 2012-06-05  Pedro Alves  <palves@redhat.com>
4162
4163         PR backtrace/13866
4164
4165         * breakpoint.c (until_break_command): Only fetch the selected
4166         frame after decode_line_1.
4167
4168 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4169
4170         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4171         event breakpoint at _start, __start or main if a program
4172         interpreter is not found.
4173
4174 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4175
4176         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4177         Add declaration.
4178         * windows-tdep.c: #include "objfiles.h".
4179         (windows_iterate_over_objfiles_in_search_order): New function.
4180         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4181         iterate_over_objfiles_in_search_order gdbarch method to
4182         windows_iterate_over_objfiles_in_search_order.
4183         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4184
4185 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4186
4187         * gdbarch.sh: Add generation of
4188         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4189         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4190         (iterate_over_objfiles_in_search_order): New gdbarch method.
4191         * gdbarch.h, gdbarch.c: Regenerate.
4192         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4193         Add declaration.
4194         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4195         New function.
4196         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4197         out of lookup_symbol_aux_symtabs.
4198         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4199         call to lookup_symbol_aux_objfile.
4200         (struct global_sym_lookup_data): New type.
4201         (lookup_symbol_global_iterator_cb): New function.
4202         (lookup_symbol_global): Search for symbol using
4203         gdbarch_iterate_over_objfiles_in_search_order and
4204         lookup_symbol_global_iterator_cb.
4205         * findvar.c (struct minsym_lookup_data): New type.
4206         (minsym_lookup_iterator_cb): New function.
4207         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4208         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4209         and minsym_lookup_iterator_cb.
4210
4211 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4212
4213         Revert the following patch:
4214         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4215         try locating the symbol in the symbol's own objfile first, before
4216         extending the search to all objfiles.
4217         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4218         out of lookup_symbol_aux_symtabs.
4219         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4220         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4221         Do not search EXCLUDE_OBJFILE.
4222         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4223         (lookup_symbol_global): Search for matches in the block's objfile
4224         first, before searching all other objfiles.
4225
4226 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4227
4228         * breakpoint.c (find_condition_and_thread): Stop parsing
4229         as soon as the first invalid keyword is found.
4230
4231 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4232
4233         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4234
4235 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4236
4237         * config/djgpp/djcheck.sh: Add copyright header.
4238
4239 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4240
4241         * copyright.py (update_files, main): Fix path to update-copyright
4242         script.
4243
4244 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4245
4246         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4247         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4248         for which a reminder to update by hand is printed.
4249
4250 2012-06-04  Doug Evans  <dje@google.com>
4251
4252         * buildsym.c (make_blockvector): Add comment.
4253
4254 2012-06-04  Pedro Alves  <palves@redhat.com>
4255
4256         * arch-utils.c (default_gdb_signal_from_target): Delete.
4257         * arch-utils.h (default_gdb_signal_from_target): Delete.
4258         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4259         gdbarch_gdb_signal_from_target_p.
4260         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4261         predicate).
4262         * gdbarch.h: Regenerate.
4263         * gdbarch.c: Regenerate.
4264
4265 2012-06-04  Pedro Alves  <palves@redhat.com>
4266
4267         * gdbarch.sh (gdb_signal_from_target): Mention that the
4268         implementation of the method must be host independent.
4269         * gdbarch.h: Regenerate.
4270
4271 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4272
4273         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4274         parameters.
4275         (target_read_memory_bfd): New function.
4276         (symbol_file_add_from_memory): Use it.
4277
4278 2012-06-03  Doug Evans  <dje@google.com>
4279
4280         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4281         of primary symtab.
4282         (basic_lookup_transparent_type): Ditto.
4283
4284         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4285         (ALL_PRIMARY_SYMTABS): Use it.
4286         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4287         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4288         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4289         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4290         (basic_lookup_transparent_type): Ditto.
4291
4292 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4293
4294         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4295         it to optimize resolution of demangled name.
4296
4297 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4298
4299         * configure.ac (development): Define new variable.
4300         Call AC_CHECK_LIB for mcheck if $development.
4301         (ERROR_ON_WARNING): Enable it by default only if $development.
4302         * config.in: Regenerate.
4303         * configure: Regenerate.
4304
4305 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4306
4307         * target.c (target_read_memory): Make LEN argument as size_t.
4308         * target.h (target_read_memory): Likewise.
4309
4310 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4311
4312         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4313
4314 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4315
4316         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4317         BookE interface for PowerPC server processors if not available
4318         in the Linux Kernel.
4319
4320 2012-05-31  Keith Seitz  <keiths@redhat.com>
4321
4322         * linespec.c (decode_objc): Add cleanup to free
4323         INFO.FILE_SYMTABS.
4324         (find_linespec_symbols): Add cleanup to free CLASSES.
4325         * symfile.c (find_separate_debug_file_by_debuglink): Add
4326         cleanup to free DEBUGLINK.
4327         * ui-out.c (clear_header_list): No need to check if
4328         HEADER_NEXT.COLHDR is NULL.
4329         Free HEADER_NEXT.COL_NAME.
4330
4331 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4332
4333         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4334         warning.
4335
4336 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4337
4338         * configure.host (gdb_host_cpu): Handle tilegx*.
4339         (gdb_host): Handle tilegx-*-linux*.
4340         * tilegx-linux-nat.c: New file.
4341         * config/tilegx/linux.mh: New file.
4342
4343 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4344
4345         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4346         tilegx-linux-tdep.o.
4347         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4348         tilegx-linux-tdep.c.
4349         * configure.tgt: Handle tilegx-*-linux*.
4350         * tilegx-tdep.h: New file.
4351         * tilegx-tdep.c: New file.
4352         * tilegx-linux-tdep.c: New file.
4353         * regformats/reg-tilegx.dat: New file.
4354
4355 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4356
4357         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4358         accounting of hw watchpoints on ppc.
4359
4360 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4361
4362         * source.c (openp): Expand tilde in path entries.
4363
4364 2012-05-29  Doug Evans  <dje@google.com>
4365
4366         * buildsym.c (block_compar): Fix comment.
4367         (end_symtab): Fix and clarify some comments.
4368
4369         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4370         cleanup_undefined_types.
4371         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4372         All callers updated.
4373
4374 2012-05-29  Tom Tromey  <tromey@redhat.com>
4375
4376         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4377         fails.
4378         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4379         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4380         fails.
4381         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4382         fails.
4383
4384 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4385
4386         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4387         (struct darwin_info): ... New struct.
4388         (solib_darwin_pspace_data): New variable.
4389         (darwin_pspace_data_cleanup): New function.
4390         (get_darwin_info): Likewise.
4391         (darwin_dyld_version_ok, darwin_load_image_infos)
4392         (darwin_solib_get_all_image_info_addr_at_init)
4393         (darwin_solib_read_all_image_info_addr): Add info argument.
4394         Adjust code.
4395         (darwin_current_sos): Use per pspace structure.
4396         (darwin_solib_create_inferior_hook): Likewise.
4397         (darwin_clear_solib): Likewise.
4398         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4399
4400 2012-05-28  Pedro Alves  <palves@redhat.com>
4401
4402         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4403         block that uses them.  Clear ecss before handling each event.
4404
4405 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4406
4407         * solib-svr4.c (svr4_current_sos): New comment on
4408         svr4_current_sos_via_xfer_libraries fall back.
4409
4410 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4411
4412         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4413         it as a fallback for TYPE_IS_OPAQUE.
4414         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4415         symbols for lookup_symbol.
4416
4417 2012-05-24  John Steele Scott  <toojays@toojays.net>
4418
4419         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4420         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4421         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4422         (check_producer): ... this new function, which also checks for ICC
4423         and caches the result.
4424         (producer_is_icc): New function.
4425         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4426         producer was ICC.
4427
4428 2012-05-24  Pedro Alves  <palves@redhat.com>
4429
4430         PR gdb/7205
4431
4432         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4433         (default_gdb_signal_to_target): ... this.  Add comment.
4434         (default_gdb_signal_from_host): Rename to ...
4435         (default_gdb_signal_from_target): ... this.  Add comment.
4436         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4437         (default_gdb_signal_to_target): ... this.
4438         (default_gdb_signal_from_host): Rename to ...
4439         (default_gdb_signal_from_target): ... this.
4440         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4441         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4442         (gdb_signal_from_target): ... this.  Adjust to
4443         default_gdb_signal_from_host naming change.  Extend comment.
4444         (gdb_signal_to_host): Rename to ...
4445         (gdb_signal_to_target): ... this.  Adjust to
4446         default_gdb_signal_to_host naming change.
4447         * gdbarch.h, gdbarch.c: Renegerate.
4448
4449 2012-05-24  Pedro Alves  <palves@redhat.com>
4450
4451         PR gdb/7205
4452
4453         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4454
4455 2012-05-24  Pedro Alves  <palves@redhat.com>
4456
4457         PR gdb/7205
4458
4459         Replace target_signal with gdb_signal throughout.
4460
4461 2012-05-24  Pedro Alves  <palves@redhat.com>
4462
4463         PR tui/14159
4464
4465         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4466         string, instead of reusing the va_list argument.
4467
4468 2012-05-24  Tom Tromey  <tromey@redhat.com>
4469
4470         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4471         Remove.
4472
4473 2012-05-23  Doug Evans  <dje@google.com>
4474
4475         * symtab.c (search_symbols): Formatting fixes.
4476         (print_symbol_info): Formatting fixes.
4477
4478         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4479         int64_t change to leb128 API.
4480         (read_encoded_value, decode_frame_entry_1): Ditto.
4481         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4482         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4483         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4484         (execute_stack_op): Ditto.
4485         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4486         (safe_read_uleb128, safe_read_sleb128): Ditto.
4487         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4488         (dwarf2_compile_expr_to_ax): Ditto.
4489         (locexpr_describe_location_piece): Ditto.
4490         (disassemble_dwarf_expression): Ditto.
4491         (locexpr_describe_location_1): Ditto.
4492
4493 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4494             Kwok Cheung Yeung  <kcy@codesourcery.com>
4495
4496         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4497         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4498         (mi-cmd-info.o): New rule.
4499         * osdata.h (info_osdata_command): New declaration.
4500         * osdata.c (info_osdata_command): Change to non-static.
4501         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4502         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4503         * mi/mi-cmd-info.c: New file.
4504
4505 2012-05-23  Doug Evans  <dje@google.com>
4506
4507         * symtab.c (search_symbols): Pass NULL for file_matcher to
4508         expand_symtabs_matching if there are no files to match.
4509
4510         * gdbtypes.c (lookup_typename): Simplify.
4511
4512 2012-05-23  Pedro Alves  <palves@redhat.com>
4513
4514         * arch-utils.h (default_target_signal_to_host): Delete.
4515         * arch-utils.c (default_target_signal_to_host): Delete.
4516         * gdbarch.sh (target_signal_to_host): Remove.
4517         * gdbarch.h, gdbarch.c: Regenerate.
4518
4519 2012-05-22  Doug Evans  <dje@google.com>
4520
4521         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4522         "const gdb_byte *".
4523         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4524         (execute_cfa_program): Update to match API of leb128 functions.
4525         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4526         "const gdb_byte *".
4527         (read_unsigned_leb128, read_signed_leb128): Delete.
4528         (read_initial_length): Change type of buf argument to
4529         "const gdb_byte *".
4530         (read_encoded_value): Update to match API of leb128 functions.
4531         (decode_frame_entry): Change result to "const gdb_byte *", and
4532         similarly for "start" parameter.
4533         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4534         (dwarf2_build_frame_info): Change local frame_ptr to
4535         "const gdb_byte *".
4536         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4537         read_uleb128, read_sleb128.  All callers updated.
4538         (safe_skip_leb128): New function.
4539         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4540         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4541         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4542         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4543         read_uleb128, read_sleb128.
4544         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4545         (execute_stack_op): Update to match API of leb128 functions.
4546         * dwarf2expr.h: #include "leb128.h".
4547         (read_uleb128, read_sleb128): Delete.
4548         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4549         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4550         * dwarf2loc.c (debug_loc_kind): New enum.
4551         (decode_debug_loc_addresses): New function.
4552         (decode_debug_loc_dwo_addresses): New function.
4553         (dwarf2_find_location_expression): Rewrite.
4554         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4555         (locexpr_describe_location_piece): Ditto.
4556         (disassemble_dwarf_expression): Ditto.
4557         (locexpr_describe_location_1): Ditto.
4558         (loclist_describe_location): Rewrite.
4559         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4560         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4561         (dwarf2_section_buffer_overflow_complaint): Renamed from
4562         dwarf2_macros_too_long_complaint.  All callers updated.
4563         (skip_leb128): Delete.
4564         (init_cu_die_reader): Initialize reader->buffer_end.
4565         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4566         (skip_form_bytes): New arg buffer_end.  All callers updated.
4567         Replace call to skip_leb128 with gdb_skip_leb128.
4568         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4569         (fill_in_loclist_baton): Initialize baton->from_dwo.
4570
4571 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4572
4573         * mips-linux-nat.c (mips_linux_read_description): Use a more
4574         verbose error message.
4575
4576 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4577
4578         * NEWS: Add MIPS/Linux DSP support.
4579         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4580         (SIGCONTEXT_DSPCTL): New macro.
4581         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4582         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4583         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4584         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4585         (N64_SIGCONTEXT_HI3): Likewise.
4586         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4587         (N64_SIGCONTEXT_LO3): Likewise.
4588         (N64_SIGCONTEXT_DSPCTL): Likewise.
4589         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4590         (mips_linux_o32_sigframe_init): Handle DSP registers.
4591         (mips_linux_n32n64_sigframe_init): Likewise.
4592
4593 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4594
4595         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4596         call to abort.
4597
4598 2012-05-22  Pedro Alves  <palves@redhat.com>
4599
4600         * target.h (store_waitstatus): Move declaration ...
4601         * inf-child.h (store_waitstatus): ... here.
4602         * target.c: Move inclusion of gdb_wait.h, and ...
4603         (store_waitstatus): ... this ...
4604         * inf-child.c: ... here.
4605         * linux-nat.c: Include inf-child.h.
4606         * rs6000-nat.c: Include inf-child.h.
4607         * spu-linux-nat.c: Include inf-child.h.
4608
4609 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4610
4611         * tracepoint.c (start_tracing): Add missing i18n markup.
4612         (stop_tracing, set_trace_user): Ditto.
4613         (set_trace_notes, set_trace_stop_notes): Ditto.
4614
4615 2012-05-21  Tom Tromey  <tromey@redhat.com>
4616
4617         PR c++/7173:
4618         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4619         types.
4620         * value.h (value_cast_pointers): Update.
4621         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4622         (value_cast): Update.
4623         (update_search_result): New function.
4624         (do_search_struct_field): New, from search_struct_field.  Check
4625         for ambiguous results.
4626         (search_struct_field): Rewrite.
4627         * infcall.c (value_arg_coerce): Update.
4628         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4629         value_cast_pointers.
4630         * ada-lang.c (ada_convert_actual): Update.
4631
4632 2012-05-21  Tom Tromey  <tromey@redhat.com>
4633
4634         * macroexp.c (macro_stringify): Terminate the string.
4635
4636 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4637
4638         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4639         Describe it.
4640         * auto-load.c (auto_load_expand_dir_vars): New function.
4641         (auto_load_safe_path_vec_update): Use it, remove the
4642         substitute_path_component call thanks to it.
4643         (auto_load_objfile_script): Remove the debug_file_directory processing.
4644         Use auto_load_expand_dir_vars, remove the substitute_path_component
4645         call thanks to it.
4646         * configure: Regenerate.
4647         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4648         path.  Escape $ also for $debugdir.
4649         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4650         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4651
4652 2012-05-20  Doug Evans  <dje@google.com>
4653
4654         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4655         before use.  Check for symtab->includes == NULL before scanning it.
4656
4657 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4658
4659         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4660
4661 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4662
4663         * NEWS: Add microMIPS support and "set mips compression",
4664         "show mips compression" commands.
4665         * mips-tdep.h (mips_isa): New enum.
4666         (gdbarch_tdep): Add mips_isa.
4667         (mips_pc_is_mips16): Update prototype.
4668         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4669         * mips-tdep.c (mips_compression_mips16): New variable.
4670         (mips_compression_micromips): Likewise.
4671         (mips_compression_strings): Likewise.
4672         (mips_compression_string): Likewise.
4673         (is_mips16_isa, is_micromips_isa): New functions.
4674         (is_mips16_addr): Rename to...
4675         (is_compact_addr): ... this.
4676         (unmake_mips16_addr): Likewise to...
4677         (unmake_compact_addr): ... this.
4678         (make_mips16_addr): Likewise to...
4679         (make_compact_addr): ... this.
4680         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4681         functions.
4682         (mips_elf_make_msymbol_special): Handle microMIPS code.
4683         (msymbol_is_special): Rename to...
4684         (msymbol_is_mips16): ... this.
4685         (mips_make_symbol_special, mips_pc_is_mips16): Update
4686         accordingly.
4687         (msymbol_is_mips, msymbol_is_micromips): New functions.
4688         (mips16_to_32_reg): Rename to...
4689         (mips_reg3_to_reg): ... this.
4690         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4691         (mips_pc_isa): Likewise.
4692         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4693         code.
4694         (mips_fetch_instruction): Pass return status instead of printing
4695         an error message if requested.  Handle microMIPS code.  Bail out
4696         on an invalid ISA.
4697         (micromips_op): New macro.
4698         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4699         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4700         (b6s4_op, b7s3_reg): Likewise.
4701         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4702         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4703         (mips_insn_size): New function.
4704         (mips32_next_pc): Update mips_fetch_instruction call.
4705         (micromips_relative_offset7): New function.
4706         (micromips_relative_offset10): Likewise.
4707         (micromips_relative_offset16): Likewise.
4708         (micromips_pc_insn_size): Likewise.
4709         (micromips_bc1_pc): Likewise.
4710         (micromips_next_pc): Likewise.
4711         (unpack_mips16): Update mips_fetch_instruction call.
4712         (extended_mips16_next_pc): Update according to change to
4713         mips16_to_32_reg.
4714         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4715         code.
4716         (mips16_scan_prologue): Update mips_fetch_instruction call.
4717         Update according to change to mips16_to_32_reg.
4718         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4719         (mips_insn16_frame_base_sniffer): Likewise.
4720         (micromips_decode_imm9): New function.
4721         (micromips_scan_prologue): Likewise.
4722         (mips_micro_frame_cache): Likewise.
4723         (mips_micro_frame_this_id): Likewise.
4724         (mips_micro_frame_prev_register): Likewise.
4725         (mips_micro_frame_sniffer): Likewise.
4726         (mips_micro_frame_unwind): New variable.
4727         (mips_micro_frame_base_address): New function.
4728         (mips_micro_frame_base): New variable.
4729         (mips_micro_frame_base_sniffer): New function.
4730         (mips32_scan_prologue): Update mips_fetch_instruction call.
4731         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4732         rather than for MIPS16.
4733         (mips_insn32_frame_base_sniffer): Likewise.
4734         (mips_addr_bits_remove): Handle microMIPS code.
4735         (deal_with_atomic_sequence): Rename to...
4736         (mips_deal_with_atomic_sequence): ... this.  Update the type
4737         of the variable used to hold an instruction.  Remove the ISA bit
4738         check.  Update mips_fetch_instruction call.
4739         (micromips_deal_with_atomic_sequence): New function.
4740         (deal_with_atomic_sequence): Likewise.
4741         (mips_about_to_return): Handle microMIPS code.  Update
4742         mips_fetch_instruction call.
4743         (heuristic_proc_start): Check for the standard MIPS ISA rather
4744         than for MIPS16.  Update mips_pc_is_mips16 and
4745         mips_fetch_instruction calls.  Handle microMIPS code.
4746         (mips_push_dummy_code): Handle microMIPS code.
4747         (mips_eabi_push_dummy_call): Likewise.
4748         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4749         (mips_o64_push_dummy_call): Handle microMIPS code.
4750         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4751         (is_delayed): Remove function.
4752         (mips_single_step_through_delay): Replace the call to is_delayed
4753         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4754         Handle microMIPS code.
4755         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4756         microMIPS code.
4757         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4758         call.
4759         (micromips_in_function_epilogue_p): New function.
4760         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4761         call.
4762         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4763         Handle microMIPS.
4764         (gdb_print_insn_mips): Likewise.
4765         (mips_breakpoint_from_pc): Likewise.
4766         (mips_remote_breakpoint_from_pc): New function.
4767         (mips32_instruction_has_delay_slot): Simplify making use of the
4768         updated mips_fetch_instruction interface.
4769         (micromips_instruction_has_delay_slot): New function.
4770         (mips16_instruction_has_delay_slot): Simplify making use of the
4771         updated mips_fetch_instruction interface.
4772         (mips_adjust_breakpoint_address): Check for the standard MIPS
4773         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4774         calls.  Handle microMIPS code.
4775         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4776         (mips_skip_trampoline_code): Handle microMIPS code.
4777         (global_mips_compression): New function.
4778         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4779         file flags.  Register the microMIPS remote breakpoint handler
4780         and heuristic frame unwinder.
4781         (show_mips_compression): New function.
4782         (_initialize_mips_tdep): Add the "set mips compression" and
4783         "show mips compression" commands.
4784
4785 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4786
4787         * ada-lang.c:
4788         * ada-tasks.c:
4789         * ada-varobj.c:
4790         * amd64-darwin-tdep.c:
4791         * arm-symbian-tdep.c:
4792         * arm-tdep.c:
4793         * avr-tdep.c:
4794         * ax-gdb.c:
4795         * bfin-linux-tdep.c:
4796         * breakpoint.c:
4797         * c-valprint.c:
4798         * cli/cli-cmds.c:
4799         * coffread.c:
4800         * cp-support.c:
4801         * cris-tdep.c:
4802         * dwarf2-frame-tailcall.c:
4803         * dwarf2-frame.c:
4804         * dwarf2expr.c:
4805         * dwarf2loc.c:
4806         * dwarf2read.c:
4807         * elfread.c:
4808         * eval.c:
4809         * expprint.c:
4810         * f-valprint.c:
4811         * frv-tdep.c:
4812         * h8300-tdep.c:
4813         * hppa-hpux-tdep.c:
4814         * hppa-tdep.c:
4815         * hppanbsd-tdep.c:
4816         * i386-nto-tdep.c:
4817         * i386-tdep.c:
4818         * i387-tdep.c:
4819         * ia64-tdep.c:
4820         * jit.c:
4821         * linespec.c:
4822         * linux-tdep.c:
4823         * lm32-tdep.c:
4824         * m2-valprint.c:
4825         * m32c-tdep.c:
4826         * m32r-rom.c:
4827         * m32r-tdep.c:
4828         * m68k-tdep.c:
4829         * m68klinux-tdep.c:
4830         * mi/mi-main.c:
4831         * microblaze-tdep.c:
4832         * mips-linux-tdep.c:
4833         * mips-tdep.c:
4834         * mn10300-tdep.c:
4835         * p-valprint.c:
4836         * parse.c:
4837         * ppc-linux-tdep.c:
4838         * ppc-sysv-tdep.c:
4839         * printcmd.c:
4840         * python/py-finishbreakpoint.c:
4841         * python/py-inferior.c:
4842         * python/py-infthread.c:
4843         * python/py-type.c:
4844         * python/python.c:
4845         * remote-fileio.c:
4846         * remote-m32r-sdi.c:
4847         * remote-mips.c:
4848         * reverse.c:
4849         * rl78-tdep.c:
4850         * rs6000-aix-tdep.c:
4851         * rs6000-tdep.c:
4852         * s390-tdep.c:
4853         * score-tdep.c:
4854         * sh64-tdep.c:
4855         * skip.c:
4856         * solib-darwin.c:
4857         * solib-dsbt.c:
4858         * solib-frv.c:
4859         * sparc-tdep.c:
4860         * spu-multiarch.c:
4861         * spu-tdep.c:
4862         * stack.c:
4863         * symfile.c:
4864         * symtab.c:
4865         * tic6x-tdep.c:
4866         * tracepoint.c:
4867         * v850-tdep.c:
4868         * valarith.c:
4869         * valprint.c:
4870         * value.c:
4871         * xcoffread.c:
4872         * xtensa-tdep.c:
4873         * ada-lang.c:
4874         * ada-tasks.c:
4875         * ada-varobj.c:
4876         * amd64-darwin-tdep.c:
4877         * arm-symbian-tdep.c:
4878         * arm-tdep.c: Delete unused variables.
4879
4880 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4881
4882         Rename $ddir to $datadir.
4883         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4884         * auto-load.c (auto_load_safe_path_vec_update)
4885         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4886         * configure: Regenerate.
4887         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4888         Likewise.  Remove the 'use $ddir' help string.
4889
4890 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4891
4892         * auto-load.c (show_auto_load_safe_path): Accept any combination of
4893         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4894
4895 2012-05-18  Tom Tromey  <tromey@redhat.com>
4896
4897         PR exp/13907:
4898         * valprint.h (struct value_print_options) <symbol_print>: New
4899         field.
4900         * valprint.c (user_print_options): Add default for symbol_print.
4901         (show_symbol_print): New function.
4902         (generic_val_print): Respect symbol_print.
4903         (_initialize_valprint): Add "print symbol" setting.
4904         * f-valprint.c (f_val_print): Respect symbol_print.
4905         * c-valprint.c (c_val_print): Respect symbol_print.
4906         * NEWS: Update.
4907         * printcmd.c (print_address_symbolic): Return int.  Ignore some
4908         zero-size symbols.
4909         (print_address_demangle): Return int.
4910         * defs.h: (print_address_symbolic): Return int.
4911         * value.h (print_address_demangle): Return int.
4912
4913 2012-05-18  Tom Tromey  <tromey@redhat.com>
4914
4915         * valprint.c (val_print_string): Don't print leading space.
4916         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4917         print space before string or vtbl.
4918         * m2-valprint.c (print_unpacked_pointer): Optionally print space
4919         before string.
4920         * jv-valprint.c (java_value_print): Print space before string.
4921         * go-valprint.c (print_go_string): Print space before string.
4922         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4923         space before string.
4924         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4925         space before string or vtbl.
4926         * auxv.c (fprint_target_auxv): Print space after address.
4927
4928 2012-05-18  Tom Tromey  <tromey@redhat.com>
4929
4930         * printcmd.c (print_address_demangle): Remove special case for 0.
4931
4932 2012-05-18  Tom Tromey  <tromey@redhat.com>
4933
4934         * printcmd.c (print_address_demangle): Add 'opts' argument.
4935         * p-valprint.c (pascal_val_print): Update.
4936         * jv-valprint.c (java_val_print): Update.
4937         * value.h: Update.
4938         * valprint.c (generic_val_print): Update.
4939         (print_function_pointer_address): Add 'options' argument.  Remove
4940         'addressprint' argument.  Update.
4941         * m2-valprint.c (print_unpacked_pointer): Update.
4942         * gnu-v3-abi.c (print_one_vtable): Update.
4943         (gnuv3_print_method_ptr): Update.
4944         * f-valprint.c (f_val_print): Update.
4945         * cp-valprint.c (cp_print_value_fields): Update.
4946         * valprint.h (print_function_pointer_address): Update.
4947         * c-valprint.c (c_val_print): Update.
4948
4949 2012-05-18  Tom Tromey  <tromey@redhat.com>
4950
4951         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4952         directly corresponding to the found psymtab.
4953         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4954         (dw2_find_pc_sect_symtab): Use it.
4955         * block.h (blockvector_contains_pc): Declare.
4956         * block.c (find_block_in_blockvector): New function.
4957         (blockvector_for_pc_sect): Use it.
4958         (blockvector_contains_pc): New function.
4959
4960 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4961
4962         * mips-tdep.h (mips_write_pc): New prototype.
4963         * mips-tdep.c (mips_write_pc): Make external, add description.
4964         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4965         add description.
4966
4967 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4968
4969         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4970         mips_regnum->pc.
4971         (mips_unwind_pc, mips_write_pc): Likewise.
4972         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4973         gdbarch_read_pc.
4974
4975 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
4976
4977         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4978         proc_warn, proc_error, proc_get_status, proc_flags,
4979         proc_why, proc_what, proc_nsysarg, proc_sysargs,
4980         proc_set_run_on_last_close, proc_unset_run_on_last_close,
4981         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4982         proc_stop_process, proc_wait_for_stop, proc_run_process,
4983         proc_set_traced_signals, proc_set_traced_faults,
4984         proc_set_traced_sysentry, proc_set_traced_sysexit,
4985         proc_set_held_signals, proc_get_held_signals,
4986         proc_get_traced_signals, proc_get_traced_faults,
4987         proc_get_traced_sysentry, proc_get_traced_sysexit,
4988         proc_clear_current_fault, proc_set_current_signal,
4989         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4990         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4991         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4992         proc_get_current_thread, proc_get_current_thread,
4993         proc_get_current_thread, proc_update_threads,
4994         proc_update_threads, proc_update_threads, proc_update_threads,
4995         proc_iterate_over_threads, procfs_find_new_threads,
4996         procfs_pid_to_str): Make static.  Remove advance declaration.
4997         (proc_cursig): Make static.  Conditionalized defintion on
4998         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4999         (proc_syscall, proc_set_kill_on_last_close,
5000         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5001         proc_get_pending_signals, proc_get_signal_actions,
5002         proc_trace_signal, proc_ignore_signal): Delete.
5003
5004 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5005
5006         * coffread.c (cs_section_address): Passing proper argument for
5007         `bfd_get_section_vma'.
5008         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5009         `bfd_get_section_flags'.
5010         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5011         `bfd_get_section_vma'.
5012
5013 2012-05-16  Tom Tromey  <tromey@redhat.com>
5014
5015         PR macros/13205:
5016         * macrotab.h: (macro_define_special): Declare.
5017         (enum macro_special_kind): New.
5018         (struct macro_definition) <argc, replacement>: Update comments.
5019         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5020         (macro_define_object_internal): New function.
5021         (macro_define_object): Use it.
5022         (macro_define_special): New function.
5023         (fixup_definition): New function.
5024         (macro_lookup_definition, foreach_macro_in_scope)
5025         (foreach_macro): Use fixup_definition.
5026         * macroexp.h (macro_stringify): Declare.
5027         * macroexp.c (free_buffer_return_text): New function.
5028         (stringify): Constify "arg".
5029         (macro_stringify): New function.
5030         * dwarf2read.c (macro_start_file): Call macro_define_special.
5031
5032 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5033             Maciej W. Rozycki  <macro@mips.com>
5034
5035         * breakpoint.h (bp_location): Add related_address member.
5036         * inferior.h (get_return_value): Take a pointer to struct value
5037         instead of struct type for the function requested.
5038         * value.h (using_struct_return): Likewise.
5039         * gdbarch.sh (return_value): Take a pointer to struct value
5040         instead of struct type for the function requested.
5041         * breakpoint.c (set_breakpoint_location_function): Initialize
5042         related_address for bp_gnu_ifunc_resolver breakpoints.
5043         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5044         requested function's address to gdbarch_return_value.
5045         * eval.c (evaluate_subexp_standard): Pass the requested
5046         function's address to using_struct_return.
5047         * infcall.c (call_function_by_hand): Pass the requested
5048         function's address to using_struct_return and
5049         gdbarch_return_value.
5050         * infcmd.c (get_return_value): Take a pointer to struct value
5051         instead of struct type for the function requested.
5052         (print_return_value): Update accordingly.
5053         (finish_command_continuation): Likewise.
5054         * stack.c (return_command): Pass the requested function's
5055         address to using_struct_return and gdbarch_return_value.
5056         * value.c (using_struct_return): Take a pointer to struct value
5057         instead of struct type for the function requested.  Pass the
5058         requested function's address to gdbarch_return_value.
5059         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5060         New function_value member, replacing function_type.
5061         (bpfinishpy_dealloc): Update accordingly.
5062         (bpfinishpy_pre_stop_hook): Likewise.
5063         (bpfinishpy_init): Likewise.  Record the requested function's
5064         address.
5065         * mips-tdep.c (mips_fval_reg): New enum.
5066         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5067         words put in GP registers.
5068         (mips_o64_push_dummy_call): Update a comment.
5069         (mips_o32_return_value): Take a pointer to struct value instead
5070         of struct type for the function requested and use it to check if
5071         using the MIPS16 calling convention.  Return the designated
5072         general purpose registers for floating-point values returned in
5073         MIPS16 mode.
5074         (mips_o64_return_value): Likewise.
5075         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5076         (ppc_sysv_abi_broken_return_value): Likewise.
5077         (ppc64_sysv_abi_return_value): Likewise.
5078         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5079         value instead of struct type for the function requested.
5080         * amd64-tdep.c (amd64_return_value): Likewise.
5081         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5082         * arm-tdep.c (arm_return_value): Likewise.
5083         * avr-tdep.c (avr_return_value): Likewise.
5084         * bfin-tdep.c (bfin_return_value): Likewise.
5085         * cris-tdep.c (cris_return_value): Likewise.
5086         * frv-tdep.c (frv_return_value): Likewise.
5087         * h8300-tdep.c (h8300_return_value): Likewise.
5088         (h8300h_return_value): Likewise.
5089         * hppa-tdep.c (hppa32_return_value): Likewise.
5090         (hppa64_return_value): Likewise.
5091         * i386-tdep.c (i386_return_value): Likewise.
5092         * ia64-tdep.c (ia64_return_value): Likewise.
5093         * iq2000-tdep.c (iq2000_return_value): Likewise.
5094         * lm32-tdep.c (lm32_return_value): Likewise.
5095         * m32c-tdep.c (m32c_return_value): Likewise.
5096         * m32r-tdep.c (m32r_return_value): Likewise.
5097         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5098         * m68k-tdep.c (m68k_return_value): Likewise.
5099         (m68k_svr4_return_value): Likewise.
5100         * m88k-tdep.c (m88k_return_value): Likewise.
5101         * mep-tdep.c (mep_return_value): Likewise.
5102         * microblaze-tdep.c (microblaze_return_value): Likewise.
5103         * mn10300-tdep.c (mn10300_return_value): Likewise.
5104         * moxie-tdep.c (moxie_return_value): Likewise.
5105         * mt-tdep.c (mt_return_value): Likewise.
5106         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5107         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5108         (ppc_sysv_abi_broken_return_value): Likewise.
5109         (ppc64_sysv_abi_return_value): Likewise.
5110         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5111         * rl78-tdep.c (rl78_return_value): Likewise.
5112         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5113         * rx-tdep.c (rx_return_value): Likewise.
5114         * s390-tdep.c (s390_return_value): Likewise.
5115         * score-tdep.c (score_return_value): Likewise.
5116         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5117         (sh_return_value_fpu): Likewise.
5118         * sh64-tdep.c (sh64_return_value): Likewise.
5119         * sparc-tdep.c (sparc32_return_value): Likewise.
5120         * sparc64-tdep.c (sparc64_return_value): Likewise.
5121         * spu-tdep.c (spu_return_value): Likewise.
5122         * tic6x-tdep.c (tic6x_return_value): Likewise.
5123         * v850-tdep.c (v850_return_value): Likewise.
5124         * vax-tdep.c (vax_return_value): Likewise.
5125         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5126         * xtensa-tdep.c (xtensa_return_value): Likewise.
5127         * gdbarch.c: Regenerate.
5128         * gdbarch.h: Regenerate.
5129
5130 2012-05-15  Tom Tromey  <tromey@redhat.com>
5131
5132         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5133
5134 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5135
5136         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5137         of command in two error message.
5138
5139 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5140
5141         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5142
5143 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5144
5145         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5146
5147 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5148
5149         * NEWS (show auto-load scripts-directory): Add forgotten command.
5150
5151 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5152
5153         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5154         parameters.
5155
5156 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5157
5158         * amd64-tdep.c: Include features/i386/x32.c and
5159         features/i386/x32-avx.c.
5160         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5161         initialize_tdesc_x32_avx.
5162
5163 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5164
5165         Add dynamic printf.
5166         * breakpoint.h (enum bptype): New type bp_dprintf.
5167         (struct breakpoint): New field extra_string.
5168         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5169         (create_breakpoint): Add extra_string arg.
5170         * breakpoint.c (dprintf_breakpoint_ops): New.
5171         (is_breakpoint): Add bp_dprintf.
5172         (bpstat_what): Add dprintf case.
5173         (bptype_string): Ditto.
5174         (print_one_breakpoint_location): Ditto.
5175         (init_bp_location): Ditto.
5176         (bkpt_print_mention): Ditto.
5177         (dprintf_style_enums): New array.
5178         (dprintf_style): New global.
5179         (dprintf_function): New global.
5180         (dprintf_channel): New global.
5181         (update_dprintf_command_list): New function.
5182         (update_dprintf_commands): New function.
5183         (init_breakpoint_sal): Add extra_string argument, handle it.
5184         (create_breakpoint_sal): Add extra_string argument.
5185         (create_breakpoints_sal): Add extra_string argument, update callers.
5186         (find_condition_and_thread): Add extra argument.
5187         (create_breakpoint): Add extra_string argument, record it.
5188         (dprintf_command): New function.
5189         (break_command_1): Add arg to create_breakpoint call.
5190         (handle_gnu_v3_exceptions): Ditto.
5191         (trace_command): Ditto.
5192         (ftrace_command): Ditto.
5193         (strace_command): Ditto.
5194         (bkpt_print_mention): Add dprintf case.
5195         (create_breakpoint_sal_default): Add extra_string argument.
5196         (_initialize_breakpoint): Add new commands.
5197         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5198         * python/py-breakpoint.c (bppy_init): Ditto.
5199         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5200
5201 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5202
5203         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5204
5205 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5206
5207         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5208         unsigned long long.
5209
5210 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5211
5212         Add a new function gdb.find_pc_line to the Python API.
5213         * NEWS (Python Scripting): Add entry about the new function.
5214         * python/python.c (gdbpy_find_pc_line): New function which
5215         implements gdb.find_pc_line.
5216         (GdbMethods): Add entry for the new function.
5217
5218 2012-05-12  Pedro Alves  <palves@redhat.com>
5219
5220         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5221         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5222
5223 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5224
5225         * inferior.c: Include completer.h
5226         (initialize_inferiors): Set completer of add-inferior to
5227         filename_completer.
5228
5229 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5230
5231         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5232         gdbarch_ptr_bit for x32 core dump.
5233
5234 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5235
5236         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5237         and features/i386/x32-avx-linux.c.
5238
5239 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5240             Kwok Cheung Yeung  <kcy@codesourcery.com>
5241
5242         * NEWS: Describe new info os commands.
5243         * common/linux-osdata.c (PID_T, TIME_T): Define.
5244         (MAX_PID_T_STRLEN): New.
5245         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5246         MAX_PID_T_STRLEN.
5247         (command_from_pid): Add comment.  Change to use PID_T.
5248         (commandline_from_pid):  Change to use PID_T.
5249         (user_from_pid): Add comment.
5250         (get_process_owner): Add comment. Change to use PID_T and
5251         MAX_PID_T_STRLEN.
5252         (get_number_of_cpu_cores): Add comment.
5253         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5254         MAX_PID_T_STRLEN.
5255         (linux_xfer_osdata_processes): Change to use PID_T and
5256         MAX_PID_T_STRLEN.
5257         (compare_processes): New function.
5258         (linux_xfer_osdata_processgroups): New function.
5259         (linux_xfer_osdata_threads): Change to use PID_T.
5260         (linux_xfer_osdata_fds): New function.
5261         (format_socket_state, print_sockets): New functions.
5262         (union socket_addr): New union.
5263         (linux_xfer_osdata_isockets): New function.
5264         (time_from_time_t, group_from_gid): New functions.
5265         (linux_xfer_osdata_shm): New function.
5266         (linux_xfer_osdata_sem): New function.
5267         (linux_xfer_osdata_msg): New function.
5268         (linux_xfer_osdata_modules): New function.
5269         (osdata_table): Add new entries.
5270         * common/buffer.c (buffer_xml_printf): Add support for long and
5271         long long format specifiers.
5272
5273 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5274
5275         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5276         (tdesc_x32_avx_linux): Likewise.
5277
5278 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5279
5280         Implement multi-component --with-auto-load-dir.
5281         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5282         entries.
5283         (--with-auto-load-safe-path): Update the default value description.
5284         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5285         New.
5286         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5287         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5288         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5289         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5290         "set auto-load scripts-directory".
5291         * config.in: Regenerate.
5292         * configure: Regenerate.
5293         * configure.ac (--with-auto-load-dir): New configure option.
5294         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5295
5296 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5297
5298         Provide $ddir substitution for --with-auto-load-safe-path.
5299         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5300         entries.
5301         * auto-load.c: Include observer.h.
5302         (auto_load_safe_path_vec_update): Call substitute_path_component for
5303         each component.  New variable ddir_subst.
5304         (auto_load_gdb_datadir_changed): New function.
5305         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5306         AUTO_LOAD_SAFE_PATH.  New comment.
5307         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5308         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5309         * config.in: Regenerate.
5310         * configure: Regenerate.
5311         * configure.ac (--auto-load-safe-path): Rename
5312         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5313         GDB_DATADIR/auto-load.
5314         * defs.h (substitute_path_component): New declaration.
5315         * top.c: Include observer.h.
5316         (set_gdb_datadir): New function.
5317         (init_main): Install it for "set data-directory".
5318         * utils.c (substitute_path_component): New function.
5319
5320 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5321
5322         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5323         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5324         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5325         DEBUG_FILE_DIRECTORY.
5326
5327 2012-05-10  Tom Tromey  <tromey@redhat.com>
5328
5329         * dwarf2read.c (recursively_write_psymbols): New function.
5330         (write_psymtabs_to_index): Use it.
5331
5332         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5333         field.
5334         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5335         (load_partial_comp_unit): Update.
5336         (queue_comp_unit): Add argument 'pretend_language'.
5337         (process_queue): Update.
5338         (psymtab_to_symtab_1): Skip dependencies that have a user.
5339         (load_partial_comp_unit_reader): Give meaning to the 'data'
5340         argument.
5341         (load_full_comp_unit): Add 'pretend_language' argument.
5342         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5343         language on CU.
5344         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5345         Update.
5346         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5347         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5348         Update.
5349         (prepare_one_comp_unit): Add 'pretend_language' argument.
5350
5351         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5352         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5353         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5354         (dw2_do_instantiate_symtab): Check whether symtab was read in
5355         before queueing.
5356         (dw2_instantiate_symtab): Add assertion.  Call
5357         process_cu_includes.
5358         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5359         (partial_symtab_p): New typedef.
5360         (set_partial_user): New function.
5361         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5362         (scan_partial_symbols): Add imported CU to imported_symtabs.
5363         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5364         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5365         (get_symtab, recursively_compute_inclusions)
5366         (compute_symtab_includes, process_cu_includes)
5367         (process_imported_unit_die): New functions.
5368         (process_die) <DW_TAG_imported_unit>: New case.
5369         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5370
5371         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5372         comment.
5373         (struct partial_die_info) <locdesc>: Remove.
5374         <d>: New field.
5375         (process_psymtab_comp_unit): Add 'read_partial' argument.
5376         Update.
5377         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5378         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5379         (add_partial_symbol): Update.
5380         (process_die): Handle DW_TAG_partial_unit.
5381         (read_file_scope): Update comment.
5382         (load_partial_dies): Handle DW_TAG_imported_unit.
5383         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5384         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5385
5386 2012-05-10  Tom Tromey  <tromey@redhat.com>
5387
5388         * cc-with-dwz.sh: New file.
5389
5390 2012-05-10  Tom Tromey  <tromey@redhat.com>
5391
5392         * symtab.h (struct symtab) <includes, user>: New fields.
5393         * block.h (struct block_iterator) <d, idx, which>: New fields.
5394         * block.c (initialize_block_iterator, find_iterator_symtab)
5395         (block_iterator_step, block_iter_name_step)
5396         (block_iter_match_step): New functions.
5397         (block_iterator_first, block_iterator_next)
5398         (block_iter_name_first, block_iter_name_next)
5399         (block_iter_match_first, block_iter_match_next): Rewrite.
5400         (get_block_symtab): New function.
5401
5402 2012-05-10  Tom Tromey  <tromey@redhat.com>
5403
5404         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5405         set_block_symtab.
5406         * jit.c (finalize_symtab): Use allocate_global_block,
5407         set_block_symtab.
5408         * buildsym.c (finish_block_internal): New function, from old
5409         finish_block.
5410         (finish_block): Rewrite.
5411         (end_symtab): Use finish_block_internal, set_block_symtab.
5412         * block.h (struct global_block): New.
5413         (allocate_global_block, set_block_symtab): Declare.
5414         * block.c (allocate_global_block, set_block_symtab): New
5415         functions.
5416
5417 2012-05-10  Tom Tromey  <tromey@redhat.com>
5418
5419         * psymtab.c (partial_map_expand_apply): Add assertion.
5420         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5421         (psymtab_to_symtab): Find unshared psymtab.
5422         (dump_psymtab): Print including psymtabs.
5423         (recursively_search_psymtabs): New function.
5424         (expand_symtabs_matching_via_partial): Use it.
5425         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5426         fields.
5427         (enum psymtab_search_status): New.
5428
5429 2012-05-10  Tom Tromey  <tromey@redhat.com>
5430
5431         * tracepoint.c (scope_info): Update.
5432         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5433         (find_pc_sect_symtab, search_symbols)
5434         (default_make_symbol_completion_list_break_on)
5435         (make_file_symbol_completion_list): Update.
5436         * symmisc.c (dump_symtab_1): Update.
5437         * stack.c (print_frame_args, iterate_over_block_locals)
5438         (print_frame_labels, iterate_over_block_arg_vars): Update.
5439         * python/py-block.c (block_object) <dict>: Remove.
5440         <block>: New field.
5441         <iter>: Change type.
5442         (blpy_iter): Update.
5443         (blpy_block_syms_iternext): Update.
5444         * psymtab.c (map_block): Use block iterators.
5445         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5446         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5447         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5448         * infrun.c (check_exception_resume): Update.
5449         * cp-support.c (make_symbol_overload_list_block): Update.
5450         * coffread.c (patch_opaque_types): Update.
5451         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5452         * block.h (struct block_iterator): New.
5453         (block_iterator_first, block_iterator_next, block_iter_name_first)
5454         (block_iter_name_next, block_iter_match_first)
5455         (block_iter_match_next): Declare.
5456         (ALL_BLOCK_SYMBOLS): Redefine.
5457         * block.c (block_iterator_first, block_iterator_next)
5458         (block_iter_name_first, block_iter_name_next)
5459         (block_iter_match_first, block_iter_match_next): New functions.
5460         * ada-lang.c (ada_add_block_symbols)
5461         (ada_make_symbol_completion_list): Use block iterator.
5462
5463 2012-05-10  Tom Tromey  <tromey@redhat.com>
5464
5465         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5466         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5467         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5468         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5469         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5470         Update.
5471
5472 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5473
5474         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5475         print-file-var-lib2.c, print-file-var-main.c and
5476         print-file-var.exp (located in gdb/testsuite/gdb.base).
5477
5478 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5479
5480         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5481         try locating the symbol in the symbol's own objfile first, before
5482         extending the search to all objfiles.
5483         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5484         out of lookup_symbol_aux_symtabs.
5485         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5486         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5487         Do not search EXCLUDE_OBJFILE.
5488         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5489         (lookup_symbol_global): Search for matches in the block's objfile
5490         first, before searching all other objfiles.
5491
5492 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5493
5494         * printcmd.c (set_command): Add pre/post inc/dec.
5495
5496 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5497
5498         * gdb.1: Document -ex option.
5499
5500 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5501
5502         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5503         * inferior.h (AT_SYMBOL): Delete.
5504
5505 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5506
5507         * mips-tdep.c (mips_push_dummy_code): New function.
5508         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5509         ON_STACK and install mips_push_dummy_code as our gdbarch
5510         push_dummy_code routine.
5511
5512 2012-05-09  Pedro Alves  <palves@redhat.com>
5513
5514         * target.c (set_maintenance_target_async_permitted): Rename to ...
5515         (set_target_async_command): ... this.
5516         (show_maintenance_target_async_permitted): Rename to ...
5517         (show_target_async_command): ... this.
5518         (initialize_targets): Adjust.
5519
5520 2012-05-08  Doug Evans  <dje@google.com>
5521
5522         * go-exp.y (classify_name): Add missing assignment of fields of
5523         yylval.ssym.
5524
5525 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5526
5527         Display the ">" prompt in interactive mode while reading canned
5528         commands, even when the current interpreter is MI.
5529
5530         * interps.c (interp_set_temp): New function.
5531
5532         * interps.h (interp_set_temp): Add prototype.
5533
5534         * cli/cli-script.c (restore_interp): New cleanup function.
5535         (read_command_lines): Temporarily override the current interpreter
5536         with CLI and arrange for restoring the original one.
5537
5538 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5539
5540         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5541
5542 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5543
5544         * probe.c (parse_probes): Move conditional to check for
5545         debuginfo files from here...
5546         * stap-probe.c (stap_get_probes): ... to here.
5547
5548 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5549             H.J. Lu  <hongjiu.lu@intel.com>
5550
5551         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5552         `movl %esp, %ebp' for the X32 ABI.
5553
5554 2012-05-07  Tom Tromey  <tromey@redhat.com>
5555
5556         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5557         get_DW_TAG_name.
5558         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5559         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5560         (dwarf_stack_op_name): Remove.
5561         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5562         (decode_locdesc): Use get_DW_OP_name.
5563         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5564         (dwarf2_compile_expr_to_ax): Likewise.
5565         (disassemble_dwarf_expression): Likewise.
5566         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5567
5568 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5569
5570         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5571         (sh_linux_sigtramp_cache): New function.
5572         (sh_linux_sigreturn_init): New function.
5573         (sh_linux_rt_sigreturn_init): New function.
5574         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5575         patterns.
5576         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5577         syscall codes.
5578         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5579         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5580         (sh_linux_init_abi): Add init calls to register new tramp_frame
5581         definitions under 32-bit SH, update comments.
5582
5583 2012-05-07  Pedro Alves  <palves@redhat.com>
5584
5585         PR gdb/10952
5586
5587         * amd64-linux-tdep.c: Include glibc-tdep.h.
5588         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5589         gdbarch_skip_solib_resolver callback.
5590
5591 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5592
5593         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5594         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5595         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5596         (add_auto_load_safe_path): Change the error message.
5597         (_initialize_auto_load): Change the "safe-path" help text.
5598         * configure: Regenerate
5599         * configure.ac (--without-auto-load-safe-path): Set
5600         WITH_AUTO_LOAD_SAFE_PATH to /.
5601
5602 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5603
5604         * stap-probe.h: Do not include unecessary `probe.h'.
5605
5606 2012-05-05  Alan Modra  <amodra@gmail.com>
5607
5608         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5609         bfd_und_section_ptr.
5610         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5611         and bfd_com_section_ptr.
5612
5613 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5614
5615         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5616
5617 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5618
5619         * windows-nat.h (segment_register_p_ftype): New typedef.
5620         (windows_set_segment_register_p): Add declaration.
5621         * windows-nat.c (segment_register_p): New static global.
5622         (windows_set_segment_register_p): New function.
5623         (do_windows_fetch_inferior_registers): Add special handling
5624         for segment registers.
5625         * amd64-windows-nat.c: #include "amd64-tdep.h".
5626         (amd64_windows_segment_register_p): New function.
5627         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5628         * i386-windows-nat.c: #include "i386-tdep.h".
5629         (i386_windows_segment_register_p): New function.
5630         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5631
5632 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5633
5634         * printcmd.c (set_command): Emit a warning if the expression is not
5635         an assignment.
5636
5637 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5638
5639         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5640         Make static.
5641
5642 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5643
5644         * stap-probe.c (stap_is_operator): Change declaration.
5645         (stap_get_opcode): Change return value.
5646         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5647         `stap_parse_argument_1'.
5648
5649 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5650
5651         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5652         debug log.
5653
5654 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5655
5656         Add two new methods global_block and static_block to gdb.Symtab
5657         objects.
5658         * NEWS (Python scripting): Add entry about the new methods.
5659         * python/py-symtab.c (stpy_global_block): New function which
5660         implements the gdb.Symtab.global_block() method.
5661         (stpy_static_block): New function which implements the
5662         gdb.Symtab.static_block() method.
5663         (symtab_object_methods): Add entries for the two new methods.
5664
5665 2012-05-03  Doug Evans  <dje@google.com>
5666
5667         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5668         files.
5669
5670 2012-05-03  Yao Qi  <yao@codesourcery.com>
5671
5672         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5673         space.
5674         (i386_process_record): Ditto.
5675
5676 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5677
5678         * infcall.c (unwind_on_signal_p): Make static.
5679
5680 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5681
5682         * sol-thread.c (solaris_pid_to_str): Make static.
5683         (_initialize_sol_thread): Add prototype.
5684
5685 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5686
5687         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5688
5689 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5690
5691         * MAINTAINERS: Remove myself.
5692
5693 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5694
5695         Fix --without-auto-load-safe-path for MS-Windows host platform.
5696         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5697
5698 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5699
5700         * gdb_curses.h: Undefine KEY_EVENT before including curses
5701         headers.  Move "#undef MOUSE_MOVED" before any curses header
5702         inclusion.
5703
5704 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5705
5706         * features/i386/i386-mmx-linux.c: Regenerate.
5707         * features/rs6000/powerpc-32.c: Likewise.
5708         * features/rs6000/powerpc-32l.c: Likewise.
5709         * features/rs6000/powerpc-403.c: Likewise.
5710         * features/rs6000/powerpc-403gc.c: Likewise.
5711         * features/rs6000/powerpc-405.c: Likewise.
5712         * features/rs6000/powerpc-505.c: Likewise.
5713         * features/rs6000/powerpc-601.c: Likewise.
5714         * features/rs6000/powerpc-602.c: Likewise.
5715         * features/rs6000/powerpc-603.c: Likewise.
5716         * features/rs6000/powerpc-604.c: Likewise.
5717         * features/rs6000/powerpc-64.c: Likewise.
5718         * features/rs6000/powerpc-64l.c: Likewise.
5719         * features/rs6000/powerpc-750.c: Likewise.
5720         * features/rs6000/powerpc-860.c: Likewise.
5721         * features/rs6000/powerpc-e500.c: Likewise.
5722         * features/rs6000/powerpc-e500l.c: Likewise.
5723         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5724         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5725         * features/rs6000/rs6000.c: Likewise.
5726
5727 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5728
5729         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5730         variable.
5731         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5732         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5733         (stap_parse_argument) <e>: Likewise.
5734         (handle_stap_probe) <byte_order>: Likewise.
5735
5736 2012-04-30  Doug Evans  <dje@google.com>
5737
5738         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5739         init_and_read_dies_worker.  All callers updated.
5740         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5741         replaced with init_cutu_and_read_dies.
5742         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5743         (find_partial_die): Remove FIXME.  Don't free current CU.
5744
5745 2012-04-30  Sterling Augustine  <saugustine@google.com>
5746
5747         * contrib: New directory.
5748         * contrib/test_pubnames_and_indexes.py: New file.
5749
5750 2012-04-30  Doug Evans  <dje@google.com>
5751
5752         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5753         All callers updated.
5754         (init_cu_die_reader): Verify the section is non-empty.
5755         (dwarf_decode_line_header): Don't dereference section->asection
5756         until we know the section is present.
5757
5758 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5759
5760         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5761         probes.
5762
5763 2012-04-29  Yao Qi  <yao@codesourcery.com>
5764
5765         * gdb-code-style.el: New hook gdb-markup-hook
5766         and gdb-comment-hook.
5767
5768 2012-04-28  Doug Evans  <dje@google.com>
5769
5770         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5771         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5772         objfile->obfd.
5773         * symfile.h (dwarf2_debug_sections): New member addr.
5774         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5775         (ctx_no_get_addr_index): New function.
5776         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5777         (ctx_no_get_addr_index): Declare.
5778         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5779         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5780         (dwarf_expr_ctx_funcs): Update.
5781         (needs_get_addr_index): New function.
5782         (needs_frame_ctx_funcs): Update.
5783         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5784         * dwarf2read.c: #include "gdbcore.h".
5785         (dwarf2_per_objfile): New members addr, dwo_files.
5786         (dwarf2_elf_names): Add entry for addr.
5787         (struct dwo_section_names): New type.
5788         (dwo_section_names): New static global.
5789         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5790         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5791         old debug_types_section member updated to use this.
5792         Rename member debug_types_section to info_or_types_section,
5793         all uses updated.
5794         (signatured_type): Rename member type_offset to type_offset_in_tu,
5795         all uses updated.  New member type_offset_in_section.
5796         (struct dwo_sections): New type.
5797         (struct dwo_unit): New type.
5798         (struct dwo_file): New type.
5799         (die_reader_specs): New member dwo_file.
5800         (dwarf2_locate_sections): Watch for .debug_addr.
5801         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5802         (dwarf2_read_section): Get bfd of section from bfd's asection,
5803         instead of objfile.
5804         (create_cus_from_index): Initialize the_cu->info_or_types_section.
5805         (create_signatured_type_table_from_index): Initialize
5806         sig_type->info_or_types_section.
5807         (dw2_get_file_names): Statement lists for type units with DWO files
5808         live in the DWO file.
5809         (create_debug_types_hash_table): New function.
5810         (create_all_type_units): Rewrite.
5811         (init_cu_die_reader): New arg dwo_file, all callers updated.
5812         (init_and_read_dies_worker): Get section from
5813         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
5814         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5815         continue reading the CU/TU from there.
5816         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5817         updated.  Get section from this_cu->info_or_types_section.
5818         (create_all_comp_units): Initialize this_cu->info_or_types_section.
5819         (skip_one_die): New cases DW_FORM_GNU_addr_index,
5820         DW_FORM_GNU_str_index.
5821         (hash_dwo_file, eq_dwo_file): New functions.
5822         (allocate_dwo_file_hash_table): New function.
5823         (hash_dwo_unit, eq_dwo_unit): New functions.
5824         (allocate_dwo_unit_table): New function.
5825         (dwarf2_locate_dwo_sections): New function.
5826         (struct create_dwo_info_table_data): New type.
5827         (create_debug_info_hash_table_reader): New function.
5828         (create_debug_info_hash_table): New function.
5829         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5830         (lookup_dwo_file): New function.
5831         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5832         (free_dwo_file, free_dwo_file_cleanup): New functions.
5833         (free_dwo_file_from_slot, free_dwo_files): New functions.
5834         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5835         (dwarf2_record_block_ranges): Ditto.
5836         (read_partial_die): Ditto.
5837         (process_enumeration_scope): Update to use type_offset_in_section.
5838         (read_full_die_1): New function.
5839         (read_full_die): Rewrite.
5840         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5841         DW_FORM_GNU_str_index.
5842         (read_addr_index_1, read_addr_index): New functions.
5843         (read_addr_index_from_leb128): New function.
5844         (struct dwarf2_read_addr_index_data): New type.
5845         (dwarf2_read_addr_index_reader): New function.
5846         (dwarf2_read_addr_index): New function.
5847         (read_str_index): New function.
5848         (leb128_size): New function.
5849         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5850         If processing a type unit from a DWO file, get the line section
5851         from the DWO file.
5852         (var_decode_location): Watch for DW_OP_GNU_addr_index.
5853         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5854         DW_FORM_GNU_str_index.
5855         (lookup_die_type): Check whether section offset of type's die is
5856         known before looking it up.  Remove assert.  Condition can
5857         legimately happen for inter-cu type references.
5858         (dwarf_attr_name): Handle Fission attributes.
5859         (dwarf_form_name): Handle Fission forms.
5860         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5861         DW_FORM_GNU_str_index.
5862         (follow_die_sig): Update to use type_offset_in_section.
5863         (decode_locdesc): New case DW_OP_GNU_addr_index.
5864         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5865         DW_FORM_GNU_str_index.
5866         (cu_debug_loc_section): New function.
5867         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5868         (dwarf2_per_objfile_free): Unmap .debug_addr section.
5869         Free DWO files if present.
5870         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5871
5872         Refactor DIE reading.
5873         * dwarf2read.c (dwarf2_per_objfile): Replace members
5874         debug_info_type_hash and debug_types_type_hash with die_type_hash.
5875         (die_reader_specs): New member "die_section".  Temporarily make
5876         member "buffer" non-const, pending constifying all info_ptr uses.
5877         (die_reader_func_ftype): New typedef.
5878         (dw2_get_file_names_reader): New function.
5879         (dw2_get_file_names): Rewrite.
5880         (read_and_check_type_unit_head): Rename arg type_offset to
5881         type_offset_in_tu.
5882         (create_all_type_units): Improve debugging message.
5883         Improve dummy type unit check.
5884         (init_cu_die_reader): New arg "section".  All callers updated.
5885         (init_and_read_dies_worker): New function.
5886         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5887         (init_cutu_and_read_dies_no_follow): New function.
5888         (init_cutu_and_read_dies_simple): New function.
5889         (process_psymtab_comp_unit_reader): New function.
5890         (process_psymtab_comp_unit): Delete args section,
5891         is_debug_types_section.  Rewrite.  All callers updated.
5892         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5893         All callers updated.  Rewrite.
5894         (load_partial_comp_unit_reader): New function.
5895         (load_partial_comp_unit): Rewrite.
5896         (skip_children): New arg reader.  Delete args buffer, cu.
5897         All callers updated.
5898         (skip_one_die): New arg reader.  Delete args buffer, cu.
5899         All callers updated.
5900         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
5901         All callers updated.
5902         (load_full_comp_unit_reader): New function.
5903         (load_full_comp_unit): Rewrite.
5904         (read_comp_unit): Delete.
5905         (read_die_and_children_1): Delete, contents moved ...
5906         (read_die_and_children): ... here.
5907         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
5908         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
5909         All callers updated.
5910         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
5911         All callers updated.
5912         (find_partial_die): Rewrite load_all_dies support.
5913         (read_attribute_value): New arg reader.  Delete args abfd, cu.
5914         All callers updated.
5915         (read_attribute): New arg reader.  Delete args abfd, cu.
5916         All callers updated.
5917         (load_full_type_unit): Add assert.
5918         (read_signatured_type_reader): New function.
5919         (read_signatured_type): Rewrite.
5920         (free_stack_comp_unit): Remove call to age_cached_comp_units.
5921         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5922         All callers updated.  Set per_cu->cu = NULL after freeing it.
5923         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5924         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5925         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5926         (set_die_type): Update.
5927         (get_die_type_at_offset): Update.
5928         (read_file_scope): Call prepare_one_comp_unit.
5929         (read_type_unit_scope): Ditto.
5930         (prepare_one_comp_unit): Set producer if present.
5931
5932 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
5933
5934         * probe.c (compile_rx_or_error): Silence ARI warning about missing
5935          gettext function on `error'.
5936
5937 2012-04-27  Doug Evans  <dje@google.com>
5938
5939         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5940         is empty.
5941
5942 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5943             Tom Tromey  <tromey@redhat.com>
5944
5945         * breakpoint.c (struct breakpoint_objfile_data)
5946         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5947         <exception_probes>: New fields.
5948         (free_breakpoint_probes): New function.
5949         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5950         `_Unwind_DebugHook'.
5951         (create_exception_master_breakpoint): Likewise.
5952         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5953         * infrun.c: Including necessary header files for handling SystemTap
5954         probes.
5955         (handle_inferior_event): Handling longjmp breakpoint and exceptions
5956         via SystemTap probes.
5957         (check_exception_resume): Remove `func' argument.  Handle exception
5958         unwinding breakpoint set via a SystemTap probe.
5959         (insert_exception_resume_from_probe): New function.
5960
5961 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5962             Tom Tromey  <tromey@redhat.com>
5963             Jan Kratochvil  <jan.kratochvil@redhat.com>
5964
5965         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5966         (COMMON_OBS): Likewise.
5967         (HFILES_NO_SRCDIR): Add `probe'.
5968         * NEWS: Mention support for static and SystemTap probes.
5969         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5970         SystemTap probes' arguments parser.
5971         * arm-linux-tdep.c: Including headers needed to perform the parsing
5972         of SystemTap probes' arguments.
5973         (arm_stap_is_single_operand): New function.
5974         (arm_stap_parse_special_token): Likewise.
5975         (arm_linux_init_abi): Initializing proper fields used by SystemTap
5976         probes' arguments parser.
5977         * ax-gdb.c (require_rvalue): Removing static declaration.
5978         (gen_expr): Likewise.
5979         * ax-gdb.h (gen_expr): Declaring function.
5980         (require_rvalue): Likewise.
5981         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5982         (bkpt_probe_breakpoint_ops): New variable.
5983         (momentary_breakpoint_from_master): Set the `probe' value.
5984         (add_location_to_breakpoint): Likewise.
5985         (break_command_1): Using proper breakpoint_ops according to the
5986         argument passed by the user in the command line.
5987         (bkpt_probe_insert_location): New function.
5988         (bkpt_probe_remove_location): Likewise.
5989         (bkpt_probe_create_sals_from_address): Likewise.
5990         (bkpt_probe_decode_linespec): Likewise.
5991         (tracepoint_probe_create_sals_from_address): Likewise.
5992         (tracepoint_probe_decode_linespec): Likewise.
5993         (tracepoint_probe_breakpoint_ops): New variable.
5994         (trace_command): Using proper breakpoint_ops according to the
5995         argument passed by the user in the command line.
5996         (initialize_breakpoint_ops): Initializing breakpoint_ops for
5997         static probes on breakpoints and tracepoints.
5998         * breakpoint.h (struct bp_location) <probe>: New field.
5999         * cli-utils.c (skip_spaces_const): New function.
6000         (extract_arg): Likewise.
6001         * cli-utils.h (skip_spaces_const): Likewise.
6002         (extract_arg): Likewise.
6003         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6004         * configure.ac: Append `stap-probe.o' to be generated when ELF
6005         support is present.
6006         * configure: Regenerate.
6007         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6008         * elfread.c: Include `probe.h' and `arch-utils.h'.
6009         (probe_key): New variable.
6010         (elf_get_probes): New function.
6011         (elf_get_probe_argument_count): Likewise.
6012         (elf_evaluate_probe_argument): Likewise.
6013         (elf_compile_to_ax): Likewise.
6014         (elf_symfile_relocate_probe): Likewise.
6015         (stap_probe_key_free): Likewise.
6016         (elf_probe_fns): New variable.
6017         (elf_sym_fns): Add `sym_probe_fns' value.
6018         (elf_sym_fns_lazy_psyms): Likewise.
6019         (elf_sym_fns_gdb_index): Likewise.
6020         (_initialize_elfread): Initialize objfile cache for static
6021         probes.
6022         * gdb_vecs.h (struct probe): New forward declaration.
6023         (probe_p): New VEC declaration.
6024         * gdbarch.c: Regenerate.
6025         * gdbarch.h: Regenerate.
6026         * gdbarch.sh (stap_integer_prefix): New variable.
6027         (stap_integer_suffix): Likewise.
6028         (stap_register_prefix): Likewise.
6029         (stap_register_suffix): Likewise.
6030         (stap_register_indirection_prefix): Likewise.
6031         (stap_register_indirection_suffix): Likewise.
6032         (stap_gdb_register_prefix): Likewise.
6033         (stap_gdb_register_suffix): Likewise.
6034         (stap_is_single_operand): New function.
6035         (stap_parse_special_token): Likewise.
6036         (struct stap_parse_info): Forward declaration.
6037         * i386-tdep.c: Including headers needed to perform the parsing
6038         of SystemTap probes' arguments.
6039         (i386_stap_is_single_operand): New function.
6040         (i386_stap_parse_special_token): Likewise.
6041         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6042         probes' arguments parser.
6043         * i386-tdep.h (i386_stap_is_single_operand): New function.
6044         (i386_stap_parse_special_token): Likewise.
6045         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6046         * mipsread.c (ecoff_sym_fns): Likewise.
6047         * objfiles.c (objfile_relocate1): Support relocation for static
6048         probes.
6049         * parse.c (prefixify_expression): Remove static declaration.
6050         (initialize_expout): Likewise.
6051         (reallocate_expout): Likewise.
6052         * parser-defs.h (initialize_expout): Declare function.
6053         (reallocate_expout): Likewise.
6054         (prefixify_expression): Likewise.
6055         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6056         of SystemTap probes' arguments.
6057         (ppc_stap_is_single_operand): New function.
6058         (ppc_stap_parse_special_token): Likewise.
6059         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6060         probes' arguments parser.
6061         * probe.c: New file, for generic statically defined probe support.
6062         * probe.h: Likewise.
6063         * s390-tdep.c: Including headers needed to perform the parsing of
6064         SystemTap probes' arguments.
6065         (s390_stap_is_single_operand): New function.
6066         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6067         probes' arguments parser.
6068         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6069         * stap-probe.c: New file, for SystemTap probe support.
6070         * stap-probe.h: Likewise.
6071         * symfile.h: Include `gdb_vecs.h'.
6072         (struct sym_probe_fns): New struct.
6073         (struct sym_fns) <sym_probe_fns>: New field.
6074         * symtab.c (init_sal): Initialize `probe' field.
6075         * symtab.h (struct probe): Forward declaration.
6076         (struct symtab_and_line) <probe>: New field.
6077         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6078         locations.
6079         (stop_tracing): Likewise.
6080         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6081
6082 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6083             Tom Tromey  <tromey@redhat.com>
6084
6085         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6086         and to compile agent expressions.
6087         * infrun.c (siginfo_make_value): New argument `ignore'.
6088         (siginfo_funcs): New struct.
6089         (_initialize_infrun): New argument when calling
6090         `create_internalvar_type_lazy'.
6091         * thread.c (thread_id_make_value): New argument `ignore'.
6092         (thread_funcs): New struct.
6093         (_initialize_thread): New argument when calling
6094         `create_internalvar_type_lazy'.
6095         * tracepoint.c (sdata_make_value): New argument `ignore'.
6096         (sdata_funcs): New struct.
6097         (_initialize_tracepoint): New argument when calling
6098         `create_internalvar_type_lazy'.
6099         * value.c (make_value): New struct.
6100         (create_internalvar_type_lazy): New argument `data'.
6101         (compile_internalvar_to_ax): New function.
6102         (value_of_internalvar): Properly handling `make_value' case.
6103         (clear_internalvar): Likewise.
6104         (show_convenience): Adding `TRY_CATCH' block.
6105         * value.h (internalvar_make_value): Delete, replace by...
6106         (struct internalvar_funcs): ... this.
6107         (create_internalvar_type_lazy) <fun>: Delete argument.
6108         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6109         (compile_internalvar_to_ax): New function.
6110         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6111         (tlb_funcs): New struct.
6112         (_initialize_windows_tdep): New argument when calling
6113         `create_internalvar_type_lazy'.
6114
6115 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6116
6117         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6118         see whether it is an address or a constant offset from DW_AT_low_pc.
6119         (dwarf2_record_block_ranges): Likewise.
6120         (read_partial_die): Likewise.
6121
6122 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6123
6124         * MAINTAINERS (Write After Approval): Add myself to the list.
6125
6126 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6127
6128         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6129         (proc_prettyprint_signal): Likewise.
6130         (proc_prettyprint_faultset): Likewise.
6131         (proc_prettyprint_fault): Likewise.
6132         (proc_prettyprint_actionset): Likewise.
6133         (proc_prettyprint_flags): Move to new proc-flags.c section.
6134         (proc_prettyfprint_flags): New prototype.
6135         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6136         (proc_syscall, proc_cursig): Likewise.
6137         (proc_set_kill_on_last_close): Likewise.
6138         (proc_unset_kill_on_last_close): Likewise.
6139         (proc_set_watchpoint): Make static.
6140         (proc_delete_dead_threads): Likewise.
6141         (procfs_set_watchpoint): Likewise.
6142         (_initialize_procfs): Add prototype.
6143         * proc-events.c: Include proc-utils.h.
6144         (init_syscall_table): Make static.
6145         * proc-api.c (_initialize_proc_api): Add prototype.
6146         * proc-flags.c: Include proc-utils.h.
6147
6148 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6149
6150         * configure.ac: Add AC_ARG_PROGRAM.
6151         * configure: Regenerate.
6152
6153 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6154
6155         Fix DW_AT_lower_bound defaults for DWARF-4+.
6156         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6157         high.  New variable low_default_is_valid.  Implement DWARF-4+
6158         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6159         no default by the DWARF standard.
6160
6161 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6162             Maciej W. Rozycki  <macro@codesourcery.com>
6163
6164         * infrun.c (handle_inferior_event): Move the check for return
6165         trampolines ahead of the check for function trampolines.
6166         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6167         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6168         (mips_str_mips16_ret_stub): Likewise.
6169         (mips_str_call_fp_stub): Likewise.
6170         (mips_str_call_stub): Likewise.
6171         (mips_str_fn_stub): Likewise.
6172         (mips_str_pic): Likewise.
6173         (mips_in_frame_stub): New function.
6174         (mips_unwind_pc): Return the return address rather than the PC
6175         if the PC of an intermediate frame is inside a call thunk.
6176         (mips_is_stub_suffix): New function.
6177         (mips_is_stub_mode): Likewise.
6178         (mips_get_mips16_fn_stub_pc): Likewise.
6179         (mips_skip_mips16_trampoline_code): Update to handle all the
6180         currently generated stub types.  Don't recurse into __fn_stub
6181         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6182         Use cooked register accesses.
6183         (mips_in_return_stub): Reintroduce function.
6184         (mips_skip_trampoline_code): Traverse trampolines recursively.
6185         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6186
6187 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6188
6189         GDB 7.4.1 released.
6190
6191 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6192
6193         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6194         * features/arm-with-m-vfp-d16.xml: New file. Describes
6195         Cortex-M with VFPv4-sp-d16 FPU register layout.
6196         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6197         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6198         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6199         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6200         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6201
6202 2012-04-25  Doug Evans  <dje@google.com>
6203
6204         * cli/cli-decode.c (print_doc_line): Use stream instead of
6205         current_uiout.
6206
6207 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6208
6209         * features/arm-with-iwmmxt.c: Regenerate.
6210         * features/arm-with-m-fpa-layout.c: Likewise.
6211         * features/arm-with-m.c: Likewise.
6212         * features/arm-with-neon.c: Likewise.
6213         * features/arm-with-vfpv2.c: Likewise.
6214         * features/arm-with-vfpv3.c: Likewise.
6215         * features/mips-dsp-linux.c: Likewise.
6216         * features/mips-linux.c: Likewise.
6217         * features/mips64-dsp-linux.c: Likewise.
6218         * features/mips64-linux.c: Likewise.
6219         * features/s390-linux32.c: Likewise.
6220         * features/s390-linux32v1.c: Likewise.
6221         * features/s390-linux32v2.c: Likewise.
6222         * features/s390-linux64.c: Likewise.
6223         * features/s390-linux64v1.c: Likewise.
6224         * features/s390-linux64v2.c: Likewise.
6225         * features/s390x-linux64.c: Likewise.
6226         * features/s390x-linux64v1.c: Likewise.
6227         * features/s390x-linux64v2.c: Likewise.
6228         * features/tic6x-c62x-linux.c: Likewise.
6229         * features/tic6x-c62x.c: Likewise.
6230         * features/tic6x-c64x-linux.c: Likewise.
6231         * features/tic6x-c64x.c: Likewise.
6232         * features/tic6x-c64xp-linux.c: Likewise.
6233         * features/tic6x-c64xp.c: Likewise.
6234         * target-descriptions.c: Only generate `field_type' and `type'
6235         variables when needed.
6236
6237 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6238
6239         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6240
6241 2012-04-25  Doug Evans  <dje@google.com>
6242
6243         Initial pass at Go language support.
6244         * NEWS: Mention Go.
6245         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6246         go-valprint.c.
6247         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6248         (YYFILES): Add go-exp.c.
6249         (YYOBJ): Add go-exp.o.
6250         (local-maintainer-clean): Delete go-exp.c.
6251         * defs.h (enum language): Add language_go.
6252         * dwarf2read.c: #include "go-lang.h".
6253         (fixup_go_packaging): New function.
6254         (process_full_comp_unit): Call it when processing Go CUs.
6255         (dwarf2_physname): Add Go support.
6256         (read_file_scope): Handle missing language spec for GNU Go.
6257         (set_cu_language): Handle DW_LANG_Go.
6258         * go-exp.y: New file.
6259         * go-lang.h: New file.
6260         * go-lang.c: New file.
6261         * go-typeprint.c: New file.
6262         * go-valprint.c: New file.
6263         * symtab.c: #include "go-lang.h".
6264         (symbol_set_language): Handle language_go.
6265         (symbol_find_demangled_name, symbol_set_names): Ditto.
6266         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6267
6268 2012-04-24  Jim Meyering  <meyering@redhat.com>
6269
6270         avoid a few strncpy-induced buffer overruns
6271         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6272         fname and psargs before trying to concatenate.
6273         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6274         "name" before applying strchr.
6275
6276 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6277
6278         * CONTRIBUTE: Use unified diff instead of context diff when
6279         generating patches.
6280
6281 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6282
6283         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6284         code.  Handle JR.HB correctly.
6285
6286 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6287
6288         * mips-tdep.c
6289         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6290         with the other MIPS16 helpers.
6291
6292 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6293
6294         * observer.sh: Conditionally declare `args', thus cleaning up
6295         unused instances of this variable.
6296
6297 2012-04-24  Yao Qi  <yao@codesourcery.com>
6298
6299         Revert this patch to allow breakpoint always-inserted
6300         in record target.
6301         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6302         * breakpoint.c: Include record.h.
6303         (breakpoints_always_inserted_mode): Return false when the record
6304         target is in use.
6305
6306         * breakpoint.c (iterate_over_bp_locations): New.
6307         * breakpoint.h: Declare.
6308         New typedef walk_bp_location_callback.
6309         * record.c (record_open): Call record_init_record_breakpoints.
6310         (record_sync_record_breakpoints): New.
6311         (record_init_record_breakpoints): New.
6312         * NEWS: Mention supporting breakpoint always-inserted mode in
6313         record target.
6314
6315 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6316
6317         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6318         any thread.
6319
6320 2012-04-24  Yao Qi  <yao@codesourcery.com>
6321
6322         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6323         (is_catchpoint): ... it.
6324         (print_one_breakpoint_location): Caller update.
6325         * breakpoint.h: Update declaration.
6326
6327 2012-04-23  David S. Miller  <davem@davemloft.net>
6328
6329         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6330
6331 2012-04-23  Tom Tromey  <tromey@redhat.com>
6332
6333         * buildsym.c (add_free_pendings): Remove.
6334         * buildsym.h (add_free_pendings): Remove.
6335
6336 2012-04-23  Doug Evans  <dje@google.com>
6337
6338         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6339         attr.u.unsnd instead of attr.u.addr.
6340         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6341         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6342         DW_FORM_ref_udata.
6343         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6344         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6345         DW_FORM_ref_udata.
6346         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6347
6348 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6349
6350         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6351         (mips_o32_return_value): Likewise.
6352         (mips_o64_return_value): Likewise.
6353
6354 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6355
6356         * ada-lang.c (ada_evaluate_subexp): Add cases for
6357         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6358         their treatment in eval.c.
6359
6360 2012-04-21  David S. Miller  <davem@davemloft.net>
6361
6362         * sparc-tdep.c (X_DISP10): Define.
6363         (sparc_analyze_control_transfer): Handle compare-and-branch.
6364
6365 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6366
6367         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6368         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6369
6370 2012-04-20  Nigel Stephens  <nigel@mips.com>
6371             Maciej W. Rozycki  <macro@codesourcery.com>
6372
6373         * mips-tdep.c (mips_float_register_p): New function.
6374         (mips_convert_register_float_case_p): Use mips_float_register_p.
6375         (mips_register_type): Likewise.
6376         (mips_print_register): Likewise.
6377         (print_gp_register_row): Likewise.
6378         (mips_print_registers_info): Likewise.
6379
6380 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6381
6382         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6383         of mips16 symbols.
6384
6385 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6386
6387         * MAINTAINERS (Write After Approval): Add myself to the list.
6388
6389 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6390
6391         * MAINTAINERS: Update my e-mail address.
6392
6393 2012-04-20  Pedro Alves  <palves@redhat.com>
6394
6395         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6396         $srcdir.
6397         * configure: Regenerate.
6398
6399 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6400
6401         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6402         declaration.
6403         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6404
6405 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6406
6407         Fix compilation compatibility with python-2.4
6408         * python/py-type.c (convert_field): Cast ADDRSTRING for
6409         PyObject_SetAttrString as non-const.  New comment.
6410
6411 2012-04-19  Tom Tromey  <tromey@redhat.com>
6412
6413         * top.c (quit_target): Use all_cleanups.
6414         * main.c (captured_command_loop): Use all_cleanups.
6415         * exceptions.c (throw_exception): Use all_cleanups.
6416
6417 2012-04-19  Pedro Alves  <palves@redhat.com>
6418
6419         * Makefile.in (GNULIB_BUILDDIR): New.
6420         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6421         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6422         (CLEANDIRS). Remove gnulib/import.
6423         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6424         (all-lib): Ditto.
6425         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6426         (gnulib/import/Makefile): Replace gnulib/import with
6427         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6428         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6429         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6430         acx_configure_dir.m4.
6431         * acinclude.m4: Include acx_configure_dir.m4.
6432         * acx_configure_dir.m4: New file.
6433         * aclocal.m4: Regenerate.
6434         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6435         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6436         (GNULIB): New variable.
6437         (GNULIB_STDINT_H): Adjust.
6438         (AC_OUTPUT): Don't output gnulib/Makefile.
6439         * gdb/defs.h: Include build-gnulib/config.h.
6440         * aclocal.m4: Regenerate.
6441         * config.in: Regenerate.
6442         * configure: Regenerate.
6443
6444         * gnulib/Makefile.in: New file.
6445         * gnulib/configure.ac: New file.
6446         * gnulib/aclocal.m4: New file.
6447         * gnulib/config.in: New file.
6448         * gnulib/configure: New file.
6449         * gnulib/: Re-run gnulib-tool to adjust.
6450
6451 2012-04-19  Doug Evans  <dje@google.com>
6452
6453         * cleanups.h (struct cleanup): Move to cleanups.c.
6454         (make_cleanup_dtor_ftype): New typedef.
6455         (make_cleanup_dtor): Use it.
6456         (ALL_CLEANUPS): Replace with ...
6457         (all_cleanups): ... this.  Declare.  All uses updated.
6458         * cleanups.c: #include "gdb_assert.h".
6459         (sentinel_cleanup): New static global.
6460         (SENTINEL_CLEANUP): Define.
6461         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6462         (make_my_cleanup2): Assert result is non-NULL.
6463         (all_cleanups): New function.
6464         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6465         of NULL.
6466
6467 2012-04-19  Pedro Alves  <palves@redhat.com>
6468
6469         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6470         Adjust paths to gnulib imported files.
6471
6472 2012-04-19  Pedro Alves  <palves@redhat.com>
6473
6474         * gnulib/: Move whole directory ...
6475         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6476         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6477         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6478         (aclocal_m4_deps): Adjust.
6479         * aclocal.m4: Regenerate.
6480         * configure: Regenerate.
6481         * configure.ac: Adjust AC_OUTPUT output.
6482
6483 2012-04-19  Yao Qi  <yao@codesourcery.com>
6484
6485         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6486         (vec.o): New rule.
6487         * vec.c: Move it ...
6488         * common/vec.c: ... here.
6489         * vec.h: Move it ...
6490         * common/vec.h: ... here.
6491
6492 2012-04-19  Yao Qi  <yao@codesourcery.com>
6493
6494         * gdb-code-style.el: New.
6495
6496 2012-04-18  Pedro Alves  <palves@redhat.com>
6497
6498         Update gnulib from latest git.
6499         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6500
6501         * gnulib/Makefile.am: Update.
6502         * gnulib/dummy.c: Update.
6503         * gnulib/extra/arg-nonnull.h: Update.
6504         * gnulib/extra/c++defs.h: Update.
6505         * gnulib/extra/update-copyright: Update.
6506         * gnulib/extra/warn-on-use.h: Update.
6507         * gnulib/inttypes.in.h: Update.
6508         * gnulib/m4/00gnulib.m4: Update.
6509         * gnulib/m4/extensions.m4: Update.
6510         * gnulib/m4/gnulib-cache.m4: Update.
6511         * gnulib/m4/gnulib-common.m4: Update.
6512         * gnulib/m4/gnulib-comp.m4: Update.
6513         * gnulib/m4/gnulib-tool.m4: Update.
6514         * gnulib/m4/include_next.m4: Update.
6515         * gnulib/m4/inttypes-pri.m4: Update.
6516         * gnulib/m4/inttypes.m4: Update.
6517         * gnulib/m4/longlong.m4: Update.
6518         * gnulib/m4/memchr.m4: Update.
6519         * gnulib/m4/memmem.m4: Update.
6520         * gnulib/m4/mmap-anon.m4: Update.
6521         * gnulib/m4/multiarch.m4: Update.
6522         * gnulib/m4/onceonly.m4: Update.
6523         * gnulib/m4/stddef_h.m4: Update.
6524         * gnulib/m4/stdint.m4: Update.
6525         * gnulib/m4/string_h.m4: Update.
6526         * gnulib/m4/warn-on-use.m4: Update.
6527         * gnulib/m4/wchar_h.m4: Update.
6528         * gnulib/m4/wchar_t.m4: Update.
6529         * gnulib/m4/wint_t.m4: Update.
6530         * gnulib/memchr.c: Update.
6531         * gnulib/memmem.c: Update.
6532         * gnulib/stddef.in.h: Update.
6533         * gnulib/stdint.in.h: Update.
6534         * gnulib/str-two-way.h: Update.
6535         * gnulib/string.in.h: Update.
6536         * gnulib/wchar.in.h: Update.
6537
6538         * gnulib/extra/arg-nonnull.h: Delete.
6539         * gnulib/extra/c++defs.h: Delete.
6540         * gnulib/extra/warn-on-use.h: Delete.
6541         * gnulib/m4/wchar_h.m4: Delete.
6542         * gnulib/m4/wint_t.m4: Delete.
6543         * gnulib/wchar.in.h: Delete.
6544
6545         * gnulib/extra/snippets/arg-nonnull.h: New.
6546         * gnulib/extra/snippets/c++defs.h: New.
6547         * gnulib/extra/snippets/warn-on-use.h: New.
6548
6549         * aclocal.m4: Regenerate.
6550         * config.in: Regenerate.
6551         * configure: Regenerate.
6552         * gnulib/Makefile.in: Regenerate.
6553
6554 2012-04-18  Pedro Alves  <palves@redhat.com>
6555
6556         Reimport the update-copyright module from gnulib
6557         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6558
6559         * configure: Regenerate.
6560         * gnulib/Makefile.am: Update.
6561         * gnulib/Makefile.in: Regenerate.
6562         * gnulib/extra/update-copyright: Update.
6563         * gnulib/m4/gnulib-cache.m4: Update.
6564         * gnulib/m4/gnulib-comp.m4: Update.
6565
6566 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6567
6568         * configure.ac (aix): Put -lpthread into libs.
6569         * configure: Regenerate.
6570
6571 2012-04-18  Tom Tromey  <tromey@redhat.com>
6572
6573         * linespec.c (convert_linespec_to_sals): Don't use
6574         SYMBOL_OBJ_SECTION.
6575         (compare_msymbols): Arguments are minsym_and_objfile, not
6576         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6577
6578 2012-04-18  Pedro Alves  <palves@redhat.com>
6579
6580         Revert gnulib/ part of:
6581         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6582         Copyright year update in most files (performed by copyright.sh).
6583
6584 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6585
6586         Fix 64-bit constants on 32-bit hosts.
6587         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6588         from unsigned long to ULONGEST.
6589         (read_signed_leb128): Change declaration return type from long to
6590         LONGEST.
6591         (dwarf2_const_value_attr): Change declaration parameter value from long
6592         to LONGEST.
6593         (dwarf2_compute_name): Change variable value from long to LONGEST.
6594         (read_unsigned_leb128): Change return type, variable result and some
6595         casts from unsigned long to ULONGEST.
6596         (read_signed_leb128): Change return type, variable result and some
6597         casts from long to LONGEST.
6598         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6599         value from long to LONGEST.
6600         (dwarf2_const_value): Change variable value from long to LONGEST.
6601         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6602         plongest and hex_string.
6603         * symtab.h (struct general_symbol_info): Change ivalue from long to
6604         LONGEST, remove the comment.
6605         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6606         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6607
6608 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6609
6610         PR symtab/7259:
6611         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6612         * ada-lang.c (ada_discrete_type_high_bound)
6613         (ada_discrete_type_low_bound): Fix function comment.  Use
6614         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6615         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6616         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6617         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6618         Use TYPE_FIELD_ENUMVAL.
6619         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6620         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6621         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6622         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6623         TYPE_CODE_ENUM.
6624         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6625         * dwarf2read.c (process_enumeration_scope): Likewise.
6626         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6627         field.bitpos.
6628         (class StructMainTypePrettyPrinter): Support also
6629         FIELD_LOC_KIND_ENUMVAL.
6630         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6631         TYPE_CODE_ENUM.
6632         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6633         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6634         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6635         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6636         field enumval.
6637         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6638         accommodate enumval.
6639         (struct call_site): Adjust loc_kind to accommodate enumval.
6640         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6641         (TYPE_FIELD_ENUMVAL): New macros.
6642         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6643         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6644         TYPE_CODE_ENUM.
6645         * p-typeprint.c (pascal_type_print_base): Likewise.
6646         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6647         enumval.
6648         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6649         * python/py-type.c (convert_field): New variable addrstring.  Use
6650         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6651         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6652         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6653         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6654         TYPE_CODE_ENUM.
6655         * valprint.c (generic_val_print): Likewise.
6656
6657 2012-04-17  Doug Evans  <dje@google.com>
6658
6659         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6660
6661         * dwarf2read.c: Whitespace fixes.
6662         (lookup_signatured_type): Tweak comment.
6663         (get_die_type_at_offset): Fix comment.
6664
6665 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6666
6667         * xcoffread.c (xcoff_secnum_to_sections): New function.
6668         (secnum_to_section, secnum_to_bfd_section): Reimplement
6669         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6670         into "n_scnum".
6671         (RECORD_MINIMAL_SYMBOL): Delete.
6672         (record_minimal_symbol): New function.
6673         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6674         by call to record_minimal_symbol and set misc_func_recorded
6675         to 1.  Set last_csect_sec to the XCOFF section index instead
6676         of GDB's section_offset index.  Update calls to
6677         prim_record_minimal_symbol_and_info to pass the BFD section
6678         as well.
6679
6680 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6681
6682         * xcoffread.c (read_xcoff_symtab): Delete variables
6683         last_csect_val and last_csect_sec and associated code.
6684
6685 2012-04-17  Doug Evans  <dje@google.com>
6686
6687         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6688         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6689         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6690         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6691
6692         * cleanups.h: New file.
6693         * cleanups.c: New file.
6694         * Makefile.in (SFILES): Add cleanups.c.
6695         (HFILES_NO_SRCDIR): Add cleanups.h.
6696         (COMMON_OBS): Add cleanups.o.
6697         * defs.h (struct cleanup): Moved to cleanups.h.
6698         (do_cleanups,do_final_cleanups): Ditto.
6699         (discard_cleanups,discard_final_cleanups): Ditto
6700         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6701         (save_cleanups,save_final_cleanups): Ditto.
6702         (restore_cleanups,restore_final_cleanups): Ditto.
6703         (null_cleanup): Ditto.
6704         (make_my_cleanup,make_my_cleanup2): Ditto.
6705         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6706         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6707         (do_cleanups,do_final_cleanups): Ditto.
6708         (discard_cleanups,discard_final_cleanups): Ditto
6709         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6710         (save_cleanups,save_final_cleanups): Ditto.
6711         (restore_cleanups,restore_final_cleanups): Ditto.
6712         (null_cleanup): Ditto.
6713         (make_my_cleanup,make_my_cleanup2): Ditto.
6714         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6715
6716         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6717         make_my_cleanup.
6718         (make_cleanup_dyn_string_delete): Ditto.
6719         (make_cleanup_ui_file_delete): Ditto.
6720         (make_cleanup_ui_out_redirect_pop): Ditto.
6721         (make_cleanup_free_section_addr_info): Ditto.
6722         (make_cleanup_restore_integer): Ditto.
6723         (make_cleanup_unpush_target): Ditto.
6724         (make_cleanup_value_free_to_mark): Ditto.
6725         (make_cleanup_value_free): Ditto.
6726         (make_cleanup_free_so): Ditto.
6727
6728 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6729
6730         New option "set debug auto-load".
6731         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6732         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6733         (auto_load_safe_path_vec_update)
6734         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6735         if DEBUG_AUTO_LOAD.
6736         (file_is_auto_load_safe): New parameters debug_fmt and ....
6737         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6738         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6739         caller by explanatory string.
6740         (_initialize_auto_load): Register "set debug auto-load".
6741         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6742         and ....
6743         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6744         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6745         by explanatory string.
6746         * main.c (captured_main): Likewise.
6747         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6748         (source_section_scripts): Likewise.
6749
6750 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6751
6752         New option "set auto-load safe-path".
6753         * NEWS: New commands "set auto-load safe-path"
6754         and "show auto-load safe-path".
6755         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6756         (auto_load_safe_path, auto_load_safe_path_vec)
6757         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6758         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6759         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6760         (source_gdb_script_for_objfile): New variable is_safe.  Call
6761         file_is_auto_load_safe.  Return if it is not.
6762         (struct loaded_script): New field loaded.
6763         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6764         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6765         output "Missing" to "No".
6766         (_initialize_auto_load): New variable cmd.  Initialize
6767         auto_load_safe_path.  Register "set auto-load safe-path",
6768         "show auto-load safe-path" and "add-auto-load-safe-path".
6769         * auto-load.h (maybe_add_script): Add parameter loaded.
6770         (file_is_auto_load_safe): New declaration.
6771         * config.in: Regenerate.
6772         * configure: Regenerate.
6773         * configure.ac: New parameters --with-auto-load-safe-path
6774         and --without-auto-load-safe-path.
6775         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6776         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6777         * main.c (captured_main): Check file_is_auto_load_safe for
6778         LOCAL_GDBINIT.
6779         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6780         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6781         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6782         not.
6783
6784 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6785
6786         auto-load: Implementation.
6787         * NEWS: New descriptions for "info auto-load",
6788         "info auto-load gdb-scripts", "info auto-load python-scripts",
6789         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6790         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6791         and "show auto-load-scripts".  New description for "set auto-load",
6792         "show auto-load", "set auto-load gdb-scripts",
6793         "show auto-load gdb-scripts", "set auto-load python-scripts",
6794         "show auto-load python-scripts", "set auto-load local-gdbinit",
6795         "show auto-load local-gdbinit", "set auto-load libthread-db" and
6796         "show auto-load libthread-db".
6797         * auto-load.c: Remove include python/python-internal.h.  Add includes
6798         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6799         cli/cli-setshow.h.
6800         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6801         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6802         (gdbpy_global_auto_load): Rename to ...
6803         (global_auto_load): ... here.
6804         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6805         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6806         (script_language_gdb, source_gdb_script_for_objfile): New.
6807         (struct loaded_script): New field language.
6808         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6809         LANGUAGE.
6810         (maybe_add_script): Add parameter language.  Drop redundant
6811         entry.full_path initialization.  Initialize entry.language and
6812         (*slot)->language.
6813         (auto_load_objfile_script): Change parameter suffix to language.
6814         Remove the call of maybe_add_script.
6815         Call language->source_script_for_objfile.
6816         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6817         New.
6818         (collect_matching_scripts): Adjust it for
6819         struct collect_matching_scripts_data.
6820         (auto_load_info_scripts_pattern_nl): New variable.
6821         (info_auto_load_scripts): Rename to ...
6822         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
6823         for struct collect_matching_scripts_data.
6824         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6825         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6826         (auto_load_show_cmdlist_get, info_auto_load_cmd)
6827         (auto_load_info_cmdlist_get): New.
6828         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6829         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
6830         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6831         "info auto-load local-gdbinit".
6832         * auto-load.h (struct script_language): New.
6833         (gdbpy_global_auto_load): Rename to ...
6834         (global_auto_load): ... here.
6835         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6836         (auto_load_local_gdbinit_loaded): New declarations.
6837         (maybe_add_script): New parameter language.
6838         (auto_load_objfile_script): Change parameter suffix to language.
6839         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6840         (auto_load_info_scripts, auto_load_set_cmdlist_get)
6841         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6842         declarations.
6843         * linux-thread-db.c: Include auto-load.h and ctype.h.
6844         (auto_load_thread_db, show_auto_load_thread_db): New.
6845         (struct thread_db_info): New field filename.
6846         (delete_thread_db_info): Call xfree for FILENAME.
6847         (try_thread_db_load): Initialize FILENAME.
6848         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6849         if !AUTO_LOAD_THREAD_DB.
6850         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6851         (_initialize_thread_db): Install auto_load_thread_db
6852         as "set auto-load libthread-db" and install info_auto_load_libthread_db
6853         as "info auto-load libthread-db".
6854         * main.c (captured_main): Rename gdbpy_global_auto_load to
6855         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6856         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6857         (print_gdb_help): Extend the help for 'local init file'.
6858         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6859         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6860         (auto_load_scripts): Rename to ...
6861         (auto_load_python_scripts): ... here, update the comment.
6862         (gdbpy_load_auto_script_for_objfile): New declaration.
6863         (show_auto_load_python_scripts, script_language_python)
6864         (gdbpy_load_auto_script_for_objfile): New.
6865         (source_section_scripts): Refactor the code.
6866         (load_auto_scripts_for_objfile): Rename to ...
6867         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6868         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6869         (info_auto_load_python_scripts): New.
6870         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6871         Rename "set auto-load-scripts" to "set auto-load python-scripts".
6872         Register "set auto-load-scripts" as its deprecated alias.  Register
6873         "info auto-load python-scripts".  Register "info auto-load-scripts" as
6874         its deprecated alias.
6875         (load_auto_scripts_for_objfile): Rename to ...
6876         (gdbpy_load_auto_scripts_for_objfile): ... here.
6877         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6878         (gdbpy_load_auto_scripts_for_objfile): ... here.
6879
6880 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6881
6882         auto-load: Move files.
6883         * Makefile.in (SFILES): Add auto-load.c.
6884         (HFILES_NO_SRCDIR): Add auto-load.h.
6885         (COMMON_OBS): Add auto-load.o.
6886         (distclean): Change .gdbinit for gdb-gdb.gdb.
6887         * auto-load.c: New file, with parts from python/py-auto-load.c.
6888         * auto-load.h: New file, with parts from python/python.h.
6889         * configure: Regenerate.
6890         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6891         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6892         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6893         * main.c: Include auto-load.h.
6894         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6895         command.h, observer.h and progspace.h to auto-load.c.  Add include
6896         auto-load.h.
6897         (gdbpy_global_auto_load, struct auto_load_pspace_info)
6898         (struct loaded_script, auto_load_pspace_data)
6899         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6900         (hash_loaded_script_entry, eq_loaded_script_entry)
6901         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6902         (maybe_add_script): Move to auto-load.c.
6903         (source_section_scripts): Change maybe_add_script parameters passing,
6904         use script_not_found_warning_print.
6905         (clear_section_scripts, auto_load_objfile_script)
6906         (auto_load_new_objfile, loaded_script_ptr)
6907         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6908         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6909         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6910         auto_load_new_objfile and info_auto_load_scripts initizations to
6911         auto-load.c.
6912         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6913
6914 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6915
6916         Code cleanup.
6917         * charset.c (find_charset_names): Remove variables ix and elt.
6918         Use free_char_ptr_vec.
6919         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6920         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
6921         debugdir_end.  New variable debugdir_len.
6922         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6923         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6924         declarations.
6925         * progspace.c (clear_program_space_solib_cache): Remove variables ix
6926         and elt.  Use free_char_ptr_vec.
6927         * source.c (add_path): Remove variables argv, arg and argv_index.
6928         New variables dir_vec, back_to, ix and name.
6929         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
6930         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
6931         no longer expecting DIRNAME_SEPARATOR.
6932         (openp): Remove variable p, p1 and len.  New variables dir_vec,
6933         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
6934         no longer expecting DIRNAME_SEPARATOR.
6935         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6936         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
6937         debugdir_end.
6938         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6939         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6940         (dirnames_to_char_ptr_vec): New functions.
6941
6942 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6943
6944         Code cleanup.
6945         * source.c (add_path): Remove always true conditional 'p == 0' and
6946         unindent its code block.
6947
6948 2012-04-17  Pedro Alves  <palves@redhat.com>
6949
6950         * gdbtypes.h (FIELD_BITPOS): Rename to ...
6951         (FIELD_BITPOS_LVAL): ... this.
6952         (FIELD_BITPOS): New.
6953         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6954         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6955         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6956         SET_FIELD_BITPOS.
6957         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6958         SET_FIELD_BITPOS.
6959         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6960         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6961         * target-descriptions.c (tdesc_gdb_type): Adjust to use
6962         SET_FIELD_BITPOS.
6963
6964 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6965
6966         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6967         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6968         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6969         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6970         * jv-lang.c (java_link_class_type): Likewise, once.
6971         * stabsread.c (read_enum_type): Likewise.
6972
6973 2012-04-16  Yao Qi  <yao@codesourcery.com>
6974
6975         * common/agent.c (agent_run_command): Add one more parameter `len'.
6976         Update callers.
6977         * common/agent.h: Update declaration.
6978         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6979         Update.
6980         (linux_child_static_tracepoint_markers_by_strid): Ditto.
6981
6982 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
6983
6984         PR mi/13393
6985         * value.c (value_actual_type): New function.
6986         * value.h (value_actual_type): New declaration.
6987         * varobj.c (update_type_if_necessary): New function.
6988         (varobj_create): Call value_actual_type instead of
6989         value_type.
6990         (install_dynamic_child): distinct changed and type changed MI variable
6991         objects.
6992         (update_dynamic_varobj_children): Updated for install_dynamic_child
6993         change.  All callers updated.
6994         (varobj_update): Support for MI variable object type change if
6995         the value changed and RTTI is used to determine the type.
6996         (create_child_with_value): Call value_actual_type instead of
6997         value_type.
6998         (adjust_value_for_child_access): Extended with a new parameter which
6999         specify whether the given value should be casted to enclosing type.
7000         All callers updated.
7001
7002 2012-04-14  Yao Qi  <yao@codesourcery.com>
7003
7004         Import gnulib module inttypes from git
7005         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7006         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7007         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7008         gnulib/m4/inttypes-pri.m4
7009         * aclocal.m4, config.in, configure: Regenerated.
7010         * gnulib/Makefile.am: Update.
7011         * gnulib/Makefile.in: Update.
7012         * gnulib/m4/gnulib-cache.m4: Update.
7013         * gnulib/m4/gnulib-comp.m4: Update.
7014         * gnulib/inttypes.in.h: New.
7015         * gnulib/m4/inttypes-pri.m4: New.
7016         * gnulib/m4/inttypes.m4: New.
7017
7018 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7019
7020         * infrun.c (resume): Update PC address to the real PC after
7021         preparing to do displaced stepping.
7022
7023 2012-04-12  Doug Evans  <dje@google.com>
7024
7025         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7026         All callers updated.
7027
7028 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7029
7030         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7031
7032 2012-04-12  Doug Evans  <dje@google.com>
7033
7034         * dwarf2read.c (create_all_type_units): Renamed from
7035         create_debug_types_hash_table.  All callers updated.
7036
7037         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7038         local type_sig to sig_type, type_offset to type_offset_in_tu.
7039         (hash_signatured_type): Renamed from hash_type_signature,
7040         all callers updated.
7041         (eq_signatured_type): Renamed from eq_type_signature,
7042         all callers updated.
7043         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7044         (process_enumeration_scope): Ditto.
7045         (lookup_signatured_type_at_offset): Ditto.
7046         (load_full_type_unit, read_signatured_type): Ditto.
7047
7048 2012-04-12  Yao Qi  <yao@codesourcery.com>
7049
7050         * remote.c (async_remote_interrupt): Correct function name in
7051         debug message.
7052         (async_remote_interrupt_twice): Ditto.
7053
7054 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7055
7056         * source.c (find_and_open_source): Consistently pass resulting
7057         full path through xfullpath.
7058
7059 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7060
7061         Provide more specific displaced-stepping memory error message.
7062         * infrun.c (displaced_step_prepare): New variable status.  Call
7063         target_read_memory instead of read_memory, provide more specific
7064         error message.
7065
7066 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7067
7068         PR gdb/13901
7069         * darwin-nat.c (darwin_execvp): Revert previous patch.
7070
7071 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7072
7073         PR gdb/13901
7074         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7075         in case of change.
7076
7077 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7078
7079         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7080         warning.
7081
7082 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7083
7084         New command 'explore' which helps explore values and types in
7085         scope.
7086         * NEWS: Add an entry about the new 'explore' command.
7087         * data-directory/Makefile.in: Add gdb/command/explore.py
7088         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7089         command using the GDB Python API.
7090
7091 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7092
7093         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7094         extension in jump target calculation.
7095
7096 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7097
7098         * mips-tdep.c (mips32_next_pc): Handle JALX.
7099
7100 2012-04-10  Yao Qi  <yao@codesourcery.com>
7101
7102         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7103
7104 2012-04-10  Yao Qi  <yao@codesourcery.com>
7105
7106         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7107         and gnulib/m4/gnulib-tool.m4.
7108
7109 2012-04-10  Doug Evans  <dje@google.com>
7110
7111         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7112         (load_partial_dies): Clarify comment.
7113         (find_partial_die): Support rereading type units.
7114         Clarify CU handling, if we know offset is in CU, don't search for the
7115         containing CU.  Add comment regarding memory waste.
7116
7117 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7118
7119         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7120         i386/x32-avx and i386/x32-avx-linux.
7121         (i386/x32-expedite): New.
7122         (i386/x32-linux-expedite): Likewise.
7123         (i386/x32-avx-expedite): Likewise.
7124         (i386/x32-avx-linux-expedite): Likewise.
7125         ($(outdir)/i386/x32.dat): Likewise.
7126         ($(outdir)/i386/x32-linux.dat): Likewise.
7127         ($(outdir)/i386/x32-avx.dat): Likewise.
7128         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7129
7130         * features/i386/x32-avx-linux.xml: New file.
7131         * features/i386/x32-avx.xml: Likewise.
7132         * features/i386/x32-core.xml: Likewise.
7133         * features/i386/x32-linux.xml: Likewise.
7134         * features/i386/x32.xml: Likewise.
7135
7136         * features/i386/x32-avx-linux.c: New.  Generated.
7137         * features/i386/x32-avx.c: Likewise.
7138         * features/i386/x32-linux.c: Likewise.
7139         * features/i386/x32.c: Likewise.
7140         * regformats/i386/x32-avx-linux.dat: Likewise.
7141         * regformats/i386/x32-avx.dat: Likewise.
7142         * regformats/i386/x32-linux.dat: Likewise.
7143         * regformats/i386/x32.dat: Likewise.
7144
7145 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7146
7147         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7148         code to kill the inferior.
7149
7150 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7151
7152         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7153         defines.
7154         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7155         defines.
7156         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7157         (yyvsp): New defines.
7158         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7159         defines.
7160         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7161         defines.
7162         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7163         defines.
7164         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7165         defines.
7166         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7167         defines.
7168
7169 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7170
7171         * sparc64-tdep.c (sparc64_store_arguments)
7172         (sparc64_store_arguments): Fix coding style.
7173
7174 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7175
7176         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7177         complex floats, adjust some related comments and tighten a related
7178         assertion.
7179         (sparc64_extract_return_value): Handle complex floats.
7180
7181 2012-04-07  Doug Evans  <dje@google.com>
7182
7183         * dwarf2read.c (load_partial_dies): Change condition to assert.
7184
7185 2012-04-06  Doug Evans  <dje@google.com>
7186
7187         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7188         "mov %rsp,%rbp".
7189
7190 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7191
7192         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7193         fencepost error.
7194         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7195         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7196         architecture.
7197
7198 2012-04-05  Keith Seitz  <keiths@redhat.com>
7199
7200         * linespec.c (decode_compound): Remove.
7201         (enum offset_relative_sign): New enum.
7202         (struct line_offset): New struct.
7203         (struct linespec): New struct.
7204         (struct linespec_state): Move file_symtabs,
7205         user_filename, and user_function into struct linespec.
7206         Make result an anonymous struct holding vectors of
7207         symbolp and minsym_and_objfile_d.
7208         Add language member.
7209         (enum ls_token_type): New enum.
7210         (linespec_keywords): New array.
7211         (struct ls_token): New struct.
7212         (struct ls_parser): New struct.
7213         (linespec_lexer_lex_number): New function.
7214         (linespec_lexer_lex_keyword): New function.
7215         (is_ada_operator): New function.
7216         (skip_quote_char): New function.
7217         (copy_token_string): New function.
7218         (is_closing_quote_enclosed): New function.
7219         (find_parameter_list_end): New function.
7220         (linespec_lexer_lex_string): New function.
7221         (linespec_lexer_lex_one): New function.
7222         (linespec_lexer_consume_token): New function.
7223         (linespec_lexer_peek_token): New function.
7224         (cplusplus_error): Remove unused function.
7225         (find_methods): Update comment.
7226         (find_toplevel_char): Return const.
7227         (is_objc_method_format): Remove unused function.
7228         (find_toplevel_string): New function.
7229         (is_linespec_boundary): Remove.
7230         (symbol_not_found_error): New function.
7231         (find_method_overload_end): Remove function.
7232         (unexpected_linespec_error): New function.
7233         (keep_name_info): Remove.
7234         (linespec_parse_line_offset): New function.
7235         (linespec_parse_basic): New function.
7236         (canonicalize_linespec): New function.
7237         (decode_line_internal): Remove.
7238         (create_sals_line_offset): New function adapted from
7239         decode_all_digits.
7240         (convert_linespec_to_sals): New function.
7241         (parse_linespec): New function.
7242         (linespec_parser_new): New function.
7243         (linespec_state_destructor): Change parameter type to
7244         struct linespec_state *.
7245         Add language parameter.
7246         Remove freeing of moved members.
7247         (linespec_parser_delete): New function.
7248         (decode_line_full): Use parse_linespec and linespec_parser_new.
7249         (decode_line_1): Likewise.
7250         (decode_indirect): Rename to ...
7251         (linespec_expression_to_pc): ... this and rewrite
7252         to simply find CORE_ADDR, storing this result for later
7253         conversion to SALs.
7254         (locate_first_half): Remove.
7255         (deocde_objc): Add parameter LS.
7256         Initialize new struct collect_info members.
7257         Handle minimal symbols, too.
7258         (decode_compound): Delete.
7259         (lookup_prefix_sym): Rewrite.
7260         (compare_msymbols): New function.
7261         (find_method): Rewrite.
7262         Do not call cplusplus_error.
7263         (symtabs_from_filename): Rewrite.
7264         (collect_function_symbols): Delete.
7265         (find_function_symbols): Rewrite without ARGPTR-style
7266         processing.
7267         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7268         (decode_dollar): Adapted and renamed to ...
7269         (linespec_parse_variable): ... this.
7270         (find_linespec_symbols): New function.
7271         (decode_label): Adapted and renamed to ...
7272         (find_label_symbols): ... this.
7273         (decode_digits_list_mode): Add and use LS argument.
7274         (decode_digits_ordinary): Likewise.
7275         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7276         If in list mode, allow any symbol class.  Otherwise, only
7277         permit LOC_BLOCK symbols.
7278         (minsym_found): Update comments.
7279         (search_minsyms_for_name): Do not convert the matching symbol
7280         into a SAL.  Simply push the symbol and objfile into the
7281         result vector.
7282         (decode_variable): Delete. Contents adapted into
7283         find_linespec_symbols.
7284
7285         * cp-support.c (SKIP_SPACE): Remove.
7286         (operator_tokens): Remove unused global.
7287         (cp_validate_operator): Remove.
7288         * cp-support.h (cp_validate_operator): Remove declaration.
7289
7290 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7291
7292         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7293         for TYPE_VPTR_FIELDNO.
7294         * valprint.c (valprint_check_validity): Make it global, move the
7295         function comment ...
7296         * value.h (valprint_check_validity): ... to this new declaration.
7297
7298 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7299
7300         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7301         the STATE32 api for i386 state.
7302         (i386_darwin_store_inferior_registers): Likewise.
7303
7304 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7305
7306         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7307         SS offset.
7308         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7309         format_string.
7310
7311 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7312
7313         PR gdb/13901
7314         * darwin-nat.c (darwin_execvp): Set binary preference.
7315
7316 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7317
7318         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7319
7320 2012-03-30  Tom Tromey  <tromey@redhat.com>
7321
7322         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7323         of TRY_CATCH.  Fix error handling.
7324         * python/py-value.c (convert_value_from_python): Move 'old'
7325         declaration to innermost scope.
7326
7327 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7328             Andrey Smirnov  <andrew.smirnov@gmail.com>
7329
7330         -Wshadow warning fix.
7331         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7332         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7333         Adjust code accordingly.
7334
7335 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7336
7337         * ada-lang.c (symbol_completion_add): Rename parameter
7338         "encoded" into "encoded_p".  Ajust code and documentation
7339         accordingly.
7340
7341 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7342             Andrey Smirnov  <andrew.smirnov@gmail.com>
7343
7344         -Wshadow warning fix.
7345         * ada-lang.c (symbol_completion_add): Rename parameter
7346         "wild_match" into wild_match_p.  Update code and documentation
7347         accordingly.
7348
7349 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7350
7351         * ada-lang.c (symbol_completion_match): Rename parameter
7352         "encoded" into "encoded_p".  Ajust code and documentation
7353         accordingly.
7354
7355 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7356             Andrey Smirnov  <andrew.smirnov@gmail.com>
7357
7358         -Wshadow warning fix.
7359         * ada-lang.c (symbol_completion_match): Rename parameter
7360         "wild_match" into "wild_match_p".  Adjust code and function
7361         documentation accordingly.
7362
7363 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7364             Andrey Smirnov  <andrew.smirnov@gmail.com>
7365
7366         -Wshadow warning fix.
7367         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7368         "symbol_info" into "info".  Adjust code accordingly.
7369         (ada_lookup_symbol): Likewise.
7370
7371 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7372
7373         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7374         of this function's documentation.
7375
7376 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7377             Andrey Smirnov  <andrew.smirnov@gmail.com>
7378
7379         -Wshadow warning fix.
7380         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7381         variable into "wild_match_p".  Adjust code accordingly.
7382
7383 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7384             Andrey Smirnov  <andrew.smirnov@gmail.com>
7385
7386         -Wshadow warning fix.
7387         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7388         parameter into "wild_match_p".  Adjust code accordingly.
7389         Document this parameter in the function description.
7390
7391 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7392             Andrey Smirnov  <andrew.smirnov@gmail.com>
7393
7394         -Wshadow warning fix.
7395         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7396         "wild_match" parameter to "wild_match_p" (-Wshadow).
7397
7398 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7399
7400         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7401         in function documentation.
7402
7403 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7404             Andrey Smirnov  <andrew.smirnov@gmail.com>
7405
7406         -Wshadow warning fix.
7407         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7408         variable into wild_match_p.  Adjust code accordingly.
7409
7410 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7411             Andrey Smirnov  <andrew.smirnov@gmail.com>
7412
7413         * ada-valprint.c (ada_val_print_1): Move the code handling
7414         TYPE_CODE_ENUM inside its own lexical block.  Declare
7415         variables len and val there, instead of in the function's
7416         top level block.  Avoid declaring deref_val again in a way
7417         that shadows another variable of the same name declared
7418         in one of the up-level blocks.  Just re-use the up-level
7419         variable instead.
7420
7421 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7422
7423         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7424         Replace block_found argument by symbol_info.  Adjust
7425         implementation accordingly.  Add function documentation.
7426         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7427         Fix documentation.
7428         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7429         * ada-exp.y (write_object_renaming): Adjust to new
7430         ada_lookup_encoded_symbol API.
7431
7432 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7433
7434         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7435         documentation.
7436
7437 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7438
7439         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7440         (v850_register_name): Add the mpu and fpu register names.
7441         (v850e_register_name): Add the mpu and fpu register names.
7442         (v850e2_register_name): New function.
7443         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7444         bfd_mach_v850e2v3.
7445
7446 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7447
7448         * NEWS: Add entry for Ada varobj support.
7449
7450 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7451
7452         * varobj.c (default_value_is_changeable_p): New function,
7453         extracted from varobj_value_is_changeable_p.  Add declaration.
7454         (ada_value_is_changeable_p): New function, extracted from
7455         varobj_value_is_changeable_p.  Add declaration.
7456         (struct language_specific): New field "value_is_changeable_p".
7457         (languages): Add entries for new field.
7458         (varobj_create): Set language before calling install_new_value.
7459         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7460         "value_is_changeable_p" language callback.
7461
7462 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7463
7464         * ada-varobj.h, ada-varobj.c: New files.
7465         * Makefile.in (SFILES): Add ada-varobj.c.
7466         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7467         (COMMON_OBS): Add ada-varobj.o.
7468
7469 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7470
7471         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7472         (struct language_specific): New field "value_has_mutated".
7473         (languages): Set field "value_has_mutated" in each entry of array.
7474         (varobj_value_has_mutated): New function.
7475         (varobj_udpdate): Add handling of type mutation.
7476         (value_of_root): Add handling of type mutation.
7477         (ada_value_has_mutated): New function.
7478
7479 2012-03-28  Pedro Alves  <palves@redhat.com>
7480
7481         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7482         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7483
7484 2012-03-28  Tom Tromey  <tromey@redhat.com>
7485
7486         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7487         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7488         before returning.
7489
7490 2012-03-28  Tom Tromey  <tromey@redhat.com>
7491
7492         * .dir-locals.el: New file.
7493
7494 2012-03-28  Pedro Alves  <palves@redhat.com>
7495
7496         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7497
7498 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7499
7500         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7501         handling for r0.
7502
7503 2012-03-27  Pedro Alves  <palves@redhat.com>
7504
7505         Eliminate struct ui_stream.
7506
7507         * ui-out.h (struct ui_stream): Delete.
7508         (ui_out_field_stream): Adjust prototype.
7509         (ui_out_stream_new, ui_out_stream_delete)
7510         (make_cleanup_ui_out_stream_delete): Delete declarations.
7511         * ui-out.c (ui_out_field_stream): Change prototype to take a
7512         ui_file instead of a ui_stream.  Adjust.
7513         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7514         (make_cleanup_ui_out_stream_delete): Delete.
7515         * breakpoint.c (print_breakpoint_location)
7516         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7517         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7518         * disasm.c (dump_insns): Ditto.
7519         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7520         prototype.
7521         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7522         ui_stream/ui_out_stream_new.
7523         * infcmd.c (print_return_value): Ditto.
7524         * osdata.c (info_osdata_command): Don't allocate a local
7525         ui_stream.
7526         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7527         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7528         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7529         allocate a local ui_stream.
7530         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7531         instead of ui_stream/ui_out_stream_new.
7532         (list_args_or_locals): Don't allocate a local ui_stream.
7533         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7534         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7535         ui_stream/ui_out_stream_new.
7536         * cli/cli-setshow.c (do_setshow_command): Ditto.
7537
7538 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7539
7540         * arm-linux-tdep.c (arm_linux_init_abi): Call
7541         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7542         * arm-tdep.c (arm_process_record): New function.
7543         (deallocate_reg_mem): New function.
7544         (decode_insn): New function.
7545         (thumb_record_branch): New function.
7546         (thumb_record_ldm_stm_swi(): New function.
7547         (thumb_record_misc): New function.
7548         (thumb_record_ld_st_stack): New function.
7549         (thumb_record_ld_st_imm_offset): New function.
7550         (thumb_record_ld_st_reg_offset(): New function.
7551         (thumb_record_add_sub_cmp_mov): New function.
7552         (thumb_record_shift_add_sub): New function.
7553         (arm_record_coproc_data_proc): New function.
7554         (arm_record_coproc): New function.
7555         (arm_record_b_bl): New function.
7556         (arm_record_ld_st_multiple): New function.
7557         (arm_record_ld_st_reg_offset): New function.
7558         (arm_record_ld_st_imm_offset): New function.
7559         (arm_record_data_proc_imm): New function.
7560         (arm_record_data_proc_misc_ld_str): New function.
7561         (arm_record_extension_space): New function.
7562         (arm_record_strx): New function.
7563         (sbo_sbz): New function.
7564         (struct insn_decode_record): New structure for arm insn record.
7565         (REG_ALLOC): New macro for reg allocations.
7566         (MEM_ALLOC): New macro for memory allocations.
7567         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7568
7569 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7570
7571         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7572         (store_register): Likewise.
7573
7574 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7575
7576         * MAINTAINERS (Write After Approval): Add myself to the list.
7577
7578 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7579
7580         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7581         Describe also the option "auto".
7582
7583 2012-03-22  Richard Henderson  <rth@redhat.com>
7584
7585         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7586         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7587
7588 2012-03-22  Richard Henderson  <rth@redhat.com>
7589
7590         * jit.c (jit_read_code_entry): Compute alignment and offset of
7591         int64_t member before computing entry_size.
7592
7593 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7594
7595         Python scripting: Add new method Value.referenced_value to
7596         gdb.Value which can dereference pointer as well as reference
7597         values.
7598         * NEWS: Add entry under 'Python scripting' about the new method
7599         Value.referenced_value on gdb.Value objects.
7600         * python/py-value.c (valpy_referenced_value): New function
7601         defining a new method on gdb.Value objects which can dereference
7602         pointer and reference values.
7603
7604 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7605
7606         * MAINTAINERS (Write After Approval): Add myself to the list.
7607
7608 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7609
7610         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7611         in addition to "main".
7612
7613 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7614
7615         * expression.h (op_name): Add declaration.
7616         * expprint.c (op_name): Remove declaration.  Make non-static.
7617         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7618
7619 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7620
7621         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7622         of struct siginfo.
7623         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7624         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7625         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7626         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7627         (linux_nat_get_siginfo): Likewise.
7628         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7629         (linux_nat_get_siginfo): Likewise.
7630         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7631         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7632         * procfs.c (gdb_siginfo_t): Likewise.
7633
7634 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7635
7636         * .gitignore: Ignore more files.
7637
7638 2012-03-20  Pedro Alves  <palves@redhat.com>
7639
7640         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7641         returns.
7642
7643 2012-03-20  Yao Qi  <yao@codesourcery.com>
7644
7645         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7646         comment.
7647
7648 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7649
7650         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7651         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7652         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7653         sect_offset.
7654         * dwarf2expr.h (cu_offset, sect_offset): New types.
7655         (struct dwarf_expr_context_funcs) <dwarf_call>
7656         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7657         sect_offset.
7658         (struct dwarf_expr_context) <len>: Improve the comment.
7659         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7660         cu_offset and sect_offset.
7661         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7662         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7663         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7664         * dwarf2loc.h: Include dwarf2expr.h.
7665         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7666         and sect_offset.
7667         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7668         Improve the comment.
7669         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7670         (struct signatured_type, struct line_header, struct partial_die_info)
7671         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7672         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7673         (get_die_type_at_offset, create_cus_from_index)
7674         (create_signatured_type_table_from_index, dw2_get_file_names)
7675         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7676         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7677         (create_debug_types_hash_table, process_psymtab_comp_unit)
7678         (load_partial_comp_unit, create_all_comp_units)
7679         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7680         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7681         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7682         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7683         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7684         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7685         (find_partial_die, read_attribute_value, lookup_die_type)
7686         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7687         (is_ref_attr): New function comment.
7688         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7689         Use cu_offset and sect_offset.
7690         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7691         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7692         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7693         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7694         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7695         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7696         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7697         sect_offset.
7698
7699 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7700
7701         Code cleanup.
7702         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7703         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7704         with xfree.
7705         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7706
7707 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7708
7709         * NEWS: Describe new options --init-command=FILE, -ix and
7710         --init-eval-command=COMMAND, -iex.
7711         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7712         CMDARG_INIT_COMMAND.
7713         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7714         "init-command", "init-eval-command", "ix" and "iex" to the variable
7715         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7716         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7717         (print_gdb_help): Describe --init-command=FILE, -ix and
7718         --init-eval-command=COMMAND, -iex.
7719
7720 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7721
7722         Code cleanup.
7723         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7724         (cmdarg_s, VEC (cmdarg_s)): New.
7725         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7726         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7727         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7728         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7729         of CMDARG.
7730
7731 2012-03-19  Tom Tromey  <tromey@redhat.com>
7732
7733         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7734
7735 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7736
7737         PR symtab/13777
7738         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7739         GCC >=4.5.
7740
7741 2012-03-16  Chris January  <chris.january@allinea.com>
7742
7743         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7744         of clear.
7745
7746 2012-03-16  Chris January  <chris.january@allinea.com>
7747
7748         * source.c (add_path): Use memmove instead of strcpy because the
7749         strings overlap.
7750
7751 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7752
7753         * value.h (set_value_parent): Add declaration.
7754         * value.c (set_value_parent): New function.
7755         (value_address): If VALUE->PARENT is not NULL, then use it as
7756         the base address instead of VALUE->LOCATION.address.
7757         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7758         the same as OBJ's address.  Adjust V's offset accordingly.
7759         Set V's parent.
7760
7761 2012-03-16  Gary Benson  <gbenson@redhat.com>
7762
7763         PR breakpoints/10738
7764         * dwarf2read.c (use_deprecated_index_sections): New global.
7765         (struct partial_die_info): New member may_be_inlined.
7766         (read_partial_die): Set may_be_inlined where appropriate.
7767         (add_partial_subprogram): Add partial symbols for partial
7768         DIEs that may be inlined.
7769         (new_symbol_full): Add inlined subroutines to the current
7770         scope.
7771         (write_psymtabs_to_index): Bump version number.
7772         (dwarf2_read_index): Read only version 6 indices unless
7773         use_deprecated_index_sections is set.
7774         * linespec.c (symbol_and_data_callback): New structure.
7775         (iterate_inline_only): New function.
7776         (iterate_over_all_matching_symtabs): New argument
7777         "include_inline".  If nonzero, also call the callback for
7778         symbols representing inlined subroutines.
7779         (lookup_prefix_sym): Pass extra argument to the above.
7780         (find_function_symbols): Likewise.
7781         (add_matching_symbols_to_info): Likewise.
7782         * NEWS: Mention that GDB can now set breakpoints on inlined
7783         functions.
7784
7785 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7786
7787         * p-typeprint.c (pascal_type_print_method_args):
7788         Fix display of parameter of methods.
7789
7790 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7791
7792         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7793         Add missing prototype.
7794
7795 2012-03-16  Yao Qi  <yao@codesourcery.com>
7796             Jan Kratochvil  <jan.kratochvil@redhat.com>
7797
7798         Fix false compilation warning.
7799         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7800
7801 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
7802             Pedro Alves  <pedro@codesourcery.com>
7803
7804         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7805         (arm_register_g_packet_guesses): New function.
7806         (arm_gdbarch_init): Don't force a target description with
7807         registers when the executable is detected as M-profile.  Instead
7808         set gdbarch->tdep->is_m.  Register `g' packet guesses.
7809         (_initialize_arm_tdep): Initialize the new target description.
7810         * features/arm-with-m-fpa-layout.xml: New description.
7811         * features/arm-with-m-fpa-layout.c: New, generated.
7812
7813 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
7814
7815         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7816         Update function description.
7817         (insert_bp_location): Do not wipe bl->target_info out.
7818         * mem-break.c: #include "gdb_string.h".
7819         (default_memory_insert_breakpoint): Do not call target_read_memory
7820         with a pointer to the breakpoint's shadow_contents buffer.  Use
7821         a local buffer instead.
7822         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7823
7824 2012-03-15  Tom Tromey  <tromey@redhat.com>
7825
7826         * NEWS: Mention "info vtbl", not "info vtable".
7827         * cp-support.c (info_vtbl_command): Fix comment.
7828         (_initialize_cp_support): Fix text.
7829
7830 2012-03-15  Tom Tromey  <tromey@redhat.com>
7831
7832         * cp-valprint.c (cp_print_value_fields): Use
7833         print_function_pointer_address for vtable slot.
7834
7835 2012-03-15  Tom Tromey  <tromey@redhat.com>
7836
7837         * gnu-v3-abi.c (struct value_and_voffset): New.
7838         (hash_value_and_voffset, eq_value_and_voffset)
7839         (compare_value_and_voffset, compute_vtable_size)
7840         (print_one_vtable, gnuv3_print_vtable): New functions.
7841         (init_gnuv3_ops): Initialize 'print_vtable' field.
7842         * cp-support.c (info_vtbl_command): New function.
7843         (_initialize_cp_support): Add "info vtbl".
7844         * cp-abi.h (cplus_print_vtable): Declare.
7845         (struct cp_abi_ops) <print_vtable>: New field.
7846         * cp-abi.c (cplus_print_vtable): New function.
7847         * NEWS: Update.
7848
7849 2012-03-15  Tom Tromey  <tromey@redhat.com>
7850
7851         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7852         iterate_over_symbols.
7853
7854 2012-03-14  Doug Evans  <dje@google.com>
7855
7856         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7857         DW_OP_GNU_parameter_ref.
7858
7859 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7860
7861         Fix double prompt of 'interpreter-exec mi'.
7862         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7863         (mi_interpreter_resume): use it.
7864         (mi_execute_command_input_handler): New function.
7865         * mi/mi-main.c (mi_execute_command): Move prompt printing to
7866         mi_execute_command_input_handler.
7867
7868 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
7869
7870         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7871         prototype.
7872         (darwin_debug_port_info): Make static.
7873         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7874         * machoread.c (_initialize_machoread): Add prototype.
7875         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7876         (i386_darwin_set_control, i386_darwin_get_control)
7877         i386_darwin_dr_set_addr, i386_darwin_get_addr)
7878         i386_darwin_get_status, i386_darwin_get_control):
7879         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7880
7881 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7882
7883         * ax-gdb.c (gen_usual_unary): Remove special handling of
7884         enum and bool types.
7885
7886 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7887
7888         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7889
7890 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7891
7892         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7893
7894 2012-03-13  Chris January  <chris.january@allinea.com>
7895
7896         * aix-thread.c (fill_sprs): Store the floating point registers
7897         at the correct offsets into vals.
7898
7899 2012-03-13  Doug Evans  <dje@google.com>
7900
7901         * NEWS: Mention symbol-reloading has been deleted.
7902         * symfile.c (symbol_reloading): Delete.
7903         (show_symbol_reloading): Delete.
7904         (_initialize_symfile): Delete set/show symbol-reloading.
7905
7906         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7907         read_in_chain until we have successfully read it in.
7908         (load_full_comp_unit): Ditto.
7909         (read_signatured_type): Add comment.
7910
7911 2012-03-13  Chris January  <chris.january@allinea.com>
7912
7913         * stabsread.c (fix_common_block): Change type of valu argument
7914         to CORE_ADDR.
7915
7916 2012-03-13  Chris January  <chris.january@allinea.com>
7917
7918         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7919         instruction.
7920
7921 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7922
7923         * common/linux-procfs.c (linux_proc_get_int): New, from
7924         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7925         field.
7926         (linux_proc_get_tgid): Only call linux_proc_get_int.
7927         (linux_proc_get_tracerpid): New.
7928         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7929         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7930         linux_proc_pid_has_state.
7931         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7932         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7933         (linux_ptrace_attach_warnings): New.
7934         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7935         New declaration.
7936         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7937         (linux_nat_attach): New variables ex, buffer, message and message_s.
7938         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7939
7940 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7941
7942         * Makefile.in (linux-ptrace.o): New.
7943         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7944         from linux-nat.c.
7945         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7946         * common/linux-ptrace.c: New file.
7947         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7948         * config/arm/linux.mh: Likewise.
7949         * config/i386/linux.mh: Likewise.
7950         * config/i386/linux64.mh: Likewise.
7951         * config/ia64/linux.mh: Likewise.
7952         * config/m32r/linux.mh: Likewise.
7953         * config/m68k/linux.mh: Likewise.
7954         * config/mips/linux.mh: Likewise.
7955         * config/pa/linux.mh: Likewise.
7956         * config/powerpc/linux.mh: Likewise.
7957         * config/powerpc/ppc64-linux.mh: Likewise.
7958         * config/powerpc/spu-linux.mh: Likewise.
7959         * config/s390/s390.mh: Likewise.
7960         * config/sparc/linux.mh: Likewise.
7961         * config/sparc/linux64.mh: Likewise.
7962         * config/xtensa/linux.mh: Likewise.
7963         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7964         common/linux-procfs.c.
7965         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7966
7967 2012-03-13  Hui Zhu  <teawater@gmail.com>
7968             Pedro Alves  <palves@redhat.com>
7969
7970         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
7971         CREATE_BREAKPOINT_FLAGS_INSERTED.
7972         (create_breakpoint_sal, create_breakpoints_sal)
7973         (base_breakpoint_create_breakpoints_sal)
7974         (tracepoint_create_breakpoints_sal)
7975         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
7976         down.
7977         (break_command_1, handle_gnu_v3_exceptions, trace_command)
7978         (ftrace_command, strace_command): Adjust.
7979         (create_tracepoint_from_upload): Pass
7980         CREATE_BREAKPOINT_FLAGS_INSERTED.
7981         * breakpoint.h (enum breakpoint_create_flags): New.
7982         (create_breakpoint): New flags parameter.
7983         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7984         * python/py-breakpoint.c (bppy_init): Adjust.
7985         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7986         * spu-tdep.c (spu_catch_start): Adjust.
7987
7988 2012-03-13  Pedro Alves  <palves@redhat.com>
7989             Hui Zhu  <teawater@gmail.com>
7990             Yao Qi  <yao@codesourcery.com>
7991
7992         * remote.c (struct remote_state): New field `starting_up'.
7993         (remote_start_remote): Set and clear it.
7994         (remote_can_download_tracepoint): If starting up, return false.
7995
7996 2012-03-13  Yao Qi  <yao@codesourcery.com>
7997
7998         * inferior.h (struct inferior): Remove fields any_syscall_count,
7999         syscalls_counts and total_syscalls_count.  Move them to new
8000         struct catch_syscall_inferior_data in breakpoint.c.
8001         * breakpoint.c: Call DEF_VEC_I(int).
8002         (struct catch_syscall_inferior_data): New.
8003         (get_catch_syscall_inferior_data): New.
8004         (catch_syscall_inferior_data_cleanup): New.
8005         (insert_catch_syscall): Update to access data in
8006         struct catch_syscall_inferior_data.
8007         (insert_catch_syscall): Likewise.
8008         (remove_catch_syscall): Likewise.
8009         (remove_catch_syscall): Likewise.
8010         (is_syscall_catchpoint_enabled): Likewise.
8011         (add_catch_command): Likewise.
8012         (_initialize_breakpoint): Register cleanup.
8013         * breakpoint.h: Removed DEF_VEC_I(int).
8014         * dwarf2loc.c: Call DEF_VEC_I(int).
8015         * mi/mi-main.c: Likewise.
8016
8017 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8018
8019         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8020
8021 2012-03-12  Chris January  <chris.january@allinea.com>
8022
8023         * aix-thread.c (_initialize_aix_thread): Add prototype.
8024         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8025         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8026
8027 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8028
8029         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8030         include of "amd64-nat.h".
8031
8032 2012-03-12  Tom Tromey  <tromey@redhat.com>
8033
8034         * buildsym.c (record_pending_block): Now static.
8035         * buildsym.h: (record_pending_block): Remove.
8036
8037 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8038
8039         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8040
8041 2012-03-09  Tom Tromey  <tromey@redhat.com>
8042
8043         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8044         producer_is_gxx_lt_4_6>: New fields.
8045         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8046
8047 2012-03-09  Tom Tromey  <tromey@redhat.com>
8048
8049         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8050
8051 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8052
8053         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8054         prototype.
8055
8056 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8057
8058         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8059
8060 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8061
8062         Fix -Wmissing-prototypes build.
8063         * arm-linux-nat.c (get_thread_id): Make it static.
8064         * xtensa-linux-nat.c (get_thread_id): Likewise.
8065
8066 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8067
8068         * server.c (process_point_options): If a conditional expression
8069         is found, only print a message if remote_debug is nonzero.
8070
8071 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8072
8073         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8074         of internal error for unknown/unsupported types.
8075
8076 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8077
8078         Fix CU relative vs. absolute DIE offsets.
8079         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8080         offset to offset_in_cu.
8081         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8082         TYPE_OFFSET.
8083         (dwarf2_fetch_die_location_block): Rename parameter offset to
8084         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8085
8086 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8087
8088         * libunwind-frame.c: Rename to ...
8089         * ia64-libunwind-tdep.c: ... here.
8090         * libunwind-frame.h: Rename to ...
8091         * ia64-libunwind-tdep.h: ... here.
8092         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8093         ia64-libunwind-tdep.h.
8094         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8095         * README (--with-libunwind): Rename to ...
8096         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8097         * config.in: Regenerate.
8098         * configure: Regenerate.
8099         * configure.ac: New option --with-libunwind-ia64, make the
8100         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8101         Remove AC_DEFINE for HAVE_LIBUNWIND.
8102         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8103         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8104         Rename libunwind-frame in the general comment.
8105         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8106         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8107         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8108         the general comment.
8109         * ia64-tdep.c: Rename libunwind-frame.h #include to
8110         ia64-libunwind-tdep.h.
8111         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8112         (ia64_libunwind_descr): Rename libunwind-frame to
8113         ia64-libunwind-tdep in these function comments.
8114         * ia64-tdep.h: Rename libunwind-frame.h #include to
8115         ia64-libunwind-tdep.h.
8116         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8117         ia64-libunwind-tdep in that data comment.
8118
8119 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8120
8121         * libunwind-frame.h (struct frame_unwind): New declaration.
8122
8123 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8124
8125         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8126         "set breakpoint condition-evaluation" command.
8127
8128 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8129
8130         * sparc-stub.c: Move to stubs/
8131         * sh-stub.c: Likewise.
8132         * m68k-stub.c: Likewise.
8133         * m32r-stub.c: Likewise.
8134         * i386-stub.c: Likewise.
8135
8136 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8137
8138         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8139         linux_get_siginfo_type.
8140
8141         * m68klinux-nat.c: Include "gdb_proc_service.h".
8142         (PTRACE_GET_THREAD_AREA): Define.
8143         (ps_get_thread_area): New function.
8144
8145 2012-03-08  Yao Qi  <yao@codesourcery.com>
8146
8147         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8148         `xsnprintf'.
8149         (remote_query_attached): Likewise.
8150         (remote_static_tracepoint_marker_at): Likewise.
8151         (remote_set_permissions): Likewise.
8152         (remote_detach_1, extended_remote_attach_1): Likewise.
8153         (send_g_packet, remote_vkill): Likewise.
8154         (extended_remote_disable_randomization): Likewise.
8155         (remote_add_target_side_condition): Likewise.
8156         (remote_insert_breakpoint): Likewise.
8157         (remote_remove_breakpoint): Likewise.
8158         (remote_insert_watchpoint): Likewise.
8159         (remote_remove_watchpoint): Likewise.
8160         (remote_insert_hw_breakpoint): Likewise.
8161         (remote_insert_hw_breakpoint): Likewise.
8162         (remote_remove_hw_breakpoint): Likewise.
8163         (remote_download_command_source): Likewise.
8164         (remote_download_tracepoint): Likewise.
8165         (remote_download_trace_state_variable): Likewise.
8166         (remote_disable_tracepoint): Likewise.
8167         (remote_trace_set_readonly_regions): Likewise.
8168         (remote_get_tracepoint_status): Likewise.
8169         (remote_trace_find): Likewise.
8170         (remote_get_trace_state_variable_value): Likewise.
8171         (remote_set_disconnected_tracing): Likewise.
8172         (remote_set_circular_trace_buffer): Likewise.
8173         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8174         (remote_use_agent): Likewise.
8175         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8176         Update callers.
8177
8178 2012-03-07  Pedro Alves  <palves@redhat.com>
8179
8180         * NEWS: Mention QProgramSignals.
8181         * inferior.h (update_signals_program_target): Declare.
8182         * infrun.c: (update_signals_program_target): New.
8183         (handle_command): Update the target of the new program signals
8184         array changes.
8185         * remote.c (PACKET_QProgramSignals): New enum.
8186         (last_program_signals_packet): New global.
8187         (remote_program_signals): New.
8188         (remote_start_remote): Update the target with the program signals
8189         list.
8190         (remote_protocol_features): Add entry for QPassSignals.
8191         (remote_open_1): Free anc clear last_program_signals_packet.
8192         (init_remote_ops): Install remote_program_signals.
8193         * target.c (update_current_target): Adjust.
8194         (target_program_signals): New.
8195         * target.h (struct target_ops) <to_program_signals>: New field.
8196         (target_program_signals): Declare.
8197
8198 2012-03-07  Pedro Alves  <palves@redhat.com>
8199
8200         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8201         extensions.
8202
8203 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8204
8205         * m68klinux-nat.c (getregs_supplies): Make static.
8206         (getfpregs_supplies): Likewise.
8207         (have_ptrace_getregs): Likewise.
8208
8209 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8210
8211         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8212         in call to get_die_type_at_offset.
8213
8214 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8215
8216         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8217         * mi/mi-cmd-disas.c: Ditto.
8218         * mi/mi-cmd-env.c: Ditto.
8219         * mi/mi-cmd-file.c: Ditto.
8220         * mi/mi-cmd-stack.c: Ditto.
8221         * mi/mi-cmd-target.c: Ditto.
8222         * mi/mi-cmd-var.c: Ditto.
8223         * mi/mi-cmds.c: Ditto.
8224         * mi/mi-cmds.h: Ditto.
8225         * mi/mi-console.c: Ditto.
8226         * mi/mi-getopt.c: Ditto.
8227         * mi/mi-getopt.h: Ditto.
8228         * mi/mi-interp.c: Ditto.
8229         * mi/mi-main.c: Ditto.
8230         * mi/mi-out.c: Ditto.
8231         * mi/mi-parse.c: Ditto.
8232         * mi/mi-parse.h: Ditto.
8233         * mi/mi-symbol-cmds.c: Ditto.
8234
8235         * mi/mi-getopt.h: Move mi_opt struct up.
8236         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8237         return.
8238         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8239
8240 2012-03-06  Tom Tromey  <tromey@redhat.com>
8241
8242         * proc-service.c (ps_pglobal_lookup): Set the current program
8243         space.
8244
8245 2012-03-06  Pedro Alves  <palves@redhat.com>
8246
8247         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8248
8249 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8250
8251         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8252
8253 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8254
8255         Code cleanup.
8256         * common/linux-osdata.c (linux_common_core_of_thread): New function
8257         comment.
8258         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8259         call by linux_common_core_of_thread.
8260         (linux_nat_core_of_thread_1): Remove.
8261         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8262         * linux-thread-db.c: Include linux-osdata.h.
8263         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8264         linux_common_core_of_thread.
8265
8266 2012-03-05  Tom Tromey  <tromey@redhat.com>
8267
8268         * value.c (value_primitive_field): Don't fetch contents for
8269         non-virtual bases.
8270
8271 2012-03-05  Tom Tromey  <tromey@redhat.com>
8272
8273         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8274
8275 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8276
8277         * s390-nat.c: Include "gregset.h".
8278
8279 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8280
8281         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8282         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8283         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8284         load also LIBUNWIND_SO_7.
8285
8286 2012-03-05  Pedro Alves  <palves@redhat.com>
8287
8288         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8289         is not NULL, and remove resulting dead code.
8290
8291 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8292
8293         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8294         prologue to sh_analyze_prologue.
8295         (sh_analyze_prologue): Make better use of such an upper limit, and
8296         generally be more cautious about accessing memory.
8297
8298 2012-03-05  Tom Tromey  <tromey@redhat.com>
8299
8300         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8301         _initialize_ia64_hpux_tdep.
8302
8303 2012-03-05  Pedro Alves  <palves@redhat.com>
8304
8305         PR gdb/13766
8306
8307         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8308         the register state is clear, supply explicit zero, instead of
8309         marking the register unavailable.
8310
8311 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8312
8313         * NEWS: Mention OpenVMS ia64 new target.
8314
8315 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8316
8317         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8318         (ia64_unw_accessors, ia64_unw_rse_accessors)
8319         (ia64_libunwind_descr): Declare.
8320         * ia64-vms-tdep.c: New file.
8321         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8322         (ia64_libunwind_descr): Make them public.
8323         * configure.tgt: Add ia64-*-*vms*.
8324         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8325         (ALLDEPFILES): Add ia64-vms-tdep.c
8326
8327 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8328
8329         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8330         * remote.c (PACKET_qXfer_uib): New enum value.
8331         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8332         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8333         (_initialize_remote): Call add_packet_config_cmd for
8334         xfer:uib packet.
8335
8336 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8337
8338         * osabi.c (gdb_osabi_names): Add OpenVMS.
8339         (generic_elf_osabi_sniffer): Likewise.
8340         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8341
8342 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8343
8344         Removed unused code.
8345         * libunwind-frame.c (libunwind_frame_unwind)
8346         (libunwind_frame_base_address): Remove.
8347         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8348
8349 2012-03-04  Yao Qi  <yao@codesourcery.com>
8350
8351         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8352         remove trailing new line.
8353         (agent_run_command, agent_run_command): Add _ markup.
8354         (agent_capability_check): Likewise.
8355
8356 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8357
8358         * breakpoint.c (set_condition_evaluation_mode): Set
8359         CONDITION_EVALUATION_MODE unconditionally.
8360
8361 2012-03-03  Yao Qi  <yao@codesourcery.com>
8362
8363         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8364         * common/agent.h: Update declaration.
8365         * inf-child.c (inf_child_use_agent): New.
8366         (inf_child_can_use_agent): New.
8367         (inf_child_target): Initialize fields `to_use_agent'
8368         and `to_can_use_agent'.
8369         * agent.c (agent_new_objfile): New.
8370         (_initialize_agent): Add agent_new_objfile to new_objfile
8371         observer.
8372
8373         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8374         New.
8375         (linux_target_install_ops): Initialize field
8376         `to_static_tracepoint_markers_by_strid'.
8377         * remote.c (free_current_marker): Move it to ...
8378         * tracepoint.c (free_current_marker): ... here.  New.
8379         (cleanup_target_stop): New.
8380         * tracepoint.h: Declare free_current_marker.
8381         * NEWS: Add one entry about `info static-tracepoint-marker'.
8382
8383 2012-03-03  Yao Qi  <yao@codesourcery.com>
8384
8385         * common/agent.c (agent_loaded_p): New.
8386         (agent_look_up_symbols): New global.
8387         * common/agent.h: Declare agent_loaded_p.
8388
8389 2012-03-03  Yao Qi  <yao@codesourcery.com>
8390
8391         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8392         (agent_capability_check, agent_capability_invalidate): New.
8393         (symbol_list): New array element.
8394         * common/agent.h (enum agent_capa): New.
8395         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8396
8397 2012-03-03  Yao Qi  <yao@codesourcery.com>
8398
8399         * target.h (struct target_ops) <to_use_agent>: New field.
8400         (struct target_ops) <to_can_use_agent>: New field.
8401         (target_use_agent, target_can_use_agent): New macro.
8402         * target.c (update_current_target): Update.
8403         * remote.c: New enum `PACKET_QAgent'.
8404         (remote_protocol_features): Add a new element.
8405         (remote_use_agent, remote_can_use_agent): New.
8406         (init_remote_ops): Initialize field `can_use_agent' with
8407         remote_can_use_agent.  Intiailize field `use_agent' with
8408         remote_use_agent.
8409         * common/agent.c (use_agent): New global.
8410         * common/agent.h: Declare it.
8411         * tracepoint.c (info_static_tracepoint_markers_command): Add
8412         comment.
8413         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8414         (COMMON_OBS): Add common/agent.o and agent.o
8415         (common-agent.o): New rule.
8416         * agent.c: New.
8417
8418 2012-03-03  Yao Qi  <yao@codesourcery.com>
8419
8420         * common/agent.c: New.
8421         * common/agent.h: New.
8422         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8423         AC_CHECK_HEADERS.
8424         * configure, configh.in: Regenerated.
8425
8426 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8427
8428         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8429         unless it exists for this architecture.
8430
8431 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8432
8433         * language.h (struct language_defn): New "method" la_read_var_value.
8434         * findvar.c: #include "language.h".
8435         (default_read_var_value): Renames read_var_value.  Rewrite
8436         function description.
8437         (read_var_value): New function.
8438         * value.h (default_read_var_value): Add prototype.
8439         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8440         New functions.
8441         (ada_language_defn): Add entry for la_read_var_value.
8442         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8443         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8444         language_defn structures to add entry for new la_read_var_value
8445         field.
8446
8447 2012-03-02  Tom Tromey  <tromey@redhat.com>
8448             Pedro Alves  <palves@redhat.com>
8449
8450         PR breakpoints/13776:
8451         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8452         breakpoints.
8453         (delete_longjmp_breakpoint_at_next_stop): New.
8454         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8455         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8456         before deleting the inferior.  Add comments.
8457         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8458         breakpoints immediately, but only on next stop.  Move that code
8459         next to where we mark other breakpoints for deletion.
8460
8461 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8462
8463         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8464         marker.
8465         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8466         violation.
8467
8468 2012-03-02  Pedro Alves  <palves@redhat.com>
8469
8470         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8471
8472 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8473
8474         Fix -Wmissing-prototypes build.
8475         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8476         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8477         (gdbsim_has_memory): Likewise.
8478
8479 2012-03-02  Yao Qi  <yao@codesourcery.com>
8480
8481         Fix -Wmissing-prototypes build.
8482         * charset.c (phony_iconv_open): Make static.
8483         (phony_iconv_close, phony_iconv): Likewise.
8484         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8485         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8486         prototype.
8487         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8488         * ser-mingw.c (create_select_thread): Make static.
8489         * windows-termcap.c (tgetent): New prototype.
8490         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8491
8492 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8493
8494         Fix -Wmissing-prototypes build.
8495         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8496         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8497         (_initialize_loadable): New prototypes.
8498
8499 2012-03-02  Doug Evans  <dje@google.com>
8500
8501         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8502         abbrev table, read_comp_unit will do it.
8503
8504 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8505
8506         Fix -Wmissing-prototypes build.
8507         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8508         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8509         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8510         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8511         (_initialize_arm_symbian_tdep): New prototype.
8512         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8513         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8514         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8515         static.
8516         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8517         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8518         prototype.
8519         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8520         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8521         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8522         static.
8523         * moxie-tdep.c (moxie_process_record): Likewise.
8524         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8525         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8526         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8527         (_initialize_rl78_tdep): New prototype.
8528         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8529         (_initialize_rx_tdep): New prototype.
8530         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8531         (_initialize_darwin_solib): New prototype.
8532         * solib-spu.c: Include solib-spu.h.
8533         (_initialize_spu_solib): New prototype.
8534         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8535         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8536         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8537         (tic6x_software_single_step): Make it static.
8538         (_initialize_tic6x_tdep): New prototype.
8539
8540 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8541
8542         Fix -Wmissing-prototypes build.
8543         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8544         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8545
8546 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8547
8548         Fix -Wmissing-prototypes build.
8549         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8550         (frv_have_stopped_data_address): Remove.
8551
8552 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8553
8554         Fix -Wmissing-prototypes build.
8555         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8556         * sh-tdep.c: Include sh64-tdep.h.
8557         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8558         * sh64-tdep.c: Include sh64-tdep.h.
8559         * sh64-tdep.h: New file.
8560
8561 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8562
8563         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8564
8565 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8566
8567         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8568         sp_regnum once the gdbarch_init_osabi hook has been called.
8569
8570 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8571
8572         * mips-tdep.c (mips32_bc1_pc): New function.
8573         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8574         BPOSGE32 and BPOSGE64 instructions.
8575         (deal_with_atomic_sequence): Likewise.
8576         (mips32_instruction_has_delay_slot): Likewise.
8577
8578 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8579             Chris Dearman  <chris@mips.com>
8580             Maciej W. Rozycki  <macro@codesourcery.com>
8581             Joseph Myers  <joseph@codesourcery.com>
8582
8583         * features/mips-dsp.xml: New file.
8584         * features/mips64-dsp.xml: New file.
8585         * features/mips-dsp-linux.xml: New file.
8586         * features/mips64-dsp-linux.xml: New file.
8587         * features/Makefile (WHICH): Add mips-dsp-linux and
8588         mips64-dsp-linux.
8589         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8590         * features/mips-dsp-linux.c: New file.
8591         * features/mips64-dsp-linux.c: New file.
8592         * regformats/mips-dsp-linux.dat: New file.
8593         * regformats/mips64-dsp-linux.dat: New file.
8594         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8595         registers.
8596         (mips64_linux_register_addr): Likewise.
8597         (mips64_linux_regsets_fetch_registers): Likewise.
8598         (mips64_linux_regsets_store_registers): Likewise.
8599         (mips64_linux_fetch_registers): Update call to
8600         mips64_linux_regsets_fetch_registers.
8601         (mips64_linux_store_registers): Update call to
8602         mips64_linux_regsets_store_registers.
8603         (mips_linux_read_description): Probe for DSP registers.
8604         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8605         and initialize_tdesc_mips64_dsp_linux.
8606         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8607         Remove padding of no longer used embedded register slots.
8608         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8609         (MIPS_RESTART_REGNUM): Redefine enum value.
8610         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8611         strings.
8612         (mips_tx39_reg_names): Likewise.
8613         (mips_linux_reg_names): New array of register names for Linux
8614         targets.
8615         (mips_register_name): Check for a null pointer in
8616         mips_processor_reg_names and return an empty string.
8617         (mips_register_type): Exclude embedded registers for the IRIX
8618         and Linux ABIs.
8619         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8620         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8621         DSP registers.
8622         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8623         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8624         (mips_gdbarch_init): Likewise.  Initialize internal register
8625         indices for the Linux ABI.  Use dynamic numbers to refer to
8626         registers, as applicable, while parsing the target description.
8627         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8628
8629 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8630
8631         * frame.h (read_frame_register_unsigned): Fix typo in function
8632         description.
8633
8634 2012-03-01  Pedro Alves  <palves@redhat.com>
8635
8636         * jit-reader.in [!__cplusplus]
8637         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8638
8639 2012-03-01  Pedro Alves  <palves@redhat.com>
8640
8641         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8642         * configure: Regenerate.
8643
8644 2012-03-01  Pedro Alves  <palves@redhat.com>
8645
8646         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8647         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8648         (ftrace_command, strace_command): Make static.
8649         * d-lang.c (_initialize_d_language): Declare.
8650         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8651         * dwarf2loc.c (_initialize_dwarf2loc):
8652         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8653         * exec.c (exec_get_section_table): Make static.
8654         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8655         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8656         * inferior.c (remove_inferior_command, add_inferior_command)
8657         (clone_inferior_command): Make static.
8658         * linux-nat.c (linux_nat_thread_address_space)
8659         (linux_nat_core_of_thread): Make static.
8660         * linux-tdep.c (_initialize_linux_tdep): Declare.
8661         * objc-lang.c (_initialize_objc_lang): Declare.
8662         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8663         Make static.
8664         (_initialize_opencl_language): Declare.
8665         * record.c (_initialize_record): Declare.
8666         * remote.c (demand_private_info, remote_get_tib_address)
8667         (remote_supports_cond_tracepoints)
8668         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8669         Make static.
8670         * skip.c (_initialize_step_skip): Declare.
8671         * symtab.c (skip_prologue_using_lineinfo): Make static.
8672         * tracepoint.c (delete_trace_state_variable)
8673         (trace_variable_command, delete_trace_variable_command)
8674         (get_uploaded_tsv, find_matching_tracepoint_location)
8675         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8676         Make static.
8677         * value.c (pack_unsigned_long): Make static.
8678         * varobj.c (varobj_ensure_python_env): Make static.
8679         * windows-tdep.c (_initialize_windows_tdep): Declare.
8680         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8681
8682 2012-03-01  Pedro Alves  <palves@redhat.com>
8683
8684         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8685         gdbarch parameter.
8686         (linux_init_abi): Install it as has_shared_address_space gdbarch
8687         callback.
8688
8689 2012-03-01  Pedro Alves  <palves@redhat.com>
8690
8691         * observer.c (observer_test_first_notification_function)
8692         (observer_test_second_notification_function)
8693         (observer_test_third_notification_function): Add declarations.
8694
8695 2012-03-01  Pedro Alves  <palves@redhat.com>
8696
8697         * common/signals.c (default_target_signal_to_host)
8698         (default_target_signal_from_host): Move ...
8699         * arch-utils.c: ... here.
8700         * arch-utils.h (default_target_signal_to_host)
8701         (default_target_signal_from_host): Declare.
8702
8703         * common/signals.c (target_signal_from_command): Move ...
8704         * infrun.c: ... here.
8705         * inferior.h (target_signal_from_command): Declare.
8706         * target.h (target_signal_from_command)
8707         (default_target_signal_from_host, default_target_signal_to_host):
8708         Delete declarations.
8709
8710         * common/signals.c (_initialize_signals): Delete.
8711
8712 2012-03-01  Pedro Alves  <palves@redhat.com>
8713
8714         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8715         both __cplusplus and !__cplusplus.
8716
8717 2012-03-01  Pedro Alves  <palves@redhat.com>
8718
8719         * psymtab.c (find_and_open_source): Delete declaration.
8720         * source.c (find_and_open_source): Move comment ...
8721         * source.h (find_and_open_source): ... to this new declaration.
8722
8723 2012-03-01  Pedro Alves  <palves@redhat.com>
8724
8725         * inline-frame.c: Include inline-frame.h.
8726
8727 2012-03-01  Pedro Alves  <palves@redhat.com>
8728
8729         * tui/tui-data.c (set_gen_win_origin): Delete.
8730         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8731         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8732
8733 2012-03-01  Pedro Alves  <palves@redhat.com>
8734
8735         * remote.c (encode_actions): Delete declaration.
8736         * tracepoint.c (encode_actions): Make extern.
8737         * tracepoint.h (encode_actions): Declare.
8738
8739 2012-03-01  Pedro Alves  <palves@redhat.com>
8740
8741         * python/py-breakpoint.c: Include python.h.
8742         * python/py-continueevent.c (create_continue_event_object): Make
8743         static.
8744         * python/py-lazy-string.c (stpy_get_type): Make static.
8745         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8746         Make static.
8747         * python/py-utils.c (unicode_to_target_python_string): Make
8748         static.
8749         * python/py-value.c: Include python.h.
8750
8751 2012-03-01  Pedro Alves  <palves@redhat.com>
8752
8753         * inferior.c (delete_threads_of_inferior): Delete.
8754
8755 2012-03-01  Pedro Alves  <palves@redhat.com>
8756
8757         Import fallback definitions from glibc.
8758
8759         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8760         ps_prochandle): Forward declare.
8761         (ps_err_e): Use glibc's comments.
8762         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8763         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8764         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8765         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8766         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8767         (struct ps_prochandle): Adjust comment.
8768
8769 2012-03-01  Pedro Alves  <palves@redhat.com>
8770
8771         * ada-lang.c (ada_modulus_from_name): Delete.
8772         * ada-lex.l (lexer_init): Make static.
8773
8774 2012-03-01  Pedro Alves  <palves@redhat.com>
8775
8776         PR gdb/13767
8777
8778         * frame.c (read_frame_register_unsigned): New.
8779         * frame.h (read_frame_register_unsigned): Declare.
8780         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8781         Handle it.
8782         (print_i387_control_word): New parameter `control_p'.  Handle it.
8783         (i387_print_float_info): Handle unavailable float registers.
8784
8785 2012-03-01  Keith Seitz  <keiths@redhat.com>
8786
8787         * linespec.c (decode_line_2): Sort the list of methods
8788         alphabetically before presenting the user with a selection
8789         menu.
8790
8791 2012-03-01  Doug Evans  <dje@google.com>
8792
8793         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8794         has_namespace_info.
8795         (dwarf2_read_abbrevs): Remove corresponding initialization.
8796
8797 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
8798
8799         * NEWS: Mention new python command class gdb.COMMAND_USER.
8800         * cli/cli-cmds.c (show_user): Print error when used on a python
8801         command.
8802         (init_cli_cmds): Update documentation strings for "show user" and
8803         "set/show max-user-call-depth" to clarify that it does not apply to
8804         python commands.
8805         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8806         error check.
8807         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8808         gdb python api.
8809         * top.c (execute_command): Only execute a user-defined command as a
8810         legacy macro if c->user_commands is set.
8811
8812 2012-03-01  Tom Tromey  <tromey@redhat.com>
8813
8814         * valprint.h (struct generic_val_print_decorations): New.
8815         (generic_val_print): Declare.
8816         * valprint.c (generic_val_print): New function.
8817         * p-valprint.c (p_decorations): New global.
8818         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8819         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8820         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8821         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8822         * m2-valprint.c (m2_decorations): New global.
8823         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8824         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8825         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8826         TYPE_CODE_ERROR>: Call generic_val_print.
8827         * f-valprint.c (f_decorations): New global.
8828         (f_val_print): Use print_function_pointer_address.
8829         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8830         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8831         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8832         generic_val_print.
8833         * c-valprint.c (c_decorations): New global.
8834         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8835         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8836         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8837         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8838         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8839         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8840         case.
8841
8842 2012-03-01  Tom Tromey  <tromey@redhat.com>
8843
8844         * valprint.c (val_print): Update.
8845         * p-valprint (pascal_val_print): Return void.
8846         * p-lang.h (pascal_val_print): Return void.
8847         * m2-valprint.c (m2_val_print): Return void.
8848         * m2-lang.h (m2_val_print): Return void.
8849         * language.h (struct language_defn) <la_val_print>: Return void.
8850         * language.c (unk_lang_val_print): Return void.
8851         * jv-valprint.c (java_val_print): Return void.
8852         * jv-lang.h (java_val_print): Return void.
8853         * f-valprint.c (f_val_print): Return void.
8854         * f-lang.h (f_val_print): Return void.
8855         * d-valprint.c (d_val_print): Return void.
8856         (dynamic_array_type): Update.
8857         * d-lang.h (d_val_print): Return void.
8858         * c-valprint.c (c_val_print): Return void.
8859         * c-lang.h (c_val_print): Return void.
8860         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8861         void.
8862         * ada-lang.h (ada_val_print): Return void.
8863
8864 2012-03-01  Tom Tromey  <tromey@redhat.com>
8865
8866         * value.h (val_print): Return void.
8867         * valprint.c (val_print): Return void.
8868
8869 2012-03-01  Tom Tromey  <tromey@redhat.com>
8870
8871         * value.h (common_val_print): Return void.
8872         * valprint.c (common_val_print): Return void.
8873
8874 2012-03-01  Tom Tromey  <tromey@redhat.com>
8875
8876         * value.h (value_print): Return void.
8877         * valprint.c (value_print): Return void.
8878         * p-valprint.c (pascal_value_print): Return void.
8879         * p-lang.h (pascal_value_print): Return void.
8880         * language.h (struct language_defn) <la_value_print>: Return
8881         void.
8882         * language.c (unk_lang_value_print): Return void.
8883         * jv-valprint.c (java_value_print): Return void.
8884         * jv-lang.h (java_value_print): Return void.
8885         * f-valprint.c (c_value_print): Don't declare.
8886         Include c-lang.h.
8887         * c-valprint.c (c_value_print): Return void.
8888         * c-lang.h (c_value_print): Return void.
8889         * ada-valprint.c (ada_value_print): Return void.
8890         * ada-lang.h (ada_value_print): Return void.
8891
8892 2012-03-01  Tom Tromey  <tromey@redhat.com>
8893
8894         * value.c (value_primitive_field): Handle virtual base classes.
8895
8896 2012-03-01  Tom Tromey  <tromey@redhat.com>
8897
8898         * gdbtypes.h (struct vbase): Remove.
8899
8900 2012-03-01  Tom Tromey  <tromey@redhat.com>
8901
8902         * c-valprint.c (print_function_pointer_address): Move...
8903         * valprint.c: ... here.  Make non-static.
8904         * m2-valprint.c (print_function_pointer_address): Remove.
8905         * valprint.h (print_function_pointer_address): Declare.
8906
8907 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8908
8909         * NEWS: Document the fact that one can provide a condition when
8910         creating an Ada exception catchpoint.
8911
8912 2012-03-01  Tom Tromey  <tromey@redhat.com>
8913
8914         * valprint.c (val_print_type_code_flags): Fix placement of
8915         trailing brace.
8916
8917 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8918
8919         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8920         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8921         environment variable before calling update-copyright.
8922
8923 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8924
8925         * gnulib/extra/update-copyright: Update to the latest from
8926         gnulib's git repository.
8927         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8928         variable to 2 instead of 1.
8929
8930 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8931
8932         * varobj.c (c_value_of_variable): Remove dead code.
8933
8934 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8935
8936         * ada-lex.p (processId): Do not modify already encoded IDs.
8937         Update function documentation.
8938
8939 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8940
8941         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8942         "name" with "struct symbol *name_sym".
8943         * ada-exp.y (write_var_or_type): Update call to
8944         ada_find_renaming_symbol.
8945         "name" with "struct symbol *name_sym". Adjust Implementation
8946         accordingly.  Adjust the function documentation.
8947
8948 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8949
8950         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8951         * ada-lang.c (ada_find_any_type): Add advance declaration.
8952         Make static.  Replace ada_find_any_symbol by
8953         ada_find_any_type_symbol.
8954         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8955         Improve function description.  Make static.
8956         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8957         Replace ada_find_any_symbol by ada_find_any_type_symbol.
8958
8959 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8960
8961         * ada-lang.c (struct tag_args): Delete.
8962         (ada_get_tsd_type): Function body moved up in source file.
8963         (ada_tag_name_1, ada_tag_name_2): Delete.
8964         (ada_get_tsd_from_tag): New function.
8965         (ada_tag_name_from_tsd): New function.
8966         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8967         to determine the tag name.
8968
8969 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8970
8971         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8972         declaration.
8973         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8974         function.
8975
8976 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8977
8978         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8979
8980 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8981
8982         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8983         full searches.
8984
8985 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8986
8987         * ada-lang.c (constrained_packed_array_type): If there is a
8988         parallel XA type, use it to determine the array index type.
8989
8990 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8991
8992         * ada-valprint.c (ada_val_print_1): If our value is a reference
8993         to an array descriptor, dereference it before converting it
8994         to a simple array.
8995
8996 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8997
8998         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8999         creating fixed value.
9000         (ada_value_ind, ada_coerce_ref, assign_component)
9001         (ada_evaluate_subexp): Remove call to unwrap_value before
9002         call to ada_to_fixed_value.
9003
9004 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9005
9006         * ada-lang.c (to_fixed_array_type): Set result's type name.
9007
9008 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9009
9010         * ada-lang.c (catch_ada_exception_command_split): Add new
9011         argument cond_string.  Add support for condition at end of
9012         "catch exception" commands.
9013         (ada_decode_exception_location): Add new argument cond_string.
9014         Update call to catch_ada_exception_command_split.
9015         (create_ada_exception_catchpoint): Add new argument cond_string.
9016         Set the breakpoint condition if needed.
9017         (catch_ada_exception_command): Update call to
9018         ada_decode_exception_location.
9019         (ada_decode_assert_location): Add function documentation.
9020         Add support for condition at end of "catch assert" command.
9021         (catch_assert_command): Update calls to ada_decode_assert_location
9022         and create_ada_exception_catchpoint.
9023
9024 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9025
9026         Fix disp-step-syscall.exp: fork: single step over fork.
9027         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9028         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9029         comment, change parameters gdbarch and ptid to regcache.  Remove
9030         parameter regcache, initialize gdbarch from regcache here.
9031         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9032         New functions.
9033         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9034         instead.
9035         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9036         'syscall'.  Make the 'int' check more strict.
9037
9038 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9039
9040         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9041         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9042         (i386_linux_intx80_sysenter_syscall_record): ... here.
9043         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9044         Use the renamed function name.
9045
9046 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9047
9048         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9049         * breakpoint.c (until_break_command): Likewise.
9050         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9051         * infcall.c (call_function_by_hand): Likewise.
9052         * infcmd.c (finish_forward): Likewise.
9053         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9054
9055 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9056
9057         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9058         avoid variable assignments inside condition.
9059
9060 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9061
9062         Fix static analysis issue found by cppcheck.
9063         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9064         uninitialized BUF for size 2.
9065
9066 2012-02-27  Chris Dearman  <chris@mips.com>
9067             Nathan Froyd  <froydnj@codesourcery.com>
9068             Maciej W. Rozycki  <macro@codesourcery.com>
9069
9070         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9071         (mips16_instruction_has_delay_slot): Likewise.
9072         (mips_segment_boundary): Likewise.
9073         (mips_adjust_breakpoint_address): Likewise.
9074         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9075
9076 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9077             Maciej W. Rozycki  <macro@codesourcery.com>
9078
9079         * infrun.c (handle_inferior_event): Don't proceed through
9080         shared library trampolines if stepping at the machine
9081         instruction level.
9082
9083 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9084
9085         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9086         too.
9087
9088 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9089
9090         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9091         (sh_stub_unwind_sniffer): New functions.
9092         (sh_stub_unwind): New variable.
9093         (sh_gdbarch_init): Wire everything.
9094
9095 2012-02-27  Pedro Alves  <palves@redhat.com>
9096
9097         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9098         (linux_nat_post_attach_wait): Adjust to use
9099         linux_proc_pid_is_stopped.
9100         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9101         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9102         based on pid_is_stopped from both linux-nat.c and
9103         gdbserver/linux-low.c, and renamed.
9104
9105 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9106
9107         * remote.c (remote_watchpoint_addr_within_range): New function.
9108         (init_remote_ops): Use it.
9109
9110 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9111
9112         * target.h (target_watchpoint_addr_within_range): Document macro.
9113
9114 2012-02-24  Pedro Alves  <palves@redhat.com>
9115
9116         * stack.c (set_last_displayed_sal): Issue internal_error instead
9117         of warning, and issue it after clearing the last displayed sal.
9118
9119 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9120             Pedro Alves  <palves@redhat.com>
9121
9122         * breakpoint.c (until_break_command): Install breakpoints after
9123         all frame manipulations.
9124
9125 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9126
9127         * remote.c (remote_supports_cond_breakpoints): New forward
9128         declaration.
9129         (remote_add_target_side_condition): New function.
9130         (remote_insert_breakpoint): Add target-side breakpoint
9131         conditional if supported.
9132         (remote_insert_hw_breakpoint): Likewise.
9133         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9134         hook.
9135
9136         * target.c (update_current_target): Inherit
9137         to_supports_evaluation_of_breakpoint_conditions.
9138         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9139
9140         * target.h (struct target_ops)
9141         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9142         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9143
9144         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9145         (condition_evaluation_both, condition_evaluation_auto,
9146         condition_evaluation_host, condition_evaluation_target,
9147         condition_evaluation_enums, condition_evaluation_mode_1,
9148         condition_evaluation_mode): New static globals.
9149         (translate_condition_evaluation_mode): New function.
9150         (breakpoint_condition_evaluation_mode): New function.
9151         (gdb_evaluates_breakpoint_condition_p): New function.
9152         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9153         (mark_breakpoint_modified): New function.
9154         (mark_breakpoint_location_modified): New function.
9155         (set_condition_evaluation_mode): New function.
9156         (show_condition_evaluation_mode): New function.
9157         (bp_location_compare_addrs): New function.
9158         (get_first_location_gte_addr): New helper function.
9159         (set_breakpoint_condition): Free condition bytecode if locations
9160         has become unconditional.  Call mark_breakpoint_modified (...).
9161         (condition_command): Call update_global_location_list (1) for
9162         breakpoints.
9163         (breakpoint_xfer_memory): Use is_breakpoint (...).
9164         (is_breakpoint): New function.
9165         (parse_cond_to_aexpr): New function.
9166         (build_target_condition_list): New function.
9167         (insert_bp_location): Handle target-side conditional
9168         breakpoints and call build_target_condition_list (...).
9169         (update_inserted_breakpoint_locations): New function.
9170         (insert_breakpoint_locations): Handle target-side conditional
9171         breakpoints.
9172         (bpstat_check_breakpoint_conditions): Add comment.
9173         (bp_condition_evaluator): New function.
9174         (bp_location_condition_evaluator): New function.
9175         (print_breakpoint_location): Print information on where the condition
9176         will be evaluated.
9177         (print_one_breakpoint_location): Likewise.
9178         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9179         breakpoint location.
9180         (force_breakpoint_reinsertion): New functions.
9181         (update_global_location_list): Handle target-side breakpoint
9182         conditions.
9183         Reinsert locations that are already inserted if conditions have
9184         changed.
9185         (bp_location_dtor): Free agent expression bytecode.
9186         (disable_breakpoint): Call mark_breakpoint_modified (...).
9187         Call update_global_location_list (...) with parameter 1 for breakpoints.
9188         (disable_command): Call mark_breakpoint_location_modified (...).
9189         Call update_global_location_list (...) with parameter 1 for breakpoints.
9190         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9191         (enable_command): mark_breakpoint_location_modified (...).
9192         (_initialize_breakpoint): Update documentation and add
9193         condition-evaluation breakpoint subcommand.
9194
9195         * breakpoint.h: Include ax.h.
9196         (condition_list): New data structure.
9197         (condition_status): New enum.
9198         (bp_target_info) <cond_list>: New field.
9199         (bp_location) <condition_changed, cond_bytecode>: New fields.
9200         (is_breakpoint): New prototype.
9201
9202 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9203
9204         * remote.c (remote_state) <cond_breakpoints>: New field.
9205         (PACKET_ConditionalBreakpoints): New enum.
9206         (remote_cond_breakpoint_feature): New function.
9207         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9208         (remote_supports_cond_breakpoints): New function.
9209         (_initialize_remote): Add new packet configuration for
9210         target-side conditional breakpoints.
9211
9212 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9213
9214         * NEWS: Mention target-side conditional breakpoint support,
9215         new condition-evaluation breakpoint subcommand and remote
9216         packet extensions.
9217
9218 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9219
9220         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9221         number.
9222
9223 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9224
9225         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9226         (after_prologue): Remove.
9227
9228 2012-02-23  Tom Tromey  <tromey@redhat.com>
9229
9230         * jv-valprint.c (java_val_print): Remove dead code.
9231
9232 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9233
9234         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9235         known_tasks_element and known_tasks_length fields.
9236         (read_known_tasks_array): Change argument type.  Use pointer type
9237         and number of elements from DATA.  Adjust.
9238         (read_known_tasks_list): Likewise.
9239         (get_known_tasks_addr): Remove.
9240         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9241         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9242         type and array length.  Merge former get_known_tasks_addr code.
9243
9244 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9245
9246         PR backtrace/13716
9247         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9248         it after set_momentary_breakpoint.
9249
9250 2012-02-22  Sterling Augustine  <saugustine@google.com>
9251
9252         PR 13689:
9253         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9254
9255 2012-02-22  Gary Benson  <gbenson@redhat.com>
9256
9257         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9258         (find_slot_in_mapped_hash): Likewise.
9259
9260 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9261
9262         PR build/13638
9263         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9264         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9265         * configure: Regenerate.
9266
9267 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9268             Pedro Alves  <palves@redhat.com>
9269
9270         * ia64-tdep.c: Do not include libunwind-ia64.h.
9271         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9272         Include libunwind-ia64.h instead of libunwind.h.
9273         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9274         for libunwind.h existence.
9275         * configure, config.in: Regenerate.
9276
9277 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9278
9279         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9280         instead of value_rtti_target_type.
9281         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9282         instead of value_rtti_target_type.
9283         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9284         value_rtti_target_type.
9285         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9286         (value_rtti_target_type): Rename to ...
9287         (value_rtti_indirect_type): ... here and make it indirect.  Update
9288         function comment.
9289         * value.c (readjust_indirect_value_type): New function.
9290         (coerce_ref): Support for enclosing type setting for references
9291         with readjust_indirect_value_type.
9292         * value.h (readjust_value_type): New declaration.
9293         (value_rtti_target_type): Rename to ...
9294         (value_rtti_indirect_type): ... here.
9295
9296 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9297
9298         * MAINTAINERS (Write After Approval): Add myself to the list.
9299
9300 2012-02-20  Doug Evans  <dje@google.com>
9301
9302         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9303         Rename objfile_p_char parameter to objfilep.
9304         (build_objfile_section_table): Result is now void.  All callers
9305         updated.
9306         * objfiles.h (struct objfile): Tweak comments, whitespace.
9307         (build_objfile_section_table): Update.
9308
9309         * elfread.c (elf_symfile_segments): Fix warning text.
9310
9311 2012-02-20  Tom Tromey  <tromey@redhat.com>
9312
9313         PR gdb/13498:
9314         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9315         particular set of file names once.
9316         (dw2_map_symbol_filenames): Likewise.
9317
9318 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9319
9320         Code cleanup.
9321         * main.c (write_files): Remove the declaration.
9322         (external_editor_command): Move the declaration ...
9323         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9324
9325 2012-02-20  Tom Tromey  <tromey@redhat.com>
9326
9327         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9328         extraneous block.
9329
9330 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9331
9332         * darwin-nat.h (enum darwin_msg_state): Add comments.
9333
9334 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9335
9336         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9337         value.
9338
9339 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9340
9341         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9342         between function description and implementation.
9343
9344 2012-02-17  Tom Tromey  <tromey@redhat.com>
9345
9346         PR python/12070:
9347         * python/py-event.c (event_object_getset): New global.
9348         (event_object_type): Reference it.
9349         * python/py-type.c (field_object_getset): New global.
9350         (field_object_type): Reference it.
9351         * python/python-internal.h (gdb_py_generic_dict): Declare.
9352         * python/py-utils.c (gdb_py_generic_dict): New function.
9353
9354 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9355
9356         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9357
9358 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9359
9360         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9361         TYPE_CALLING_CONVENTION annotation.
9362
9363 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9364
9365         * MAINTAINERS: Add rx to target ISA section.
9366         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9367         (ALLDEPFILES): Add rx-tdep.c.
9368
9369 2012-02-16  Tom Tromey  <tromey@redhat.com>
9370
9371         * symfile.c (symbol_file_add_main_1): Use inferior's
9372         symfile_flags.
9373         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9374         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9375         inferior.
9376         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9377         inferior.
9378         (follow_exec): Use inferior's symfile_flags.
9379         * inferior.h (struct inferior) <symfile_flags>: New field.
9380
9381 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9382
9383         PR gdb/9734:
9384         * remote-sim.c (gdbsim_create_inferior): Call error() when
9385         sim_create_inferior() fails.
9386
9387 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9388
9389         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9390
9391 2012-02-16  Tom Tromey  <tromey@redhat.com>
9392
9393         PR c++/13653:
9394         * thread.c (struct current_thread_cleanup) <was_removable>: New
9395         field.
9396         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9397         (make_cleanup_restore_current_thread): Initialize new field.
9398
9399 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9400
9401         * MAINTAINERS: Add rl78 to target ISA section.
9402         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9403         (ALLDEPFILES): Add rl78-tdep.c.
9404         * NEWS: Mention rl78 as a new target.
9405
9406 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9407
9408         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9409         data.
9410         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9411
9412 2012-02-15  Tom Tromey  <tromey@redhat.com>
9413
9414         PR gdb/12659:
9415         * infcmd.c (registers_info): Print just the current register's
9416         name.
9417
9418 2012-02-15  Tom Tromey  <tromey@redhat.com>
9419
9420         * python/py-symbol.c (sympy_value): Use _().
9421
9422 2012-02-15  Pedro Alves  <palves@redhat.com>
9423
9424         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9425         output to be like native targets'.
9426         (remote_pid_to_str): Special case the null ptid.
9427
9428 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9429
9430         * NEWS: Mention enable count command.
9431         * breakpoint.h (struct breakpoint): New field enable_count.
9432         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9433         (enable_breakpoint): Add arg to call.
9434         (struct disp_data): New struct.
9435         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9436         (do_map_enable_once_breakpoint): Create a struct and pass it.
9437         (do_map_enable_delete_breakpoint): Ditto.
9438         (do_map_enable_count_breakpoint): New function.
9439         (enable_count_command): New function.
9440         (bpstat_stop_status): Decrement enable_count.
9441         (print_one_breakpoint_location): Report enable count.
9442         (_initialize_breakpoint): Add enable count command.
9443
9444 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9445
9446         * rl78-tdep.c (reggroups.h): Include.
9447         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9448         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9449         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9450         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9451         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9452         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9453         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9454         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9455         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9456         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9457         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9458         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9459         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9460         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9461         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9462         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9463         beginning of register list.
9464         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9465         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9466         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9467         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9468         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9469         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9470         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9471         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9472         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9473         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9474         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9475         the pseudo registers.  Rearrange other pseudo registers too so
9476         that the bank registers appear at the end.
9477         (rl78_register_type): Account for the fact that the byte sized
9478         bank registers are now pseudo-registers.
9479         (rl78_register_name): Rearrange the register name array.  Make
9480         initial set of raw banked registers inaccessible.
9481         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9482         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9483         case for copying bytes back and forth between raw and pseudo
9484         versions of the banked registers.  Update other cases to reflect
9485         the changed names.
9486         (rl78_return_value): Update to account for changed names of
9487         raw registers.
9488         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9489         rl78_register_sim_regno().
9490
9491 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9492
9493         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9494         the name parameter being passed to find_pc_partial_function().
9495
9496 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9497
9498         * MAINTAINERS: Step down from being ia64 target maintainer.
9499
9500 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9501
9502         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9503         compilation warning.
9504
9505 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9506
9507         Fix crash on loaded shlibs without loaded exec_bfd.
9508         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9509         (set_section_command): Replace exec_bfd by p->bfd.
9510
9511 2012-02-10  Tom Tromey  <tromey@redhat.com>
9512
9513         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9514         when we have a C++ qualified name.
9515
9516 2012-02-10  Pedro Alves  <palves@redhat.com>
9517
9518         * inferior.c (inferior_pid_to_str): New.
9519         (print_inferior, inferior_command): Use it.
9520
9521 2012-02-10  Pedro Alves  <palves@redhat.com>
9522
9523         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9524         the test CFLAGS.
9525         * configure: Regenerate.
9526
9527 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9528
9529         * linespec.c (decode_line_internal): Fix comment correctness.
9530
9531 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9532
9533         PR gdb/12953
9534         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9535         * amd64bsd-nat.c: Add support for debug registers (adapted from
9536         i386bsd-nat.c).
9537         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9538         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9539         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9540         (amd64bsd_dr_get_control): New functions.
9541         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9542         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9543         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9544         watchpoints initialization.
9545         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9546
9547 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9548
9549         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9550         flds_bnds.fields.
9551         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9552
9553 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9554
9555         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9556
9557 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9558
9559         * language.h (symbol_name_cmp_ftype): Renames
9560         symbol_name_match_p_ftype.
9561         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9562         la_get_symbol_name_match_p.
9563         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9564         ada_get_symbol_name_match_p.  Update comment.
9565         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9566         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9567         Renames symbol_name_match_p.  Update field type.
9568         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9569         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9570         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9571         "la_get_symbol_name_cmp" in comments.
9572         * language.c: Likewise.
9573
9574 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9575
9576         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9577         %eflags offset.
9578         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9579         (amd64_sol2_gregset32_reg_offs): Likewise.
9580
9581 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9582
9583         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9584         of the returned BFD is allocated by GDB.
9585
9586 2012-02-07  Tom Tromey  <tromey@redhat.com>
9587
9588         PR python/12027:
9589         * python/python-internal.h (frame_object_type): Declare.
9590         * python/py-symbol.c (sympy_needs_frame): New function.
9591         (sympy_value): New function.
9592         (symbol_object_getset): Add "needs_frame".
9593         (symbol_object_methods): Add "value".
9594         * python/py-frame.c (frame_object_type): No longer static.
9595
9596 2012-02-07  Tom Tromey  <tromey@redhat.com>
9597
9598         PR python/13599:
9599         * python/py-symbol.c (sympy_line): New function.
9600         (symbol_object_getset): Add "line".
9601
9602 2012-02-07  Tom Tromey  <tromey@redhat.com>
9603
9604         * charset.c (find_charset_names): Check 'in' against NULL.
9605
9606 2012-02-06  Doug Evans  <dje@google.com>
9607
9608         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9609         and fields.name members from char * to const char *.  All uses updated.
9610         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9611         from char * to const char *.  All uses updated.
9612         (type_name_no_tag): Update.
9613         (lookup_unsigned_typename, lookup_signed_typename): Update.
9614         * gdbtypes.c (type_name_no_tag): Change result type
9615         from char * to const char *.  All callers updated.
9616         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9617         name parameter from char * to const char *.
9618         * symtab.h (struct cplus_specific): Change type of demangled_name
9619         member from char * to const char *.  All uses updated.
9620         (struct general_symbol_info): Change type of name and
9621         mangled_lang.demangled_name members from char * to const char *.
9622         All uses updated.
9623         (symbol_get_demangled_name, symbol_natural_name): Update.
9624         (symbol_demangled_name, symbol_search_name): Update.
9625         * symtab.c (symbol_get_demangled_name): Change result type
9626         from char * to const char *.  All callers updated.
9627         (symbol_natural_name, symbol_demangled_name): Ditto.
9628         (symbol_search_name): Ditto.
9629         (completion_list_add_name): Change type of symname,sym_text,
9630         text,word parameters from char * to const char *.
9631         (completion_list_objc_symbol): Change type of sym_text,
9632         text,word parameters from char * to const char *.
9633         * ada-lang.c (find_struct_field): Change type of name parameter
9634         from char * to const char *.
9635         (encoded_ordered_before): Similarly for N0,N1 parameters.
9636         (old_renaming_is_invisible): Similarly for function_name parameter.
9637         (ada_type_name): Change result type from char * to const char *.
9638         All callers updated.
9639         * ada-lang.h (ada_type_name): Update.
9640         * buildsym.c (hashname): Change type of name parameter
9641         from char * to const char *.
9642         * buildsym.h (hashname): Update.
9643         * dbxread.c (end_psymtab): Change type of include_list parameter
9644         from char ** to const char **.
9645         * dwarf2read.c (determine_prefix): Change result type
9646         from char * to const char *.  All callers updated.
9647         * f-lang.c (find_common_for_function): Change type of name, funcname
9648         parameters from char * to const char *.
9649         * f-lang.c (find_common_for_function): Update.
9650         * f-valprint.c (list_all_visible_commons): Change type of funcname
9651         parameters from char * to const char *.
9652         * gdbarch.sh (static_transform_name): Change type of name parameter
9653         and result from char * to const char *.
9654         * gdbarch.c: Regenerate.
9655         * gdbarch.h: Regenerate.
9656         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9657         of name parameter from char * to const char *.
9658         * jv-lang.c (java_primitive_type_from_name): Ditto.
9659         (java_demangled_signature_length): Similarly for signature parameter.
9660         (java_demangled_signature_copy): Ditto.
9661         (java_demangle_type_signature): Ditto.
9662         * jv-lang.h (java_primitive_type_from_name): Update.
9663         (java_demangle_type_signature): Update.
9664         * objc-lang.c (specialcmp): Change type of a,b parameters
9665         from char * to const char *.
9666         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9667         from char * to const char *.  All callers updated.
9668         * p-lang.h (is_pascal_string_type): Update.
9669         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9670         of name parameter from char * to const char *.
9671         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9672         * utils.c (fprintf_symbol_filtered): Ditto.
9673         * defs.h (fprintf_symbol_filtered): Update.
9674         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9675         * stabsread.h (end_psymtab): Update.
9676         * stack.c (find_frame_funname): Change type of funname parameter
9677         from char ** to const char **.
9678         * stack.h (find_frame_funname): Update.
9679         * typeprint.c (type_print): Change type of varstring parameter
9680         from char * to const char *.
9681         * value.h (type_print): Update.
9682         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9683         from char * to const char *.  All callers updated.
9684         (xcoff_end_psymtab): Change type of include_list parameter
9685         from char ** to const char **.  All callers updated.
9686         (swap_sym): Similarly for name parameter.  All callers updated.
9687         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9688         Use xstrdup.
9689         (process_coff_symbol): Use xstrdup.
9690         * stabsread.c (stabs_method_name_from_physname): Renamed from
9691         update_method_name_from_physname.  Change result type from void
9692         to char *.  All callers updated.
9693         (read_member_functions): In has_destructor case, store name in objfile
9694         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9695
9696 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9697
9698         * configure: Rebuild.
9699         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9700         LDFLAGS.
9701
9702 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9703
9704         * configure.tgt (rl78-*-elf): New target.
9705         * rl78-tdep.c: New file.
9706
9707 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9708
9709         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9710         and continue the loop.  Add QUIT statement.
9711
9712 2012-02-03  Tom Tromey  <tromey@redhat.com>
9713
9714         PR gdb/13596:
9715         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9716         bfd_lookup_symbol_from_symtab.
9717         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9718         gdb_bfd_lookup_symbol_from_symtab.
9719
9720 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9721
9722         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9723         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9724         symbol.  Add assertion that sym2 is never NULL.
9725
9726 2012-02-02  Doug Evans  <dje@google.com>
9727
9728         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9729         "name" parameter to const char ** from char **.  All callers updated.
9730         (find_pc_partial_function): Ditto.
9731         (cache_pc_function_name): Change type to const char * from char *.
9732         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9733         (find_pc_partial_function): Update.
9734         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9735         type of "name" parameter to const char * from char *.
9736         All uses updated.
9737         * arch-utils.c (generic_in_solib_return_trampoline): Change
9738         type of "name" parameter to const char * from char *.
9739         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9740         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9741         type of "name" parameter to const char * from char *.
9742         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9743         * gdbarch.c: Regenerate.
9744         * gdbarch.h: Regenerate.
9745         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9746         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9747         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9748         type of "name" parameter to const char * from char *.
9749         * skip.c (skip_function_pc): Ditto.
9750         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9751         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9752         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9753         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9754         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9755         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9756         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9757         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9758         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9759
9760 2012-02-02  Pedro Alves  <palves@redhat.com>
9761
9762         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9763         the current inferior has no execution.  Make sure the current
9764         remote process matches gdb's current inferior.
9765
9766 2012-02-02  Tom Tromey  <tromey@redhat.com>
9767
9768         PR gdb/13405:
9769         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9770         read-only memory.
9771
9772 2012-02-02  Tom Tromey  <tromey@redhat.com>
9773
9774         PR gdb/9307:
9775         * symtab.c (lookup_language_this): Set block_found.
9776
9777 2012-02-01  Tom Tromey  <tromey@redhat.com>
9778
9779         PR gdb/13431:
9780         * jit.c (struct jit_inferior_data): Rewrite.
9781         (struct jit_objfile_data): New.
9782         (get_jit_objfile_data): New function.
9783         (add_objfile_entry): Update.
9784         (jit_read_descriptor): Return int.  Replace descriptor_addr
9785         argument with inf_data.  Update.  Don't call error.
9786         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9787         descriptor here.
9788         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9789         (jit_reset_inferior_data_and_breakpoints)
9790         (jit_inferior_created_observer): Remove.
9791         (jit_inferior_exit_hook): Update.
9792         (jit_executable_changed_observer): Remove.
9793         (jit_event_handler): Update.
9794         (free_objfile_data): Reset inferior data if needed.
9795         (_initialize_jit): Update.
9796
9797 2012-02-01  Tom Tromey  <tromey@redhat.com>
9798
9799         * jit.c (bfd_open_from_target_memory): Move higher in file.
9800
9801 2012-02-01  Tristan Gingold  <gingold@adacore.com>
9802
9803         * libunwind-frame.c (libunwind_load): Display message if dlopen
9804         failed.
9805
9806 2012-02-01  Gary Benson  <gbenson@redhat.com>
9807
9808         * symtab.h (symbol_found_callback_ftype): New typedef.
9809         (iterate_over_symbols): Use the above.
9810         * symtab.c (iterate_over_symbols): Likewise.
9811         * language.h (language_defn->la_iterate_over_symbols): Likewise.
9812         * ada-lang.c (ada_iterate_over_symbols): Likewise.
9813         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9814         (iterate_name_matcher): Document return values.
9815         (collect_one_symbol): Likewise.
9816         (collect_function_symbols): Likewise.
9817         (collect_symbols): Likewise.
9818
9819 2012-02-01  Tom Tromey  <tromey@redhat.com>
9820
9821         * ada-lang.c (resolve_subexp): Update.
9822         (ada_lookup_symbol_list): Add 'full_search' argument.
9823         (ada_iterate_over_symbols): Pass 0 as full_search argument to
9824         ada_lookup_symbol_list.
9825         (ada_lookup_encoded_symbol): Update.
9826         (get_var_value): Update.
9827         * ada-exp.y (block_lookup): Update.
9828         (write_var_or_type): Update.
9829         (write_name_assoc): Update.
9830         * ada-lang.h (ada_lookup_symbol_list): Update.
9831
9832 2012-01-31  Tom Tromey  <tromey@redhat.com>
9833
9834         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9835         comment.
9836
9837 2012-01-31  Doug Evans  <dje@google.com>
9838
9839         * symtab.h: Remove outdated comment.
9840         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9841
9842 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9843
9844         Fix build error in Darwin port.
9845         * i386-darwin-nat.c: Include i386-nat.h.
9846
9847 2012-01-30  Tom Tromey  <tromey@redhat.com>
9848
9849         PR breakpoints/13568:
9850         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9851         argument.  Check for recursive includes.
9852         (dwarf_decode_macros): Create an include hash.
9853
9854 2012-01-30  Michael Eager  <eager@eagercon.com>
9855
9856         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9857         * ppc-linux-tdep.c: Include glibc-tdep.h.
9858         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9859         (powerpc_linux_in_plt_stub): New function.
9860         (powerpc_linux_in_dynsym_resolve_code): New function.
9861         (ppc_skip_trampoline_code): New function.
9862         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9863         Use glibc_skip_solib_resolver.
9864
9865 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9866
9867         Code cleanup: Make 1440 bytes of data segment read-only.
9868         * arch-utils.c (endian_enum): Make it const char *const [].
9869         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9870         Likewise.
9871         * breakpoint.c (always_inserted_enums): Likewise.
9872         * cli/cli-cmds.c (script_ext_enums): Likewise.
9873         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9874         enumlist parameter const char *const *.
9875         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9876         const char *const *.
9877         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9878         parameter const char *const *.
9879         * cris-tdep.c (cris_modes): Make it const char *const [].
9880         * filesystem.c (target_file_system_kinds): Likewise.
9881         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9882         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9883         (can_use_displaced_stepping_enum, scheduler_enums)
9884         (exec_direction_names): Likewise.
9885         * language.c (_initialize_language): Make the type_or_range_names and
9886         case_sensitive_names variables const char *const [].
9887         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9888         * python/python.c (python_excp_enums): Likewise.
9889         * remote.c (interrupt_sequence_modes): Likewise.
9890         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9891         * serial.c (logbase_enums): Likewise.
9892         * sh-tdep.c (sh_cc_enum): Likewise.
9893         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9894         Likewise.
9895         * symtab.c (multiple_symbols_modes): Likewise.
9896         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9897         Likewise.
9898         * utils.c (internal_problem_modes): Likewise.
9899
9900 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9901
9902         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9903         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9904         result.
9905
9906 2012-01-27  Doug Evans  <dje@google.com>
9907
9908         * configure.ac (with_python): Fix absolute path handling for win32.
9909         * configure: Regenerate.
9910
9911 2012-01-26  Doug Evans  <dje@google.com>
9912
9913         * symtab.c: Whitespace cleanup, no code changes.
9914
9915         * symtab.c (lookup_symbol_in_language): Improve comment.
9916         (lookup_symbol_aux): Fix comment.
9917
9918         * psymtab.c (add_psymbol_to_list): Result is now "void".
9919         * psympriv.h (add_psymbol_to_list): Update.
9920
9921         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9922
9923 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9924
9925         Do not open script filenames twice.
9926         * cli/cli-cmds.c (source_script_from_stream): Pass to
9927         source_python_script also STREAM.
9928         * python/py-auto-load.c (source_section_scripts): Pass to
9929         source_python_script_for_objfile also STREAM.
9930         (auto_load_objfile_script): Pass to source_python_script_for_objfile
9931         also INPUT.
9932         * python/python-internal.h (source_python_script_for_objfile): New
9933         parameter file, rename parameter file to filename.
9934         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9935         instead if !_WIN32.  Update the function comment.
9936         (source_python_script, source_python_script_for_objfile)
9937         (source_python_script): New parameter file, rename parameter file to
9938         filename.  Pass FILENAME to python_run_simple_file.
9939         * python/python.h (source_python_script): New parameter file, rename
9940         parameter file to filename.
9941
9942 2012-01-26  Pedro Alves  <palves@redhat.com>
9943
9944         * corelow.c (core_has_fake_pid): Delete.
9945         (core_close): Delete references to `core_has_fake_pid'.
9946         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9947         (core_open): Delete references to `core_has_fake_pid'.
9948         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9949         the removed global.
9950
9951 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
9952
9953         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9954         Remove language parameter from name_matcher.  Adjust the comment.
9955         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9956         Remove language parameter.
9957         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9958         * linespec.c (iterate_name_matcher): Likewise.
9959         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9960         name_matcher.  Adjust call accordingly.
9961         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9962         (maintenance_check_symtabs): Adjust type of parameter "fun".
9963         * psymtab.h (maintenance_check_symtabs): Likewise.
9964
9965 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
9966
9967         * language.h (symbol_name_match_p_ftype): New typedef.
9968         (struct language_defn): Replace field la_symbol_name_compare
9969         by la_get_symbol_name_match_p.
9970         * ada-lang.c (ada_get_symbol_name_match_p): New function.
9971         (ada_language_defn): Use it.
9972         * linespec.c (struct symbol_matcher_data): New type.
9973         (iterate_name_matcher): Rewrite.
9974         (iterate_over_all_matching_symtabs): Pass a pointer to
9975         a symbol_matcher_data struct to expand_symtabs_matching
9976         instead of just the lookup name.
9977         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9978         opencl-lang.c, p-lang.c, language.c: Delete field
9979         la_symbol_name_compare, and replace by NULL for new field
9980         la_get_symbol_name_match_p.
9981         * symfile.h (struct quick_symbol_functions): Update comment.
9982
9983 2012-01-25  Tom Tromey  <tromey@redhat.com>
9984
9985         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9986         dereferencing.
9987
9988 2012-01-24  Tom Tromey  <tromey@redhat.com>
9989
9990         PR symtab/12406:
9991         * solib.c (update_solib_list): Update the program space's
9992         added_solibs and deleted_solibs fields.
9993         * progspace.h (struct program_space) <added_solibs,
9994         deleted_solibs>: New fields.
9995         (clear_program_space_solib_cache): Declare.
9996         * progspace.c (release_program_space): Call
9997         clear_program_space_solib_cache.
9998         (clear_program_space_solib_cache): New function.
9999         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10000         bpstat_stop_status.  Use handle_solib_event.
10001         * breakpoint.c: Include gdb_regex.h.
10002         (print_solib_event): New function.
10003         (bpstat_print): Use print_solib_event.
10004         (bpstat_stop_status): Add special case for bp_shlib_event.
10005         (handle_solib_event): New function.
10006         (bpstat_what): Use handle_solib_event.
10007         (struct solib_catchpoint): New.
10008         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10009         (breakpoint_hit_catch_solib, check_status_catch_solib)
10010         (print_it_catch_solib, print_one_catch_solib)
10011         (print_mention_catch_solib, print_recreate_catch_solib): New
10012         functions.
10013         (catch_solib_breakpoint_ops): New global.
10014         (catch_load_or_unload, catch_load_command_1)
10015         (catch_unload_command_1): New functions.
10016         (internal_bkpt_check_status): Add special case for
10017         bp_shlib_event.
10018         (internal_bkpt_print_it): Use print_solib_event.
10019         (initialize_breakpoint_ops): Initialize
10020         catch_solib_breakpoint_ops.
10021         (_initialize_breakpoint): Register "catch load" and "catch
10022         unload".
10023         * breakpoint.h (handle_solib_event): Declare.
10024         * NEWS: Add entry for "catch load" and "catch unload".
10025
10026 2012-01-24  Tom Tromey  <tromey@redhat.com>
10027
10028         * ada-lang.c: Include gdb_vecs.h.
10029         * charset.c: Include gdb_vecs.h.
10030         * tracepoint.h: Include gdb_vecs.h.
10031         * gdb_vecs.h: New file.
10032
10033 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10034
10035         * breakpoint.c (breakpoint_hit_catch_fork)
10036         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10037         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10038         * infrun.c (inferior_has_forked, inferior_has_vforked)
10039         (inferior_has_execd, inferior_has_called_syscall): Delete.
10040         (handle_syscall_event): Get syscall_number from the execution
10041         control state's wait status.
10042         (wait_for_inferior): Don't clear syscall_number.
10043
10044 2012-01-24  Pedro Alves  <palves@redhat.com>
10045
10046         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10047         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10048         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10049         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10050         `ws' parameter.
10051         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10052         false for events other than TARGET_SIGNAL_TRAP.
10053         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10054         Add `ws' parameter.
10055         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10056         events other than TARGET_SIGNAL_TRAP.
10057         (tracepoint_breakpoint_hit): Add `ws' parameter.
10058         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10059         parameter.
10060         (bpstat_stop_status): Same.
10061         (pc_at_non_inline_function): Same.
10062         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10063         to pass the current event's waitstatus to bpstat_stop_status
10064         and pc_at_non_inline_function.
10065
10066 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10067
10068         Code cleanup.
10069         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10070         Update the function comment for it.
10071         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10072         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10073         for STREAM.
10074
10075 2012-01-24  Pedro Alves  <palves@redhat.com>
10076
10077         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10078         outside `bs->stop' block.
10079         (bpstat_what): Rework bp_shlib_event handling.
10080         (internal_bkpt_check_status): If the breakpoint is a
10081         bp_shlib_event, then set bs->stop and bs->print if
10082         stop_on_solib_events is set.
10083
10084 2012-01-24  Gary Benson  <gbenson@redhat.com>
10085
10086         Delete #if 0'd out code.
10087         * stack.c (print_frame_label_vars): Remove.
10088         (catch_info): Likewise.
10089         (_initialize_stack): Remove "info catch" command.
10090         * NEWS: Mention the above.
10091
10092 2012-01-24  Pedro Alves  <palves@redhat.com>
10093
10094         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10095         it.
10096         (remote_notice_new_inferior): If the remote end doesn't support
10097         the multiprocess extensions, then the PID is fake.
10098         (add_current_inferior_and_thread): New.
10099         (remote_start_remote): Use it.
10100         (extended_remote_attach_1): Adjust.
10101         (extended_remote_create_inferior_1): Use
10102         add_current_inferior_and_thread.
10103
10104 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10105
10106         Fix watchpoints to be specific for each inferior.
10107         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10108         current_program_space.
10109         * i386-nat.c (i386_inferior_data_cleanup): New.
10110         (i386_inferior_data_get): Replace variable inf_data_local by an
10111         inferior_data call.
10112         (i386_use_watchpoints): Initialize i386_inferior_data.
10113         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10114         specific iterate_over_lwps.
10115
10116 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10117
10118         Fix watchpoints across inferior fork.
10119         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10120         comment for linux_nat_iterate_watchpoint_lwps.
10121         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10122         linux_nat_iterate_watchpoint_lwps.
10123         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10124         * i386-linux-nat.c (update_debug_registers_callback): Update the
10125         comment for linux_nat_iterate_watchpoint_lwps.
10126         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10127         linux_nat_iterate_watchpoint_lwps.
10128         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10129         * i386-nat.c: Include inferior.h.
10130         (dr_mirror): Remove.
10131         (i386_inferior_data, struct i386_inferior_data)
10132         (i386_inferior_data_get): New.
10133         (i386_debug_reg_state): Use i386_inferior_data_get.
10134         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10135         (i386_insert_watchpoint, i386_remove_watchpoint)
10136         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10137         (i386_remove_hw_breakpoint): New variable state, use
10138         i386_debug_reg_state instead of DR_MIRROR.
10139         * linux-nat.c (delete_lwp): New declaration.
10140         (num_lwps): Move here from downwards.
10141         (delete_lwp_cleanup): New.
10142         (linux_child_follow_fork): Create new child_lp, call
10143         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10144         PTRACE_DETACH.
10145         (num_lwps): Move upwards.
10146         (linux_nat_iterate_watchpoint_lwps): New.
10147         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10148         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10149
10150 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10151
10152         GDB 7.4 released.
10153
10154 2012-01-23  Pedro Alves  <palves@redhat.com>
10155
10156         * top.c (caution): Rename to ...
10157         (confirm): ... this.
10158         (show_caution): Rename to ...
10159         (show_confirm): ... this.
10160         (quit_cover): Adjust.
10161         (init_main): Adjust.
10162         * top.h (caution): Rename to ...
10163         (confirm): ... this.
10164         * utils.c (internal_vproblem, defaulted_query): Adjust.
10165
10166 2012-01-23  Pedro Alves  <palves@redhat.com>
10167
10168         * top.c (caution): Update comment.
10169         (execute_command): Don't consider the current value of `caution'.
10170
10171 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10172
10173         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10174
10175 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10176
10177         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10178         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10179         * target.c (target_fileio_pwrite): Remove buffer address from
10180         debug output.
10181         (target_fileio_pread): Likewise.
10182
10183 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10184
10185         * NEWS: Document remote "info proc" and "generate-core-file".
10186
10187 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10188
10189         * gdbarch.sh (find_memory_regions): New callback.
10190         * gdbarch.c, gdbarch.h: Regenerate.
10191
10192         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10193         callback before falling back to target method.
10194
10195         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10196         (linux_target_install_ops): No longer install it.
10197
10198         * linux-tdep.c (linux_find_memory_regions): New function.
10199         (linux_init_abi): Install it.
10200
10201 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10202
10203         * gdbarch.sh (make_corefile_notes): New architecture callback.
10204         * gdbarch.c: Regenerate.
10205         * gdbarch.h: Likewise.
10206
10207         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10208         before target_make_corefile_notes.  If NULL is returned, the
10209         target does not support core file generation.
10210
10211         * linux-nat.c: Include "linux-tdep.h".
10212         (find_signalled_thread, find_stop_signal): Remove.
10213         (linux_nat_do_thread_registers): Likewise.
10214         (struct linux_nat_corefile_thread_data): Likewise.
10215         (linux_nat_corefile_thread_callback): Likewise.
10216         (iterate_over_spus): Likewise.
10217         (struct linux_spu_corefile_data): Likewise.
10218         (linux_spu_corefile_callback): Likewise.
10219         (linux_spu_make_corefile_notes): Likewise.
10220         (linux_nat_collect_thread_registers): New function.
10221         (linux_nat_make_corefile_notes): Replace contents by call to
10222         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10223         as native-only callback.
10224
10225         * linux-tdep.h: Include "bfd.h".
10226         (struct regcache): Add forward declaration.
10227         (linux_collect_thread_registers_ftype): New typedef.
10228         (linux_make_corefile_notes): Add prototype.
10229         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10230         "regset.h", and "elf-bfd.h".
10231         (find_signalled_thread, find_stop_signal): New functions.
10232         (linux_spu_make_corefile_notes): Likewise.
10233         (linux_collect_thread_registers): Likewise.
10234         (struct linux_corefile_thread_data): New data structure.
10235         (linux_corefile_thread_callback): New funcion.
10236         (linux_make_corefile_notes): Likewise.
10237         (linux_make_corefile_notes_1): Likewise.
10238         (linux_init_abi): Install it.
10239
10240 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10241
10242         * gdbarch.sh (info_proc): New callback.
10243         * gdbarch.c, gdbarch.h: Regenerate.
10244
10245         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10246         before falling back to the target info_proc callback.
10247
10248         * linux-nat.c: Do not include "cli/cli-utils.h".
10249         (linux_nat_info_proc): Remove.
10250         (linux_target_install_ops): No longer install it.
10251
10252         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10253         (read_mapping): New function.
10254         (linux_info_proc): Likewise.
10255         (linux_init_abi): Install it.
10256
10257 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10258
10259         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10260         * infcmd.c: (info_proc_cmd_1): New function.
10261         (info_proc_cmd): New function, moved here from equivalent routine
10262         orignally in linux-nat.c.
10263         (info_proc_cmd_mappings): Likewise.
10264         (info_proc_cmd_stat): Likewise.
10265         (info_proc_cmd_status): Likewise.
10266         (info_proc_cmd_cwd): Likewise.
10267         (info_proc_cmd_cmdline): Likewise.
10268         (info_proc_cmd_exe): Likewise.
10269         (info_proc_cmd_all): Likewise.
10270         (_initialize_infcmd): Install "info proc" command and subcommands.
10271
10272         * target.h (struct target_ops): Add to_info_proc.
10273         (target_info_proc): Add prototype.
10274         * target.c (target_info_proc): New function.
10275
10276         * procfs.c (procfs_info_proc): Add prototype.
10277         (info_proc_cmd): Rename into ...
10278         (procfs_info_proc): ... this.  Update argument types as appropriate
10279         for a to_info_proc implementation.  Handle "what" argument.
10280         (procfs_target): Install procfs_info_proc.
10281         (_initialize_procfs): No longer install "info proc" command.
10282
10283         * linux-nat.c: (enum info_proc_what): Remove.
10284         (linux_nat_info_proc_cmd_1): Rename into ...
10285         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10286         for a to_info_proc implementation.
10287         (linux_nat_info_proc_cmd): Remove.
10288         (linux_nat_info_proc_cmd_mappings): Likewise.
10289         (linux_nat_info_proc_cmd_stat): Likewise.
10290         (linux_nat_info_proc_cmd_status): Likewise.
10291         (linux_nat_info_proc_cmd_cwd): Likewise.
10292         (linux_nat_info_proc_cmd_cmdline): Likewise.
10293         (linux_nat_info_proc_cmd_exe): Likewise.
10294         (linux_nat_info_proc_cmd_all): Likewise.
10295         (linux_target_install_ops): Install linux_nat_info_proc.
10296         (_initialize_linux_nat): No longer install "info proc" command
10297         and subcommands.
10298
10299 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10300
10301         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10302         * config.in, configure: Regenerate.
10303
10304         * target.h (struct target_ops): Add to_fileio_readlink.
10305         (target_fileio_readlink): Add prototype.
10306         * target.c (target_fileio_readlink): New function.
10307
10308         * inf-child.c: Conditionally include <sys/param.h>.
10309         (inf_child_fileio_readlink): New function.
10310         (inf_child_target): Install it.
10311
10312         * remote.c (PACKET_vFile_readlink): New enum value.
10313         (remote_hostio_readlink): New function.
10314         (init_remote_ops): Install it.
10315         (_initialize_remote): Handle vFile:readlink packet type.
10316
10317 2012-01-20  Pedro Alves  <palves@redhat.com>
10318             Ulrich Weigand  <ulrich.weigand@linaro.org>
10319
10320         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10321         * config.in, configure: Regenerate.
10322
10323         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10324         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10325         (target_fileio_open): Add prototype.
10326         (target_fileio_pwrite): Likewise.
10327         (target_fileio_pread): Likewise.
10328         (target_fileio_close): Likewise.
10329         (target_fileio_unlink): Likewise.
10330         (target_fileio_read_alloc): Likewise.
10331         (target_fileio_read_stralloc): Likewise.
10332
10333         * target.c: Include "gdb/fileio.h".
10334         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10335         (default_fileio_target): New function.
10336         (target_fileio_open): Likewise.
10337         (target_fileio_pwrite): Likewise.
10338         (target_fileio_pread): Likewise.
10339         (target_fileio_close): Likewise.
10340         (target_fileio_unlink): Likewise.
10341         (target_fileio_close_cleanup): Likewise.
10342         (target_fileio_read_alloc_1): Likewise.
10343         (target_fileio_read_alloc): Likewise.
10344         (target_fileio_read_stralloc): Likewise.
10345
10346         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10347         <fcntl.h>, and <unistd.h>.
10348         (inf_child_fileio_open_flags_to_host): New function.
10349         (inf_child_errno_to_fileio_error): Likewise.
10350         (inf_child_fileio_open): Likewise.
10351         (inf_child_fileio_pwrite): Likewise.
10352         (inf_child_fileio_pread): Likewise.
10353         (inf_child_fileio_close): Likewise.
10354         (inf_child_fileio_unlink): Likewise.
10355         (inf_child_target): Install to_fileio routines.
10356
10357         * remote.c (init_remote_ops): Install to_fileio routines.
10358
10359 2012-01-20  Pedro Alves  <palves@redhat.com>
10360             Ulrich Weigand  <ulrich.weigand@linaro.org>
10361
10362         * remote.c (remote_multi_process_p): Only check for multi-process
10363         protocol feature, do not check for extended protocol.
10364         (remote_supports_multi_process): Check for extended protocol here.
10365         (set_general_process): Likewise.
10366         (extended_remote_kill): Likewise.
10367         (remote_pid_to_str): Likewise.
10368         (remote_query_supported): Always query multiprocess mode.
10369
10370 2012-01-20  Pedro Alves  <palves@redhat.com>
10371             Ulrich Weigand  <ulrich.weigand@linaro.org>
10372
10373         * inferior.h (struct inferior): Add fake_pid_p.
10374         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10375         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10376         magic_null_ptid since the remote side doesn't provide a real PID.
10377
10378 2012-01-19  Tom Tromey  <tromey@redhat.com>
10379
10380         * NEWS: Combine the two Python sections.
10381
10382 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10383
10384         * target.h (target_close): Update comment on the target's unpush state.
10385
10386 2012-01-19  Pedro Alves  <palves@redhat.com>
10387
10388         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10389         linux_nat_async directly instead of going through the target
10390         vector.
10391         * target.c (unpush_target): Close target after unpushing it, not
10392         before.
10393
10394 2012-01-19  Gary Benson  <gbenson@redhat.com>
10395
10396         * mdebugread.c (sort_blocks): Replace integer constants with ones
10397         derived from FIRST_LOCAL_BLOCK.
10398
10399 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10400             Jan Kratochvil  <jan.kratochvil@redhat.com>
10401
10402         PR gdb/9538
10403         * symfile.c (find_separate_debug_file): New function.
10404         (terminate_after_last_dir_separator): Likewise.
10405         (find_separate_debug_file_by_debuglink): Also try realpath.
10406         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10407         * configure: Regenerate.
10408         * config.in: Regenerate.
10409
10410 2012-01-18  Doug Evans  <dje@google.com>
10411
10412         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10413         (main.o): Remove rule.
10414         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10415         (--with-sysroot): Rewrite.
10416         * configure: Regenerate.
10417         * config.in: Regenerate.
10418
10419 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10420
10421         * parse.c (initialize_expout): New function.
10422         (reallocate_expout): Likewise.
10423         (parse_exp_in_context): Use `initialize_expout' and
10424         `reallocate_expout' when appropriate.
10425
10426 2012-01-18  Pedro Alves  <palves@redhat.com>
10427
10428         * record.c (struct record_breakpoint, record_breakpoint_p)
10429         (record_breakpoints): New.
10430         (record_insert_breakpoint, record_remove_breakpoint): Manage
10431         record breakpoints list.  Only remove breakpoints from the
10432         inferior if they had been inserted there in the first place.
10433
10434 2012-01-17  Doug Evans  <dje@google.com>
10435
10436         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10437         if we know we don't have a file name to look for.
10438
10439 2012-01-17  Pedro Alves  <palves@redhat.com>
10440
10441         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10442         the frame's stop reason is UNWIND_UNAVAILABLE.
10443
10444 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10445
10446         Fix compilation error.
10447         * m2-exp.y (yyerror): Use ANSI C prototype.
10448
10449 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10450
10451         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10452         (growbuf_by_size): Likewise.
10453         (yyerror): Likewise.
10454         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10455         (modblock): Remove variable (was #if 0'ed).
10456         (parse_number): Convert prototype from K&R to ANSI C.
10457         (yyerror): Likewise.
10458         * objc-exp.y (parse_number): Likewise.
10459         (yyerror): Likewise.
10460         (yylex): Remove #if 0'ed code.
10461         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10462         (yyerror): Likewise.
10463
10464 2012-01-16  Tom Tromey  <tromey@redhat.com>
10465
10466         * NEWS: Add item.
10467         * symtab.h (compare_filenames_for_search): Declare.
10468         * symtab.c (compare_filenames_for_search): New function.
10469         (iterate_over_some_symtabs): Use it.
10470         * symfile.h (struct quick_symbol_functions)
10471         <map_symtabs_matching_filename>: Change spec.
10472         * psymtab.c (partial_map_symtabs_matching_filename): Use
10473         compare_filenames_for_search.  Update for new spec.
10474         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10475         compare_filenames_for_search.  Update for new spec.
10476         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10477
10478 2012-01-16  Tom Tromey  <tromey@redhat.com>
10479
10480         PR python/13281:
10481         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10482         (struct main_type) <flag_flag_enum>: New field.
10483         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10484         * NEWS: Add entries.
10485         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10486         enums.
10487         * python/lib/gdb/printing.py (_EnumInstance): New class.
10488         (FlagEnumerationPrinter): Likewise.
10489
10490 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10491
10492         * breakpoint.c (create_sals_from_address_default): New function.
10493         (create_breakpoints_sal_default): Likewise.
10494         (decode_linespec_default): Likewise.
10495         (is_marker_spec): Removed.
10496         (strace_marker_p): New function.
10497         (init_breakpoint_sal): Using `strace_marker_p' instead of
10498         `is_marker_spec'.
10499         (create_breakpoint): Call method `create_sals_from_address' from
10500         breakpoint_ops, replacing code that created SALs conditionally
10501         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10502         replacing code that created breakpoints conditionally on the type
10503         wanted.
10504         (base_breakpoint_create_sals_from_address): New function.
10505         (base_breakpoint_create_breakpoints_sal): Likewise.
10506         (base_breakpoint_decode_linespec): Likewise.
10507         (base_breakpoint_ops): Add methods
10508         `base_breakpoint_create_sals_from_address',
10509         `base_breakpoint_create_breakpoints_sal' and
10510         `base_breakpoint_decode_linespec'.
10511         (bkpt_create_sals_from_address): New function.
10512         (bkpt_create_breakpoints_sal): Likewise.
10513         (bkpt_decode_linespec): Likewise.
10514         (tracepoint_create_sals_from_address): Likewise.
10515         (tracepoint_create_breakpoints_sal): Likewise.
10516         (tracepoint_decode_linespec): Likewise.
10517         (strace_marker_create_sals_from_address): Likewise.
10518         (strace_marker_create_breakpoints_sal): Likewise.
10519         (strace_marker_decode_linespec): Likewise.
10520         (strace_marker_breakpoint_ops): New variable.
10521         (addr_string_to_sals): Remove `marker_spec'.  Call method
10522         `decode_linespec' from breakpoint_ops, replacing code that decoded
10523         an address string into a SAL.  Use `strace_marker_p' instead of
10524         `marker_spec'.
10525         (strace_command): Decide whether we are dealing with a static
10526         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10527         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10528         * breakpoint.h (linespec_result, linespec_sals): New forward
10529         declarations.
10530         (breakpoint_ops) <create_sals_from_address>,
10531         <create_breakpoints_sal>, <decode_linespec>: New methods.
10532
10533 2012-01-14  Doug Evans  <dje@google.com>
10534
10535         * NEWS: Update text for "maint set python print-stack".
10536         It is deprecated in gdb 7.4 and deleted in 7.5.
10537
10538 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10539
10540         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10541         including curses.h.
10542
10543 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10544
10545         * configure: Regenerate.
10546         * config.in: Regenerate.
10547
10548 2012-01-12  Keith Seitz  <keiths@redhat.com>
10549
10550         PR mi/10586
10551         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10552         (ANONYMOUS_UNION_NAME): Define.
10553         (is_path_expr_parent): New function.
10554         (get_path_expr_parent): New function.
10555         (is_anonymous_child): New function.
10556         (create_child_with_value): If the child is anonymous and without
10557         a name, assign an object name to it.
10558         (c_describe_child): Use get_path_expr_parent to determine
10559         the parent expression.
10560         If there field represents an anonymous struct or union and
10561         has no name, set an appropriate display name and expression.
10562         (cplus_describe_child): Likewise.
10563
10564 2012-01-12  Pedro Alves  <palves@redhat.com>
10565
10566         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10567         available when %ebp is found to be zero (outermost).
10568
10569 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10570
10571         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10572         an internal gdb_static_assert.
10573         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10574
10575 2012-01-11  Tom Tromey  <tromey@redhat.com>
10576
10577         PR gdb/9598:
10578         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10579         catch" and "catch throw".
10580
10581 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10582
10583         * blockframe.c (block_innermost_frame): Start search from selected
10584         frame, if present, or otherwise the current frame.
10585
10586         * c-exp.y (variable): Update innermost_block for
10587         'block COLONCOLON NAME' clause.
10588         * m2-exp.y (variable): Ditto.
10589         * objc-exp.y (variable): Ditto.
10590
10591 2012-01-10  Tom Tromey  <tromey@redhat.com>
10592
10593         PR python/13199:
10594         * python/python.c (finish_python_initialization): Set sys.argv.
10595
10596 2012-01-10  Doug Evans  <dje@google.com>
10597
10598         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10599         "want_line_info".  All callers updated.
10600         (dwarf_decode_lines_1): New function.
10601         (handle_DW_AT_stmt_list): Add function comment.
10602         New arg "want_line_info".  All callers updated.
10603         (read_file_scope,read_type_unit_scope): Move comment from
10604         handle_DW_AT_stmt_list to here.
10605
10606 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10607
10608         Fix regression after libiberty/ update for GCC PR 6057 and others.
10609         * c-exp.y (operator) <OPERATOR DELETE>
10610         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10611         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10612         (make_builtin_type, make_name): New variable i, add gdb_assert.
10613         (operator) <OPERATOR NEW>: Update ARGS to 3.
10614         (operator) <OPERATOR DELETE>: Add trailing space.
10615         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10616         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10617         * cp-support.c (cp_canonicalize_string): Check NULL from
10618         cp_comp_to_string, call warning and return.
10619
10620 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10621
10622         Fix duplicate .o files after omitting libbfd.a.
10623         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10624         (SFILES): Add corelow.c.
10625         (COMMON_OBS): Add corelow.o.
10626         (ALLDEPFILES): Remove corelow.c.
10627         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10628         * config/alpha/alpha-osf3.mh: Likewise.
10629         * config/alpha/fbsd.mh: Likewise.
10630         * config/arm/nbsdaout.mh: Likewise.
10631         * config/arm/nbsdelf.mh: Likewise.
10632         * config/i386/i386gnu.mh: Likewise.
10633         * config/ia64/hpux.mh: Likewise.
10634         * config/ia64/linux.mh: Likewise.
10635         * config/m32r/linux.mh: Likewise.
10636         * config/m68k/linux.mh: Likewise.
10637         * config/mips/irix5.mh: Likewise.
10638         * config/mips/irix6.mh: Likewise.
10639         * config/pa/hpux.mh: Likewise.
10640         * config/pa/linux.mh: Likewise.
10641         * config/powerpc/aix.mh: Likewise.
10642         * config/sparc/linux.mh: Likewise.
10643         * config/sparc/linux64.mh: Likewise.
10644         * config/sparc/sol2.mh: Likewise.
10645         * config/vax/vax.mh: Likewise.
10646         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10647         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10648         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10649         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10650         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10651         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10652         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10653         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10654         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10655         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10656         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10657         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10658         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10659         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10660         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10661         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10662         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10663         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10664         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10665         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10666         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10667         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10668         corelow.o from gdb_target_obs.
10669         * corefile.c (core_target): Update the comment on NULL value.
10670         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10671         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10672         MATCHES.  Drop YUMMY set on NULL.
10673         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10674         reclaim CORE_DATA if it is already NULL.
10675
10676 2012-01-09  Doug Evans  <dje@google.com>
10677
10678         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10679         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10680
10681 2012-01-09  Keith Seitz  <keiths@redhat.com>
10682
10683         * breakpoint.c (wrapper.h): Don't include.
10684
10685 2012-01-09  Keith Seitz  <keiths@redhat.com>
10686
10687         * Makefile.in (SFILES): Remove wrapper.c.
10688         (HFILES_NO_SRCDIR): Remove wrapper.h.
10689         (COMMON_OBS): Remove wrapper.o.
10690         * cli/cli-interp.c: Don't inlude wrapper.h.
10691         * corelow.c: Likewise.
10692         (core_open): Replace gdb_target_find_new_threads with
10693         TRY_CATCH around target_find_new_threads.
10694         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10695         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10696         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10697         evaluate_expression.
10698         (varobj_set_value): Likewise for evaluate_expression and
10699         value_assign.
10700         (install_new_variable): Likewise for value_fetch_lazy.
10701         (adjust_value_for_child_access): Likewise for value_ind.
10702         (c_describe_child): Likewise for value_subscript and
10703         value_ind.
10704         (c_value_of_root): Likewise for evaluate_expression.
10705         * wrapper.c: Remove.
10706         * wrapper.h: Remove.
10707
10708 2012-01-09  Doug Evans  <dje@google.com>
10709
10710         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10711         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10712         "abfd" args with "section".  All callers updated.
10713         Error checking code moved ...
10714         (error_check_comp_unit_head): ... here.  New function.
10715         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10716         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10717         (create_debug_types_hash_table): Simplify by using
10718         read_and_check_type_unit_head.
10719
10720         * parser-defs.h (namecopy): Delete.
10721         * parse.c (namecopy, namecopy_size): Move into copy_name.
10722
10723 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10724
10725         Partially fix duplicate .o files after omitting libbfd.a.
10726         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10727         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10728         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10729         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10730         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10731         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10732         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10733
10734 2012-01-09  Pedro Alves  <palves@redhat.com>
10735
10736         * MAINTAINERS: Update my email address.
10737
10738 2012-01-08  Doug Evans  <dje@google.com>
10739
10740         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10741         n_type_units.  Rename type_comp_units to all_type_units.
10742         All uses updated.
10743         (add_signatured_type_cu_to_table): Renamed from
10744         add_signatured_type_cu_to_list.  All callers updated.
10745
10746         * gdbtypes.h (struct cplus_struct_type): Delete member
10747         nfn_fields_total.  All uses removed.
10748
10749 2012-01-06  Doug Evans  <dje@google.com>
10750
10751         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10752         to top of file.
10753         (dwarf2_find_comp_unit): Delete.
10754         (process_psymtab_comp_unit): Make result "void".
10755         Delete args buffer, info_ptr, buffer_size, and replace with
10756         "section".  All callers updated.
10757         (dwarf2_build_psymtabs_hard): Simplify.
10758
10759 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10760             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10761
10762         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10763         before `struct gdb_exception'.
10764         * breakpoint.c (update_global_location_list_nothrow)
10765         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10766         * cp-abi.c (value_rtti_type): Likewise.
10767         * cp-support.c (cp_validate_operator): Likewise.
10768         * infrun.c (insert_exception_resume_breakpoint)
10769         (check_exception_resume, keep_going): Likewise.
10770         * mi-interp.c (mi_breakpoint_created)
10771         (mi_breakpoint_modified): Likewise.
10772         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10773         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10774         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10775
10776 2012-01-05  Doug Evans  <dje@google.com>
10777
10778         * dwarf2read.c (statement_prologue): Delete, unused.
10779
10780         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10781         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10782
10783         * dwarf2read.c (comp_unit_header): Delete, unused.
10784
10785 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10786
10787         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10788         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10789
10790 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10791
10792         * infrun.c (normal_stop): Don't skip calling the normal_stop
10793         observers if the thread was doing a multi-step, but stopped for
10794         some reason other than stepping.
10795
10796 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
10797
10798         * cli/cli-decode.h: Add comments.
10799         (CMD_LIST_AMBIGUOUS): Moved to command.h
10800         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10801         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10802         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10803         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10804         (add_com, add_com_alias, add_info, add_info_alias)
10805         (complete_on_cmdlist, complete_on_enum, help_list): Remove
10806         declarations.
10807         * command.h: Add and adjust comments.
10808         (CMD_LIST_AMBIGUOUS): Moved here.
10809         (help_cmd, help_cmd_list): Delete declarations.
10810
10811 2012-01-04  Doug Evans  <dje@google.com>
10812
10813         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10814         All callers updated.
10815         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10816         Replace all arguments with "per_cu".  All callers updated.
10817
10818         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10819
10820         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10821         New arg "per_cu".  All callers updated.
10822
10823         Delete #if 0'd out code.
10824         * language.c (binop_result_type): Delete.
10825         (simple_type, ordered_type, same_type, integral_type): Delete.
10826         (numeric_type, character_type, string_type, boolean_type): Delete.
10827         (float_type, structured_type): Delete.
10828         * language.h: Update.
10829
10830 2012-01-04  Tom Tromey  <tromey@redhat.com>
10831
10832         * python/py-value.c (valpy_binop): Initialize 'res_val'.
10833
10834 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10835
10836         * corefile.c (close_exec_file): Delete.
10837         (reopen_exec_file): Remove commented out code that seems related
10838         to close_exec_file, which is being deleted here.
10839         * inferior.h (close_exec_file): Delete.
10840         * fork-child.c (fork_inferior): Remove call to fork_inferior.
10841
10842 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10843
10844         * ada-lang.c: #include "cli/cli-utils.h".
10845         (get_selections): Use skip_spaces.
10846         (ada_get_next_arg): Use skip_spaces and skip_to_space.
10847         (catch_ada_exception_command_split): Use skip_spaces.
10848         (ada_decode_assert_location): Likewise.
10849
10850 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10851
10852         * linespec.c (decode_line_internal): Check for C++ or Java
10853         compound constructs only if the current language is C, C++
10854         or Java.
10855
10856 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10857
10858         Revert:
10859         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10860                     Joel Brobecker  <brobecker@adacore.com>
10861         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10862         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10863         3 times.
10864         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10865         fall through into AT_ENTRY_POINT.
10866         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10867         DUMMY_ADDR with it.
10868         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10869         PPC_INSN_SIZE skip to 3 times.
10870
10871 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10872
10873         * linespec.c (add_minsym): Preserve function descriptors.
10874
10875 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
10876
10877         * breakpoint.c (all_locations_are_pending): Consider locations
10878         in program spaces executing during startup pending as well.
10879
10880 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10881
10882         Copyright year update in most files of the GDB Project.
10883
10884 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10885
10886         * copyright.sh: Delete.
10887         * copyright.py: Rewrite.
10888
10889 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10890
10891         * gnulib/extra/update-copyright: New file, imported from gnulib.
10892
10893 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10894
10895         * README (Copyright and License Notices): New section.
10896
10897 2012-01-03  Tom Tromey  <tromey@redhat.com>
10898
10899         PR python/12533:
10900         * python/py-value.c (valpy_dereference, valpy_get_address
10901         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10902         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10903         (valpy_absolute, valpy_richcompare): Free intermediate values.
10904
10905 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
10906
10907         * ada-lang.c: Reformat the copyright notice.
10908
10909 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10910
10911         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10912         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10913         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10914         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10915         Revert this part of:
10916         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10917         Build gdb directly from *.o files not using libgdb.a.
10918         * Makefile.in (COMMON_OBS): Remove solib-target.o.
10919
10920 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10921
10922         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10923         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10924         Reformat the copyright header.
10925
10926 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10927
10928         Revert this part of:
10929         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10930         Remove the gdbtui binary.
10931         * gdb.c (main): Remove args.interpreter_p initialization.
10932         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10933         * main.h (struct captured_main_args): Remove interpreter_p.
10934
10935 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10936
10937         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10938
10939 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10940
10941         * top.c (print_gdb_version): Update copyright year.
10942
10943 2012-01-02  Yao Qi  <yao@codesourcery.com>
10944
10945         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10946
10947 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10948             Joel Brobecker  <brobecker@adacore.com>
10949
10950         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10951         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10952         3 times.
10953         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10954         fall through into AT_ENTRY_POINT.
10955         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10956         DUMMY_ADDR with it.
10957         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10958         PPC_INSN_SIZE skip to 3 times.
10959
10960 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10961
10962         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10963         the return value.
10964         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10965
10966 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10967
10968         Build gdb directly from *.o files not using libgdb.a.
10969         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10970         (COMMON_OBS): Remove solib-target.o.
10971         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10972         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10973         (LIBGDB_OBS, libgdb.a): Move it above.
10974         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10975         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10976         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10977         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10978         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10979         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10980         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10981         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10982         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10983         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10984         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10985         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10986         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10987         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10988         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10989         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10990         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10991         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10992         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10993         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10994         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10995         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10996         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10997         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10998         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10999         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11000         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11001
11002 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11003
11004         Remove the gdbtui binary.
11005         * .gitignore (/gdbtui): Remove.
11006         * Makefile.in (TUI): Remove.
11007         (SUBDIR_TUI_OBS): Remove tui-main.o.
11008         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11009         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11010         (tui-main.o): Remove.
11011         (all_object_files): Remove tui-main.o.
11012         * NEWS: New note for the gdbtui removal.
11013         * configure: Rebuilt.
11014         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11015         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11016         CONFIG_UNINSTALL respectively.
11017         * gdb.c (main): Remove args.interpreter_p initialization.
11018         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11019         * main.h (struct captured_main_args): Remove interpreter_p.
11020         * tui/tui-main.c: Remove.
11021
11022 2012-01-01  Doug Evans  <dje@google.com>
11023
11024         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11025         (dwarf2_physname, read_import_statement): Ditto.
11026         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11027         (process_structure_scope read_subroutine_type): Ditto.
11028         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11029         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11030         (dwarf2_fetch_die_location_block): Ditto.
11031         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11032
11033         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11034         All callers updated.
11035         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11036         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11037         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11038
11039         * dwarf2read.c (load_cu): Move assert to more useful location.
11040
11041         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11042         All callers updated.
11043
11044         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11045         (dwarf2_elf_names): Minor reformat.
11046         (dwarf2_per_cu_data): Tweak comment.
11047         (dwarf2_read_section): Fix comment.
11048         (create_all_comp_units): Fix comment.
11049         (load_full_comp_unit): Fix comment.
11050         (process_full_comp_unit): Fix comment.
11051         (read_signatured_type): Fix comment.
11052
11053 For older changes see ChangeLog-2011.
11054 \f
11055 Local Variables:
11056 mode: change-log
11057 left-margin: 8
11058 fill-column: 74
11059 version-control: never
11060 coding: utf-8
11061 End: