95e7777aa4808d29176634b440fa4a5e523adc62
[external/binutils.git] / gdb / ChangeLog
1 2012-11-02  Pedro Alves  <palves@redhat.com>
2
3         PR gdb/14766
4
5         * infrun.c (handle_inferior_event)
6         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
7         null_ptid before handling a vfork child exec or exit.  Switch to
8         the event ptid afterwards.
9
10 2012-11-02  Yao Qi  <yao@codesourcery.com>
11
12         * std-operator.def: Remove OP_LABELED.
13         * eval.c: Remove the declaration of 'get_label'.
14         (get_label): Remove.
15         (evaluate_struct_tuple): Remove code handling OP_LABELED.
16         Update comment.
17         Remove local variable 'variantno' and related code.
18         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
19         with 'fieldno'.
20         * expprint.c (print_subexp_standard): Likewise.
21         (dump_subexp_body_standard): Likewise.
22         * parse.c (operator_length_standard): Likewise.
23
24 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
25
26         Incorporate ARI web page generator into GDB sources.
27         * contrib/ari/create-web-ari-in-src.sh: New file.
28         * contrib/ari/gdb_ari.sh: New file.
29         * contrib/ari/gdb_find.sh: New file.
30         * contrib/ari/update-web-ari.sh: New file.
31
32 2012-10-31  Tom Tromey  <tromey@redhat.com>
33
34         * gdbarch.c: Rebuild.
35         * gdbarch.sh: Remove references to gdbarch_swap.
36         * corelow.c (core_open): Remove obsolete comment.
37
38 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
39
40         PR cli/14772
41         * c-typeprint.c (c_print_type): Don't print a space for vector
42         types, this is handled within the suffix.
43         (c_type_print_varspec_suffix): Add a space to vector suffix.
44
45 2012-10-26  Pedro Alves  <palves@redhat.com>
46
47         * amd64-tdep.c (amd64_relocate_instruction): Use
48         store_unsigned_integer instead of memcpy.
49         * i386-tdep.c (i386_relocate_instruction): Ditto.
50
51 2012-10-26  Pedro Alves  <palves@redhat.com>
52
53         * infrun.c (handle_inferior_event): Merge handling of
54         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
55         switch case.
56
57 2012-10-26  Pedro Alves  <palves@redhat.com>
58
59         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
60         Remove comment.
61
62 2012-10-26  Pedro Alves  <palves@redhat.com>
63
64         * target.c (target_waitstatus_to_string): Handle
65         TARGET_WAITKIND_VFORK_DONE.
66
67 2012-10-26  Pedro Alves  <palves@redhat.com>
68
69         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
70         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
71
72 2012-10-24  Tristan Gingold  <gingold@adacore.com>
73
74         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
75         Add comments.
76
77 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
78
79         * ravenscar-thread.c (ravenscar_wait): Only update the list
80         of threads and inferior_ptid if the inferior is still alive.
81
82 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
83
84         * ada-lang.c (is_known_support_routine): Use lbasename when
85         matching the symtab's filename against
86         known_runtime_file_name_patterns.
87
88 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
89
90         * ada-lang.c (ada_same_array_size_p): New function.
91         (ada_promote_array_of_integrals): New function.
92         (coerce_for_assign): Add handling of arrays where the elements
93         are integrals of a smaller size than the size of the target
94         array element type.
95
96 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
97
98         * doublest.c (convert_doublest_to_floatformat): Fix comparison
99         against maximum exponent value.
100
101 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
102
103         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
104         "unwind-seh.c".
105
106 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
107
108         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
109         strip typedef layer when computing the fixed type's field type,
110         only when computing its size.
111
112 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
113
114         PR gdb/12783
115         * i386-tdep.c (i386_return_value): Handle complex double and long
116         double.
117
118 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
119
120         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
121         New local variable args_len.
122         Quote the name of the executable when computing the command line.
123
124 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
125
126         PR gdb/12796
127         PR gdb/12798
128         PR gdb/12800
129         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
130         AMD64_FTAG_REGNUM.
131         * amd64-tdep.c (amd64_classify): Classify complex types.
132         (amd64_return_value): Handle the COMPLEX_X87 class.
133
134 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
135
136         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
137         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
138
139 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
140
141         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
142         function.
143         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
144         to amd64_windows_auto_wide_charset.
145
146 2012-10-23  Yao Qi  <yao@codesourcery.com>
147
148         * event-top.c (mark_async_signal_handler_wrapper): Remove.
149         * event-top.h: Remove its declaration.
150         (async_request_quit): Call mark_async_signal_handler instead of
151         mark_async_signal_handler_wrapper.
152         (async_do_nothing, async_disconnect): Likewise.
153         (async_stop_sig): Likewise.
154         * remote.c (handle_remote_sigint): Likewise.
155         (handle_remote_sigint_twice): Likewise.
156
157 2012-10-23  Yao Qi  <yao@codesourcery.com>
158
159         * event-top.c (sigint_token, sighup_token): Replace 'void *'
160         with 'static struct async_signal_handler *'.
161         (sighup_token, sigquit_token, sigstp_token): Likewise.
162
163 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
164
165         * gdbarch.sh (function_list): Use 'pstring' when printing
166         a variable which could return NULL.
167         * gdbarch.c: Regenerate.
168
169 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
170             Tom Tromey  <tromey@redhat.com>
171
172         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
173         inneffective if condition by gdb assertion.  Add function
174         description comment.
175
176 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
177
178         * parser-defs.h (struct exp_descriptor): Document constraint
179         on return value for "op_name" callbacks.
180
181 2012-10-18  Tom Tromey  <tromey@redhat.com>
182
183         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
184         * symtab.c (iterate_over_some_symtabs): Constify.
185         * source.h (symtab_to_fullname): Return 'const char *'.
186         * source.c (symtab_to_fullname): Return 'const char *'.
187         * python/py-symtab.c (stpy_fullname): Constify.
188         * cli/cli-cmds.c (edit_command): Constify.
189         * breakpoint.c (print_breakpoint_location)
190         (update_static_tracepoint): Constify.
191
192 2012-10-18  Tom Tromey  <tromey@redhat.com>
193
194         * breakpoint.c (compare_breakpoints): Fix comparison.
195
196 2012-10-18  Tom Tromey  <tromey@redhat.com>
197
198         * valprint.c (generic_emit_char, generic_printstr): Pass size of
199         gdb_wchar_t to convert_between_encodings.
200
201 2012-10-17  Yao Qi  <yao@codesourcery.com>
202
203         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
204         more parameter 'inferior'.
205         * corefile.c (write_memory_with_notification): Caller update.
206
207         * mi/mi-cmd-var.c: Include "mi-main.h".
208         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
209         to 1 and restore it later.
210         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
211         and "data-write-memory-bytes.
212         * mi/mi-interp.c: Include objfiles.h.
213         (mi_interpreter_init): Call observer_attach_memory_changed.
214         (mi_memory_changed): New.
215         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
216         New field.
217
218         * NEWS: Mention new MI notification "memory-changed".
219
220 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
221
222         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
223
224 2012-10-15  Doug Evans  <dje@google.com>
225
226         New option -nh: inhibit loading of ~/.gdbinit.
227         * NEWS: Mention -nh.
228         * main.c (captured_main): Recognize and process -nh.
229         (print_gdb_help): Mention -nh.
230         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
231
232 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
233
234         PR backtrace/14646
235         PR gdb/14647
236         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
237         pc_regnum_from_eax.
238         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
239         nor pc_regnum_from_eax.
240         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
241         nor pc_regnum_from_eax.
242
243 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
244
245         Fix entry values resolving in inlined frames.
246         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
247         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
248         entries of FRAME.
249
250 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
251
252         * configure.ac: Build with -DMS_WIN64 if building with Python
253         enabled using GCC on amd64-windows.
254         * configure: Regenerate.
255
256 2012-10-15  Tom Tromey  <tromey@redhat.com>
257
258         PR python/14635:
259         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
260         to Py_None.
261
262 2012-10-15  Tom Tromey  <tromey@redhat.com>
263
264         PR python/14634:
265         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
266
267 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
268
269         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
270         reset thread numbering back to 1.
271
272 2012-10-11  Doug Evans  <dje@google.com>
273
274         PR breakpoints/14643.
275         * linespec.c (struct ls_parser): New member keyword_ok.
276         (linespec_lexer_lex_string): Add comment.
277         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
278         for one.
279         (parse_linespec): Set keyword_ok.
280
281 2012-10-10  Doug Evans  <dje@google.com>
282
283         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
284         "0x" prefix on address in log message.
285
286         * dwarf2read.c (read_1_byte): Add const to buf parameter.
287         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
288         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
289         (lookup_dwo_file): Add const to dwo_name parameter.
290         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
291
292 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
293
294         Fix crash during stepping on ppc32.
295         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
296         SYM.
297
298 2012-10-03  Doug Evans  <dje@google.com>
299
300         PR symtab/14601
301         * buildsym.c (buildsym_init): Reset using_directives to NULL.
302
303 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
304
305         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
306         output and use uint32_t not long to ensure 4 byte size.
307
308 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
309
310         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
311         unref'ed it.
312
313 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
314
315         * target.c (simple_search_memory): Include access length in
316         warning message.
317
318 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
319             Edjunior Machado  <emachado@linux.vnet.ibm.com>
320
321         PR gdb/13989
322         * solib.c (solib_find): Prevent GDB from loading native libraries when
323         debugging a cross-target corefile.
324
325 2012-09-28  selven  <pcthegreat@gmail.com>
326
327         Make definition match declaration.
328
329         * regcache.c (regcache_register_status): Change return type to
330         enum register_status.
331
332 2012-09-28  Yao Qi  <yao@codesourcery.com>
333
334         * mi/mi-main.c (mi_cmd_data_write_memory): Call
335         write_memory_with_notification instead of write_memory.
336         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
337         instead of target_write_memory.
338
339 2012-09-28  Yao Qi  <yao@codesourcery.com>
340
341         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
342         when the length of content is not an even number.
343
344 2012-09-27  Tom Tromey  <tromey@redhat.com>
345
346         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
347         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
348
349 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
350
351         * sol-thread.c (sol_thread_fetch_registers)
352         (sol_thread_store_registers): Delete commented out code.
353
354 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
355
356         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
357         Move these functions to sparc-sol-thread.c.
358         * sparc-sol-thread.c: New file.
359         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
360         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
361         configurations.
362         * configure: Regenerate.
363
364 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
365
366         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
367         Remove commented-out code.
368
369 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
370
371         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
372         Enable this code for sparc hosts only.
373
374 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
375
376         * procfs.h (procfs_find_LDT_entry): Add declaration.
377         * sol-thread.c (ps_lgetLDT): Delete local declaration of
378         function procfs_find_LDT_entry.
379
380 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
381
382         * procfs.c (proc_get_LDT_entry): Make static.
383
384 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
385
386         * procfs.c (proc_find_memory_regions): Fix declaration.
387
388 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
389
390         * amd64-tdep.c (amd64_return_value): Revert previous change
391         that used TYPE_LENGTH directly.
392         * bfin-tdep.c (bfin_extract_return_value): Likewise.
393         (bfin_store_return_value): Likewise.
394         * cris-tdep.c (cris_store_return_value): Likewise.
395         (cris_extract_return_value): Likewise.
396         * h8300-tdep.c (h8300_extract_return_value): Likewise.
397         * hppa-tdep.c (hppa64_return_value): Likewise.
398         * lm32-tdep.c (lm32_store_return_value): Likewise.
399         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
400         * spu-tdep.c (spu_value_from_register): Likewise.
401         * vax-tdep.c (vax_return_value): Likewise.
402
403 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
404
405         * gdbtypes.c (lookup_array_range_type): Expand parameters
406         LOW_BOUND and HIGH_BOUND to LONGEST.
407         (lookup_string_range_type): Likewise.
408         * gdbtypes.h (lookup_array_range_type): Likewise.
409         (lookup_string_range_type): Likewise.
410         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
411         Expand HIGHBOUND to ssize_t.
412         (value_string): Likewise.
413         * value.h (value_cstring): Expand parameter LEN to ssize_t.
414         (value_string): Likewise.
415
416 2012-09-27  Yao Qi  <yao@codesourcery.com>
417
418         PR breakpoints/13898
419         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
420         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
421         per breakpoint type.
422
423 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
424
425         * procfs.c: Add gdb_bfd header.
426         * rs6000-nat.c: Likewise.
427         * solib-pa64.c: Likewise.
428         * spu-linux-nat.c: Likewise.
429         * windows-nat.c: Likewise.
430
431 2012-09-26  Tom Tromey  <tromey@redhat.com>
432
433         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
434
435 2012-09-26  Tom Tromey  <tromey@redhat.com>
436
437         * dwarf2read.c (mark_common_block_symbol_computed): New function.
438         (read_common_block): Handle child DIEs with
439         DW_AT_data_member_location.
440         (new_symbol_full): Add special case for common blocks.
441
442 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
443             Tom Tromey  <tromey@redhat.com>
444
445         * dwarf2read.c (read_common_block): Rewrite.
446         (new_symbol_full): Handle DW_TAG_common_block.
447         * f-lang.c (head_common_list, find_common_for_function):
448         Remove.
449         * f-lang.h (struct common_entry, struct saved_f77_common,
450         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
451         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
452         BLANK_COMMON_NAME_LOCAL): Remove.
453         (struct common_block): New.
454         * f-valprint.c (list_all_visible_commons): Remove.
455         (info_common_command_for_block): New function.
456         (info_common_command): Use it.
457         * stack.c (iterate_over_block_locals): Special case for
458         COMMON_BLOCK_DOMAIN.
459         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
460         constant.
461         (struct general_symbol_info) <value.common_block>: New field.
462         (SYMBOL_VALUE_COMMON_BLOCK): New define.
463
464 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
465             Tom Tromey  <tromey@redhat.com>
466
467         * f-lang.c (allocate_saved_bf_node,
468         allocate_saved_function_node, allocate_saved_f77_common_node,
469         allocate_common_entry_node, tail_common_list, current_common,
470         saved_bf_list, saved_bf_list_end, current_head_bf_list,
471         tmp_bf_ptr, add_common_block, add_common_entry,
472         find_first_common_named, patch_common_entries,
473         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
474         global_remote_debug, get_bf_for_fcn, saved_function_list,
475         saved_function_list_end, clear_function_list, struct saved_fcn,
476         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
477         SAVED_BF, SAVED_BF_PTR): Remove.
478         * f-lang.h (tail_common_list, current_common,
479         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
480         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
481         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
482         real_main_c_value): Remove.
483         * f-valprint.c (there_is_a_visible_common_named): Remove.
484
485 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
486
487         * breakpoint.c (update_global_location_list): Ignore previous
488         duplicate status of a breakpoint when starting a new scan for
489         duplicate breakpoints.
490
491 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
492         PR breakpoints/14419
493         * arm-tdep.c (arm_skip_prologue): Extending producer check to
494         support LLVM compiler.
495
496 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
497
498         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
499         * bfin-tdep.c (bfin_extract_return_value): Likewise.
500         (bfin_store_return_value): Likewise.
501         * cris-tdep.c (cris_store_return_value): Likewise.
502         (cris_extract_return_value): Likewise.
503         * h8300-tdep.c (h8300_extract_return_value): Likewise.
504         * hppa-tdep.c (hppa64_return_value): Likewise.
505         * lm32-tdep.c (lm32_store_return_value): Likewise.
506         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
507         * spu-tdep.c (spu_value_from_register): Likewise.
508         * vax-tdep.c (vax_return_value): Likewise.
509
510 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
511
512         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
513         parameter LEN to ssize_t.
514
515 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
516
517         * ada-valprint.c (ada_val_print_1): Eliminate single-use
518         variable LEN.
519         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
520         directly.
521         (alpha_store_return_value): Likewise.
522         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
523         (amd64_push_arguments): Likewise.
524         * ax-gdb.c (gen_trace_static_fields): Likewise.
525         (gen_traced_pop): Likewise.
526         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
527         * breakpoint.c (update_watchpoint): Likewise.
528         * findcmd.c (parse_find_args): Use local variable for type
529         instead of length.
530         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
531         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
532         (h8300_store_return_value): Likewise.
533         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
534         Use i386_darwin_arg_type_alignment directly.
535         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
536         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
537         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
538         (m68hc11_extract_return_value): Likewise.
539         * mep-tdep.c (mep_push_dummy_call): Likewise.
540         * printcmd.c (float_type_from_length): Likewise.
541         * s390-tdep.c (s390_value_from_register): Likewise.
542         * stack.c (read_frame_arg): Likewise.
543         * tracepoint.c (encode_actions_1): Likewise.
544         * valops.c (value_fetch_lazy): Use local variable for type
545         instead of length.  Use TYPE_LENGTH directly.
546         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
547
548 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
549
550         * symtab.c (skip_prologue_sal): Fix typo in comment.
551
552 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
553
554         * linespec.c (create_sals_line_offset): Fix typo in comment.
555
556 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
557
558         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
559         use plongest to print the array size.
560
561 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
562
563         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
564         * p-valprint.c (pascal_type_print_base): Likewise.
565
566 2012-09-22  Yao Qi  <yao@codesourcery.com>
567
568         * remote.c (remote_get_trace_status): Remove setting default
569         values of fields of 'ts'.
570
571 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
572
573         Fix internal error on canonicalization of clang types.
574         * cp-name-parser.y (operator): New comment at make_operator call for
575         new, delete, new[] and delete[].
576         (exp): Use "sizeof ".  Add new comment at make_operator call.
577
578 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
579
580         Fix disassemble without parameters in tailcall frame.
581         * cli/cli-cmds.c (disassemble_current_function): Use
582         get_frame_address_in_block.
583
584 2012-09-21  Tom Tromey  <tromey@redhat.com>
585
586         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
587         TYPE_CODE_UNION>: Unify, removing a goto.
588
589 2012-09-21  Tom Tromey  <tromey@redhat.com>
590
591         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
592
593 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
594
595         * findvar.c (read_frame_register_value): Mark the result value as
596         optimized out if any of the input registers have been optimized out.
597
598 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
599
600         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
601
602 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
603
604         * eval.c (evaluate_subexp_standard): Eliminate single-use
605         variable LOWER.
606
607 2012-09-21  Yao Qi  <yao@codesourcery.com>
608
609         * mi/mi-interp.c: Declare mi_record_changed.
610         (mi_interpreter_init): Call observer_attach_record_changed.
611         (mi_record_changed): New.
612         * record.c (record_open): Call observer_notify_record_changed.
613         (cmd_record_stop): Call observer_notify_record_changed.
614         * NEWS: Mention it.
615
616 2012-09-20  Tom Tromey  <tromey@redhat.com>
617
618         * NEWS: Update.
619         * python/python.c (finalize_python): New function.
620         (_initialize_python): Make a final cleanup.
621
622 2012-09-19  Doug Evans  <dje@google.com>
623
624         * buildsym.h (param_symbols): Delete, unused.
625         (context_stack): Delete member "params", unused.
626         * buildsym.c (push_context): Update.
627         * dwarf2read.c (read_func_scope): Update.
628
629 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
630
631         * sh-tdep.c (sh_register_convert_to_virtual)
632         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
633         all callers.  Just do a memcpy if not the little-endian case.
634
635         * h8300-tdep.c (h8300_gdbarch_init): Invoke
636         set_gdbarch_double_format and set_gdbarch_long_double_format.
637         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
638         set_gdbarch_double_format.
639         * sh-tdep.c (sh_gdbarch_init): Likewise.
640
641         * NEWS: Document the removal of SH's 'regs' command.
642         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
643         command.
644
645 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
646
647         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
648         `jump'.
649
650 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
651
652         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
653         language when iterating over symbols.
654
655 2012-09-18  Yao Qi  <yao@codesourcery.com>
656
657         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
658         (mi_interpreter_init): Call observer_attach_tsv_created and
659         observer_attach_tsv_deleted.
660         (mi_tsv_created, mi_tsv_deleted): New.
661         * tracepoint.c (delete_trace_state_variable): Call
662         observer_notify_tsv_deleted.
663         (trace_variable_command): Call observer_notify_tsv_created.
664         (delete_trace_variable_command): Call
665         observer_notify_tsv_deleted.
666         (create_tsv_from_upload): Call observer_notify_tsv_created.
667         * NEWS: Mention it.
668
669 2012-09-18  Yao Qi  <yao@codesourcery.com>
670
671         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
672         if traceframe changed.
673         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
674         "trace-find".
675         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
676         (mi_interpreter_init): Hook mi_traceframe_changed to observer
677         'traceframe_changed'.
678         (mi_traceframe_changed): New.
679         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
680         New field.
681         * NEWS: Mention the new MI notification.
682
683 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
684
685         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
686
687 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
688
689         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
690         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
691         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
692         Extend code also for PaX support.  Convert all gdb_assert to warning
693         calls.
694
695 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
696
697         Implement auto-load user conveniences suggested by Doug Evans.
698         * auto-load.c: Include top.h.
699         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
700         (_initialize_auto_load): New variable scripts_directory_help.  Mention
701         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
702         scripts-directory.  Document in online help one can use also files for
703         set auto-load safe-path.
704         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
705         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
706
707 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
708
709         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
710         of LEN.
711
712 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
713
714         * m2-valprint.c (m2_print_array_contents): Eliminate variable
715         ELTLEN and use TYPE_LENGTH directly.
716         (m2_val_print): Likewise.
717         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
718         variable LEN and use TYPE_LENGTH directly.
719         (m68k_svr4_store_return_value): Likewise.
720         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
721         ARGLEN and use TYPE_LENGTH directly.
722         (mips_o64_push_dummy_call): Likewise.
723         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
724         variable LENGTH and use TYPE_LENGTH directly.
725         (s390_function_arg_float): Likewise.
726         (s390_function_arg_integer): Likewise.
727         (s390_push_dummy_call): Likewise.
728         (s390_return_value_convention): Likewise.
729         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
730         TYPE_LENGTH directly.
731
732 2012-09-17  Yao Qi  <yao@codesourcery.com>
733
734         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
735         Update comment to add_setshow_integer_cmd.
736         * cli/cli-setshow.c (do_set_command): Handle case
737         'var_zuinteger_unlimited'.
738         (do_show_command): Likewise.
739         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
740         for command 'remotetimeout'.
741         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
742         to var_integer.
743         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
744         for command 'set listsize'.
745
746 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
747
748         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
749         variable LEN.
750
751 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
752
753         PR 14119
754         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
755         (frame_pop): Drop also TAILCALL_FRAME frames.
756         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
757
758 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
759             Pedro Alves  <palves@redhat.com>
760
761         PR 14548
762         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
763         function start if we are already at function start.  Both for
764         reverse-next and for reverse-step into function without line number
765         info.
766
767 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
768
769         Code cleanup - rename 'inline' depth to 'artificial' depth.
770         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
771         frame_id_artificial_p, extend the comment.
772         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
773         * frame.c (fprint_frame_id): Rename at a user, change debug output
774         text to "artificial=".
775         (skip_inlined_frames): Rename to ...
776         (skip_artificial_frames): ... here.  Extend the comment.
777         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
778         (frame_id_inlined_p): Rename to ...
779         (frame_id_artificial_p): ... here.  Rename at a user.
780         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
781         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
782         at a user.
783         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
784         Extend the comment.
785         (frame_id_inlined_p): Rename to ...
786         (frame_id_artificial_p): ... here.
787         * inline-frame.c (inline_frame_this_id): Rename at a user.
788
789 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
790
791         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
792         vector variables using vector_size syntax rather than array
793         syntax.
794
795 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
796
797         * valarith.c (value_concat): Replace unsafe ALLOCA with
798         XMALLOC/XFREE.
799
800 2012-09-14  Pedro Alves  <palves@redhat.com>
801
802         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
803
804 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
805
806         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
807         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
808         data-directory as appropriate.
809
810 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
811
812         * printcmd.c (ui_printf): Eliminate single-use variable
813         PARAM_LEN.
814
815 2012-09-14  Yao Qi  <yao@codesourcery.com>
816             Pedro Alves  <palves@redhat.com>
817
818         * valops.c (value_assign): Move observer_notify_target_changed
819         below to replace reinit_frame_cache.
820
821 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
822
823         Refactor Python "gdb" module into a proper Python package, by
824         introducing a new "_gdb" module for code implemented in C, and
825         using reload/__import__ instead of exec.
826         * python/lib/gdb/__init__.py: Import * from _gdb.
827         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
828         prompt_hook, sys.argv): Moved from finish_python_initialization.
829         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
830         (packages, auto_load_packages): New list and function replacing
831         module_dict and auto-loading code, using __file__ instead of
832         gdb.PYTHONDIR and reload/__import__ instead of exec.
833         (GdbSetPythonDirectory): Replacing function of the same name
834         from finish_python_initialization, using reload/__import__ instead
835         of exec, as well as call auto_load_packages.
836         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
837         gdb_python_module and not gdb_module.
838         * python/python-internal.h (gdb_python_module): Declare.
839         * python/python.c (gdb_python_module): New global.
840         (before_prompt_hook): Check gdb_python_module and not gdb_module.
841         (_initialize_python): Rename gdb module to _gdb.
842         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
843         (finish_python_initialization): Move Python code to
844         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
845         __main__.
846
847 2012-09-13  Pedro Alves  <palves@redhat.com>
848
849         * Makefile.in (COMMON_OBS): Add registry.o.
850         * registry.c: New file.
851         * registry.h (struct registry_container): Declare.
852         (registry_data_callback): New typedef.
853         (struct registry_data, struct registry_data_registration, struct
854         registry_data_registry): New type.
855         (register_data_with_cleanup, registry_alloc_data)
856         (registry_callback_adaptor, registry_clear_data)
857         (registry_container_free_data, registry_set_data, registry_data):
858         Declare.
859         (DEFINE_REGISTRY): Refactor structures and functions as shims over
860         the new common structures and functions.
861         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
862         callback typedefs.
863
864 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
865
866         * remote.c (remote_insert_hw_breakpoint): Throw exception if
867         there is an error inserting hardware breakpoints and use the
868         error message from the target.
869
870         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
871         Catch this exception and print the error message contained within. Do not
872         print the default hardware error breakpoint message in this case.
873
874 2012-09-12  Doug Evans  <dje@google.com>
875
876         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
877         cu == NULL.
878
879 2012-09-11  Doug Evans  <dje@google.com>
880
881         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
882         .gdb_index symbol attributes if there are none.
883
884 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
885
886         * symtab.h (struct minimal_symbol) [has_size]: New field.
887         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
888         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
889         * printcmd.c (build_address_symbolic): Only filter out zero-sized
890         minimal symbols if the symbol's size is actually known.
891         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
892         of msymbol's size field.  Add comment.
893         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
894         SET_MSYMBOL_SIZE to set the minimal symbol size.
895
896 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
897
898         * minsyms.c (install_minimal_symbols): Use memset to fill entire
899         minimal_symbol struct object, rather than setting some of its
900         fields one by one.
901
902 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
903
904         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
905         passed_a_ptr flag when displaying typedef types.
906
907 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
908
909         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
910         the optimized_out flag is preserved.
911
912 2012-09-10  Anthony Green  <green@moxielogic.com>
913
914         * moxie-tdep.c (moxie_analyze_prologue): Update for function
915         prologue changes in GCC.
916
917 2012-09-10  Keith Seitz  <keiths@redhat.com>
918
919         PR gdb/13483
920         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
921         (BOOL_CONVERSION_BADNESS): ... this.
922         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
923         (rank_one_type): Allow all boolean conversions
924         permitted by the standard.
925
926 2012-09-06  Tom Tromey  <tromey@redhat.com>
927
928         * python/py-newobjfileevent.c (create_new_objfile_event_object):
929         Don't decref py_objfile.
930
931 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
932
933         Do not enable -lmcheck by default when Python is enabled with
934         threading support.
935         * configure.ac: (python_has_threads) New variable, by testing
936         if WITH_THREAD is defined in Python.h.
937         Move --enable-lmcheck after --with-python.
938         Do not enable -lmcheck by default if python_has_threads=yes.
939         Warn if --enable-lmcheck and python_has_threads=yes.
940         * configure: Regenerate.
941
942 2012-08-31  Yao Qi  <yao@codesourcery.com>
943
944         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
945         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
946         Update some commands.
947         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
948         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
949         to 1.
950
951 2012-08-31  Yao Qi  <yao@codesourcery.com>
952
953         * mi/mi-cmds.c (mi_cmds): Add 'static'.
954
955 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
956
957         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
958
959 2012-08-29  Doug Evans  <dje@google.com>
960
961         * main.c (print_gdb_help): Remove reference to
962         --use-deprecated-index-sections.
963
964 2012-08-28  Yao Qi  <yao@codesourcery.com>
965
966         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
967         (init_cmds): Call add_setshow_uinteger_cmd for command
968         'max-user-call-depth'.
969         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
970         declaration of 'max_user_call_depth'.
971         * frame.c (backtrace_limit): Add 'unsigned'.
972         (_initialize_frame): Call add_setshow_uinteger_cmd for command
973         'limit'.
974         * remote.c (remoteaddresssize): Add 'unsigned'.
975         (remote_address_masked): Change local var 'address_size' to
976         'unsigned'.
977         (_initialize_remote): Call add_setshow_uinteger_cmd for
978         'remoteaddresssize'.
979         * top.c (history_size): Add 'unsigned'.
980         (show_commands): Change local variables to 'unsigned'.
981         (set_history_size_command): Don't check history_size is negative.
982         Adjust the condition to call unstifle_history and set history_size
983         to UNIT_MAX.
984
985 2012-08-28  Pedro Alves  <palves@redhat.com>
986
987         PR gdb/14428
988
989         * infcmd.c (default_print_one_register_info): New, factored out
990         from default_print_registers_info.
991         (default_print_registers_info): Use it.  Mark value unavailable if
992         necessary.
993         (registers_info): Print user registers with
994         default_print_one_register_info.
995
996 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
997
998         PR tui/14486
999         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1000         is not NULL before referencing it.
1001
1002 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1003
1004         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1005         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1006         original PC for it.
1007
1008 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1009             Jan Kratochvil  <jan.kratochvil@redhat.com>
1010
1011         * auto-load.c (auto_load_objfile_script): Rename to ...
1012         (auto_load_objfile_script_1): ... here, change variable realname to
1013         parameter realname, document it, add return value, add variable retval.
1014         (auto_load_objfile_script): New function.
1015
1016 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1017
1018         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1019         followed by a whitespace.
1020
1021 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1022
1023         PR gdb/14494.
1024         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1025         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1026         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1027         here.
1028
1029 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1030
1031         * memattr.c (create_mem_region): Fix memory region overlapping
1032         checking.
1033
1034 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1035
1036         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1037         with xmalloc/cleanup.
1038         * mt-tdep.c (mt_push_dummy_call): Likewise.
1039         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1040         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1041
1042 2012-08-24  Yao Qi  <yao@codesourcery.com>
1043
1044         * jv-exp.y (push_expression_name): Add "." at the end of error
1045         message.
1046
1047 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1048
1049         Document how to return from "python-interactive" to GDB.
1050         * python/python.c (_initialize_python): Update documentation.
1051
1052 2012-08-23  Pedro Alves  <palves@redhat.com>
1053
1054         * infrun.c (_initialize_infrun) <handle command help text>:
1055         Mention that multiple signals are supported.
1056
1057 2012-08-23  Pedro Alves  <palves@redhat.com>
1058
1059         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1060         string.
1061
1062 2012-08-23  Yao Qi  <yao@codesourcery.com>
1063
1064         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1065         (tfind_1): Don't call registers_changed, set_traceframe_num,
1066         and clear_traceframe_info.
1067         Call set_current_traceframe.
1068         (set_current_traceframe): call set_traceframe_num.
1069
1070 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1071
1072         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1073         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1074
1075 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1076
1077         Enable readline in Python in a GDB-specific way and block the
1078         standard Python readline module to prevent conflicts with GDB.
1079         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1080         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1081         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1082         * python/py-gdb-readline.c: New file.
1083         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1084         prototype.
1085         * python/python.c (_initialize_python): Call
1086         gdbpy_initialize_gdb_readline.
1087
1088 2012-08-22  Keith Seitz  <keiths@redhat.com>
1089
1090         * defs.h: Include build-gnulib/config.h
1091
1092 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1093
1094         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1095         and blx pc.
1096
1097 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1098
1099         Add a new "python-interactive" command that starts a standard
1100         Python interactive prompt with "pi" as alias, and add "py" as
1101         an alias to "python".
1102         * NEWS: Mention the new commands.
1103         * python/python.c (eval_python_command): New function.
1104         (python_interactive_command): For "python-interactive" with
1105         arguments, call eval_python_command.  For "python-interactive"
1106         without arguments, call PyRun_InteractiveLoop.
1107         (_initialize_python): Add "python-interactive" command with
1108         "pi" as alias, and add "py" as an alias to "python".
1109
1110 2012-08-22  Tom Tromey  <tromey@redhat.com>
1111
1112         * defs.h (quit_flag): Don't declare.
1113         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1114         (QUIT): Use new functions.
1115         * event-top.c (command_handler): Use clear_quit_flag.
1116         (handle_sigint): Use set_quit_flag.
1117         (async_request_quit): Use check_quit_flag.  Don't check
1118         immediate_quit.
1119         * exceptions.c (throw_exception): Use clear_quit_flag.
1120         * main.c (captured_main): Use clear_quit_flag.
1121         * python/python.c (clear_quit_flag, set_quit_flag)
1122         (check_quit_flag): New functions.
1123         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1124         clear_quit_flag.
1125         * remote.c (remote_wait_as): Use check_quit_flag,
1126         clear_quit_flag.
1127         (remote_start_remote): Call QUIT.
1128         * symfile.c (load_progress): Use check_quit_flag.
1129         * top.c (command_loop): Use clear_quit_flag.
1130         (command_line_input): Call QUIT.
1131         * utils.c (quit_flag): Conditionally define.
1132         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1133         functions.
1134         (prompt_for_continue): Call QUIT.  Use quit, not
1135         async_request_quit.
1136         * remote-mips.c (mips_expect_timeout): Call QUIT.
1137         * monitor.c (monitor_expect): Call QUIT.
1138
1139 2012-08-22  Tom Tromey  <tromey@redhat.com>
1140
1141         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1142         (async_init_signals): Update.
1143         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1144         (SIGWINCH_HANDLER_BODY): Remove.
1145
1146 2012-08-22  Tom Tromey  <tromey@redhat.com>
1147
1148         * jit.c (jit_object_close_impl): Don't malloc the objfile
1149         name.
1150         * objfiles.c (allocate_objfile): Don't malloc the objfile
1151         name.
1152         (free_objfile): Don't free the objfile name.
1153         * objfiles.h (struct objfile) <name>: Update comment.
1154         * symfile.c (reread_symbols): Fix reference counting.  Don't
1155         malloc objfile name.
1156
1157 2012-08-22  Tom Tromey  <tromey@redhat.com>
1158
1159         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1160         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1161         (symfile_bfd_open): Likewise.
1162         (generic_load): Likewise.
1163         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1164         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1165         gdb_bfd_open.
1166         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1167         Use gdb_bfd_open.
1168         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1169         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1170         (pmon_load_fast): Likewise.
1171         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1172         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1173         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1174         (macho_check_dsym): Likewise.
1175         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1176         (m32r_upload_command): Likewise.
1177         * gdb_bfd.h (gdb_bfd_cache): Declare.
1178         * gdb_bfd.c (struct gdb_bfd_data): New.
1179         (gdb_bfd_cache): New global.
1180         (struct gdb_bfd_cache_search): New.
1181         (hash_bfd): New function.
1182         (eq_bfd): Likewise.
1183         (gdb_bfd_open): Likewise.
1184         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1185         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1186         gdb_bfd_data.
1187         * exec.c (exec_file_attach): Use gdb_bfd_open.
1188         * dsrec.c (load_srec): Use gdb_bfd_open.
1189
1190 2012-08-22  Tom Tromey  <tromey@redhat.com>
1191
1192         * dwarf2read.c (macro_start_file): Update.
1193         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1194         (free_objfile_per_bfd_storage): Destroy macro_cache.
1195         (allocate_objfile, free_objfile): Update.
1196         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1197         New field.
1198         (struct objfile) <macro_cache>: Remove.
1199         * symfile.c (reread_symbols): Update.
1200         * symmisc.c (print_symbol_bcache_statistics): Update.
1201         (print_objfile_statistics): Update.
1202
1203 2012-08-22  Tom Tromey  <tromey@redhat.com>
1204
1205         * elfread.c (elf_symtab_read): Update.
1206         * objfiles.c (objfiles_bfd_data): New global.
1207         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1208         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1209         (allocate_objfile, free_objfile): Update.
1210         (_initialize_objfiles): Initialize objfiles_bfd_data.
1211         * objfiles.h (struct objfile_per_bfd_storage): New.
1212         (struct objfile) <per_bfd>: New field.
1213         <filename_cache>: Remove.
1214         (set_objfile_per_bfd): Declare.
1215         * symfile.c (reread_symbols): Update.  Call
1216         set_objfile_per_bfd.
1217         (allocate_symtab): Update.
1218         * symmisc.c (print_symbol_bcache_statistics): Update.
1219         (print_objfile_statistics): Print the size of the BFD obstack.
1220
1221 2012-08-22  Tom Tromey  <tromey@redhat.com>
1222
1223         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1224         * gdb_bfd.c: Use DEFINE_REGISTRY.
1225         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1226         (gdb_bfd_ref): Call bfd_alloc_data.
1227         (gdb_bfd_unref): Call bfd_free_data.
1228
1229 2012-08-22  Tom Tromey  <tromey@redhat.com>
1230
1231         * registry.h (struct registry_fields): New.
1232         (REGISTRY_FIELDS): Redefine.
1233         (REGISTRY_ACCESS_FIELD): New macro.
1234         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1235         functions.
1236
1237 2012-08-22  Tom Tromey  <tromey@redhat.com>
1238
1239         * auto-load.c (_initialize_auto_load): Update.
1240         * solib-svr4.c (_initialize_svr4_solib): Update
1241         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1242         * solib-darwin.c (_initialize_darwin_solib): Update.
1243         * registry.h: New file.
1244         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1245         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1246         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1247         (register_program_space_data_with_cleanup)
1248         (register_program_space_data, program_space_alloc_data)
1249         (clear_program_space_data, set_program_space_data)
1250         (program_space_data): Don't declare.
1251         * progspace.c: Use DEFINE_REGISTRY.
1252         (struct program_space_data, struct
1253         program_space_data_registration, struct
1254         program_space_data_registry, program_space_data_registry)
1255         (register_program_space_data_with_cleanup)
1256         (register_program_space_data, program_space_alloc_data)
1257         (program_space_free_data, clear_program_space_data)
1258         (set_program_space_data, program_space_data): Remove.
1259         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1260         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1261         (register_objfile_data_with_cleanup, register_objfile_data)
1262         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1263         declare.
1264         * objfiles.c: Use DEFINE_REGISTRY.
1265         (struct objfile_data, struct objfile_data_registration, struct
1266         objfile_data_registry, objfile_data_registry)
1267         (register_objfile_data_with_cleanup, register_objfile_data)
1268         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1269         (set_objfile_data, objfile_data): Remove.
1270         (_initialize_objfiles): Update.
1271         * jit.c (_initialize_jit): Update.
1272         * inflow.c (_initialize_inflow): Update.
1273         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1274         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1275         (register_inferior_data_with_cleanup, register_inferior_data)
1276         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1277         declare.
1278         * inferior.c: Use DEFINE_REGISTRY.
1279         (struct inferior_data, struct inferior_data_registration, struct
1280         inferior_data_registry, inferior_data_registry)
1281         (register_inferior_data_with_cleanup, register_inferior_data)
1282         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1283         (set_inferior_data, inferior_data): Remove.
1284         * auxv.c (_initialize_auxv): Update.
1285         * ada-lang.c (_initialize_ada_language): Update.
1286         * breakpoint.c (_initialize_breakpoint): Update.
1287         * i386-nat.c (i386_use_watchpoints): Update.
1288
1289 2012-08-22  Tom Tromey  <tromey@redhat.com>
1290
1291         * exec.c (exec_close, exec_file_attach): Update.
1292         (add_to_section_table): Initialize 'key' field.
1293         (add_target_sections, remove_target_sections): Add 'key' argument.
1294         * exec.h (add_target_sections, remove_target_sections): Add
1295         'key' argument.
1296         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1297         (reload_shared_libraries_1): Update.
1298         * target.h (struct target_section) <key>: New field.
1299
1300 2012-08-22  Tom Tromey  <tromey@redhat.com>
1301
1302         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1303
1304 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1305
1306         * symfile.c (allocate_symtab): Use host_address_to_string
1307         function instead of cast of pointer to long which is not
1308         compatible with x86_64-w64-mingw32 build.
1309
1310 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1311
1312         * mips-tdep.c (is_octeon): New function.
1313         (is_octeon_bbit_op): New function.
1314         (mips32_next_pc): Handle Octeon's bbit instructions.
1315         (mips32_instruction_has_delay_slot): Likewise.
1316
1317 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1318
1319         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1320         before the function.
1321
1322 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1323
1324         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1325
1326 2012-08-19  Keith Seitz  <keiths@redhat.com>
1327
1328         PR c++/14365
1329         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1330         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1331
1332 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1333
1334         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1335         The typo broke "make TAGS".
1336
1337 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1338
1339         GDB 7.5 released.
1340
1341 2012-08-17  Keith Seitz  <keiths@redhat.com>
1342
1343         PR c++/13356
1344         * gdbtypes.c (strict_type_checking): New variable.
1345         (show_strict_type_checking): New function.
1346         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1347         if strict type checking is disabled.
1348         (_initialize_gdbtypes): Add "check type" subcommand.
1349         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1350
1351 2012-08-17  Keith Seitz  <keiths@redhat.com>
1352
1353         * language.h (type_mode): Remove.
1354         (type_check): Remove.
1355         (struct language_defn): Remove la_type_check.
1356         (STRICT_TYPE): Remove unused macro.
1357         (type_error): Remove.
1358         * language.c (set_type_range_case): Renamed to ...
1359         (set_range_case): ... this.  Update all callers.
1360         Remove type_mode/type_check.
1361         (type_mode): Remove.
1362         (type_check): Remove.
1363         (show_type_command): Remove.
1364         (set_type_command): Remove.
1365         (language_info): Remove type checking output.
1366         (type_error): Remove unused function.
1367         (range_error): Update comment.
1368         (unknown_language_defn): Remove la_type_check.
1369         (auto_language_defn): Likewise.
1370         (local_language_defn): Likewise.
1371         (_initialize_language): Remove "check type" subcommand.
1372         * ada-lang.c (ada_language_defn): Remove la_type_check.
1373         * c-lang.c (c_language_defn): Likewise.
1374         (cplus_language_defn): Likewise.
1375         (asm_language_defn): Likewise.
1376         (minimal_language_defn): Likewise.
1377         * d-lang.c (d_language_defn): Likewise.
1378         * f-lang.c (f_language_defn): Likewise.
1379         * go-lang.c (go_language_defn): Likewise.
1380         * jv-lang.c (java_language_defn): Likewise.
1381         * m2-lang.c (m2_language_defn): Likewise.
1382         * objc-lang.c (objc_language_defn): Likewise.
1383         * opencl-lang.c (opencl_language_defn): Likewise.
1384         * p-lang.c (pascal_language_defn): Likewise.
1385
1386 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1387
1388         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1389
1390 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1391
1392         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1393         New function.
1394         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1395         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1396         to access the bsp and bspstore registers if not.
1397
1398 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1399
1400         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1401         * breakpoint.c (detach_breakpoints): Change pid parameter into
1402         a ptid.  Adjust code accordingly.
1403         * infrun.c (handle_inferior_event): Delete variable child_pid.
1404         Update call to detach_breakpoints to pass the child ptid for
1405         fork events.
1406         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1407         assert that inferior_ptid's lwp is zero.
1408         (linux_handle_extended_wait): Update call to detach_breakpoints.
1409         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1410         detach_breakpoints.
1411
1412 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1413
1414         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1415         parent, only call detach_breakpoints if tts.tts_event ==
1416         TTEVT_VFORK.
1417
1418 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1419
1420         * dwarf2-frame.c (dwarf2_frame_cache): Use
1421         get_frame_address_in_block instead of get_frame_pc as
1422         the bound for executing the frame's FDE.
1423
1424 2012-08-16  Yao Qi  <yao@codesourcery.com>
1425
1426         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1427         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1428         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1429         (c_type_print_varspec_suffix): Likewise.
1430         * eval.c (evaluate_subexp_standard): Likewise.
1431         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1432         (f_type_print_varspec_suffix): Likewise.
1433         * gdbtypes.c (is_scalar_type): Likewise.
1434         (recursive_dump_type): Likewise.
1435         * infcall.c (value_arg_coerce): Likewise.
1436         * m2-valprint.c (m2_val_print): Likewise.
1437         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1438         (pascal_type_print_varspec_suffix): Likewise.
1439         (pascal_type_print_base): Likewise.
1440         * p-valprint.c (pascal_val_print): Likewise.
1441         (pascal_val_print): Likewise.
1442         * valops.c (value_slice): Likewise.
1443         * valprint.c (scalar_type_p): Likewise.
1444         * valarith.c (value_bitstring_subscript): Remove.
1445         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1446         Remove comment on TYPE_CODE_BITSTRING.
1447
1448         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1449         TYPE_CODE_BITSTRING.
1450
1451         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1452         slot 0.
1453
1454 2012-08-16  Yao Qi  <yao@codesourcery.com>
1455
1456         * tracepoint.c (trace_find_none_command): Remove.
1457         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1458
1459 2012-08-16  Yao Qi  <yao@codesourcery.com>
1460
1461         * remote.c (handle_notification): Remove parameter 'length'.
1462         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1463
1464 2012-08-15  Keith Seitz  <keiths@redhat.com>
1465
1466         * gdbtypes.c (opaque_type_resolution): Make static.
1467         Add missing comment.
1468         (overload_debug): Add missing comment.
1469         (show_opaque_type_resolution): Likewise.
1470         (show_overload_debug): Likewise.
1471         (print_bit_vector): Remove unnecessary forward declaration.
1472         (print_arg_types): Likewise.
1473         (dump_fn_fieldlists): Likewise.
1474         (print_cplus_stuff): Likewise.
1475
1476 2012-08-15  Tom Tromey  <tromey@redhat.com>
1477
1478         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1479         (gdb_bfd_ref): Initialize new field.
1480         (gdb_bfd_unref): Unref the archive BFD.
1481         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1482         parent archive.
1483
1484 2012-08-15  Tom Tromey  <tromey@redhat.com>
1485
1486         PR python/14387:
1487         * python/py-bpevent.c (create_breakpoint_event_object): Update
1488         comment.
1489         * python/py-event.c (evpy_add_attribute): Update comment.
1490         * python/py-exitedevent.c (create_exited_event_object): Fix
1491         reference counting and error handling.
1492         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1493         Fix reference counting.
1494         * python/py-signalevent.c (create_signal_event_object): Fix
1495         reference counting and error handling.
1496         * python/py-stopevent.c (emit_stop_event): Fix reference
1497         counting.
1498         * python/py-threadevent.c (get_event_thread): Return a
1499         borrowed reference.
1500         * python/py-type.c (convert_field): Fix reference counting.
1501
1502 2012-08-15  Tom Tromey  <tromey@redhat.com>
1503
1504         * dwarf2read.c (dwarf_decode_macro_bytes)
1505         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1506         as hash key.
1507
1508 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1509
1510         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1511         stepi, nexti, finish, next, step, jump, and continue commands.
1512         * infrun.c (_initialize_infrun): Update help text for the handle
1513         command.
1514
1515 2012-08-14  Doug Evans  <dje@google.com>
1516
1517         * gdbtypes.c (struct extra): Delete, unused.
1518
1519         * gdbtypes.c: Whitespace cleanup.
1520         (address_space_name_to_int): Remove "extern" from definition.
1521         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1522
1523         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1524         TYPE_POINTER_TYPE (type).
1525
1526 2012-08-14  Gary Benson  <gbenson@redhat.com>
1527
1528         * solib-svr4.c (svr4_free_library_list): Use free_so.
1529
1530 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1531
1532         * .gitignore: Add go-exp.c.
1533
1534 2012-08-13  Doug Evans  <dje@google.com>
1535
1536         * value.c (show_convenience): Tweak comment.
1537         (_initialize_values): Mention convenience functions in the help text
1538         for "show convenience".
1539
1540 2012-08-13  Yao Qi  <yao@codesourcery.com>
1541
1542         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1543         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1544         TERNOP_SLICE_COUNT.
1545         * eval.c (evaluate_subexp_standard): Likewise.
1546         * expprint.c (print_subexp_standard): Likewise.
1547         (dump_subexp_body_standard): Likewise.
1548         * parse.c (operator_length_standard): Likewise.
1549
1550 2012-08-13  Yao Qi  <yao@codesourcery.com>
1551
1552         * std-operator.def: Remove OP_BITSTRING.
1553         * breakpoint.c (watchpoint_exp_is_const): Update.
1554         * eval.c (evaluate_subexp_standard): Remove handling to
1555         OP_BITSTRING.
1556         * expprint.c (print_subexp_standard): Likewise.
1557         (dump_subexp_body_standard): Likewise.
1558         * parse.c (operator_length_standard): Likewise.
1559         * valops.c (value_bitstring): Remove.
1560         * value.h: Remove the declaration of 'value_bitstring'.
1561
1562 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1563
1564         * linespec.c (find_methods): Remove unused variables `i1' and
1565         `name_len'.
1566         (decode_line_full): Likewise for `arg_start'.
1567
1568 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1569
1570         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1571         (zlib_decompress_section): Likewise for `section_data'.
1572         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1573
1574 2012-08-10  Doug Evans  <dje@google.com>
1575
1576         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1577         * NEWS: Document them.
1578         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1579         function/strfns.py.
1580         * python/py-type.c (typy_array_1): New function.
1581         (typy_array): Call it.
1582         (typy_vector): New function.
1583         (type_object_methods): Add "vector".
1584         * python/lib/gdb/function/__init__.py: New file.
1585         * python/lib/gdb/function/strfns.py: New file.
1586
1587 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1588
1589         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1590         for TYPE_FIELD_BITPOS.
1591         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1592
1593 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1594
1595         PR cli/10436:
1596         * common/vec.h (VEC_merge): Define.
1597         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1598         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1599         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1600         * completer.c: Include gdb_signals.h.
1601         (signal_completer): Define.
1602         * completer.h (signal_completer): Add prototype.
1603         * infcmd.c (_initialize_infcmd): Assign the command
1604         completer for "signal" to handle_completer.
1605         * infrun.c: Include completer.h.
1606         (handle_completer): Define.
1607         (_initialize_infrun): Declare a new local variable c.  Store the
1608         result of add_com("handle") to it.  Assign the command
1609         completer for "handle" to handle_completer.
1610
1611 2012-08-09  Yao Qi  <yao@codesourcery.com>
1612
1613         * cli/cli-decode.c (set_cmd_prefix): New.
1614         (lookup_cmd_for_prefixlist): New.
1615         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1616         of each cmd_list_element in *prefixlist.
1617         (add_setshow_cmd_full): set_cmd_prefix.
1618         (add_alias_cmd): Likewise.
1619         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1620         Declare 'auto_boolean_enums'.
1621         * cli/cli-setshow.c: Include "observer.h".
1622         (notify_command_param_changed_p): New.
1623         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1624         Remove 'static'.
1625         (do_setshow_command): Split it to ...
1626         (do_set_command, do_show_command): ... them.  New.
1627         (do_set_command): Call observer_notify_command_param_changed if
1628         notify_command_param_changed_p returns true.
1629         (cmd_show_list): Caller update.
1630         * auto-load.c (set_auto_load_cmd): Likewise.
1631         * remote.c (show_remote_cmd): Likewise.
1632         * cli/cli-setshow.h: Update declarations.
1633         * top.c (execute_command): Call do_set_command and do_show_command.
1634
1635         * NEWS: Mention new MI notification.
1636         * mi/mi-interp.c: Declare mi_command_param_changed.
1637         (mi_interpreter_init): Attach mi_command_param_changed to
1638         observer command_param_changed.
1639         (mi_command_param_changed): New.
1640         Remove mi_suppress_breakpoint_notifications.
1641         Define global variable mi_suppress_notification.
1642         (mi_breakpoint_created): Update.
1643         (mi_breakpoint_deleted): Likewise.
1644         (mi_breakpoint_modified): Likewise.
1645         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1646         'gdb-set' and set mi_suppress_notification.
1647         * mi/mi-main.h: (mi_suppress_notification): New struct.
1648
1649 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1650             Jan Kratochvil  <jan.kratochvil@redhat.com>
1651
1652         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1653
1654 2012-08-09  Yao Qi  <yao@codesourcery.com>
1655
1656         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1657         (skiplist): Move it to skip.c.
1658         (init_cmd_lists): Remove code setting enablebreaklist and
1659         skiplist to NULL.
1660         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1661         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1662         skiplist.
1663         * gdbcmd.h: Likewise.
1664         * skip.c (_initialize_step_skip): Move 'skiplist' from
1665         cli/cli-cmds.c.
1666
1667 2012-08-09  Yao Qi  <yao@codesourcery.com>
1668
1669         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1670         * gnu-nat.c, symfile.c: Likewise.
1671
1672 2012-08-08  Aaron Gamble  <agamble@google.com>
1673
1674         * utils.c (prompt_for_continue_wait_time): New static global.
1675         (make_command_stats_cleanup): Initialize it.
1676         (report_command_stats): Subtract time waiting for user.
1677         (prompt_for_continue): Track time waiting for user.
1678         (defaulted_query): Track time waiting for user.
1679
1680 2012-08-08  Doug Evans  <dje@google.com>
1681
1682         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1683         UNOP_MEMVAL_TYPE.
1684         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1685         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1686         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1687         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1688         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1689         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1690         elt.
1691         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1692         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1693         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1694         (dump_prefix_expression): Handle OP_TYPE.
1695
1696 2012-08-08  Keith Seitz  <keiths@redhat.com>
1697
1698         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1699         addr_start.
1700
1701 2012-08-08  Doug Evans  <dje@google.com>
1702
1703         * linux-thread-db.c: #include "gdb_vecs.h".
1704         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1705         updated.
1706         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1707         (thread_db_load_search): Use a vector to iterate over path elements.
1708         Handle text appearing after "$pdir".
1709
1710         * gdb_string.h: Moved to ...
1711         * common/gdb_string.h: ... here.
1712         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1713         gdb_string.h and gdb_assert.h.
1714
1715 2012-08-08  Yao Qi  <yao@codesourcery.com>
1716
1717         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1718         (tic6x_value_to_register): Likewise.
1719         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1720         and set_gdbarch_value_to_register.
1721
1722 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1723             Jean-Marc Saffroy  <saffroy@gmail.com>
1724
1725         PR 11804
1726         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1727         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1728         * gcore.c (gcore_create_callback): New function comment.  Add modified
1729         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1730         according to MODIFIED.
1731         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1732         the passed modified value to FUNC.
1733         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1734         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1735         first.  New variables modified and has_anonymous.  Parse the lines of
1736         smaps file.  Add the passed MODIFIED value to FUNC.
1737         * procfs.c (find_memory_regions_callback): Add the passed modified
1738         value.
1739
1740 2012-08-06  Tom Tromey  <tromey@redhat.com>
1741
1742         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1743         (dwarf2_frame_cache): Use it.
1744         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1745         cache initialization constraint.
1746
1747 2012-08-06  Tom Tromey  <tromey@redhat.com>
1748
1749         PR python/14386:
1750         * varobj.c (update_dynamic_varobj_children): Don't call
1751         PyIter_Check.
1752
1753 2012-08-06  Tom Tromey  <tromey@redhat.com>
1754
1755         PR cli/14392:
1756         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1757
1758 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1759
1760         * NEWS: New entry for 'cd' default parameters.
1761         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1762
1763 2012-08-03  Tom Tromey  <tromey@redhat.com>
1764
1765         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1766         return.
1767
1768 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1769
1770         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1771         to attempting lseek/write.
1772         (inf_child_fileio_pread): Likewise for pread.
1773
1774 2012-08-02  Yao Qi  <yao@codesourcery.com>
1775
1776         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1777         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1778         add_setshow_zinteger_cmd.
1779         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1780         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1781         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1782         instead of add_setshow_zinteger_cmd.
1783         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1784         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1785         instead of add_setshow_zinteger_cmd.
1786         * frame.c (frame_debug): Add 'unsigned'.
1787         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1788         add_setshow_zinteger_cmd.
1789         * frame.h: Update the declaration of 'frame_debug'.
1790         * gdbtypes.c (overload_debug): Add 'unsigned'.
1791         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1792         add_setshow_zinteger_cmd.
1793         * inferior.h: Update declaration of 'debug_infrun'.
1794         * infrun.c (debug_infrun): Add 'unsigned'.
1795         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1796         add_setshow_zinteger_cmd.
1797         * jit.c (jit_debug): Add 'unsigned'.
1798         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1799         add_setshow_zinteger_cmd.
1800         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1801         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1802         instead of add_setshow_zinteger_cmd.
1803         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1804         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1805         add_setshow_zinteger_cmd.
1806         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1807         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1808         instead of add_setshow_zinteger_cmd.
1809         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1810         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1811         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1812         intead of add_setshow_zinteger_cmd.
1813         * mips-tdep.c (mips_debug): Add 'unsigned'.
1814         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1815         instead of add_setshow_zinteger_cmd.
1816         * monitor.c (monitor_debug): Add 'unsigned'.
1817         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1818         add_setshow_zinteger_cmd.
1819         * observer.c (observer_debug): Add 'unsigned'.
1820         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1821         add_setshow_zinteger_cmd.
1822         * parse.c (expressiondebug): Add 'unsigned'.
1823         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1824         add_setshow_zinteger_cmd.
1825         * record.c (record_debug): Add 'unsigned'.
1826         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1827         add_setshow_zinteger_cmd.
1828         * record.h: Update the declaration of 'record_debug'.
1829         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1830         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1831         add_setshow_zinteger_cmd.
1832         * serial.c (global_serial_debug_p): Add 'unsigned'.
1833         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1834         add_setshow_zinteger_cmd.
1835         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1836         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1837         add_setshow_zinteger_cmd.
1838         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1839         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1840         add_setshow_zinteger_cmd.
1841         * target.c (targetdebug): Add 'unsigned'.
1842         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1843         add_setshow_zinteger_cmd.
1844         * valops.c (overload_debug): Add 'unsigned'.
1845         * varobj.c (varobjdebug): Add 'unsigned'.
1846         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1847         add_setshow_zinteger_cmd.
1848         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1849         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1850         instead of add_setshow_zinteger_cmd.
1851
1852         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1853         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1854         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1855         instead of add_setshow_zinteger_cmd.
1856         * gdbarch.c, gdbarch.h: Re-generated.
1857
1858 2012-08-02  Yao Qi  <yao@codesourcery.com>
1859
1860         * nto-tdep.c: Don't include cli/cli-decode.h and
1861         cli/cli-cmds.h.
1862         (_initialize_nto_tdep): Remove.
1863         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1864         Remove field.
1865         Remove macro nto_internal_debugging.
1866
1867 2012-08-01  Richard Henderson  <rth@redhat.com>
1868
1869         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1870         (mep-*-*) [gdb_target_obs]: Likewise.
1871
1872 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
1873
1874         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1875         linux_get_siginfo_type.
1876
1877 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1878
1879         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1880         AT_ENTRY_POINT.
1881         (call_function_by_hand) <ON_STACK>: Call write_memory with
1882         gdbarch_breakpoint_from_pc, if possible.
1883         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1884         here.
1885
1886 2012-07-31  Yao Qi  <yao@codesourcery.com>
1887
1888         * tracepoint.c: Add 'static' for some variables.
1889
1890 2012-07-31  Yao Qi  <yao@codesourcery.com>
1891
1892         * go32-nat.c: Declare _initialize_go32_nat.
1893         * ser-go32.c: Declare _initialize_ser_dos.
1894         * top.c (do_chdir_cleanup): Add 'static'.
1895
1896 2012-07-30  Keith Seitz  <keiths@redhat.com>
1897
1898         * linespec.c (linespec_lex_number): A number followed
1899         by quotes is a valid number, too.
1900
1901 2012-07-30  Tom Tromey  <tromey@redhat.com>
1902
1903         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1904
1905 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
1906
1907         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1908         attempt to 4-byte-align HW breakpoint addresses for Thumb.
1909
1910 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
1911
1912         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1913         invalid or reevaluated to prevent prevent references to possibly
1914         delete'd type objects being left in the varobj.
1915
1916 2012-07-27  Tom Tromey  <tromey@redhat.com>
1917             Jan Kratochvil  <jan.kratochvil@redhat.com>
1918
1919         * copying.awk: Print buffer-read-only and vi ro markers.
1920         * copying.c: Rebuild.
1921         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1922         * gdbarch.c, gdbarch.h: Rebuild.
1923         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1924         buffer-read-only and vi ro markers.
1925         * features/arm-with-iwmmxt.c: Rebuild.
1926         * features/arm-with-m-fpa-layout.c: Rebuild.
1927         * features/arm-with-m-vfp-d16.c: Rebuild.
1928         * features/arm-with-m.c: Rebuild.
1929         * features/arm-with-neon.c: Rebuild.
1930         * features/arm-with-vfpv2.c: Rebuild.
1931         * features/arm-with-vfpv3.c: Rebuild.
1932         * features/i386/amd64-avx-linux.c: Rebuild.
1933         * features/i386/amd64-avx.c: Rebuild.
1934         * features/i386/amd64-linux.c: Rebuild.
1935         * features/i386/amd64.c: Rebuild.
1936         * features/i386/i386-avx-linux.c: Rebuild.
1937         * features/i386/i386-avx.c: Rebuild.
1938         * features/i386/i386-linux.c: Rebuild.
1939         * features/i386/i386-mmx-linux.c: Rebuild.
1940         * features/i386/i386-mmx.c: Rebuild.
1941         * features/i386/i386.c: Rebuild.
1942         * features/i386/x32-avx-linux.c: Rebuild.
1943         * features/i386/x32-avx.c: Rebuild.
1944         * features/i386/x32-linux.c: Rebuild.
1945         * features/i386/x32.c: Rebuild.
1946         * features/mips-dsp-linux.c: Rebuild.
1947         * features/mips-linux.c: Rebuild.
1948         * features/mips64-dsp-linux.c: Rebuild.
1949         * features/mips64-linux.c: Rebuild.
1950         * features/rs6000/powerpc-32.c: Rebuild.
1951         * features/rs6000/powerpc-32l.c: Rebuild.
1952         * features/rs6000/powerpc-403.c: Rebuild.
1953         * features/rs6000/powerpc-403gc.c: Rebuild.
1954         * features/rs6000/powerpc-405.c: Rebuild.
1955         * features/rs6000/powerpc-505.c: Rebuild.
1956         * features/rs6000/powerpc-601.c: Rebuild.
1957         * features/rs6000/powerpc-602.c: Rebuild.
1958         * features/rs6000/powerpc-603.c: Rebuild.
1959         * features/rs6000/powerpc-604.c: Rebuild.
1960         * features/rs6000/powerpc-64.c: Rebuild.
1961         * features/rs6000/powerpc-64l.c: Rebuild.
1962         * features/rs6000/powerpc-7400.c: Rebuild.
1963         * features/rs6000/powerpc-750.c: Rebuild.
1964         * features/rs6000/powerpc-860.c: Rebuild.
1965         * features/rs6000/powerpc-altivec32.c: Rebuild.
1966         * features/rs6000/powerpc-altivec32l.c: Rebuild.
1967         * features/rs6000/powerpc-altivec64.c: Rebuild.
1968         * features/rs6000/powerpc-altivec64l.c: Rebuild.
1969         * features/rs6000/powerpc-cell32l.c: Rebuild.
1970         * features/rs6000/powerpc-cell64l.c: Rebuild.
1971         * features/rs6000/powerpc-e500.c: Rebuild.
1972         * features/rs6000/powerpc-e500l.c: Rebuild.
1973         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1974         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1975         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1976         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1977         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1978         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1979         * features/rs6000/powerpc-vsx32.c: Rebuild.
1980         * features/rs6000/powerpc-vsx32l.c: Rebuild.
1981         * features/rs6000/powerpc-vsx64.c: Rebuild.
1982         * features/rs6000/powerpc-vsx64l.c: Rebuild.
1983         * features/rs6000/rs6000.c: Rebuild.
1984         * features/s390-linux32.c: Rebuild.
1985         * features/s390-linux32v1.c: Rebuild.
1986         * features/s390-linux32v2.c: Rebuild.
1987         * features/s390-linux64.c: Rebuild.
1988         * features/s390-linux64v1.c: Rebuild.
1989         * features/s390-linux64v2.c: Rebuild.
1990         * features/s390x-linux64.c: Rebuild.
1991         * features/s390x-linux64v1.c: Rebuild.
1992         * features/s390x-linux64v2.c: Rebuild.
1993         * features/tic6x-c62x-linux.c: Rebuild.
1994         * features/tic6x-c62x.c: Rebuild.
1995         * features/tic6x-c64x-linux.c: Rebuild.
1996         * features/tic6x-c64x.c: Rebuild.
1997         * features/tic6x-c64xp-linux.c: Rebuild.
1998         * features/tic6x-c64xp.c: Rebuild.
1999
2000 2012-07-27  Tom Tromey  <tromey@redhat.com>
2001
2002         * c-exp.y (classify_name): Avoid assignment in condition.
2003
2004 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2005
2006         * amd64-windows-tdep.c: Include "frame.h".
2007         (amd64_windows_skip_trampoline_code): New function.
2008         (amd64_windows_init_abi): Add trampoline registration.
2009
2010 2012-07-27  Yao Qi  <yao@codesourcery.com>
2011
2012         * tracepoint.c (cur_traceframe_number): Remove.
2013         (set_tfile_traceframe): Remove.
2014         (tfile_trace_find, tfile_fetch_registers): Update callers.
2015         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2016         (tfile_open, tfile_trace_find): Likewise.
2017
2018 2012-07-27  Yao Qi  <yao@codesourcery.com>
2019
2020         * thread.c (switch_to_thread): Don't call registers_changed.
2021
2022 2012-07-26  Tom Tromey  <tromey@redhat.com>
2023
2024         * Makefile.in (SFILES): Remove objc-exp.y.
2025         (YYFILES): Remove objc-exp.c.
2026         (YYOBJ): Remove objc-exp.o.
2027         (local-maintainer-clean): Don't mention objc-exp.c.
2028         * c-exp.y: Include objc-lang.h.
2029         (%union) <class>: New field.
2030         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2031         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2032         Objective C productions.
2033         (msglist, msgarglist, msgarg): New productions.
2034         (array_mod, func_mod, operator): Clone productions for
2035         OBJC_LBRAC.
2036         (parse_string_or_char): Handle '@' strings.
2037         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2038         (classify_name): Check la_name_of_this.  Recognize ObjC class
2039         names.
2040         * objc-exp.y: Remove.
2041         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2042         * objc-lang.h (objc_parse, objc_error): Don't declare.
2043
2044 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2045
2046         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2047
2048 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2049
2050         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2051         and decrement.
2052
2053 2012-07-26  Tom Tromey  <tromey@redhat.com>
2054
2055         * copying.c: Rebuild.
2056         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2057         'no_class'.
2058
2059 2012-07-26  Tom Tromey  <tromey@redhat.com>
2060
2061         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2062         immediate_quit.
2063         (print_objfile_statistics): Likewise.
2064         (maintenance_print_symbols): Likewise.
2065         (maintenance_print_msymbols): Likewise.
2066         (maintenance_print_objfiles): Likewise.
2067         * psymtab.c (print_partial_symbols): Call QUIT.
2068         (maintenance_print_psymbols): Likewise.  Don't modify
2069         immediate_quit.
2070         * copying.c (show_copying_command): Don't modify immediate_quit.
2071         (show_warranty_command): Likewise.
2072         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2073
2074 2012-07-26  Keith Seitz  <keiths@redhat.com>
2075
2076         * linespec.c (linespec_lexer_lex_number): The input
2077         is also a valid number if the next character is a comma
2078         or colon.
2079
2080 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2081
2082         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2083         configure options.
2084
2085 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2086
2087         * machoread.c: Include gdb_bfd.h.
2088
2089 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2090
2091         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2092         offset.
2093
2094 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2095
2096         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2097         SIZE to size_t.
2098         (dwarf2_evaluate_loc_desc): Likewise.
2099         (dwarf2_loc_desc_needs_frame): Likewise.
2100         (locexpr_describe_location_1): Likewise.
2101         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2102         size_t.
2103         (struct dwarf2_loclist_baton): Likewise.
2104         * dwarf2read.c (struct dwarf_block): Likewise.
2105         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2106         (decode_locdesc): Expand SIZE and I to size_t.
2107
2108 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2109
2110         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2111
2112 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2113
2114         * doublest.c (convert_doublest_to_floatformat): If the exponent
2115         is too small, treat the value as zero.  If the exponent is too
2116         large, treat the value as infinity.
2117
2118 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2119
2120         * configure.ac: Add --enable-lmcheck configure option.
2121         * configure: Regenerate.
2122
2123 2012-07-25  Tom Tromey  <tromey@redhat.com>
2124
2125         * NEWS: Mention maint info bfds.
2126         * gdb_bfd.c (all_bfds): New global.
2127         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2128         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2129         New functions.
2130
2131 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2132
2133         * configure.tgt: Add v850*-*-rtems*.
2134
2135 2012-07-25  Tom Tromey  <tromey@redhat.com>
2136
2137         * macrotab.c (macro_bcache_str): Remove cast.
2138
2139 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2140
2141         * linespec.c (linespec_lexer_lex_number): Update comments,
2142         change the return and add check to make sure the input is
2143         the decimal numbers.
2144         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2145         false, call linespec_lexer_lex_string.
2146
2147 2012-07-24  Tom Tromey  <tromey@redhat.com>
2148
2149         * symfile.c (symbol_file_add): Don't open BFD twice.
2150
2151 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2152
2153         * breakpoint.c (create_breakpoint): Store condition for pending
2154         breakpoints.
2155
2156 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2157
2158         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2159         (m68k_return_value): Handle complex types like structures.
2160         (m68k_svr4_return_value): Likewise.
2161
2162 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2163
2164         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2165         parameters to bfd_get_section_name.
2166
2167 2012-07-24  Yao Qi  <yao@codesourcery.com>
2168
2169         * cli/cli-setshow.c: Handle case 'var_uinteger'
2170         and 'var_zuninteger' together.  Handle case 'var_integer' and
2171         'var_zinteger' together.
2172
2173 2012-07-23  Keith Seitz  <keiths@redhat.com>
2174
2175         * linespec.c (convert_linespec_to_sal): Don't add
2176         any symbols to the result vector if symbol_to_sal
2177         returns zero.
2178
2179 2012-07-23  Keith Seitz  <keiths@redhat.com>
2180
2181         * linespec.c (decode_objc): Record the function name
2182         in the linespec.
2183
2184 2012-07-23  Tom Tromey  <tromey@redhat.com>
2185
2186         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2187         counting.
2188         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2189         (map_vmap): Acquire a reference to the BFD.
2190
2191 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2192
2193         * p-valprint.c (pascal_object_print_value): Replace potentially
2194         unsafe alloca with xmalloc/xfree.
2195         * valops.c (search_struct_method): Likewise.
2196
2197 2012-07-23  Tom Tromey  <tromey@redhat.com>
2198
2199         * solib-svr4.c (enable_break): Update.
2200         * bfd-target.h (target_bfd_reopen): Update documentation.
2201
2202 2012-07-23  Tom Tromey  <tromey@redhat.com>
2203
2204         * symfile.c (separate_debug_file_exists): Update.
2205         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2206         (reread_symbols): Update.
2207         * elfread.c (build_id_verify): Update.
2208         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2209         bfd_open_maybe_remote.
2210
2211 2012-07-23  Tom Tromey  <tromey@redhat.com>
2212
2213         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2214
2215 2012-07-23  Tom Tromey  <tromey@redhat.com>
2216
2217         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2218         and 'abfd'.
2219         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2220         and 'abfd'.
2221         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2222         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2223         'abfd'.
2224         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2225         * objfiles.c (allocate_objfile): Acquire a new reference.
2226         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2227         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2228         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2229         a cleanup for 'nbfd'.
2230         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2231         for 'nbfd'.
2232         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2233         make a cleanup for 'abfd'.
2234         (symbol_file_add): Make a BFD cleanup.
2235
2236 2012-07-23  Tom Tromey  <tromey@redhat.com>
2237
2238         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2239         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2240         * corelow.c (core_open): Use gdb_bfd_fopen.
2241         * dsrec.c (load_srec): Use gdb_bfd_openr.
2242         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2243         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2244         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2245         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2246         (gdb_bfd_fdopenr): New functions.
2247         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2248         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2249         (gdb_bfd_fdopenr): Declare.
2250         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2251         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2252         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2253         gdb_bfd_openr_next_archived_file.
2254         (macho_check_dsym): Use gdb_bfd_openr.
2255         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2256         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2257         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2258         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2259         gdb_bfd_openr.
2260         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2261         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2262         gdb_bfd_openr_next_archived_file.
2263         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2264         Use gdb_bfd_openr.
2265         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2266         gdb_bfd_openr.
2267         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2268         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2269         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2270         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2271         (symfile_bfd_open): Use gdb_bfd_fopen.
2272         (generic_load): Use gdb_bfd_openr.
2273         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2274
2275 2012-07-23  Tom Tromey  <tromey@redhat.com>
2276
2277         * bfd-target.c (target_bfd_reopen): Update.
2278         * cli/cli-dump.c (bfd_openr_with_cleanup)
2279         (bfd_openw_with_cleanup): Update.
2280         * corelow.c (core_open): Update.
2281         * dsrec.c (load_srec): Update.
2282         * exec.c (exec_file_attach): Update.
2283         * gcore.c (create_gcore_bfd): Update.
2284         * gdb_bfd.c (gdb_bfd_ref): Return void.
2285         (gdb_bfd_open): Update.
2286         * gdb_bfd.h (gdb_bfd_ref): Return void.
2287         Update comments.
2288         * jit.c (jit_bfd_try_read_symtab): Update.
2289         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2290         * machoread.c (macho_symfile_read_all_oso): Update.
2291         (macho_check_dsym): Update.
2292         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2293         * remote-m32r-sdi.c (m32r_load): Update.
2294         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2295         * rs6000-nat.c (add_vmap): Update.
2296         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2297         Update.
2298         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2299         * solib-spu.c (spu_bfd_open): Update.
2300         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2301         * spu-linux-nat.c (spu_bfd_open): Update.
2302         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2303         (generic_load): Update.
2304         * windows-nat.c (windows_make_so): Update.
2305
2306 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2307
2308         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2309
2310 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2311
2312         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2313         SIGTRAMP_FRAME unwinding.
2314
2315 2012-07-20  Doug Evans  <dje@google.com>
2316
2317         * NEWS: Document new options "set/show use-deprecated-index-sections",
2318         and delete reference to --use-deprecated-index-sections.
2319         * symfile.h (use_deprecated_index_sections): Delete.
2320         * dwarf2read.c (use_deprecated_index_sections): Make static.
2321         (read_index_from_section): Update wording of how to load
2322         deprecated index sections.
2323         (_initialize_dwarf2_read): New options
2324         "set/show use-deprecated-index-sections".
2325         * main.c (captured_main): Delete --use-deprecated-index-sections.
2326
2327 2012-07-20  Pedro Alves  <palves@redhat.com>
2328
2329         PR threads/11692
2330         PR gdb/12203
2331
2332         * infrun.c (handle_inferior_event) <new thread>: Don't special
2333         case minus_one_ptid.
2334         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2335         * linux-thread-db.c (thread_get_info_callback): Don't return early
2336         if the thread is zombie.
2337         (thread_from_lwp): Change return type to void.  Rewrite stale
2338         comment.
2339         (attach_thread): Don't return early if the thread is zombie,
2340         instead set its "dying" flag.
2341         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2342         (find_new_threads_callback): Don't return early if the thread is
2343         zombie.
2344
2345 2012-07-20  Pedro Alves  <palves@redhat.com>
2346
2347         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2348         * target.c (target_wait): Likewise.
2349         (str_comma_list_concat_elem, do_option, target_options_to_string):
2350         New functions.
2351         * target.h (target_options_to_string): Declare.
2352
2353 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2354             Tom Tromey  <tromey@redhat.com>
2355
2356         * dwarf2read.c (dwarf_decode_macros)
2357         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2358         DW_MACRO_GNU_transparent_include_alt>: New cases.
2359         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2360         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2361
2362 2012-07-20  Tom Tromey  <tromey@redhat.com>
2363
2364         * dwarf2read.c (try_open_dwo_file): Don't call
2365         gdb_bfd_stash_filename.
2366
2367 2012-07-20  Pedro Alves  <palves@redhat.com>
2368
2369         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2370         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2371         (i386_process_record): Tweak description comments.
2372
2373 2012-07-20  Pedro Alves  <palves@redhat.com>
2374
2375         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2376         (i386_process_record): Use record_read_memory.
2377         * record.c (record_read_memory): New function.
2378         (record_arch_list_add_mem, record_exec_insn): Use
2379         record_read_memory.
2380         * record.h (record_read_memory): Declare.
2381
2382 2012-07-20  Yao Qi  <yao@codesourcery.com>
2383
2384         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2385         NULL for xfree.
2386
2387 2012-07-19  Pedro Alves  <palves@redhat.com>
2388
2389         * record.c (record_resume): Ask the target beneath to report all
2390         signals.
2391
2392 2012-07-19  Doug Evans  <dje@google.com>
2393
2394         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2395         there's no section at address zero.
2396         (dwarf2_record_block_ranges): Ditto.
2397
2398 2012-07-19  Yao Qi  <yao@codesourcery.com>
2399
2400         * command.h, remote.c: Fix a typo in comment.
2401
2402 2012-07-19  Tom Tromey  <tromey@redhat.com>
2403
2404         PR exp/13206:
2405         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2406         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2407         OP_DECLTYPE>: New cases.
2408         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2409         (type_exp): Add new productions.
2410         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2411         and decltype.
2412         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2413         New case.
2414         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2415         OP_DECLTYPE>: New case.
2416         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2417         New case.
2418         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2419         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2420
2421 2012-07-19  Tom Tromey  <tromey@redhat.com>
2422
2423         * c-exp.y (enum token_flags): New.
2424         (struct token) <cxx_only>: Remove.
2425         <flags>: New field.
2426         (tokentab3, tokentab2, ident_tokens): Update.
2427         (lex_one_token): Update.  Handle FLAG_SHADOW.
2428
2429 2012-07-19  Tom Tromey  <tromey@redhat.com>
2430
2431         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2432         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2433         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2434         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2435         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2436         type_exp production where appropriate.
2437         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2438         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2439         <UNOP_MEMVAL_TYPE>: New case.
2440         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2441         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2442         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2443         <UNOP_MEMVAL_TYPE>: New case.
2444         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2445         UNOP_REINTERPRET_CAST>: Update.
2446         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2447         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2448         UNOP_REINTERPRET_CAST>: Update.
2449         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2450         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2451         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2452         constants.
2453
2454 2012-07-19  Yao Qi  <yao@codesourcery.com>
2455             Jan Kratochvil <jan.kratochvil@redhat.com>
2456
2457         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2458         and case 'var_optional_filename' together.
2459         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2460         instead of add_setshow_optional_filename_cmd for setshow command
2461         'args'.  Set completer for 'set args'.
2462
2463 2012-07-18  Doug Evans  <dje@google.com>
2464
2465         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2466         * common/gdb_vecs.c: New file, contents from utils.c.
2467         * common/host-defs.h: New file, contents from defs.h.
2468         * utils.h: New file, contents from defs.h.
2469         * defs.h: Move all declarations of objects defined in utils.c
2470         to utils.h (except QUIT() and related).
2471         #include "utils.h", "host-defs.h".
2472         * probe.h (probe_p): Move here from gdb_vecs.h.
2473         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2474         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2475         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2476         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2477         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2478         (COMMON_OBS): Add gdb_vecs.o.
2479         (gdb_vecs.o): New rule.
2480
2481 2012-07-18  Keith Seitz  <keiths@redhat.com>
2482
2483         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2484         parameter.  If non-zero, use SYMNAME as the canonical name
2485         for the SaL.
2486         Update all callers.
2487         (convert_linespec_to_sals): Use add_sal_to_sals for
2488         expressions, too.
2489         (decode_line_full): No need to "fill in missing canonical names"
2490         anymore. Simply make cleanups for the allocated names.
2491
2492 2012-07-18  Keith Seitz  <keiths@redhat.com>
2493
2494         * linespec.c (struct linespec): Constify expression,
2495         source_filename, function_name, and label_name.
2496         (symbol_not_found_error): Make all parameters const.
2497         (linespec_parser_delete): No need to check for NULL
2498         when using xfree. Cast const char * to char * for xfree.
2499
2500 2012-07-18  Keith Seitz  <keiths@redhat.com>
2501
2502         * breakpoint.c (invalid_thread_id_error): New function.
2503         (find_condition_and_thread): Use invalid_thread_id_error.
2504         (watch_command_1): Likewise.
2505
2506 2012-07-18  Tom Tromey  <tromey@redhat.com>
2507
2508         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2509         * contrib/cc-with-tweaks.sh: New file.
2510
2511 2012-07-18  Tom Tromey  <tromey@redhat.com>
2512
2513         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2514         (locate_dwz_sections): Recognize .gdb_index.
2515         (create_cus_from_index_list): New function.
2516         (create_cus_from_index): Use it.  Handle .dwz data.
2517         (read_index_from_section): New function, extracted from
2518         dwarf2_read_index.
2519         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2520         if needed.
2521
2522 2012-07-18  Tom Tromey  <tromey@redhat.com>
2523
2524         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2525         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2526         <is_dwz>: New field.
2527         (struct dwz_file): New.
2528         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2529         (locate_dwz_sections, dwarf2_get_dwz_file)
2530         (get_abbrev_section_for_cu): New functions.
2531         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2532         (read_and_check_type_unit_head): Add abbrev_section argument.
2533         (create_debug_types_hash_table): Update.
2534         (init_cutu_and_read_dies): Use proper abbrev section.
2535         (init_cutu_and_read_dies_no_follow): Likewise.
2536         (set_partial_user): Do nothing if PST==NULL.
2537         (read_comp_units_from_section): New function.
2538         (create_all_comp_units): Use it.
2539         (scan_partial_symbols, partial_die_parent_scope): Update.
2540         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2541         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2542         (find_partial_die): Add offset_in_dwz argument.  Update.
2543         (guess_partial_die_structure_name, fixup_partial_die): Update.
2544         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2545         DW_FORM_GNU_strp_alt.
2546         (read_indirect_string_from_dwz): New function.
2547         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2548         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2549         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2550         (follow_die_offset): Add offset_in_dwz argument.
2551         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2552         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2553         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2554         Handle new macro forms.
2555         (dwarf_decode_macros): Update.
2556         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2557         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2558         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2559         (create_debug_types_hash_table): Use correct abbrev section.
2560         (get_debug_line_section): New function.
2561         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2562         (process_full_comp_unit): Pass 'required' argument to
2563         end_symtab_get_static_block.
2564         * buildsym.h (end_symtab_get_static_block): Update.
2565         * buildsym.c (end_symtab_get_static_block): Add 'required'
2566         argument.
2567         (end_symtab, end_expandable_symtab): Update.
2568
2569 2012-07-18  Tom Tromey  <tromey@redhat.com>
2570
2571         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2572         (pagesize): Remove.
2573         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2574         (zlib_decompress_section): Remove.
2575         (dwarf2_read_section): Use gdb_bfd_map_section.
2576         (munmap_section_buffer): Remove.
2577         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2578         munmap_section_buffer.
2579         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2580         (struct gdb_bfd_section_data): New.
2581         (free_one_bfd_section): New function.
2582         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2583         (get_section_descriptor, zlib_decompress_section)
2584         (gdb_bfd_map_section): New functions.
2585         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2586
2587 2012-07-18  Tom Tromey  <tromey@redhat.com>
2588
2589         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2590
2591 2012-07-18  Tom Tromey  <tromey@redhat.com>
2592
2593         * gdb_bfd.c (struct gdb_bfd_data): New.
2594         (gdb_bfd_cache): New global.
2595         (struct gdb_bfd_cache_search): New.
2596         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2597         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2598         * gdb_bfd.h (gdb_bfd_open): Declare.
2599
2600 2012-07-18  Tom Tromey  <tromey@redhat.com>
2601
2602         * utils.c (make_cleanup_bfd_unref): Rename from
2603         make_cleanup_bfd_close.
2604         * defs.h (make_cleanup_bfd_unref): Rename from
2605         make_cleanup_bfd_close.
2606         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2607         (bfd_openw_with_cleanup): Update.
2608         * corelow.c (core_open): Update.
2609         * dsrec.c (load_srec): Update.
2610         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2611         * remote-m32r-sdi.c (m32r_load): Update.
2612         * remote-mips.c (mips_load_srec): Update.
2613         (pmon_load_fast): Update.
2614         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2615         Update.
2616         (darwin_bfd_open): Update.
2617         * solib.c (solib_bfd_fopen): Update.
2618         * symfile-mem.c (symbol_file_add_from_memory): Update.
2619         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2620         (symfile_bfd_open): Update.
2621         (generic_load): Update.
2622
2623 2012-07-18  Tom Tromey  <tromey@redhat.com>
2624
2625         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2626         (pmon_load_fast): Likewise.
2627         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2628         (m32r_upload_command): Likewise.
2629         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2630         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2631         Use make_cleanup_bfd_close.
2632
2633 2012-07-18  Tom Tromey  <tromey@redhat.com>
2634
2635         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2636         gdb_bfd_stash_filename.
2637         (load_command): Open the new BFD before freeing the old.
2638         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2639         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2640         Call gdb_bfd_stash_filename.
2641         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2642         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2643         gdb_bfd_stash_filename.
2644         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2645         Free found_pathname.
2646         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2647         gdb_bfd_stash_filename.
2648         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2649         * machoread.c (macho_add_oso_symfile): Call
2650         gdb_bfd_stash_filename.
2651         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2652         gdb_bfd_stash_filename.
2653         (macho_check_dsym): Don't copy filename.  Call
2654         gdb_bfd_stash_filename.
2655         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2656         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2657         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2658         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2659         * exec.c (exec_close): Don't free the BFD's filename.
2660         (exec_file_attach): Don't copy the filename.  Call
2661         gdb_bfd_stash_filename.
2662         * corelow.c (core_close): Don't free the BFD's filename.
2663         (core_open): Call gdb_bfd_stash_filename.
2664         * corefile.c (reopen_exec_file): Remove #if 0 code.
2665         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2666         pathname.
2667         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2668
2669 2012-07-18  Tom Tromey  <tromey@redhat.com>
2670
2671         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2672         gdb_bfd_unref.
2673         (free_dwo_file): Use gdb_bfd_unref.
2674         * cli/cli-dump.c: Include gdb_bfd.h.
2675         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2676         (bfd_openr_with_cleanup): Likewise.
2677         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2678         gdb_bfd_unref.
2679         * utils.c: Include gdb_bfd.h.
2680         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2681         * symfile.c: Include gdb_bfd.h.
2682         (separate_debug_file_exists): Use gdb_bfd_unref.
2683         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2684         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2685         (generic_load): Use gdb_bfd_ref.
2686         (reread_symbols): Use gdb_bfd_unref.
2687         * symfile-mem.c: Include gdb_bfd.h.
2688         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2689         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2690         * solib.c: Include gdb_bfd.h.
2691         (solib_bfd_fopen): Use gdb_bfd_ref.
2692         (solib_bfd_open): Use gdb_bfd_unref.
2693         (free_so_symbols): Use gdb_bfd_unref.
2694         (reload_shared_libraries_1): Use gdb_bfd_unref.
2695         * solib-spu.c: Include gdb_bfd.h.
2696         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2697         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2698         gdb_bfd_unref.
2699         * solib-frv.c: Include gdb_bfd.h.
2700         (enable_break2): Use gdb_bfd_unref.
2701         * solib-dsbt.c: Include gdb_bfd.h.
2702         (enable_break2): Use gdb_bfd_unref.
2703         * solib-darwin.c: Include gdb_bfd.h.
2704         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2705         gdb_bfd_unref.
2706         (darwin_bfd_open): Use gdb_bfd_unref.
2707         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2708         * remote-mips.c: Include gdb_bfd.h.
2709         (mips_load_srec): Use gdb_bfd_ref.
2710         (pmon_load_fast): Use gdb_bfd_ref.
2711         * remote-m32r-sdi.c: Include gdb_bfd.h.
2712         (m32r_load): Use gdb_bfd_ref.
2713         * record.c: Include gdb_bfd.h.
2714         (record_save_cleanups): Use gdb_bfd_unref.
2715         (cmd_record_save): Use gdb_bfd_unref.
2716         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2717         gdb_bfd_unref.
2718         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2719         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2720         * objfiles.c: Include gdb_bfd.h.
2721         (free_objfile): Use gdb_bfd_unref.
2722         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2723         gdb_bfd.c.
2724         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2725         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2726         (macho_check_dsym): Likewise.
2727         * m32r-rom.c: Include gdb_bfd.h.
2728         (m32r_load): Use gdb_bfd_ref.
2729         (m32r_upload_command): Use gdb_bfd_ref.
2730         * jit.c: Include gdb_bfd.h.
2731         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2732         * gdb_bfd.h: New file.
2733         * gdb_bfd.c: New file.
2734         * gcore.c: Include gdb_bfd.h.
2735         (create_gcore_bfd): Use gdb_bfd_ref.
2736         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2737         (gcore_command): Use gdb_bfd_unref.
2738         * exec.c: Include gdb_bfd.h.
2739         (exec_close): Use gdb_bfd_unref.
2740         (exec_close_1): Use gdb_bfd_unref.
2741         (exec_file_attach): Use gdb_bfd_ref.
2742         * elfread.c: Include gdb_bfd.h.
2743         (build_id_verify): Use gdb_bfd_unref.
2744         * dsrec.c: Include gdb_bfd.h.
2745         (load_srec): Use gdb_bfd_ref.
2746         * corelow.c: Include gdb_bfd.h.
2747         (core_close): Use gdb_bfd_unref.
2748         (core_open): Use gdb_bfd_ref.
2749         * bfd-target.c: Include gdb_bfd.h.
2750         (target_bfd_xclose): Use gdb_bfd_unref.
2751         (target_bfd_reopen): Use gdb_bfd_ref.
2752         * Makefile.in (SFILES): Add gdb_bfd.c.
2753         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2754         (COMMON_OBS): Add gdb_bfd.o.
2755
2756 2012-07-18  Keith Seitz  <keiths@redhat.com>
2757
2758         * breakpoint.c (find_condition_and_thread): Initialize
2759         TASK and REST.
2760         (create_breakpiont): find_condition_and_thread will now
2761         initialize COND_STRING, THREAD, and REST (and TASK).
2762         (addr_string_to_sals): Likewise.
2763
2764 2012-07-18  Pedro Alves  <palves@redhat.com>
2765
2766         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2767         Pull the single step breakpoints out of the target.
2768
2769 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2770
2771         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2772         * stap-probe.c (compile_probe_arg): Likewise.
2773
2774 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2775
2776         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2777         (elf_compile_to_ax): Likewise.
2778         * infrun.c (insert_exception_resume_from_probe): Likewise.
2779         (check_exception_resume): Remove `objfile' variable.
2780         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2781         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2782         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2783         (compare_entries): Rename to...
2784         (compare_probes): ...this.  Adjust function to work with
2785         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2786         respectively.
2787         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2788         `VEC (probe_p) *'.
2789         (print_ui_out_info): Adjust argument to be `struct probe *'.
2790         (info_probes_for_ops): Adjust internal computations to use
2791         `VEC (probe_p) *'.
2792         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2793         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2794         gen_info_probes_table_values>: Remove `objfile' argument.
2795         (struct probe) <objfile>: New field.
2796         (find_probe_by_pc): Remove `objfile' argument.
2797         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2798         (stap_get_probe_argument_count): Likewise.
2799         (stap_get_arg): Likewise.
2800         (stap_evaluate_probe_argument): Likewise.
2801         (stap_compile_to_ax): Likewise.
2802         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2803         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2804         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2805         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2806         sym_compile_to_ax>: Likewise.
2807
2808 2012-07-18  Terry Guo  <terry.guo@arm.com>
2809
2810         PR 14329
2811         * defs.h (GDB_MI_MSG_WIDTH): New.
2812         * ser_base (ser_base_read_error_fd): New function.
2813         (do_ser_base_readchar): Poll error file descriptor as well as
2814         standard output.
2815         (generic_readchar): Refactor error handling.
2816
2817 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2818
2819         * NEWS: Create a new section for the next release branch.
2820         Rename the section of the current branch, now that it has
2821         been cut.
2822
2823 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2824
2825         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2826         * version.in: Bump version to 7.5.50.20120718-cvs.
2827
2828 2012-07-17  Keith Seitz  <keiths@redhat.com>
2829
2830         * linespec.c (linespec_parse_line_offset): Make parameter
2831         const.
2832
2833 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2834
2835         PR 11914
2836         * f-valprint.c (info_common_command): New variable frame_id.
2837         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2838         * printcmd.c (print_variable_and_value): Extend function comment.
2839         Add comment for invalidated FRAME.
2840         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2841         FI form FRAME_ID after each print_frame_local_vars.
2842         (struct print_variable_and_value_data): Change frame to frame_id.
2843         (do_print_variable_and_value): New variable frame, initialize it from
2844         p->frame_id.  Add comment for invalidated FRAME.
2845         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2846         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2847         for invalidated FRAME.
2848
2849 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2850             Pedro Alves  <palves@redhat.com>
2851
2852         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2853         loop.
2854
2855 2012-07-16  Tom Tromey  <tromey@redhat.com>
2856
2857         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2858
2859 2012-07-15  Doug Evans  <dje@google.com>
2860
2861         * dwarf2read.c (stmt_list_hash): New struct.
2862         (type_unit_group): Embed "per_cu" member, remove pointer.
2863         New union member "t", move member "tus" into it, all uses updated.
2864         New member "hash", replaces member "line_offset, all uses updated.
2865         (quick_file_names): Replace member "offset" with "hash", all uses
2866         updated.
2867         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2868         (hash_file_name_entry, eq_file_name_entry): Call them.
2869         (hash_type_unit_group, eq_type_unit_group): Ditto.
2870         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2871         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2872         (dw2_get_file_names): Update.
2873         (create_type_unit_group): Replace "per_cu" arg with "cu".
2874         All callers updated.  Fix "quick" (.gdb_index) handling.
2875         (get_type_unit_group): Replace "per_cu" arg with "cu".
2876         All callers updated.
2877         (build_type_unit_groups): Don't reset tu_stats.
2878
2879         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2880         "tab_cur_size".  Change member "tab" to be a htab_t.
2881         (create_filename_seen_cache): Update.
2882         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2883         (filename_seen): Update.
2884
2885 2012-07-13  Doug Evans  <dje@google.com>
2886
2887         * symtab.c (filename_seen): Update comment.
2888
2889 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2890             Doug Evans  <dje@google.com>
2891
2892         * buildsym.c (end_symtab_1): Split it to ...
2893         (end_symtab_get_static_block): ... this ...
2894         (end_symtab_from_static_block): ... and this function.
2895         (end_symtab, end_expandable_symtab): Call them.
2896         * buildsym.h (end_symtab_get_static_block)
2897         (end_symtab_from_static_block): New declarations.
2898         * dwarf2read.c (process_full_comp_unit): New variable static_block.
2899         Set its valid CU ranges.
2900
2901 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2902
2903         * dwarf2loc.c (disassemble_dwarf_expression): Handle
2904         DW_OP_GNU_parameter_ref.
2905
2906 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2907
2908         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2909         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2910
2911 2012-07-13  Doug Evans  <dje@google.com>
2912
2913         * symtab.c (output_source_filename): Delete unnecessary forward decl.
2914         (filename_seen_cache): New struct.
2915         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2916         (create_filename_seen_cache): New function.
2917         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2918         (filename_seen): Delete arg "first".  New arg "cache".  All callers
2919         updated.
2920         (output_source_filename_data): New struct.
2921         (output_source_filename): Delete arg "first".  New arg "data".
2922         All callers updated.
2923         (sources_info): Delete local "first".  New locals "data", "cleanups".
2924         Rewrite to use filename_seen_cache.
2925         (add_partial_filename_data): Delete member "first".  New member
2926         "filename_seen_cache".  All uses updated.
2927         (make_source_files_completion_list): Rewrite to use
2928         filename_seen_cache.
2929
2930 2012-07-12  Doug Evans  <dje@google.com>
2931
2932         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2933
2934 2012-07-10  Doug Evans  <dje@google.com>
2935
2936         PR gdb/13498
2937         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2938         all_type_unit_groups, type_unit_groups, tu_stats.
2939         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2940         All uses updated.  Add type_unit_group to union "s".
2941         (type_unit_group): New struct.
2942         (IS_TYPE_UNIT_GROUP): New macro.
2943         (abbrev_table): Delete unused member "section".
2944         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2945         (dw2_get_cu): Assert not used with type_unit_group.
2946         (dw2_get_primary_cu): New function.
2947         (dw2_build_type_unit_groups_reader): New function.
2948         (dw2_build_type_unit_groups): New function.
2949         (dw2_get_file_names): Assert not called on type units.
2950         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2951         Redo loop to iterate over type unit groups instead of type units.
2952         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2953         (read_abbrev_offset): New function.
2954         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
2955         updated.
2956         (create_partial_symtab): New function.
2957         (process_psymtab_comp_unit_reader): Assert not used with type units.
2958         Call create_partial_symtab.
2959         (process_psymtab_type_unit): Delete.
2960         (hash_type_unit_group, eq_type_unit_group): New functions.
2961         (allocate_type_unit_groups_table): New function.
2962         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2963         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2964         (create_type_unit_group, get_type_unit_group): New functions.
2965         (tu_abbrev_offset): New struct.
2966         (sort_tu_by_abbrev_offset): New function.
2967         (add_type_unit_group_to_table): New function.
2968         (build_type_unit_groups): New function.
2969         (build_type_psymtabs_reader): New function.
2970         (build_type_psymtab_dependencies): New function.
2971         (build_type_psymtabs): Rewrite.
2972         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2973         is seen in a type unit.
2974         (process_queue): Move symtab expansion debugging printfs here.
2975         Call process_full_type_unit for type units.
2976         (compute_symtab_includes): Assert not called for type units.
2977         (process_cu_includes): Don't call compute_symtab_includes for
2978         type units.
2979         (process_full_type_unit): New function.
2980         (process_imported_unit_die): Flag an error if called for type units.
2981         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
2982         updated.  Assert not called for type units.
2983         (read_file_scope): Call dwarf2_start_symtab.
2984         (setup_type_unit_groups): New function.
2985         (read_type_unit_scope): Rewrite.
2986         (abbrev_table_read_table): Initialize abbrev_table->offset.
2987         (abbrev_table_free_cleanup): New function.
2988         (dwarf2_start_symtab): New function.
2989         (load_full_type_unit): Assert not called for type unit groups.
2990         * buildsym.c (finish_block_internal): New arg "expandable".
2991         All callers updated.
2992         (start_symtab): Move most contents to ...
2993         (restart_symtab): ... here.  New function.
2994         (reset_symtab_globals): New function.
2995         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
2996         Call reset_symtab_globals.
2997         (end_symtab, end_expandable_symtab): New functions.
2998         (set_missing_symtab, augment_type_symtab): New functions.
2999         * buildsym.h (end_expandable_symtab): Declare.
3000         (augment_type_symtab, restart_symtab): Declare.
3001         * psympriv.h (struct partial_symtab): New member "anonymous".
3002         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3003         anonymous psymtabs.
3004         (read_psymtabs_with_filename): Ditto.
3005         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3006         (expand_symtabs_matching_via_partial): Ditto.
3007         (dump_psymtab): Update.
3008         * dictionary.c (dict_add_pending): New function.
3009         * dictionary.h (dict_add_pending): Declare.
3010
3011 2012-07-09  Doug Evans  <dje@google.com>
3012
3013         * buildsym.c (start_subfile): Remove unnecessary check for
3014         name == NULL.
3015
3016         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3017
3018         * dwarf2read.c (load_full_type_unit): Simplify.
3019
3020         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3021         to struct signatured_type **.  All uses updated.
3022
3023         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3024         All callers updated.
3025
3026 2012-07-09  Tom Tromey  <tromey@redhat.com>
3027
3028         * c-exp.y (check_parameter_typelist): New function.
3029         (parameter_typelist): Call it.
3030         * eval.c (make_params): Handle '(void)' case.
3031         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3032         '(void)' case.
3033
3034 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3035
3036         * common/linux-ptrace.c: Include gdb_assert.h.
3037         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3038         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3039         stdint.h.
3040         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3041         functions.
3042         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3043         * linux-nat.c (linux_child_post_attach)
3044         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3045
3046 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3047
3048         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3049         nptl <2.7 bug workaround for core files.
3050
3051 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3052
3053         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3054         clearing.
3055         (save_siginfo): Remove.
3056         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3057         call.
3058         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3059         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3060         * linux-nat.h (struct lwp_info): Remove field siginfo.
3061
3062 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3063
3064         Code cleanup for the next patch.
3065         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3066         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3067         call for it.
3068         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3069         (ia64_linux_stopped_data_address):
3070         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3071         the return value.
3072         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3073         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3074         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3075         call for it.
3076
3077 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3078
3079         PR 14321
3080         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3081         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3082
3083 2012-07-06  Tom Tromey  <tromey@redhat.com>
3084
3085         * c-exp.y (DOTDOTDOT): New token.
3086         (func_mod, exp): Use parameter_typelist.
3087         (parameter_typelist): New production.
3088         (tokentab3): Add "..." token.
3089         * eval.c (make_params): Handle varargs.
3090         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3091         varargs.
3092
3093 2012-07-06  Tom Tromey  <tromey@redhat.com>
3094
3095         PR exp/9608:
3096         * c-exp.y (%union) <tvec>: Change type.
3097         (func_mod): Now uses <tvec> type.
3098         (exp): Update for tvec change.
3099         (direct_abs_decl): Push the typelist.
3100         (func_mod): Return a typelist.
3101         (nonempty_typelist): Update for tvec change.
3102         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3103         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3104         * parse.c (pop_type_list): New function.
3105         (push_typelist): New function.
3106         (follow_types): Handle tp_function_with_arguments.
3107         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3108         (enum type_pieces) <tp_function_with_arguments>: New constant.
3109         (union type_stack_elt) <typelist_val>: New field.
3110         (push_typelist): Declare.
3111
3112 2012-07-06  Tom Tromey  <tromey@redhat.com>
3113
3114         * c-exp.y (%union) <type_stack>: New field.
3115         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3116         (ptr_operator_ts): New production.
3117         (ptype): Update.
3118         * parse.c (type_stack_reserve): New function.
3119         (check_type_stack_depth): Use it.
3120         (pop_type_stack, append_type_stack, push_type_stack)
3121         (get_type_stack, type_stack_cleanup): New functions.
3122         (follow_types): Handle tp_type_stack.
3123         (_initialize_parse): Simplify initialization.
3124         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3125         constant.
3126         (union type_stack_elt) <stack_val>: New field.
3127         (get_type_stack, append_type_stack, push_type_stack)
3128         (type_stack_cleanup): Declare.
3129
3130 2012-07-06  Tom Tromey  <tromey@redhat.com>
3131
3132         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3133         Remove.
3134         (struct type_stack): New.
3135         * parse.c (type_stack, type_stack_size, type_stack_depth):
3136         Remove.
3137         (type_stack): New global.
3138         (parse_exp_in_context, check_type_stack_depth)
3139         (insert_into_type_stack, insert_type, push_type, push_type_int)
3140         (insert_type_address_space, pop_type, pop_type_int)
3141         (_initialize_parse): Update.
3142
3143 2012-07-06  Tom Tromey  <tromey@redhat.com>
3144
3145         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3146         Remove %type.
3147
3148 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3149
3150         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3151
3152 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3153             Jan Kratochvil  <jan.kratochvil@redhat.com>
3154
3155         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3156         alloca with xmalloc/xfree.
3157
3158 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3159
3160         * MAINTAINERS (Write After Approval): Add myself to the list.
3161
3162 2012-07-05  Doug Evans  <dje@google.com>
3163
3164         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3165
3166 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3167
3168         * ax-gdb.c (cli/cli-utils.h): New include.
3169         (linespec.h): Ditto.
3170         (agent_eval_command_one): New function.
3171         (agent_command_1): Ditto.
3172         (agent_command): Call function agent_command_1.
3173         (agent_eval_command): Ditto.
3174         (_initialize_ax_gdb): Change help for "maint agent"
3175         and "maint agent-eval".
3176
3177 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3178
3179         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3180         * cli/cli-utils.c (check_for_argument): New function.
3181         * cli/cli-utils.h (check_for_argument): Ditto.
3182
3183 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3184
3185         * NEWS: Mention x32 ABI support.
3186
3187 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3188
3189         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3190         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3191
3192         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3193         and pc_regnum_from_eax to -1.  Update SP regnum from
3194         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3195         needed.
3196
3197         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3198         pc_regnum_from_eax.
3199
3200 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3201
3202         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3203         * dwarf2expr.h: Include gdbtypes.h.
3204         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3205         these forward declarations.
3206         (cu_offset, sect_offset): Move these ...
3207         * gdbtypes.h: Remove include dwarf2expr.h.
3208         (cu_offset, sect_offset): ... here.
3209
3210 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3211
3212         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3213         (amd64_linux_sigtramp_code): This.
3214         (amd64_x32_linux_sigtramp_code): New.
3215         (LINUX_SIGTRAMP_LEN): Updated.
3216         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3217
3218 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3219
3220         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3221
3222 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3223
3224         * config.in: Regenerate.
3225         * configure: Regenerate.
3226         * configure.ac: Remove check for gnu/libc-version.h.
3227         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3228         gnu/libc-version.h.
3229         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3230         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3231         inferior_has_bug.  Extend the comment.
3232
3233 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3234
3235         * linux-thread-db.c (inferior_has_bug): New function.
3236         (thread_db_find_new_threads_silently): Return boolean as checked by
3237         inferior_has_bug, describe it in the comments.
3238         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3239         earlier.  Abort the initialization if it returned non-zero.
3240         (thread_db_new_objfile): Exclude debug files.
3241         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3242         if UNTIL_NO_NEW,
3243
3244 2012-07-02  Doug Evans  <dje@google.com>
3245
3246         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3247         related to queue management.
3248
3249         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3250         instead of "debug dwarf2-die" in debugging printfs.
3251         (create_debug_info_hash_table_reader): Ditto.
3252         (create_debug_info_hash_table): Ditto.
3253         (init_dwo_file): Ditto.
3254         (init_cutu_and_read_dies): Add debugging printf.
3255         (init_cutu_and_read_dies_no_follow): Ditto.
3256         (process_psymtab_comp_unit_reader): Ditto.
3257
3258 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3259
3260         Add target-side support for dynamic printf.
3261         * NEWS: Mention the additional style.
3262         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3263         (struct bp_location): New field cmd_bytecode.
3264         * breakpoint.c: Include format.h.
3265         (disconnected_dprintf): New global.
3266         (parse_cmd_to_aexpr): New function.
3267         (build_target_command_list): New function.
3268         (insert_bp_location): Call it.
3269         (remove_breakpoints_pid): Skip dprintf breakpoints.
3270         (print_one_breakpoint_location): Ditto.
3271         (dprintf_style_agent): New global.
3272         (dprintf_style_enums): Add dprintf_style_agent.
3273         (update_dprintf_command_list): Add agent case.
3274         (agent_printf_command): New function.
3275         (_initialize_breakpoint): Add new commands.
3276         * common/ax.def (printf): New bytecode.
3277         * ax.h (ax_string): Declare.
3278         * ax-gdb.h (gen_printf): Declare.
3279         * ax-gdb.c: Include cli-utils.h, format.h.
3280         (gen_printf): New function.
3281         (maint_agent_print_command): New function.
3282         (_initialize_ax_gdb): Add maint agent-printf command.
3283         * ax-general.c (ax_string): New function.
3284         (ax_print): Add printf disassembly.
3285         * Makefile.in (SFILES): Add format.c
3286         (COMMON_OBS): Add format.o.
3287         * common/format.h: New file.
3288         * common/format.c: New file.
3289         * printcmd.c: Include format.h.
3290         (ui_printf): Call parse_format_string.
3291         * remote.c (remote_state): New field breakpoint_commands.
3292         (PACKET_BreakpointCommands): New enum.
3293         (remote_breakpoint_commands_feature): New function.
3294         (remote_protocol_features): Add new BreakpointCommands entry.
3295         (remote_can_run_breakpoint_commands): New function.
3296         (remote_add_target_side_commands): New function.
3297         (remote_insert_breakpoint): Call it.
3298         (remote_insert_hw_breakpoint): Ditto.
3299         (_initialize_remote): Add new packet configuration for
3300         target-side breakpoint commands.
3301         * target.h (struct target_ops): New field
3302         to_can_run_breakpoint_commands.
3303         (target_can_run_breakpoint_commands): New macro.
3304         * target.c (update_current_target): Handle
3305         to_can_run_breakpoint_commands.
3306
3307 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3308
3309         Execute -ix and -iex only after system and user gdbinit files.
3310         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3311         processing down after gdbinit files.
3312
3313 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3314
3315         Add fnmatch-gnu module.
3316         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3317         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3318         * gnulib/aclocal.m4: Regenerate.
3319         * gnulib/config.in: Regenerate.
3320         * gnulib/configure: Regenerate.
3321         * gnulib/import/dummy.c: Remove.
3322         * gnulib/import/Makefile.am: Regenerate.
3323         * gnulib/import/Makefile.in: Likewise.
3324         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3325         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3326         * gnulib/import/alloca.c: New file.
3327         * gnulib/import/alloca.in.h: Likewise.
3328         * gnulib/import/config.charset: Likewise.
3329         * gnulib/import/fnmatch.c: Likewise.
3330         * gnulib/import/fnmatch.in.h: Likewise.
3331         * gnulib/import/fnmatch_loop.c: Likewise.
3332         * gnulib/import/localcharset.c: Likewise.
3333         * gnulib/import/localcharset.h: Likewise.
3334         * gnulib/import/m4/alloca.m4: Likewise.
3335         * gnulib/import/m4/codeset.m4: Likewise.
3336         * gnulib/import/m4/configmake.m4: Likewise.
3337         * gnulib/import/m4/fcntl-o.m4: Likewise.
3338         * gnulib/import/m4/fnmatch.m4: Likewise.
3339         * gnulib/import/m4/glibc21.m4: Likewise.
3340         * gnulib/import/m4/localcharset.m4: Likewise.
3341         * gnulib/import/m4/locale-fr.m4: Likewise.
3342         * gnulib/import/m4/locale-ja.m4: Likewise.
3343         * gnulib/import/m4/locale-zh.m4: Likewise.
3344         * gnulib/import/m4/mbrtowc.m4: Likewise.
3345         * gnulib/import/m4/mbsinit.m4: Likewise.
3346         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3347         * gnulib/import/m4/mbstate_t.m4: Likewise.
3348         * gnulib/import/m4/stdbool.m4: Likewise.
3349         * gnulib/import/m4/wchar_h.m4: Likewise.
3350         * gnulib/import/m4/wctype_h.m4: Likewise.
3351         * gnulib/import/m4/wint_t.m4: Likewise.
3352         * gnulib/import/mbrtowc.c: Likewise.
3353         * gnulib/import/mbsinit.c: Likewise.
3354         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3355         * gnulib/import/mbsrtowcs-state.c: Likewise.
3356         * gnulib/import/mbsrtowcs.c: Likewise.
3357         * gnulib/import/ref-add.sin: Likewise.
3358         * gnulib/import/ref-del.sin: Likewise.
3359         * gnulib/import/stdbool.in.h: Likewise.
3360         * gnulib/import/streq.h: Likewise.
3361         * gnulib/import/strnlen1.c: Likewise.
3362         * gnulib/import/strnlen1.h: Likewise.
3363         * gnulib/import/verify.h: Likewise.
3364         * gnulib/import/wchar.in.h: Likewise.
3365         * gnulib/import/wctype.in.h: Likewise.
3366
3367 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3368
3369         Support shell wildcards for 'set auto-load safe-path'.
3370         * auto-load.c: Include fnmatch.h.
3371         (filename_is_in_dir): Rename to ...
3372         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3373         it.  Update function comment.  Rename dir_len to pattern_len.  New
3374         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3375         messages.  Use gdb_filename_fnmatch.
3376         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3377         pattern.
3378         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3379         * defs.h (gdb_filename_fnmatch): New declaration.
3380         * utils.c: Include fnmatch.h.
3381         (gdb_filename_fnmatch): New function.
3382
3383 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3384
3385         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3386         `-probe' and `-probe-stap' options.
3387
3388 2012-07-01  Yao Qi  <yao@codesourcery.com>
3389
3390         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3391         always_inserted_off, and always_inserted_enums.
3392         Change always_inserted_mode's type to 'enum auto_boolean'.
3393         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3394         callers.
3395         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3396         of add_setshow_enum_cmd.
3397         * infrun.c: Remove can_use_displaced_stepping_auto,
3398         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3399         can_use_displaced_stepping_enum.
3400         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3401         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3402         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3403         add_setshow_enum_cmd.
3404
3405 2012-06-30  Doug Evans  <dje@google.com>
3406
3407         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3408         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3409         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3410
3411 2012-06-29  Doug Evans  <dje@google.com>
3412
3413         * linespec.c: #include "stack.h".
3414         (decode_line_with_current_source): Moved here from symtab.c and
3415         renamed from decode_line_spec.  All callers updated.
3416         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3417         renamed from decode_line_spec_1.  All callers updated.
3418         * linespec.h (decode_line_with_current_source): Move declaration here
3419         from symtab.h and renamed from decode_line_spec.
3420         (decode_line_with_last_displayed): Move declaration here from symtab.h
3421         and renamed from decode_line_spec_1.
3422         * macrocmd.c: #include "linespec.h".
3423         * symtab.c: Remove #include "linespec.h".
3424
3425 2012-06-28  Doug Evans  <dje@google.com>
3426
3427         * dwarf2read.c (get_cu_length): New function.
3428         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3429         (create_debug_types_hash_table): Ditto.
3430         (init_cutu_and_read_dies): Ditto.
3431         (init_cutu_and_read_dies_no_follow): Ditto.
3432
3433         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3434
3435         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3436         (struct abbrev_table): Define.
3437         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3438         abbrev_table.
3439         (init_cutu_and_read_dies): Update.
3440         (abbrev_table_alloc_abbrev): New function.  Replaces
3441         dwarf_alloc_abbrev.  All callers updated.
3442         (abbrev_table_add_abbrev): New function.
3443         (abbrev_table_lookup_abbrev): New function.  Replaces
3444         dwarf2_lookup_abbrev.  All callers updated.
3445         (abbrev_table_read_table): New function.  Contents moved here from
3446         dwarf2_read_abbrevs.
3447         (dwarf2_read_abbrevs): Call it.
3448         (abbrev_table_free): New function.
3449         (dwarf2_free_abbrev_table): Call it.
3450
3451 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3452
3453         * osdata.c (info_osdata_command): Filter out "Title" columns
3454         from non-MI uses.
3455         * common/linux-osdata.c (struct osdata_type): Add title field.
3456         (osdata_table): Add titles to each entry.
3457         (linux_command_xfer_osdata): Add a column for title data.
3458
3459 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3460
3461         Make logging work for MI.
3462         * NEWS: Mention it.
3463         * interps.h (interp_set_logging_ftype): New typedef.
3464         (struct interp_procs): New field set_logging_proc.
3465         (current_interp_set_logging): Declare.
3466         * interps.c (current_interp_set_logging): New function.
3467         * cli/cli-logging.c: Include interps.h.
3468         (set_logging_redirect): Call current_interp_set_logging.
3469         (pop_output_files): Ditto.
3470         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3471         * mi/mi-console.h (mi_console_set_raw): Declare.
3472         * mi/mi-console.c (mi_console_set_raw): New function.
3473         * mi/mi-interp.c (saved_raw_stdout): New global.
3474         (mi_set_logging): New function.
3475         (_initialize_mi_interp): Add it to interp procs.
3476
3477 2012-06-28  Doug Evans  <dje@google.com>
3478
3479         * symtab.c (lookup_symbol_aux_objfile): Use
3480         ALL_OBJFILE_PRIMARY_SYMTABS.
3481
3482         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3483
3484 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3485
3486         * common/buffer.c: Include inttypes.h and stdint.h.
3487         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3488
3489 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3490             Pedro Alves  <palves@redhat.com>
3491
3492         * gdbthread.h (ALL_THREADS): New macro.
3493         (thread_list): Declare.
3494         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3495         going, but instead fall through to the stepping handling.
3496         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3497         the passed in signal.  Adjust debug output.
3498         (resume_callback): Rename to ...
3499         (linux_nat_resume_callback): ... this.  Pass the thread's last
3500         stop signal, if in "pass" state.
3501         (linux_nat_resume): Adjust to rename.
3502         (stop_wait_callback): New assertion.  Don't respawn signals;
3503         instead let the LWP remain with SIGNALLED set.
3504         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3505         * remote.c (append_pending_thread_resumptions): New.
3506         (remote_vcont_resume): Call it.
3507         * target.h (target_resume): Extend comment.
3508
3509 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3510
3511         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3512
3513 2012-06-27  Doug Evans  <dje@google.com>
3514
3515         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3516         Delete have_addr_base, unused.  All uses updated.
3517         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3518         (dwarf2_get_pc_bounds): Add ranges_base.
3519         (dwarf2_record_block_ranges): Ditto.
3520
3521 2012-06-27  Tom Tromey  <tromey@redhat.com>
3522
3523         PR macros/7961:
3524         * varobj.c (varobj_create): Update.
3525         (varobj_set_value): Update.
3526         * tracepoint.c (validate_actionline): Update.
3527         (encode_actions_1): Update.
3528         * parse.c (parse_exp_1): Add 'pc' argument.
3529         (parse_exp_in_context): Add 'pc' argument.  Change how
3530         expression_context_pc is set.
3531         (parse_expression): Update.
3532         (parse_field_expression): Update.
3533         * expression.h (parse_exp_1): Update.
3534         * eval.c (parse_to_comma_and_eval): Update.
3535         * breakpoint.c (set_breakpoint_condition): Update.
3536         (update_watchpoint): Update.
3537         (init_breakpoint_sal): Update
3538         (find_condition_and_thread): Update.
3539         (watch_command_1): Update.
3540         (update_breakpoint_locations): Update.
3541         * ada-lang.c (ada_read_renaming_var_value): Update.
3542         (create_excep_cond_exprs): Update.
3543
3544 2012-06-27  Doug Evans  <dje@google.com>
3545
3546         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3547         type units.
3548
3549 2012-06-26  Doug Evans  <dje@google.com>
3550
3551         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3552         prototype.
3553         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3554         updated.
3555         (read_and_check_comp_unit_head): Ditto.
3556         (read_and_check_type_unit_head): Ditto.
3557
3558 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3559
3560         New attribute 'last' for gdb.Symtab_and_line.
3561         * NEWS (Python Scripting): Add entry about the new attribute.
3562         * python/py-symtab.c (salpy_get_last): New function which
3563         implements the get method for the 'last' attribute of
3564         gdb.Symtab_and_line.
3565         (sal_object_getset): Add entry for the 'last' attribute.
3566
3567 2012-06-26  Doug Evans  <dje@google.com>
3568
3569         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3570         (dwo_sections): Add macinfo, macro.
3571         (dwarf2_locate_dwo_sections): Watch for macro sections.
3572         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3573         All callers updated.  Handle DWO files.
3574
3575         * NEWS: Mention new options "set debug dwarf2-read" and
3576         "set debug symtab-create".
3577         * dwarf2read.c (dwarf2_read_debug): New static global.
3578         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3579         (process_queue): Ditto.
3580         (process_full_comp_unit): Ditto.
3581         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3582         * elfread.c (elf_symfile_read): Add debugging printf.
3583         * minsyms.c (install_minimal_symbols): Ditto.
3584         * psymtab.c (allocate_psymtab): Ditto.
3585         * symfile.c (allocate_symtab): Ditto.
3586         * symtab.c (symtab_create_debug): New global.
3587         (_initialize_symtab): Add new option "set debug symtab-create".
3588         * symtab.h (symtab_create_debug): Declare.
3589
3590         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3591         (lookup_dwo_type_unit): Ditto.
3592
3593 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3594             H.J. Lu  <hongjiu.lu@intel.com>
3595
3596         * amd64-linux-nat.c: Include <sys/user.h>.
3597         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3598         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3599         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3600
3601         * configure.ac: Check if the fs_base and gs_base members of
3602         `struct user_regs_struct' exist.
3603         * config.in: Regenerated.
3604         * configure: Likewise.
3605
3606 2012-06-25  Michael Eager  <eager@eagercon.com>
3607
3608         PR python/14291
3609         * python/python.c (gdbpy_write): Check for interrupted output.
3610
3611 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3612
3613         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3614         register as a stack alignment in ARM mode.
3615
3616 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3617
3618         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3619         * gnulib/config.in: Regenerate.
3620         * gnulib/configure: Likewise.
3621         * gnulib/import/m4/extensions.m4: Update it.
3622         * gnulib/import/m4/gnulib-common.m4: Likewise.
3623         * gnulib/import/m4/memmem.m4: Likewise.
3624         * gnulib/import/m4/mmap-anon.m4: Likewise.
3625         * gnulib/import/m4/multiarch.m4: Likewise.
3626         * gnulib/import/stdint.in.h: Likewise.
3627
3628 2012-06-24  Yao Qi  <yao@codesourcery.com>
3629
3630         * corefile.c (write_memory_with_notification): New.
3631         * gdbcore.h: Declare write_memory_with_notification.
3632         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3633         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3634         * valops.c (value_assign): Likewise.
3635         * python/py-inferior.c (infpy_write_memory): Call
3636         'write_memory_with_notification'.
3637
3638 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3639
3640         * cc-with-index.sh: Use also -ex "set auto-load no".
3641
3642 2012-06-23  Doug Evans  <dje@google.com>
3643
3644         PR 14125
3645         * NEWS: Document additions to .gdb_index.
3646         * dwarf2read.c: #include "gdb/gdb-index.h".
3647         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3648         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3649         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3650         (dwarf2_read_index): Recognize version 7.
3651         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3652         block_kind, domain): All callers updated.
3653         (dw2_find_symbol_file): Handle new index CU values.
3654         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3655         (add_index_entry): New args is_static, kind.  All callers updated.
3656         (offset_type_compare, uniquify_cu_indices): New functions
3657         (symbol_kind): New function.
3658         (write_psymtabs_to_index): Remove duplicate CU values.
3659         (write_psymtabs_to_index): Write .gdb_index version 7.
3660
3661 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3662
3663         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3664         * configure: Regenerate.
3665
3666 2012-06-20  Yao Qi  <yao@codesourcery.com>
3667
3668         * python/py-inferior.c: Update comments of infpy_read_memory
3669         and infpy_write_memory.
3670
3671 2012-06-19  Tom Tromey  <tromey@redhat.com>
3672
3673         PR exp/9514:
3674         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3675         (push_type_address_space): Remove.
3676         * parse.c (insert_into_type_stack): New function.
3677         (insert_type): Likewise.
3678         (insert_type_address_space): Rename from push_type_address_space.
3679         Insert tp_space_identifier.
3680         * c-exp.y (ptr_operator): New production.
3681         (abs_decl): Use ptr_operator.
3682         (space_identifier): Call insert_type_address_space.
3683         (ptype): Don't use const_or_volatile_or_space_identifier.
3684         (const_or_volatile_noopt): Call insert_type.
3685         (conversion_type_id, conversion_declarator): New productions.
3686         (operator): Use conversion_type_id.
3687
3688 2012-06-18  Doug Evans  <dje@google.com>
3689
3690         * symtab.h (minimal_symbol): New member created_by_gdb.
3691         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3692         created by gdb.
3693         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3694         (search_symbols): Call it instead of lookup_symbol.
3695         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3696
3697         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3698         Adjust address for DW_OP_GNU_addr_index.
3699         * dwarf2expr.h (dwarf_expr_context): Update comment.
3700         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3701         all callers updated.  Handle TLS vars described with
3702         DW_OP_GNU_const_index.
3703         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3704         and DW_OP_GNU_const_index.
3705         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3706
3707         * block.c (find_block_in_blockvector): Make explicit the fact that we
3708         ignore GLOBAL_BLOCK.
3709
3710 2012-06-18  Tom Tromey  <tromey@redhat.com>
3711
3712         * c-exp.y (operator): Remove trailing space after "delete" and
3713         "delete[]".
3714
3715 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3716             Jan Kratochvil  <jan.kratochvil@redhat.com>
3717
3718         Switch i386 and derived targets to ON_STACK.
3719         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3720         (amd64_dicos_init_abi): Remove its installment.
3721         * dicos-tdep.c (dicos_init_abi): Remove the
3722         set_gdbarch_call_dummy_location call.  Update the comment here.
3723         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3724         (i386_dicos_init_abi): Remove its installment.
3725         * i386-tdep.c (i386_push_dummy_code): New function.
3726         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3727         i386_push_dummy_code.
3728
3729 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3730
3731         Remove stale dummy frames.
3732         * breakpoint.c: Include dummy-frame.h.
3733         (longjmp_breakpoint_ops): New variable.
3734         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3735         bp_longjmp_call_dummy.
3736         (bpstat_what, bptype_string, print_one_breakpoint_location)
3737         (init_bp_location): Support bp_longjmp_call_dummy.
3738         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3739         (set_longjmp_breakpoint_for_call_dummy)
3740         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3741         functions.
3742         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3743         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3744         FIXME comment and extend the other comment for bp_call_dummy.
3745         (set_longjmp_breakpoint_for_call_dummy)
3746         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3747         * dummy-frame.c: Include gdbthread.h.
3748         (pop_dummy_frame_bpt): New function.
3749         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3750         (dummy_frame_discard): New function.
3751         (cleanup_dummy_frames): Update the comment about longjmps.
3752         * dummy-frame.h (dummy_frame_discard): New declaration.
3753         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3754         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3755         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3756         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3757         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3758         keep_going if IS_LONGJMP and there is no other reason to stop.
3759
3760 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3761
3762         * remote-sim.c (sim_command_completer): Initialize
3763         variable 'result'.
3764
3765 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3766
3767         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3768         * dwarf2loc.c (call_site_parameter_matches): Support
3769         CALL_SITE_PARAMETER_PARAM_OFFSET.
3770         (needs_dwarf_reg_entry_value): Push stub value.
3771         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3772         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3773         * gdbtypes.h (enum call_site_parameter_kind): New item
3774         CALL_SITE_PARAMETER_PARAM_OFFSET.
3775         (struct call_site.parameter.u): New field param_offset.
3776
3777 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3778
3779         Code cleanup: Generalize call_site.parameter key.
3780         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3781         variable dwarf_reg.  New variable kind_u.  Update parameters to
3782         push_dwarf_reg_entry_value.
3783         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3784         * dwarf2expr.h (enum call_site_parameter_kind)
3785         (union call_site_parameter_u): Forward declarations.
3786         (struct dwarf_expr_context_funcs): Update parameters and their
3787         description for push_dwarf_reg_entry_value.
3788         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3789         * dwarf2loc.c (call_site_parameter_matches): New function.
3790         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3791         description.  Use call_site_parameter_matches.
3792         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3793         Update parameters and their description.
3794         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3795         New variable kind_u.  Adjust the caller for updated parameters.
3796         (needs_dwarf_reg_entry_value): Update parameters.
3797         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3798         instead of attr.  Update for the changed fields of struct
3799         call_site_parameter.
3800         * gdbtypes.h: Include dwarf2expr.h.
3801         (enum call_site_parameter_kind): New.
3802         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3803         fb_offset into new union u.
3804
3805 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3806
3807         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3808         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3809         for x32.
3810
3811 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3812
3813         * amd64-linux-nat.c (compat_x32_clock_t): New.
3814         (compat_x32_siginfo_t): Likewise.
3815         (compat_x32_siginfo_from_siginfo): Likewise.
3816         (siginfo_from_compat_x32_siginfo): Likewise.
3817         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3818         and siginfo_from_compat_x32_siginfo for x32.
3819
3820 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3821
3822         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3823
3824 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3825
3826         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3827         instead of gdbarch_ptr_bit.
3828         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3829         (amd64_supply_native_gregset): Likewise.
3830         (amd64_collect_native_gregset): Likewise.
3831         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3832         (amd64_supply_xsave): Likewise.
3833         (amd64_collect_fxsave): Likewise.
3834         (amd64_collect_xsave): Likewise.
3835
3836 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3837
3838         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3839         (amd64_linux_read_description): Check DS segment register for
3840         x32 process.
3841
3842 2012-06-15  Tom Tromey  <tromey@redhat.com>
3843
3844         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3845         init_cutu_and_read_dies.
3846
3847 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3848
3849         * MAINTAINERS (Write After Approval): Add myself to the list.
3850
3851 2012-06-15  Tom Tromey  <tromey@redhat.com>
3852
3853         * valops.c (value_find_oload_method_list): Now static.
3854         * value.h (value_find_oload_method_list): Don't declare.
3855
3856 2012-06-15  Tom Tromey  <tromey@redhat.com>
3857
3858         * valops.c (find_overload_match): Use value_ind.
3859
3860 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
3861
3862         * infrun.c (handle_inferior_event): Correct indentation.
3863
3864 2012-06-14  Doug Evans  <dje@google.com>
3865
3866         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3867         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3868         All uses updated.
3869         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
3870         updated.  Handle DEBUG_LOC_START_LENGTH.
3871         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3872         (loclist_describe_location): Ditto.
3873
3874 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
3875
3876         PR backtrace/13866
3877         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3878         after hiding inline functions.
3879
3880 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3881
3882         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3883         _initialize_inf_ttrace.
3884
3885 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3886
3887         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3888         _initialize_hppa_hpux_nat.
3889
3890 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
3891
3892         * remote-sim.c (sim_command_completer): Change type of return
3893         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
3894
3895 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3896             Jan Kratochvil  <jan.kratochvil@redhat.com>
3897
3898         PR tdep/14222
3899         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3900         stack on a 16-byte boundary.
3901
3902 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
3903
3904         * jit.c (finalize_symtab): Set function's return type to 'void' by
3905         default.
3906
3907 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
3908             H.J. Lu  <hongjiu.lu@intel.com>
3909
3910         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3911         Move bits common to both the classic LP64 and the new x32 ILP32
3912         ABI here.
3913         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3914         (amd64_x32_linux_init_abi): New function.
3915         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3916         subtype.
3917
3918         * i386-tdep.h (i386_pseudo_register_name): New prototype.
3919         * i386-tdep.c (i386_pseudo_register_name): Make public.
3920         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3921         * amd64-tdep.c (amd64_dword_names): Add "eip".
3922         (amd64_x32_pseudo_register_type): New function
3923         (amd64_x32_init_abi): New function.
3924
3925 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3926
3927         PR build/14003
3928         * inferior.h (struct inferior_suspend_state): Comment out.
3929         (struct inferior): Comment out the field suspend.
3930         * infrun.c (struct infcall_suspend_state): Comment out the field
3931         inferior_suspend.
3932         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3933         out its assignment.
3934
3935 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3936
3937         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3938         * c-exp.y (classify_inner_name): Remove caller assumptions in the
3939         function comment.  Return ERROR for unresolved cases.  Implement
3940         returning proper NAME.
3941         (yylex): Accept also NAME from classify_inner_name.
3942         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3943         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
3944         LOC_TYPEDEF type.
3945         * cp-support.h (cp_lookup_nested_type): Update its declaration.
3946
3947 2012-06-13  Tom Tromey  <tromey@redhat.com>
3948
3949         * breakpoint.c (condition_completer): New function.
3950         (_initialize_breakpoint): Use it.
3951         * value.c (complete_internalvar): New function.
3952         * value.h (complete_internalvar): Declare.
3953
3954 2012-06-13  Tom Tromey  <tromey@redhat.com>
3955
3956         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3957         * breakpoint.c (catch_syscall_completer): Return a VEC.
3958         * cli/cli-cmds.c (complete_command): Update.
3959         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3960         (complete_on_enum): Likewise.
3961         * command.h: Include gdb_vecs.h.
3962         (completer_ftype): Change return type.
3963         (complete_on_cmdlist, complete_on_enum): Likewise.
3964         * completer.c (noop_completer, filename_completer)
3965         (location_completer): Return a VEC.
3966         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
3967         to a VEC.
3968         (expression_completer, complete_line_internal, complete_line)
3969         (command_completer): Return a VEC.
3970         (gdb_completion_word_break_characters, line_completion_function):
3971         Update.
3972         * completer.h: Include gdb_vecs.h.
3973         (complete_line, noop_completer, filename_completer)
3974         (expression_completer, location_completer, command_completer):
3975         Update.
3976         * f-lang.c (f_word_break_characters): Return a VEC.
3977         * interps.c (interpreter_completer): Return a VEC.
3978         * language.h (struct language_defn)
3979         <la_make_symbol_completion_list>: Return a VEC.
3980         * python/py-cmd.c (cmdpy_completer): Return a VEC.
3981         * symtab.c (free_completion_list): Take a VEC.
3982         (return_val_size, return_val_index): Remove.
3983         (return_val): Now a VEC.
3984         (completion_list_add_name): Update.
3985         (default_make_symbol_completion_list_break_on)
3986         (default_make_symbol_completion_list, make_symbol_completion_list)
3987         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3988         Return a VEC.
3989         (add_filename_to_list): Update.
3990         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3991         <list>: Now a VEC.
3992         (maybe_add_partial_symtab_filename): Update.
3993         (make_source_files_completion_list): Return a VEC.
3994         * symtab.h (default_make_symbol_completion_list_break_on)
3995         (default_make_symbol_completion_list, make_symbol_completion_list)
3996         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3997         (make_source_files_completion_list): Update.
3998
3999 2012-06-13  Tom Tromey  <tromey@redhat.com>
4000
4001         * breakpoint.c (add_catch_command): Use completer_ftype.
4002         * breakpoint.h: Include command.h.
4003         (add_catch_command): Use completer_ftype.
4004         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4005         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4006         Use completer_ftype.
4007         * command.h (completer_ftype): New typedef.
4008         (set_cmd_completer): Use it.
4009         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4010         completer_ftype.
4011
4012 2012-06-13  Pedro Alves  <palves@redhat.com>
4013
4014         Partial revert of previous change.
4015
4016         * serial.c (scb_base): New global.
4017         (serial_for_fd): New.
4018         (serial_open, serial_fdopen_ops): Link new serial in open serials
4019         chain.
4020         (do_serial_close): Unlink serial from the open serials chain.
4021
4022 2012-06-12  Pedro Alves  <palves@redhat.com>
4023
4024         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4025         threads here.
4026         (prepare_for_detach): No longer context switch here in non-stop
4027         mode.
4028         (fetch_inferior_event): Ditto.
4029         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4030         to the event thread before removing breakpoints.  Switch to the
4031         event thread before inserting breakpoints and resuming.
4032         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4033         event thread before resuming.
4034         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4035         Switch to the event thread before removing breakpoints.
4036
4037 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4038
4039         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4040         special characters correctly for the Windows shells.  See
4041         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4042         report.
4043         [!__MINGW32__]: Remove extra double quote character from special
4044         characters.
4045
4046 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4047
4048         * ui-out.h: Remove #if 0 declarations.
4049         * ui-out.c: Remove #if 0 functions.
4050
4051 2012-06-11  Pedro Alves  <palves@redhat.com>
4052
4053         * ser-base.c (run_async_handler_and_reschedule): New.
4054         (fd_event, push_event): Use it.
4055         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4056         reference count to 1.
4057         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4058         instead of xfree.
4059         (serial_is_open, serial_ref, serial_unref): New.
4060         * serial.h (serial_open): Adjust comment.
4061         (serial_is_open): Declare.
4062         (serial_close): Adjust comment.
4063         (serial_ref, serial_unref) Declare.
4064         (struct serial): New field 'refcnt'.
4065
4066 2012-06-11  Pedro Alves  <palves@redhat.com>
4067
4068         Remove #if 0'd "connect" command, and unnecessary associated
4069         refcounting and serial reuse bits.
4070
4071         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4072         * serial.c (last_serial_opened): Delete.
4073         (scb_base): Delete.
4074         (serial_open): Adjust.
4075         (serial_for_fd): Delete.
4076         (serial_fdopen_ops, do_serial_close): Adjust.
4077         (serial_fdopen_ops): Adjust.
4078
4079 2012-06-11  Pedro Alves  <palves@redhat.com>
4080
4081         * serial.c (do_serial_close): Remove early return when SCB is
4082         null.
4083
4084 2012-06-11  Tom Tromey  <tromey@redhat.com>
4085
4086         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4087
4088 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4089
4090         Fix regression by the "ambiguous linespec" series.
4091         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4092         get_last_displayed_symtab and get_last_displayed_line and depending
4093         on CURSAL.
4094
4095 2012-06-11  Tom Tromey  <tromey@redhat.com>
4096
4097         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4098         (dw2_find_symbol_file): Use it.
4099
4100 2012-06-11  Michael Eager  <eager@eagercon.com>
4101
4102         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4103         * mips-linux-tdep.h (mips_signals): New
4104
4105 2012-06-11  Tom Tromey  <tromey@redhat.com>
4106
4107         * infrun.c (handle_inferior_event)
4108         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4109         breakpoint.
4110         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4111         exception logic in all cases.  Update comments.
4112         (insert_longjmp_resume_breakpoint): Set the exception resume
4113         breakpoint.
4114
4115 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4116
4117         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4118
4119 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4120
4121         * valarith.c (binop_types_user_defined_p): Fix a typo.
4122
4123 2012-06-08  Yao Qi  <yao@codesourcery.com>
4124             Chung-Lin Tang <cltang@codesourcery.com>
4125
4126         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4127         * arch-utils.h: Declare.
4128         * gdbarch.sh: Add return_in_first_hidden_param_p.
4129         * gdbarch.c, gdbarch.h: Regenerated.
4130         * infcall.c (call_function_by_hand): Call
4131         gdbarch_return_in_first_hidden_param_p instead of
4132         language_pass_by_reference.
4133
4134         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4135         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4136         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4137         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4138         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4139         `cplus_return_struct_by_reference'.
4140         (tic6x_return_value): Handle language cplusplus.
4141         (tic6x_return_in_first_hidden_param_p): New.
4142         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4143
4144 2012-06-07  Doug Evans  <dje@google.com>
4145
4146         * dwarf2read.c (dwarf2_cu): Add comment.
4147
4148 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4149
4150         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4151         variable.
4152         (mips_eabi_push_dummy_call): Likewise.
4153         (mips_n32n64_push_dummy_call): Likewise.
4154         (mips_o32_push_dummy_call): Likewise.
4155         (mips_o64_push_dummy_call): Likewise.
4156
4157 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4158
4159         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4160
4161 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4162
4163         * mips-tdep.c (mips_pseudo_register_type): Use
4164         mips_float_register_p.
4165
4166 2012-06-06  Pedro Alves  <palves@redhat.com>
4167
4168         * infrun.c (handle_inferior_event): Remove calls to
4169         reinit_frame_cache that follow a context_switch call.
4170
4171 2012-06-06  Pedro Alves  <palves@redhat.com>
4172
4173         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4174         context_switch and remove stale comment.
4175
4176 2012-06-06  Pedro Alves  <palves@redhat.com>
4177
4178         * infrun.c (struct execution_control_state): Remove
4179         `new_thread_event' field.
4180         (handle_inferior_event): Simplify new threads handling; don't
4181         resume the inferior if we find a new thread.
4182
4183 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4184
4185         * NEWS: Document the deprecation of SH's 'regs' command.
4186         * inferior.h (all_registers_info): Add function declaration.
4187         * sh-tdep.c (sh_show_regs): Remove variable.
4188         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4189         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4190         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4191         (sh_show_regs_command): Remove functions.
4192         (sh_gdbarch_init): Don't set sh_show_regs.
4193         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4194         'info all-registers'.
4195         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4196         (sh64_show_regs): Remove functions.
4197         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4198
4199 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4200
4201         * configure.ac: Move development=true below AC_INIT.
4202         * configure: Regenerate.
4203
4204 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4205
4206         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4207         gdb_stdout.
4208
4209 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4210
4211         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4212         argument as ssize_t.
4213         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4214         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4215         * target.c (target_read_stack, target_write_memory)
4216         (target_write_raw_memory): Likewise.
4217         * target.h (target_read_stack, target_write_memory)
4218         (target_write_raw_memory): Likewise.
4219
4220 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4221
4222         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4223         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4224         * target.c (target_read_memory): Change LEN to ssize_t.
4225         * target.h (target_read_memory): Change LEN to ssize_t.
4226
4227 2012-06-05  Pedro Alves  <palves@redhat.com>
4228
4229         PR backtrace/13866
4230
4231         * breakpoint.c (until_break_command): Only fetch the selected
4232         frame after decode_line_1.
4233
4234 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4235
4236         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4237         event breakpoint at _start, __start or main if a program
4238         interpreter is not found.
4239
4240 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4241
4242         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4243         Add declaration.
4244         * windows-tdep.c: #include "objfiles.h".
4245         (windows_iterate_over_objfiles_in_search_order): New function.
4246         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4247         iterate_over_objfiles_in_search_order gdbarch method to
4248         windows_iterate_over_objfiles_in_search_order.
4249         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4250
4251 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4252
4253         * gdbarch.sh: Add generation of
4254         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4255         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4256         (iterate_over_objfiles_in_search_order): New gdbarch method.
4257         * gdbarch.h, gdbarch.c: Regenerate.
4258         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4259         Add declaration.
4260         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4261         New function.
4262         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4263         out of lookup_symbol_aux_symtabs.
4264         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4265         call to lookup_symbol_aux_objfile.
4266         (struct global_sym_lookup_data): New type.
4267         (lookup_symbol_global_iterator_cb): New function.
4268         (lookup_symbol_global): Search for symbol using
4269         gdbarch_iterate_over_objfiles_in_search_order and
4270         lookup_symbol_global_iterator_cb.
4271         * findvar.c (struct minsym_lookup_data): New type.
4272         (minsym_lookup_iterator_cb): New function.
4273         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4274         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4275         and minsym_lookup_iterator_cb.
4276
4277 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4278
4279         Revert the following patch:
4280         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4281         try locating the symbol in the symbol's own objfile first, before
4282         extending the search to all objfiles.
4283         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4284         out of lookup_symbol_aux_symtabs.
4285         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4286         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4287         Do not search EXCLUDE_OBJFILE.
4288         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4289         (lookup_symbol_global): Search for matches in the block's objfile
4290         first, before searching all other objfiles.
4291
4292 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4293
4294         * breakpoint.c (find_condition_and_thread): Stop parsing
4295         as soon as the first invalid keyword is found.
4296
4297 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4298
4299         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4300
4301 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4302
4303         * config/djgpp/djcheck.sh: Add copyright header.
4304
4305 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4306
4307         * copyright.py (update_files, main): Fix path to update-copyright
4308         script.
4309
4310 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4311
4312         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4313         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4314         for which a reminder to update by hand is printed.
4315
4316 2012-06-04  Doug Evans  <dje@google.com>
4317
4318         * buildsym.c (make_blockvector): Add comment.
4319
4320 2012-06-04  Pedro Alves  <palves@redhat.com>
4321
4322         * arch-utils.c (default_gdb_signal_from_target): Delete.
4323         * arch-utils.h (default_gdb_signal_from_target): Delete.
4324         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4325         gdbarch_gdb_signal_from_target_p.
4326         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4327         predicate).
4328         * gdbarch.h: Regenerate.
4329         * gdbarch.c: Regenerate.
4330
4331 2012-06-04  Pedro Alves  <palves@redhat.com>
4332
4333         * gdbarch.sh (gdb_signal_from_target): Mention that the
4334         implementation of the method must be host independent.
4335         * gdbarch.h: Regenerate.
4336
4337 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4338
4339         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4340         parameters.
4341         (target_read_memory_bfd): New function.
4342         (symbol_file_add_from_memory): Use it.
4343
4344 2012-06-03  Doug Evans  <dje@google.com>
4345
4346         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4347         of primary symtab.
4348         (basic_lookup_transparent_type): Ditto.
4349
4350         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4351         (ALL_PRIMARY_SYMTABS): Use it.
4352         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4353         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4354         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4355         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4356         (basic_lookup_transparent_type): Ditto.
4357
4358 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4359
4360         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4361         it to optimize resolution of demangled name.
4362
4363 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4364
4365         * configure.ac (development): Define new variable.
4366         Call AC_CHECK_LIB for mcheck if $development.
4367         (ERROR_ON_WARNING): Enable it by default only if $development.
4368         * config.in: Regenerate.
4369         * configure: Regenerate.
4370
4371 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4372
4373         * target.c (target_read_memory): Make LEN argument as size_t.
4374         * target.h (target_read_memory): Likewise.
4375
4376 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4377
4378         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4379
4380 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4381
4382         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4383         BookE interface for PowerPC server processors if not available
4384         in the Linux Kernel.
4385
4386 2012-05-31  Keith Seitz  <keiths@redhat.com>
4387
4388         * linespec.c (decode_objc): Add cleanup to free
4389         INFO.FILE_SYMTABS.
4390         (find_linespec_symbols): Add cleanup to free CLASSES.
4391         * symfile.c (find_separate_debug_file_by_debuglink): Add
4392         cleanup to free DEBUGLINK.
4393         * ui-out.c (clear_header_list): No need to check if
4394         HEADER_NEXT.COLHDR is NULL.
4395         Free HEADER_NEXT.COL_NAME.
4396
4397 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4398
4399         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4400         warning.
4401
4402 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4403
4404         * configure.host (gdb_host_cpu): Handle tilegx*.
4405         (gdb_host): Handle tilegx-*-linux*.
4406         * tilegx-linux-nat.c: New file.
4407         * config/tilegx/linux.mh: New file.
4408
4409 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4410
4411         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4412         tilegx-linux-tdep.o.
4413         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4414         tilegx-linux-tdep.c.
4415         * configure.tgt: Handle tilegx-*-linux*.
4416         * tilegx-tdep.h: New file.
4417         * tilegx-tdep.c: New file.
4418         * tilegx-linux-tdep.c: New file.
4419         * regformats/reg-tilegx.dat: New file.
4420
4421 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4422
4423         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4424         accounting of hw watchpoints on ppc.
4425
4426 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4427
4428         * source.c (openp): Expand tilde in path entries.
4429
4430 2012-05-29  Doug Evans  <dje@google.com>
4431
4432         * buildsym.c (block_compar): Fix comment.
4433         (end_symtab): Fix and clarify some comments.
4434
4435         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4436         cleanup_undefined_types.
4437         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4438         All callers updated.
4439
4440 2012-05-29  Tom Tromey  <tromey@redhat.com>
4441
4442         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4443         fails.
4444         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4445         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4446         fails.
4447         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4448         fails.
4449
4450 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4451
4452         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4453         (struct darwin_info): ... New struct.
4454         (solib_darwin_pspace_data): New variable.
4455         (darwin_pspace_data_cleanup): New function.
4456         (get_darwin_info): Likewise.
4457         (darwin_dyld_version_ok, darwin_load_image_infos)
4458         (darwin_solib_get_all_image_info_addr_at_init)
4459         (darwin_solib_read_all_image_info_addr): Add info argument.
4460         Adjust code.
4461         (darwin_current_sos): Use per pspace structure.
4462         (darwin_solib_create_inferior_hook): Likewise.
4463         (darwin_clear_solib): Likewise.
4464         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4465
4466 2012-05-28  Pedro Alves  <palves@redhat.com>
4467
4468         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4469         block that uses them.  Clear ecss before handling each event.
4470
4471 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4472
4473         * solib-svr4.c (svr4_current_sos): New comment on
4474         svr4_current_sos_via_xfer_libraries fall back.
4475
4476 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4477
4478         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4479         it as a fallback for TYPE_IS_OPAQUE.
4480         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4481         symbols for lookup_symbol.
4482
4483 2012-05-24  John Steele Scott  <toojays@toojays.net>
4484
4485         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4486         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4487         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4488         (check_producer): ... this new function, which also checks for ICC
4489         and caches the result.
4490         (producer_is_icc): New function.
4491         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4492         producer was ICC.
4493
4494 2012-05-24  Pedro Alves  <palves@redhat.com>
4495
4496         PR gdb/7205
4497
4498         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4499         (default_gdb_signal_to_target): ... this.  Add comment.
4500         (default_gdb_signal_from_host): Rename to ...
4501         (default_gdb_signal_from_target): ... this.  Add comment.
4502         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4503         (default_gdb_signal_to_target): ... this.
4504         (default_gdb_signal_from_host): Rename to ...
4505         (default_gdb_signal_from_target): ... this.
4506         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4507         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4508         (gdb_signal_from_target): ... this.  Adjust to
4509         default_gdb_signal_from_host naming change.  Extend comment.
4510         (gdb_signal_to_host): Rename to ...
4511         (gdb_signal_to_target): ... this.  Adjust to
4512         default_gdb_signal_to_host naming change.
4513         * gdbarch.h, gdbarch.c: Renegerate.
4514
4515 2012-05-24  Pedro Alves  <palves@redhat.com>
4516
4517         PR gdb/7205
4518
4519         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4520
4521 2012-05-24  Pedro Alves  <palves@redhat.com>
4522
4523         PR gdb/7205
4524
4525         Replace target_signal with gdb_signal throughout.
4526
4527 2012-05-24  Pedro Alves  <palves@redhat.com>
4528
4529         PR tui/14159
4530
4531         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4532         string, instead of reusing the va_list argument.
4533
4534 2012-05-24  Tom Tromey  <tromey@redhat.com>
4535
4536         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4537         Remove.
4538
4539 2012-05-23  Doug Evans  <dje@google.com>
4540
4541         * symtab.c (search_symbols): Formatting fixes.
4542         (print_symbol_info): Formatting fixes.
4543
4544         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4545         int64_t change to leb128 API.
4546         (read_encoded_value, decode_frame_entry_1): Ditto.
4547         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4548         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4549         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4550         (execute_stack_op): Ditto.
4551         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4552         (safe_read_uleb128, safe_read_sleb128): Ditto.
4553         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4554         (dwarf2_compile_expr_to_ax): Ditto.
4555         (locexpr_describe_location_piece): Ditto.
4556         (disassemble_dwarf_expression): Ditto.
4557         (locexpr_describe_location_1): Ditto.
4558
4559 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4560             Kwok Cheung Yeung  <kcy@codesourcery.com>
4561
4562         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4563         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4564         (mi-cmd-info.o): New rule.
4565         * osdata.h (info_osdata_command): New declaration.
4566         * osdata.c (info_osdata_command): Change to non-static.
4567         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4568         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4569         * mi/mi-cmd-info.c: New file.
4570
4571 2012-05-23  Doug Evans  <dje@google.com>
4572
4573         * symtab.c (search_symbols): Pass NULL for file_matcher to
4574         expand_symtabs_matching if there are no files to match.
4575
4576         * gdbtypes.c (lookup_typename): Simplify.
4577
4578 2012-05-23  Pedro Alves  <palves@redhat.com>
4579
4580         * arch-utils.h (default_target_signal_to_host): Delete.
4581         * arch-utils.c (default_target_signal_to_host): Delete.
4582         * gdbarch.sh (target_signal_to_host): Remove.
4583         * gdbarch.h, gdbarch.c: Regenerate.
4584
4585 2012-05-22  Doug Evans  <dje@google.com>
4586
4587         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4588         "const gdb_byte *".
4589         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4590         (execute_cfa_program): Update to match API of leb128 functions.
4591         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4592         "const gdb_byte *".
4593         (read_unsigned_leb128, read_signed_leb128): Delete.
4594         (read_initial_length): Change type of buf argument to
4595         "const gdb_byte *".
4596         (read_encoded_value): Update to match API of leb128 functions.
4597         (decode_frame_entry): Change result to "const gdb_byte *", and
4598         similarly for "start" parameter.
4599         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4600         (dwarf2_build_frame_info): Change local frame_ptr to
4601         "const gdb_byte *".
4602         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4603         read_uleb128, read_sleb128.  All callers updated.
4604         (safe_skip_leb128): New function.
4605         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4606         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4607         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4608         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4609         read_uleb128, read_sleb128.
4610         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4611         (execute_stack_op): Update to match API of leb128 functions.
4612         * dwarf2expr.h: #include "leb128.h".
4613         (read_uleb128, read_sleb128): Delete.
4614         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4615         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4616         * dwarf2loc.c (debug_loc_kind): New enum.
4617         (decode_debug_loc_addresses): New function.
4618         (decode_debug_loc_dwo_addresses): New function.
4619         (dwarf2_find_location_expression): Rewrite.
4620         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4621         (locexpr_describe_location_piece): Ditto.
4622         (disassemble_dwarf_expression): Ditto.
4623         (locexpr_describe_location_1): Ditto.
4624         (loclist_describe_location): Rewrite.
4625         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4626         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4627         (dwarf2_section_buffer_overflow_complaint): Renamed from
4628         dwarf2_macros_too_long_complaint.  All callers updated.
4629         (skip_leb128): Delete.
4630         (init_cu_die_reader): Initialize reader->buffer_end.
4631         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4632         (skip_form_bytes): New arg buffer_end.  All callers updated.
4633         Replace call to skip_leb128 with gdb_skip_leb128.
4634         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4635         (fill_in_loclist_baton): Initialize baton->from_dwo.
4636
4637 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4638
4639         * mips-linux-nat.c (mips_linux_read_description): Use a more
4640         verbose error message.
4641
4642 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4643
4644         * NEWS: Add MIPS/Linux DSP support.
4645         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4646         (SIGCONTEXT_DSPCTL): New macro.
4647         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4648         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4649         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4650         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4651         (N64_SIGCONTEXT_HI3): Likewise.
4652         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4653         (N64_SIGCONTEXT_LO3): Likewise.
4654         (N64_SIGCONTEXT_DSPCTL): Likewise.
4655         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4656         (mips_linux_o32_sigframe_init): Handle DSP registers.
4657         (mips_linux_n32n64_sigframe_init): Likewise.
4658
4659 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4660
4661         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4662         call to abort.
4663
4664 2012-05-22  Pedro Alves  <palves@redhat.com>
4665
4666         * target.h (store_waitstatus): Move declaration ...
4667         * inf-child.h (store_waitstatus): ... here.
4668         * target.c: Move inclusion of gdb_wait.h, and ...
4669         (store_waitstatus): ... this ...
4670         * inf-child.c: ... here.
4671         * linux-nat.c: Include inf-child.h.
4672         * rs6000-nat.c: Include inf-child.h.
4673         * spu-linux-nat.c: Include inf-child.h.
4674
4675 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4676
4677         * tracepoint.c (start_tracing): Add missing i18n markup.
4678         (stop_tracing, set_trace_user): Ditto.
4679         (set_trace_notes, set_trace_stop_notes): Ditto.
4680
4681 2012-05-21  Tom Tromey  <tromey@redhat.com>
4682
4683         PR c++/7173:
4684         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4685         types.
4686         * value.h (value_cast_pointers): Update.
4687         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4688         (value_cast): Update.
4689         (update_search_result): New function.
4690         (do_search_struct_field): New, from search_struct_field.  Check
4691         for ambiguous results.
4692         (search_struct_field): Rewrite.
4693         * infcall.c (value_arg_coerce): Update.
4694         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4695         value_cast_pointers.
4696         * ada-lang.c (ada_convert_actual): Update.
4697
4698 2012-05-21  Tom Tromey  <tromey@redhat.com>
4699
4700         * macroexp.c (macro_stringify): Terminate the string.
4701
4702 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4703
4704         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4705         Describe it.
4706         * auto-load.c (auto_load_expand_dir_vars): New function.
4707         (auto_load_safe_path_vec_update): Use it, remove the
4708         substitute_path_component call thanks to it.
4709         (auto_load_objfile_script): Remove the debug_file_directory processing.
4710         Use auto_load_expand_dir_vars, remove the substitute_path_component
4711         call thanks to it.
4712         * configure: Regenerate.
4713         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4714         path.  Escape $ also for $debugdir.
4715         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4716         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4717
4718 2012-05-20  Doug Evans  <dje@google.com>
4719
4720         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4721         before use.  Check for symtab->includes == NULL before scanning it.
4722
4723 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4724
4725         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4726
4727 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4728
4729         * NEWS: Add microMIPS support and "set mips compression",
4730         "show mips compression" commands.
4731         * mips-tdep.h (mips_isa): New enum.
4732         (gdbarch_tdep): Add mips_isa.
4733         (mips_pc_is_mips16): Update prototype.
4734         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4735         * mips-tdep.c (mips_compression_mips16): New variable.
4736         (mips_compression_micromips): Likewise.
4737         (mips_compression_strings): Likewise.
4738         (mips_compression_string): Likewise.
4739         (is_mips16_isa, is_micromips_isa): New functions.
4740         (is_mips16_addr): Rename to...
4741         (is_compact_addr): ... this.
4742         (unmake_mips16_addr): Likewise to...
4743         (unmake_compact_addr): ... this.
4744         (make_mips16_addr): Likewise to...
4745         (make_compact_addr): ... this.
4746         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4747         functions.
4748         (mips_elf_make_msymbol_special): Handle microMIPS code.
4749         (msymbol_is_special): Rename to...
4750         (msymbol_is_mips16): ... this.
4751         (mips_make_symbol_special, mips_pc_is_mips16): Update
4752         accordingly.
4753         (msymbol_is_mips, msymbol_is_micromips): New functions.
4754         (mips16_to_32_reg): Rename to...
4755         (mips_reg3_to_reg): ... this.
4756         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4757         (mips_pc_isa): Likewise.
4758         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4759         code.
4760         (mips_fetch_instruction): Pass return status instead of printing
4761         an error message if requested.  Handle microMIPS code.  Bail out
4762         on an invalid ISA.
4763         (micromips_op): New macro.
4764         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4765         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4766         (b6s4_op, b7s3_reg): Likewise.
4767         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4768         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4769         (mips_insn_size): New function.
4770         (mips32_next_pc): Update mips_fetch_instruction call.
4771         (micromips_relative_offset7): New function.
4772         (micromips_relative_offset10): Likewise.
4773         (micromips_relative_offset16): Likewise.
4774         (micromips_pc_insn_size): Likewise.
4775         (micromips_bc1_pc): Likewise.
4776         (micromips_next_pc): Likewise.
4777         (unpack_mips16): Update mips_fetch_instruction call.
4778         (extended_mips16_next_pc): Update according to change to
4779         mips16_to_32_reg.
4780         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4781         code.
4782         (mips16_scan_prologue): Update mips_fetch_instruction call.
4783         Update according to change to mips16_to_32_reg.
4784         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4785         (mips_insn16_frame_base_sniffer): Likewise.
4786         (micromips_decode_imm9): New function.
4787         (micromips_scan_prologue): Likewise.
4788         (mips_micro_frame_cache): Likewise.
4789         (mips_micro_frame_this_id): Likewise.
4790         (mips_micro_frame_prev_register): Likewise.
4791         (mips_micro_frame_sniffer): Likewise.
4792         (mips_micro_frame_unwind): New variable.
4793         (mips_micro_frame_base_address): New function.
4794         (mips_micro_frame_base): New variable.
4795         (mips_micro_frame_base_sniffer): New function.
4796         (mips32_scan_prologue): Update mips_fetch_instruction call.
4797         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4798         rather than for MIPS16.
4799         (mips_insn32_frame_base_sniffer): Likewise.
4800         (mips_addr_bits_remove): Handle microMIPS code.
4801         (deal_with_atomic_sequence): Rename to...
4802         (mips_deal_with_atomic_sequence): ... this.  Update the type
4803         of the variable used to hold an instruction.  Remove the ISA bit
4804         check.  Update mips_fetch_instruction call.
4805         (micromips_deal_with_atomic_sequence): New function.
4806         (deal_with_atomic_sequence): Likewise.
4807         (mips_about_to_return): Handle microMIPS code.  Update
4808         mips_fetch_instruction call.
4809         (heuristic_proc_start): Check for the standard MIPS ISA rather
4810         than for MIPS16.  Update mips_pc_is_mips16 and
4811         mips_fetch_instruction calls.  Handle microMIPS code.
4812         (mips_push_dummy_code): Handle microMIPS code.
4813         (mips_eabi_push_dummy_call): Likewise.
4814         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4815         (mips_o64_push_dummy_call): Handle microMIPS code.
4816         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4817         (is_delayed): Remove function.
4818         (mips_single_step_through_delay): Replace the call to is_delayed
4819         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4820         Handle microMIPS code.
4821         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4822         microMIPS code.
4823         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4824         call.
4825         (micromips_in_function_epilogue_p): New function.
4826         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4827         call.
4828         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4829         Handle microMIPS.
4830         (gdb_print_insn_mips): Likewise.
4831         (mips_breakpoint_from_pc): Likewise.
4832         (mips_remote_breakpoint_from_pc): New function.
4833         (mips32_instruction_has_delay_slot): Simplify making use of the
4834         updated mips_fetch_instruction interface.
4835         (micromips_instruction_has_delay_slot): New function.
4836         (mips16_instruction_has_delay_slot): Simplify making use of the
4837         updated mips_fetch_instruction interface.
4838         (mips_adjust_breakpoint_address): Check for the standard MIPS
4839         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4840         calls.  Handle microMIPS code.
4841         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4842         (mips_skip_trampoline_code): Handle microMIPS code.
4843         (global_mips_compression): New function.
4844         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4845         file flags.  Register the microMIPS remote breakpoint handler
4846         and heuristic frame unwinder.
4847         (show_mips_compression): New function.
4848         (_initialize_mips_tdep): Add the "set mips compression" and
4849         "show mips compression" commands.
4850
4851 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4852
4853         * ada-lang.c:
4854         * ada-tasks.c:
4855         * ada-varobj.c:
4856         * amd64-darwin-tdep.c:
4857         * arm-symbian-tdep.c:
4858         * arm-tdep.c:
4859         * avr-tdep.c:
4860         * ax-gdb.c:
4861         * bfin-linux-tdep.c:
4862         * breakpoint.c:
4863         * c-valprint.c:
4864         * cli/cli-cmds.c:
4865         * coffread.c:
4866         * cp-support.c:
4867         * cris-tdep.c:
4868         * dwarf2-frame-tailcall.c:
4869         * dwarf2-frame.c:
4870         * dwarf2expr.c:
4871         * dwarf2loc.c:
4872         * dwarf2read.c:
4873         * elfread.c:
4874         * eval.c:
4875         * expprint.c:
4876         * f-valprint.c:
4877         * frv-tdep.c:
4878         * h8300-tdep.c:
4879         * hppa-hpux-tdep.c:
4880         * hppa-tdep.c:
4881         * hppanbsd-tdep.c:
4882         * i386-nto-tdep.c:
4883         * i386-tdep.c:
4884         * i387-tdep.c:
4885         * ia64-tdep.c:
4886         * jit.c:
4887         * linespec.c:
4888         * linux-tdep.c:
4889         * lm32-tdep.c:
4890         * m2-valprint.c:
4891         * m32c-tdep.c:
4892         * m32r-rom.c:
4893         * m32r-tdep.c:
4894         * m68k-tdep.c:
4895         * m68klinux-tdep.c:
4896         * mi/mi-main.c:
4897         * microblaze-tdep.c:
4898         * mips-linux-tdep.c:
4899         * mips-tdep.c:
4900         * mn10300-tdep.c:
4901         * p-valprint.c:
4902         * parse.c:
4903         * ppc-linux-tdep.c:
4904         * ppc-sysv-tdep.c:
4905         * printcmd.c:
4906         * python/py-finishbreakpoint.c:
4907         * python/py-inferior.c:
4908         * python/py-infthread.c:
4909         * python/py-type.c:
4910         * python/python.c:
4911         * remote-fileio.c:
4912         * remote-m32r-sdi.c:
4913         * remote-mips.c:
4914         * reverse.c:
4915         * rl78-tdep.c:
4916         * rs6000-aix-tdep.c:
4917         * rs6000-tdep.c:
4918         * s390-tdep.c:
4919         * score-tdep.c:
4920         * sh64-tdep.c:
4921         * skip.c:
4922         * solib-darwin.c:
4923         * solib-dsbt.c:
4924         * solib-frv.c:
4925         * sparc-tdep.c:
4926         * spu-multiarch.c:
4927         * spu-tdep.c:
4928         * stack.c:
4929         * symfile.c:
4930         * symtab.c:
4931         * tic6x-tdep.c:
4932         * tracepoint.c:
4933         * v850-tdep.c:
4934         * valarith.c:
4935         * valprint.c:
4936         * value.c:
4937         * xcoffread.c:
4938         * xtensa-tdep.c:
4939         * ada-lang.c:
4940         * ada-tasks.c:
4941         * ada-varobj.c:
4942         * amd64-darwin-tdep.c:
4943         * arm-symbian-tdep.c:
4944         * arm-tdep.c: Delete unused variables.
4945
4946 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4947
4948         Rename $ddir to $datadir.
4949         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4950         * auto-load.c (auto_load_safe_path_vec_update)
4951         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4952         * configure: Regenerate.
4953         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4954         Likewise.  Remove the 'use $ddir' help string.
4955
4956 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4957
4958         * auto-load.c (show_auto_load_safe_path): Accept any combination of
4959         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4960
4961 2012-05-18  Tom Tromey  <tromey@redhat.com>
4962
4963         PR exp/13907:
4964         * valprint.h (struct value_print_options) <symbol_print>: New
4965         field.
4966         * valprint.c (user_print_options): Add default for symbol_print.
4967         (show_symbol_print): New function.
4968         (generic_val_print): Respect symbol_print.
4969         (_initialize_valprint): Add "print symbol" setting.
4970         * f-valprint.c (f_val_print): Respect symbol_print.
4971         * c-valprint.c (c_val_print): Respect symbol_print.
4972         * NEWS: Update.
4973         * printcmd.c (print_address_symbolic): Return int.  Ignore some
4974         zero-size symbols.
4975         (print_address_demangle): Return int.
4976         * defs.h: (print_address_symbolic): Return int.
4977         * value.h (print_address_demangle): Return int.
4978
4979 2012-05-18  Tom Tromey  <tromey@redhat.com>
4980
4981         * valprint.c (val_print_string): Don't print leading space.
4982         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4983         print space before string or vtbl.
4984         * m2-valprint.c (print_unpacked_pointer): Optionally print space
4985         before string.
4986         * jv-valprint.c (java_value_print): Print space before string.
4987         * go-valprint.c (print_go_string): Print space before string.
4988         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4989         space before string.
4990         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4991         space before string or vtbl.
4992         * auxv.c (fprint_target_auxv): Print space after address.
4993
4994 2012-05-18  Tom Tromey  <tromey@redhat.com>
4995
4996         * printcmd.c (print_address_demangle): Remove special case for 0.
4997
4998 2012-05-18  Tom Tromey  <tromey@redhat.com>
4999
5000         * printcmd.c (print_address_demangle): Add 'opts' argument.
5001         * p-valprint.c (pascal_val_print): Update.
5002         * jv-valprint.c (java_val_print): Update.
5003         * value.h: Update.
5004         * valprint.c (generic_val_print): Update.
5005         (print_function_pointer_address): Add 'options' argument.  Remove
5006         'addressprint' argument.  Update.
5007         * m2-valprint.c (print_unpacked_pointer): Update.
5008         * gnu-v3-abi.c (print_one_vtable): Update.
5009         (gnuv3_print_method_ptr): Update.
5010         * f-valprint.c (f_val_print): Update.
5011         * cp-valprint.c (cp_print_value_fields): Update.
5012         * valprint.h (print_function_pointer_address): Update.
5013         * c-valprint.c (c_val_print): Update.
5014
5015 2012-05-18  Tom Tromey  <tromey@redhat.com>
5016
5017         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5018         directly corresponding to the found psymtab.
5019         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5020         (dw2_find_pc_sect_symtab): Use it.
5021         * block.h (blockvector_contains_pc): Declare.
5022         * block.c (find_block_in_blockvector): New function.
5023         (blockvector_for_pc_sect): Use it.
5024         (blockvector_contains_pc): New function.
5025
5026 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5027
5028         * mips-tdep.h (mips_write_pc): New prototype.
5029         * mips-tdep.c (mips_write_pc): Make external, add description.
5030         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5031         add description.
5032
5033 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5034
5035         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5036         mips_regnum->pc.
5037         (mips_unwind_pc, mips_write_pc): Likewise.
5038         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5039         gdbarch_read_pc.
5040
5041 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5042
5043         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5044         proc_warn, proc_error, proc_get_status, proc_flags,
5045         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5046         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5047         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5048         proc_stop_process, proc_wait_for_stop, proc_run_process,
5049         proc_set_traced_signals, proc_set_traced_faults,
5050         proc_set_traced_sysentry, proc_set_traced_sysexit,
5051         proc_set_held_signals, proc_get_held_signals,
5052         proc_get_traced_signals, proc_get_traced_faults,
5053         proc_get_traced_sysentry, proc_get_traced_sysexit,
5054         proc_clear_current_fault, proc_set_current_signal,
5055         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5056         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5057         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5058         proc_get_current_thread, proc_get_current_thread,
5059         proc_get_current_thread, proc_update_threads,
5060         proc_update_threads, proc_update_threads, proc_update_threads,
5061         proc_iterate_over_threads, procfs_find_new_threads,
5062         procfs_pid_to_str): Make static.  Remove advance declaration.
5063         (proc_cursig): Make static.  Conditionalized defintion on
5064         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5065         (proc_syscall, proc_set_kill_on_last_close,
5066         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5067         proc_get_pending_signals, proc_get_signal_actions,
5068         proc_trace_signal, proc_ignore_signal): Delete.
5069
5070 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5071
5072         * coffread.c (cs_section_address): Passing proper argument for
5073         `bfd_get_section_vma'.
5074         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5075         `bfd_get_section_flags'.
5076         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5077         `bfd_get_section_vma'.
5078
5079 2012-05-16  Tom Tromey  <tromey@redhat.com>
5080
5081         PR macros/13205:
5082         * macrotab.h: (macro_define_special): Declare.
5083         (enum macro_special_kind): New.
5084         (struct macro_definition) <argc, replacement>: Update comments.
5085         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5086         (macro_define_object_internal): New function.
5087         (macro_define_object): Use it.
5088         (macro_define_special): New function.
5089         (fixup_definition): New function.
5090         (macro_lookup_definition, foreach_macro_in_scope)
5091         (foreach_macro): Use fixup_definition.
5092         * macroexp.h (macro_stringify): Declare.
5093         * macroexp.c (free_buffer_return_text): New function.
5094         (stringify): Constify "arg".
5095         (macro_stringify): New function.
5096         * dwarf2read.c (macro_start_file): Call macro_define_special.
5097
5098 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5099             Maciej W. Rozycki  <macro@mips.com>
5100
5101         * breakpoint.h (bp_location): Add related_address member.
5102         * inferior.h (get_return_value): Take a pointer to struct value
5103         instead of struct type for the function requested.
5104         * value.h (using_struct_return): Likewise.
5105         * gdbarch.sh (return_value): Take a pointer to struct value
5106         instead of struct type for the function requested.
5107         * breakpoint.c (set_breakpoint_location_function): Initialize
5108         related_address for bp_gnu_ifunc_resolver breakpoints.
5109         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5110         requested function's address to gdbarch_return_value.
5111         * eval.c (evaluate_subexp_standard): Pass the requested
5112         function's address to using_struct_return.
5113         * infcall.c (call_function_by_hand): Pass the requested
5114         function's address to using_struct_return and
5115         gdbarch_return_value.
5116         * infcmd.c (get_return_value): Take a pointer to struct value
5117         instead of struct type for the function requested.
5118         (print_return_value): Update accordingly.
5119         (finish_command_continuation): Likewise.
5120         * stack.c (return_command): Pass the requested function's
5121         address to using_struct_return and gdbarch_return_value.
5122         * value.c (using_struct_return): Take a pointer to struct value
5123         instead of struct type for the function requested.  Pass the
5124         requested function's address to gdbarch_return_value.
5125         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5126         New function_value member, replacing function_type.
5127         (bpfinishpy_dealloc): Update accordingly.
5128         (bpfinishpy_pre_stop_hook): Likewise.
5129         (bpfinishpy_init): Likewise.  Record the requested function's
5130         address.
5131         * mips-tdep.c (mips_fval_reg): New enum.
5132         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5133         words put in GP registers.
5134         (mips_o64_push_dummy_call): Update a comment.
5135         (mips_o32_return_value): Take a pointer to struct value instead
5136         of struct type for the function requested and use it to check if
5137         using the MIPS16 calling convention.  Return the designated
5138         general purpose registers for floating-point values returned in
5139         MIPS16 mode.
5140         (mips_o64_return_value): Likewise.
5141         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5142         (ppc_sysv_abi_broken_return_value): Likewise.
5143         (ppc64_sysv_abi_return_value): Likewise.
5144         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5145         value instead of struct type for the function requested.
5146         * amd64-tdep.c (amd64_return_value): Likewise.
5147         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5148         * arm-tdep.c (arm_return_value): Likewise.
5149         * avr-tdep.c (avr_return_value): Likewise.
5150         * bfin-tdep.c (bfin_return_value): Likewise.
5151         * cris-tdep.c (cris_return_value): Likewise.
5152         * frv-tdep.c (frv_return_value): Likewise.
5153         * h8300-tdep.c (h8300_return_value): Likewise.
5154         (h8300h_return_value): Likewise.
5155         * hppa-tdep.c (hppa32_return_value): Likewise.
5156         (hppa64_return_value): Likewise.
5157         * i386-tdep.c (i386_return_value): Likewise.
5158         * ia64-tdep.c (ia64_return_value): Likewise.
5159         * iq2000-tdep.c (iq2000_return_value): Likewise.
5160         * lm32-tdep.c (lm32_return_value): Likewise.
5161         * m32c-tdep.c (m32c_return_value): Likewise.
5162         * m32r-tdep.c (m32r_return_value): Likewise.
5163         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5164         * m68k-tdep.c (m68k_return_value): Likewise.
5165         (m68k_svr4_return_value): Likewise.
5166         * m88k-tdep.c (m88k_return_value): Likewise.
5167         * mep-tdep.c (mep_return_value): Likewise.
5168         * microblaze-tdep.c (microblaze_return_value): Likewise.
5169         * mn10300-tdep.c (mn10300_return_value): Likewise.
5170         * moxie-tdep.c (moxie_return_value): Likewise.
5171         * mt-tdep.c (mt_return_value): Likewise.
5172         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5173         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5174         (ppc_sysv_abi_broken_return_value): Likewise.
5175         (ppc64_sysv_abi_return_value): Likewise.
5176         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5177         * rl78-tdep.c (rl78_return_value): Likewise.
5178         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5179         * rx-tdep.c (rx_return_value): Likewise.
5180         * s390-tdep.c (s390_return_value): Likewise.
5181         * score-tdep.c (score_return_value): Likewise.
5182         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5183         (sh_return_value_fpu): Likewise.
5184         * sh64-tdep.c (sh64_return_value): Likewise.
5185         * sparc-tdep.c (sparc32_return_value): Likewise.
5186         * sparc64-tdep.c (sparc64_return_value): Likewise.
5187         * spu-tdep.c (spu_return_value): Likewise.
5188         * tic6x-tdep.c (tic6x_return_value): Likewise.
5189         * v850-tdep.c (v850_return_value): Likewise.
5190         * vax-tdep.c (vax_return_value): Likewise.
5191         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5192         * xtensa-tdep.c (xtensa_return_value): Likewise.
5193         * gdbarch.c: Regenerate.
5194         * gdbarch.h: Regenerate.
5195
5196 2012-05-15  Tom Tromey  <tromey@redhat.com>
5197
5198         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5199
5200 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5201
5202         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5203         of command in two error message.
5204
5205 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5206
5207         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5208
5209 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5210
5211         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5212
5213 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5214
5215         * NEWS (show auto-load scripts-directory): Add forgotten command.
5216
5217 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5218
5219         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5220         parameters.
5221
5222 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5223
5224         * amd64-tdep.c: Include features/i386/x32.c and
5225         features/i386/x32-avx.c.
5226         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5227         initialize_tdesc_x32_avx.
5228
5229 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5230
5231         Add dynamic printf.
5232         * breakpoint.h (enum bptype): New type bp_dprintf.
5233         (struct breakpoint): New field extra_string.
5234         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5235         (create_breakpoint): Add extra_string arg.
5236         * breakpoint.c (dprintf_breakpoint_ops): New.
5237         (is_breakpoint): Add bp_dprintf.
5238         (bpstat_what): Add dprintf case.
5239         (bptype_string): Ditto.
5240         (print_one_breakpoint_location): Ditto.
5241         (init_bp_location): Ditto.
5242         (bkpt_print_mention): Ditto.
5243         (dprintf_style_enums): New array.
5244         (dprintf_style): New global.
5245         (dprintf_function): New global.
5246         (dprintf_channel): New global.
5247         (update_dprintf_command_list): New function.
5248         (update_dprintf_commands): New function.
5249         (init_breakpoint_sal): Add extra_string argument, handle it.
5250         (create_breakpoint_sal): Add extra_string argument.
5251         (create_breakpoints_sal): Add extra_string argument, update callers.
5252         (find_condition_and_thread): Add extra argument.
5253         (create_breakpoint): Add extra_string argument, record it.
5254         (dprintf_command): New function.
5255         (break_command_1): Add arg to create_breakpoint call.
5256         (handle_gnu_v3_exceptions): Ditto.
5257         (trace_command): Ditto.
5258         (ftrace_command): Ditto.
5259         (strace_command): Ditto.
5260         (bkpt_print_mention): Add dprintf case.
5261         (create_breakpoint_sal_default): Add extra_string argument.
5262         (_initialize_breakpoint): Add new commands.
5263         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5264         * python/py-breakpoint.c (bppy_init): Ditto.
5265         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5266
5267 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5268
5269         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5270
5271 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5272
5273         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5274         unsigned long long.
5275
5276 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5277
5278         Add a new function gdb.find_pc_line to the Python API.
5279         * NEWS (Python Scripting): Add entry about the new function.
5280         * python/python.c (gdbpy_find_pc_line): New function which
5281         implements gdb.find_pc_line.
5282         (GdbMethods): Add entry for the new function.
5283
5284 2012-05-12  Pedro Alves  <palves@redhat.com>
5285
5286         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5287         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5288
5289 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5290
5291         * inferior.c: Include completer.h
5292         (initialize_inferiors): Set completer of add-inferior to
5293         filename_completer.
5294
5295 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5296
5297         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5298         gdbarch_ptr_bit for x32 core dump.
5299
5300 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5301
5302         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5303         and features/i386/x32-avx-linux.c.
5304
5305 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5306             Kwok Cheung Yeung  <kcy@codesourcery.com>
5307
5308         * NEWS: Describe new info os commands.
5309         * common/linux-osdata.c (PID_T, TIME_T): Define.
5310         (MAX_PID_T_STRLEN): New.
5311         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5312         MAX_PID_T_STRLEN.
5313         (command_from_pid): Add comment.  Change to use PID_T.
5314         (commandline_from_pid):  Change to use PID_T.
5315         (user_from_pid): Add comment.
5316         (get_process_owner): Add comment. Change to use PID_T and
5317         MAX_PID_T_STRLEN.
5318         (get_number_of_cpu_cores): Add comment.
5319         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5320         MAX_PID_T_STRLEN.
5321         (linux_xfer_osdata_processes): Change to use PID_T and
5322         MAX_PID_T_STRLEN.
5323         (compare_processes): New function.
5324         (linux_xfer_osdata_processgroups): New function.
5325         (linux_xfer_osdata_threads): Change to use PID_T.
5326         (linux_xfer_osdata_fds): New function.
5327         (format_socket_state, print_sockets): New functions.
5328         (union socket_addr): New union.
5329         (linux_xfer_osdata_isockets): New function.
5330         (time_from_time_t, group_from_gid): New functions.
5331         (linux_xfer_osdata_shm): New function.
5332         (linux_xfer_osdata_sem): New function.
5333         (linux_xfer_osdata_msg): New function.
5334         (linux_xfer_osdata_modules): New function.
5335         (osdata_table): Add new entries.
5336         * common/buffer.c (buffer_xml_printf): Add support for long and
5337         long long format specifiers.
5338
5339 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5340
5341         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5342         (tdesc_x32_avx_linux): Likewise.
5343
5344 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5345
5346         Implement multi-component --with-auto-load-dir.
5347         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5348         entries.
5349         (--with-auto-load-safe-path): Update the default value description.
5350         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5351         New.
5352         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5353         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5354         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5355         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5356         "set auto-load scripts-directory".
5357         * config.in: Regenerate.
5358         * configure: Regenerate.
5359         * configure.ac (--with-auto-load-dir): New configure option.
5360         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5361
5362 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5363
5364         Provide $ddir substitution for --with-auto-load-safe-path.
5365         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5366         entries.
5367         * auto-load.c: Include observer.h.
5368         (auto_load_safe_path_vec_update): Call substitute_path_component for
5369         each component.  New variable ddir_subst.
5370         (auto_load_gdb_datadir_changed): New function.
5371         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5372         AUTO_LOAD_SAFE_PATH.  New comment.
5373         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5374         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5375         * config.in: Regenerate.
5376         * configure: Regenerate.
5377         * configure.ac (--auto-load-safe-path): Rename
5378         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5379         GDB_DATADIR/auto-load.
5380         * defs.h (substitute_path_component): New declaration.
5381         * top.c: Include observer.h.
5382         (set_gdb_datadir): New function.
5383         (init_main): Install it for "set data-directory".
5384         * utils.c (substitute_path_component): New function.
5385
5386 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5387
5388         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5389         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5390         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5391         DEBUG_FILE_DIRECTORY.
5392
5393 2012-05-10  Tom Tromey  <tromey@redhat.com>
5394
5395         * dwarf2read.c (recursively_write_psymbols): New function.
5396         (write_psymtabs_to_index): Use it.
5397
5398         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5399         field.
5400         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5401         (load_partial_comp_unit): Update.
5402         (queue_comp_unit): Add argument 'pretend_language'.
5403         (process_queue): Update.
5404         (psymtab_to_symtab_1): Skip dependencies that have a user.
5405         (load_partial_comp_unit_reader): Give meaning to the 'data'
5406         argument.
5407         (load_full_comp_unit): Add 'pretend_language' argument.
5408         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5409         language on CU.
5410         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5411         Update.
5412         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5413         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5414         Update.
5415         (prepare_one_comp_unit): Add 'pretend_language' argument.
5416
5417         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5418         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5419         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5420         (dw2_do_instantiate_symtab): Check whether symtab was read in
5421         before queueing.
5422         (dw2_instantiate_symtab): Add assertion.  Call
5423         process_cu_includes.
5424         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5425         (partial_symtab_p): New typedef.
5426         (set_partial_user): New function.
5427         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5428         (scan_partial_symbols): Add imported CU to imported_symtabs.
5429         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5430         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5431         (get_symtab, recursively_compute_inclusions)
5432         (compute_symtab_includes, process_cu_includes)
5433         (process_imported_unit_die): New functions.
5434         (process_die) <DW_TAG_imported_unit>: New case.
5435         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5436
5437         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5438         comment.
5439         (struct partial_die_info) <locdesc>: Remove.
5440         <d>: New field.
5441         (process_psymtab_comp_unit): Add 'read_partial' argument.
5442         Update.
5443         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5444         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5445         (add_partial_symbol): Update.
5446         (process_die): Handle DW_TAG_partial_unit.
5447         (read_file_scope): Update comment.
5448         (load_partial_dies): Handle DW_TAG_imported_unit.
5449         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5450         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5451
5452 2012-05-10  Tom Tromey  <tromey@redhat.com>
5453
5454         * cc-with-dwz.sh: New file.
5455
5456 2012-05-10  Tom Tromey  <tromey@redhat.com>
5457
5458         * symtab.h (struct symtab) <includes, user>: New fields.
5459         * block.h (struct block_iterator) <d, idx, which>: New fields.
5460         * block.c (initialize_block_iterator, find_iterator_symtab)
5461         (block_iterator_step, block_iter_name_step)
5462         (block_iter_match_step): New functions.
5463         (block_iterator_first, block_iterator_next)
5464         (block_iter_name_first, block_iter_name_next)
5465         (block_iter_match_first, block_iter_match_next): Rewrite.
5466         (get_block_symtab): New function.
5467
5468 2012-05-10  Tom Tromey  <tromey@redhat.com>
5469
5470         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5471         set_block_symtab.
5472         * jit.c (finalize_symtab): Use allocate_global_block,
5473         set_block_symtab.
5474         * buildsym.c (finish_block_internal): New function, from old
5475         finish_block.
5476         (finish_block): Rewrite.
5477         (end_symtab): Use finish_block_internal, set_block_symtab.
5478         * block.h (struct global_block): New.
5479         (allocate_global_block, set_block_symtab): Declare.
5480         * block.c (allocate_global_block, set_block_symtab): New
5481         functions.
5482
5483 2012-05-10  Tom Tromey  <tromey@redhat.com>
5484
5485         * psymtab.c (partial_map_expand_apply): Add assertion.
5486         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5487         (psymtab_to_symtab): Find unshared psymtab.
5488         (dump_psymtab): Print including psymtabs.
5489         (recursively_search_psymtabs): New function.
5490         (expand_symtabs_matching_via_partial): Use it.
5491         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5492         fields.
5493         (enum psymtab_search_status): New.
5494
5495 2012-05-10  Tom Tromey  <tromey@redhat.com>
5496
5497         * tracepoint.c (scope_info): Update.
5498         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5499         (find_pc_sect_symtab, search_symbols)
5500         (default_make_symbol_completion_list_break_on)
5501         (make_file_symbol_completion_list): Update.
5502         * symmisc.c (dump_symtab_1): Update.
5503         * stack.c (print_frame_args, iterate_over_block_locals)
5504         (print_frame_labels, iterate_over_block_arg_vars): Update.
5505         * python/py-block.c (block_object) <dict>: Remove.
5506         <block>: New field.
5507         <iter>: Change type.
5508         (blpy_iter): Update.
5509         (blpy_block_syms_iternext): Update.
5510         * psymtab.c (map_block): Use block iterators.
5511         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5512         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5513         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5514         * infrun.c (check_exception_resume): Update.
5515         * cp-support.c (make_symbol_overload_list_block): Update.
5516         * coffread.c (patch_opaque_types): Update.
5517         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5518         * block.h (struct block_iterator): New.
5519         (block_iterator_first, block_iterator_next, block_iter_name_first)
5520         (block_iter_name_next, block_iter_match_first)
5521         (block_iter_match_next): Declare.
5522         (ALL_BLOCK_SYMBOLS): Redefine.
5523         * block.c (block_iterator_first, block_iterator_next)
5524         (block_iter_name_first, block_iter_name_next)
5525         (block_iter_match_first, block_iter_match_next): New functions.
5526         * ada-lang.c (ada_add_block_symbols)
5527         (ada_make_symbol_completion_list): Use block iterator.
5528
5529 2012-05-10  Tom Tromey  <tromey@redhat.com>
5530
5531         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5532         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5533         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5534         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5535         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5536         Update.
5537
5538 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5539
5540         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5541         print-file-var-lib2.c, print-file-var-main.c and
5542         print-file-var.exp (located in gdb/testsuite/gdb.base).
5543
5544 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5545
5546         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5547         try locating the symbol in the symbol's own objfile first, before
5548         extending the search to all objfiles.
5549         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5550         out of lookup_symbol_aux_symtabs.
5551         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5552         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5553         Do not search EXCLUDE_OBJFILE.
5554         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5555         (lookup_symbol_global): Search for matches in the block's objfile
5556         first, before searching all other objfiles.
5557
5558 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5559
5560         * printcmd.c (set_command): Add pre/post inc/dec.
5561
5562 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5563
5564         * gdb.1: Document -ex option.
5565
5566 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5567
5568         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5569         * inferior.h (AT_SYMBOL): Delete.
5570
5571 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5572
5573         * mips-tdep.c (mips_push_dummy_code): New function.
5574         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5575         ON_STACK and install mips_push_dummy_code as our gdbarch
5576         push_dummy_code routine.
5577
5578 2012-05-09  Pedro Alves  <palves@redhat.com>
5579
5580         * target.c (set_maintenance_target_async_permitted): Rename to ...
5581         (set_target_async_command): ... this.
5582         (show_maintenance_target_async_permitted): Rename to ...
5583         (show_target_async_command): ... this.
5584         (initialize_targets): Adjust.
5585
5586 2012-05-08  Doug Evans  <dje@google.com>
5587
5588         * go-exp.y (classify_name): Add missing assignment of fields of
5589         yylval.ssym.
5590
5591 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5592
5593         Display the ">" prompt in interactive mode while reading canned
5594         commands, even when the current interpreter is MI.
5595
5596         * interps.c (interp_set_temp): New function.
5597
5598         * interps.h (interp_set_temp): Add prototype.
5599
5600         * cli/cli-script.c (restore_interp): New cleanup function.
5601         (read_command_lines): Temporarily override the current interpreter
5602         with CLI and arrange for restoring the original one.
5603
5604 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5605
5606         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5607
5608 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5609
5610         * probe.c (parse_probes): Move conditional to check for
5611         debuginfo files from here...
5612         * stap-probe.c (stap_get_probes): ... to here.
5613
5614 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5615             H.J. Lu  <hongjiu.lu@intel.com>
5616
5617         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5618         `movl %esp, %ebp' for the X32 ABI.
5619
5620 2012-05-07  Tom Tromey  <tromey@redhat.com>
5621
5622         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5623         get_DW_TAG_name.
5624         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5625         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5626         (dwarf_stack_op_name): Remove.
5627         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5628         (decode_locdesc): Use get_DW_OP_name.
5629         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5630         (dwarf2_compile_expr_to_ax): Likewise.
5631         (disassemble_dwarf_expression): Likewise.
5632         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5633
5634 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5635
5636         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5637         (sh_linux_sigtramp_cache): New function.
5638         (sh_linux_sigreturn_init): New function.
5639         (sh_linux_rt_sigreturn_init): New function.
5640         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5641         patterns.
5642         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5643         syscall codes.
5644         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5645         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5646         (sh_linux_init_abi): Add init calls to register new tramp_frame
5647         definitions under 32-bit SH, update comments.
5648
5649 2012-05-07  Pedro Alves  <palves@redhat.com>
5650
5651         PR gdb/10952
5652
5653         * amd64-linux-tdep.c: Include glibc-tdep.h.
5654         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5655         gdbarch_skip_solib_resolver callback.
5656
5657 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5658
5659         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5660         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5661         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5662         (add_auto_load_safe_path): Change the error message.
5663         (_initialize_auto_load): Change the "safe-path" help text.
5664         * configure: Regenerate
5665         * configure.ac (--without-auto-load-safe-path): Set
5666         WITH_AUTO_LOAD_SAFE_PATH to /.
5667
5668 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5669
5670         * stap-probe.h: Do not include unecessary `probe.h'.
5671
5672 2012-05-05  Alan Modra  <amodra@gmail.com>
5673
5674         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5675         bfd_und_section_ptr.
5676         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5677         and bfd_com_section_ptr.
5678
5679 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5680
5681         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5682
5683 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5684
5685         * windows-nat.h (segment_register_p_ftype): New typedef.
5686         (windows_set_segment_register_p): Add declaration.
5687         * windows-nat.c (segment_register_p): New static global.
5688         (windows_set_segment_register_p): New function.
5689         (do_windows_fetch_inferior_registers): Add special handling
5690         for segment registers.
5691         * amd64-windows-nat.c: #include "amd64-tdep.h".
5692         (amd64_windows_segment_register_p): New function.
5693         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5694         * i386-windows-nat.c: #include "i386-tdep.h".
5695         (i386_windows_segment_register_p): New function.
5696         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5697
5698 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5699
5700         * printcmd.c (set_command): Emit a warning if the expression is not
5701         an assignment.
5702
5703 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5704
5705         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5706         Make static.
5707
5708 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5709
5710         * stap-probe.c (stap_is_operator): Change declaration.
5711         (stap_get_opcode): Change return value.
5712         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5713         `stap_parse_argument_1'.
5714
5715 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5716
5717         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5718         debug log.
5719
5720 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5721
5722         Add two new methods global_block and static_block to gdb.Symtab
5723         objects.
5724         * NEWS (Python scripting): Add entry about the new methods.
5725         * python/py-symtab.c (stpy_global_block): New function which
5726         implements the gdb.Symtab.global_block() method.
5727         (stpy_static_block): New function which implements the
5728         gdb.Symtab.static_block() method.
5729         (symtab_object_methods): Add entries for the two new methods.
5730
5731 2012-05-03  Doug Evans  <dje@google.com>
5732
5733         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5734         files.
5735
5736 2012-05-03  Yao Qi  <yao@codesourcery.com>
5737
5738         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5739         space.
5740         (i386_process_record): Ditto.
5741
5742 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5743
5744         * infcall.c (unwind_on_signal_p): Make static.
5745
5746 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5747
5748         * sol-thread.c (solaris_pid_to_str): Make static.
5749         (_initialize_sol_thread): Add prototype.
5750
5751 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5752
5753         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5754
5755 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5756
5757         * MAINTAINERS: Remove myself.
5758
5759 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5760
5761         Fix --without-auto-load-safe-path for MS-Windows host platform.
5762         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5763
5764 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5765
5766         * gdb_curses.h: Undefine KEY_EVENT before including curses
5767         headers.  Move "#undef MOUSE_MOVED" before any curses header
5768         inclusion.
5769
5770 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5771
5772         * features/i386/i386-mmx-linux.c: Regenerate.
5773         * features/rs6000/powerpc-32.c: Likewise.
5774         * features/rs6000/powerpc-32l.c: Likewise.
5775         * features/rs6000/powerpc-403.c: Likewise.
5776         * features/rs6000/powerpc-403gc.c: Likewise.
5777         * features/rs6000/powerpc-405.c: Likewise.
5778         * features/rs6000/powerpc-505.c: Likewise.
5779         * features/rs6000/powerpc-601.c: Likewise.
5780         * features/rs6000/powerpc-602.c: Likewise.
5781         * features/rs6000/powerpc-603.c: Likewise.
5782         * features/rs6000/powerpc-604.c: Likewise.
5783         * features/rs6000/powerpc-64.c: Likewise.
5784         * features/rs6000/powerpc-64l.c: Likewise.
5785         * features/rs6000/powerpc-750.c: Likewise.
5786         * features/rs6000/powerpc-860.c: Likewise.
5787         * features/rs6000/powerpc-e500.c: Likewise.
5788         * features/rs6000/powerpc-e500l.c: Likewise.
5789         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5790         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5791         * features/rs6000/rs6000.c: Likewise.
5792
5793 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5794
5795         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5796         variable.
5797         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5798         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5799         (stap_parse_argument) <e>: Likewise.
5800         (handle_stap_probe) <byte_order>: Likewise.
5801
5802 2012-04-30  Doug Evans  <dje@google.com>
5803
5804         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5805         init_and_read_dies_worker.  All callers updated.
5806         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5807         replaced with init_cutu_and_read_dies.
5808         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5809         (find_partial_die): Remove FIXME.  Don't free current CU.
5810
5811 2012-04-30  Sterling Augustine  <saugustine@google.com>
5812
5813         * contrib: New directory.
5814         * contrib/test_pubnames_and_indexes.py: New file.
5815
5816 2012-04-30  Doug Evans  <dje@google.com>
5817
5818         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5819         All callers updated.
5820         (init_cu_die_reader): Verify the section is non-empty.
5821         (dwarf_decode_line_header): Don't dereference section->asection
5822         until we know the section is present.
5823
5824 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5825
5826         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5827         probes.
5828
5829 2012-04-29  Yao Qi  <yao@codesourcery.com>
5830
5831         * gdb-code-style.el: New hook gdb-markup-hook
5832         and gdb-comment-hook.
5833
5834 2012-04-28  Doug Evans  <dje@google.com>
5835
5836         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5837         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5838         objfile->obfd.
5839         * symfile.h (dwarf2_debug_sections): New member addr.
5840         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5841         (ctx_no_get_addr_index): New function.
5842         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5843         (ctx_no_get_addr_index): Declare.
5844         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5845         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5846         (dwarf_expr_ctx_funcs): Update.
5847         (needs_get_addr_index): New function.
5848         (needs_frame_ctx_funcs): Update.
5849         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5850         * dwarf2read.c: #include "gdbcore.h".
5851         (dwarf2_per_objfile): New members addr, dwo_files.
5852         (dwarf2_elf_names): Add entry for addr.
5853         (struct dwo_section_names): New type.
5854         (dwo_section_names): New static global.
5855         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5856         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5857         old debug_types_section member updated to use this.
5858         Rename member debug_types_section to info_or_types_section,
5859         all uses updated.
5860         (signatured_type): Rename member type_offset to type_offset_in_tu,
5861         all uses updated.  New member type_offset_in_section.
5862         (struct dwo_sections): New type.
5863         (struct dwo_unit): New type.
5864         (struct dwo_file): New type.
5865         (die_reader_specs): New member dwo_file.
5866         (dwarf2_locate_sections): Watch for .debug_addr.
5867         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5868         (dwarf2_read_section): Get bfd of section from bfd's asection,
5869         instead of objfile.
5870         (create_cus_from_index): Initialize the_cu->info_or_types_section.
5871         (create_signatured_type_table_from_index): Initialize
5872         sig_type->info_or_types_section.
5873         (dw2_get_file_names): Statement lists for type units with DWO files
5874         live in the DWO file.
5875         (create_debug_types_hash_table): New function.
5876         (create_all_type_units): Rewrite.
5877         (init_cu_die_reader): New arg dwo_file, all callers updated.
5878         (init_and_read_dies_worker): Get section from
5879         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
5880         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5881         continue reading the CU/TU from there.
5882         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5883         updated.  Get section from this_cu->info_or_types_section.
5884         (create_all_comp_units): Initialize this_cu->info_or_types_section.
5885         (skip_one_die): New cases DW_FORM_GNU_addr_index,
5886         DW_FORM_GNU_str_index.
5887         (hash_dwo_file, eq_dwo_file): New functions.
5888         (allocate_dwo_file_hash_table): New function.
5889         (hash_dwo_unit, eq_dwo_unit): New functions.
5890         (allocate_dwo_unit_table): New function.
5891         (dwarf2_locate_dwo_sections): New function.
5892         (struct create_dwo_info_table_data): New type.
5893         (create_debug_info_hash_table_reader): New function.
5894         (create_debug_info_hash_table): New function.
5895         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5896         (lookup_dwo_file): New function.
5897         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5898         (free_dwo_file, free_dwo_file_cleanup): New functions.
5899         (free_dwo_file_from_slot, free_dwo_files): New functions.
5900         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5901         (dwarf2_record_block_ranges): Ditto.
5902         (read_partial_die): Ditto.
5903         (process_enumeration_scope): Update to use type_offset_in_section.
5904         (read_full_die_1): New function.
5905         (read_full_die): Rewrite.
5906         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5907         DW_FORM_GNU_str_index.
5908         (read_addr_index_1, read_addr_index): New functions.
5909         (read_addr_index_from_leb128): New function.
5910         (struct dwarf2_read_addr_index_data): New type.
5911         (dwarf2_read_addr_index_reader): New function.
5912         (dwarf2_read_addr_index): New function.
5913         (read_str_index): New function.
5914         (leb128_size): New function.
5915         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5916         If processing a type unit from a DWO file, get the line section
5917         from the DWO file.
5918         (var_decode_location): Watch for DW_OP_GNU_addr_index.
5919         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5920         DW_FORM_GNU_str_index.
5921         (lookup_die_type): Check whether section offset of type's die is
5922         known before looking it up.  Remove assert.  Condition can
5923         legimately happen for inter-cu type references.
5924         (dwarf_attr_name): Handle Fission attributes.
5925         (dwarf_form_name): Handle Fission forms.
5926         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5927         DW_FORM_GNU_str_index.
5928         (follow_die_sig): Update to use type_offset_in_section.
5929         (decode_locdesc): New case DW_OP_GNU_addr_index.
5930         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5931         DW_FORM_GNU_str_index.
5932         (cu_debug_loc_section): New function.
5933         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5934         (dwarf2_per_objfile_free): Unmap .debug_addr section.
5935         Free DWO files if present.
5936         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5937
5938         Refactor DIE reading.
5939         * dwarf2read.c (dwarf2_per_objfile): Replace members
5940         debug_info_type_hash and debug_types_type_hash with die_type_hash.
5941         (die_reader_specs): New member "die_section".  Temporarily make
5942         member "buffer" non-const, pending constifying all info_ptr uses.
5943         (die_reader_func_ftype): New typedef.
5944         (dw2_get_file_names_reader): New function.
5945         (dw2_get_file_names): Rewrite.
5946         (read_and_check_type_unit_head): Rename arg type_offset to
5947         type_offset_in_tu.
5948         (create_all_type_units): Improve debugging message.
5949         Improve dummy type unit check.
5950         (init_cu_die_reader): New arg "section".  All callers updated.
5951         (init_and_read_dies_worker): New function.
5952         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5953         (init_cutu_and_read_dies_no_follow): New function.
5954         (init_cutu_and_read_dies_simple): New function.
5955         (process_psymtab_comp_unit_reader): New function.
5956         (process_psymtab_comp_unit): Delete args section,
5957         is_debug_types_section.  Rewrite.  All callers updated.
5958         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5959         All callers updated.  Rewrite.
5960         (load_partial_comp_unit_reader): New function.
5961         (load_partial_comp_unit): Rewrite.
5962         (skip_children): New arg reader.  Delete args buffer, cu.
5963         All callers updated.
5964         (skip_one_die): New arg reader.  Delete args buffer, cu.
5965         All callers updated.
5966         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
5967         All callers updated.
5968         (load_full_comp_unit_reader): New function.
5969         (load_full_comp_unit): Rewrite.
5970         (read_comp_unit): Delete.
5971         (read_die_and_children_1): Delete, contents moved ...
5972         (read_die_and_children): ... here.
5973         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
5974         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
5975         All callers updated.
5976         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
5977         All callers updated.
5978         (find_partial_die): Rewrite load_all_dies support.
5979         (read_attribute_value): New arg reader.  Delete args abfd, cu.
5980         All callers updated.
5981         (read_attribute): New arg reader.  Delete args abfd, cu.
5982         All callers updated.
5983         (load_full_type_unit): Add assert.
5984         (read_signatured_type_reader): New function.
5985         (read_signatured_type): Rewrite.
5986         (free_stack_comp_unit): Remove call to age_cached_comp_units.
5987         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5988         All callers updated.  Set per_cu->cu = NULL after freeing it.
5989         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5990         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5991         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5992         (set_die_type): Update.
5993         (get_die_type_at_offset): Update.
5994         (read_file_scope): Call prepare_one_comp_unit.
5995         (read_type_unit_scope): Ditto.
5996         (prepare_one_comp_unit): Set producer if present.
5997
5998 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
5999
6000         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6001          gettext function on `error'.
6002
6003 2012-04-27  Doug Evans  <dje@google.com>
6004
6005         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6006         is empty.
6007
6008 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6009             Tom Tromey  <tromey@redhat.com>
6010
6011         * breakpoint.c (struct breakpoint_objfile_data)
6012         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6013         <exception_probes>: New fields.
6014         (free_breakpoint_probes): New function.
6015         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6016         `_Unwind_DebugHook'.
6017         (create_exception_master_breakpoint): Likewise.
6018         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6019         * infrun.c: Including necessary header files for handling SystemTap
6020         probes.
6021         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6022         via SystemTap probes.
6023         (check_exception_resume): Remove `func' argument.  Handle exception
6024         unwinding breakpoint set via a SystemTap probe.
6025         (insert_exception_resume_from_probe): New function.
6026
6027 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6028             Tom Tromey  <tromey@redhat.com>
6029             Jan Kratochvil  <jan.kratochvil@redhat.com>
6030
6031         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6032         (COMMON_OBS): Likewise.
6033         (HFILES_NO_SRCDIR): Add `probe'.
6034         * NEWS: Mention support for static and SystemTap probes.
6035         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6036         SystemTap probes' arguments parser.
6037         * arm-linux-tdep.c: Including headers needed to perform the parsing
6038         of SystemTap probes' arguments.
6039         (arm_stap_is_single_operand): New function.
6040         (arm_stap_parse_special_token): Likewise.
6041         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6042         probes' arguments parser.
6043         * ax-gdb.c (require_rvalue): Removing static declaration.
6044         (gen_expr): Likewise.
6045         * ax-gdb.h (gen_expr): Declaring function.
6046         (require_rvalue): Likewise.
6047         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6048         (bkpt_probe_breakpoint_ops): New variable.
6049         (momentary_breakpoint_from_master): Set the `probe' value.
6050         (add_location_to_breakpoint): Likewise.
6051         (break_command_1): Using proper breakpoint_ops according to the
6052         argument passed by the user in the command line.
6053         (bkpt_probe_insert_location): New function.
6054         (bkpt_probe_remove_location): Likewise.
6055         (bkpt_probe_create_sals_from_address): Likewise.
6056         (bkpt_probe_decode_linespec): Likewise.
6057         (tracepoint_probe_create_sals_from_address): Likewise.
6058         (tracepoint_probe_decode_linespec): Likewise.
6059         (tracepoint_probe_breakpoint_ops): New variable.
6060         (trace_command): Using proper breakpoint_ops according to the
6061         argument passed by the user in the command line.
6062         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6063         static probes on breakpoints and tracepoints.
6064         * breakpoint.h (struct bp_location) <probe>: New field.
6065         * cli-utils.c (skip_spaces_const): New function.
6066         (extract_arg): Likewise.
6067         * cli-utils.h (skip_spaces_const): Likewise.
6068         (extract_arg): Likewise.
6069         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6070         * configure.ac: Append `stap-probe.o' to be generated when ELF
6071         support is present.
6072         * configure: Regenerate.
6073         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6074         * elfread.c: Include `probe.h' and `arch-utils.h'.
6075         (probe_key): New variable.
6076         (elf_get_probes): New function.
6077         (elf_get_probe_argument_count): Likewise.
6078         (elf_evaluate_probe_argument): Likewise.
6079         (elf_compile_to_ax): Likewise.
6080         (elf_symfile_relocate_probe): Likewise.
6081         (stap_probe_key_free): Likewise.
6082         (elf_probe_fns): New variable.
6083         (elf_sym_fns): Add `sym_probe_fns' value.
6084         (elf_sym_fns_lazy_psyms): Likewise.
6085         (elf_sym_fns_gdb_index): Likewise.
6086         (_initialize_elfread): Initialize objfile cache for static
6087         probes.
6088         * gdb_vecs.h (struct probe): New forward declaration.
6089         (probe_p): New VEC declaration.
6090         * gdbarch.c: Regenerate.
6091         * gdbarch.h: Regenerate.
6092         * gdbarch.sh (stap_integer_prefix): New variable.
6093         (stap_integer_suffix): Likewise.
6094         (stap_register_prefix): Likewise.
6095         (stap_register_suffix): Likewise.
6096         (stap_register_indirection_prefix): Likewise.
6097         (stap_register_indirection_suffix): Likewise.
6098         (stap_gdb_register_prefix): Likewise.
6099         (stap_gdb_register_suffix): Likewise.
6100         (stap_is_single_operand): New function.
6101         (stap_parse_special_token): Likewise.
6102         (struct stap_parse_info): Forward declaration.
6103         * i386-tdep.c: Including headers needed to perform the parsing
6104         of SystemTap probes' arguments.
6105         (i386_stap_is_single_operand): New function.
6106         (i386_stap_parse_special_token): Likewise.
6107         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6108         probes' arguments parser.
6109         * i386-tdep.h (i386_stap_is_single_operand): New function.
6110         (i386_stap_parse_special_token): Likewise.
6111         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6112         * mipsread.c (ecoff_sym_fns): Likewise.
6113         * objfiles.c (objfile_relocate1): Support relocation for static
6114         probes.
6115         * parse.c (prefixify_expression): Remove static declaration.
6116         (initialize_expout): Likewise.
6117         (reallocate_expout): Likewise.
6118         * parser-defs.h (initialize_expout): Declare function.
6119         (reallocate_expout): Likewise.
6120         (prefixify_expression): Likewise.
6121         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6122         of SystemTap probes' arguments.
6123         (ppc_stap_is_single_operand): New function.
6124         (ppc_stap_parse_special_token): Likewise.
6125         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6126         probes' arguments parser.
6127         * probe.c: New file, for generic statically defined probe support.
6128         * probe.h: Likewise.
6129         * s390-tdep.c: Including headers needed to perform the parsing of
6130         SystemTap probes' arguments.
6131         (s390_stap_is_single_operand): New function.
6132         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6133         probes' arguments parser.
6134         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6135         * stap-probe.c: New file, for SystemTap probe support.
6136         * stap-probe.h: Likewise.
6137         * symfile.h: Include `gdb_vecs.h'.
6138         (struct sym_probe_fns): New struct.
6139         (struct sym_fns) <sym_probe_fns>: New field.
6140         * symtab.c (init_sal): Initialize `probe' field.
6141         * symtab.h (struct probe): Forward declaration.
6142         (struct symtab_and_line) <probe>: New field.
6143         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6144         locations.
6145         (stop_tracing): Likewise.
6146         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6147
6148 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6149             Tom Tromey  <tromey@redhat.com>
6150
6151         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6152         and to compile agent expressions.
6153         * infrun.c (siginfo_make_value): New argument `ignore'.
6154         (siginfo_funcs): New struct.
6155         (_initialize_infrun): New argument when calling
6156         `create_internalvar_type_lazy'.
6157         * thread.c (thread_id_make_value): New argument `ignore'.
6158         (thread_funcs): New struct.
6159         (_initialize_thread): New argument when calling
6160         `create_internalvar_type_lazy'.
6161         * tracepoint.c (sdata_make_value): New argument `ignore'.
6162         (sdata_funcs): New struct.
6163         (_initialize_tracepoint): New argument when calling
6164         `create_internalvar_type_lazy'.
6165         * value.c (make_value): New struct.
6166         (create_internalvar_type_lazy): New argument `data'.
6167         (compile_internalvar_to_ax): New function.
6168         (value_of_internalvar): Properly handling `make_value' case.
6169         (clear_internalvar): Likewise.
6170         (show_convenience): Adding `TRY_CATCH' block.
6171         * value.h (internalvar_make_value): Delete, replace by...
6172         (struct internalvar_funcs): ... this.
6173         (create_internalvar_type_lazy) <fun>: Delete argument.
6174         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6175         (compile_internalvar_to_ax): New function.
6176         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6177         (tlb_funcs): New struct.
6178         (_initialize_windows_tdep): New argument when calling
6179         `create_internalvar_type_lazy'.
6180
6181 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6182
6183         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6184         see whether it is an address or a constant offset from DW_AT_low_pc.
6185         (dwarf2_record_block_ranges): Likewise.
6186         (read_partial_die): Likewise.
6187
6188 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6189
6190         * MAINTAINERS (Write After Approval): Add myself to the list.
6191
6192 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6193
6194         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6195         (proc_prettyprint_signal): Likewise.
6196         (proc_prettyprint_faultset): Likewise.
6197         (proc_prettyprint_fault): Likewise.
6198         (proc_prettyprint_actionset): Likewise.
6199         (proc_prettyprint_flags): Move to new proc-flags.c section.
6200         (proc_prettyfprint_flags): New prototype.
6201         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6202         (proc_syscall, proc_cursig): Likewise.
6203         (proc_set_kill_on_last_close): Likewise.
6204         (proc_unset_kill_on_last_close): Likewise.
6205         (proc_set_watchpoint): Make static.
6206         (proc_delete_dead_threads): Likewise.
6207         (procfs_set_watchpoint): Likewise.
6208         (_initialize_procfs): Add prototype.
6209         * proc-events.c: Include proc-utils.h.
6210         (init_syscall_table): Make static.
6211         * proc-api.c (_initialize_proc_api): Add prototype.
6212         * proc-flags.c: Include proc-utils.h.
6213
6214 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6215
6216         * configure.ac: Add AC_ARG_PROGRAM.
6217         * configure: Regenerate.
6218
6219 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6220
6221         Fix DW_AT_lower_bound defaults for DWARF-4+.
6222         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6223         high.  New variable low_default_is_valid.  Implement DWARF-4+
6224         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6225         no default by the DWARF standard.
6226
6227 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6228             Maciej W. Rozycki  <macro@codesourcery.com>
6229
6230         * infrun.c (handle_inferior_event): Move the check for return
6231         trampolines ahead of the check for function trampolines.
6232         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6233         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6234         (mips_str_mips16_ret_stub): Likewise.
6235         (mips_str_call_fp_stub): Likewise.
6236         (mips_str_call_stub): Likewise.
6237         (mips_str_fn_stub): Likewise.
6238         (mips_str_pic): Likewise.
6239         (mips_in_frame_stub): New function.
6240         (mips_unwind_pc): Return the return address rather than the PC
6241         if the PC of an intermediate frame is inside a call thunk.
6242         (mips_is_stub_suffix): New function.
6243         (mips_is_stub_mode): Likewise.
6244         (mips_get_mips16_fn_stub_pc): Likewise.
6245         (mips_skip_mips16_trampoline_code): Update to handle all the
6246         currently generated stub types.  Don't recurse into __fn_stub
6247         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6248         Use cooked register accesses.
6249         (mips_in_return_stub): Reintroduce function.
6250         (mips_skip_trampoline_code): Traverse trampolines recursively.
6251         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6252
6253 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6254
6255         GDB 7.4.1 released.
6256
6257 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6258
6259         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6260         * features/arm-with-m-vfp-d16.xml: New file. Describes
6261         Cortex-M with VFPv4-sp-d16 FPU register layout.
6262         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6263         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6264         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6265         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6266         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6267
6268 2012-04-25  Doug Evans  <dje@google.com>
6269
6270         * cli/cli-decode.c (print_doc_line): Use stream instead of
6271         current_uiout.
6272
6273 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6274
6275         * features/arm-with-iwmmxt.c: Regenerate.
6276         * features/arm-with-m-fpa-layout.c: Likewise.
6277         * features/arm-with-m.c: Likewise.
6278         * features/arm-with-neon.c: Likewise.
6279         * features/arm-with-vfpv2.c: Likewise.
6280         * features/arm-with-vfpv3.c: Likewise.
6281         * features/mips-dsp-linux.c: Likewise.
6282         * features/mips-linux.c: Likewise.
6283         * features/mips64-dsp-linux.c: Likewise.
6284         * features/mips64-linux.c: Likewise.
6285         * features/s390-linux32.c: Likewise.
6286         * features/s390-linux32v1.c: Likewise.
6287         * features/s390-linux32v2.c: Likewise.
6288         * features/s390-linux64.c: Likewise.
6289         * features/s390-linux64v1.c: Likewise.
6290         * features/s390-linux64v2.c: Likewise.
6291         * features/s390x-linux64.c: Likewise.
6292         * features/s390x-linux64v1.c: Likewise.
6293         * features/s390x-linux64v2.c: Likewise.
6294         * features/tic6x-c62x-linux.c: Likewise.
6295         * features/tic6x-c62x.c: Likewise.
6296         * features/tic6x-c64x-linux.c: Likewise.
6297         * features/tic6x-c64x.c: Likewise.
6298         * features/tic6x-c64xp-linux.c: Likewise.
6299         * features/tic6x-c64xp.c: Likewise.
6300         * target-descriptions.c: Only generate `field_type' and `type'
6301         variables when needed.
6302
6303 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6304
6305         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6306
6307 2012-04-25  Doug Evans  <dje@google.com>
6308
6309         Initial pass at Go language support.
6310         * NEWS: Mention Go.
6311         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6312         go-valprint.c.
6313         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6314         (YYFILES): Add go-exp.c.
6315         (YYOBJ): Add go-exp.o.
6316         (local-maintainer-clean): Delete go-exp.c.
6317         * defs.h (enum language): Add language_go.
6318         * dwarf2read.c: #include "go-lang.h".
6319         (fixup_go_packaging): New function.
6320         (process_full_comp_unit): Call it when processing Go CUs.
6321         (dwarf2_physname): Add Go support.
6322         (read_file_scope): Handle missing language spec for GNU Go.
6323         (set_cu_language): Handle DW_LANG_Go.
6324         * go-exp.y: New file.
6325         * go-lang.h: New file.
6326         * go-lang.c: New file.
6327         * go-typeprint.c: New file.
6328         * go-valprint.c: New file.
6329         * symtab.c: #include "go-lang.h".
6330         (symbol_set_language): Handle language_go.
6331         (symbol_find_demangled_name, symbol_set_names): Ditto.
6332         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6333
6334 2012-04-24  Jim Meyering  <meyering@redhat.com>
6335
6336         avoid a few strncpy-induced buffer overruns
6337         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6338         fname and psargs before trying to concatenate.
6339         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6340         "name" before applying strchr.
6341
6342 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6343
6344         * CONTRIBUTE: Use unified diff instead of context diff when
6345         generating patches.
6346
6347 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6348
6349         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6350         code.  Handle JR.HB correctly.
6351
6352 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6353
6354         * mips-tdep.c
6355         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6356         with the other MIPS16 helpers.
6357
6358 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6359
6360         * observer.sh: Conditionally declare `args', thus cleaning up
6361         unused instances of this variable.
6362
6363 2012-04-24  Yao Qi  <yao@codesourcery.com>
6364
6365         Revert this patch to allow breakpoint always-inserted
6366         in record target.
6367         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6368         * breakpoint.c: Include record.h.
6369         (breakpoints_always_inserted_mode): Return false when the record
6370         target is in use.
6371
6372         * breakpoint.c (iterate_over_bp_locations): New.
6373         * breakpoint.h: Declare.
6374         New typedef walk_bp_location_callback.
6375         * record.c (record_open): Call record_init_record_breakpoints.
6376         (record_sync_record_breakpoints): New.
6377         (record_init_record_breakpoints): New.
6378         * NEWS: Mention supporting breakpoint always-inserted mode in
6379         record target.
6380
6381 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6382
6383         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6384         any thread.
6385
6386 2012-04-24  Yao Qi  <yao@codesourcery.com>
6387
6388         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6389         (is_catchpoint): ... it.
6390         (print_one_breakpoint_location): Caller update.
6391         * breakpoint.h: Update declaration.
6392
6393 2012-04-23  David S. Miller  <davem@davemloft.net>
6394
6395         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6396
6397 2012-04-23  Tom Tromey  <tromey@redhat.com>
6398
6399         * buildsym.c (add_free_pendings): Remove.
6400         * buildsym.h (add_free_pendings): Remove.
6401
6402 2012-04-23  Doug Evans  <dje@google.com>
6403
6404         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6405         attr.u.unsnd instead of attr.u.addr.
6406         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6407         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6408         DW_FORM_ref_udata.
6409         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6410         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6411         DW_FORM_ref_udata.
6412         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6413
6414 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6415
6416         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6417         (mips_o32_return_value): Likewise.
6418         (mips_o64_return_value): Likewise.
6419
6420 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6421
6422         * ada-lang.c (ada_evaluate_subexp): Add cases for
6423         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6424         their treatment in eval.c.
6425
6426 2012-04-21  David S. Miller  <davem@davemloft.net>
6427
6428         * sparc-tdep.c (X_DISP10): Define.
6429         (sparc_analyze_control_transfer): Handle compare-and-branch.
6430
6431 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6432
6433         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6434         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6435
6436 2012-04-20  Nigel Stephens  <nigel@mips.com>
6437             Maciej W. Rozycki  <macro@codesourcery.com>
6438
6439         * mips-tdep.c (mips_float_register_p): New function.
6440         (mips_convert_register_float_case_p): Use mips_float_register_p.
6441         (mips_register_type): Likewise.
6442         (mips_print_register): Likewise.
6443         (print_gp_register_row): Likewise.
6444         (mips_print_registers_info): Likewise.
6445
6446 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6447
6448         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6449         of mips16 symbols.
6450
6451 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6452
6453         * MAINTAINERS (Write After Approval): Add myself to the list.
6454
6455 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6456
6457         * MAINTAINERS: Update my e-mail address.
6458
6459 2012-04-20  Pedro Alves  <palves@redhat.com>
6460
6461         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6462         $srcdir.
6463         * configure: Regenerate.
6464
6465 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6466
6467         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6468         declaration.
6469         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6470
6471 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6472
6473         Fix compilation compatibility with python-2.4
6474         * python/py-type.c (convert_field): Cast ADDRSTRING for
6475         PyObject_SetAttrString as non-const.  New comment.
6476
6477 2012-04-19  Tom Tromey  <tromey@redhat.com>
6478
6479         * top.c (quit_target): Use all_cleanups.
6480         * main.c (captured_command_loop): Use all_cleanups.
6481         * exceptions.c (throw_exception): Use all_cleanups.
6482
6483 2012-04-19  Pedro Alves  <palves@redhat.com>
6484
6485         * Makefile.in (GNULIB_BUILDDIR): New.
6486         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6487         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6488         (CLEANDIRS). Remove gnulib/import.
6489         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6490         (all-lib): Ditto.
6491         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6492         (gnulib/import/Makefile): Replace gnulib/import with
6493         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6494         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6495         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6496         acx_configure_dir.m4.
6497         * acinclude.m4: Include acx_configure_dir.m4.
6498         * acx_configure_dir.m4: New file.
6499         * aclocal.m4: Regenerate.
6500         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6501         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6502         (GNULIB): New variable.
6503         (GNULIB_STDINT_H): Adjust.
6504         (AC_OUTPUT): Don't output gnulib/Makefile.
6505         * gdb/defs.h: Include build-gnulib/config.h.
6506         * aclocal.m4: Regenerate.
6507         * config.in: Regenerate.
6508         * configure: Regenerate.
6509
6510         * gnulib/Makefile.in: New file.
6511         * gnulib/configure.ac: New file.
6512         * gnulib/aclocal.m4: New file.
6513         * gnulib/config.in: New file.
6514         * gnulib/configure: New file.
6515         * gnulib/: Re-run gnulib-tool to adjust.
6516
6517 2012-04-19  Doug Evans  <dje@google.com>
6518
6519         * cleanups.h (struct cleanup): Move to cleanups.c.
6520         (make_cleanup_dtor_ftype): New typedef.
6521         (make_cleanup_dtor): Use it.
6522         (ALL_CLEANUPS): Replace with ...
6523         (all_cleanups): ... this.  Declare.  All uses updated.
6524         * cleanups.c: #include "gdb_assert.h".
6525         (sentinel_cleanup): New static global.
6526         (SENTINEL_CLEANUP): Define.
6527         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6528         (make_my_cleanup2): Assert result is non-NULL.
6529         (all_cleanups): New function.
6530         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6531         of NULL.
6532
6533 2012-04-19  Pedro Alves  <palves@redhat.com>
6534
6535         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6536         Adjust paths to gnulib imported files.
6537
6538 2012-04-19  Pedro Alves  <palves@redhat.com>
6539
6540         * gnulib/: Move whole directory ...
6541         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6542         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6543         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6544         (aclocal_m4_deps): Adjust.
6545         * aclocal.m4: Regenerate.
6546         * configure: Regenerate.
6547         * configure.ac: Adjust AC_OUTPUT output.
6548
6549 2012-04-19  Yao Qi  <yao@codesourcery.com>
6550
6551         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6552         (vec.o): New rule.
6553         * vec.c: Move it ...
6554         * common/vec.c: ... here.
6555         * vec.h: Move it ...
6556         * common/vec.h: ... here.
6557
6558 2012-04-19  Yao Qi  <yao@codesourcery.com>
6559
6560         * gdb-code-style.el: New.
6561
6562 2012-04-18  Pedro Alves  <palves@redhat.com>
6563
6564         Update gnulib from latest git.
6565         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6566
6567         * gnulib/Makefile.am: Update.
6568         * gnulib/dummy.c: Update.
6569         * gnulib/extra/arg-nonnull.h: Update.
6570         * gnulib/extra/c++defs.h: Update.
6571         * gnulib/extra/update-copyright: Update.
6572         * gnulib/extra/warn-on-use.h: Update.
6573         * gnulib/inttypes.in.h: Update.
6574         * gnulib/m4/00gnulib.m4: Update.
6575         * gnulib/m4/extensions.m4: Update.
6576         * gnulib/m4/gnulib-cache.m4: Update.
6577         * gnulib/m4/gnulib-common.m4: Update.
6578         * gnulib/m4/gnulib-comp.m4: Update.
6579         * gnulib/m4/gnulib-tool.m4: Update.
6580         * gnulib/m4/include_next.m4: Update.
6581         * gnulib/m4/inttypes-pri.m4: Update.
6582         * gnulib/m4/inttypes.m4: Update.
6583         * gnulib/m4/longlong.m4: Update.
6584         * gnulib/m4/memchr.m4: Update.
6585         * gnulib/m4/memmem.m4: Update.
6586         * gnulib/m4/mmap-anon.m4: Update.
6587         * gnulib/m4/multiarch.m4: Update.
6588         * gnulib/m4/onceonly.m4: Update.
6589         * gnulib/m4/stddef_h.m4: Update.
6590         * gnulib/m4/stdint.m4: Update.
6591         * gnulib/m4/string_h.m4: Update.
6592         * gnulib/m4/warn-on-use.m4: Update.
6593         * gnulib/m4/wchar_h.m4: Update.
6594         * gnulib/m4/wchar_t.m4: Update.
6595         * gnulib/m4/wint_t.m4: Update.
6596         * gnulib/memchr.c: Update.
6597         * gnulib/memmem.c: Update.
6598         * gnulib/stddef.in.h: Update.
6599         * gnulib/stdint.in.h: Update.
6600         * gnulib/str-two-way.h: Update.
6601         * gnulib/string.in.h: Update.
6602         * gnulib/wchar.in.h: Update.
6603
6604         * gnulib/extra/arg-nonnull.h: Delete.
6605         * gnulib/extra/c++defs.h: Delete.
6606         * gnulib/extra/warn-on-use.h: Delete.
6607         * gnulib/m4/wchar_h.m4: Delete.
6608         * gnulib/m4/wint_t.m4: Delete.
6609         * gnulib/wchar.in.h: Delete.
6610
6611         * gnulib/extra/snippets/arg-nonnull.h: New.
6612         * gnulib/extra/snippets/c++defs.h: New.
6613         * gnulib/extra/snippets/warn-on-use.h: New.
6614
6615         * aclocal.m4: Regenerate.
6616         * config.in: Regenerate.
6617         * configure: Regenerate.
6618         * gnulib/Makefile.in: Regenerate.
6619
6620 2012-04-18  Pedro Alves  <palves@redhat.com>
6621
6622         Reimport the update-copyright module from gnulib
6623         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6624
6625         * configure: Regenerate.
6626         * gnulib/Makefile.am: Update.
6627         * gnulib/Makefile.in: Regenerate.
6628         * gnulib/extra/update-copyright: Update.
6629         * gnulib/m4/gnulib-cache.m4: Update.
6630         * gnulib/m4/gnulib-comp.m4: Update.
6631
6632 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6633
6634         * configure.ac (aix): Put -lpthread into libs.
6635         * configure: Regenerate.
6636
6637 2012-04-18  Tom Tromey  <tromey@redhat.com>
6638
6639         * linespec.c (convert_linespec_to_sals): Don't use
6640         SYMBOL_OBJ_SECTION.
6641         (compare_msymbols): Arguments are minsym_and_objfile, not
6642         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6643
6644 2012-04-18  Pedro Alves  <palves@redhat.com>
6645
6646         Revert gnulib/ part of:
6647         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6648         Copyright year update in most files (performed by copyright.sh).
6649
6650 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6651
6652         Fix 64-bit constants on 32-bit hosts.
6653         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6654         from unsigned long to ULONGEST.
6655         (read_signed_leb128): Change declaration return type from long to
6656         LONGEST.
6657         (dwarf2_const_value_attr): Change declaration parameter value from long
6658         to LONGEST.
6659         (dwarf2_compute_name): Change variable value from long to LONGEST.
6660         (read_unsigned_leb128): Change return type, variable result and some
6661         casts from unsigned long to ULONGEST.
6662         (read_signed_leb128): Change return type, variable result and some
6663         casts from long to LONGEST.
6664         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6665         value from long to LONGEST.
6666         (dwarf2_const_value): Change variable value from long to LONGEST.
6667         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6668         plongest and hex_string.
6669         * symtab.h (struct general_symbol_info): Change ivalue from long to
6670         LONGEST, remove the comment.
6671         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6672         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6673
6674 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6675
6676         PR symtab/7259:
6677         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6678         * ada-lang.c (ada_discrete_type_high_bound)
6679         (ada_discrete_type_low_bound): Fix function comment.  Use
6680         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6681         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6682         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6683         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6684         Use TYPE_FIELD_ENUMVAL.
6685         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6686         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6687         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6688         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6689         TYPE_CODE_ENUM.
6690         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6691         * dwarf2read.c (process_enumeration_scope): Likewise.
6692         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6693         field.bitpos.
6694         (class StructMainTypePrettyPrinter): Support also
6695         FIELD_LOC_KIND_ENUMVAL.
6696         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6697         TYPE_CODE_ENUM.
6698         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6699         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6700         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6701         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6702         field enumval.
6703         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6704         accommodate enumval.
6705         (struct call_site): Adjust loc_kind to accommodate enumval.
6706         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6707         (TYPE_FIELD_ENUMVAL): New macros.
6708         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6709         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6710         TYPE_CODE_ENUM.
6711         * p-typeprint.c (pascal_type_print_base): Likewise.
6712         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6713         enumval.
6714         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6715         * python/py-type.c (convert_field): New variable addrstring.  Use
6716         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6717         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6718         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6719         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6720         TYPE_CODE_ENUM.
6721         * valprint.c (generic_val_print): Likewise.
6722
6723 2012-04-17  Doug Evans  <dje@google.com>
6724
6725         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6726
6727         * dwarf2read.c: Whitespace fixes.
6728         (lookup_signatured_type): Tweak comment.
6729         (get_die_type_at_offset): Fix comment.
6730
6731 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6732
6733         * xcoffread.c (xcoff_secnum_to_sections): New function.
6734         (secnum_to_section, secnum_to_bfd_section): Reimplement
6735         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6736         into "n_scnum".
6737         (RECORD_MINIMAL_SYMBOL): Delete.
6738         (record_minimal_symbol): New function.
6739         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6740         by call to record_minimal_symbol and set misc_func_recorded
6741         to 1.  Set last_csect_sec to the XCOFF section index instead
6742         of GDB's section_offset index.  Update calls to
6743         prim_record_minimal_symbol_and_info to pass the BFD section
6744         as well.
6745
6746 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6747
6748         * xcoffread.c (read_xcoff_symtab): Delete variables
6749         last_csect_val and last_csect_sec and associated code.
6750
6751 2012-04-17  Doug Evans  <dje@google.com>
6752
6753         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6754         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6755         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6756         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6757
6758         * cleanups.h: New file.
6759         * cleanups.c: New file.
6760         * Makefile.in (SFILES): Add cleanups.c.
6761         (HFILES_NO_SRCDIR): Add cleanups.h.
6762         (COMMON_OBS): Add cleanups.o.
6763         * defs.h (struct cleanup): Moved to cleanups.h.
6764         (do_cleanups,do_final_cleanups): Ditto.
6765         (discard_cleanups,discard_final_cleanups): Ditto
6766         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6767         (save_cleanups,save_final_cleanups): Ditto.
6768         (restore_cleanups,restore_final_cleanups): Ditto.
6769         (null_cleanup): Ditto.
6770         (make_my_cleanup,make_my_cleanup2): Ditto.
6771         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6772         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6773         (do_cleanups,do_final_cleanups): Ditto.
6774         (discard_cleanups,discard_final_cleanups): Ditto
6775         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6776         (save_cleanups,save_final_cleanups): Ditto.
6777         (restore_cleanups,restore_final_cleanups): Ditto.
6778         (null_cleanup): Ditto.
6779         (make_my_cleanup,make_my_cleanup2): Ditto.
6780         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6781
6782         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6783         make_my_cleanup.
6784         (make_cleanup_dyn_string_delete): Ditto.
6785         (make_cleanup_ui_file_delete): Ditto.
6786         (make_cleanup_ui_out_redirect_pop): Ditto.
6787         (make_cleanup_free_section_addr_info): Ditto.
6788         (make_cleanup_restore_integer): Ditto.
6789         (make_cleanup_unpush_target): Ditto.
6790         (make_cleanup_value_free_to_mark): Ditto.
6791         (make_cleanup_value_free): Ditto.
6792         (make_cleanup_free_so): Ditto.
6793
6794 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6795
6796         New option "set debug auto-load".
6797         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6798         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6799         (auto_load_safe_path_vec_update)
6800         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6801         if DEBUG_AUTO_LOAD.
6802         (file_is_auto_load_safe): New parameters debug_fmt and ....
6803         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6804         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6805         caller by explanatory string.
6806         (_initialize_auto_load): Register "set debug auto-load".
6807         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6808         and ....
6809         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6810         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6811         by explanatory string.
6812         * main.c (captured_main): Likewise.
6813         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6814         (source_section_scripts): Likewise.
6815
6816 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6817
6818         New option "set auto-load safe-path".
6819         * NEWS: New commands "set auto-load safe-path"
6820         and "show auto-load safe-path".
6821         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6822         (auto_load_safe_path, auto_load_safe_path_vec)
6823         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6824         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6825         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6826         (source_gdb_script_for_objfile): New variable is_safe.  Call
6827         file_is_auto_load_safe.  Return if it is not.
6828         (struct loaded_script): New field loaded.
6829         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6830         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6831         output "Missing" to "No".
6832         (_initialize_auto_load): New variable cmd.  Initialize
6833         auto_load_safe_path.  Register "set auto-load safe-path",
6834         "show auto-load safe-path" and "add-auto-load-safe-path".
6835         * auto-load.h (maybe_add_script): Add parameter loaded.
6836         (file_is_auto_load_safe): New declaration.
6837         * config.in: Regenerate.
6838         * configure: Regenerate.
6839         * configure.ac: New parameters --with-auto-load-safe-path
6840         and --without-auto-load-safe-path.
6841         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6842         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6843         * main.c (captured_main): Check file_is_auto_load_safe for
6844         LOCAL_GDBINIT.
6845         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6846         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6847         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6848         not.
6849
6850 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6851
6852         auto-load: Implementation.
6853         * NEWS: New descriptions for "info auto-load",
6854         "info auto-load gdb-scripts", "info auto-load python-scripts",
6855         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6856         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6857         and "show auto-load-scripts".  New description for "set auto-load",
6858         "show auto-load", "set auto-load gdb-scripts",
6859         "show auto-load gdb-scripts", "set auto-load python-scripts",
6860         "show auto-load python-scripts", "set auto-load local-gdbinit",
6861         "show auto-load local-gdbinit", "set auto-load libthread-db" and
6862         "show auto-load libthread-db".
6863         * auto-load.c: Remove include python/python-internal.h.  Add includes
6864         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6865         cli/cli-setshow.h.
6866         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6867         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6868         (gdbpy_global_auto_load): Rename to ...
6869         (global_auto_load): ... here.
6870         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6871         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6872         (script_language_gdb, source_gdb_script_for_objfile): New.
6873         (struct loaded_script): New field language.
6874         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6875         LANGUAGE.
6876         (maybe_add_script): Add parameter language.  Drop redundant
6877         entry.full_path initialization.  Initialize entry.language and
6878         (*slot)->language.
6879         (auto_load_objfile_script): Change parameter suffix to language.
6880         Remove the call of maybe_add_script.
6881         Call language->source_script_for_objfile.
6882         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6883         New.
6884         (collect_matching_scripts): Adjust it for
6885         struct collect_matching_scripts_data.
6886         (auto_load_info_scripts_pattern_nl): New variable.
6887         (info_auto_load_scripts): Rename to ...
6888         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
6889         for struct collect_matching_scripts_data.
6890         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6891         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6892         (auto_load_show_cmdlist_get, info_auto_load_cmd)
6893         (auto_load_info_cmdlist_get): New.
6894         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6895         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
6896         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6897         "info auto-load local-gdbinit".
6898         * auto-load.h (struct script_language): New.
6899         (gdbpy_global_auto_load): Rename to ...
6900         (global_auto_load): ... here.
6901         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6902         (auto_load_local_gdbinit_loaded): New declarations.
6903         (maybe_add_script): New parameter language.
6904         (auto_load_objfile_script): Change parameter suffix to language.
6905         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6906         (auto_load_info_scripts, auto_load_set_cmdlist_get)
6907         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6908         declarations.
6909         * linux-thread-db.c: Include auto-load.h and ctype.h.
6910         (auto_load_thread_db, show_auto_load_thread_db): New.
6911         (struct thread_db_info): New field filename.
6912         (delete_thread_db_info): Call xfree for FILENAME.
6913         (try_thread_db_load): Initialize FILENAME.
6914         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6915         if !AUTO_LOAD_THREAD_DB.
6916         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6917         (_initialize_thread_db): Install auto_load_thread_db
6918         as "set auto-load libthread-db" and install info_auto_load_libthread_db
6919         as "info auto-load libthread-db".
6920         * main.c (captured_main): Rename gdbpy_global_auto_load to
6921         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6922         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6923         (print_gdb_help): Extend the help for 'local init file'.
6924         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6925         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6926         (auto_load_scripts): Rename to ...
6927         (auto_load_python_scripts): ... here, update the comment.
6928         (gdbpy_load_auto_script_for_objfile): New declaration.
6929         (show_auto_load_python_scripts, script_language_python)
6930         (gdbpy_load_auto_script_for_objfile): New.
6931         (source_section_scripts): Refactor the code.
6932         (load_auto_scripts_for_objfile): Rename to ...
6933         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6934         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6935         (info_auto_load_python_scripts): New.
6936         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6937         Rename "set auto-load-scripts" to "set auto-load python-scripts".
6938         Register "set auto-load-scripts" as its deprecated alias.  Register
6939         "info auto-load python-scripts".  Register "info auto-load-scripts" as
6940         its deprecated alias.
6941         (load_auto_scripts_for_objfile): Rename to ...
6942         (gdbpy_load_auto_scripts_for_objfile): ... here.
6943         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6944         (gdbpy_load_auto_scripts_for_objfile): ... here.
6945
6946 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6947
6948         auto-load: Move files.
6949         * Makefile.in (SFILES): Add auto-load.c.
6950         (HFILES_NO_SRCDIR): Add auto-load.h.
6951         (COMMON_OBS): Add auto-load.o.
6952         (distclean): Change .gdbinit for gdb-gdb.gdb.
6953         * auto-load.c: New file, with parts from python/py-auto-load.c.
6954         * auto-load.h: New file, with parts from python/python.h.
6955         * configure: Regenerate.
6956         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6957         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6958         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6959         * main.c: Include auto-load.h.
6960         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6961         command.h, observer.h and progspace.h to auto-load.c.  Add include
6962         auto-load.h.
6963         (gdbpy_global_auto_load, struct auto_load_pspace_info)
6964         (struct loaded_script, auto_load_pspace_data)
6965         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6966         (hash_loaded_script_entry, eq_loaded_script_entry)
6967         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6968         (maybe_add_script): Move to auto-load.c.
6969         (source_section_scripts): Change maybe_add_script parameters passing,
6970         use script_not_found_warning_print.
6971         (clear_section_scripts, auto_load_objfile_script)
6972         (auto_load_new_objfile, loaded_script_ptr)
6973         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6974         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6975         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6976         auto_load_new_objfile and info_auto_load_scripts initizations to
6977         auto-load.c.
6978         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6979
6980 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6981
6982         Code cleanup.
6983         * charset.c (find_charset_names): Remove variables ix and elt.
6984         Use free_char_ptr_vec.
6985         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6986         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
6987         debugdir_end.  New variable debugdir_len.
6988         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6989         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6990         declarations.
6991         * progspace.c (clear_program_space_solib_cache): Remove variables ix
6992         and elt.  Use free_char_ptr_vec.
6993         * source.c (add_path): Remove variables argv, arg and argv_index.
6994         New variables dir_vec, back_to, ix and name.
6995         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
6996         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
6997         no longer expecting DIRNAME_SEPARATOR.
6998         (openp): Remove variable p, p1 and len.  New variables dir_vec,
6999         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7000         no longer expecting DIRNAME_SEPARATOR.
7001         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7002         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7003         debugdir_end.
7004         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7005         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7006         (dirnames_to_char_ptr_vec): New functions.
7007
7008 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7009
7010         Code cleanup.
7011         * source.c (add_path): Remove always true conditional 'p == 0' and
7012         unindent its code block.
7013
7014 2012-04-17  Pedro Alves  <palves@redhat.com>
7015
7016         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7017         (FIELD_BITPOS_LVAL): ... this.
7018         (FIELD_BITPOS): New.
7019         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7020         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7021         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7022         SET_FIELD_BITPOS.
7023         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7024         SET_FIELD_BITPOS.
7025         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7026         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7027         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7028         SET_FIELD_BITPOS.
7029
7030 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7031
7032         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7033         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7034         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7035         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7036         * jv-lang.c (java_link_class_type): Likewise, once.
7037         * stabsread.c (read_enum_type): Likewise.
7038
7039 2012-04-16  Yao Qi  <yao@codesourcery.com>
7040
7041         * common/agent.c (agent_run_command): Add one more parameter `len'.
7042         Update callers.
7043         * common/agent.h: Update declaration.
7044         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7045         Update.
7046         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7047
7048 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7049
7050         PR mi/13393
7051         * value.c (value_actual_type): New function.
7052         * value.h (value_actual_type): New declaration.
7053         * varobj.c (update_type_if_necessary): New function.
7054         (varobj_create): Call value_actual_type instead of
7055         value_type.
7056         (install_dynamic_child): distinct changed and type changed MI variable
7057         objects.
7058         (update_dynamic_varobj_children): Updated for install_dynamic_child
7059         change.  All callers updated.
7060         (varobj_update): Support for MI variable object type change if
7061         the value changed and RTTI is used to determine the type.
7062         (create_child_with_value): Call value_actual_type instead of
7063         value_type.
7064         (adjust_value_for_child_access): Extended with a new parameter which
7065         specify whether the given value should be casted to enclosing type.
7066         All callers updated.
7067
7068 2012-04-14  Yao Qi  <yao@codesourcery.com>
7069
7070         Import gnulib module inttypes from git
7071         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7072         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7073         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7074         gnulib/m4/inttypes-pri.m4
7075         * aclocal.m4, config.in, configure: Regenerated.
7076         * gnulib/Makefile.am: Update.
7077         * gnulib/Makefile.in: Update.
7078         * gnulib/m4/gnulib-cache.m4: Update.
7079         * gnulib/m4/gnulib-comp.m4: Update.
7080         * gnulib/inttypes.in.h: New.
7081         * gnulib/m4/inttypes-pri.m4: New.
7082         * gnulib/m4/inttypes.m4: New.
7083
7084 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7085
7086         * infrun.c (resume): Update PC address to the real PC after
7087         preparing to do displaced stepping.
7088
7089 2012-04-12  Doug Evans  <dje@google.com>
7090
7091         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7092         All callers updated.
7093
7094 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7095
7096         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7097
7098 2012-04-12  Doug Evans  <dje@google.com>
7099
7100         * dwarf2read.c (create_all_type_units): Renamed from
7101         create_debug_types_hash_table.  All callers updated.
7102
7103         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7104         local type_sig to sig_type, type_offset to type_offset_in_tu.
7105         (hash_signatured_type): Renamed from hash_type_signature,
7106         all callers updated.
7107         (eq_signatured_type): Renamed from eq_type_signature,
7108         all callers updated.
7109         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7110         (process_enumeration_scope): Ditto.
7111         (lookup_signatured_type_at_offset): Ditto.
7112         (load_full_type_unit, read_signatured_type): Ditto.
7113
7114 2012-04-12  Yao Qi  <yao@codesourcery.com>
7115
7116         * remote.c (async_remote_interrupt): Correct function name in
7117         debug message.
7118         (async_remote_interrupt_twice): Ditto.
7119
7120 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7121
7122         * source.c (find_and_open_source): Consistently pass resulting
7123         full path through xfullpath.
7124
7125 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7126
7127         Provide more specific displaced-stepping memory error message.
7128         * infrun.c (displaced_step_prepare): New variable status.  Call
7129         target_read_memory instead of read_memory, provide more specific
7130         error message.
7131
7132 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7133
7134         PR gdb/13901
7135         * darwin-nat.c (darwin_execvp): Revert previous patch.
7136
7137 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7138
7139         PR gdb/13901
7140         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7141         in case of change.
7142
7143 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7144
7145         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7146         warning.
7147
7148 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7149
7150         New command 'explore' which helps explore values and types in
7151         scope.
7152         * NEWS: Add an entry about the new 'explore' command.
7153         * data-directory/Makefile.in: Add gdb/command/explore.py
7154         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7155         command using the GDB Python API.
7156
7157 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7158
7159         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7160         extension in jump target calculation.
7161
7162 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7163
7164         * mips-tdep.c (mips32_next_pc): Handle JALX.
7165
7166 2012-04-10  Yao Qi  <yao@codesourcery.com>
7167
7168         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7169
7170 2012-04-10  Yao Qi  <yao@codesourcery.com>
7171
7172         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7173         and gnulib/m4/gnulib-tool.m4.
7174
7175 2012-04-10  Doug Evans  <dje@google.com>
7176
7177         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7178         (load_partial_dies): Clarify comment.
7179         (find_partial_die): Support rereading type units.
7180         Clarify CU handling, if we know offset is in CU, don't search for the
7181         containing CU.  Add comment regarding memory waste.
7182
7183 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7184
7185         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7186         i386/x32-avx and i386/x32-avx-linux.
7187         (i386/x32-expedite): New.
7188         (i386/x32-linux-expedite): Likewise.
7189         (i386/x32-avx-expedite): Likewise.
7190         (i386/x32-avx-linux-expedite): Likewise.
7191         ($(outdir)/i386/x32.dat): Likewise.
7192         ($(outdir)/i386/x32-linux.dat): Likewise.
7193         ($(outdir)/i386/x32-avx.dat): Likewise.
7194         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7195
7196         * features/i386/x32-avx-linux.xml: New file.
7197         * features/i386/x32-avx.xml: Likewise.
7198         * features/i386/x32-core.xml: Likewise.
7199         * features/i386/x32-linux.xml: Likewise.
7200         * features/i386/x32.xml: Likewise.
7201
7202         * features/i386/x32-avx-linux.c: New.  Generated.
7203         * features/i386/x32-avx.c: Likewise.
7204         * features/i386/x32-linux.c: Likewise.
7205         * features/i386/x32.c: Likewise.
7206         * regformats/i386/x32-avx-linux.dat: Likewise.
7207         * regformats/i386/x32-avx.dat: Likewise.
7208         * regformats/i386/x32-linux.dat: Likewise.
7209         * regformats/i386/x32.dat: Likewise.
7210
7211 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7212
7213         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7214         code to kill the inferior.
7215
7216 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7217
7218         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7219         defines.
7220         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7221         defines.
7222         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7223         (yyvsp): New defines.
7224         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7225         defines.
7226         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7227         defines.
7228         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7229         defines.
7230         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7231         defines.
7232         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7233         defines.
7234
7235 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7236
7237         * sparc64-tdep.c (sparc64_store_arguments)
7238         (sparc64_store_arguments): Fix coding style.
7239
7240 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7241
7242         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7243         complex floats, adjust some related comments and tighten a related
7244         assertion.
7245         (sparc64_extract_return_value): Handle complex floats.
7246
7247 2012-04-07  Doug Evans  <dje@google.com>
7248
7249         * dwarf2read.c (load_partial_dies): Change condition to assert.
7250
7251 2012-04-06  Doug Evans  <dje@google.com>
7252
7253         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7254         "mov %rsp,%rbp".
7255
7256 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7257
7258         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7259         fencepost error.
7260         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7261         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7262         architecture.
7263
7264 2012-04-05  Keith Seitz  <keiths@redhat.com>
7265
7266         * linespec.c (decode_compound): Remove.
7267         (enum offset_relative_sign): New enum.
7268         (struct line_offset): New struct.
7269         (struct linespec): New struct.
7270         (struct linespec_state): Move file_symtabs,
7271         user_filename, and user_function into struct linespec.
7272         Make result an anonymous struct holding vectors of
7273         symbolp and minsym_and_objfile_d.
7274         Add language member.
7275         (enum ls_token_type): New enum.
7276         (linespec_keywords): New array.
7277         (struct ls_token): New struct.
7278         (struct ls_parser): New struct.
7279         (linespec_lexer_lex_number): New function.
7280         (linespec_lexer_lex_keyword): New function.
7281         (is_ada_operator): New function.
7282         (skip_quote_char): New function.
7283         (copy_token_string): New function.
7284         (is_closing_quote_enclosed): New function.
7285         (find_parameter_list_end): New function.
7286         (linespec_lexer_lex_string): New function.
7287         (linespec_lexer_lex_one): New function.
7288         (linespec_lexer_consume_token): New function.
7289         (linespec_lexer_peek_token): New function.
7290         (cplusplus_error): Remove unused function.
7291         (find_methods): Update comment.
7292         (find_toplevel_char): Return const.
7293         (is_objc_method_format): Remove unused function.
7294         (find_toplevel_string): New function.
7295         (is_linespec_boundary): Remove.
7296         (symbol_not_found_error): New function.
7297         (find_method_overload_end): Remove function.
7298         (unexpected_linespec_error): New function.
7299         (keep_name_info): Remove.
7300         (linespec_parse_line_offset): New function.
7301         (linespec_parse_basic): New function.
7302         (canonicalize_linespec): New function.
7303         (decode_line_internal): Remove.
7304         (create_sals_line_offset): New function adapted from
7305         decode_all_digits.
7306         (convert_linespec_to_sals): New function.
7307         (parse_linespec): New function.
7308         (linespec_parser_new): New function.
7309         (linespec_state_destructor): Change parameter type to
7310         struct linespec_state *.
7311         Add language parameter.
7312         Remove freeing of moved members.
7313         (linespec_parser_delete): New function.
7314         (decode_line_full): Use parse_linespec and linespec_parser_new.
7315         (decode_line_1): Likewise.
7316         (decode_indirect): Rename to ...
7317         (linespec_expression_to_pc): ... this and rewrite
7318         to simply find CORE_ADDR, storing this result for later
7319         conversion to SALs.
7320         (locate_first_half): Remove.
7321         (deocde_objc): Add parameter LS.
7322         Initialize new struct collect_info members.
7323         Handle minimal symbols, too.
7324         (decode_compound): Delete.
7325         (lookup_prefix_sym): Rewrite.
7326         (compare_msymbols): New function.
7327         (find_method): Rewrite.
7328         Do not call cplusplus_error.
7329         (symtabs_from_filename): Rewrite.
7330         (collect_function_symbols): Delete.
7331         (find_function_symbols): Rewrite without ARGPTR-style
7332         processing.
7333         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7334         (decode_dollar): Adapted and renamed to ...
7335         (linespec_parse_variable): ... this.
7336         (find_linespec_symbols): New function.
7337         (decode_label): Adapted and renamed to ...
7338         (find_label_symbols): ... this.
7339         (decode_digits_list_mode): Add and use LS argument.
7340         (decode_digits_ordinary): Likewise.
7341         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7342         If in list mode, allow any symbol class.  Otherwise, only
7343         permit LOC_BLOCK symbols.
7344         (minsym_found): Update comments.
7345         (search_minsyms_for_name): Do not convert the matching symbol
7346         into a SAL.  Simply push the symbol and objfile into the
7347         result vector.
7348         (decode_variable): Delete. Contents adapted into
7349         find_linespec_symbols.
7350
7351         * cp-support.c (SKIP_SPACE): Remove.
7352         (operator_tokens): Remove unused global.
7353         (cp_validate_operator): Remove.
7354         * cp-support.h (cp_validate_operator): Remove declaration.
7355
7356 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7357
7358         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7359         for TYPE_VPTR_FIELDNO.
7360         * valprint.c (valprint_check_validity): Make it global, move the
7361         function comment ...
7362         * value.h (valprint_check_validity): ... to this new declaration.
7363
7364 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7365
7366         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7367         the STATE32 api for i386 state.
7368         (i386_darwin_store_inferior_registers): Likewise.
7369
7370 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7371
7372         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7373         SS offset.
7374         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7375         format_string.
7376
7377 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7378
7379         PR gdb/13901
7380         * darwin-nat.c (darwin_execvp): Set binary preference.
7381
7382 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7383
7384         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7385
7386 2012-03-30  Tom Tromey  <tromey@redhat.com>
7387
7388         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7389         of TRY_CATCH.  Fix error handling.
7390         * python/py-value.c (convert_value_from_python): Move 'old'
7391         declaration to innermost scope.
7392
7393 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7394             Andrey Smirnov  <andrew.smirnov@gmail.com>
7395
7396         -Wshadow warning fix.
7397         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7398         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7399         Adjust code accordingly.
7400
7401 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7402
7403         * ada-lang.c (symbol_completion_add): Rename parameter
7404         "encoded" into "encoded_p".  Ajust code and documentation
7405         accordingly.
7406
7407 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7408             Andrey Smirnov  <andrew.smirnov@gmail.com>
7409
7410         -Wshadow warning fix.
7411         * ada-lang.c (symbol_completion_add): Rename parameter
7412         "wild_match" into wild_match_p.  Update code and documentation
7413         accordingly.
7414
7415 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7416
7417         * ada-lang.c (symbol_completion_match): Rename parameter
7418         "encoded" into "encoded_p".  Ajust code and documentation
7419         accordingly.
7420
7421 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7422             Andrey Smirnov  <andrew.smirnov@gmail.com>
7423
7424         -Wshadow warning fix.
7425         * ada-lang.c (symbol_completion_match): Rename parameter
7426         "wild_match" into "wild_match_p".  Adjust code and function
7427         documentation accordingly.
7428
7429 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7430             Andrey Smirnov  <andrew.smirnov@gmail.com>
7431
7432         -Wshadow warning fix.
7433         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7434         "symbol_info" into "info".  Adjust code accordingly.
7435         (ada_lookup_symbol): Likewise.
7436
7437 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7438
7439         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7440         of this function's documentation.
7441
7442 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7443             Andrey Smirnov  <andrew.smirnov@gmail.com>
7444
7445         -Wshadow warning fix.
7446         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7447         variable into "wild_match_p".  Adjust code accordingly.
7448
7449 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7450             Andrey Smirnov  <andrew.smirnov@gmail.com>
7451
7452         -Wshadow warning fix.
7453         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7454         parameter into "wild_match_p".  Adjust code accordingly.
7455         Document this parameter in the function description.
7456
7457 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7458             Andrey Smirnov  <andrew.smirnov@gmail.com>
7459
7460         -Wshadow warning fix.
7461         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7462         "wild_match" parameter to "wild_match_p" (-Wshadow).
7463
7464 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7465
7466         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7467         in function documentation.
7468
7469 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7470             Andrey Smirnov  <andrew.smirnov@gmail.com>
7471
7472         -Wshadow warning fix.
7473         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7474         variable into wild_match_p.  Adjust code accordingly.
7475
7476 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7477             Andrey Smirnov  <andrew.smirnov@gmail.com>
7478
7479         * ada-valprint.c (ada_val_print_1): Move the code handling
7480         TYPE_CODE_ENUM inside its own lexical block.  Declare
7481         variables len and val there, instead of in the function's
7482         top level block.  Avoid declaring deref_val again in a way
7483         that shadows another variable of the same name declared
7484         in one of the up-level blocks.  Just re-use the up-level
7485         variable instead.
7486
7487 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7488
7489         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7490         Replace block_found argument by symbol_info.  Adjust
7491         implementation accordingly.  Add function documentation.
7492         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7493         Fix documentation.
7494         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7495         * ada-exp.y (write_object_renaming): Adjust to new
7496         ada_lookup_encoded_symbol API.
7497
7498 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7499
7500         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7501         documentation.
7502
7503 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7504
7505         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7506         (v850_register_name): Add the mpu and fpu register names.
7507         (v850e_register_name): Add the mpu and fpu register names.
7508         (v850e2_register_name): New function.
7509         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7510         bfd_mach_v850e2v3.
7511
7512 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7513
7514         * NEWS: Add entry for Ada varobj support.
7515
7516 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7517
7518         * varobj.c (default_value_is_changeable_p): New function,
7519         extracted from varobj_value_is_changeable_p.  Add declaration.
7520         (ada_value_is_changeable_p): New function, extracted from
7521         varobj_value_is_changeable_p.  Add declaration.
7522         (struct language_specific): New field "value_is_changeable_p".
7523         (languages): Add entries for new field.
7524         (varobj_create): Set language before calling install_new_value.
7525         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7526         "value_is_changeable_p" language callback.
7527
7528 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7529
7530         * ada-varobj.h, ada-varobj.c: New files.
7531         * Makefile.in (SFILES): Add ada-varobj.c.
7532         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7533         (COMMON_OBS): Add ada-varobj.o.
7534
7535 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7536
7537         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7538         (struct language_specific): New field "value_has_mutated".
7539         (languages): Set field "value_has_mutated" in each entry of array.
7540         (varobj_value_has_mutated): New function.
7541         (varobj_udpdate): Add handling of type mutation.
7542         (value_of_root): Add handling of type mutation.
7543         (ada_value_has_mutated): New function.
7544
7545 2012-03-28  Pedro Alves  <palves@redhat.com>
7546
7547         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7548         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7549
7550 2012-03-28  Tom Tromey  <tromey@redhat.com>
7551
7552         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7553         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7554         before returning.
7555
7556 2012-03-28  Tom Tromey  <tromey@redhat.com>
7557
7558         * .dir-locals.el: New file.
7559
7560 2012-03-28  Pedro Alves  <palves@redhat.com>
7561
7562         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7563
7564 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7565
7566         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7567         handling for r0.
7568
7569 2012-03-27  Pedro Alves  <palves@redhat.com>
7570
7571         Eliminate struct ui_stream.
7572
7573         * ui-out.h (struct ui_stream): Delete.
7574         (ui_out_field_stream): Adjust prototype.
7575         (ui_out_stream_new, ui_out_stream_delete)
7576         (make_cleanup_ui_out_stream_delete): Delete declarations.
7577         * ui-out.c (ui_out_field_stream): Change prototype to take a
7578         ui_file instead of a ui_stream.  Adjust.
7579         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7580         (make_cleanup_ui_out_stream_delete): Delete.
7581         * breakpoint.c (print_breakpoint_location)
7582         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7583         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7584         * disasm.c (dump_insns): Ditto.
7585         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7586         prototype.
7587         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7588         ui_stream/ui_out_stream_new.
7589         * infcmd.c (print_return_value): Ditto.
7590         * osdata.c (info_osdata_command): Don't allocate a local
7591         ui_stream.
7592         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7593         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7594         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7595         allocate a local ui_stream.
7596         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7597         instead of ui_stream/ui_out_stream_new.
7598         (list_args_or_locals): Don't allocate a local ui_stream.
7599         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7600         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7601         ui_stream/ui_out_stream_new.
7602         * cli/cli-setshow.c (do_setshow_command): Ditto.
7603
7604 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7605
7606         * arm-linux-tdep.c (arm_linux_init_abi): Call
7607         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7608         * arm-tdep.c (arm_process_record): New function.
7609         (deallocate_reg_mem): New function.
7610         (decode_insn): New function.
7611         (thumb_record_branch): New function.
7612         (thumb_record_ldm_stm_swi(): New function.
7613         (thumb_record_misc): New function.
7614         (thumb_record_ld_st_stack): New function.
7615         (thumb_record_ld_st_imm_offset): New function.
7616         (thumb_record_ld_st_reg_offset(): New function.
7617         (thumb_record_add_sub_cmp_mov): New function.
7618         (thumb_record_shift_add_sub): New function.
7619         (arm_record_coproc_data_proc): New function.
7620         (arm_record_coproc): New function.
7621         (arm_record_b_bl): New function.
7622         (arm_record_ld_st_multiple): New function.
7623         (arm_record_ld_st_reg_offset): New function.
7624         (arm_record_ld_st_imm_offset): New function.
7625         (arm_record_data_proc_imm): New function.
7626         (arm_record_data_proc_misc_ld_str): New function.
7627         (arm_record_extension_space): New function.
7628         (arm_record_strx): New function.
7629         (sbo_sbz): New function.
7630         (struct insn_decode_record): New structure for arm insn record.
7631         (REG_ALLOC): New macro for reg allocations.
7632         (MEM_ALLOC): New macro for memory allocations.
7633         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7634
7635 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7636
7637         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7638         (store_register): Likewise.
7639
7640 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7641
7642         * MAINTAINERS (Write After Approval): Add myself to the list.
7643
7644 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7645
7646         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7647         Describe also the option "auto".
7648
7649 2012-03-22  Richard Henderson  <rth@redhat.com>
7650
7651         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7652         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7653
7654 2012-03-22  Richard Henderson  <rth@redhat.com>
7655
7656         * jit.c (jit_read_code_entry): Compute alignment and offset of
7657         int64_t member before computing entry_size.
7658
7659 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7660
7661         Python scripting: Add new method Value.referenced_value to
7662         gdb.Value which can dereference pointer as well as reference
7663         values.
7664         * NEWS: Add entry under 'Python scripting' about the new method
7665         Value.referenced_value on gdb.Value objects.
7666         * python/py-value.c (valpy_referenced_value): New function
7667         defining a new method on gdb.Value objects which can dereference
7668         pointer and reference values.
7669
7670 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7671
7672         * MAINTAINERS (Write After Approval): Add myself to the list.
7673
7674 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7675
7676         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7677         in addition to "main".
7678
7679 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7680
7681         * expression.h (op_name): Add declaration.
7682         * expprint.c (op_name): Remove declaration.  Make non-static.
7683         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7684
7685 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7686
7687         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7688         of struct siginfo.
7689         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7690         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7691         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7692         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7693         (linux_nat_get_siginfo): Likewise.
7694         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7695         (linux_nat_get_siginfo): Likewise.
7696         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7697         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7698         * procfs.c (gdb_siginfo_t): Likewise.
7699
7700 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7701
7702         * .gitignore: Ignore more files.
7703
7704 2012-03-20  Pedro Alves  <palves@redhat.com>
7705
7706         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7707         returns.
7708
7709 2012-03-20  Yao Qi  <yao@codesourcery.com>
7710
7711         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7712         comment.
7713
7714 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7715
7716         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7717         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7718         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7719         sect_offset.
7720         * dwarf2expr.h (cu_offset, sect_offset): New types.
7721         (struct dwarf_expr_context_funcs) <dwarf_call>
7722         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7723         sect_offset.
7724         (struct dwarf_expr_context) <len>: Improve the comment.
7725         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7726         cu_offset and sect_offset.
7727         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7728         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7729         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7730         * dwarf2loc.h: Include dwarf2expr.h.
7731         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7732         and sect_offset.
7733         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7734         Improve the comment.
7735         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7736         (struct signatured_type, struct line_header, struct partial_die_info)
7737         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7738         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7739         (get_die_type_at_offset, create_cus_from_index)
7740         (create_signatured_type_table_from_index, dw2_get_file_names)
7741         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7742         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7743         (create_debug_types_hash_table, process_psymtab_comp_unit)
7744         (load_partial_comp_unit, create_all_comp_units)
7745         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7746         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7747         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7748         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7749         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7750         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7751         (find_partial_die, read_attribute_value, lookup_die_type)
7752         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7753         (is_ref_attr): New function comment.
7754         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7755         Use cu_offset and sect_offset.
7756         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7757         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7758         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7759         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7760         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7761         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7762         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7763         sect_offset.
7764
7765 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7766
7767         Code cleanup.
7768         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7769         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7770         with xfree.
7771         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7772
7773 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7774
7775         * NEWS: Describe new options --init-command=FILE, -ix and
7776         --init-eval-command=COMMAND, -iex.
7777         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7778         CMDARG_INIT_COMMAND.
7779         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7780         "init-command", "init-eval-command", "ix" and "iex" to the variable
7781         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7782         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7783         (print_gdb_help): Describe --init-command=FILE, -ix and
7784         --init-eval-command=COMMAND, -iex.
7785
7786 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7787
7788         Code cleanup.
7789         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7790         (cmdarg_s, VEC (cmdarg_s)): New.
7791         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7792         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7793         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7794         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7795         of CMDARG.
7796
7797 2012-03-19  Tom Tromey  <tromey@redhat.com>
7798
7799         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7800
7801 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7802
7803         PR symtab/13777
7804         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7805         GCC >=4.5.
7806
7807 2012-03-16  Chris January  <chris.january@allinea.com>
7808
7809         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7810         of clear.
7811
7812 2012-03-16  Chris January  <chris.january@allinea.com>
7813
7814         * source.c (add_path): Use memmove instead of strcpy because the
7815         strings overlap.
7816
7817 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7818
7819         * value.h (set_value_parent): Add declaration.
7820         * value.c (set_value_parent): New function.
7821         (value_address): If VALUE->PARENT is not NULL, then use it as
7822         the base address instead of VALUE->LOCATION.address.
7823         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7824         the same as OBJ's address.  Adjust V's offset accordingly.
7825         Set V's parent.
7826
7827 2012-03-16  Gary Benson  <gbenson@redhat.com>
7828
7829         PR breakpoints/10738
7830         * dwarf2read.c (use_deprecated_index_sections): New global.
7831         (struct partial_die_info): New member may_be_inlined.
7832         (read_partial_die): Set may_be_inlined where appropriate.
7833         (add_partial_subprogram): Add partial symbols for partial
7834         DIEs that may be inlined.
7835         (new_symbol_full): Add inlined subroutines to the current
7836         scope.
7837         (write_psymtabs_to_index): Bump version number.
7838         (dwarf2_read_index): Read only version 6 indices unless
7839         use_deprecated_index_sections is set.
7840         * linespec.c (symbol_and_data_callback): New structure.
7841         (iterate_inline_only): New function.
7842         (iterate_over_all_matching_symtabs): New argument
7843         "include_inline".  If nonzero, also call the callback for
7844         symbols representing inlined subroutines.
7845         (lookup_prefix_sym): Pass extra argument to the above.
7846         (find_function_symbols): Likewise.
7847         (add_matching_symbols_to_info): Likewise.
7848         * NEWS: Mention that GDB can now set breakpoints on inlined
7849         functions.
7850
7851 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7852
7853         * p-typeprint.c (pascal_type_print_method_args):
7854         Fix display of parameter of methods.
7855
7856 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7857
7858         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7859         Add missing prototype.
7860
7861 2012-03-16  Yao Qi  <yao@codesourcery.com>
7862             Jan Kratochvil  <jan.kratochvil@redhat.com>
7863
7864         Fix false compilation warning.
7865         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7866
7867 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
7868             Pedro Alves  <pedro@codesourcery.com>
7869
7870         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7871         (arm_register_g_packet_guesses): New function.
7872         (arm_gdbarch_init): Don't force a target description with
7873         registers when the executable is detected as M-profile.  Instead
7874         set gdbarch->tdep->is_m.  Register `g' packet guesses.
7875         (_initialize_arm_tdep): Initialize the new target description.
7876         * features/arm-with-m-fpa-layout.xml: New description.
7877         * features/arm-with-m-fpa-layout.c: New, generated.
7878
7879 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
7880
7881         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7882         Update function description.
7883         (insert_bp_location): Do not wipe bl->target_info out.
7884         * mem-break.c: #include "gdb_string.h".
7885         (default_memory_insert_breakpoint): Do not call target_read_memory
7886         with a pointer to the breakpoint's shadow_contents buffer.  Use
7887         a local buffer instead.
7888         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7889
7890 2012-03-15  Tom Tromey  <tromey@redhat.com>
7891
7892         * NEWS: Mention "info vtbl", not "info vtable".
7893         * cp-support.c (info_vtbl_command): Fix comment.
7894         (_initialize_cp_support): Fix text.
7895
7896 2012-03-15  Tom Tromey  <tromey@redhat.com>
7897
7898         * cp-valprint.c (cp_print_value_fields): Use
7899         print_function_pointer_address for vtable slot.
7900
7901 2012-03-15  Tom Tromey  <tromey@redhat.com>
7902
7903         * gnu-v3-abi.c (struct value_and_voffset): New.
7904         (hash_value_and_voffset, eq_value_and_voffset)
7905         (compare_value_and_voffset, compute_vtable_size)
7906         (print_one_vtable, gnuv3_print_vtable): New functions.
7907         (init_gnuv3_ops): Initialize 'print_vtable' field.
7908         * cp-support.c (info_vtbl_command): New function.
7909         (_initialize_cp_support): Add "info vtbl".
7910         * cp-abi.h (cplus_print_vtable): Declare.
7911         (struct cp_abi_ops) <print_vtable>: New field.
7912         * cp-abi.c (cplus_print_vtable): New function.
7913         * NEWS: Update.
7914
7915 2012-03-15  Tom Tromey  <tromey@redhat.com>
7916
7917         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7918         iterate_over_symbols.
7919
7920 2012-03-14  Doug Evans  <dje@google.com>
7921
7922         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7923         DW_OP_GNU_parameter_ref.
7924
7925 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7926
7927         Fix double prompt of 'interpreter-exec mi'.
7928         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7929         (mi_interpreter_resume): use it.
7930         (mi_execute_command_input_handler): New function.
7931         * mi/mi-main.c (mi_execute_command): Move prompt printing to
7932         mi_execute_command_input_handler.
7933
7934 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
7935
7936         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7937         prototype.
7938         (darwin_debug_port_info): Make static.
7939         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7940         * machoread.c (_initialize_machoread): Add prototype.
7941         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7942         (i386_darwin_set_control, i386_darwin_get_control)
7943         i386_darwin_dr_set_addr, i386_darwin_get_addr)
7944         i386_darwin_get_status, i386_darwin_get_control):
7945         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7946
7947 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7948
7949         * ax-gdb.c (gen_usual_unary): Remove special handling of
7950         enum and bool types.
7951
7952 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7953
7954         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7955
7956 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
7957
7958         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7959
7960 2012-03-13  Chris January  <chris.january@allinea.com>
7961
7962         * aix-thread.c (fill_sprs): Store the floating point registers
7963         at the correct offsets into vals.
7964
7965 2012-03-13  Doug Evans  <dje@google.com>
7966
7967         * NEWS: Mention symbol-reloading has been deleted.
7968         * symfile.c (symbol_reloading): Delete.
7969         (show_symbol_reloading): Delete.
7970         (_initialize_symfile): Delete set/show symbol-reloading.
7971
7972         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7973         read_in_chain until we have successfully read it in.
7974         (load_full_comp_unit): Ditto.
7975         (read_signatured_type): Add comment.
7976
7977 2012-03-13  Chris January  <chris.january@allinea.com>
7978
7979         * stabsread.c (fix_common_block): Change type of valu argument
7980         to CORE_ADDR.
7981
7982 2012-03-13  Chris January  <chris.january@allinea.com>
7983
7984         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7985         instruction.
7986
7987 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7988
7989         * common/linux-procfs.c (linux_proc_get_int): New, from
7990         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7991         field.
7992         (linux_proc_get_tgid): Only call linux_proc_get_int.
7993         (linux_proc_get_tracerpid): New.
7994         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7995         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7996         linux_proc_pid_has_state.
7997         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7998         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7999         (linux_ptrace_attach_warnings): New.
8000         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8001         New declaration.
8002         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8003         (linux_nat_attach): New variables ex, buffer, message and message_s.
8004         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8005
8006 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8007
8008         * Makefile.in (linux-ptrace.o): New.
8009         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8010         from linux-nat.c.
8011         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8012         * common/linux-ptrace.c: New file.
8013         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8014         * config/arm/linux.mh: Likewise.
8015         * config/i386/linux.mh: Likewise.
8016         * config/i386/linux64.mh: Likewise.
8017         * config/ia64/linux.mh: Likewise.
8018         * config/m32r/linux.mh: Likewise.
8019         * config/m68k/linux.mh: Likewise.
8020         * config/mips/linux.mh: Likewise.
8021         * config/pa/linux.mh: Likewise.
8022         * config/powerpc/linux.mh: Likewise.
8023         * config/powerpc/ppc64-linux.mh: Likewise.
8024         * config/powerpc/spu-linux.mh: Likewise.
8025         * config/s390/s390.mh: Likewise.
8026         * config/sparc/linux.mh: Likewise.
8027         * config/sparc/linux64.mh: Likewise.
8028         * config/xtensa/linux.mh: Likewise.
8029         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8030         common/linux-procfs.c.
8031         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8032
8033 2012-03-13  Hui Zhu  <teawater@gmail.com>
8034             Pedro Alves  <palves@redhat.com>
8035
8036         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8037         CREATE_BREAKPOINT_FLAGS_INSERTED.
8038         (create_breakpoint_sal, create_breakpoints_sal)
8039         (base_breakpoint_create_breakpoints_sal)
8040         (tracepoint_create_breakpoints_sal)
8041         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8042         down.
8043         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8044         (ftrace_command, strace_command): Adjust.
8045         (create_tracepoint_from_upload): Pass
8046         CREATE_BREAKPOINT_FLAGS_INSERTED.
8047         * breakpoint.h (enum breakpoint_create_flags): New.
8048         (create_breakpoint): New flags parameter.
8049         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8050         * python/py-breakpoint.c (bppy_init): Adjust.
8051         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8052         * spu-tdep.c (spu_catch_start): Adjust.
8053
8054 2012-03-13  Pedro Alves  <palves@redhat.com>
8055             Hui Zhu  <teawater@gmail.com>
8056             Yao Qi  <yao@codesourcery.com>
8057
8058         * remote.c (struct remote_state): New field `starting_up'.
8059         (remote_start_remote): Set and clear it.
8060         (remote_can_download_tracepoint): If starting up, return false.
8061
8062 2012-03-13  Yao Qi  <yao@codesourcery.com>
8063
8064         * inferior.h (struct inferior): Remove fields any_syscall_count,
8065         syscalls_counts and total_syscalls_count.  Move them to new
8066         struct catch_syscall_inferior_data in breakpoint.c.
8067         * breakpoint.c: Call DEF_VEC_I(int).
8068         (struct catch_syscall_inferior_data): New.
8069         (get_catch_syscall_inferior_data): New.
8070         (catch_syscall_inferior_data_cleanup): New.
8071         (insert_catch_syscall): Update to access data in
8072         struct catch_syscall_inferior_data.
8073         (insert_catch_syscall): Likewise.
8074         (remove_catch_syscall): Likewise.
8075         (remove_catch_syscall): Likewise.
8076         (is_syscall_catchpoint_enabled): Likewise.
8077         (add_catch_command): Likewise.
8078         (_initialize_breakpoint): Register cleanup.
8079         * breakpoint.h: Removed DEF_VEC_I(int).
8080         * dwarf2loc.c: Call DEF_VEC_I(int).
8081         * mi/mi-main.c: Likewise.
8082
8083 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8084
8085         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8086
8087 2012-03-12  Chris January  <chris.january@allinea.com>
8088
8089         * aix-thread.c (_initialize_aix_thread): Add prototype.
8090         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8091         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8092
8093 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8094
8095         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8096         include of "amd64-nat.h".
8097
8098 2012-03-12  Tom Tromey  <tromey@redhat.com>
8099
8100         * buildsym.c (record_pending_block): Now static.
8101         * buildsym.h: (record_pending_block): Remove.
8102
8103 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8104
8105         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8106
8107 2012-03-09  Tom Tromey  <tromey@redhat.com>
8108
8109         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8110         producer_is_gxx_lt_4_6>: New fields.
8111         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8112
8113 2012-03-09  Tom Tromey  <tromey@redhat.com>
8114
8115         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8116
8117 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8118
8119         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8120         prototype.
8121
8122 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8123
8124         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8125
8126 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8127
8128         Fix -Wmissing-prototypes build.
8129         * arm-linux-nat.c (get_thread_id): Make it static.
8130         * xtensa-linux-nat.c (get_thread_id): Likewise.
8131
8132 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8133
8134         * server.c (process_point_options): If a conditional expression
8135         is found, only print a message if remote_debug is nonzero.
8136
8137 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8138
8139         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8140         of internal error for unknown/unsupported types.
8141
8142 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8143
8144         Fix CU relative vs. absolute DIE offsets.
8145         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8146         offset to offset_in_cu.
8147         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8148         TYPE_OFFSET.
8149         (dwarf2_fetch_die_location_block): Rename parameter offset to
8150         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8151
8152 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8153
8154         * libunwind-frame.c: Rename to ...
8155         * ia64-libunwind-tdep.c: ... here.
8156         * libunwind-frame.h: Rename to ...
8157         * ia64-libunwind-tdep.h: ... here.
8158         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8159         ia64-libunwind-tdep.h.
8160         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8161         * README (--with-libunwind): Rename to ...
8162         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8163         * config.in: Regenerate.
8164         * configure: Regenerate.
8165         * configure.ac: New option --with-libunwind-ia64, make the
8166         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8167         Remove AC_DEFINE for HAVE_LIBUNWIND.
8168         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8169         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8170         Rename libunwind-frame in the general comment.
8171         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8172         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8173         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8174         the general comment.
8175         * ia64-tdep.c: Rename libunwind-frame.h #include to
8176         ia64-libunwind-tdep.h.
8177         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8178         (ia64_libunwind_descr): Rename libunwind-frame to
8179         ia64-libunwind-tdep in these function comments.
8180         * ia64-tdep.h: Rename libunwind-frame.h #include to
8181         ia64-libunwind-tdep.h.
8182         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8183         ia64-libunwind-tdep in that data comment.
8184
8185 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8186
8187         * libunwind-frame.h (struct frame_unwind): New declaration.
8188
8189 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8190
8191         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8192         "set breakpoint condition-evaluation" command.
8193
8194 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8195
8196         * sparc-stub.c: Move to stubs/
8197         * sh-stub.c: Likewise.
8198         * m68k-stub.c: Likewise.
8199         * m32r-stub.c: Likewise.
8200         * i386-stub.c: Likewise.
8201
8202 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8203
8204         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8205         linux_get_siginfo_type.
8206
8207         * m68klinux-nat.c: Include "gdb_proc_service.h".
8208         (PTRACE_GET_THREAD_AREA): Define.
8209         (ps_get_thread_area): New function.
8210
8211 2012-03-08  Yao Qi  <yao@codesourcery.com>
8212
8213         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8214         `xsnprintf'.
8215         (remote_query_attached): Likewise.
8216         (remote_static_tracepoint_marker_at): Likewise.
8217         (remote_set_permissions): Likewise.
8218         (remote_detach_1, extended_remote_attach_1): Likewise.
8219         (send_g_packet, remote_vkill): Likewise.
8220         (extended_remote_disable_randomization): Likewise.
8221         (remote_add_target_side_condition): Likewise.
8222         (remote_insert_breakpoint): Likewise.
8223         (remote_remove_breakpoint): Likewise.
8224         (remote_insert_watchpoint): Likewise.
8225         (remote_remove_watchpoint): Likewise.
8226         (remote_insert_hw_breakpoint): Likewise.
8227         (remote_insert_hw_breakpoint): Likewise.
8228         (remote_remove_hw_breakpoint): Likewise.
8229         (remote_download_command_source): Likewise.
8230         (remote_download_tracepoint): Likewise.
8231         (remote_download_trace_state_variable): Likewise.
8232         (remote_disable_tracepoint): Likewise.
8233         (remote_trace_set_readonly_regions): Likewise.
8234         (remote_get_tracepoint_status): Likewise.
8235         (remote_trace_find): Likewise.
8236         (remote_get_trace_state_variable_value): Likewise.
8237         (remote_set_disconnected_tracing): Likewise.
8238         (remote_set_circular_trace_buffer): Likewise.
8239         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8240         (remote_use_agent): Likewise.
8241         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8242         Update callers.
8243
8244 2012-03-07  Pedro Alves  <palves@redhat.com>
8245
8246         * NEWS: Mention QProgramSignals.
8247         * inferior.h (update_signals_program_target): Declare.
8248         * infrun.c: (update_signals_program_target): New.
8249         (handle_command): Update the target of the new program signals
8250         array changes.
8251         * remote.c (PACKET_QProgramSignals): New enum.
8252         (last_program_signals_packet): New global.
8253         (remote_program_signals): New.
8254         (remote_start_remote): Update the target with the program signals
8255         list.
8256         (remote_protocol_features): Add entry for QPassSignals.
8257         (remote_open_1): Free anc clear last_program_signals_packet.
8258         (init_remote_ops): Install remote_program_signals.
8259         * target.c (update_current_target): Adjust.
8260         (target_program_signals): New.
8261         * target.h (struct target_ops) <to_program_signals>: New field.
8262         (target_program_signals): Declare.
8263
8264 2012-03-07  Pedro Alves  <palves@redhat.com>
8265
8266         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8267         extensions.
8268
8269 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8270
8271         * m68klinux-nat.c (getregs_supplies): Make static.
8272         (getfpregs_supplies): Likewise.
8273         (have_ptrace_getregs): Likewise.
8274
8275 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8276
8277         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8278         in call to get_die_type_at_offset.
8279
8280 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8281
8282         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8283         * mi/mi-cmd-disas.c: Ditto.
8284         * mi/mi-cmd-env.c: Ditto.
8285         * mi/mi-cmd-file.c: Ditto.
8286         * mi/mi-cmd-stack.c: Ditto.
8287         * mi/mi-cmd-target.c: Ditto.
8288         * mi/mi-cmd-var.c: Ditto.
8289         * mi/mi-cmds.c: Ditto.
8290         * mi/mi-cmds.h: Ditto.
8291         * mi/mi-console.c: Ditto.
8292         * mi/mi-getopt.c: Ditto.
8293         * mi/mi-getopt.h: Ditto.
8294         * mi/mi-interp.c: Ditto.
8295         * mi/mi-main.c: Ditto.
8296         * mi/mi-out.c: Ditto.
8297         * mi/mi-parse.c: Ditto.
8298         * mi/mi-parse.h: Ditto.
8299         * mi/mi-symbol-cmds.c: Ditto.
8300
8301         * mi/mi-getopt.h: Move mi_opt struct up.
8302         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8303         return.
8304         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8305
8306 2012-03-06  Tom Tromey  <tromey@redhat.com>
8307
8308         * proc-service.c (ps_pglobal_lookup): Set the current program
8309         space.
8310
8311 2012-03-06  Pedro Alves  <palves@redhat.com>
8312
8313         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8314
8315 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8316
8317         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8318
8319 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8320
8321         Code cleanup.
8322         * common/linux-osdata.c (linux_common_core_of_thread): New function
8323         comment.
8324         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8325         call by linux_common_core_of_thread.
8326         (linux_nat_core_of_thread_1): Remove.
8327         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8328         * linux-thread-db.c: Include linux-osdata.h.
8329         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8330         linux_common_core_of_thread.
8331
8332 2012-03-05  Tom Tromey  <tromey@redhat.com>
8333
8334         * value.c (value_primitive_field): Don't fetch contents for
8335         non-virtual bases.
8336
8337 2012-03-05  Tom Tromey  <tromey@redhat.com>
8338
8339         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8340
8341 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8342
8343         * s390-nat.c: Include "gregset.h".
8344
8345 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8346
8347         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8348         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8349         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8350         load also LIBUNWIND_SO_7.
8351
8352 2012-03-05  Pedro Alves  <palves@redhat.com>
8353
8354         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8355         is not NULL, and remove resulting dead code.
8356
8357 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8358
8359         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8360         prologue to sh_analyze_prologue.
8361         (sh_analyze_prologue): Make better use of such an upper limit, and
8362         generally be more cautious about accessing memory.
8363
8364 2012-03-05  Tom Tromey  <tromey@redhat.com>
8365
8366         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8367         _initialize_ia64_hpux_tdep.
8368
8369 2012-03-05  Pedro Alves  <palves@redhat.com>
8370
8371         PR gdb/13766
8372
8373         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8374         the register state is clear, supply explicit zero, instead of
8375         marking the register unavailable.
8376
8377 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8378
8379         * NEWS: Mention OpenVMS ia64 new target.
8380
8381 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8382
8383         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8384         (ia64_unw_accessors, ia64_unw_rse_accessors)
8385         (ia64_libunwind_descr): Declare.
8386         * ia64-vms-tdep.c: New file.
8387         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8388         (ia64_libunwind_descr): Make them public.
8389         * configure.tgt: Add ia64-*-*vms*.
8390         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8391         (ALLDEPFILES): Add ia64-vms-tdep.c
8392
8393 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8394
8395         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8396         * remote.c (PACKET_qXfer_uib): New enum value.
8397         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8398         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8399         (_initialize_remote): Call add_packet_config_cmd for
8400         xfer:uib packet.
8401
8402 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8403
8404         * osabi.c (gdb_osabi_names): Add OpenVMS.
8405         (generic_elf_osabi_sniffer): Likewise.
8406         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8407
8408 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8409
8410         Removed unused code.
8411         * libunwind-frame.c (libunwind_frame_unwind)
8412         (libunwind_frame_base_address): Remove.
8413         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8414
8415 2012-03-04  Yao Qi  <yao@codesourcery.com>
8416
8417         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8418         remove trailing new line.
8419         (agent_run_command, agent_run_command): Add _ markup.
8420         (agent_capability_check): Likewise.
8421
8422 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8423
8424         * breakpoint.c (set_condition_evaluation_mode): Set
8425         CONDITION_EVALUATION_MODE unconditionally.
8426
8427 2012-03-03  Yao Qi  <yao@codesourcery.com>
8428
8429         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8430         * common/agent.h: Update declaration.
8431         * inf-child.c (inf_child_use_agent): New.
8432         (inf_child_can_use_agent): New.
8433         (inf_child_target): Initialize fields `to_use_agent'
8434         and `to_can_use_agent'.
8435         * agent.c (agent_new_objfile): New.
8436         (_initialize_agent): Add agent_new_objfile to new_objfile
8437         observer.
8438
8439         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8440         New.
8441         (linux_target_install_ops): Initialize field
8442         `to_static_tracepoint_markers_by_strid'.
8443         * remote.c (free_current_marker): Move it to ...
8444         * tracepoint.c (free_current_marker): ... here.  New.
8445         (cleanup_target_stop): New.
8446         * tracepoint.h: Declare free_current_marker.
8447         * NEWS: Add one entry about `info static-tracepoint-marker'.
8448
8449 2012-03-03  Yao Qi  <yao@codesourcery.com>
8450
8451         * common/agent.c (agent_loaded_p): New.
8452         (agent_look_up_symbols): New global.
8453         * common/agent.h: Declare agent_loaded_p.
8454
8455 2012-03-03  Yao Qi  <yao@codesourcery.com>
8456
8457         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8458         (agent_capability_check, agent_capability_invalidate): New.
8459         (symbol_list): New array element.
8460         * common/agent.h (enum agent_capa): New.
8461         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8462
8463 2012-03-03  Yao Qi  <yao@codesourcery.com>
8464
8465         * target.h (struct target_ops) <to_use_agent>: New field.
8466         (struct target_ops) <to_can_use_agent>: New field.
8467         (target_use_agent, target_can_use_agent): New macro.
8468         * target.c (update_current_target): Update.
8469         * remote.c: New enum `PACKET_QAgent'.
8470         (remote_protocol_features): Add a new element.
8471         (remote_use_agent, remote_can_use_agent): New.
8472         (init_remote_ops): Initialize field `can_use_agent' with
8473         remote_can_use_agent.  Intiailize field `use_agent' with
8474         remote_use_agent.
8475         * common/agent.c (use_agent): New global.
8476         * common/agent.h: Declare it.
8477         * tracepoint.c (info_static_tracepoint_markers_command): Add
8478         comment.
8479         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8480         (COMMON_OBS): Add common/agent.o and agent.o
8481         (common-agent.o): New rule.
8482         * agent.c: New.
8483
8484 2012-03-03  Yao Qi  <yao@codesourcery.com>
8485
8486         * common/agent.c: New.
8487         * common/agent.h: New.
8488         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8489         AC_CHECK_HEADERS.
8490         * configure, configh.in: Regenerated.
8491
8492 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8493
8494         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8495         unless it exists for this architecture.
8496
8497 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8498
8499         * language.h (struct language_defn): New "method" la_read_var_value.
8500         * findvar.c: #include "language.h".
8501         (default_read_var_value): Renames read_var_value.  Rewrite
8502         function description.
8503         (read_var_value): New function.
8504         * value.h (default_read_var_value): Add prototype.
8505         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8506         New functions.
8507         (ada_language_defn): Add entry for la_read_var_value.
8508         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8509         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8510         language_defn structures to add entry for new la_read_var_value
8511         field.
8512
8513 2012-03-02  Tom Tromey  <tromey@redhat.com>
8514             Pedro Alves  <palves@redhat.com>
8515
8516         PR breakpoints/13776:
8517         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8518         breakpoints.
8519         (delete_longjmp_breakpoint_at_next_stop): New.
8520         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8521         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8522         before deleting the inferior.  Add comments.
8523         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8524         breakpoints immediately, but only on next stop.  Move that code
8525         next to where we mark other breakpoints for deletion.
8526
8527 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8528
8529         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8530         marker.
8531         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8532         violation.
8533
8534 2012-03-02  Pedro Alves  <palves@redhat.com>
8535
8536         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8537
8538 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8539
8540         Fix -Wmissing-prototypes build.
8541         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8542         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8543         (gdbsim_has_memory): Likewise.
8544
8545 2012-03-02  Yao Qi  <yao@codesourcery.com>
8546
8547         Fix -Wmissing-prototypes build.
8548         * charset.c (phony_iconv_open): Make static.
8549         (phony_iconv_close, phony_iconv): Likewise.
8550         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8551         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8552         prototype.
8553         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8554         * ser-mingw.c (create_select_thread): Make static.
8555         * windows-termcap.c (tgetent): New prototype.
8556         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8557
8558 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8559
8560         Fix -Wmissing-prototypes build.
8561         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8562         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8563         (_initialize_loadable): New prototypes.
8564
8565 2012-03-02  Doug Evans  <dje@google.com>
8566
8567         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8568         abbrev table, read_comp_unit will do it.
8569
8570 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8571
8572         Fix -Wmissing-prototypes build.
8573         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8574         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8575         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8576         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8577         (_initialize_arm_symbian_tdep): New prototype.
8578         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8579         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8580         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8581         static.
8582         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8583         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8584         prototype.
8585         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8586         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8587         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8588         static.
8589         * moxie-tdep.c (moxie_process_record): Likewise.
8590         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8591         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8592         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8593         (_initialize_rl78_tdep): New prototype.
8594         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8595         (_initialize_rx_tdep): New prototype.
8596         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8597         (_initialize_darwin_solib): New prototype.
8598         * solib-spu.c: Include solib-spu.h.
8599         (_initialize_spu_solib): New prototype.
8600         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8601         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8602         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8603         (tic6x_software_single_step): Make it static.
8604         (_initialize_tic6x_tdep): New prototype.
8605
8606 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8607
8608         Fix -Wmissing-prototypes build.
8609         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8610         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8611
8612 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8613
8614         Fix -Wmissing-prototypes build.
8615         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8616         (frv_have_stopped_data_address): Remove.
8617
8618 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8619
8620         Fix -Wmissing-prototypes build.
8621         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8622         * sh-tdep.c: Include sh64-tdep.h.
8623         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8624         * sh64-tdep.c: Include sh64-tdep.h.
8625         * sh64-tdep.h: New file.
8626
8627 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8628
8629         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8630
8631 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8632
8633         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8634         sp_regnum once the gdbarch_init_osabi hook has been called.
8635
8636 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8637
8638         * mips-tdep.c (mips32_bc1_pc): New function.
8639         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8640         BPOSGE32 and BPOSGE64 instructions.
8641         (deal_with_atomic_sequence): Likewise.
8642         (mips32_instruction_has_delay_slot): Likewise.
8643
8644 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8645             Chris Dearman  <chris@mips.com>
8646             Maciej W. Rozycki  <macro@codesourcery.com>
8647             Joseph Myers  <joseph@codesourcery.com>
8648
8649         * features/mips-dsp.xml: New file.
8650         * features/mips64-dsp.xml: New file.
8651         * features/mips-dsp-linux.xml: New file.
8652         * features/mips64-dsp-linux.xml: New file.
8653         * features/Makefile (WHICH): Add mips-dsp-linux and
8654         mips64-dsp-linux.
8655         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8656         * features/mips-dsp-linux.c: New file.
8657         * features/mips64-dsp-linux.c: New file.
8658         * regformats/mips-dsp-linux.dat: New file.
8659         * regformats/mips64-dsp-linux.dat: New file.
8660         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8661         registers.
8662         (mips64_linux_register_addr): Likewise.
8663         (mips64_linux_regsets_fetch_registers): Likewise.
8664         (mips64_linux_regsets_store_registers): Likewise.
8665         (mips64_linux_fetch_registers): Update call to
8666         mips64_linux_regsets_fetch_registers.
8667         (mips64_linux_store_registers): Update call to
8668         mips64_linux_regsets_store_registers.
8669         (mips_linux_read_description): Probe for DSP registers.
8670         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8671         and initialize_tdesc_mips64_dsp_linux.
8672         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8673         Remove padding of no longer used embedded register slots.
8674         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8675         (MIPS_RESTART_REGNUM): Redefine enum value.
8676         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8677         strings.
8678         (mips_tx39_reg_names): Likewise.
8679         (mips_linux_reg_names): New array of register names for Linux
8680         targets.
8681         (mips_register_name): Check for a null pointer in
8682         mips_processor_reg_names and return an empty string.
8683         (mips_register_type): Exclude embedded registers for the IRIX
8684         and Linux ABIs.
8685         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8686         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8687         DSP registers.
8688         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8689         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8690         (mips_gdbarch_init): Likewise.  Initialize internal register
8691         indices for the Linux ABI.  Use dynamic numbers to refer to
8692         registers, as applicable, while parsing the target description.
8693         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8694
8695 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8696
8697         * frame.h (read_frame_register_unsigned): Fix typo in function
8698         description.
8699
8700 2012-03-01  Pedro Alves  <palves@redhat.com>
8701
8702         * jit-reader.in [!__cplusplus]
8703         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8704
8705 2012-03-01  Pedro Alves  <palves@redhat.com>
8706
8707         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8708         * configure: Regenerate.
8709
8710 2012-03-01  Pedro Alves  <palves@redhat.com>
8711
8712         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8713         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8714         (ftrace_command, strace_command): Make static.
8715         * d-lang.c (_initialize_d_language): Declare.
8716         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8717         * dwarf2loc.c (_initialize_dwarf2loc):
8718         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8719         * exec.c (exec_get_section_table): Make static.
8720         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8721         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8722         * inferior.c (remove_inferior_command, add_inferior_command)
8723         (clone_inferior_command): Make static.
8724         * linux-nat.c (linux_nat_thread_address_space)
8725         (linux_nat_core_of_thread): Make static.
8726         * linux-tdep.c (_initialize_linux_tdep): Declare.
8727         * objc-lang.c (_initialize_objc_lang): Declare.
8728         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8729         Make static.
8730         (_initialize_opencl_language): Declare.
8731         * record.c (_initialize_record): Declare.
8732         * remote.c (demand_private_info, remote_get_tib_address)
8733         (remote_supports_cond_tracepoints)
8734         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8735         Make static.
8736         * skip.c (_initialize_step_skip): Declare.
8737         * symtab.c (skip_prologue_using_lineinfo): Make static.
8738         * tracepoint.c (delete_trace_state_variable)
8739         (trace_variable_command, delete_trace_variable_command)
8740         (get_uploaded_tsv, find_matching_tracepoint_location)
8741         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8742         Make static.
8743         * value.c (pack_unsigned_long): Make static.
8744         * varobj.c (varobj_ensure_python_env): Make static.
8745         * windows-tdep.c (_initialize_windows_tdep): Declare.
8746         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8747
8748 2012-03-01  Pedro Alves  <palves@redhat.com>
8749
8750         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8751         gdbarch parameter.
8752         (linux_init_abi): Install it as has_shared_address_space gdbarch
8753         callback.
8754
8755 2012-03-01  Pedro Alves  <palves@redhat.com>
8756
8757         * observer.c (observer_test_first_notification_function)
8758         (observer_test_second_notification_function)
8759         (observer_test_third_notification_function): Add declarations.
8760
8761 2012-03-01  Pedro Alves  <palves@redhat.com>
8762
8763         * common/signals.c (default_target_signal_to_host)
8764         (default_target_signal_from_host): Move ...
8765         * arch-utils.c: ... here.
8766         * arch-utils.h (default_target_signal_to_host)
8767         (default_target_signal_from_host): Declare.
8768
8769         * common/signals.c (target_signal_from_command): Move ...
8770         * infrun.c: ... here.
8771         * inferior.h (target_signal_from_command): Declare.
8772         * target.h (target_signal_from_command)
8773         (default_target_signal_from_host, default_target_signal_to_host):
8774         Delete declarations.
8775
8776         * common/signals.c (_initialize_signals): Delete.
8777
8778 2012-03-01  Pedro Alves  <palves@redhat.com>
8779
8780         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8781         both __cplusplus and !__cplusplus.
8782
8783 2012-03-01  Pedro Alves  <palves@redhat.com>
8784
8785         * psymtab.c (find_and_open_source): Delete declaration.
8786         * source.c (find_and_open_source): Move comment ...
8787         * source.h (find_and_open_source): ... to this new declaration.
8788
8789 2012-03-01  Pedro Alves  <palves@redhat.com>
8790
8791         * inline-frame.c: Include inline-frame.h.
8792
8793 2012-03-01  Pedro Alves  <palves@redhat.com>
8794
8795         * tui/tui-data.c (set_gen_win_origin): Delete.
8796         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8797         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8798
8799 2012-03-01  Pedro Alves  <palves@redhat.com>
8800
8801         * remote.c (encode_actions): Delete declaration.
8802         * tracepoint.c (encode_actions): Make extern.
8803         * tracepoint.h (encode_actions): Declare.
8804
8805 2012-03-01  Pedro Alves  <palves@redhat.com>
8806
8807         * python/py-breakpoint.c: Include python.h.
8808         * python/py-continueevent.c (create_continue_event_object): Make
8809         static.
8810         * python/py-lazy-string.c (stpy_get_type): Make static.
8811         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8812         Make static.
8813         * python/py-utils.c (unicode_to_target_python_string): Make
8814         static.
8815         * python/py-value.c: Include python.h.
8816
8817 2012-03-01  Pedro Alves  <palves@redhat.com>
8818
8819         * inferior.c (delete_threads_of_inferior): Delete.
8820
8821 2012-03-01  Pedro Alves  <palves@redhat.com>
8822
8823         Import fallback definitions from glibc.
8824
8825         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8826         ps_prochandle): Forward declare.
8827         (ps_err_e): Use glibc's comments.
8828         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8829         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8830         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8831         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8832         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8833         (struct ps_prochandle): Adjust comment.
8834
8835 2012-03-01  Pedro Alves  <palves@redhat.com>
8836
8837         * ada-lang.c (ada_modulus_from_name): Delete.
8838         * ada-lex.l (lexer_init): Make static.
8839
8840 2012-03-01  Pedro Alves  <palves@redhat.com>
8841
8842         PR gdb/13767
8843
8844         * frame.c (read_frame_register_unsigned): New.
8845         * frame.h (read_frame_register_unsigned): Declare.
8846         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8847         Handle it.
8848         (print_i387_control_word): New parameter `control_p'.  Handle it.
8849         (i387_print_float_info): Handle unavailable float registers.
8850
8851 2012-03-01  Keith Seitz  <keiths@redhat.com>
8852
8853         * linespec.c (decode_line_2): Sort the list of methods
8854         alphabetically before presenting the user with a selection
8855         menu.
8856
8857 2012-03-01  Doug Evans  <dje@google.com>
8858
8859         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8860         has_namespace_info.
8861         (dwarf2_read_abbrevs): Remove corresponding initialization.
8862
8863 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
8864
8865         * NEWS: Mention new python command class gdb.COMMAND_USER.
8866         * cli/cli-cmds.c (show_user): Print error when used on a python
8867         command.
8868         (init_cli_cmds): Update documentation strings for "show user" and
8869         "set/show max-user-call-depth" to clarify that it does not apply to
8870         python commands.
8871         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8872         error check.
8873         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8874         gdb python api.
8875         * top.c (execute_command): Only execute a user-defined command as a
8876         legacy macro if c->user_commands is set.
8877
8878 2012-03-01  Tom Tromey  <tromey@redhat.com>
8879
8880         * valprint.h (struct generic_val_print_decorations): New.
8881         (generic_val_print): Declare.
8882         * valprint.c (generic_val_print): New function.
8883         * p-valprint.c (p_decorations): New global.
8884         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8885         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8886         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8887         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8888         * m2-valprint.c (m2_decorations): New global.
8889         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8890         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8891         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8892         TYPE_CODE_ERROR>: Call generic_val_print.
8893         * f-valprint.c (f_decorations): New global.
8894         (f_val_print): Use print_function_pointer_address.
8895         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8896         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8897         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8898         generic_val_print.
8899         * c-valprint.c (c_decorations): New global.
8900         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8901         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8902         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8903         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8904         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8905         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8906         case.
8907
8908 2012-03-01  Tom Tromey  <tromey@redhat.com>
8909
8910         * valprint.c (val_print): Update.
8911         * p-valprint (pascal_val_print): Return void.
8912         * p-lang.h (pascal_val_print): Return void.
8913         * m2-valprint.c (m2_val_print): Return void.
8914         * m2-lang.h (m2_val_print): Return void.
8915         * language.h (struct language_defn) <la_val_print>: Return void.
8916         * language.c (unk_lang_val_print): Return void.
8917         * jv-valprint.c (java_val_print): Return void.
8918         * jv-lang.h (java_val_print): Return void.
8919         * f-valprint.c (f_val_print): Return void.
8920         * f-lang.h (f_val_print): Return void.
8921         * d-valprint.c (d_val_print): Return void.
8922         (dynamic_array_type): Update.
8923         * d-lang.h (d_val_print): Return void.
8924         * c-valprint.c (c_val_print): Return void.
8925         * c-lang.h (c_val_print): Return void.
8926         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8927         void.
8928         * ada-lang.h (ada_val_print): Return void.
8929
8930 2012-03-01  Tom Tromey  <tromey@redhat.com>
8931
8932         * value.h (val_print): Return void.
8933         * valprint.c (val_print): Return void.
8934
8935 2012-03-01  Tom Tromey  <tromey@redhat.com>
8936
8937         * value.h (common_val_print): Return void.
8938         * valprint.c (common_val_print): Return void.
8939
8940 2012-03-01  Tom Tromey  <tromey@redhat.com>
8941
8942         * value.h (value_print): Return void.
8943         * valprint.c (value_print): Return void.
8944         * p-valprint.c (pascal_value_print): Return void.
8945         * p-lang.h (pascal_value_print): Return void.
8946         * language.h (struct language_defn) <la_value_print>: Return
8947         void.
8948         * language.c (unk_lang_value_print): Return void.
8949         * jv-valprint.c (java_value_print): Return void.
8950         * jv-lang.h (java_value_print): Return void.
8951         * f-valprint.c (c_value_print): Don't declare.
8952         Include c-lang.h.
8953         * c-valprint.c (c_value_print): Return void.
8954         * c-lang.h (c_value_print): Return void.
8955         * ada-valprint.c (ada_value_print): Return void.
8956         * ada-lang.h (ada_value_print): Return void.
8957
8958 2012-03-01  Tom Tromey  <tromey@redhat.com>
8959
8960         * value.c (value_primitive_field): Handle virtual base classes.
8961
8962 2012-03-01  Tom Tromey  <tromey@redhat.com>
8963
8964         * gdbtypes.h (struct vbase): Remove.
8965
8966 2012-03-01  Tom Tromey  <tromey@redhat.com>
8967
8968         * c-valprint.c (print_function_pointer_address): Move...
8969         * valprint.c: ... here.  Make non-static.
8970         * m2-valprint.c (print_function_pointer_address): Remove.
8971         * valprint.h (print_function_pointer_address): Declare.
8972
8973 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8974
8975         * NEWS: Document the fact that one can provide a condition when
8976         creating an Ada exception catchpoint.
8977
8978 2012-03-01  Tom Tromey  <tromey@redhat.com>
8979
8980         * valprint.c (val_print_type_code_flags): Fix placement of
8981         trailing brace.
8982
8983 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8984
8985         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8986         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8987         environment variable before calling update-copyright.
8988
8989 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8990
8991         * gnulib/extra/update-copyright: Update to the latest from
8992         gnulib's git repository.
8993         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8994         variable to 2 instead of 1.
8995
8996 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
8997
8998         * varobj.c (c_value_of_variable): Remove dead code.
8999
9000 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9001
9002         * ada-lex.p (processId): Do not modify already encoded IDs.
9003         Update function documentation.
9004
9005 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9006
9007         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9008         "name" with "struct symbol *name_sym".
9009         * ada-exp.y (write_var_or_type): Update call to
9010         ada_find_renaming_symbol.
9011         "name" with "struct symbol *name_sym". Adjust Implementation
9012         accordingly.  Adjust the function documentation.
9013
9014 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9015
9016         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9017         * ada-lang.c (ada_find_any_type): Add advance declaration.
9018         Make static.  Replace ada_find_any_symbol by
9019         ada_find_any_type_symbol.
9020         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9021         Improve function description.  Make static.
9022         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9023         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9024
9025 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9026
9027         * ada-lang.c (struct tag_args): Delete.
9028         (ada_get_tsd_type): Function body moved up in source file.
9029         (ada_tag_name_1, ada_tag_name_2): Delete.
9030         (ada_get_tsd_from_tag): New function.
9031         (ada_tag_name_from_tsd): New function.
9032         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9033         to determine the tag name.
9034
9035 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9036
9037         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9038         declaration.
9039         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9040         function.
9041
9042 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9043
9044         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9045
9046 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9047
9048         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9049         full searches.
9050
9051 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9052
9053         * ada-lang.c (constrained_packed_array_type): If there is a
9054         parallel XA type, use it to determine the array index type.
9055
9056 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9057
9058         * ada-valprint.c (ada_val_print_1): If our value is a reference
9059         to an array descriptor, dereference it before converting it
9060         to a simple array.
9061
9062 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9063
9064         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9065         creating fixed value.
9066         (ada_value_ind, ada_coerce_ref, assign_component)
9067         (ada_evaluate_subexp): Remove call to unwrap_value before
9068         call to ada_to_fixed_value.
9069
9070 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9071
9072         * ada-lang.c (to_fixed_array_type): Set result's type name.
9073
9074 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9075
9076         * ada-lang.c (catch_ada_exception_command_split): Add new
9077         argument cond_string.  Add support for condition at end of
9078         "catch exception" commands.
9079         (ada_decode_exception_location): Add new argument cond_string.
9080         Update call to catch_ada_exception_command_split.
9081         (create_ada_exception_catchpoint): Add new argument cond_string.
9082         Set the breakpoint condition if needed.
9083         (catch_ada_exception_command): Update call to
9084         ada_decode_exception_location.
9085         (ada_decode_assert_location): Add function documentation.
9086         Add support for condition at end of "catch assert" command.
9087         (catch_assert_command): Update calls to ada_decode_assert_location
9088         and create_ada_exception_catchpoint.
9089
9090 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9091
9092         Fix disp-step-syscall.exp: fork: single step over fork.
9093         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9094         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9095         comment, change parameters gdbarch and ptid to regcache.  Remove
9096         parameter regcache, initialize gdbarch from regcache here.
9097         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9098         New functions.
9099         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9100         instead.
9101         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9102         'syscall'.  Make the 'int' check more strict.
9103
9104 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9105
9106         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9107         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9108         (i386_linux_intx80_sysenter_syscall_record): ... here.
9109         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9110         Use the renamed function name.
9111
9112 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9113
9114         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9115         * breakpoint.c (until_break_command): Likewise.
9116         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9117         * infcall.c (call_function_by_hand): Likewise.
9118         * infcmd.c (finish_forward): Likewise.
9119         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9120
9121 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9122
9123         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9124         avoid variable assignments inside condition.
9125
9126 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9127
9128         Fix static analysis issue found by cppcheck.
9129         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9130         uninitialized BUF for size 2.
9131
9132 2012-02-27  Chris Dearman  <chris@mips.com>
9133             Nathan Froyd  <froydnj@codesourcery.com>
9134             Maciej W. Rozycki  <macro@codesourcery.com>
9135
9136         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9137         (mips16_instruction_has_delay_slot): Likewise.
9138         (mips_segment_boundary): Likewise.
9139         (mips_adjust_breakpoint_address): Likewise.
9140         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9141
9142 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9143             Maciej W. Rozycki  <macro@codesourcery.com>
9144
9145         * infrun.c (handle_inferior_event): Don't proceed through
9146         shared library trampolines if stepping at the machine
9147         instruction level.
9148
9149 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9150
9151         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9152         too.
9153
9154 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9155
9156         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9157         (sh_stub_unwind_sniffer): New functions.
9158         (sh_stub_unwind): New variable.
9159         (sh_gdbarch_init): Wire everything.
9160
9161 2012-02-27  Pedro Alves  <palves@redhat.com>
9162
9163         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9164         (linux_nat_post_attach_wait): Adjust to use
9165         linux_proc_pid_is_stopped.
9166         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9167         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9168         based on pid_is_stopped from both linux-nat.c and
9169         gdbserver/linux-low.c, and renamed.
9170
9171 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9172
9173         * remote.c (remote_watchpoint_addr_within_range): New function.
9174         (init_remote_ops): Use it.
9175
9176 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9177
9178         * target.h (target_watchpoint_addr_within_range): Document macro.
9179
9180 2012-02-24  Pedro Alves  <palves@redhat.com>
9181
9182         * stack.c (set_last_displayed_sal): Issue internal_error instead
9183         of warning, and issue it after clearing the last displayed sal.
9184
9185 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9186             Pedro Alves  <palves@redhat.com>
9187
9188         * breakpoint.c (until_break_command): Install breakpoints after
9189         all frame manipulations.
9190
9191 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9192
9193         * remote.c (remote_supports_cond_breakpoints): New forward
9194         declaration.
9195         (remote_add_target_side_condition): New function.
9196         (remote_insert_breakpoint): Add target-side breakpoint
9197         conditional if supported.
9198         (remote_insert_hw_breakpoint): Likewise.
9199         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9200         hook.
9201
9202         * target.c (update_current_target): Inherit
9203         to_supports_evaluation_of_breakpoint_conditions.
9204         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9205
9206         * target.h (struct target_ops)
9207         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9208         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9209
9210         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9211         (condition_evaluation_both, condition_evaluation_auto,
9212         condition_evaluation_host, condition_evaluation_target,
9213         condition_evaluation_enums, condition_evaluation_mode_1,
9214         condition_evaluation_mode): New static globals.
9215         (translate_condition_evaluation_mode): New function.
9216         (breakpoint_condition_evaluation_mode): New function.
9217         (gdb_evaluates_breakpoint_condition_p): New function.
9218         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9219         (mark_breakpoint_modified): New function.
9220         (mark_breakpoint_location_modified): New function.
9221         (set_condition_evaluation_mode): New function.
9222         (show_condition_evaluation_mode): New function.
9223         (bp_location_compare_addrs): New function.
9224         (get_first_location_gte_addr): New helper function.
9225         (set_breakpoint_condition): Free condition bytecode if locations
9226         has become unconditional.  Call mark_breakpoint_modified (...).
9227         (condition_command): Call update_global_location_list (1) for
9228         breakpoints.
9229         (breakpoint_xfer_memory): Use is_breakpoint (...).
9230         (is_breakpoint): New function.
9231         (parse_cond_to_aexpr): New function.
9232         (build_target_condition_list): New function.
9233         (insert_bp_location): Handle target-side conditional
9234         breakpoints and call build_target_condition_list (...).
9235         (update_inserted_breakpoint_locations): New function.
9236         (insert_breakpoint_locations): Handle target-side conditional
9237         breakpoints.
9238         (bpstat_check_breakpoint_conditions): Add comment.
9239         (bp_condition_evaluator): New function.
9240         (bp_location_condition_evaluator): New function.
9241         (print_breakpoint_location): Print information on where the condition
9242         will be evaluated.
9243         (print_one_breakpoint_location): Likewise.
9244         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9245         breakpoint location.
9246         (force_breakpoint_reinsertion): New functions.
9247         (update_global_location_list): Handle target-side breakpoint
9248         conditions.
9249         Reinsert locations that are already inserted if conditions have
9250         changed.
9251         (bp_location_dtor): Free agent expression bytecode.
9252         (disable_breakpoint): Call mark_breakpoint_modified (...).
9253         Call update_global_location_list (...) with parameter 1 for breakpoints.
9254         (disable_command): Call mark_breakpoint_location_modified (...).
9255         Call update_global_location_list (...) with parameter 1 for breakpoints.
9256         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9257         (enable_command): mark_breakpoint_location_modified (...).
9258         (_initialize_breakpoint): Update documentation and add
9259         condition-evaluation breakpoint subcommand.
9260
9261         * breakpoint.h: Include ax.h.
9262         (condition_list): New data structure.
9263         (condition_status): New enum.
9264         (bp_target_info) <cond_list>: New field.
9265         (bp_location) <condition_changed, cond_bytecode>: New fields.
9266         (is_breakpoint): New prototype.
9267
9268 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9269
9270         * remote.c (remote_state) <cond_breakpoints>: New field.
9271         (PACKET_ConditionalBreakpoints): New enum.
9272         (remote_cond_breakpoint_feature): New function.
9273         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9274         (remote_supports_cond_breakpoints): New function.
9275         (_initialize_remote): Add new packet configuration for
9276         target-side conditional breakpoints.
9277
9278 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9279
9280         * NEWS: Mention target-side conditional breakpoint support,
9281         new condition-evaluation breakpoint subcommand and remote
9282         packet extensions.
9283
9284 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9285
9286         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9287         number.
9288
9289 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9290
9291         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9292         (after_prologue): Remove.
9293
9294 2012-02-23  Tom Tromey  <tromey@redhat.com>
9295
9296         * jv-valprint.c (java_val_print): Remove dead code.
9297
9298 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9299
9300         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9301         known_tasks_element and known_tasks_length fields.
9302         (read_known_tasks_array): Change argument type.  Use pointer type
9303         and number of elements from DATA.  Adjust.
9304         (read_known_tasks_list): Likewise.
9305         (get_known_tasks_addr): Remove.
9306         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9307         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9308         type and array length.  Merge former get_known_tasks_addr code.
9309
9310 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9311
9312         PR backtrace/13716
9313         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9314         it after set_momentary_breakpoint.
9315
9316 2012-02-22  Sterling Augustine  <saugustine@google.com>
9317
9318         PR 13689:
9319         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9320
9321 2012-02-22  Gary Benson  <gbenson@redhat.com>
9322
9323         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9324         (find_slot_in_mapped_hash): Likewise.
9325
9326 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9327
9328         PR build/13638
9329         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9330         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9331         * configure: Regenerate.
9332
9333 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9334             Pedro Alves  <palves@redhat.com>
9335
9336         * ia64-tdep.c: Do not include libunwind-ia64.h.
9337         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9338         Include libunwind-ia64.h instead of libunwind.h.
9339         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9340         for libunwind.h existence.
9341         * configure, config.in: Regenerate.
9342
9343 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9344
9345         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9346         instead of value_rtti_target_type.
9347         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9348         instead of value_rtti_target_type.
9349         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9350         value_rtti_target_type.
9351         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9352         (value_rtti_target_type): Rename to ...
9353         (value_rtti_indirect_type): ... here and make it indirect.  Update
9354         function comment.
9355         * value.c (readjust_indirect_value_type): New function.
9356         (coerce_ref): Support for enclosing type setting for references
9357         with readjust_indirect_value_type.
9358         * value.h (readjust_value_type): New declaration.
9359         (value_rtti_target_type): Rename to ...
9360         (value_rtti_indirect_type): ... here.
9361
9362 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9363
9364         * MAINTAINERS (Write After Approval): Add myself to the list.
9365
9366 2012-02-20  Doug Evans  <dje@google.com>
9367
9368         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9369         Rename objfile_p_char parameter to objfilep.
9370         (build_objfile_section_table): Result is now void.  All callers
9371         updated.
9372         * objfiles.h (struct objfile): Tweak comments, whitespace.
9373         (build_objfile_section_table): Update.
9374
9375         * elfread.c (elf_symfile_segments): Fix warning text.
9376
9377 2012-02-20  Tom Tromey  <tromey@redhat.com>
9378
9379         PR gdb/13498:
9380         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9381         particular set of file names once.
9382         (dw2_map_symbol_filenames): Likewise.
9383
9384 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9385
9386         Code cleanup.
9387         * main.c (write_files): Remove the declaration.
9388         (external_editor_command): Move the declaration ...
9389         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9390
9391 2012-02-20  Tom Tromey  <tromey@redhat.com>
9392
9393         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9394         extraneous block.
9395
9396 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9397
9398         * darwin-nat.h (enum darwin_msg_state): Add comments.
9399
9400 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9401
9402         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9403         value.
9404
9405 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9406
9407         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9408         between function description and implementation.
9409
9410 2012-02-17  Tom Tromey  <tromey@redhat.com>
9411
9412         PR python/12070:
9413         * python/py-event.c (event_object_getset): New global.
9414         (event_object_type): Reference it.
9415         * python/py-type.c (field_object_getset): New global.
9416         (field_object_type): Reference it.
9417         * python/python-internal.h (gdb_py_generic_dict): Declare.
9418         * python/py-utils.c (gdb_py_generic_dict): New function.
9419
9420 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9421
9422         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9423
9424 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9425
9426         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9427         TYPE_CALLING_CONVENTION annotation.
9428
9429 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9430
9431         * MAINTAINERS: Add rx to target ISA section.
9432         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9433         (ALLDEPFILES): Add rx-tdep.c.
9434
9435 2012-02-16  Tom Tromey  <tromey@redhat.com>
9436
9437         * symfile.c (symbol_file_add_main_1): Use inferior's
9438         symfile_flags.
9439         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9440         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9441         inferior.
9442         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9443         inferior.
9444         (follow_exec): Use inferior's symfile_flags.
9445         * inferior.h (struct inferior) <symfile_flags>: New field.
9446
9447 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9448
9449         PR gdb/9734:
9450         * remote-sim.c (gdbsim_create_inferior): Call error() when
9451         sim_create_inferior() fails.
9452
9453 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9454
9455         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9456
9457 2012-02-16  Tom Tromey  <tromey@redhat.com>
9458
9459         PR c++/13653:
9460         * thread.c (struct current_thread_cleanup) <was_removable>: New
9461         field.
9462         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9463         (make_cleanup_restore_current_thread): Initialize new field.
9464
9465 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9466
9467         * MAINTAINERS: Add rl78 to target ISA section.
9468         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9469         (ALLDEPFILES): Add rl78-tdep.c.
9470         * NEWS: Mention rl78 as a new target.
9471
9472 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9473
9474         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9475         data.
9476         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9477
9478 2012-02-15  Tom Tromey  <tromey@redhat.com>
9479
9480         PR gdb/12659:
9481         * infcmd.c (registers_info): Print just the current register's
9482         name.
9483
9484 2012-02-15  Tom Tromey  <tromey@redhat.com>
9485
9486         * python/py-symbol.c (sympy_value): Use _().
9487
9488 2012-02-15  Pedro Alves  <palves@redhat.com>
9489
9490         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9491         output to be like native targets'.
9492         (remote_pid_to_str): Special case the null ptid.
9493
9494 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9495
9496         * NEWS: Mention enable count command.
9497         * breakpoint.h (struct breakpoint): New field enable_count.
9498         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9499         (enable_breakpoint): Add arg to call.
9500         (struct disp_data): New struct.
9501         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9502         (do_map_enable_once_breakpoint): Create a struct and pass it.
9503         (do_map_enable_delete_breakpoint): Ditto.
9504         (do_map_enable_count_breakpoint): New function.
9505         (enable_count_command): New function.
9506         (bpstat_stop_status): Decrement enable_count.
9507         (print_one_breakpoint_location): Report enable count.
9508         (_initialize_breakpoint): Add enable count command.
9509
9510 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9511
9512         * rl78-tdep.c (reggroups.h): Include.
9513         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9514         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9515         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9516         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9517         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9518         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9519         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9520         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9521         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9522         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9523         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9524         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9525         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9526         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9527         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9528         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9529         beginning of register list.
9530         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9531         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9532         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9533         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9534         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9535         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9536         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9537         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9538         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9539         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9540         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9541         the pseudo registers.  Rearrange other pseudo registers too so
9542         that the bank registers appear at the end.
9543         (rl78_register_type): Account for the fact that the byte sized
9544         bank registers are now pseudo-registers.
9545         (rl78_register_name): Rearrange the register name array.  Make
9546         initial set of raw banked registers inaccessible.
9547         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9548         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9549         case for copying bytes back and forth between raw and pseudo
9550         versions of the banked registers.  Update other cases to reflect
9551         the changed names.
9552         (rl78_return_value): Update to account for changed names of
9553         raw registers.
9554         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9555         rl78_register_sim_regno().
9556
9557 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9558
9559         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9560         the name parameter being passed to find_pc_partial_function().
9561
9562 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9563
9564         * MAINTAINERS: Step down from being ia64 target maintainer.
9565
9566 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9567
9568         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9569         compilation warning.
9570
9571 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9572
9573         Fix crash on loaded shlibs without loaded exec_bfd.
9574         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9575         (set_section_command): Replace exec_bfd by p->bfd.
9576
9577 2012-02-10  Tom Tromey  <tromey@redhat.com>
9578
9579         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9580         when we have a C++ qualified name.
9581
9582 2012-02-10  Pedro Alves  <palves@redhat.com>
9583
9584         * inferior.c (inferior_pid_to_str): New.
9585         (print_inferior, inferior_command): Use it.
9586
9587 2012-02-10  Pedro Alves  <palves@redhat.com>
9588
9589         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9590         the test CFLAGS.
9591         * configure: Regenerate.
9592
9593 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9594
9595         * linespec.c (decode_line_internal): Fix comment correctness.
9596
9597 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9598
9599         PR gdb/12953
9600         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9601         * amd64bsd-nat.c: Add support for debug registers (adapted from
9602         i386bsd-nat.c).
9603         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9604         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9605         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9606         (amd64bsd_dr_get_control): New functions.
9607         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9608         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9609         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9610         watchpoints initialization.
9611         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9612
9613 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9614
9615         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9616         flds_bnds.fields.
9617         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9618
9619 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9620
9621         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9622
9623 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9624
9625         * language.h (symbol_name_cmp_ftype): Renames
9626         symbol_name_match_p_ftype.
9627         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9628         la_get_symbol_name_match_p.
9629         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9630         ada_get_symbol_name_match_p.  Update comment.
9631         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9632         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9633         Renames symbol_name_match_p.  Update field type.
9634         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9635         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9636         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9637         "la_get_symbol_name_cmp" in comments.
9638         * language.c: Likewise.
9639
9640 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9641
9642         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9643         %eflags offset.
9644         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9645         (amd64_sol2_gregset32_reg_offs): Likewise.
9646
9647 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9648
9649         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9650         of the returned BFD is allocated by GDB.
9651
9652 2012-02-07  Tom Tromey  <tromey@redhat.com>
9653
9654         PR python/12027:
9655         * python/python-internal.h (frame_object_type): Declare.
9656         * python/py-symbol.c (sympy_needs_frame): New function.
9657         (sympy_value): New function.
9658         (symbol_object_getset): Add "needs_frame".
9659         (symbol_object_methods): Add "value".
9660         * python/py-frame.c (frame_object_type): No longer static.
9661
9662 2012-02-07  Tom Tromey  <tromey@redhat.com>
9663
9664         PR python/13599:
9665         * python/py-symbol.c (sympy_line): New function.
9666         (symbol_object_getset): Add "line".
9667
9668 2012-02-07  Tom Tromey  <tromey@redhat.com>
9669
9670         * charset.c (find_charset_names): Check 'in' against NULL.
9671
9672 2012-02-06  Doug Evans  <dje@google.com>
9673
9674         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9675         and fields.name members from char * to const char *.  All uses updated.
9676         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9677         from char * to const char *.  All uses updated.
9678         (type_name_no_tag): Update.
9679         (lookup_unsigned_typename, lookup_signed_typename): Update.
9680         * gdbtypes.c (type_name_no_tag): Change result type
9681         from char * to const char *.  All callers updated.
9682         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9683         name parameter from char * to const char *.
9684         * symtab.h (struct cplus_specific): Change type of demangled_name
9685         member from char * to const char *.  All uses updated.
9686         (struct general_symbol_info): Change type of name and
9687         mangled_lang.demangled_name members from char * to const char *.
9688         All uses updated.
9689         (symbol_get_demangled_name, symbol_natural_name): Update.
9690         (symbol_demangled_name, symbol_search_name): Update.
9691         * symtab.c (symbol_get_demangled_name): Change result type
9692         from char * to const char *.  All callers updated.
9693         (symbol_natural_name, symbol_demangled_name): Ditto.
9694         (symbol_search_name): Ditto.
9695         (completion_list_add_name): Change type of symname,sym_text,
9696         text,word parameters from char * to const char *.
9697         (completion_list_objc_symbol): Change type of sym_text,
9698         text,word parameters from char * to const char *.
9699         * ada-lang.c (find_struct_field): Change type of name parameter
9700         from char * to const char *.
9701         (encoded_ordered_before): Similarly for N0,N1 parameters.
9702         (old_renaming_is_invisible): Similarly for function_name parameter.
9703         (ada_type_name): Change result type from char * to const char *.
9704         All callers updated.
9705         * ada-lang.h (ada_type_name): Update.
9706         * buildsym.c (hashname): Change type of name parameter
9707         from char * to const char *.
9708         * buildsym.h (hashname): Update.
9709         * dbxread.c (end_psymtab): Change type of include_list parameter
9710         from char ** to const char **.
9711         * dwarf2read.c (determine_prefix): Change result type
9712         from char * to const char *.  All callers updated.
9713         * f-lang.c (find_common_for_function): Change type of name, funcname
9714         parameters from char * to const char *.
9715         * f-lang.c (find_common_for_function): Update.
9716         * f-valprint.c (list_all_visible_commons): Change type of funcname
9717         parameters from char * to const char *.
9718         * gdbarch.sh (static_transform_name): Change type of name parameter
9719         and result from char * to const char *.
9720         * gdbarch.c: Regenerate.
9721         * gdbarch.h: Regenerate.
9722         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9723         of name parameter from char * to const char *.
9724         * jv-lang.c (java_primitive_type_from_name): Ditto.
9725         (java_demangled_signature_length): Similarly for signature parameter.
9726         (java_demangled_signature_copy): Ditto.
9727         (java_demangle_type_signature): Ditto.
9728         * jv-lang.h (java_primitive_type_from_name): Update.
9729         (java_demangle_type_signature): Update.
9730         * objc-lang.c (specialcmp): Change type of a,b parameters
9731         from char * to const char *.
9732         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9733         from char * to const char *.  All callers updated.
9734         * p-lang.h (is_pascal_string_type): Update.
9735         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9736         of name parameter from char * to const char *.
9737         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9738         * utils.c (fprintf_symbol_filtered): Ditto.
9739         * defs.h (fprintf_symbol_filtered): Update.
9740         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9741         * stabsread.h (end_psymtab): Update.
9742         * stack.c (find_frame_funname): Change type of funname parameter
9743         from char ** to const char **.
9744         * stack.h (find_frame_funname): Update.
9745         * typeprint.c (type_print): Change type of varstring parameter
9746         from char * to const char *.
9747         * value.h (type_print): Update.
9748         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9749         from char * to const char *.  All callers updated.
9750         (xcoff_end_psymtab): Change type of include_list parameter
9751         from char ** to const char **.  All callers updated.
9752         (swap_sym): Similarly for name parameter.  All callers updated.
9753         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9754         Use xstrdup.
9755         (process_coff_symbol): Use xstrdup.
9756         * stabsread.c (stabs_method_name_from_physname): Renamed from
9757         update_method_name_from_physname.  Change result type from void
9758         to char *.  All callers updated.
9759         (read_member_functions): In has_destructor case, store name in objfile
9760         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9761
9762 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9763
9764         * configure: Rebuild.
9765         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9766         LDFLAGS.
9767
9768 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9769
9770         * configure.tgt (rl78-*-elf): New target.
9771         * rl78-tdep.c: New file.
9772
9773 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9774
9775         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9776         and continue the loop.  Add QUIT statement.
9777
9778 2012-02-03  Tom Tromey  <tromey@redhat.com>
9779
9780         PR gdb/13596:
9781         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9782         bfd_lookup_symbol_from_symtab.
9783         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9784         gdb_bfd_lookup_symbol_from_symtab.
9785
9786 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9787
9788         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9789         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9790         symbol.  Add assertion that sym2 is never NULL.
9791
9792 2012-02-02  Doug Evans  <dje@google.com>
9793
9794         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9795         "name" parameter to const char ** from char **.  All callers updated.
9796         (find_pc_partial_function): Ditto.
9797         (cache_pc_function_name): Change type to const char * from char *.
9798         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9799         (find_pc_partial_function): Update.
9800         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9801         type of "name" parameter to const char * from char *.
9802         All uses updated.
9803         * arch-utils.c (generic_in_solib_return_trampoline): Change
9804         type of "name" parameter to const char * from char *.
9805         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9806         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9807         type of "name" parameter to const char * from char *.
9808         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9809         * gdbarch.c: Regenerate.
9810         * gdbarch.h: Regenerate.
9811         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9812         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9813         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9814         type of "name" parameter to const char * from char *.
9815         * skip.c (skip_function_pc): Ditto.
9816         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9817         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9818         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9819         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9820         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9821         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9822         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9823         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9824         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9825
9826 2012-02-02  Pedro Alves  <palves@redhat.com>
9827
9828         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9829         the current inferior has no execution.  Make sure the current
9830         remote process matches gdb's current inferior.
9831
9832 2012-02-02  Tom Tromey  <tromey@redhat.com>
9833
9834         PR gdb/13405:
9835         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9836         read-only memory.
9837
9838 2012-02-02  Tom Tromey  <tromey@redhat.com>
9839
9840         PR gdb/9307:
9841         * symtab.c (lookup_language_this): Set block_found.
9842
9843 2012-02-01  Tom Tromey  <tromey@redhat.com>
9844
9845         PR gdb/13431:
9846         * jit.c (struct jit_inferior_data): Rewrite.
9847         (struct jit_objfile_data): New.
9848         (get_jit_objfile_data): New function.
9849         (add_objfile_entry): Update.
9850         (jit_read_descriptor): Return int.  Replace descriptor_addr
9851         argument with inf_data.  Update.  Don't call error.
9852         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9853         descriptor here.
9854         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9855         (jit_reset_inferior_data_and_breakpoints)
9856         (jit_inferior_created_observer): Remove.
9857         (jit_inferior_exit_hook): Update.
9858         (jit_executable_changed_observer): Remove.
9859         (jit_event_handler): Update.
9860         (free_objfile_data): Reset inferior data if needed.
9861         (_initialize_jit): Update.
9862
9863 2012-02-01  Tom Tromey  <tromey@redhat.com>
9864
9865         * jit.c (bfd_open_from_target_memory): Move higher in file.
9866
9867 2012-02-01  Tristan Gingold  <gingold@adacore.com>
9868
9869         * libunwind-frame.c (libunwind_load): Display message if dlopen
9870         failed.
9871
9872 2012-02-01  Gary Benson  <gbenson@redhat.com>
9873
9874         * symtab.h (symbol_found_callback_ftype): New typedef.
9875         (iterate_over_symbols): Use the above.
9876         * symtab.c (iterate_over_symbols): Likewise.
9877         * language.h (language_defn->la_iterate_over_symbols): Likewise.
9878         * ada-lang.c (ada_iterate_over_symbols): Likewise.
9879         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9880         (iterate_name_matcher): Document return values.
9881         (collect_one_symbol): Likewise.
9882         (collect_function_symbols): Likewise.
9883         (collect_symbols): Likewise.
9884
9885 2012-02-01  Tom Tromey  <tromey@redhat.com>
9886
9887         * ada-lang.c (resolve_subexp): Update.
9888         (ada_lookup_symbol_list): Add 'full_search' argument.
9889         (ada_iterate_over_symbols): Pass 0 as full_search argument to
9890         ada_lookup_symbol_list.
9891         (ada_lookup_encoded_symbol): Update.
9892         (get_var_value): Update.
9893         * ada-exp.y (block_lookup): Update.
9894         (write_var_or_type): Update.
9895         (write_name_assoc): Update.
9896         * ada-lang.h (ada_lookup_symbol_list): Update.
9897
9898 2012-01-31  Tom Tromey  <tromey@redhat.com>
9899
9900         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9901         comment.
9902
9903 2012-01-31  Doug Evans  <dje@google.com>
9904
9905         * symtab.h: Remove outdated comment.
9906         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9907
9908 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9909
9910         Fix build error in Darwin port.
9911         * i386-darwin-nat.c: Include i386-nat.h.
9912
9913 2012-01-30  Tom Tromey  <tromey@redhat.com>
9914
9915         PR breakpoints/13568:
9916         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9917         argument.  Check for recursive includes.
9918         (dwarf_decode_macros): Create an include hash.
9919
9920 2012-01-30  Michael Eager  <eager@eagercon.com>
9921
9922         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9923         * ppc-linux-tdep.c: Include glibc-tdep.h.
9924         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9925         (powerpc_linux_in_plt_stub): New function.
9926         (powerpc_linux_in_dynsym_resolve_code): New function.
9927         (ppc_skip_trampoline_code): New function.
9928         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9929         Use glibc_skip_solib_resolver.
9930
9931 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9932
9933         Code cleanup: Make 1440 bytes of data segment read-only.
9934         * arch-utils.c (endian_enum): Make it const char *const [].
9935         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9936         Likewise.
9937         * breakpoint.c (always_inserted_enums): Likewise.
9938         * cli/cli-cmds.c (script_ext_enums): Likewise.
9939         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9940         enumlist parameter const char *const *.
9941         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9942         const char *const *.
9943         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9944         parameter const char *const *.
9945         * cris-tdep.c (cris_modes): Make it const char *const [].
9946         * filesystem.c (target_file_system_kinds): Likewise.
9947         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9948         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9949         (can_use_displaced_stepping_enum, scheduler_enums)
9950         (exec_direction_names): Likewise.
9951         * language.c (_initialize_language): Make the type_or_range_names and
9952         case_sensitive_names variables const char *const [].
9953         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9954         * python/python.c (python_excp_enums): Likewise.
9955         * remote.c (interrupt_sequence_modes): Likewise.
9956         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9957         * serial.c (logbase_enums): Likewise.
9958         * sh-tdep.c (sh_cc_enum): Likewise.
9959         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9960         Likewise.
9961         * symtab.c (multiple_symbols_modes): Likewise.
9962         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9963         Likewise.
9964         * utils.c (internal_problem_modes): Likewise.
9965
9966 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9967
9968         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9969         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9970         result.
9971
9972 2012-01-27  Doug Evans  <dje@google.com>
9973
9974         * configure.ac (with_python): Fix absolute path handling for win32.
9975         * configure: Regenerate.
9976
9977 2012-01-26  Doug Evans  <dje@google.com>
9978
9979         * symtab.c: Whitespace cleanup, no code changes.
9980
9981         * symtab.c (lookup_symbol_in_language): Improve comment.
9982         (lookup_symbol_aux): Fix comment.
9983
9984         * psymtab.c (add_psymbol_to_list): Result is now "void".
9985         * psympriv.h (add_psymbol_to_list): Update.
9986
9987         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9988
9989 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9990
9991         Do not open script filenames twice.
9992         * cli/cli-cmds.c (source_script_from_stream): Pass to
9993         source_python_script also STREAM.
9994         * python/py-auto-load.c (source_section_scripts): Pass to
9995         source_python_script_for_objfile also STREAM.
9996         (auto_load_objfile_script): Pass to source_python_script_for_objfile
9997         also INPUT.
9998         * python/python-internal.h (source_python_script_for_objfile): New
9999         parameter file, rename parameter file to filename.
10000         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10001         instead if !_WIN32.  Update the function comment.
10002         (source_python_script, source_python_script_for_objfile)
10003         (source_python_script): New parameter file, rename parameter file to
10004         filename.  Pass FILENAME to python_run_simple_file.
10005         * python/python.h (source_python_script): New parameter file, rename
10006         parameter file to filename.
10007
10008 2012-01-26  Pedro Alves  <palves@redhat.com>
10009
10010         * corelow.c (core_has_fake_pid): Delete.
10011         (core_close): Delete references to `core_has_fake_pid'.
10012         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10013         (core_open): Delete references to `core_has_fake_pid'.
10014         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10015         the removed global.
10016
10017 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10018
10019         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10020         Remove language parameter from name_matcher.  Adjust the comment.
10021         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10022         Remove language parameter.
10023         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10024         * linespec.c (iterate_name_matcher): Likewise.
10025         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10026         name_matcher.  Adjust call accordingly.
10027         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10028         (maintenance_check_symtabs): Adjust type of parameter "fun".
10029         * psymtab.h (maintenance_check_symtabs): Likewise.
10030
10031 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10032
10033         * language.h (symbol_name_match_p_ftype): New typedef.
10034         (struct language_defn): Replace field la_symbol_name_compare
10035         by la_get_symbol_name_match_p.
10036         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10037         (ada_language_defn): Use it.
10038         * linespec.c (struct symbol_matcher_data): New type.
10039         (iterate_name_matcher): Rewrite.
10040         (iterate_over_all_matching_symtabs): Pass a pointer to
10041         a symbol_matcher_data struct to expand_symtabs_matching
10042         instead of just the lookup name.
10043         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10044         opencl-lang.c, p-lang.c, language.c: Delete field
10045         la_symbol_name_compare, and replace by NULL for new field
10046         la_get_symbol_name_match_p.
10047         * symfile.h (struct quick_symbol_functions): Update comment.
10048
10049 2012-01-25  Tom Tromey  <tromey@redhat.com>
10050
10051         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10052         dereferencing.
10053
10054 2012-01-24  Tom Tromey  <tromey@redhat.com>
10055
10056         PR symtab/12406:
10057         * solib.c (update_solib_list): Update the program space's
10058         added_solibs and deleted_solibs fields.
10059         * progspace.h (struct program_space) <added_solibs,
10060         deleted_solibs>: New fields.
10061         (clear_program_space_solib_cache): Declare.
10062         * progspace.c (release_program_space): Call
10063         clear_program_space_solib_cache.
10064         (clear_program_space_solib_cache): New function.
10065         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10066         bpstat_stop_status.  Use handle_solib_event.
10067         * breakpoint.c: Include gdb_regex.h.
10068         (print_solib_event): New function.
10069         (bpstat_print): Use print_solib_event.
10070         (bpstat_stop_status): Add special case for bp_shlib_event.
10071         (handle_solib_event): New function.
10072         (bpstat_what): Use handle_solib_event.
10073         (struct solib_catchpoint): New.
10074         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10075         (breakpoint_hit_catch_solib, check_status_catch_solib)
10076         (print_it_catch_solib, print_one_catch_solib)
10077         (print_mention_catch_solib, print_recreate_catch_solib): New
10078         functions.
10079         (catch_solib_breakpoint_ops): New global.
10080         (catch_load_or_unload, catch_load_command_1)
10081         (catch_unload_command_1): New functions.
10082         (internal_bkpt_check_status): Add special case for
10083         bp_shlib_event.
10084         (internal_bkpt_print_it): Use print_solib_event.
10085         (initialize_breakpoint_ops): Initialize
10086         catch_solib_breakpoint_ops.
10087         (_initialize_breakpoint): Register "catch load" and "catch
10088         unload".
10089         * breakpoint.h (handle_solib_event): Declare.
10090         * NEWS: Add entry for "catch load" and "catch unload".
10091
10092 2012-01-24  Tom Tromey  <tromey@redhat.com>
10093
10094         * ada-lang.c: Include gdb_vecs.h.
10095         * charset.c: Include gdb_vecs.h.
10096         * tracepoint.h: Include gdb_vecs.h.
10097         * gdb_vecs.h: New file.
10098
10099 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10100
10101         * breakpoint.c (breakpoint_hit_catch_fork)
10102         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10103         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10104         * infrun.c (inferior_has_forked, inferior_has_vforked)
10105         (inferior_has_execd, inferior_has_called_syscall): Delete.
10106         (handle_syscall_event): Get syscall_number from the execution
10107         control state's wait status.
10108         (wait_for_inferior): Don't clear syscall_number.
10109
10110 2012-01-24  Pedro Alves  <palves@redhat.com>
10111
10112         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10113         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10114         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10115         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10116         `ws' parameter.
10117         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10118         false for events other than TARGET_SIGNAL_TRAP.
10119         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10120         Add `ws' parameter.
10121         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10122         events other than TARGET_SIGNAL_TRAP.
10123         (tracepoint_breakpoint_hit): Add `ws' parameter.
10124         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10125         parameter.
10126         (bpstat_stop_status): Same.
10127         (pc_at_non_inline_function): Same.
10128         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10129         to pass the current event's waitstatus to bpstat_stop_status
10130         and pc_at_non_inline_function.
10131
10132 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10133
10134         Code cleanup.
10135         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10136         Update the function comment for it.
10137         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10138         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10139         for STREAM.
10140
10141 2012-01-24  Pedro Alves  <palves@redhat.com>
10142
10143         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10144         outside `bs->stop' block.
10145         (bpstat_what): Rework bp_shlib_event handling.
10146         (internal_bkpt_check_status): If the breakpoint is a
10147         bp_shlib_event, then set bs->stop and bs->print if
10148         stop_on_solib_events is set.
10149
10150 2012-01-24  Gary Benson  <gbenson@redhat.com>
10151
10152         Delete #if 0'd out code.
10153         * stack.c (print_frame_label_vars): Remove.
10154         (catch_info): Likewise.
10155         (_initialize_stack): Remove "info catch" command.
10156         * NEWS: Mention the above.
10157
10158 2012-01-24  Pedro Alves  <palves@redhat.com>
10159
10160         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10161         it.
10162         (remote_notice_new_inferior): If the remote end doesn't support
10163         the multiprocess extensions, then the PID is fake.
10164         (add_current_inferior_and_thread): New.
10165         (remote_start_remote): Use it.
10166         (extended_remote_attach_1): Adjust.
10167         (extended_remote_create_inferior_1): Use
10168         add_current_inferior_and_thread.
10169
10170 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10171
10172         Fix watchpoints to be specific for each inferior.
10173         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10174         current_program_space.
10175         * i386-nat.c (i386_inferior_data_cleanup): New.
10176         (i386_inferior_data_get): Replace variable inf_data_local by an
10177         inferior_data call.
10178         (i386_use_watchpoints): Initialize i386_inferior_data.
10179         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10180         specific iterate_over_lwps.
10181
10182 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10183
10184         Fix watchpoints across inferior fork.
10185         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10186         comment for linux_nat_iterate_watchpoint_lwps.
10187         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10188         linux_nat_iterate_watchpoint_lwps.
10189         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10190         * i386-linux-nat.c (update_debug_registers_callback): Update the
10191         comment for linux_nat_iterate_watchpoint_lwps.
10192         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10193         linux_nat_iterate_watchpoint_lwps.
10194         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10195         * i386-nat.c: Include inferior.h.
10196         (dr_mirror): Remove.
10197         (i386_inferior_data, struct i386_inferior_data)
10198         (i386_inferior_data_get): New.
10199         (i386_debug_reg_state): Use i386_inferior_data_get.
10200         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10201         (i386_insert_watchpoint, i386_remove_watchpoint)
10202         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10203         (i386_remove_hw_breakpoint): New variable state, use
10204         i386_debug_reg_state instead of DR_MIRROR.
10205         * linux-nat.c (delete_lwp): New declaration.
10206         (num_lwps): Move here from downwards.
10207         (delete_lwp_cleanup): New.
10208         (linux_child_follow_fork): Create new child_lp, call
10209         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10210         PTRACE_DETACH.
10211         (num_lwps): Move upwards.
10212         (linux_nat_iterate_watchpoint_lwps): New.
10213         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10214         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10215
10216 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10217
10218         GDB 7.4 released.
10219
10220 2012-01-23  Pedro Alves  <palves@redhat.com>
10221
10222         * top.c (caution): Rename to ...
10223         (confirm): ... this.
10224         (show_caution): Rename to ...
10225         (show_confirm): ... this.
10226         (quit_cover): Adjust.
10227         (init_main): Adjust.
10228         * top.h (caution): Rename to ...
10229         (confirm): ... this.
10230         * utils.c (internal_vproblem, defaulted_query): Adjust.
10231
10232 2012-01-23  Pedro Alves  <palves@redhat.com>
10233
10234         * top.c (caution): Update comment.
10235         (execute_command): Don't consider the current value of `caution'.
10236
10237 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10238
10239         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10240
10241 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10242
10243         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10244         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10245         * target.c (target_fileio_pwrite): Remove buffer address from
10246         debug output.
10247         (target_fileio_pread): Likewise.
10248
10249 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10250
10251         * NEWS: Document remote "info proc" and "generate-core-file".
10252
10253 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10254
10255         * gdbarch.sh (find_memory_regions): New callback.
10256         * gdbarch.c, gdbarch.h: Regenerate.
10257
10258         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10259         callback before falling back to target method.
10260
10261         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10262         (linux_target_install_ops): No longer install it.
10263
10264         * linux-tdep.c (linux_find_memory_regions): New function.
10265         (linux_init_abi): Install it.
10266
10267 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10268
10269         * gdbarch.sh (make_corefile_notes): New architecture callback.
10270         * gdbarch.c: Regenerate.
10271         * gdbarch.h: Likewise.
10272
10273         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10274         before target_make_corefile_notes.  If NULL is returned, the
10275         target does not support core file generation.
10276
10277         * linux-nat.c: Include "linux-tdep.h".
10278         (find_signalled_thread, find_stop_signal): Remove.
10279         (linux_nat_do_thread_registers): Likewise.
10280         (struct linux_nat_corefile_thread_data): Likewise.
10281         (linux_nat_corefile_thread_callback): Likewise.
10282         (iterate_over_spus): Likewise.
10283         (struct linux_spu_corefile_data): Likewise.
10284         (linux_spu_corefile_callback): Likewise.
10285         (linux_spu_make_corefile_notes): Likewise.
10286         (linux_nat_collect_thread_registers): New function.
10287         (linux_nat_make_corefile_notes): Replace contents by call to
10288         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10289         as native-only callback.
10290
10291         * linux-tdep.h: Include "bfd.h".
10292         (struct regcache): Add forward declaration.
10293         (linux_collect_thread_registers_ftype): New typedef.
10294         (linux_make_corefile_notes): Add prototype.
10295         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10296         "regset.h", and "elf-bfd.h".
10297         (find_signalled_thread, find_stop_signal): New functions.
10298         (linux_spu_make_corefile_notes): Likewise.
10299         (linux_collect_thread_registers): Likewise.
10300         (struct linux_corefile_thread_data): New data structure.
10301         (linux_corefile_thread_callback): New funcion.
10302         (linux_make_corefile_notes): Likewise.
10303         (linux_make_corefile_notes_1): Likewise.
10304         (linux_init_abi): Install it.
10305
10306 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10307
10308         * gdbarch.sh (info_proc): New callback.
10309         * gdbarch.c, gdbarch.h: Regenerate.
10310
10311         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10312         before falling back to the target info_proc callback.
10313
10314         * linux-nat.c: Do not include "cli/cli-utils.h".
10315         (linux_nat_info_proc): Remove.
10316         (linux_target_install_ops): No longer install it.
10317
10318         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10319         (read_mapping): New function.
10320         (linux_info_proc): Likewise.
10321         (linux_init_abi): Install it.
10322
10323 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10324
10325         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10326         * infcmd.c: (info_proc_cmd_1): New function.
10327         (info_proc_cmd): New function, moved here from equivalent routine
10328         orignally in linux-nat.c.
10329         (info_proc_cmd_mappings): Likewise.
10330         (info_proc_cmd_stat): Likewise.
10331         (info_proc_cmd_status): Likewise.
10332         (info_proc_cmd_cwd): Likewise.
10333         (info_proc_cmd_cmdline): Likewise.
10334         (info_proc_cmd_exe): Likewise.
10335         (info_proc_cmd_all): Likewise.
10336         (_initialize_infcmd): Install "info proc" command and subcommands.
10337
10338         * target.h (struct target_ops): Add to_info_proc.
10339         (target_info_proc): Add prototype.
10340         * target.c (target_info_proc): New function.
10341
10342         * procfs.c (procfs_info_proc): Add prototype.
10343         (info_proc_cmd): Rename into ...
10344         (procfs_info_proc): ... this.  Update argument types as appropriate
10345         for a to_info_proc implementation.  Handle "what" argument.
10346         (procfs_target): Install procfs_info_proc.
10347         (_initialize_procfs): No longer install "info proc" command.
10348
10349         * linux-nat.c: (enum info_proc_what): Remove.
10350         (linux_nat_info_proc_cmd_1): Rename into ...
10351         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10352         for a to_info_proc implementation.
10353         (linux_nat_info_proc_cmd): Remove.
10354         (linux_nat_info_proc_cmd_mappings): Likewise.
10355         (linux_nat_info_proc_cmd_stat): Likewise.
10356         (linux_nat_info_proc_cmd_status): Likewise.
10357         (linux_nat_info_proc_cmd_cwd): Likewise.
10358         (linux_nat_info_proc_cmd_cmdline): Likewise.
10359         (linux_nat_info_proc_cmd_exe): Likewise.
10360         (linux_nat_info_proc_cmd_all): Likewise.
10361         (linux_target_install_ops): Install linux_nat_info_proc.
10362         (_initialize_linux_nat): No longer install "info proc" command
10363         and subcommands.
10364
10365 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10366
10367         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10368         * config.in, configure: Regenerate.
10369
10370         * target.h (struct target_ops): Add to_fileio_readlink.
10371         (target_fileio_readlink): Add prototype.
10372         * target.c (target_fileio_readlink): New function.
10373
10374         * inf-child.c: Conditionally include <sys/param.h>.
10375         (inf_child_fileio_readlink): New function.
10376         (inf_child_target): Install it.
10377
10378         * remote.c (PACKET_vFile_readlink): New enum value.
10379         (remote_hostio_readlink): New function.
10380         (init_remote_ops): Install it.
10381         (_initialize_remote): Handle vFile:readlink packet type.
10382
10383 2012-01-20  Pedro Alves  <palves@redhat.com>
10384             Ulrich Weigand  <ulrich.weigand@linaro.org>
10385
10386         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10387         * config.in, configure: Regenerate.
10388
10389         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10390         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10391         (target_fileio_open): Add prototype.
10392         (target_fileio_pwrite): Likewise.
10393         (target_fileio_pread): Likewise.
10394         (target_fileio_close): Likewise.
10395         (target_fileio_unlink): Likewise.
10396         (target_fileio_read_alloc): Likewise.
10397         (target_fileio_read_stralloc): Likewise.
10398
10399         * target.c: Include "gdb/fileio.h".
10400         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10401         (default_fileio_target): New function.
10402         (target_fileio_open): Likewise.
10403         (target_fileio_pwrite): Likewise.
10404         (target_fileio_pread): Likewise.
10405         (target_fileio_close): Likewise.
10406         (target_fileio_unlink): Likewise.
10407         (target_fileio_close_cleanup): Likewise.
10408         (target_fileio_read_alloc_1): Likewise.
10409         (target_fileio_read_alloc): Likewise.
10410         (target_fileio_read_stralloc): Likewise.
10411
10412         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10413         <fcntl.h>, and <unistd.h>.
10414         (inf_child_fileio_open_flags_to_host): New function.
10415         (inf_child_errno_to_fileio_error): Likewise.
10416         (inf_child_fileio_open): Likewise.
10417         (inf_child_fileio_pwrite): Likewise.
10418         (inf_child_fileio_pread): Likewise.
10419         (inf_child_fileio_close): Likewise.
10420         (inf_child_fileio_unlink): Likewise.
10421         (inf_child_target): Install to_fileio routines.
10422
10423         * remote.c (init_remote_ops): Install to_fileio routines.
10424
10425 2012-01-20  Pedro Alves  <palves@redhat.com>
10426             Ulrich Weigand  <ulrich.weigand@linaro.org>
10427
10428         * remote.c (remote_multi_process_p): Only check for multi-process
10429         protocol feature, do not check for extended protocol.
10430         (remote_supports_multi_process): Check for extended protocol here.
10431         (set_general_process): Likewise.
10432         (extended_remote_kill): Likewise.
10433         (remote_pid_to_str): Likewise.
10434         (remote_query_supported): Always query multiprocess mode.
10435
10436 2012-01-20  Pedro Alves  <palves@redhat.com>
10437             Ulrich Weigand  <ulrich.weigand@linaro.org>
10438
10439         * inferior.h (struct inferior): Add fake_pid_p.
10440         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10441         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10442         magic_null_ptid since the remote side doesn't provide a real PID.
10443
10444 2012-01-19  Tom Tromey  <tromey@redhat.com>
10445
10446         * NEWS: Combine the two Python sections.
10447
10448 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10449
10450         * target.h (target_close): Update comment on the target's unpush state.
10451
10452 2012-01-19  Pedro Alves  <palves@redhat.com>
10453
10454         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10455         linux_nat_async directly instead of going through the target
10456         vector.
10457         * target.c (unpush_target): Close target after unpushing it, not
10458         before.
10459
10460 2012-01-19  Gary Benson  <gbenson@redhat.com>
10461
10462         * mdebugread.c (sort_blocks): Replace integer constants with ones
10463         derived from FIRST_LOCAL_BLOCK.
10464
10465 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10466             Jan Kratochvil  <jan.kratochvil@redhat.com>
10467
10468         PR gdb/9538
10469         * symfile.c (find_separate_debug_file): New function.
10470         (terminate_after_last_dir_separator): Likewise.
10471         (find_separate_debug_file_by_debuglink): Also try realpath.
10472         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10473         * configure: Regenerate.
10474         * config.in: Regenerate.
10475
10476 2012-01-18  Doug Evans  <dje@google.com>
10477
10478         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10479         (main.o): Remove rule.
10480         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10481         (--with-sysroot): Rewrite.
10482         * configure: Regenerate.
10483         * config.in: Regenerate.
10484
10485 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10486
10487         * parse.c (initialize_expout): New function.
10488         (reallocate_expout): Likewise.
10489         (parse_exp_in_context): Use `initialize_expout' and
10490         `reallocate_expout' when appropriate.
10491
10492 2012-01-18  Pedro Alves  <palves@redhat.com>
10493
10494         * record.c (struct record_breakpoint, record_breakpoint_p)
10495         (record_breakpoints): New.
10496         (record_insert_breakpoint, record_remove_breakpoint): Manage
10497         record breakpoints list.  Only remove breakpoints from the
10498         inferior if they had been inserted there in the first place.
10499
10500 2012-01-17  Doug Evans  <dje@google.com>
10501
10502         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10503         if we know we don't have a file name to look for.
10504
10505 2012-01-17  Pedro Alves  <palves@redhat.com>
10506
10507         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10508         the frame's stop reason is UNWIND_UNAVAILABLE.
10509
10510 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10511
10512         Fix compilation error.
10513         * m2-exp.y (yyerror): Use ANSI C prototype.
10514
10515 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10516
10517         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10518         (growbuf_by_size): Likewise.
10519         (yyerror): Likewise.
10520         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10521         (modblock): Remove variable (was #if 0'ed).
10522         (parse_number): Convert prototype from K&R to ANSI C.
10523         (yyerror): Likewise.
10524         * objc-exp.y (parse_number): Likewise.
10525         (yyerror): Likewise.
10526         (yylex): Remove #if 0'ed code.
10527         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10528         (yyerror): Likewise.
10529
10530 2012-01-16  Tom Tromey  <tromey@redhat.com>
10531
10532         * NEWS: Add item.
10533         * symtab.h (compare_filenames_for_search): Declare.
10534         * symtab.c (compare_filenames_for_search): New function.
10535         (iterate_over_some_symtabs): Use it.
10536         * symfile.h (struct quick_symbol_functions)
10537         <map_symtabs_matching_filename>: Change spec.
10538         * psymtab.c (partial_map_symtabs_matching_filename): Use
10539         compare_filenames_for_search.  Update for new spec.
10540         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10541         compare_filenames_for_search.  Update for new spec.
10542         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10543
10544 2012-01-16  Tom Tromey  <tromey@redhat.com>
10545
10546         PR python/13281:
10547         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10548         (struct main_type) <flag_flag_enum>: New field.
10549         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10550         * NEWS: Add entries.
10551         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10552         enums.
10553         * python/lib/gdb/printing.py (_EnumInstance): New class.
10554         (FlagEnumerationPrinter): Likewise.
10555
10556 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10557
10558         * breakpoint.c (create_sals_from_address_default): New function.
10559         (create_breakpoints_sal_default): Likewise.
10560         (decode_linespec_default): Likewise.
10561         (is_marker_spec): Removed.
10562         (strace_marker_p): New function.
10563         (init_breakpoint_sal): Using `strace_marker_p' instead of
10564         `is_marker_spec'.
10565         (create_breakpoint): Call method `create_sals_from_address' from
10566         breakpoint_ops, replacing code that created SALs conditionally
10567         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10568         replacing code that created breakpoints conditionally on the type
10569         wanted.
10570         (base_breakpoint_create_sals_from_address): New function.
10571         (base_breakpoint_create_breakpoints_sal): Likewise.
10572         (base_breakpoint_decode_linespec): Likewise.
10573         (base_breakpoint_ops): Add methods
10574         `base_breakpoint_create_sals_from_address',
10575         `base_breakpoint_create_breakpoints_sal' and
10576         `base_breakpoint_decode_linespec'.
10577         (bkpt_create_sals_from_address): New function.
10578         (bkpt_create_breakpoints_sal): Likewise.
10579         (bkpt_decode_linespec): Likewise.
10580         (tracepoint_create_sals_from_address): Likewise.
10581         (tracepoint_create_breakpoints_sal): Likewise.
10582         (tracepoint_decode_linespec): Likewise.
10583         (strace_marker_create_sals_from_address): Likewise.
10584         (strace_marker_create_breakpoints_sal): Likewise.
10585         (strace_marker_decode_linespec): Likewise.
10586         (strace_marker_breakpoint_ops): New variable.
10587         (addr_string_to_sals): Remove `marker_spec'.  Call method
10588         `decode_linespec' from breakpoint_ops, replacing code that decoded
10589         an address string into a SAL.  Use `strace_marker_p' instead of
10590         `marker_spec'.
10591         (strace_command): Decide whether we are dealing with a static
10592         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10593         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10594         * breakpoint.h (linespec_result, linespec_sals): New forward
10595         declarations.
10596         (breakpoint_ops) <create_sals_from_address>,
10597         <create_breakpoints_sal>, <decode_linespec>: New methods.
10598
10599 2012-01-14  Doug Evans  <dje@google.com>
10600
10601         * NEWS: Update text for "maint set python print-stack".
10602         It is deprecated in gdb 7.4 and deleted in 7.5.
10603
10604 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10605
10606         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10607         including curses.h.
10608
10609 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10610
10611         * configure: Regenerate.
10612         * config.in: Regenerate.
10613
10614 2012-01-12  Keith Seitz  <keiths@redhat.com>
10615
10616         PR mi/10586
10617         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10618         (ANONYMOUS_UNION_NAME): Define.
10619         (is_path_expr_parent): New function.
10620         (get_path_expr_parent): New function.
10621         (is_anonymous_child): New function.
10622         (create_child_with_value): If the child is anonymous and without
10623         a name, assign an object name to it.
10624         (c_describe_child): Use get_path_expr_parent to determine
10625         the parent expression.
10626         If there field represents an anonymous struct or union and
10627         has no name, set an appropriate display name and expression.
10628         (cplus_describe_child): Likewise.
10629
10630 2012-01-12  Pedro Alves  <palves@redhat.com>
10631
10632         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10633         available when %ebp is found to be zero (outermost).
10634
10635 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10636
10637         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10638         an internal gdb_static_assert.
10639         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10640
10641 2012-01-11  Tom Tromey  <tromey@redhat.com>
10642
10643         PR gdb/9598:
10644         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10645         catch" and "catch throw".
10646
10647 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10648
10649         * blockframe.c (block_innermost_frame): Start search from selected
10650         frame, if present, or otherwise the current frame.
10651
10652         * c-exp.y (variable): Update innermost_block for
10653         'block COLONCOLON NAME' clause.
10654         * m2-exp.y (variable): Ditto.
10655         * objc-exp.y (variable): Ditto.
10656
10657 2012-01-10  Tom Tromey  <tromey@redhat.com>
10658
10659         PR python/13199:
10660         * python/python.c (finish_python_initialization): Set sys.argv.
10661
10662 2012-01-10  Doug Evans  <dje@google.com>
10663
10664         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10665         "want_line_info".  All callers updated.
10666         (dwarf_decode_lines_1): New function.
10667         (handle_DW_AT_stmt_list): Add function comment.
10668         New arg "want_line_info".  All callers updated.
10669         (read_file_scope,read_type_unit_scope): Move comment from
10670         handle_DW_AT_stmt_list to here.
10671
10672 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10673
10674         Fix regression after libiberty/ update for GCC PR 6057 and others.
10675         * c-exp.y (operator) <OPERATOR DELETE>
10676         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10677         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10678         (make_builtin_type, make_name): New variable i, add gdb_assert.
10679         (operator) <OPERATOR NEW>: Update ARGS to 3.
10680         (operator) <OPERATOR DELETE>: Add trailing space.
10681         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10682         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10683         * cp-support.c (cp_canonicalize_string): Check NULL from
10684         cp_comp_to_string, call warning and return.
10685
10686 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10687
10688         Fix duplicate .o files after omitting libbfd.a.
10689         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10690         (SFILES): Add corelow.c.
10691         (COMMON_OBS): Add corelow.o.
10692         (ALLDEPFILES): Remove corelow.c.
10693         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10694         * config/alpha/alpha-osf3.mh: Likewise.
10695         * config/alpha/fbsd.mh: Likewise.
10696         * config/arm/nbsdaout.mh: Likewise.
10697         * config/arm/nbsdelf.mh: Likewise.
10698         * config/i386/i386gnu.mh: Likewise.
10699         * config/ia64/hpux.mh: Likewise.
10700         * config/ia64/linux.mh: Likewise.
10701         * config/m32r/linux.mh: Likewise.
10702         * config/m68k/linux.mh: Likewise.
10703         * config/mips/irix5.mh: Likewise.
10704         * config/mips/irix6.mh: Likewise.
10705         * config/pa/hpux.mh: Likewise.
10706         * config/pa/linux.mh: Likewise.
10707         * config/powerpc/aix.mh: Likewise.
10708         * config/sparc/linux.mh: Likewise.
10709         * config/sparc/linux64.mh: Likewise.
10710         * config/sparc/sol2.mh: Likewise.
10711         * config/vax/vax.mh: Likewise.
10712         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10713         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10714         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10715         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10716         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10717         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10718         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10719         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10720         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10721         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10722         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10723         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10724         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10725         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10726         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10727         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10728         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10729         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10730         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10731         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10732         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10733         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10734         corelow.o from gdb_target_obs.
10735         * corefile.c (core_target): Update the comment on NULL value.
10736         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10737         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10738         MATCHES.  Drop YUMMY set on NULL.
10739         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10740         reclaim CORE_DATA if it is already NULL.
10741
10742 2012-01-09  Doug Evans  <dje@google.com>
10743
10744         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10745         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10746
10747 2012-01-09  Keith Seitz  <keiths@redhat.com>
10748
10749         * breakpoint.c (wrapper.h): Don't include.
10750
10751 2012-01-09  Keith Seitz  <keiths@redhat.com>
10752
10753         * Makefile.in (SFILES): Remove wrapper.c.
10754         (HFILES_NO_SRCDIR): Remove wrapper.h.
10755         (COMMON_OBS): Remove wrapper.o.
10756         * cli/cli-interp.c: Don't inlude wrapper.h.
10757         * corelow.c: Likewise.
10758         (core_open): Replace gdb_target_find_new_threads with
10759         TRY_CATCH around target_find_new_threads.
10760         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10761         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10762         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10763         evaluate_expression.
10764         (varobj_set_value): Likewise for evaluate_expression and
10765         value_assign.
10766         (install_new_variable): Likewise for value_fetch_lazy.
10767         (adjust_value_for_child_access): Likewise for value_ind.
10768         (c_describe_child): Likewise for value_subscript and
10769         value_ind.
10770         (c_value_of_root): Likewise for evaluate_expression.
10771         * wrapper.c: Remove.
10772         * wrapper.h: Remove.
10773
10774 2012-01-09  Doug Evans  <dje@google.com>
10775
10776         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10777         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10778         "abfd" args with "section".  All callers updated.
10779         Error checking code moved ...
10780         (error_check_comp_unit_head): ... here.  New function.
10781         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10782         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10783         (create_debug_types_hash_table): Simplify by using
10784         read_and_check_type_unit_head.
10785
10786         * parser-defs.h (namecopy): Delete.
10787         * parse.c (namecopy, namecopy_size): Move into copy_name.
10788
10789 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10790
10791         Partially fix duplicate .o files after omitting libbfd.a.
10792         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10793         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10794         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10795         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10796         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10797         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10798         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10799
10800 2012-01-09  Pedro Alves  <palves@redhat.com>
10801
10802         * MAINTAINERS: Update my email address.
10803
10804 2012-01-08  Doug Evans  <dje@google.com>
10805
10806         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10807         n_type_units.  Rename type_comp_units to all_type_units.
10808         All uses updated.
10809         (add_signatured_type_cu_to_table): Renamed from
10810         add_signatured_type_cu_to_list.  All callers updated.
10811
10812         * gdbtypes.h (struct cplus_struct_type): Delete member
10813         nfn_fields_total.  All uses removed.
10814
10815 2012-01-06  Doug Evans  <dje@google.com>
10816
10817         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10818         to top of file.
10819         (dwarf2_find_comp_unit): Delete.
10820         (process_psymtab_comp_unit): Make result "void".
10821         Delete args buffer, info_ptr, buffer_size, and replace with
10822         "section".  All callers updated.
10823         (dwarf2_build_psymtabs_hard): Simplify.
10824
10825 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10826             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10827
10828         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10829         before `struct gdb_exception'.
10830         * breakpoint.c (update_global_location_list_nothrow)
10831         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10832         * cp-abi.c (value_rtti_type): Likewise.
10833         * cp-support.c (cp_validate_operator): Likewise.
10834         * infrun.c (insert_exception_resume_breakpoint)
10835         (check_exception_resume, keep_going): Likewise.
10836         * mi-interp.c (mi_breakpoint_created)
10837         (mi_breakpoint_modified): Likewise.
10838         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10839         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10840         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10841
10842 2012-01-05  Doug Evans  <dje@google.com>
10843
10844         * dwarf2read.c (statement_prologue): Delete, unused.
10845
10846         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10847         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10848
10849         * dwarf2read.c (comp_unit_header): Delete, unused.
10850
10851 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10852
10853         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10854         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10855
10856 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10857
10858         * infrun.c (normal_stop): Don't skip calling the normal_stop
10859         observers if the thread was doing a multi-step, but stopped for
10860         some reason other than stepping.
10861
10862 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
10863
10864         * cli/cli-decode.h: Add comments.
10865         (CMD_LIST_AMBIGUOUS): Moved to command.h
10866         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10867         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10868         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10869         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10870         (add_com, add_com_alias, add_info, add_info_alias)
10871         (complete_on_cmdlist, complete_on_enum, help_list): Remove
10872         declarations.
10873         * command.h: Add and adjust comments.
10874         (CMD_LIST_AMBIGUOUS): Moved here.
10875         (help_cmd, help_cmd_list): Delete declarations.
10876
10877 2012-01-04  Doug Evans  <dje@google.com>
10878
10879         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10880         All callers updated.
10881         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10882         Replace all arguments with "per_cu".  All callers updated.
10883
10884         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10885
10886         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10887         New arg "per_cu".  All callers updated.
10888
10889         Delete #if 0'd out code.
10890         * language.c (binop_result_type): Delete.
10891         (simple_type, ordered_type, same_type, integral_type): Delete.
10892         (numeric_type, character_type, string_type, boolean_type): Delete.
10893         (float_type, structured_type): Delete.
10894         * language.h: Update.
10895
10896 2012-01-04  Tom Tromey  <tromey@redhat.com>
10897
10898         * python/py-value.c (valpy_binop): Initialize 'res_val'.
10899
10900 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10901
10902         * corefile.c (close_exec_file): Delete.
10903         (reopen_exec_file): Remove commented out code that seems related
10904         to close_exec_file, which is being deleted here.
10905         * inferior.h (close_exec_file): Delete.
10906         * fork-child.c (fork_inferior): Remove call to fork_inferior.
10907
10908 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10909
10910         * ada-lang.c: #include "cli/cli-utils.h".
10911         (get_selections): Use skip_spaces.
10912         (ada_get_next_arg): Use skip_spaces and skip_to_space.
10913         (catch_ada_exception_command_split): Use skip_spaces.
10914         (ada_decode_assert_location): Likewise.
10915
10916 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10917
10918         * linespec.c (decode_line_internal): Check for C++ or Java
10919         compound constructs only if the current language is C, C++
10920         or Java.
10921
10922 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10923
10924         Revert:
10925         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10926                     Joel Brobecker  <brobecker@adacore.com>
10927         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10928         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10929         3 times.
10930         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10931         fall through into AT_ENTRY_POINT.
10932         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
10933         DUMMY_ADDR with it.
10934         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10935         PPC_INSN_SIZE skip to 3 times.
10936
10937 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10938
10939         * linespec.c (add_minsym): Preserve function descriptors.
10940
10941 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
10942
10943         * breakpoint.c (all_locations_are_pending): Consider locations
10944         in program spaces executing during startup pending as well.
10945
10946 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10947
10948         Copyright year update in most files of the GDB Project.
10949
10950 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10951
10952         * copyright.sh: Delete.
10953         * copyright.py: Rewrite.
10954
10955 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10956
10957         * gnulib/extra/update-copyright: New file, imported from gnulib.
10958
10959 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
10960
10961         * README (Copyright and License Notices): New section.
10962
10963 2012-01-03  Tom Tromey  <tromey@redhat.com>
10964
10965         PR python/12533:
10966         * python/py-value.c (valpy_dereference, valpy_get_address
10967         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10968         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10969         (valpy_absolute, valpy_richcompare): Free intermediate values.
10970
10971 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
10972
10973         * ada-lang.c: Reformat the copyright notice.
10974
10975 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10976
10977         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10978         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10979         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10980         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10981         Revert this part of:
10982         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10983         Build gdb directly from *.o files not using libgdb.a.
10984         * Makefile.in (COMMON_OBS): Remove solib-target.o.
10985
10986 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
10987
10988         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10989         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10990         Reformat the copyright header.
10991
10992 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10993
10994         Revert this part of:
10995         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10996         Remove the gdbtui binary.
10997         * gdb.c (main): Remove args.interpreter_p initialization.
10998         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10999         * main.h (struct captured_main_args): Remove interpreter_p.
11000
11001 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11002
11003         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11004
11005 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11006
11007         * top.c (print_gdb_version): Update copyright year.
11008
11009 2012-01-02  Yao Qi  <yao@codesourcery.com>
11010
11011         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11012
11013 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11014             Joel Brobecker  <brobecker@adacore.com>
11015
11016         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11017         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11018         3 times.
11019         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11020         fall through into AT_ENTRY_POINT.
11021         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11022         DUMMY_ADDR with it.
11023         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11024         PPC_INSN_SIZE skip to 3 times.
11025
11026 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11027
11028         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11029         the return value.
11030         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11031
11032 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11033
11034         Build gdb directly from *.o files not using libgdb.a.
11035         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11036         (COMMON_OBS): Remove solib-target.o.
11037         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11038         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11039         (LIBGDB_OBS, libgdb.a): Move it above.
11040         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11041         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11042         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11043         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11044         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11045         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11046         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11047         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11048         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11049         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11050         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11051         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11052         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11053         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11054         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11055         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11056         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11057         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11058         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11059         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11060         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11061         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11062         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11063         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11064         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11065         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11066         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11067
11068 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11069
11070         Remove the gdbtui binary.
11071         * .gitignore (/gdbtui): Remove.
11072         * Makefile.in (TUI): Remove.
11073         (SUBDIR_TUI_OBS): Remove tui-main.o.
11074         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11075         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11076         (tui-main.o): Remove.
11077         (all_object_files): Remove tui-main.o.
11078         * NEWS: New note for the gdbtui removal.
11079         * configure: Rebuilt.
11080         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11081         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11082         CONFIG_UNINSTALL respectively.
11083         * gdb.c (main): Remove args.interpreter_p initialization.
11084         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11085         * main.h (struct captured_main_args): Remove interpreter_p.
11086         * tui/tui-main.c: Remove.
11087
11088 2012-01-01  Doug Evans  <dje@google.com>
11089
11090         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11091         (dwarf2_physname, read_import_statement): Ditto.
11092         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11093         (process_structure_scope read_subroutine_type): Ditto.
11094         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11095         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11096         (dwarf2_fetch_die_location_block): Ditto.
11097         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11098
11099         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11100         All callers updated.
11101         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11102         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11103         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11104
11105         * dwarf2read.c (load_cu): Move assert to more useful location.
11106
11107         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11108         All callers updated.
11109
11110         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11111         (dwarf2_elf_names): Minor reformat.
11112         (dwarf2_per_cu_data): Tweak comment.
11113         (dwarf2_read_section): Fix comment.
11114         (create_all_comp_units): Fix comment.
11115         (load_full_comp_unit): Fix comment.
11116         (process_full_comp_unit): Fix comment.
11117         (read_signatured_type): Fix comment.
11118
11119 For older changes see ChangeLog-2011.
11120 \f
11121 Local Variables:
11122 mode: change-log
11123 left-margin: 8
11124 fill-column: 74
11125 version-control: never
11126 coding: utf-8
11127 End: