gdb/doc:
[external/binutils.git] / gdb / ChangeLog
1 2012-11-08  Yao Qi  <yao@codesourcery.com>
2
3         PR gdb/14777.
4         * source.c (_initialize_source): Call add_com_alias to abbreviate
5         'forward-search' as 'fo'.
6
7 2012-11-07  Pedro Alves  <palves@redhat.com>
8
9         * arm-tdep.c: Make defs.h be the first include.
10         * coff-pe-read.c: Ditto.
11         * gnu-nat.c: Ditto.
12         * go32-nat.c: Ditto.
13         * i386-nat.c: Ditto.
14         * ppcnbsd-nat.c: Ditto.
15         * ada-varobj.h: Don't include defs.h.
16         * i386-darwin-tdep.h: Ditto.
17         * i386-nat.h: Ditto.
18
19 2012-11-07  Pedro Alves  <palves@redhat.com>
20
21         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
22         Committee.
23
24 2012-11-07  Pierre Muller  <muller@sourceware.org>
25
26         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
27         File already uses "gdb_dirent.h" header.
28
29 2012-11-07  Yao Qi  <yao@codesourcery.com>
30
31         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
32         tracepoint_count'.
33
34 2012-11-06  Tom Tromey  <tromey@redhat.com>
35
36         * target.h (inferior_has_forked, inferior_has_vforked)
37         (inferior_has_execd, inferior_has_called_syscall): Remove
38         declarations.
39
40 2012-11-06  Pierre Muller  <muller@sourceware.org>
41
42         * remote.c (remote_insert_hw_breakpoint): ARI fix,
43         add missing internalization markup.
44
45 2012-11-06  Pedro Alves  <palves@redhat.com>
46
47         PR gdb/14810
48
49         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
50
51 2012-11-06  Pierre Muller  <muller@sourceware.org>
52
53         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
54         is not executable.
55
56 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
57
58         * gnulib/update-gnulib.sh: New script.
59
60 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
61
62         * MAINTAINERS: Update my email address.
63
64 2012-11-05  Tom Tromey  <tromey@redhat.com>
65
66         * frame.c (put_frame_register): Don't use temporary buffer.
67
68 2012-11-05  Pedro Alves  <palves@redhat.com>
69
70         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
71         child.  Clear 'pending_detach'.
72         * infrun.c (handle_vfork_child_exec_or_exit): Clear
73         'pending_detach' in the vfork parent.
74
75 2012-11-05  Doug Evans  <dje@google.com>
76
77         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
78         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
79         * dwarf2read.c: #include "elf-bfd.h".
80         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
81         (dwop_section_names): Renamed from dwo_section names.  All uses
82         updated.  Add entries for .debug_cu_index, .debug_tu_index.
83         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
84         All uses updated.
85         (struct dwp_sections): New type.
86         (struct virtual_dwo_sections): New type.
87         (struct dwp_hash_table): New type.
88         (struct dwp_file): New type.
89         (init_cutu_and_read_dies): Ensure DWO info/types section has been
90         read in.  Handle DWOs coming from DWP files.
91         (lookup_dwo_file_slot): New function.
92         (dwarf2_locate_dwo_sections): Move definition closer to use.
93         (create_dwo_debug_info_hash_table_reader): Renamed from
94         create_debug_info_hash_table_reader.  All callers updated.
95         (create_dwo_debug_info_hash_table): Renamed from
96         create_debug_info_hash_table.  All callers updated.
97         (create_dwp_hash_table): New function.
98         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
99         (lookup_dwo_in_dwp): New function.
100         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
101         is_dwp.  All callers updated.
102         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
103         (open_and_init_dwo_file): Renamed from init_dwo_file.
104         All callers updated.
105         (lookup_dwo_file): Delete.
106         (dwarf2_locate_dwp_sections): New function.
107         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
108         (allocate_dwp_loaded_cutus_table): New function.
109         (open_and_init_dwp_file): New function.
110         (lookup_dwo_cutu): New function.
111         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
112
113 2012-11-03  Yao Qi  <yao@codesourcery.com>
114
115         Fix PR gdb/14617.
116         * breakpoint.c (trace_pass_set_count): Call
117         observer_notify_breakpoint_modified instead of
118         observer_notify_tracepoint_modified.
119         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
120
121 2012-11-02  Tom Tromey  <tromey@redhat.com>
122
123         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
124         argument to complete_on_enum.
125
126 2012-11-02  Tom Tromey  <tromey@redhat.com>
127
128         * configure: Rebuild.
129         * configure.ac (build_warnings): Add -Wempty-body.
130         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
131         * remote.c (handle_notification): Use braces for empty 'else' body.
132         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
133         'else' body.
134         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
135         'else' body.
136         * solib-som.c (som_relocate_section_addresses): Use braces
137         for empty 'else' body.
138         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
139         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
140
141 2012-11-02  Pedro Alves  <palves@redhat.com>
142
143         PR gdb/14766
144
145         * infrun.c (handle_inferior_event)
146         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
147         null_ptid before handling a vfork child exec or exit.  Switch to
148         the event ptid afterwards.
149
150 2012-11-02  Yao Qi  <yao@codesourcery.com>
151
152         * std-operator.def: Remove OP_LABELED.
153         * eval.c: Remove the declaration of 'get_label'.
154         (get_label): Remove.
155         (evaluate_struct_tuple): Remove code handling OP_LABELED.
156         Update comment.
157         Remove local variable 'variantno' and related code.
158         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
159         with 'fieldno'.
160         * expprint.c (print_subexp_standard): Likewise.
161         (dump_subexp_body_standard): Likewise.
162         * parse.c (operator_length_standard): Likewise.
163
164 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
165
166         Incorporate ARI web page generator into GDB sources.
167         * contrib/ari/create-web-ari-in-src.sh: New file.
168         * contrib/ari/gdb_ari.sh: New file.
169         * contrib/ari/gdb_find.sh: New file.
170         * contrib/ari/update-web-ari.sh: New file.
171
172 2012-10-31  Tom Tromey  <tromey@redhat.com>
173
174         * gdbarch.c: Rebuild.
175         * gdbarch.sh: Remove references to gdbarch_swap.
176         * corelow.c (core_open): Remove obsolete comment.
177
178 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
179
180         PR cli/14772
181         * c-typeprint.c (c_print_type): Don't print a space for vector
182         types, this is handled within the suffix.
183         (c_type_print_varspec_suffix): Add a space to vector suffix.
184
185 2012-10-26  Pedro Alves  <palves@redhat.com>
186
187         * amd64-tdep.c (amd64_relocate_instruction): Use
188         store_unsigned_integer instead of memcpy.
189         * i386-tdep.c (i386_relocate_instruction): Ditto.
190
191 2012-10-26  Pedro Alves  <palves@redhat.com>
192
193         * infrun.c (handle_inferior_event): Merge handling of
194         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
195         switch case.
196
197 2012-10-26  Pedro Alves  <palves@redhat.com>
198
199         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
200         Remove comment.
201
202 2012-10-26  Pedro Alves  <palves@redhat.com>
203
204         * target.c (target_waitstatus_to_string): Handle
205         TARGET_WAITKIND_VFORK_DONE.
206
207 2012-10-26  Pedro Alves  <palves@redhat.com>
208
209         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
210         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
211
212 2012-10-24  Tristan Gingold  <gingold@adacore.com>
213
214         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
215         Add comments.
216
217 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
218
219         * ravenscar-thread.c (ravenscar_wait): Only update the list
220         of threads and inferior_ptid if the inferior is still alive.
221
222 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
223
224         * ada-lang.c (is_known_support_routine): Use lbasename when
225         matching the symtab's filename against
226         known_runtime_file_name_patterns.
227
228 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
229
230         * ada-lang.c (ada_same_array_size_p): New function.
231         (ada_promote_array_of_integrals): New function.
232         (coerce_for_assign): Add handling of arrays where the elements
233         are integrals of a smaller size than the size of the target
234         array element type.
235
236 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
237
238         * doublest.c (convert_doublest_to_floatformat): Fix comparison
239         against maximum exponent value.
240
241 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
242
243         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
244         "unwind-seh.c".
245
246 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
247
248         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
249         strip typedef layer when computing the fixed type's field type,
250         only when computing its size.
251
252 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
253
254         PR gdb/12783
255         * i386-tdep.c (i386_return_value): Handle complex double and long
256         double.
257
258 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
259
260         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
261         New local variable args_len.
262         Quote the name of the executable when computing the command line.
263
264 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
265
266         PR gdb/12796
267         PR gdb/12798
268         PR gdb/12800
269         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
270         AMD64_FTAG_REGNUM.
271         * amd64-tdep.c (amd64_classify): Classify complex types.
272         (amd64_return_value): Handle the COMPLEX_X87 class.
273
274 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
275
276         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
277         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
278
279 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
280
281         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
282         function.
283         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
284         to amd64_windows_auto_wide_charset.
285
286 2012-10-23  Yao Qi  <yao@codesourcery.com>
287
288         * event-top.c (mark_async_signal_handler_wrapper): Remove.
289         * event-top.h: Remove its declaration.
290         (async_request_quit): Call mark_async_signal_handler instead of
291         mark_async_signal_handler_wrapper.
292         (async_do_nothing, async_disconnect): Likewise.
293         (async_stop_sig): Likewise.
294         * remote.c (handle_remote_sigint): Likewise.
295         (handle_remote_sigint_twice): Likewise.
296
297 2012-10-23  Yao Qi  <yao@codesourcery.com>
298
299         * event-top.c (sigint_token, sighup_token): Replace 'void *'
300         with 'static struct async_signal_handler *'.
301         (sighup_token, sigquit_token, sigstp_token): Likewise.
302
303 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
304
305         * gdbarch.sh (function_list): Use 'pstring' when printing
306         a variable which could return NULL.
307         * gdbarch.c: Regenerate.
308
309 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
310             Tom Tromey  <tromey@redhat.com>
311
312         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
313         inneffective if condition by gdb assertion.  Add function
314         description comment.
315
316 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
317
318         * parser-defs.h (struct exp_descriptor): Document constraint
319         on return value for "op_name" callbacks.
320
321 2012-10-18  Tom Tromey  <tromey@redhat.com>
322
323         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
324         * symtab.c (iterate_over_some_symtabs): Constify.
325         * source.h (symtab_to_fullname): Return 'const char *'.
326         * source.c (symtab_to_fullname): Return 'const char *'.
327         * python/py-symtab.c (stpy_fullname): Constify.
328         * cli/cli-cmds.c (edit_command): Constify.
329         * breakpoint.c (print_breakpoint_location)
330         (update_static_tracepoint): Constify.
331
332 2012-10-18  Tom Tromey  <tromey@redhat.com>
333
334         * breakpoint.c (compare_breakpoints): Fix comparison.
335
336 2012-10-18  Tom Tromey  <tromey@redhat.com>
337
338         * valprint.c (generic_emit_char, generic_printstr): Pass size of
339         gdb_wchar_t to convert_between_encodings.
340
341 2012-10-17  Yao Qi  <yao@codesourcery.com>
342
343         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
344         more parameter 'inferior'.
345         * corefile.c (write_memory_with_notification): Caller update.
346
347         * mi/mi-cmd-var.c: Include "mi-main.h".
348         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
349         to 1 and restore it later.
350         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
351         and "data-write-memory-bytes.
352         * mi/mi-interp.c: Include objfiles.h.
353         (mi_interpreter_init): Call observer_attach_memory_changed.
354         (mi_memory_changed): New.
355         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
356         New field.
357
358         * NEWS: Mention new MI notification "memory-changed".
359
360 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
361
362         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
363
364 2012-10-15  Doug Evans  <dje@google.com>
365
366         New option -nh: inhibit loading of ~/.gdbinit.
367         * NEWS: Mention -nh.
368         * main.c (captured_main): Recognize and process -nh.
369         (print_gdb_help): Mention -nh.
370         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
371
372 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
373
374         PR backtrace/14646
375         PR gdb/14647
376         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
377         pc_regnum_from_eax.
378         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
379         nor pc_regnum_from_eax.
380         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
381         nor pc_regnum_from_eax.
382
383 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
384
385         Fix entry values resolving in inlined frames.
386         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
387         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
388         entries of FRAME.
389
390 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
391
392         * configure.ac: Build with -DMS_WIN64 if building with Python
393         enabled using GCC on amd64-windows.
394         * configure: Regenerate.
395
396 2012-10-15  Tom Tromey  <tromey@redhat.com>
397
398         PR python/14635:
399         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
400         to Py_None.
401
402 2012-10-15  Tom Tromey  <tromey@redhat.com>
403
404         PR python/14634:
405         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
406
407 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
408
409         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
410         reset thread numbering back to 1.
411
412 2012-10-11  Doug Evans  <dje@google.com>
413
414         PR breakpoints/14643.
415         * linespec.c (struct ls_parser): New member keyword_ok.
416         (linespec_lexer_lex_string): Add comment.
417         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
418         for one.
419         (parse_linespec): Set keyword_ok.
420
421 2012-10-10  Doug Evans  <dje@google.com>
422
423         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
424         "0x" prefix on address in log message.
425
426         * dwarf2read.c (read_1_byte): Add const to buf parameter.
427         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
428         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
429         (lookup_dwo_file): Add const to dwo_name parameter.
430         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
431
432 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
433
434         Fix crash during stepping on ppc32.
435         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
436         SYM.
437
438 2012-10-03  Doug Evans  <dje@google.com>
439
440         PR symtab/14601
441         * buildsym.c (buildsym_init): Reset using_directives to NULL.
442
443 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
444
445         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
446         output and use uint32_t not long to ensure 4 byte size.
447
448 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
449
450         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
451         unref'ed it.
452
453 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
454
455         * target.c (simple_search_memory): Include access length in
456         warning message.
457
458 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
459             Edjunior Machado  <emachado@linux.vnet.ibm.com>
460
461         PR gdb/13989
462         * solib.c (solib_find): Prevent GDB from loading native libraries when
463         debugging a cross-target corefile.
464
465 2012-09-28  selven  <pcthegreat@gmail.com>
466
467         Make definition match declaration.
468
469         * regcache.c (regcache_register_status): Change return type to
470         enum register_status.
471
472 2012-09-28  Yao Qi  <yao@codesourcery.com>
473
474         * mi/mi-main.c (mi_cmd_data_write_memory): Call
475         write_memory_with_notification instead of write_memory.
476         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
477         instead of target_write_memory.
478
479 2012-09-28  Yao Qi  <yao@codesourcery.com>
480
481         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
482         when the length of content is not an even number.
483
484 2012-09-27  Tom Tromey  <tromey@redhat.com>
485
486         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
487         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
488
489 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
490
491         * sol-thread.c (sol_thread_fetch_registers)
492         (sol_thread_store_registers): Delete commented out code.
493
494 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
495
496         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
497         Move these functions to sparc-sol-thread.c.
498         * sparc-sol-thread.c: New file.
499         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
500         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
501         configurations.
502         * configure: Regenerate.
503
504 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
505
506         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
507         Remove commented-out code.
508
509 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
510
511         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
512         Enable this code for sparc hosts only.
513
514 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
515
516         * procfs.h (procfs_find_LDT_entry): Add declaration.
517         * sol-thread.c (ps_lgetLDT): Delete local declaration of
518         function procfs_find_LDT_entry.
519
520 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
521
522         * procfs.c (proc_get_LDT_entry): Make static.
523
524 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
525
526         * procfs.c (proc_find_memory_regions): Fix declaration.
527
528 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
529
530         * amd64-tdep.c (amd64_return_value): Revert previous change
531         that used TYPE_LENGTH directly.
532         * bfin-tdep.c (bfin_extract_return_value): Likewise.
533         (bfin_store_return_value): Likewise.
534         * cris-tdep.c (cris_store_return_value): Likewise.
535         (cris_extract_return_value): Likewise.
536         * h8300-tdep.c (h8300_extract_return_value): Likewise.
537         * hppa-tdep.c (hppa64_return_value): Likewise.
538         * lm32-tdep.c (lm32_store_return_value): Likewise.
539         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
540         * spu-tdep.c (spu_value_from_register): Likewise.
541         * vax-tdep.c (vax_return_value): Likewise.
542
543 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
544
545         * gdbtypes.c (lookup_array_range_type): Expand parameters
546         LOW_BOUND and HIGH_BOUND to LONGEST.
547         (lookup_string_range_type): Likewise.
548         * gdbtypes.h (lookup_array_range_type): Likewise.
549         (lookup_string_range_type): Likewise.
550         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
551         Expand HIGHBOUND to ssize_t.
552         (value_string): Likewise.
553         * value.h (value_cstring): Expand parameter LEN to ssize_t.
554         (value_string): Likewise.
555
556 2012-09-27  Yao Qi  <yao@codesourcery.com>
557
558         PR breakpoints/13898
559         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
560         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
561         per breakpoint type.
562
563 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
564
565         * procfs.c: Add gdb_bfd header.
566         * rs6000-nat.c: Likewise.
567         * solib-pa64.c: Likewise.
568         * spu-linux-nat.c: Likewise.
569         * windows-nat.c: Likewise.
570
571 2012-09-26  Tom Tromey  <tromey@redhat.com>
572
573         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
574
575 2012-09-26  Tom Tromey  <tromey@redhat.com>
576
577         * dwarf2read.c (mark_common_block_symbol_computed): New function.
578         (read_common_block): Handle child DIEs with
579         DW_AT_data_member_location.
580         (new_symbol_full): Add special case for common blocks.
581
582 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
583             Tom Tromey  <tromey@redhat.com>
584
585         * dwarf2read.c (read_common_block): Rewrite.
586         (new_symbol_full): Handle DW_TAG_common_block.
587         * f-lang.c (head_common_list, find_common_for_function):
588         Remove.
589         * f-lang.h (struct common_entry, struct saved_f77_common,
590         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
591         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
592         BLANK_COMMON_NAME_LOCAL): Remove.
593         (struct common_block): New.
594         * f-valprint.c (list_all_visible_commons): Remove.
595         (info_common_command_for_block): New function.
596         (info_common_command): Use it.
597         * stack.c (iterate_over_block_locals): Special case for
598         COMMON_BLOCK_DOMAIN.
599         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
600         constant.
601         (struct general_symbol_info) <value.common_block>: New field.
602         (SYMBOL_VALUE_COMMON_BLOCK): New define.
603
604 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
605             Tom Tromey  <tromey@redhat.com>
606
607         * f-lang.c (allocate_saved_bf_node,
608         allocate_saved_function_node, allocate_saved_f77_common_node,
609         allocate_common_entry_node, tail_common_list, current_common,
610         saved_bf_list, saved_bf_list_end, current_head_bf_list,
611         tmp_bf_ptr, add_common_block, add_common_entry,
612         find_first_common_named, patch_common_entries,
613         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
614         global_remote_debug, get_bf_for_fcn, saved_function_list,
615         saved_function_list_end, clear_function_list, struct saved_fcn,
616         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
617         SAVED_BF, SAVED_BF_PTR): Remove.
618         * f-lang.h (tail_common_list, current_common,
619         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
620         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
621         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
622         real_main_c_value): Remove.
623         * f-valprint.c (there_is_a_visible_common_named): Remove.
624
625 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
626
627         * breakpoint.c (update_global_location_list): Ignore previous
628         duplicate status of a breakpoint when starting a new scan for
629         duplicate breakpoints.
630
631 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
632         PR breakpoints/14419
633         * arm-tdep.c (arm_skip_prologue): Extending producer check to
634         support LLVM compiler.
635
636 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
637
638         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
639         * bfin-tdep.c (bfin_extract_return_value): Likewise.
640         (bfin_store_return_value): Likewise.
641         * cris-tdep.c (cris_store_return_value): Likewise.
642         (cris_extract_return_value): Likewise.
643         * h8300-tdep.c (h8300_extract_return_value): Likewise.
644         * hppa-tdep.c (hppa64_return_value): Likewise.
645         * lm32-tdep.c (lm32_store_return_value): Likewise.
646         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
647         * spu-tdep.c (spu_value_from_register): Likewise.
648         * vax-tdep.c (vax_return_value): Likewise.
649
650 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
651
652         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
653         parameter LEN to ssize_t.
654
655 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
656
657         * ada-valprint.c (ada_val_print_1): Eliminate single-use
658         variable LEN.
659         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
660         directly.
661         (alpha_store_return_value): Likewise.
662         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
663         (amd64_push_arguments): Likewise.
664         * ax-gdb.c (gen_trace_static_fields): Likewise.
665         (gen_traced_pop): Likewise.
666         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
667         * breakpoint.c (update_watchpoint): Likewise.
668         * findcmd.c (parse_find_args): Use local variable for type
669         instead of length.
670         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
671         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
672         (h8300_store_return_value): Likewise.
673         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
674         Use i386_darwin_arg_type_alignment directly.
675         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
676         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
677         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
678         (m68hc11_extract_return_value): Likewise.
679         * mep-tdep.c (mep_push_dummy_call): Likewise.
680         * printcmd.c (float_type_from_length): Likewise.
681         * s390-tdep.c (s390_value_from_register): Likewise.
682         * stack.c (read_frame_arg): Likewise.
683         * tracepoint.c (encode_actions_1): Likewise.
684         * valops.c (value_fetch_lazy): Use local variable for type
685         instead of length.  Use TYPE_LENGTH directly.
686         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
687
688 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
689
690         * symtab.c (skip_prologue_sal): Fix typo in comment.
691
692 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
693
694         * linespec.c (create_sals_line_offset): Fix typo in comment.
695
696 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
697
698         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
699         use plongest to print the array size.
700
701 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
702
703         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
704         * p-valprint.c (pascal_type_print_base): Likewise.
705
706 2012-09-22  Yao Qi  <yao@codesourcery.com>
707
708         * remote.c (remote_get_trace_status): Remove setting default
709         values of fields of 'ts'.
710
711 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
712
713         Fix internal error on canonicalization of clang types.
714         * cp-name-parser.y (operator): New comment at make_operator call for
715         new, delete, new[] and delete[].
716         (exp): Use "sizeof ".  Add new comment at make_operator call.
717
718 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
719
720         Fix disassemble without parameters in tailcall frame.
721         * cli/cli-cmds.c (disassemble_current_function): Use
722         get_frame_address_in_block.
723
724 2012-09-21  Tom Tromey  <tromey@redhat.com>
725
726         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
727         TYPE_CODE_UNION>: Unify, removing a goto.
728
729 2012-09-21  Tom Tromey  <tromey@redhat.com>
730
731         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
732
733 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
734
735         * findvar.c (read_frame_register_value): Mark the result value as
736         optimized out if any of the input registers have been optimized out.
737
738 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
739
740         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
741
742 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
743
744         * eval.c (evaluate_subexp_standard): Eliminate single-use
745         variable LOWER.
746
747 2012-09-21  Yao Qi  <yao@codesourcery.com>
748
749         * mi/mi-interp.c: Declare mi_record_changed.
750         (mi_interpreter_init): Call observer_attach_record_changed.
751         (mi_record_changed): New.
752         * record.c (record_open): Call observer_notify_record_changed.
753         (cmd_record_stop): Call observer_notify_record_changed.
754         * NEWS: Mention it.
755
756 2012-09-20  Tom Tromey  <tromey@redhat.com>
757
758         * NEWS: Update.
759         * python/python.c (finalize_python): New function.
760         (_initialize_python): Make a final cleanup.
761
762 2012-09-19  Doug Evans  <dje@google.com>
763
764         * buildsym.h (param_symbols): Delete, unused.
765         (context_stack): Delete member "params", unused.
766         * buildsym.c (push_context): Update.
767         * dwarf2read.c (read_func_scope): Update.
768
769 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
770
771         * sh-tdep.c (sh_register_convert_to_virtual)
772         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
773         all callers.  Just do a memcpy if not the little-endian case.
774
775         * h8300-tdep.c (h8300_gdbarch_init): Invoke
776         set_gdbarch_double_format and set_gdbarch_long_double_format.
777         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
778         set_gdbarch_double_format.
779         * sh-tdep.c (sh_gdbarch_init): Likewise.
780
781         * NEWS: Document the removal of SH's 'regs' command.
782         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
783         command.
784
785 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
786
787         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
788         `jump'.
789
790 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
791
792         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
793         language when iterating over symbols.
794
795 2012-09-18  Yao Qi  <yao@codesourcery.com>
796
797         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
798         (mi_interpreter_init): Call observer_attach_tsv_created and
799         observer_attach_tsv_deleted.
800         (mi_tsv_created, mi_tsv_deleted): New.
801         * tracepoint.c (delete_trace_state_variable): Call
802         observer_notify_tsv_deleted.
803         (trace_variable_command): Call observer_notify_tsv_created.
804         (delete_trace_variable_command): Call
805         observer_notify_tsv_deleted.
806         (create_tsv_from_upload): Call observer_notify_tsv_created.
807         * NEWS: Mention it.
808
809 2012-09-18  Yao Qi  <yao@codesourcery.com>
810
811         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
812         if traceframe changed.
813         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
814         "trace-find".
815         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
816         (mi_interpreter_init): Hook mi_traceframe_changed to observer
817         'traceframe_changed'.
818         (mi_traceframe_changed): New.
819         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
820         New field.
821         * NEWS: Mention the new MI notification.
822
823 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
824
825         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
826
827 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
828
829         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
830         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
831         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
832         Extend code also for PaX support.  Convert all gdb_assert to warning
833         calls.
834
835 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
836
837         Implement auto-load user conveniences suggested by Doug Evans.
838         * auto-load.c: Include top.h.
839         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
840         (_initialize_auto_load): New variable scripts_directory_help.  Mention
841         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
842         scripts-directory.  Document in online help one can use also files for
843         set auto-load safe-path.
844         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
845         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
846
847 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
848
849         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
850         of LEN.
851
852 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
853
854         * m2-valprint.c (m2_print_array_contents): Eliminate variable
855         ELTLEN and use TYPE_LENGTH directly.
856         (m2_val_print): Likewise.
857         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
858         variable LEN and use TYPE_LENGTH directly.
859         (m68k_svr4_store_return_value): Likewise.
860         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
861         ARGLEN and use TYPE_LENGTH directly.
862         (mips_o64_push_dummy_call): Likewise.
863         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
864         variable LENGTH and use TYPE_LENGTH directly.
865         (s390_function_arg_float): Likewise.
866         (s390_function_arg_integer): Likewise.
867         (s390_push_dummy_call): Likewise.
868         (s390_return_value_convention): Likewise.
869         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
870         TYPE_LENGTH directly.
871
872 2012-09-17  Yao Qi  <yao@codesourcery.com>
873
874         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
875         Update comment to add_setshow_integer_cmd.
876         * cli/cli-setshow.c (do_set_command): Handle case
877         'var_zuinteger_unlimited'.
878         (do_show_command): Likewise.
879         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
880         for command 'remotetimeout'.
881         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
882         to var_integer.
883         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
884         for command 'set listsize'.
885
886 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
887
888         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
889         variable LEN.
890
891 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
892
893         PR 14119
894         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
895         (frame_pop): Drop also TAILCALL_FRAME frames.
896         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
897
898 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
899             Pedro Alves  <palves@redhat.com>
900
901         PR 14548
902         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
903         function start if we are already at function start.  Both for
904         reverse-next and for reverse-step into function without line number
905         info.
906
907 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
908
909         Code cleanup - rename 'inline' depth to 'artificial' depth.
910         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
911         frame_id_artificial_p, extend the comment.
912         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
913         * frame.c (fprint_frame_id): Rename at a user, change debug output
914         text to "artificial=".
915         (skip_inlined_frames): Rename to ...
916         (skip_artificial_frames): ... here.  Extend the comment.
917         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
918         (frame_id_inlined_p): Rename to ...
919         (frame_id_artificial_p): ... here.  Rename at a user.
920         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
921         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
922         at a user.
923         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
924         Extend the comment.
925         (frame_id_inlined_p): Rename to ...
926         (frame_id_artificial_p): ... here.
927         * inline-frame.c (inline_frame_this_id): Rename at a user.
928
929 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
930
931         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
932         vector variables using vector_size syntax rather than array
933         syntax.
934
935 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
936
937         * valarith.c (value_concat): Replace unsafe ALLOCA with
938         XMALLOC/XFREE.
939
940 2012-09-14  Pedro Alves  <palves@redhat.com>
941
942         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
943
944 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
945
946         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
947         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
948         data-directory as appropriate.
949
950 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
951
952         * printcmd.c (ui_printf): Eliminate single-use variable
953         PARAM_LEN.
954
955 2012-09-14  Yao Qi  <yao@codesourcery.com>
956             Pedro Alves  <palves@redhat.com>
957
958         * valops.c (value_assign): Move observer_notify_target_changed
959         below to replace reinit_frame_cache.
960
961 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
962
963         Refactor Python "gdb" module into a proper Python package, by
964         introducing a new "_gdb" module for code implemented in C, and
965         using reload/__import__ instead of exec.
966         * python/lib/gdb/__init__.py: Import * from _gdb.
967         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
968         prompt_hook, sys.argv): Moved from finish_python_initialization.
969         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
970         (packages, auto_load_packages): New list and function replacing
971         module_dict and auto-loading code, using __file__ instead of
972         gdb.PYTHONDIR and reload/__import__ instead of exec.
973         (GdbSetPythonDirectory): Replacing function of the same name
974         from finish_python_initialization, using reload/__import__ instead
975         of exec, as well as call auto_load_packages.
976         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
977         gdb_python_module and not gdb_module.
978         * python/python-internal.h (gdb_python_module): Declare.
979         * python/python.c (gdb_python_module): New global.
980         (before_prompt_hook): Check gdb_python_module and not gdb_module.
981         (_initialize_python): Rename gdb module to _gdb.
982         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
983         (finish_python_initialization): Move Python code to
984         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
985         __main__.
986
987 2012-09-13  Pedro Alves  <palves@redhat.com>
988
989         * Makefile.in (COMMON_OBS): Add registry.o.
990         * registry.c: New file.
991         * registry.h (struct registry_container): Declare.
992         (registry_data_callback): New typedef.
993         (struct registry_data, struct registry_data_registration, struct
994         registry_data_registry): New type.
995         (register_data_with_cleanup, registry_alloc_data)
996         (registry_callback_adaptor, registry_clear_data)
997         (registry_container_free_data, registry_set_data, registry_data):
998         Declare.
999         (DEFINE_REGISTRY): Refactor structures and functions as shims over
1000         the new common structures and functions.
1001         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
1002         callback typedefs.
1003
1004 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
1005
1006         * remote.c (remote_insert_hw_breakpoint): Throw exception if
1007         there is an error inserting hardware breakpoints and use the
1008         error message from the target.
1009
1010         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1011         Catch this exception and print the error message contained within. Do not
1012         print the default hardware error breakpoint message in this case.
1013
1014 2012-09-12  Doug Evans  <dje@google.com>
1015
1016         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1017         cu == NULL.
1018
1019 2012-09-11  Doug Evans  <dje@google.com>
1020
1021         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1022         .gdb_index symbol attributes if there are none.
1023
1024 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1025
1026         * symtab.h (struct minimal_symbol) [has_size]: New field.
1027         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1028         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1029         * printcmd.c (build_address_symbolic): Only filter out zero-sized
1030         minimal symbols if the symbol's size is actually known.
1031         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1032         of msymbol's size field.  Add comment.
1033         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1034         SET_MSYMBOL_SIZE to set the minimal symbol size.
1035
1036 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1037
1038         * minsyms.c (install_minimal_symbols): Use memset to fill entire
1039         minimal_symbol struct object, rather than setting some of its
1040         fields one by one.
1041
1042 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
1043
1044         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1045         passed_a_ptr flag when displaying typedef types.
1046
1047 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
1048
1049         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1050         the optimized_out flag is preserved.
1051
1052 2012-09-10  Anthony Green  <green@moxielogic.com>
1053
1054         * moxie-tdep.c (moxie_analyze_prologue): Update for function
1055         prologue changes in GCC.
1056
1057 2012-09-10  Keith Seitz  <keiths@redhat.com>
1058
1059         PR gdb/13483
1060         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1061         (BOOL_CONVERSION_BADNESS): ... this.
1062         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1063         (rank_one_type): Allow all boolean conversions
1064         permitted by the standard.
1065
1066 2012-09-06  Tom Tromey  <tromey@redhat.com>
1067
1068         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1069         Don't decref py_objfile.
1070
1071 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
1072
1073         Do not enable -lmcheck by default when Python is enabled with
1074         threading support.
1075         * configure.ac: (python_has_threads) New variable, by testing
1076         if WITH_THREAD is defined in Python.h.
1077         Move --enable-lmcheck after --with-python.
1078         Do not enable -lmcheck by default if python_has_threads=yes.
1079         Warn if --enable-lmcheck and python_has_threads=yes.
1080         * configure: Regenerate.
1081
1082 2012-08-31  Yao Qi  <yao@codesourcery.com>
1083
1084         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1085         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1086         Update some commands.
1087         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1088         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1089         to 1.
1090
1091 2012-08-31  Yao Qi  <yao@codesourcery.com>
1092
1093         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1094
1095 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1096
1097         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1098
1099 2012-08-29  Doug Evans  <dje@google.com>
1100
1101         * main.c (print_gdb_help): Remove reference to
1102         --use-deprecated-index-sections.
1103
1104 2012-08-28  Yao Qi  <yao@codesourcery.com>
1105
1106         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1107         (init_cmds): Call add_setshow_uinteger_cmd for command
1108         'max-user-call-depth'.
1109         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1110         declaration of 'max_user_call_depth'.
1111         * frame.c (backtrace_limit): Add 'unsigned'.
1112         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1113         'limit'.
1114         * remote.c (remoteaddresssize): Add 'unsigned'.
1115         (remote_address_masked): Change local var 'address_size' to
1116         'unsigned'.
1117         (_initialize_remote): Call add_setshow_uinteger_cmd for
1118         'remoteaddresssize'.
1119         * top.c (history_size): Add 'unsigned'.
1120         (show_commands): Change local variables to 'unsigned'.
1121         (set_history_size_command): Don't check history_size is negative.
1122         Adjust the condition to call unstifle_history and set history_size
1123         to UNIT_MAX.
1124
1125 2012-08-28  Pedro Alves  <palves@redhat.com>
1126
1127         PR gdb/14428
1128
1129         * infcmd.c (default_print_one_register_info): New, factored out
1130         from default_print_registers_info.
1131         (default_print_registers_info): Use it.  Mark value unavailable if
1132         necessary.
1133         (registers_info): Print user registers with
1134         default_print_one_register_info.
1135
1136 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1137
1138         PR tui/14486
1139         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1140         is not NULL before referencing it.
1141
1142 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1143
1144         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1145         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1146         original PC for it.
1147
1148 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1149             Jan Kratochvil  <jan.kratochvil@redhat.com>
1150
1151         * auto-load.c (auto_load_objfile_script): Rename to ...
1152         (auto_load_objfile_script_1): ... here, change variable realname to
1153         parameter realname, document it, add return value, add variable retval.
1154         (auto_load_objfile_script): New function.
1155
1156 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1157
1158         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1159         followed by a whitespace.
1160
1161 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1162
1163         PR gdb/14494.
1164         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1165         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1166         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1167         here.
1168
1169 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1170
1171         * memattr.c (create_mem_region): Fix memory region overlapping
1172         checking.
1173
1174 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1175
1176         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1177         with xmalloc/cleanup.
1178         * mt-tdep.c (mt_push_dummy_call): Likewise.
1179         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1180         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1181
1182 2012-08-24  Yao Qi  <yao@codesourcery.com>
1183
1184         * jv-exp.y (push_expression_name): Add "." at the end of error
1185         message.
1186
1187 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1188
1189         Document how to return from "python-interactive" to GDB.
1190         * python/python.c (_initialize_python): Update documentation.
1191
1192 2012-08-23  Pedro Alves  <palves@redhat.com>
1193
1194         * infrun.c (_initialize_infrun) <handle command help text>:
1195         Mention that multiple signals are supported.
1196
1197 2012-08-23  Pedro Alves  <palves@redhat.com>
1198
1199         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1200         string.
1201
1202 2012-08-23  Yao Qi  <yao@codesourcery.com>
1203
1204         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1205         (tfind_1): Don't call registers_changed, set_traceframe_num,
1206         and clear_traceframe_info.
1207         Call set_current_traceframe.
1208         (set_current_traceframe): call set_traceframe_num.
1209
1210 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1211
1212         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1213         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1214
1215 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1216
1217         Enable readline in Python in a GDB-specific way and block the
1218         standard Python readline module to prevent conflicts with GDB.
1219         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1220         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1221         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1222         * python/py-gdb-readline.c: New file.
1223         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1224         prototype.
1225         * python/python.c (_initialize_python): Call
1226         gdbpy_initialize_gdb_readline.
1227
1228 2012-08-22  Keith Seitz  <keiths@redhat.com>
1229
1230         * defs.h: Include build-gnulib/config.h
1231
1232 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1233
1234         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1235         and blx pc.
1236
1237 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1238
1239         Add a new "python-interactive" command that starts a standard
1240         Python interactive prompt with "pi" as alias, and add "py" as
1241         an alias to "python".
1242         * NEWS: Mention the new commands.
1243         * python/python.c (eval_python_command): New function.
1244         (python_interactive_command): For "python-interactive" with
1245         arguments, call eval_python_command.  For "python-interactive"
1246         without arguments, call PyRun_InteractiveLoop.
1247         (_initialize_python): Add "python-interactive" command with
1248         "pi" as alias, and add "py" as an alias to "python".
1249
1250 2012-08-22  Tom Tromey  <tromey@redhat.com>
1251
1252         * defs.h (quit_flag): Don't declare.
1253         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1254         (QUIT): Use new functions.
1255         * event-top.c (command_handler): Use clear_quit_flag.
1256         (handle_sigint): Use set_quit_flag.
1257         (async_request_quit): Use check_quit_flag.  Don't check
1258         immediate_quit.
1259         * exceptions.c (throw_exception): Use clear_quit_flag.
1260         * main.c (captured_main): Use clear_quit_flag.
1261         * python/python.c (clear_quit_flag, set_quit_flag)
1262         (check_quit_flag): New functions.
1263         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1264         clear_quit_flag.
1265         * remote.c (remote_wait_as): Use check_quit_flag,
1266         clear_quit_flag.
1267         (remote_start_remote): Call QUIT.
1268         * symfile.c (load_progress): Use check_quit_flag.
1269         * top.c (command_loop): Use clear_quit_flag.
1270         (command_line_input): Call QUIT.
1271         * utils.c (quit_flag): Conditionally define.
1272         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1273         functions.
1274         (prompt_for_continue): Call QUIT.  Use quit, not
1275         async_request_quit.
1276         * remote-mips.c (mips_expect_timeout): Call QUIT.
1277         * monitor.c (monitor_expect): Call QUIT.
1278
1279 2012-08-22  Tom Tromey  <tromey@redhat.com>
1280
1281         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1282         (async_init_signals): Update.
1283         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1284         (SIGWINCH_HANDLER_BODY): Remove.
1285
1286 2012-08-22  Tom Tromey  <tromey@redhat.com>
1287
1288         * jit.c (jit_object_close_impl): Don't malloc the objfile
1289         name.
1290         * objfiles.c (allocate_objfile): Don't malloc the objfile
1291         name.
1292         (free_objfile): Don't free the objfile name.
1293         * objfiles.h (struct objfile) <name>: Update comment.
1294         * symfile.c (reread_symbols): Fix reference counting.  Don't
1295         malloc objfile name.
1296
1297 2012-08-22  Tom Tromey  <tromey@redhat.com>
1298
1299         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1300         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1301         (symfile_bfd_open): Likewise.
1302         (generic_load): Likewise.
1303         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1304         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1305         gdb_bfd_open.
1306         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1307         Use gdb_bfd_open.
1308         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1309         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1310         (pmon_load_fast): Likewise.
1311         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1312         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1313         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1314         (macho_check_dsym): Likewise.
1315         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1316         (m32r_upload_command): Likewise.
1317         * gdb_bfd.h (gdb_bfd_cache): Declare.
1318         * gdb_bfd.c (struct gdb_bfd_data): New.
1319         (gdb_bfd_cache): New global.
1320         (struct gdb_bfd_cache_search): New.
1321         (hash_bfd): New function.
1322         (eq_bfd): Likewise.
1323         (gdb_bfd_open): Likewise.
1324         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1325         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1326         gdb_bfd_data.
1327         * exec.c (exec_file_attach): Use gdb_bfd_open.
1328         * dsrec.c (load_srec): Use gdb_bfd_open.
1329
1330 2012-08-22  Tom Tromey  <tromey@redhat.com>
1331
1332         * dwarf2read.c (macro_start_file): Update.
1333         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1334         (free_objfile_per_bfd_storage): Destroy macro_cache.
1335         (allocate_objfile, free_objfile): Update.
1336         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1337         New field.
1338         (struct objfile) <macro_cache>: Remove.
1339         * symfile.c (reread_symbols): Update.
1340         * symmisc.c (print_symbol_bcache_statistics): Update.
1341         (print_objfile_statistics): Update.
1342
1343 2012-08-22  Tom Tromey  <tromey@redhat.com>
1344
1345         * elfread.c (elf_symtab_read): Update.
1346         * objfiles.c (objfiles_bfd_data): New global.
1347         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1348         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1349         (allocate_objfile, free_objfile): Update.
1350         (_initialize_objfiles): Initialize objfiles_bfd_data.
1351         * objfiles.h (struct objfile_per_bfd_storage): New.
1352         (struct objfile) <per_bfd>: New field.
1353         <filename_cache>: Remove.
1354         (set_objfile_per_bfd): Declare.
1355         * symfile.c (reread_symbols): Update.  Call
1356         set_objfile_per_bfd.
1357         (allocate_symtab): Update.
1358         * symmisc.c (print_symbol_bcache_statistics): Update.
1359         (print_objfile_statistics): Print the size of the BFD obstack.
1360
1361 2012-08-22  Tom Tromey  <tromey@redhat.com>
1362
1363         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1364         * gdb_bfd.c: Use DEFINE_REGISTRY.
1365         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1366         (gdb_bfd_ref): Call bfd_alloc_data.
1367         (gdb_bfd_unref): Call bfd_free_data.
1368
1369 2012-08-22  Tom Tromey  <tromey@redhat.com>
1370
1371         * registry.h (struct registry_fields): New.
1372         (REGISTRY_FIELDS): Redefine.
1373         (REGISTRY_ACCESS_FIELD): New macro.
1374         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1375         functions.
1376
1377 2012-08-22  Tom Tromey  <tromey@redhat.com>
1378
1379         * auto-load.c (_initialize_auto_load): Update.
1380         * solib-svr4.c (_initialize_svr4_solib): Update
1381         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1382         * solib-darwin.c (_initialize_darwin_solib): Update.
1383         * registry.h: New file.
1384         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1385         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1386         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1387         (register_program_space_data_with_cleanup)
1388         (register_program_space_data, program_space_alloc_data)
1389         (clear_program_space_data, set_program_space_data)
1390         (program_space_data): Don't declare.
1391         * progspace.c: Use DEFINE_REGISTRY.
1392         (struct program_space_data, struct
1393         program_space_data_registration, struct
1394         program_space_data_registry, program_space_data_registry)
1395         (register_program_space_data_with_cleanup)
1396         (register_program_space_data, program_space_alloc_data)
1397         (program_space_free_data, clear_program_space_data)
1398         (set_program_space_data, program_space_data): Remove.
1399         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1400         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1401         (register_objfile_data_with_cleanup, register_objfile_data)
1402         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1403         declare.
1404         * objfiles.c: Use DEFINE_REGISTRY.
1405         (struct objfile_data, struct objfile_data_registration, struct
1406         objfile_data_registry, objfile_data_registry)
1407         (register_objfile_data_with_cleanup, register_objfile_data)
1408         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1409         (set_objfile_data, objfile_data): Remove.
1410         (_initialize_objfiles): Update.
1411         * jit.c (_initialize_jit): Update.
1412         * inflow.c (_initialize_inflow): Update.
1413         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1414         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1415         (register_inferior_data_with_cleanup, register_inferior_data)
1416         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1417         declare.
1418         * inferior.c: Use DEFINE_REGISTRY.
1419         (struct inferior_data, struct inferior_data_registration, struct
1420         inferior_data_registry, inferior_data_registry)
1421         (register_inferior_data_with_cleanup, register_inferior_data)
1422         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1423         (set_inferior_data, inferior_data): Remove.
1424         * auxv.c (_initialize_auxv): Update.
1425         * ada-lang.c (_initialize_ada_language): Update.
1426         * breakpoint.c (_initialize_breakpoint): Update.
1427         * i386-nat.c (i386_use_watchpoints): Update.
1428
1429 2012-08-22  Tom Tromey  <tromey@redhat.com>
1430
1431         * exec.c (exec_close, exec_file_attach): Update.
1432         (add_to_section_table): Initialize 'key' field.
1433         (add_target_sections, remove_target_sections): Add 'key' argument.
1434         * exec.h (add_target_sections, remove_target_sections): Add
1435         'key' argument.
1436         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1437         (reload_shared_libraries_1): Update.
1438         * target.h (struct target_section) <key>: New field.
1439
1440 2012-08-22  Tom Tromey  <tromey@redhat.com>
1441
1442         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1443
1444 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1445
1446         * symfile.c (allocate_symtab): Use host_address_to_string
1447         function instead of cast of pointer to long which is not
1448         compatible with x86_64-w64-mingw32 build.
1449
1450 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1451
1452         * mips-tdep.c (is_octeon): New function.
1453         (is_octeon_bbit_op): New function.
1454         (mips32_next_pc): Handle Octeon's bbit instructions.
1455         (mips32_instruction_has_delay_slot): Likewise.
1456
1457 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1458
1459         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1460         before the function.
1461
1462 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1463
1464         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1465
1466 2012-08-19  Keith Seitz  <keiths@redhat.com>
1467
1468         PR c++/14365
1469         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1470         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1471
1472 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1473
1474         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1475         The typo broke "make TAGS".
1476
1477 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1478
1479         GDB 7.5 released.
1480
1481 2012-08-17  Keith Seitz  <keiths@redhat.com>
1482
1483         PR c++/13356
1484         * gdbtypes.c (strict_type_checking): New variable.
1485         (show_strict_type_checking): New function.
1486         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1487         if strict type checking is disabled.
1488         (_initialize_gdbtypes): Add "check type" subcommand.
1489         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1490
1491 2012-08-17  Keith Seitz  <keiths@redhat.com>
1492
1493         * language.h (type_mode): Remove.
1494         (type_check): Remove.
1495         (struct language_defn): Remove la_type_check.
1496         (STRICT_TYPE): Remove unused macro.
1497         (type_error): Remove.
1498         * language.c (set_type_range_case): Renamed to ...
1499         (set_range_case): ... this.  Update all callers.
1500         Remove type_mode/type_check.
1501         (type_mode): Remove.
1502         (type_check): Remove.
1503         (show_type_command): Remove.
1504         (set_type_command): Remove.
1505         (language_info): Remove type checking output.
1506         (type_error): Remove unused function.
1507         (range_error): Update comment.
1508         (unknown_language_defn): Remove la_type_check.
1509         (auto_language_defn): Likewise.
1510         (local_language_defn): Likewise.
1511         (_initialize_language): Remove "check type" subcommand.
1512         * ada-lang.c (ada_language_defn): Remove la_type_check.
1513         * c-lang.c (c_language_defn): Likewise.
1514         (cplus_language_defn): Likewise.
1515         (asm_language_defn): Likewise.
1516         (minimal_language_defn): Likewise.
1517         * d-lang.c (d_language_defn): Likewise.
1518         * f-lang.c (f_language_defn): Likewise.
1519         * go-lang.c (go_language_defn): Likewise.
1520         * jv-lang.c (java_language_defn): Likewise.
1521         * m2-lang.c (m2_language_defn): Likewise.
1522         * objc-lang.c (objc_language_defn): Likewise.
1523         * opencl-lang.c (opencl_language_defn): Likewise.
1524         * p-lang.c (pascal_language_defn): Likewise.
1525
1526 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1527
1528         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1529
1530 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1531
1532         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1533         New function.
1534         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1535         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1536         to access the bsp and bspstore registers if not.
1537
1538 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1539
1540         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1541         * breakpoint.c (detach_breakpoints): Change pid parameter into
1542         a ptid.  Adjust code accordingly.
1543         * infrun.c (handle_inferior_event): Delete variable child_pid.
1544         Update call to detach_breakpoints to pass the child ptid for
1545         fork events.
1546         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1547         assert that inferior_ptid's lwp is zero.
1548         (linux_handle_extended_wait): Update call to detach_breakpoints.
1549         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1550         detach_breakpoints.
1551
1552 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1553
1554         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1555         parent, only call detach_breakpoints if tts.tts_event ==
1556         TTEVT_VFORK.
1557
1558 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1559
1560         * dwarf2-frame.c (dwarf2_frame_cache): Use
1561         get_frame_address_in_block instead of get_frame_pc as
1562         the bound for executing the frame's FDE.
1563
1564 2012-08-16  Yao Qi  <yao@codesourcery.com>
1565
1566         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1567         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1568         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1569         (c_type_print_varspec_suffix): Likewise.
1570         * eval.c (evaluate_subexp_standard): Likewise.
1571         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1572         (f_type_print_varspec_suffix): Likewise.
1573         * gdbtypes.c (is_scalar_type): Likewise.
1574         (recursive_dump_type): Likewise.
1575         * infcall.c (value_arg_coerce): Likewise.
1576         * m2-valprint.c (m2_val_print): Likewise.
1577         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1578         (pascal_type_print_varspec_suffix): Likewise.
1579         (pascal_type_print_base): Likewise.
1580         * p-valprint.c (pascal_val_print): Likewise.
1581         (pascal_val_print): Likewise.
1582         * valops.c (value_slice): Likewise.
1583         * valprint.c (scalar_type_p): Likewise.
1584         * valarith.c (value_bitstring_subscript): Remove.
1585         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1586         Remove comment on TYPE_CODE_BITSTRING.
1587
1588         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1589         TYPE_CODE_BITSTRING.
1590
1591         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1592         slot 0.
1593
1594 2012-08-16  Yao Qi  <yao@codesourcery.com>
1595
1596         * tracepoint.c (trace_find_none_command): Remove.
1597         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1598
1599 2012-08-16  Yao Qi  <yao@codesourcery.com>
1600
1601         * remote.c (handle_notification): Remove parameter 'length'.
1602         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1603
1604 2012-08-15  Keith Seitz  <keiths@redhat.com>
1605
1606         * gdbtypes.c (opaque_type_resolution): Make static.
1607         Add missing comment.
1608         (overload_debug): Add missing comment.
1609         (show_opaque_type_resolution): Likewise.
1610         (show_overload_debug): Likewise.
1611         (print_bit_vector): Remove unnecessary forward declaration.
1612         (print_arg_types): Likewise.
1613         (dump_fn_fieldlists): Likewise.
1614         (print_cplus_stuff): Likewise.
1615
1616 2012-08-15  Tom Tromey  <tromey@redhat.com>
1617
1618         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1619         (gdb_bfd_ref): Initialize new field.
1620         (gdb_bfd_unref): Unref the archive BFD.
1621         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1622         parent archive.
1623
1624 2012-08-15  Tom Tromey  <tromey@redhat.com>
1625
1626         PR python/14387:
1627         * python/py-bpevent.c (create_breakpoint_event_object): Update
1628         comment.
1629         * python/py-event.c (evpy_add_attribute): Update comment.
1630         * python/py-exitedevent.c (create_exited_event_object): Fix
1631         reference counting and error handling.
1632         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1633         Fix reference counting.
1634         * python/py-signalevent.c (create_signal_event_object): Fix
1635         reference counting and error handling.
1636         * python/py-stopevent.c (emit_stop_event): Fix reference
1637         counting.
1638         * python/py-threadevent.c (get_event_thread): Return a
1639         borrowed reference.
1640         * python/py-type.c (convert_field): Fix reference counting.
1641
1642 2012-08-15  Tom Tromey  <tromey@redhat.com>
1643
1644         * dwarf2read.c (dwarf_decode_macro_bytes)
1645         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1646         as hash key.
1647
1648 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1649
1650         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1651         stepi, nexti, finish, next, step, jump, and continue commands.
1652         * infrun.c (_initialize_infrun): Update help text for the handle
1653         command.
1654
1655 2012-08-14  Doug Evans  <dje@google.com>
1656
1657         * gdbtypes.c (struct extra): Delete, unused.
1658
1659         * gdbtypes.c: Whitespace cleanup.
1660         (address_space_name_to_int): Remove "extern" from definition.
1661         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1662
1663         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1664         TYPE_POINTER_TYPE (type).
1665
1666 2012-08-14  Gary Benson  <gbenson@redhat.com>
1667
1668         * solib-svr4.c (svr4_free_library_list): Use free_so.
1669
1670 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1671
1672         * .gitignore: Add go-exp.c.
1673
1674 2012-08-13  Doug Evans  <dje@google.com>
1675
1676         * value.c (show_convenience): Tweak comment.
1677         (_initialize_values): Mention convenience functions in the help text
1678         for "show convenience".
1679
1680 2012-08-13  Yao Qi  <yao@codesourcery.com>
1681
1682         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1683         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1684         TERNOP_SLICE_COUNT.
1685         * eval.c (evaluate_subexp_standard): Likewise.
1686         * expprint.c (print_subexp_standard): Likewise.
1687         (dump_subexp_body_standard): Likewise.
1688         * parse.c (operator_length_standard): Likewise.
1689
1690 2012-08-13  Yao Qi  <yao@codesourcery.com>
1691
1692         * std-operator.def: Remove OP_BITSTRING.
1693         * breakpoint.c (watchpoint_exp_is_const): Update.
1694         * eval.c (evaluate_subexp_standard): Remove handling to
1695         OP_BITSTRING.
1696         * expprint.c (print_subexp_standard): Likewise.
1697         (dump_subexp_body_standard): Likewise.
1698         * parse.c (operator_length_standard): Likewise.
1699         * valops.c (value_bitstring): Remove.
1700         * value.h: Remove the declaration of 'value_bitstring'.
1701
1702 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1703
1704         * linespec.c (find_methods): Remove unused variables `i1' and
1705         `name_len'.
1706         (decode_line_full): Likewise for `arg_start'.
1707
1708 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1709
1710         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1711         (zlib_decompress_section): Likewise for `section_data'.
1712         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1713
1714 2012-08-10  Doug Evans  <dje@google.com>
1715
1716         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1717         * NEWS: Document them.
1718         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1719         function/strfns.py.
1720         * python/py-type.c (typy_array_1): New function.
1721         (typy_array): Call it.
1722         (typy_vector): New function.
1723         (type_object_methods): Add "vector".
1724         * python/lib/gdb/function/__init__.py: New file.
1725         * python/lib/gdb/function/strfns.py: New file.
1726
1727 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1728
1729         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1730         for TYPE_FIELD_BITPOS.
1731         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1732
1733 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1734
1735         PR cli/10436:
1736         * common/vec.h (VEC_merge): Define.
1737         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1738         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1739         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1740         * completer.c: Include gdb_signals.h.
1741         (signal_completer): Define.
1742         * completer.h (signal_completer): Add prototype.
1743         * infcmd.c (_initialize_infcmd): Assign the command
1744         completer for "signal" to handle_completer.
1745         * infrun.c: Include completer.h.
1746         (handle_completer): Define.
1747         (_initialize_infrun): Declare a new local variable c.  Store the
1748         result of add_com("handle") to it.  Assign the command
1749         completer for "handle" to handle_completer.
1750
1751 2012-08-09  Yao Qi  <yao@codesourcery.com>
1752
1753         * cli/cli-decode.c (set_cmd_prefix): New.
1754         (lookup_cmd_for_prefixlist): New.
1755         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1756         of each cmd_list_element in *prefixlist.
1757         (add_setshow_cmd_full): set_cmd_prefix.
1758         (add_alias_cmd): Likewise.
1759         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1760         Declare 'auto_boolean_enums'.
1761         * cli/cli-setshow.c: Include "observer.h".
1762         (notify_command_param_changed_p): New.
1763         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1764         Remove 'static'.
1765         (do_setshow_command): Split it to ...
1766         (do_set_command, do_show_command): ... them.  New.
1767         (do_set_command): Call observer_notify_command_param_changed if
1768         notify_command_param_changed_p returns true.
1769         (cmd_show_list): Caller update.
1770         * auto-load.c (set_auto_load_cmd): Likewise.
1771         * remote.c (show_remote_cmd): Likewise.
1772         * cli/cli-setshow.h: Update declarations.
1773         * top.c (execute_command): Call do_set_command and do_show_command.
1774
1775         * NEWS: Mention new MI notification.
1776         * mi/mi-interp.c: Declare mi_command_param_changed.
1777         (mi_interpreter_init): Attach mi_command_param_changed to
1778         observer command_param_changed.
1779         (mi_command_param_changed): New.
1780         Remove mi_suppress_breakpoint_notifications.
1781         Define global variable mi_suppress_notification.
1782         (mi_breakpoint_created): Update.
1783         (mi_breakpoint_deleted): Likewise.
1784         (mi_breakpoint_modified): Likewise.
1785         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1786         'gdb-set' and set mi_suppress_notification.
1787         * mi/mi-main.h: (mi_suppress_notification): New struct.
1788
1789 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1790             Jan Kratochvil  <jan.kratochvil@redhat.com>
1791
1792         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1793
1794 2012-08-09  Yao Qi  <yao@codesourcery.com>
1795
1796         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1797         (skiplist): Move it to skip.c.
1798         (init_cmd_lists): Remove code setting enablebreaklist and
1799         skiplist to NULL.
1800         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1801         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1802         skiplist.
1803         * gdbcmd.h: Likewise.
1804         * skip.c (_initialize_step_skip): Move 'skiplist' from
1805         cli/cli-cmds.c.
1806
1807 2012-08-09  Yao Qi  <yao@codesourcery.com>
1808
1809         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1810         * gnu-nat.c, symfile.c: Likewise.
1811
1812 2012-08-08  Aaron Gamble  <agamble@google.com>
1813
1814         * utils.c (prompt_for_continue_wait_time): New static global.
1815         (make_command_stats_cleanup): Initialize it.
1816         (report_command_stats): Subtract time waiting for user.
1817         (prompt_for_continue): Track time waiting for user.
1818         (defaulted_query): Track time waiting for user.
1819
1820 2012-08-08  Doug Evans  <dje@google.com>
1821
1822         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1823         UNOP_MEMVAL_TYPE.
1824         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1825         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1826         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1827         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1828         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1829         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1830         elt.
1831         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1832         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1833         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1834         (dump_prefix_expression): Handle OP_TYPE.
1835
1836 2012-08-08  Keith Seitz  <keiths@redhat.com>
1837
1838         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1839         addr_start.
1840
1841 2012-08-08  Doug Evans  <dje@google.com>
1842
1843         * linux-thread-db.c: #include "gdb_vecs.h".
1844         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1845         updated.
1846         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1847         (thread_db_load_search): Use a vector to iterate over path elements.
1848         Handle text appearing after "$pdir".
1849
1850         * gdb_string.h: Moved to ...
1851         * common/gdb_string.h: ... here.
1852         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1853         gdb_string.h and gdb_assert.h.
1854
1855 2012-08-08  Yao Qi  <yao@codesourcery.com>
1856
1857         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1858         (tic6x_value_to_register): Likewise.
1859         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1860         and set_gdbarch_value_to_register.
1861
1862 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1863             Jean-Marc Saffroy  <saffroy@gmail.com>
1864
1865         PR 11804
1866         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
1867         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1868         * gcore.c (gcore_create_callback): New function comment.  Add modified
1869         parameter.  Only write modified regions.  Set SEC_READONLY exactly
1870         according to MODIFIED.
1871         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
1872         the passed modified value to FUNC.
1873         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1874         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1875         first.  New variables modified and has_anonymous.  Parse the lines of
1876         smaps file.  Add the passed MODIFIED value to FUNC.
1877         * procfs.c (find_memory_regions_callback): Add the passed modified
1878         value.
1879
1880 2012-08-06  Tom Tromey  <tromey@redhat.com>
1881
1882         * dwarf2-frame.c (clear_pointer_cleanup): New function.
1883         (dwarf2_frame_cache): Use it.
1884         * frame-unwind.h (frame_sniffer_ftype): Document prologue
1885         cache initialization constraint.
1886
1887 2012-08-06  Tom Tromey  <tromey@redhat.com>
1888
1889         PR python/14386:
1890         * varobj.c (update_dynamic_varobj_children): Don't call
1891         PyIter_Check.
1892
1893 2012-08-06  Tom Tromey  <tromey@redhat.com>
1894
1895         PR cli/14392:
1896         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1897
1898 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
1899
1900         * NEWS: New entry for 'cd' default parameters.
1901         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1902
1903 2012-08-03  Tom Tromey  <tromey@redhat.com>
1904
1905         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1906         return.
1907
1908 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
1909
1910         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1911         to attempting lseek/write.
1912         (inf_child_fileio_pread): Likewise for pread.
1913
1914 2012-08-02  Yao Qi  <yao@codesourcery.com>
1915
1916         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1917         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1918         add_setshow_zinteger_cmd.
1919         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1920         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1921         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1922         instead of add_setshow_zinteger_cmd.
1923         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1924         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1925         instead of add_setshow_zinteger_cmd.
1926         * frame.c (frame_debug): Add 'unsigned'.
1927         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1928         add_setshow_zinteger_cmd.
1929         * frame.h: Update the declaration of 'frame_debug'.
1930         * gdbtypes.c (overload_debug): Add 'unsigned'.
1931         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1932         add_setshow_zinteger_cmd.
1933         * inferior.h: Update declaration of 'debug_infrun'.
1934         * infrun.c (debug_infrun): Add 'unsigned'.
1935         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1936         add_setshow_zinteger_cmd.
1937         * jit.c (jit_debug): Add 'unsigned'.
1938         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1939         add_setshow_zinteger_cmd.
1940         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1941         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1942         instead of add_setshow_zinteger_cmd.
1943         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1944         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1945         add_setshow_zinteger_cmd.
1946         * machoread.c (mach_o_debug_level): Add 'unsigned'.
1947         (_initialize_machoread): Call add_setshow_zuinteger_cmd
1948         instead of add_setshow_zinteger_cmd.
1949         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1950         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1951         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1952         intead of add_setshow_zinteger_cmd.
1953         * mips-tdep.c (mips_debug): Add 'unsigned'.
1954         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1955         instead of add_setshow_zinteger_cmd.
1956         * monitor.c (monitor_debug): Add 'unsigned'.
1957         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1958         add_setshow_zinteger_cmd.
1959         * observer.c (observer_debug): Add 'unsigned'.
1960         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1961         add_setshow_zinteger_cmd.
1962         * parse.c (expressiondebug): Add 'unsigned'.
1963         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1964         add_setshow_zinteger_cmd.
1965         * record.c (record_debug): Add 'unsigned'.
1966         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1967         add_setshow_zinteger_cmd.
1968         * record.h: Update the declaration of 'record_debug'.
1969         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1970         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1971         add_setshow_zinteger_cmd.
1972         * serial.c (global_serial_debug_p): Add 'unsigned'.
1973         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1974         add_setshow_zinteger_cmd.
1975         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1976         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1977         add_setshow_zinteger_cmd.
1978         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1979         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1980         add_setshow_zinteger_cmd.
1981         * target.c (targetdebug): Add 'unsigned'.
1982         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1983         add_setshow_zinteger_cmd.
1984         * valops.c (overload_debug): Add 'unsigned'.
1985         * varobj.c (varobjdebug): Add 'unsigned'.
1986         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1987         add_setshow_zinteger_cmd.
1988         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1989         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1990         instead of add_setshow_zinteger_cmd.
1991
1992         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1993         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1994         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1995         instead of add_setshow_zinteger_cmd.
1996         * gdbarch.c, gdbarch.h: Re-generated.
1997
1998 2012-08-02  Yao Qi  <yao@codesourcery.com>
1999
2000         * nto-tdep.c: Don't include cli/cli-decode.h and
2001         cli/cli-cmds.h.
2002         (_initialize_nto_tdep): Remove.
2003         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2004         Remove field.
2005         Remove macro nto_internal_debugging.
2006
2007 2012-08-01  Richard Henderson  <rth@redhat.com>
2008
2009         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2010         (mep-*-*) [gdb_target_obs]: Likewise.
2011
2012 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
2013
2014         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2015         linux_get_siginfo_type.
2016
2017 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2018
2019         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2020         AT_ENTRY_POINT.
2021         (call_function_by_hand) <ON_STACK>: Call write_memory with
2022         gdbarch_breakpoint_from_pc, if possible.
2023         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2024         here.
2025
2026 2012-07-31  Yao Qi  <yao@codesourcery.com>
2027
2028         * tracepoint.c: Add 'static' for some variables.
2029
2030 2012-07-31  Yao Qi  <yao@codesourcery.com>
2031
2032         * go32-nat.c: Declare _initialize_go32_nat.
2033         * ser-go32.c: Declare _initialize_ser_dos.
2034         * top.c (do_chdir_cleanup): Add 'static'.
2035
2036 2012-07-30  Keith Seitz  <keiths@redhat.com>
2037
2038         * linespec.c (linespec_lex_number): A number followed
2039         by quotes is a valid number, too.
2040
2041 2012-07-30  Tom Tromey  <tromey@redhat.com>
2042
2043         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2044
2045 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
2046
2047         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2048         attempt to 4-byte-align HW breakpoint addresses for Thumb.
2049
2050 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
2051
2052         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2053         invalid or reevaluated to prevent prevent references to possibly
2054         delete'd type objects being left in the varobj.
2055
2056 2012-07-27  Tom Tromey  <tromey@redhat.com>
2057             Jan Kratochvil  <jan.kratochvil@redhat.com>
2058
2059         * copying.awk: Print buffer-read-only and vi ro markers.
2060         * copying.c: Rebuild.
2061         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2062         * gdbarch.c, gdbarch.h: Rebuild.
2063         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2064         buffer-read-only and vi ro markers.
2065         * features/arm-with-iwmmxt.c: Rebuild.
2066         * features/arm-with-m-fpa-layout.c: Rebuild.
2067         * features/arm-with-m-vfp-d16.c: Rebuild.
2068         * features/arm-with-m.c: Rebuild.
2069         * features/arm-with-neon.c: Rebuild.
2070         * features/arm-with-vfpv2.c: Rebuild.
2071         * features/arm-with-vfpv3.c: Rebuild.
2072         * features/i386/amd64-avx-linux.c: Rebuild.
2073         * features/i386/amd64-avx.c: Rebuild.
2074         * features/i386/amd64-linux.c: Rebuild.
2075         * features/i386/amd64.c: Rebuild.
2076         * features/i386/i386-avx-linux.c: Rebuild.
2077         * features/i386/i386-avx.c: Rebuild.
2078         * features/i386/i386-linux.c: Rebuild.
2079         * features/i386/i386-mmx-linux.c: Rebuild.
2080         * features/i386/i386-mmx.c: Rebuild.
2081         * features/i386/i386.c: Rebuild.
2082         * features/i386/x32-avx-linux.c: Rebuild.
2083         * features/i386/x32-avx.c: Rebuild.
2084         * features/i386/x32-linux.c: Rebuild.
2085         * features/i386/x32.c: Rebuild.
2086         * features/mips-dsp-linux.c: Rebuild.
2087         * features/mips-linux.c: Rebuild.
2088         * features/mips64-dsp-linux.c: Rebuild.
2089         * features/mips64-linux.c: Rebuild.
2090         * features/rs6000/powerpc-32.c: Rebuild.
2091         * features/rs6000/powerpc-32l.c: Rebuild.
2092         * features/rs6000/powerpc-403.c: Rebuild.
2093         * features/rs6000/powerpc-403gc.c: Rebuild.
2094         * features/rs6000/powerpc-405.c: Rebuild.
2095         * features/rs6000/powerpc-505.c: Rebuild.
2096         * features/rs6000/powerpc-601.c: Rebuild.
2097         * features/rs6000/powerpc-602.c: Rebuild.
2098         * features/rs6000/powerpc-603.c: Rebuild.
2099         * features/rs6000/powerpc-604.c: Rebuild.
2100         * features/rs6000/powerpc-64.c: Rebuild.
2101         * features/rs6000/powerpc-64l.c: Rebuild.
2102         * features/rs6000/powerpc-7400.c: Rebuild.
2103         * features/rs6000/powerpc-750.c: Rebuild.
2104         * features/rs6000/powerpc-860.c: Rebuild.
2105         * features/rs6000/powerpc-altivec32.c: Rebuild.
2106         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2107         * features/rs6000/powerpc-altivec64.c: Rebuild.
2108         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2109         * features/rs6000/powerpc-cell32l.c: Rebuild.
2110         * features/rs6000/powerpc-cell64l.c: Rebuild.
2111         * features/rs6000/powerpc-e500.c: Rebuild.
2112         * features/rs6000/powerpc-e500l.c: Rebuild.
2113         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2114         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2115         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2116         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2117         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2118         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2119         * features/rs6000/powerpc-vsx32.c: Rebuild.
2120         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2121         * features/rs6000/powerpc-vsx64.c: Rebuild.
2122         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2123         * features/rs6000/rs6000.c: Rebuild.
2124         * features/s390-linux32.c: Rebuild.
2125         * features/s390-linux32v1.c: Rebuild.
2126         * features/s390-linux32v2.c: Rebuild.
2127         * features/s390-linux64.c: Rebuild.
2128         * features/s390-linux64v1.c: Rebuild.
2129         * features/s390-linux64v2.c: Rebuild.
2130         * features/s390x-linux64.c: Rebuild.
2131         * features/s390x-linux64v1.c: Rebuild.
2132         * features/s390x-linux64v2.c: Rebuild.
2133         * features/tic6x-c62x-linux.c: Rebuild.
2134         * features/tic6x-c62x.c: Rebuild.
2135         * features/tic6x-c64x-linux.c: Rebuild.
2136         * features/tic6x-c64x.c: Rebuild.
2137         * features/tic6x-c64xp-linux.c: Rebuild.
2138         * features/tic6x-c64xp.c: Rebuild.
2139
2140 2012-07-27  Tom Tromey  <tromey@redhat.com>
2141
2142         * c-exp.y (classify_name): Avoid assignment in condition.
2143
2144 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2145
2146         * amd64-windows-tdep.c: Include "frame.h".
2147         (amd64_windows_skip_trampoline_code): New function.
2148         (amd64_windows_init_abi): Add trampoline registration.
2149
2150 2012-07-27  Yao Qi  <yao@codesourcery.com>
2151
2152         * tracepoint.c (cur_traceframe_number): Remove.
2153         (set_tfile_traceframe): Remove.
2154         (tfile_trace_find, tfile_fetch_registers): Update callers.
2155         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2156         (tfile_open, tfile_trace_find): Likewise.
2157
2158 2012-07-27  Yao Qi  <yao@codesourcery.com>
2159
2160         * thread.c (switch_to_thread): Don't call registers_changed.
2161
2162 2012-07-26  Tom Tromey  <tromey@redhat.com>
2163
2164         * Makefile.in (SFILES): Remove objc-exp.y.
2165         (YYFILES): Remove objc-exp.c.
2166         (YYOBJ): Remove objc-exp.o.
2167         (local-maintainer-clean): Don't mention objc-exp.c.
2168         * c-exp.y: Include objc-lang.h.
2169         (%union) <class>: New field.
2170         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2171         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2172         Objective C productions.
2173         (msglist, msgarglist, msgarg): New productions.
2174         (array_mod, func_mod, operator): Clone productions for
2175         OBJC_LBRAC.
2176         (parse_string_or_char): Handle '@' strings.
2177         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2178         (classify_name): Check la_name_of_this.  Recognize ObjC class
2179         names.
2180         * objc-exp.y: Remove.
2181         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2182         * objc-lang.h (objc_parse, objc_error): Don't declare.
2183
2184 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2185
2186         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2187
2188 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2189
2190         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2191         and decrement.
2192
2193 2012-07-26  Tom Tromey  <tromey@redhat.com>
2194
2195         * copying.c: Rebuild.
2196         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2197         'no_class'.
2198
2199 2012-07-26  Tom Tromey  <tromey@redhat.com>
2200
2201         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2202         immediate_quit.
2203         (print_objfile_statistics): Likewise.
2204         (maintenance_print_symbols): Likewise.
2205         (maintenance_print_msymbols): Likewise.
2206         (maintenance_print_objfiles): Likewise.
2207         * psymtab.c (print_partial_symbols): Call QUIT.
2208         (maintenance_print_psymbols): Likewise.  Don't modify
2209         immediate_quit.
2210         * copying.c (show_copying_command): Don't modify immediate_quit.
2211         (show_warranty_command): Likewise.
2212         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2213
2214 2012-07-26  Keith Seitz  <keiths@redhat.com>
2215
2216         * linespec.c (linespec_lexer_lex_number): The input
2217         is also a valid number if the next character is a comma
2218         or colon.
2219
2220 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2221
2222         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2223         configure options.
2224
2225 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2226
2227         * machoread.c: Include gdb_bfd.h.
2228
2229 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2230
2231         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2232         offset.
2233
2234 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2235
2236         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2237         SIZE to size_t.
2238         (dwarf2_evaluate_loc_desc): Likewise.
2239         (dwarf2_loc_desc_needs_frame): Likewise.
2240         (locexpr_describe_location_1): Likewise.
2241         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2242         size_t.
2243         (struct dwarf2_loclist_baton): Likewise.
2244         * dwarf2read.c (struct dwarf_block): Likewise.
2245         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2246         (decode_locdesc): Expand SIZE and I to size_t.
2247
2248 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2249
2250         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2251
2252 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2253
2254         * doublest.c (convert_doublest_to_floatformat): If the exponent
2255         is too small, treat the value as zero.  If the exponent is too
2256         large, treat the value as infinity.
2257
2258 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2259
2260         * configure.ac: Add --enable-lmcheck configure option.
2261         * configure: Regenerate.
2262
2263 2012-07-25  Tom Tromey  <tromey@redhat.com>
2264
2265         * NEWS: Mention maint info bfds.
2266         * gdb_bfd.c (all_bfds): New global.
2267         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2268         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2269         New functions.
2270
2271 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2272
2273         * configure.tgt: Add v850*-*-rtems*.
2274
2275 2012-07-25  Tom Tromey  <tromey@redhat.com>
2276
2277         * macrotab.c (macro_bcache_str): Remove cast.
2278
2279 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2280
2281         * linespec.c (linespec_lexer_lex_number): Update comments,
2282         change the return and add check to make sure the input is
2283         the decimal numbers.
2284         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2285         false, call linespec_lexer_lex_string.
2286
2287 2012-07-24  Tom Tromey  <tromey@redhat.com>
2288
2289         * symfile.c (symbol_file_add): Don't open BFD twice.
2290
2291 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2292
2293         * breakpoint.c (create_breakpoint): Store condition for pending
2294         breakpoints.
2295
2296 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2297
2298         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2299         (m68k_return_value): Handle complex types like structures.
2300         (m68k_svr4_return_value): Likewise.
2301
2302 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2303
2304         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2305         parameters to bfd_get_section_name.
2306
2307 2012-07-24  Yao Qi  <yao@codesourcery.com>
2308
2309         * cli/cli-setshow.c: Handle case 'var_uinteger'
2310         and 'var_zuninteger' together.  Handle case 'var_integer' and
2311         'var_zinteger' together.
2312
2313 2012-07-23  Keith Seitz  <keiths@redhat.com>
2314
2315         * linespec.c (convert_linespec_to_sal): Don't add
2316         any symbols to the result vector if symbol_to_sal
2317         returns zero.
2318
2319 2012-07-23  Keith Seitz  <keiths@redhat.com>
2320
2321         * linespec.c (decode_objc): Record the function name
2322         in the linespec.
2323
2324 2012-07-23  Tom Tromey  <tromey@redhat.com>
2325
2326         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2327         counting.
2328         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2329         (map_vmap): Acquire a reference to the BFD.
2330
2331 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2332
2333         * p-valprint.c (pascal_object_print_value): Replace potentially
2334         unsafe alloca with xmalloc/xfree.
2335         * valops.c (search_struct_method): Likewise.
2336
2337 2012-07-23  Tom Tromey  <tromey@redhat.com>
2338
2339         * solib-svr4.c (enable_break): Update.
2340         * bfd-target.h (target_bfd_reopen): Update documentation.
2341
2342 2012-07-23  Tom Tromey  <tromey@redhat.com>
2343
2344         * symfile.c (separate_debug_file_exists): Update.
2345         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2346         (reread_symbols): Update.
2347         * elfread.c (build_id_verify): Update.
2348         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2349         bfd_open_maybe_remote.
2350
2351 2012-07-23  Tom Tromey  <tromey@redhat.com>
2352
2353         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2354
2355 2012-07-23  Tom Tromey  <tromey@redhat.com>
2356
2357         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2358         and 'abfd'.
2359         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2360         and 'abfd'.
2361         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2362         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2363         'abfd'.
2364         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2365         * objfiles.c (allocate_objfile): Acquire a new reference.
2366         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2367         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2368         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2369         a cleanup for 'nbfd'.
2370         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2371         for 'nbfd'.
2372         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2373         make a cleanup for 'abfd'.
2374         (symbol_file_add): Make a BFD cleanup.
2375
2376 2012-07-23  Tom Tromey  <tromey@redhat.com>
2377
2378         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2379         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2380         * corelow.c (core_open): Use gdb_bfd_fopen.
2381         * dsrec.c (load_srec): Use gdb_bfd_openr.
2382         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2383         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2384         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2385         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2386         (gdb_bfd_fdopenr): New functions.
2387         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2388         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2389         (gdb_bfd_fdopenr): Declare.
2390         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2391         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2392         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2393         gdb_bfd_openr_next_archived_file.
2394         (macho_check_dsym): Use gdb_bfd_openr.
2395         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2396         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2397         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2398         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2399         gdb_bfd_openr.
2400         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2401         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2402         gdb_bfd_openr_next_archived_file.
2403         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2404         Use gdb_bfd_openr.
2405         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2406         gdb_bfd_openr.
2407         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2408         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2409         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2410         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2411         (symfile_bfd_open): Use gdb_bfd_fopen.
2412         (generic_load): Use gdb_bfd_openr.
2413         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2414
2415 2012-07-23  Tom Tromey  <tromey@redhat.com>
2416
2417         * bfd-target.c (target_bfd_reopen): Update.
2418         * cli/cli-dump.c (bfd_openr_with_cleanup)
2419         (bfd_openw_with_cleanup): Update.
2420         * corelow.c (core_open): Update.
2421         * dsrec.c (load_srec): Update.
2422         * exec.c (exec_file_attach): Update.
2423         * gcore.c (create_gcore_bfd): Update.
2424         * gdb_bfd.c (gdb_bfd_ref): Return void.
2425         (gdb_bfd_open): Update.
2426         * gdb_bfd.h (gdb_bfd_ref): Return void.
2427         Update comments.
2428         * jit.c (jit_bfd_try_read_symtab): Update.
2429         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2430         * machoread.c (macho_symfile_read_all_oso): Update.
2431         (macho_check_dsym): Update.
2432         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2433         * remote-m32r-sdi.c (m32r_load): Update.
2434         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2435         * rs6000-nat.c (add_vmap): Update.
2436         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2437         Update.
2438         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2439         * solib-spu.c (spu_bfd_open): Update.
2440         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2441         * spu-linux-nat.c (spu_bfd_open): Update.
2442         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2443         (generic_load): Update.
2444         * windows-nat.c (windows_make_so): Update.
2445
2446 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2447
2448         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2449
2450 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2451
2452         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2453         SIGTRAMP_FRAME unwinding.
2454
2455 2012-07-20  Doug Evans  <dje@google.com>
2456
2457         * NEWS: Document new options "set/show use-deprecated-index-sections",
2458         and delete reference to --use-deprecated-index-sections.
2459         * symfile.h (use_deprecated_index_sections): Delete.
2460         * dwarf2read.c (use_deprecated_index_sections): Make static.
2461         (read_index_from_section): Update wording of how to load
2462         deprecated index sections.
2463         (_initialize_dwarf2_read): New options
2464         "set/show use-deprecated-index-sections".
2465         * main.c (captured_main): Delete --use-deprecated-index-sections.
2466
2467 2012-07-20  Pedro Alves  <palves@redhat.com>
2468
2469         PR threads/11692
2470         PR gdb/12203
2471
2472         * infrun.c (handle_inferior_event) <new thread>: Don't special
2473         case minus_one_ptid.
2474         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2475         * linux-thread-db.c (thread_get_info_callback): Don't return early
2476         if the thread is zombie.
2477         (thread_from_lwp): Change return type to void.  Rewrite stale
2478         comment.
2479         (attach_thread): Don't return early if the thread is zombie,
2480         instead set its "dying" flag.
2481         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2482         (find_new_threads_callback): Don't return early if the thread is
2483         zombie.
2484
2485 2012-07-20  Pedro Alves  <palves@redhat.com>
2486
2487         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2488         * target.c (target_wait): Likewise.
2489         (str_comma_list_concat_elem, do_option, target_options_to_string):
2490         New functions.
2491         * target.h (target_options_to_string): Declare.
2492
2493 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2494             Tom Tromey  <tromey@redhat.com>
2495
2496         * dwarf2read.c (dwarf_decode_macros)
2497         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2498         DW_MACRO_GNU_transparent_include_alt>: New cases.
2499         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2500         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2501
2502 2012-07-20  Tom Tromey  <tromey@redhat.com>
2503
2504         * dwarf2read.c (try_open_dwo_file): Don't call
2505         gdb_bfd_stash_filename.
2506
2507 2012-07-20  Pedro Alves  <palves@redhat.com>
2508
2509         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2510         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2511         (i386_process_record): Tweak description comments.
2512
2513 2012-07-20  Pedro Alves  <palves@redhat.com>
2514
2515         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2516         (i386_process_record): Use record_read_memory.
2517         * record.c (record_read_memory): New function.
2518         (record_arch_list_add_mem, record_exec_insn): Use
2519         record_read_memory.
2520         * record.h (record_read_memory): Declare.
2521
2522 2012-07-20  Yao Qi  <yao@codesourcery.com>
2523
2524         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2525         NULL for xfree.
2526
2527 2012-07-19  Pedro Alves  <palves@redhat.com>
2528
2529         * record.c (record_resume): Ask the target beneath to report all
2530         signals.
2531
2532 2012-07-19  Doug Evans  <dje@google.com>
2533
2534         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2535         there's no section at address zero.
2536         (dwarf2_record_block_ranges): Ditto.
2537
2538 2012-07-19  Yao Qi  <yao@codesourcery.com>
2539
2540         * command.h, remote.c: Fix a typo in comment.
2541
2542 2012-07-19  Tom Tromey  <tromey@redhat.com>
2543
2544         PR exp/13206:
2545         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2546         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2547         OP_DECLTYPE>: New cases.
2548         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2549         (type_exp): Add new productions.
2550         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2551         and decltype.
2552         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2553         New case.
2554         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2555         OP_DECLTYPE>: New case.
2556         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2557         New case.
2558         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2559         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2560
2561 2012-07-19  Tom Tromey  <tromey@redhat.com>
2562
2563         * c-exp.y (enum token_flags): New.
2564         (struct token) <cxx_only>: Remove.
2565         <flags>: New field.
2566         (tokentab3, tokentab2, ident_tokens): Update.
2567         (lex_one_token): Update.  Handle FLAG_SHADOW.
2568
2569 2012-07-19  Tom Tromey  <tromey@redhat.com>
2570
2571         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2572         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2573         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2574         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2575         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2576         type_exp production where appropriate.
2577         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2578         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2579         <UNOP_MEMVAL_TYPE>: New case.
2580         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2581         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2582         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2583         <UNOP_MEMVAL_TYPE>: New case.
2584         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2585         UNOP_REINTERPRET_CAST>: Update.
2586         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2587         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2588         UNOP_REINTERPRET_CAST>: Update.
2589         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2590         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2591         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2592         constants.
2593
2594 2012-07-19  Yao Qi  <yao@codesourcery.com>
2595             Jan Kratochvil <jan.kratochvil@redhat.com>
2596
2597         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2598         and case 'var_optional_filename' together.
2599         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2600         instead of add_setshow_optional_filename_cmd for setshow command
2601         'args'.  Set completer for 'set args'.
2602
2603 2012-07-18  Doug Evans  <dje@google.com>
2604
2605         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2606         * common/gdb_vecs.c: New file, contents from utils.c.
2607         * common/host-defs.h: New file, contents from defs.h.
2608         * utils.h: New file, contents from defs.h.
2609         * defs.h: Move all declarations of objects defined in utils.c
2610         to utils.h (except QUIT() and related).
2611         #include "utils.h", "host-defs.h".
2612         * probe.h (probe_p): Move here from gdb_vecs.h.
2613         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2614         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2615         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2616         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2617         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2618         (COMMON_OBS): Add gdb_vecs.o.
2619         (gdb_vecs.o): New rule.
2620
2621 2012-07-18  Keith Seitz  <keiths@redhat.com>
2622
2623         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2624         parameter.  If non-zero, use SYMNAME as the canonical name
2625         for the SaL.
2626         Update all callers.
2627         (convert_linespec_to_sals): Use add_sal_to_sals for
2628         expressions, too.
2629         (decode_line_full): No need to "fill in missing canonical names"
2630         anymore. Simply make cleanups for the allocated names.
2631
2632 2012-07-18  Keith Seitz  <keiths@redhat.com>
2633
2634         * linespec.c (struct linespec): Constify expression,
2635         source_filename, function_name, and label_name.
2636         (symbol_not_found_error): Make all parameters const.
2637         (linespec_parser_delete): No need to check for NULL
2638         when using xfree. Cast const char * to char * for xfree.
2639
2640 2012-07-18  Keith Seitz  <keiths@redhat.com>
2641
2642         * breakpoint.c (invalid_thread_id_error): New function.
2643         (find_condition_and_thread): Use invalid_thread_id_error.
2644         (watch_command_1): Likewise.
2645
2646 2012-07-18  Tom Tromey  <tromey@redhat.com>
2647
2648         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2649         * contrib/cc-with-tweaks.sh: New file.
2650
2651 2012-07-18  Tom Tromey  <tromey@redhat.com>
2652
2653         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2654         (locate_dwz_sections): Recognize .gdb_index.
2655         (create_cus_from_index_list): New function.
2656         (create_cus_from_index): Use it.  Handle .dwz data.
2657         (read_index_from_section): New function, extracted from
2658         dwarf2_read_index.
2659         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2660         if needed.
2661
2662 2012-07-18  Tom Tromey  <tromey@redhat.com>
2663
2664         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2665         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2666         <is_dwz>: New field.
2667         (struct dwz_file): New.
2668         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2669         (locate_dwz_sections, dwarf2_get_dwz_file)
2670         (get_abbrev_section_for_cu): New functions.
2671         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2672         (read_and_check_type_unit_head): Add abbrev_section argument.
2673         (create_debug_types_hash_table): Update.
2674         (init_cutu_and_read_dies): Use proper abbrev section.
2675         (init_cutu_and_read_dies_no_follow): Likewise.
2676         (set_partial_user): Do nothing if PST==NULL.
2677         (read_comp_units_from_section): New function.
2678         (create_all_comp_units): Use it.
2679         (scan_partial_symbols, partial_die_parent_scope): Update.
2680         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2681         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2682         (find_partial_die): Add offset_in_dwz argument.  Update.
2683         (guess_partial_die_structure_name, fixup_partial_die): Update.
2684         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2685         DW_FORM_GNU_strp_alt.
2686         (read_indirect_string_from_dwz): New function.
2687         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2688         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2689         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2690         (follow_die_offset): Add offset_in_dwz argument.
2691         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2692         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2693         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2694         Handle new macro forms.
2695         (dwarf_decode_macros): Update.
2696         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2697         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2698         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2699         (create_debug_types_hash_table): Use correct abbrev section.
2700         (get_debug_line_section): New function.
2701         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2702         (process_full_comp_unit): Pass 'required' argument to
2703         end_symtab_get_static_block.
2704         * buildsym.h (end_symtab_get_static_block): Update.
2705         * buildsym.c (end_symtab_get_static_block): Add 'required'
2706         argument.
2707         (end_symtab, end_expandable_symtab): Update.
2708
2709 2012-07-18  Tom Tromey  <tromey@redhat.com>
2710
2711         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2712         (pagesize): Remove.
2713         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2714         (zlib_decompress_section): Remove.
2715         (dwarf2_read_section): Use gdb_bfd_map_section.
2716         (munmap_section_buffer): Remove.
2717         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2718         munmap_section_buffer.
2719         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2720         (struct gdb_bfd_section_data): New.
2721         (free_one_bfd_section): New function.
2722         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2723         (get_section_descriptor, zlib_decompress_section)
2724         (gdb_bfd_map_section): New functions.
2725         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2726
2727 2012-07-18  Tom Tromey  <tromey@redhat.com>
2728
2729         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2730
2731 2012-07-18  Tom Tromey  <tromey@redhat.com>
2732
2733         * gdb_bfd.c (struct gdb_bfd_data): New.
2734         (gdb_bfd_cache): New global.
2735         (struct gdb_bfd_cache_search): New.
2736         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2737         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2738         * gdb_bfd.h (gdb_bfd_open): Declare.
2739
2740 2012-07-18  Tom Tromey  <tromey@redhat.com>
2741
2742         * utils.c (make_cleanup_bfd_unref): Rename from
2743         make_cleanup_bfd_close.
2744         * defs.h (make_cleanup_bfd_unref): Rename from
2745         make_cleanup_bfd_close.
2746         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2747         (bfd_openw_with_cleanup): Update.
2748         * corelow.c (core_open): Update.
2749         * dsrec.c (load_srec): Update.
2750         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2751         * remote-m32r-sdi.c (m32r_load): Update.
2752         * remote-mips.c (mips_load_srec): Update.
2753         (pmon_load_fast): Update.
2754         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2755         Update.
2756         (darwin_bfd_open): Update.
2757         * solib.c (solib_bfd_fopen): Update.
2758         * symfile-mem.c (symbol_file_add_from_memory): Update.
2759         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2760         (symfile_bfd_open): Update.
2761         (generic_load): Update.
2762
2763 2012-07-18  Tom Tromey  <tromey@redhat.com>
2764
2765         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2766         (pmon_load_fast): Likewise.
2767         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2768         (m32r_upload_command): Likewise.
2769         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2770         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2771         Use make_cleanup_bfd_close.
2772
2773 2012-07-18  Tom Tromey  <tromey@redhat.com>
2774
2775         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2776         gdb_bfd_stash_filename.
2777         (load_command): Open the new BFD before freeing the old.
2778         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2779         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2780         Call gdb_bfd_stash_filename.
2781         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2782         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2783         gdb_bfd_stash_filename.
2784         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2785         Free found_pathname.
2786         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2787         gdb_bfd_stash_filename.
2788         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2789         * machoread.c (macho_add_oso_symfile): Call
2790         gdb_bfd_stash_filename.
2791         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2792         gdb_bfd_stash_filename.
2793         (macho_check_dsym): Don't copy filename.  Call
2794         gdb_bfd_stash_filename.
2795         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2796         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2797         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2798         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2799         * exec.c (exec_close): Don't free the BFD's filename.
2800         (exec_file_attach): Don't copy the filename.  Call
2801         gdb_bfd_stash_filename.
2802         * corelow.c (core_close): Don't free the BFD's filename.
2803         (core_open): Call gdb_bfd_stash_filename.
2804         * corefile.c (reopen_exec_file): Remove #if 0 code.
2805         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2806         pathname.
2807         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2808
2809 2012-07-18  Tom Tromey  <tromey@redhat.com>
2810
2811         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2812         gdb_bfd_unref.
2813         (free_dwo_file): Use gdb_bfd_unref.
2814         * cli/cli-dump.c: Include gdb_bfd.h.
2815         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2816         (bfd_openr_with_cleanup): Likewise.
2817         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2818         gdb_bfd_unref.
2819         * utils.c: Include gdb_bfd.h.
2820         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2821         * symfile.c: Include gdb_bfd.h.
2822         (separate_debug_file_exists): Use gdb_bfd_unref.
2823         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2824         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2825         (generic_load): Use gdb_bfd_ref.
2826         (reread_symbols): Use gdb_bfd_unref.
2827         * symfile-mem.c: Include gdb_bfd.h.
2828         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2829         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2830         * solib.c: Include gdb_bfd.h.
2831         (solib_bfd_fopen): Use gdb_bfd_ref.
2832         (solib_bfd_open): Use gdb_bfd_unref.
2833         (free_so_symbols): Use gdb_bfd_unref.
2834         (reload_shared_libraries_1): Use gdb_bfd_unref.
2835         * solib-spu.c: Include gdb_bfd.h.
2836         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2837         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2838         gdb_bfd_unref.
2839         * solib-frv.c: Include gdb_bfd.h.
2840         (enable_break2): Use gdb_bfd_unref.
2841         * solib-dsbt.c: Include gdb_bfd.h.
2842         (enable_break2): Use gdb_bfd_unref.
2843         * solib-darwin.c: Include gdb_bfd.h.
2844         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2845         gdb_bfd_unref.
2846         (darwin_bfd_open): Use gdb_bfd_unref.
2847         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2848         * remote-mips.c: Include gdb_bfd.h.
2849         (mips_load_srec): Use gdb_bfd_ref.
2850         (pmon_load_fast): Use gdb_bfd_ref.
2851         * remote-m32r-sdi.c: Include gdb_bfd.h.
2852         (m32r_load): Use gdb_bfd_ref.
2853         * record.c: Include gdb_bfd.h.
2854         (record_save_cleanups): Use gdb_bfd_unref.
2855         (cmd_record_save): Use gdb_bfd_unref.
2856         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2857         gdb_bfd_unref.
2858         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2859         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2860         * objfiles.c: Include gdb_bfd.h.
2861         (free_objfile): Use gdb_bfd_unref.
2862         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2863         gdb_bfd.c.
2864         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2865         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2866         (macho_check_dsym): Likewise.
2867         * m32r-rom.c: Include gdb_bfd.h.
2868         (m32r_load): Use gdb_bfd_ref.
2869         (m32r_upload_command): Use gdb_bfd_ref.
2870         * jit.c: Include gdb_bfd.h.
2871         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2872         * gdb_bfd.h: New file.
2873         * gdb_bfd.c: New file.
2874         * gcore.c: Include gdb_bfd.h.
2875         (create_gcore_bfd): Use gdb_bfd_ref.
2876         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2877         (gcore_command): Use gdb_bfd_unref.
2878         * exec.c: Include gdb_bfd.h.
2879         (exec_close): Use gdb_bfd_unref.
2880         (exec_close_1): Use gdb_bfd_unref.
2881         (exec_file_attach): Use gdb_bfd_ref.
2882         * elfread.c: Include gdb_bfd.h.
2883         (build_id_verify): Use gdb_bfd_unref.
2884         * dsrec.c: Include gdb_bfd.h.
2885         (load_srec): Use gdb_bfd_ref.
2886         * corelow.c: Include gdb_bfd.h.
2887         (core_close): Use gdb_bfd_unref.
2888         (core_open): Use gdb_bfd_ref.
2889         * bfd-target.c: Include gdb_bfd.h.
2890         (target_bfd_xclose): Use gdb_bfd_unref.
2891         (target_bfd_reopen): Use gdb_bfd_ref.
2892         * Makefile.in (SFILES): Add gdb_bfd.c.
2893         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2894         (COMMON_OBS): Add gdb_bfd.o.
2895
2896 2012-07-18  Keith Seitz  <keiths@redhat.com>
2897
2898         * breakpoint.c (find_condition_and_thread): Initialize
2899         TASK and REST.
2900         (create_breakpiont): find_condition_and_thread will now
2901         initialize COND_STRING, THREAD, and REST (and TASK).
2902         (addr_string_to_sals): Likewise.
2903
2904 2012-07-18  Pedro Alves  <palves@redhat.com>
2905
2906         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2907         Pull the single step breakpoints out of the target.
2908
2909 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2910
2911         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2912         * stap-probe.c (compile_probe_arg): Likewise.
2913
2914 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2915
2916         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2917         (elf_compile_to_ax): Likewise.
2918         * infrun.c (insert_exception_resume_from_probe): Likewise.
2919         (check_exception_resume): Remove `objfile' variable.
2920         * probe.c (find_probe_by_pc): Remove `objfile' argument.
2921         (struct probe_and_objfile, probe_and_objfile_s): Delete.
2922         (collect_probes): Adjust return value to `VEC (probe_p) *'.
2923         (compare_entries): Rename to...
2924         (compare_probes): ...this.  Adjust function to work with
2925         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
2926         respectively.
2927         (gen_ui_out_table_header_info): Adjust `probes' argument to be
2928         `VEC (probe_p) *'.
2929         (print_ui_out_info): Adjust argument to be `struct probe *'.
2930         (info_probes_for_ops): Adjust internal computations to use
2931         `VEC (probe_p) *'.
2932         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2933         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2934         gen_info_probes_table_values>: Remove `objfile' argument.
2935         (struct probe) <objfile>: New field.
2936         (find_probe_by_pc): Remove `objfile' argument.
2937         * stap-probe.c (stap_parse_probe_arguments): Likewise.
2938         (stap_get_probe_argument_count): Likewise.
2939         (stap_get_arg): Likewise.
2940         (stap_evaluate_probe_argument): Likewise.
2941         (stap_compile_to_ax): Likewise.
2942         (compile_probe_arg): Refactor not to pass `objfile' anymore.
2943         (handle_stap_probe): Fill `objfile' field from `struct probe'.
2944         (stap_gen_info_probes_table_header): Remove `objfile' argument.
2945         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2946         sym_compile_to_ax>: Likewise.
2947
2948 2012-07-18  Terry Guo  <terry.guo@arm.com>
2949
2950         PR 14329
2951         * defs.h (GDB_MI_MSG_WIDTH): New.
2952         * ser_base (ser_base_read_error_fd): New function.
2953         (do_ser_base_readchar): Poll error file descriptor as well as
2954         standard output.
2955         (generic_readchar): Refactor error handling.
2956
2957 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2958
2959         * NEWS: Create a new section for the next release branch.
2960         Rename the section of the current branch, now that it has
2961         been cut.
2962
2963 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
2964
2965         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2966         * version.in: Bump version to 7.5.50.20120718-cvs.
2967
2968 2012-07-17  Keith Seitz  <keiths@redhat.com>
2969
2970         * linespec.c (linespec_parse_line_offset): Make parameter
2971         const.
2972
2973 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2974
2975         PR 11914
2976         * f-valprint.c (info_common_command): New variable frame_id.
2977         Reinitialize FI form FRAME_ID after each print_variable_and_value.
2978         * printcmd.c (print_variable_and_value): Extend function comment.
2979         Add comment for invalidated FRAME.
2980         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
2981         FI form FRAME_ID after each print_frame_local_vars.
2982         (struct print_variable_and_value_data): Change frame to frame_id.
2983         (do_print_variable_and_value): New variable frame, initialize it from
2984         p->frame_id.  Add comment for invalidated FRAME.
2985         (print_frame_local_vars, print_frame_arg_vars): New function comment.
2986         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
2987         for invalidated FRAME.
2988
2989 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
2990             Pedro Alves  <palves@redhat.com>
2991
2992         * linux-nat.c (linux_nat_detach): Don't unregister from the event
2993         loop.
2994
2995 2012-07-16  Tom Tromey  <tromey@redhat.com>
2996
2997         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2998
2999 2012-07-15  Doug Evans  <dje@google.com>
3000
3001         * dwarf2read.c (stmt_list_hash): New struct.
3002         (type_unit_group): Embed "per_cu" member, remove pointer.
3003         New union member "t", move member "tus" into it, all uses updated.
3004         New member "hash", replaces member "line_offset, all uses updated.
3005         (quick_file_names): Replace member "offset" with "hash", all uses
3006         updated.
3007         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3008         (hash_file_name_entry, eq_file_name_entry): Call them.
3009         (hash_type_unit_group, eq_type_unit_group): Ditto.
3010         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3011         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3012         (dw2_get_file_names): Update.
3013         (create_type_unit_group): Replace "per_cu" arg with "cu".
3014         All callers updated.  Fix "quick" (.gdb_index) handling.
3015         (get_type_unit_group): Replace "per_cu" arg with "cu".
3016         All callers updated.
3017         (build_type_unit_groups): Don't reset tu_stats.
3018
3019         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3020         "tab_cur_size".  Change member "tab" to be a htab_t.
3021         (create_filename_seen_cache): Update.
3022         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3023         (filename_seen): Update.
3024
3025 2012-07-13  Doug Evans  <dje@google.com>
3026
3027         * symtab.c (filename_seen): Update comment.
3028
3029 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3030             Doug Evans  <dje@google.com>
3031
3032         * buildsym.c (end_symtab_1): Split it to ...
3033         (end_symtab_get_static_block): ... this ...
3034         (end_symtab_from_static_block): ... and this function.
3035         (end_symtab, end_expandable_symtab): Call them.
3036         * buildsym.h (end_symtab_get_static_block)
3037         (end_symtab_from_static_block): New declarations.
3038         * dwarf2read.c (process_full_comp_unit): New variable static_block.
3039         Set its valid CU ranges.
3040
3041 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3042
3043         * dwarf2loc.c (disassemble_dwarf_expression): Handle
3044         DW_OP_GNU_parameter_ref.
3045
3046 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3047
3048         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3049         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3050
3051 2012-07-13  Doug Evans  <dje@google.com>
3052
3053         * symtab.c (output_source_filename): Delete unnecessary forward decl.
3054         (filename_seen_cache): New struct.
3055         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3056         (create_filename_seen_cache): New function.
3057         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3058         (filename_seen): Delete arg "first".  New arg "cache".  All callers
3059         updated.
3060         (output_source_filename_data): New struct.
3061         (output_source_filename): Delete arg "first".  New arg "data".
3062         All callers updated.
3063         (sources_info): Delete local "first".  New locals "data", "cleanups".
3064         Rewrite to use filename_seen_cache.
3065         (add_partial_filename_data): Delete member "first".  New member
3066         "filename_seen_cache".  All uses updated.
3067         (make_source_files_completion_list): Rewrite to use
3068         filename_seen_cache.
3069
3070 2012-07-12  Doug Evans  <dje@google.com>
3071
3072         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3073
3074 2012-07-10  Doug Evans  <dje@google.com>
3075
3076         PR gdb/13498
3077         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3078         all_type_unit_groups, type_unit_groups, tu_stats.
3079         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3080         All uses updated.  Add type_unit_group to union "s".
3081         (type_unit_group): New struct.
3082         (IS_TYPE_UNIT_GROUP): New macro.
3083         (abbrev_table): Delete unused member "section".
3084         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3085         (dw2_get_cu): Assert not used with type_unit_group.
3086         (dw2_get_primary_cu): New function.
3087         (dw2_build_type_unit_groups_reader): New function.
3088         (dw2_build_type_unit_groups): New function.
3089         (dw2_get_file_names): Assert not called on type units.
3090         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3091         Redo loop to iterate over type unit groups instead of type units.
3092         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3093         (read_abbrev_offset): New function.
3094         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3095         updated.
3096         (create_partial_symtab): New function.
3097         (process_psymtab_comp_unit_reader): Assert not used with type units.
3098         Call create_partial_symtab.
3099         (process_psymtab_type_unit): Delete.
3100         (hash_type_unit_group, eq_type_unit_group): New functions.
3101         (allocate_type_unit_groups_table): New function.
3102         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3103         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3104         (create_type_unit_group, get_type_unit_group): New functions.
3105         (tu_abbrev_offset): New struct.
3106         (sort_tu_by_abbrev_offset): New function.
3107         (add_type_unit_group_to_table): New function.
3108         (build_type_unit_groups): New function.
3109         (build_type_psymtabs_reader): New function.
3110         (build_type_psymtab_dependencies): New function.
3111         (build_type_psymtabs): Rewrite.
3112         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3113         is seen in a type unit.
3114         (process_queue): Move symtab expansion debugging printfs here.
3115         Call process_full_type_unit for type units.
3116         (compute_symtab_includes): Assert not called for type units.
3117         (process_cu_includes): Don't call compute_symtab_includes for
3118         type units.
3119         (process_full_type_unit): New function.
3120         (process_imported_unit_die): Flag an error if called for type units.
3121         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3122         updated.  Assert not called for type units.
3123         (read_file_scope): Call dwarf2_start_symtab.
3124         (setup_type_unit_groups): New function.
3125         (read_type_unit_scope): Rewrite.
3126         (abbrev_table_read_table): Initialize abbrev_table->offset.
3127         (abbrev_table_free_cleanup): New function.
3128         (dwarf2_start_symtab): New function.
3129         (load_full_type_unit): Assert not called for type unit groups.
3130         * buildsym.c (finish_block_internal): New arg "expandable".
3131         All callers updated.
3132         (start_symtab): Move most contents to ...
3133         (restart_symtab): ... here.  New function.
3134         (reset_symtab_globals): New function.
3135         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3136         Call reset_symtab_globals.
3137         (end_symtab, end_expandable_symtab): New functions.
3138         (set_missing_symtab, augment_type_symtab): New functions.
3139         * buildsym.h (end_expandable_symtab): Declare.
3140         (augment_type_symtab, restart_symtab): Declare.
3141         * psympriv.h (struct partial_symtab): New member "anonymous".
3142         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3143         anonymous psymtabs.
3144         (read_psymtabs_with_filename): Ditto.
3145         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3146         (expand_symtabs_matching_via_partial): Ditto.
3147         (dump_psymtab): Update.
3148         * dictionary.c (dict_add_pending): New function.
3149         * dictionary.h (dict_add_pending): Declare.
3150
3151 2012-07-09  Doug Evans  <dje@google.com>
3152
3153         * buildsym.c (start_subfile): Remove unnecessary check for
3154         name == NULL.
3155
3156         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3157
3158         * dwarf2read.c (load_full_type_unit): Simplify.
3159
3160         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3161         to struct signatured_type **.  All uses updated.
3162
3163         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3164         All callers updated.
3165
3166 2012-07-09  Tom Tromey  <tromey@redhat.com>
3167
3168         * c-exp.y (check_parameter_typelist): New function.
3169         (parameter_typelist): Call it.
3170         * eval.c (make_params): Handle '(void)' case.
3171         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3172         '(void)' case.
3173
3174 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3175
3176         * common/linux-ptrace.c: Include gdb_assert.h.
3177         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3178         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3179         stdint.h.
3180         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3181         functions.
3182         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3183         * linux-nat.c (linux_child_post_attach)
3184         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3185
3186 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3187
3188         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3189         nptl <2.7 bug workaround for core files.
3190
3191 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3192
3193         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3194         clearing.
3195         (save_siginfo): Remove.
3196         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3197         call.
3198         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3199         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3200         * linux-nat.h (struct lwp_info): Remove field siginfo.
3201
3202 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3203
3204         Code cleanup for the next patch.
3205         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3206         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3207         call for it.
3208         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3209         (ia64_linux_stopped_data_address):
3210         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3211         the return value.
3212         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3213         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3214         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3215         call for it.
3216
3217 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3218
3219         PR 14321
3220         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3221         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3222
3223 2012-07-06  Tom Tromey  <tromey@redhat.com>
3224
3225         * c-exp.y (DOTDOTDOT): New token.
3226         (func_mod, exp): Use parameter_typelist.
3227         (parameter_typelist): New production.
3228         (tokentab3): Add "..." token.
3229         * eval.c (make_params): Handle varargs.
3230         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3231         varargs.
3232
3233 2012-07-06  Tom Tromey  <tromey@redhat.com>
3234
3235         PR exp/9608:
3236         * c-exp.y (%union) <tvec>: Change type.
3237         (func_mod): Now uses <tvec> type.
3238         (exp): Update for tvec change.
3239         (direct_abs_decl): Push the typelist.
3240         (func_mod): Return a typelist.
3241         (nonempty_typelist): Update for tvec change.
3242         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3243         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3244         * parse.c (pop_type_list): New function.
3245         (push_typelist): New function.
3246         (follow_types): Handle tp_function_with_arguments.
3247         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3248         (enum type_pieces) <tp_function_with_arguments>: New constant.
3249         (union type_stack_elt) <typelist_val>: New field.
3250         (push_typelist): Declare.
3251
3252 2012-07-06  Tom Tromey  <tromey@redhat.com>
3253
3254         * c-exp.y (%union) <type_stack>: New field.
3255         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3256         (ptr_operator_ts): New production.
3257         (ptype): Update.
3258         * parse.c (type_stack_reserve): New function.
3259         (check_type_stack_depth): Use it.
3260         (pop_type_stack, append_type_stack, push_type_stack)
3261         (get_type_stack, type_stack_cleanup): New functions.
3262         (follow_types): Handle tp_type_stack.
3263         (_initialize_parse): Simplify initialization.
3264         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3265         constant.
3266         (union type_stack_elt) <stack_val>: New field.
3267         (get_type_stack, append_type_stack, push_type_stack)
3268         (type_stack_cleanup): Declare.
3269
3270 2012-07-06  Tom Tromey  <tromey@redhat.com>
3271
3272         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3273         Remove.
3274         (struct type_stack): New.
3275         * parse.c (type_stack, type_stack_size, type_stack_depth):
3276         Remove.
3277         (type_stack): New global.
3278         (parse_exp_in_context, check_type_stack_depth)
3279         (insert_into_type_stack, insert_type, push_type, push_type_int)
3280         (insert_type_address_space, pop_type, pop_type_int)
3281         (_initialize_parse): Update.
3282
3283 2012-07-06  Tom Tromey  <tromey@redhat.com>
3284
3285         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3286         Remove %type.
3287
3288 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3289
3290         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3291
3292 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3293             Jan Kratochvil  <jan.kratochvil@redhat.com>
3294
3295         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3296         alloca with xmalloc/xfree.
3297
3298 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3299
3300         * MAINTAINERS (Write After Approval): Add myself to the list.
3301
3302 2012-07-05  Doug Evans  <dje@google.com>
3303
3304         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3305
3306 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3307
3308         * ax-gdb.c (cli/cli-utils.h): New include.
3309         (linespec.h): Ditto.
3310         (agent_eval_command_one): New function.
3311         (agent_command_1): Ditto.
3312         (agent_command): Call function agent_command_1.
3313         (agent_eval_command): Ditto.
3314         (_initialize_ax_gdb): Change help for "maint agent"
3315         and "maint agent-eval".
3316
3317 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3318
3319         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3320         * cli/cli-utils.c (check_for_argument): New function.
3321         * cli/cli-utils.h (check_for_argument): Ditto.
3322
3323 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3324
3325         * NEWS: Mention x32 ABI support.
3326
3327 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3328
3329         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3330         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3331
3332         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3333         and pc_regnum_from_eax to -1.  Update SP regnum from
3334         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3335         needed.
3336
3337         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3338         pc_regnum_from_eax.
3339
3340 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3341
3342         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3343         * dwarf2expr.h: Include gdbtypes.h.
3344         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3345         these forward declarations.
3346         (cu_offset, sect_offset): Move these ...
3347         * gdbtypes.h: Remove include dwarf2expr.h.
3348         (cu_offset, sect_offset): ... here.
3349
3350 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3351
3352         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3353         (amd64_linux_sigtramp_code): This.
3354         (amd64_x32_linux_sigtramp_code): New.
3355         (LINUX_SIGTRAMP_LEN): Updated.
3356         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3357
3358 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3359
3360         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3361
3362 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3363
3364         * config.in: Regenerate.
3365         * configure: Regenerate.
3366         * configure.ac: Remove check for gnu/libc-version.h.
3367         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3368         gnu/libc-version.h.
3369         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3370         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3371         inferior_has_bug.  Extend the comment.
3372
3373 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3374
3375         * linux-thread-db.c (inferior_has_bug): New function.
3376         (thread_db_find_new_threads_silently): Return boolean as checked by
3377         inferior_has_bug, describe it in the comments.
3378         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3379         earlier.  Abort the initialization if it returned non-zero.
3380         (thread_db_new_objfile): Exclude debug files.
3381         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3382         if UNTIL_NO_NEW,
3383
3384 2012-07-02  Doug Evans  <dje@google.com>
3385
3386         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3387         related to queue management.
3388
3389         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3390         instead of "debug dwarf2-die" in debugging printfs.
3391         (create_debug_info_hash_table_reader): Ditto.
3392         (create_debug_info_hash_table): Ditto.
3393         (init_dwo_file): Ditto.
3394         (init_cutu_and_read_dies): Add debugging printf.
3395         (init_cutu_and_read_dies_no_follow): Ditto.
3396         (process_psymtab_comp_unit_reader): Ditto.
3397
3398 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3399
3400         Add target-side support for dynamic printf.
3401         * NEWS: Mention the additional style.
3402         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3403         (struct bp_location): New field cmd_bytecode.
3404         * breakpoint.c: Include format.h.
3405         (disconnected_dprintf): New global.
3406         (parse_cmd_to_aexpr): New function.
3407         (build_target_command_list): New function.
3408         (insert_bp_location): Call it.
3409         (remove_breakpoints_pid): Skip dprintf breakpoints.
3410         (print_one_breakpoint_location): Ditto.
3411         (dprintf_style_agent): New global.
3412         (dprintf_style_enums): Add dprintf_style_agent.
3413         (update_dprintf_command_list): Add agent case.
3414         (agent_printf_command): New function.
3415         (_initialize_breakpoint): Add new commands.
3416         * common/ax.def (printf): New bytecode.
3417         * ax.h (ax_string): Declare.
3418         * ax-gdb.h (gen_printf): Declare.
3419         * ax-gdb.c: Include cli-utils.h, format.h.
3420         (gen_printf): New function.
3421         (maint_agent_print_command): New function.
3422         (_initialize_ax_gdb): Add maint agent-printf command.
3423         * ax-general.c (ax_string): New function.
3424         (ax_print): Add printf disassembly.
3425         * Makefile.in (SFILES): Add format.c
3426         (COMMON_OBS): Add format.o.
3427         * common/format.h: New file.
3428         * common/format.c: New file.
3429         * printcmd.c: Include format.h.
3430         (ui_printf): Call parse_format_string.
3431         * remote.c (remote_state): New field breakpoint_commands.
3432         (PACKET_BreakpointCommands): New enum.
3433         (remote_breakpoint_commands_feature): New function.
3434         (remote_protocol_features): Add new BreakpointCommands entry.
3435         (remote_can_run_breakpoint_commands): New function.
3436         (remote_add_target_side_commands): New function.
3437         (remote_insert_breakpoint): Call it.
3438         (remote_insert_hw_breakpoint): Ditto.
3439         (_initialize_remote): Add new packet configuration for
3440         target-side breakpoint commands.
3441         * target.h (struct target_ops): New field
3442         to_can_run_breakpoint_commands.
3443         (target_can_run_breakpoint_commands): New macro.
3444         * target.c (update_current_target): Handle
3445         to_can_run_breakpoint_commands.
3446
3447 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3448
3449         Execute -ix and -iex only after system and user gdbinit files.
3450         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3451         processing down after gdbinit files.
3452
3453 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3454
3455         Add fnmatch-gnu module.
3456         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3457         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3458         * gnulib/aclocal.m4: Regenerate.
3459         * gnulib/config.in: Regenerate.
3460         * gnulib/configure: Regenerate.
3461         * gnulib/import/dummy.c: Remove.
3462         * gnulib/import/Makefile.am: Regenerate.
3463         * gnulib/import/Makefile.in: Likewise.
3464         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3465         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3466         * gnulib/import/alloca.c: New file.
3467         * gnulib/import/alloca.in.h: Likewise.
3468         * gnulib/import/config.charset: Likewise.
3469         * gnulib/import/fnmatch.c: Likewise.
3470         * gnulib/import/fnmatch.in.h: Likewise.
3471         * gnulib/import/fnmatch_loop.c: Likewise.
3472         * gnulib/import/localcharset.c: Likewise.
3473         * gnulib/import/localcharset.h: Likewise.
3474         * gnulib/import/m4/alloca.m4: Likewise.
3475         * gnulib/import/m4/codeset.m4: Likewise.
3476         * gnulib/import/m4/configmake.m4: Likewise.
3477         * gnulib/import/m4/fcntl-o.m4: Likewise.
3478         * gnulib/import/m4/fnmatch.m4: Likewise.
3479         * gnulib/import/m4/glibc21.m4: Likewise.
3480         * gnulib/import/m4/localcharset.m4: Likewise.
3481         * gnulib/import/m4/locale-fr.m4: Likewise.
3482         * gnulib/import/m4/locale-ja.m4: Likewise.
3483         * gnulib/import/m4/locale-zh.m4: Likewise.
3484         * gnulib/import/m4/mbrtowc.m4: Likewise.
3485         * gnulib/import/m4/mbsinit.m4: Likewise.
3486         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3487         * gnulib/import/m4/mbstate_t.m4: Likewise.
3488         * gnulib/import/m4/stdbool.m4: Likewise.
3489         * gnulib/import/m4/wchar_h.m4: Likewise.
3490         * gnulib/import/m4/wctype_h.m4: Likewise.
3491         * gnulib/import/m4/wint_t.m4: Likewise.
3492         * gnulib/import/mbrtowc.c: Likewise.
3493         * gnulib/import/mbsinit.c: Likewise.
3494         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3495         * gnulib/import/mbsrtowcs-state.c: Likewise.
3496         * gnulib/import/mbsrtowcs.c: Likewise.
3497         * gnulib/import/ref-add.sin: Likewise.
3498         * gnulib/import/ref-del.sin: Likewise.
3499         * gnulib/import/stdbool.in.h: Likewise.
3500         * gnulib/import/streq.h: Likewise.
3501         * gnulib/import/strnlen1.c: Likewise.
3502         * gnulib/import/strnlen1.h: Likewise.
3503         * gnulib/import/verify.h: Likewise.
3504         * gnulib/import/wchar.in.h: Likewise.
3505         * gnulib/import/wctype.in.h: Likewise.
3506
3507 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3508
3509         Support shell wildcards for 'set auto-load safe-path'.
3510         * auto-load.c: Include fnmatch.h.
3511         (filename_is_in_dir): Rename to ...
3512         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3513         it.  Update function comment.  Rename dir_len to pattern_len.  New
3514         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3515         messages.  Use gdb_filename_fnmatch.
3516         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3517         pattern.
3518         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3519         * defs.h (gdb_filename_fnmatch): New declaration.
3520         * utils.c: Include fnmatch.h.
3521         (gdb_filename_fnmatch): New function.
3522
3523 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3524
3525         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3526         `-probe' and `-probe-stap' options.
3527
3528 2012-07-01  Yao Qi  <yao@codesourcery.com>
3529
3530         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3531         always_inserted_off, and always_inserted_enums.
3532         Change always_inserted_mode's type to 'enum auto_boolean'.
3533         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3534         callers.
3535         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3536         of add_setshow_enum_cmd.
3537         * infrun.c: Remove can_use_displaced_stepping_auto,
3538         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3539         can_use_displaced_stepping_enum.
3540         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3541         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3542         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3543         add_setshow_enum_cmd.
3544
3545 2012-06-30  Doug Evans  <dje@google.com>
3546
3547         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3548         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3549         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3550
3551 2012-06-29  Doug Evans  <dje@google.com>
3552
3553         * linespec.c: #include "stack.h".
3554         (decode_line_with_current_source): Moved here from symtab.c and
3555         renamed from decode_line_spec.  All callers updated.
3556         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3557         renamed from decode_line_spec_1.  All callers updated.
3558         * linespec.h (decode_line_with_current_source): Move declaration here
3559         from symtab.h and renamed from decode_line_spec.
3560         (decode_line_with_last_displayed): Move declaration here from symtab.h
3561         and renamed from decode_line_spec_1.
3562         * macrocmd.c: #include "linespec.h".
3563         * symtab.c: Remove #include "linespec.h".
3564
3565 2012-06-28  Doug Evans  <dje@google.com>
3566
3567         * dwarf2read.c (get_cu_length): New function.
3568         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3569         (create_debug_types_hash_table): Ditto.
3570         (init_cutu_and_read_dies): Ditto.
3571         (init_cutu_and_read_dies_no_follow): Ditto.
3572
3573         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3574
3575         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3576         (struct abbrev_table): Define.
3577         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3578         abbrev_table.
3579         (init_cutu_and_read_dies): Update.
3580         (abbrev_table_alloc_abbrev): New function.  Replaces
3581         dwarf_alloc_abbrev.  All callers updated.
3582         (abbrev_table_add_abbrev): New function.
3583         (abbrev_table_lookup_abbrev): New function.  Replaces
3584         dwarf2_lookup_abbrev.  All callers updated.
3585         (abbrev_table_read_table): New function.  Contents moved here from
3586         dwarf2_read_abbrevs.
3587         (dwarf2_read_abbrevs): Call it.
3588         (abbrev_table_free): New function.
3589         (dwarf2_free_abbrev_table): Call it.
3590
3591 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3592
3593         * osdata.c (info_osdata_command): Filter out "Title" columns
3594         from non-MI uses.
3595         * common/linux-osdata.c (struct osdata_type): Add title field.
3596         (osdata_table): Add titles to each entry.
3597         (linux_command_xfer_osdata): Add a column for title data.
3598
3599 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3600
3601         Make logging work for MI.
3602         * NEWS: Mention it.
3603         * interps.h (interp_set_logging_ftype): New typedef.
3604         (struct interp_procs): New field set_logging_proc.
3605         (current_interp_set_logging): Declare.
3606         * interps.c (current_interp_set_logging): New function.
3607         * cli/cli-logging.c: Include interps.h.
3608         (set_logging_redirect): Call current_interp_set_logging.
3609         (pop_output_files): Ditto.
3610         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3611         * mi/mi-console.h (mi_console_set_raw): Declare.
3612         * mi/mi-console.c (mi_console_set_raw): New function.
3613         * mi/mi-interp.c (saved_raw_stdout): New global.
3614         (mi_set_logging): New function.
3615         (_initialize_mi_interp): Add it to interp procs.
3616
3617 2012-06-28  Doug Evans  <dje@google.com>
3618
3619         * symtab.c (lookup_symbol_aux_objfile): Use
3620         ALL_OBJFILE_PRIMARY_SYMTABS.
3621
3622         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3623
3624 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3625
3626         * common/buffer.c: Include inttypes.h and stdint.h.
3627         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3628
3629 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3630             Pedro Alves  <palves@redhat.com>
3631
3632         * gdbthread.h (ALL_THREADS): New macro.
3633         (thread_list): Declare.
3634         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3635         going, but instead fall through to the stepping handling.
3636         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3637         the passed in signal.  Adjust debug output.
3638         (resume_callback): Rename to ...
3639         (linux_nat_resume_callback): ... this.  Pass the thread's last
3640         stop signal, if in "pass" state.
3641         (linux_nat_resume): Adjust to rename.
3642         (stop_wait_callback): New assertion.  Don't respawn signals;
3643         instead let the LWP remain with SIGNALLED set.
3644         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3645         * remote.c (append_pending_thread_resumptions): New.
3646         (remote_vcont_resume): Call it.
3647         * target.h (target_resume): Extend comment.
3648
3649 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3650
3651         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3652
3653 2012-06-27  Doug Evans  <dje@google.com>
3654
3655         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3656         Delete have_addr_base, unused.  All uses updated.
3657         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3658         (dwarf2_get_pc_bounds): Add ranges_base.
3659         (dwarf2_record_block_ranges): Ditto.
3660
3661 2012-06-27  Tom Tromey  <tromey@redhat.com>
3662
3663         PR macros/7961:
3664         * varobj.c (varobj_create): Update.
3665         (varobj_set_value): Update.
3666         * tracepoint.c (validate_actionline): Update.
3667         (encode_actions_1): Update.
3668         * parse.c (parse_exp_1): Add 'pc' argument.
3669         (parse_exp_in_context): Add 'pc' argument.  Change how
3670         expression_context_pc is set.
3671         (parse_expression): Update.
3672         (parse_field_expression): Update.
3673         * expression.h (parse_exp_1): Update.
3674         * eval.c (parse_to_comma_and_eval): Update.
3675         * breakpoint.c (set_breakpoint_condition): Update.
3676         (update_watchpoint): Update.
3677         (init_breakpoint_sal): Update
3678         (find_condition_and_thread): Update.
3679         (watch_command_1): Update.
3680         (update_breakpoint_locations): Update.
3681         * ada-lang.c (ada_read_renaming_var_value): Update.
3682         (create_excep_cond_exprs): Update.
3683
3684 2012-06-27  Doug Evans  <dje@google.com>
3685
3686         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3687         type units.
3688
3689 2012-06-26  Doug Evans  <dje@google.com>
3690
3691         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3692         prototype.
3693         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3694         updated.
3695         (read_and_check_comp_unit_head): Ditto.
3696         (read_and_check_type_unit_head): Ditto.
3697
3698 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3699
3700         New attribute 'last' for gdb.Symtab_and_line.
3701         * NEWS (Python Scripting): Add entry about the new attribute.
3702         * python/py-symtab.c (salpy_get_last): New function which
3703         implements the get method for the 'last' attribute of
3704         gdb.Symtab_and_line.
3705         (sal_object_getset): Add entry for the 'last' attribute.
3706
3707 2012-06-26  Doug Evans  <dje@google.com>
3708
3709         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3710         (dwo_sections): Add macinfo, macro.
3711         (dwarf2_locate_dwo_sections): Watch for macro sections.
3712         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3713         All callers updated.  Handle DWO files.
3714
3715         * NEWS: Mention new options "set debug dwarf2-read" and
3716         "set debug symtab-create".
3717         * dwarf2read.c (dwarf2_read_debug): New static global.
3718         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3719         (process_queue): Ditto.
3720         (process_full_comp_unit): Ditto.
3721         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3722         * elfread.c (elf_symfile_read): Add debugging printf.
3723         * minsyms.c (install_minimal_symbols): Ditto.
3724         * psymtab.c (allocate_psymtab): Ditto.
3725         * symfile.c (allocate_symtab): Ditto.
3726         * symtab.c (symtab_create_debug): New global.
3727         (_initialize_symtab): Add new option "set debug symtab-create".
3728         * symtab.h (symtab_create_debug): Declare.
3729
3730         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3731         (lookup_dwo_type_unit): Ditto.
3732
3733 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3734             H.J. Lu  <hongjiu.lu@intel.com>
3735
3736         * amd64-linux-nat.c: Include <sys/user.h>.
3737         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3738         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3739         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3740
3741         * configure.ac: Check if the fs_base and gs_base members of
3742         `struct user_regs_struct' exist.
3743         * config.in: Regenerated.
3744         * configure: Likewise.
3745
3746 2012-06-25  Michael Eager  <eager@eagercon.com>
3747
3748         PR python/14291
3749         * python/python.c (gdbpy_write): Check for interrupted output.
3750
3751 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3752
3753         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3754         register as a stack alignment in ARM mode.
3755
3756 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3757
3758         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3759         * gnulib/config.in: Regenerate.
3760         * gnulib/configure: Likewise.
3761         * gnulib/import/m4/extensions.m4: Update it.
3762         * gnulib/import/m4/gnulib-common.m4: Likewise.
3763         * gnulib/import/m4/memmem.m4: Likewise.
3764         * gnulib/import/m4/mmap-anon.m4: Likewise.
3765         * gnulib/import/m4/multiarch.m4: Likewise.
3766         * gnulib/import/stdint.in.h: Likewise.
3767
3768 2012-06-24  Yao Qi  <yao@codesourcery.com>
3769
3770         * corefile.c (write_memory_with_notification): New.
3771         * gdbcore.h: Declare write_memory_with_notification.
3772         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3773         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3774         * valops.c (value_assign): Likewise.
3775         * python/py-inferior.c (infpy_write_memory): Call
3776         'write_memory_with_notification'.
3777
3778 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3779
3780         * cc-with-index.sh: Use also -ex "set auto-load no".
3781
3782 2012-06-23  Doug Evans  <dje@google.com>
3783
3784         PR 14125
3785         * NEWS: Document additions to .gdb_index.
3786         * dwarf2read.c: #include "gdb/gdb-index.h".
3787         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3788         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3789         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3790         (dwarf2_read_index): Recognize version 7.
3791         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3792         block_kind, domain): All callers updated.
3793         (dw2_find_symbol_file): Handle new index CU values.
3794         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3795         (add_index_entry): New args is_static, kind.  All callers updated.
3796         (offset_type_compare, uniquify_cu_indices): New functions
3797         (symbol_kind): New function.
3798         (write_psymtabs_to_index): Remove duplicate CU values.
3799         (write_psymtabs_to_index): Write .gdb_index version 7.
3800
3801 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3802
3803         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3804         * configure: Regenerate.
3805
3806 2012-06-20  Yao Qi  <yao@codesourcery.com>
3807
3808         * python/py-inferior.c: Update comments of infpy_read_memory
3809         and infpy_write_memory.
3810
3811 2012-06-19  Tom Tromey  <tromey@redhat.com>
3812
3813         PR exp/9514:
3814         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3815         (push_type_address_space): Remove.
3816         * parse.c (insert_into_type_stack): New function.
3817         (insert_type): Likewise.
3818         (insert_type_address_space): Rename from push_type_address_space.
3819         Insert tp_space_identifier.
3820         * c-exp.y (ptr_operator): New production.
3821         (abs_decl): Use ptr_operator.
3822         (space_identifier): Call insert_type_address_space.
3823         (ptype): Don't use const_or_volatile_or_space_identifier.
3824         (const_or_volatile_noopt): Call insert_type.
3825         (conversion_type_id, conversion_declarator): New productions.
3826         (operator): Use conversion_type_id.
3827
3828 2012-06-18  Doug Evans  <dje@google.com>
3829
3830         * symtab.h (minimal_symbol): New member created_by_gdb.
3831         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3832         created by gdb.
3833         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3834         (search_symbols): Call it instead of lookup_symbol.
3835         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3836
3837         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3838         Adjust address for DW_OP_GNU_addr_index.
3839         * dwarf2expr.h (dwarf_expr_context): Update comment.
3840         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3841         all callers updated.  Handle TLS vars described with
3842         DW_OP_GNU_const_index.
3843         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3844         and DW_OP_GNU_const_index.
3845         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3846
3847         * block.c (find_block_in_blockvector): Make explicit the fact that we
3848         ignore GLOBAL_BLOCK.
3849
3850 2012-06-18  Tom Tromey  <tromey@redhat.com>
3851
3852         * c-exp.y (operator): Remove trailing space after "delete" and
3853         "delete[]".
3854
3855 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3856             Jan Kratochvil  <jan.kratochvil@redhat.com>
3857
3858         Switch i386 and derived targets to ON_STACK.
3859         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3860         (amd64_dicos_init_abi): Remove its installment.
3861         * dicos-tdep.c (dicos_init_abi): Remove the
3862         set_gdbarch_call_dummy_location call.  Update the comment here.
3863         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3864         (i386_dicos_init_abi): Remove its installment.
3865         * i386-tdep.c (i386_push_dummy_code): New function.
3866         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3867         i386_push_dummy_code.
3868
3869 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3870
3871         Remove stale dummy frames.
3872         * breakpoint.c: Include dummy-frame.h.
3873         (longjmp_breakpoint_ops): New variable.
3874         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3875         bp_longjmp_call_dummy.
3876         (bpstat_what, bptype_string, print_one_breakpoint_location)
3877         (init_bp_location): Support bp_longjmp_call_dummy.
3878         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
3879         (set_longjmp_breakpoint_for_call_dummy)
3880         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3881         functions.
3882         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3883         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
3884         FIXME comment and extend the other comment for bp_call_dummy.
3885         (set_longjmp_breakpoint_for_call_dummy)
3886         (check_longjmp_breakpoint_for_call_dummy): New declarations.
3887         * dummy-frame.c: Include gdbthread.h.
3888         (pop_dummy_frame_bpt): New function.
3889         (pop_dummy_frame): Call pop_dummy_frame_bpt.
3890         (dummy_frame_discard): New function.
3891         (cleanup_dummy_frames): Update the comment about longjmps.
3892         * dummy-frame.h (dummy_frame_discard): New declaration.
3893         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3894         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
3895         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
3896         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3897         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
3898         keep_going if IS_LONGJMP and there is no other reason to stop.
3899
3900 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
3901
3902         * remote-sim.c (sim_command_completer): Initialize
3903         variable 'result'.
3904
3905 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3906
3907         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3908         * dwarf2loc.c (call_site_parameter_matches): Support
3909         CALL_SITE_PARAMETER_PARAM_OFFSET.
3910         (needs_dwarf_reg_entry_value): Push stub value.
3911         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
3912         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3913         * gdbtypes.h (enum call_site_parameter_kind): New item
3914         CALL_SITE_PARAMETER_PARAM_OFFSET.
3915         (struct call_site.parameter.u): New field param_offset.
3916
3917 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3918
3919         Code cleanup: Generalize call_site.parameter key.
3920         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3921         variable dwarf_reg.  New variable kind_u.  Update parameters to
3922         push_dwarf_reg_entry_value.
3923         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3924         * dwarf2expr.h (enum call_site_parameter_kind)
3925         (union call_site_parameter_u): Forward declarations.
3926         (struct dwarf_expr_context_funcs): Update parameters and their
3927         description for push_dwarf_reg_entry_value.
3928         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3929         * dwarf2loc.c (call_site_parameter_matches): New function.
3930         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3931         description.  Use call_site_parameter_matches.
3932         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3933         Update parameters and their description.
3934         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3935         New variable kind_u.  Adjust the caller for updated parameters.
3936         (needs_dwarf_reg_entry_value): Update parameters.
3937         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
3938         instead of attr.  Update for the changed fields of struct
3939         call_site_parameter.
3940         * gdbtypes.h: Include dwarf2expr.h.
3941         (enum call_site_parameter_kind): New.
3942         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
3943         fb_offset into new union u.
3944
3945 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3946
3947         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3948         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3949         for x32.
3950
3951 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
3952
3953         * amd64-linux-nat.c (compat_x32_clock_t): New.
3954         (compat_x32_siginfo_t): Likewise.
3955         (compat_x32_siginfo_from_siginfo): Likewise.
3956         (siginfo_from_compat_x32_siginfo): Likewise.
3957         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3958         and siginfo_from_compat_x32_siginfo for x32.
3959
3960 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
3961
3962         * tracepoint.c (tfile_xfer_partial): Add a lseek.
3963
3964 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3965
3966         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3967         instead of gdbarch_ptr_bit.
3968         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3969         (amd64_supply_native_gregset): Likewise.
3970         (amd64_collect_native_gregset): Likewise.
3971         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3972         (amd64_supply_xsave): Likewise.
3973         (amd64_collect_fxsave): Likewise.
3974         (amd64_collect_xsave): Likewise.
3975
3976 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3977
3978         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3979         (amd64_linux_read_description): Check DS segment register for
3980         x32 process.
3981
3982 2012-06-15  Tom Tromey  <tromey@redhat.com>
3983
3984         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3985         init_cutu_and_read_dies.
3986
3987 2012-06-15  Iain Sandoe <iain@codesourcery.com>
3988
3989         * MAINTAINERS (Write After Approval): Add myself to the list.
3990
3991 2012-06-15  Tom Tromey  <tromey@redhat.com>
3992
3993         * valops.c (value_find_oload_method_list): Now static.
3994         * value.h (value_find_oload_method_list): Don't declare.
3995
3996 2012-06-15  Tom Tromey  <tromey@redhat.com>
3997
3998         * valops.c (find_overload_match): Use value_ind.
3999
4000 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
4001
4002         * infrun.c (handle_inferior_event): Correct indentation.
4003
4004 2012-06-14  Doug Evans  <dje@google.com>
4005
4006         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4007         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4008         All uses updated.
4009         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
4010         updated.  Handle DEBUG_LOC_START_LENGTH.
4011         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4012         (loclist_describe_location): Ditto.
4013
4014 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
4015
4016         PR backtrace/13866
4017         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4018         after hiding inline functions.
4019
4020 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4021
4022         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4023         _initialize_inf_ttrace.
4024
4025 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4026
4027         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4028         _initialize_hppa_hpux_nat.
4029
4030 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4031
4032         * remote-sim.c (sim_command_completer): Change type of return
4033         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
4034
4035 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4036             Jan Kratochvil  <jan.kratochvil@redhat.com>
4037
4038         PR tdep/14222
4039         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4040         stack on a 16-byte boundary.
4041
4042 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
4043
4044         * jit.c (finalize_symtab): Set function's return type to 'void' by
4045         default.
4046
4047 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4048             H.J. Lu  <hongjiu.lu@intel.com>
4049
4050         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4051         Move bits common to both the classic LP64 and the new x32 ILP32
4052         ABI here.
4053         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4054         (amd64_x32_linux_init_abi): New function.
4055         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4056         subtype.
4057
4058         * i386-tdep.h (i386_pseudo_register_name): New prototype.
4059         * i386-tdep.c (i386_pseudo_register_name): Make public.
4060         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4061         * amd64-tdep.c (amd64_dword_names): Add "eip".
4062         (amd64_x32_pseudo_register_type): New function
4063         (amd64_x32_init_abi): New function.
4064
4065 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4066
4067         PR build/14003
4068         * inferior.h (struct inferior_suspend_state): Comment out.
4069         (struct inferior): Comment out the field suspend.
4070         * infrun.c (struct infcall_suspend_state): Comment out the field
4071         inferior_suspend.
4072         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4073         out its assignment.
4074
4075 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4076
4077         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4078         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4079         function comment.  Return ERROR for unresolved cases.  Implement
4080         returning proper NAME.
4081         (yylex): Accept also NAME from classify_inner_name.
4082         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4083         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4084         LOC_TYPEDEF type.
4085         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4086
4087 2012-06-13  Tom Tromey  <tromey@redhat.com>
4088
4089         * breakpoint.c (condition_completer): New function.
4090         (_initialize_breakpoint): Use it.
4091         * value.c (complete_internalvar): New function.
4092         * value.h (complete_internalvar): Declare.
4093
4094 2012-06-13  Tom Tromey  <tromey@redhat.com>
4095
4096         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4097         * breakpoint.c (catch_syscall_completer): Return a VEC.
4098         * cli/cli-cmds.c (complete_command): Update.
4099         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4100         (complete_on_enum): Likewise.
4101         * command.h: Include gdb_vecs.h.
4102         (completer_ftype): Change return type.
4103         (complete_on_cmdlist, complete_on_enum): Likewise.
4104         * completer.c (noop_completer, filename_completer)
4105         (location_completer): Return a VEC.
4106         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4107         to a VEC.
4108         (expression_completer, complete_line_internal, complete_line)
4109         (command_completer): Return a VEC.
4110         (gdb_completion_word_break_characters, line_completion_function):
4111         Update.
4112         * completer.h: Include gdb_vecs.h.
4113         (complete_line, noop_completer, filename_completer)
4114         (expression_completer, location_completer, command_completer):
4115         Update.
4116         * f-lang.c (f_word_break_characters): Return a VEC.
4117         * interps.c (interpreter_completer): Return a VEC.
4118         * language.h (struct language_defn)
4119         <la_make_symbol_completion_list>: Return a VEC.
4120         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4121         * symtab.c (free_completion_list): Take a VEC.
4122         (return_val_size, return_val_index): Remove.
4123         (return_val): Now a VEC.
4124         (completion_list_add_name): Update.
4125         (default_make_symbol_completion_list_break_on)
4126         (default_make_symbol_completion_list, make_symbol_completion_list)
4127         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4128         Return a VEC.
4129         (add_filename_to_list): Update.
4130         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4131         <list>: Now a VEC.
4132         (maybe_add_partial_symtab_filename): Update.
4133         (make_source_files_completion_list): Return a VEC.
4134         * symtab.h (default_make_symbol_completion_list_break_on)
4135         (default_make_symbol_completion_list, make_symbol_completion_list)
4136         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4137         (make_source_files_completion_list): Update.
4138
4139 2012-06-13  Tom Tromey  <tromey@redhat.com>
4140
4141         * breakpoint.c (add_catch_command): Use completer_ftype.
4142         * breakpoint.h: Include command.h.
4143         (add_catch_command): Use completer_ftype.
4144         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4145         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4146         Use completer_ftype.
4147         * command.h (completer_ftype): New typedef.
4148         (set_cmd_completer): Use it.
4149         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4150         completer_ftype.
4151
4152 2012-06-13  Pedro Alves  <palves@redhat.com>
4153
4154         Partial revert of previous change.
4155
4156         * serial.c (scb_base): New global.
4157         (serial_for_fd): New.
4158         (serial_open, serial_fdopen_ops): Link new serial in open serials
4159         chain.
4160         (do_serial_close): Unlink serial from the open serials chain.
4161
4162 2012-06-12  Pedro Alves  <palves@redhat.com>
4163
4164         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4165         threads here.
4166         (prepare_for_detach): No longer context switch here in non-stop
4167         mode.
4168         (fetch_inferior_event): Ditto.
4169         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4170         to the event thread before removing breakpoints.  Switch to the
4171         event thread before inserting breakpoints and resuming.
4172         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4173         event thread before resuming.
4174         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4175         Switch to the event thread before removing breakpoints.
4176
4177 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4178
4179         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4180         special characters correctly for the Windows shells.  See
4181         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4182         report.
4183         [!__MINGW32__]: Remove extra double quote character from special
4184         characters.
4185
4186 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4187
4188         * ui-out.h: Remove #if 0 declarations.
4189         * ui-out.c: Remove #if 0 functions.
4190
4191 2012-06-11  Pedro Alves  <palves@redhat.com>
4192
4193         * ser-base.c (run_async_handler_and_reschedule): New.
4194         (fd_event, push_event): Use it.
4195         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4196         reference count to 1.
4197         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4198         instead of xfree.
4199         (serial_is_open, serial_ref, serial_unref): New.
4200         * serial.h (serial_open): Adjust comment.
4201         (serial_is_open): Declare.
4202         (serial_close): Adjust comment.
4203         (serial_ref, serial_unref) Declare.
4204         (struct serial): New field 'refcnt'.
4205
4206 2012-06-11  Pedro Alves  <palves@redhat.com>
4207
4208         Remove #if 0'd "connect" command, and unnecessary associated
4209         refcounting and serial reuse bits.
4210
4211         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4212         * serial.c (last_serial_opened): Delete.
4213         (scb_base): Delete.
4214         (serial_open): Adjust.
4215         (serial_for_fd): Delete.
4216         (serial_fdopen_ops, do_serial_close): Adjust.
4217         (serial_fdopen_ops): Adjust.
4218
4219 2012-06-11  Pedro Alves  <palves@redhat.com>
4220
4221         * serial.c (do_serial_close): Remove early return when SCB is
4222         null.
4223
4224 2012-06-11  Tom Tromey  <tromey@redhat.com>
4225
4226         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4227
4228 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4229
4230         Fix regression by the "ambiguous linespec" series.
4231         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4232         get_last_displayed_symtab and get_last_displayed_line and depending
4233         on CURSAL.
4234
4235 2012-06-11  Tom Tromey  <tromey@redhat.com>
4236
4237         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4238         (dw2_find_symbol_file): Use it.
4239
4240 2012-06-11  Michael Eager  <eager@eagercon.com>
4241
4242         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4243         * mips-linux-tdep.h (mips_signals): New
4244
4245 2012-06-11  Tom Tromey  <tromey@redhat.com>
4246
4247         * infrun.c (handle_inferior_event)
4248         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4249         breakpoint.
4250         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4251         exception logic in all cases.  Update comments.
4252         (insert_longjmp_resume_breakpoint): Set the exception resume
4253         breakpoint.
4254
4255 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4256
4257         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4258
4259 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4260
4261         * valarith.c (binop_types_user_defined_p): Fix a typo.
4262
4263 2012-06-08  Yao Qi  <yao@codesourcery.com>
4264             Chung-Lin Tang <cltang@codesourcery.com>
4265
4266         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4267         * arch-utils.h: Declare.
4268         * gdbarch.sh: Add return_in_first_hidden_param_p.
4269         * gdbarch.c, gdbarch.h: Regenerated.
4270         * infcall.c (call_function_by_hand): Call
4271         gdbarch_return_in_first_hidden_param_p instead of
4272         language_pass_by_reference.
4273
4274         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4275         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4276         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4277         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4278         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4279         `cplus_return_struct_by_reference'.
4280         (tic6x_return_value): Handle language cplusplus.
4281         (tic6x_return_in_first_hidden_param_p): New.
4282         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4283
4284 2012-06-07  Doug Evans  <dje@google.com>
4285
4286         * dwarf2read.c (dwarf2_cu): Add comment.
4287
4288 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4289
4290         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4291         variable.
4292         (mips_eabi_push_dummy_call): Likewise.
4293         (mips_n32n64_push_dummy_call): Likewise.
4294         (mips_o32_push_dummy_call): Likewise.
4295         (mips_o64_push_dummy_call): Likewise.
4296
4297 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4298
4299         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4300
4301 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4302
4303         * mips-tdep.c (mips_pseudo_register_type): Use
4304         mips_float_register_p.
4305
4306 2012-06-06  Pedro Alves  <palves@redhat.com>
4307
4308         * infrun.c (handle_inferior_event): Remove calls to
4309         reinit_frame_cache that follow a context_switch call.
4310
4311 2012-06-06  Pedro Alves  <palves@redhat.com>
4312
4313         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4314         context_switch and remove stale comment.
4315
4316 2012-06-06  Pedro Alves  <palves@redhat.com>
4317
4318         * infrun.c (struct execution_control_state): Remove
4319         `new_thread_event' field.
4320         (handle_inferior_event): Simplify new threads handling; don't
4321         resume the inferior if we find a new thread.
4322
4323 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4324
4325         * NEWS: Document the deprecation of SH's 'regs' command.
4326         * inferior.h (all_registers_info): Add function declaration.
4327         * sh-tdep.c (sh_show_regs): Remove variable.
4328         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4329         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4330         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4331         (sh_show_regs_command): Remove functions.
4332         (sh_gdbarch_init): Don't set sh_show_regs.
4333         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4334         'info all-registers'.
4335         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4336         (sh64_show_regs): Remove functions.
4337         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4338
4339 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4340
4341         * configure.ac: Move development=true below AC_INIT.
4342         * configure: Regenerate.
4343
4344 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4345
4346         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4347         gdb_stdout.
4348
4349 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4350
4351         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4352         argument as ssize_t.
4353         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4354         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4355         * target.c (target_read_stack, target_write_memory)
4356         (target_write_raw_memory): Likewise.
4357         * target.h (target_read_stack, target_write_memory)
4358         (target_write_raw_memory): Likewise.
4359
4360 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4361
4362         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4363         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4364         * target.c (target_read_memory): Change LEN to ssize_t.
4365         * target.h (target_read_memory): Change LEN to ssize_t.
4366
4367 2012-06-05  Pedro Alves  <palves@redhat.com>
4368
4369         PR backtrace/13866
4370
4371         * breakpoint.c (until_break_command): Only fetch the selected
4372         frame after decode_line_1.
4373
4374 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4375
4376         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4377         event breakpoint at _start, __start or main if a program
4378         interpreter is not found.
4379
4380 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4381
4382         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4383         Add declaration.
4384         * windows-tdep.c: #include "objfiles.h".
4385         (windows_iterate_over_objfiles_in_search_order): New function.
4386         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4387         iterate_over_objfiles_in_search_order gdbarch method to
4388         windows_iterate_over_objfiles_in_search_order.
4389         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4390
4391 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4392
4393         * gdbarch.sh: Add generation of
4394         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4395         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4396         (iterate_over_objfiles_in_search_order): New gdbarch method.
4397         * gdbarch.h, gdbarch.c: Regenerate.
4398         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4399         Add declaration.
4400         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4401         New function.
4402         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4403         out of lookup_symbol_aux_symtabs.
4404         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4405         call to lookup_symbol_aux_objfile.
4406         (struct global_sym_lookup_data): New type.
4407         (lookup_symbol_global_iterator_cb): New function.
4408         (lookup_symbol_global): Search for symbol using
4409         gdbarch_iterate_over_objfiles_in_search_order and
4410         lookup_symbol_global_iterator_cb.
4411         * findvar.c (struct minsym_lookup_data): New type.
4412         (minsym_lookup_iterator_cb): New function.
4413         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4414         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4415         and minsym_lookup_iterator_cb.
4416
4417 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4418
4419         Revert the following patch:
4420         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4421         try locating the symbol in the symbol's own objfile first, before
4422         extending the search to all objfiles.
4423         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4424         out of lookup_symbol_aux_symtabs.
4425         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4426         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4427         Do not search EXCLUDE_OBJFILE.
4428         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4429         (lookup_symbol_global): Search for matches in the block's objfile
4430         first, before searching all other objfiles.
4431
4432 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4433
4434         * breakpoint.c (find_condition_and_thread): Stop parsing
4435         as soon as the first invalid keyword is found.
4436
4437 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4438
4439         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4440
4441 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4442
4443         * config/djgpp/djcheck.sh: Add copyright header.
4444
4445 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4446
4447         * copyright.py (update_files, main): Fix path to update-copyright
4448         script.
4449
4450 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4451
4452         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4453         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4454         for which a reminder to update by hand is printed.
4455
4456 2012-06-04  Doug Evans  <dje@google.com>
4457
4458         * buildsym.c (make_blockvector): Add comment.
4459
4460 2012-06-04  Pedro Alves  <palves@redhat.com>
4461
4462         * arch-utils.c (default_gdb_signal_from_target): Delete.
4463         * arch-utils.h (default_gdb_signal_from_target): Delete.
4464         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4465         gdbarch_gdb_signal_from_target_p.
4466         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4467         predicate).
4468         * gdbarch.h: Regenerate.
4469         * gdbarch.c: Regenerate.
4470
4471 2012-06-04  Pedro Alves  <palves@redhat.com>
4472
4473         * gdbarch.sh (gdb_signal_from_target): Mention that the
4474         implementation of the method must be host independent.
4475         * gdbarch.h: Regenerate.
4476
4477 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4478
4479         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4480         parameters.
4481         (target_read_memory_bfd): New function.
4482         (symbol_file_add_from_memory): Use it.
4483
4484 2012-06-03  Doug Evans  <dje@google.com>
4485
4486         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4487         of primary symtab.
4488         (basic_lookup_transparent_type): Ditto.
4489
4490         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4491         (ALL_PRIMARY_SYMTABS): Use it.
4492         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4493         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4494         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4495         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4496         (basic_lookup_transparent_type): Ditto.
4497
4498 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4499
4500         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4501         it to optimize resolution of demangled name.
4502
4503 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4504
4505         * configure.ac (development): Define new variable.
4506         Call AC_CHECK_LIB for mcheck if $development.
4507         (ERROR_ON_WARNING): Enable it by default only if $development.
4508         * config.in: Regenerate.
4509         * configure: Regenerate.
4510
4511 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4512
4513         * target.c (target_read_memory): Make LEN argument as size_t.
4514         * target.h (target_read_memory): Likewise.
4515
4516 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4517
4518         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4519
4520 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4521
4522         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4523         BookE interface for PowerPC server processors if not available
4524         in the Linux Kernel.
4525
4526 2012-05-31  Keith Seitz  <keiths@redhat.com>
4527
4528         * linespec.c (decode_objc): Add cleanup to free
4529         INFO.FILE_SYMTABS.
4530         (find_linespec_symbols): Add cleanup to free CLASSES.
4531         * symfile.c (find_separate_debug_file_by_debuglink): Add
4532         cleanup to free DEBUGLINK.
4533         * ui-out.c (clear_header_list): No need to check if
4534         HEADER_NEXT.COLHDR is NULL.
4535         Free HEADER_NEXT.COL_NAME.
4536
4537 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4538
4539         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4540         warning.
4541
4542 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4543
4544         * configure.host (gdb_host_cpu): Handle tilegx*.
4545         (gdb_host): Handle tilegx-*-linux*.
4546         * tilegx-linux-nat.c: New file.
4547         * config/tilegx/linux.mh: New file.
4548
4549 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4550
4551         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4552         tilegx-linux-tdep.o.
4553         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4554         tilegx-linux-tdep.c.
4555         * configure.tgt: Handle tilegx-*-linux*.
4556         * tilegx-tdep.h: New file.
4557         * tilegx-tdep.c: New file.
4558         * tilegx-linux-tdep.c: New file.
4559         * regformats/reg-tilegx.dat: New file.
4560
4561 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4562
4563         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4564         accounting of hw watchpoints on ppc.
4565
4566 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4567
4568         * source.c (openp): Expand tilde in path entries.
4569
4570 2012-05-29  Doug Evans  <dje@google.com>
4571
4572         * buildsym.c (block_compar): Fix comment.
4573         (end_symtab): Fix and clarify some comments.
4574
4575         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4576         cleanup_undefined_types.
4577         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4578         All callers updated.
4579
4580 2012-05-29  Tom Tromey  <tromey@redhat.com>
4581
4582         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4583         fails.
4584         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4585         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4586         fails.
4587         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4588         fails.
4589
4590 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4591
4592         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4593         (struct darwin_info): ... New struct.
4594         (solib_darwin_pspace_data): New variable.
4595         (darwin_pspace_data_cleanup): New function.
4596         (get_darwin_info): Likewise.
4597         (darwin_dyld_version_ok, darwin_load_image_infos)
4598         (darwin_solib_get_all_image_info_addr_at_init)
4599         (darwin_solib_read_all_image_info_addr): Add info argument.
4600         Adjust code.
4601         (darwin_current_sos): Use per pspace structure.
4602         (darwin_solib_create_inferior_hook): Likewise.
4603         (darwin_clear_solib): Likewise.
4604         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4605
4606 2012-05-28  Pedro Alves  <palves@redhat.com>
4607
4608         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4609         block that uses them.  Clear ecss before handling each event.
4610
4611 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4612
4613         * solib-svr4.c (svr4_current_sos): New comment on
4614         svr4_current_sos_via_xfer_libraries fall back.
4615
4616 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4617
4618         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4619         it as a fallback for TYPE_IS_OPAQUE.
4620         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4621         symbols for lookup_symbol.
4622
4623 2012-05-24  John Steele Scott  <toojays@toojays.net>
4624
4625         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4626         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4627         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4628         (check_producer): ... this new function, which also checks for ICC
4629         and caches the result.
4630         (producer_is_icc): New function.
4631         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4632         producer was ICC.
4633
4634 2012-05-24  Pedro Alves  <palves@redhat.com>
4635
4636         PR gdb/7205
4637
4638         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4639         (default_gdb_signal_to_target): ... this.  Add comment.
4640         (default_gdb_signal_from_host): Rename to ...
4641         (default_gdb_signal_from_target): ... this.  Add comment.
4642         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4643         (default_gdb_signal_to_target): ... this.
4644         (default_gdb_signal_from_host): Rename to ...
4645         (default_gdb_signal_from_target): ... this.
4646         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4647         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4648         (gdb_signal_from_target): ... this.  Adjust to
4649         default_gdb_signal_from_host naming change.  Extend comment.
4650         (gdb_signal_to_host): Rename to ...
4651         (gdb_signal_to_target): ... this.  Adjust to
4652         default_gdb_signal_to_host naming change.
4653         * gdbarch.h, gdbarch.c: Renegerate.
4654
4655 2012-05-24  Pedro Alves  <palves@redhat.com>
4656
4657         PR gdb/7205
4658
4659         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4660
4661 2012-05-24  Pedro Alves  <palves@redhat.com>
4662
4663         PR gdb/7205
4664
4665         Replace target_signal with gdb_signal throughout.
4666
4667 2012-05-24  Pedro Alves  <palves@redhat.com>
4668
4669         PR tui/14159
4670
4671         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4672         string, instead of reusing the va_list argument.
4673
4674 2012-05-24  Tom Tromey  <tromey@redhat.com>
4675
4676         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4677         Remove.
4678
4679 2012-05-23  Doug Evans  <dje@google.com>
4680
4681         * symtab.c (search_symbols): Formatting fixes.
4682         (print_symbol_info): Formatting fixes.
4683
4684         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4685         int64_t change to leb128 API.
4686         (read_encoded_value, decode_frame_entry_1): Ditto.
4687         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4688         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4689         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4690         (execute_stack_op): Ditto.
4691         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4692         (safe_read_uleb128, safe_read_sleb128): Ditto.
4693         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4694         (dwarf2_compile_expr_to_ax): Ditto.
4695         (locexpr_describe_location_piece): Ditto.
4696         (disassemble_dwarf_expression): Ditto.
4697         (locexpr_describe_location_1): Ditto.
4698
4699 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4700             Kwok Cheung Yeung  <kcy@codesourcery.com>
4701
4702         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4703         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4704         (mi-cmd-info.o): New rule.
4705         * osdata.h (info_osdata_command): New declaration.
4706         * osdata.c (info_osdata_command): Change to non-static.
4707         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4708         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4709         * mi/mi-cmd-info.c: New file.
4710
4711 2012-05-23  Doug Evans  <dje@google.com>
4712
4713         * symtab.c (search_symbols): Pass NULL for file_matcher to
4714         expand_symtabs_matching if there are no files to match.
4715
4716         * gdbtypes.c (lookup_typename): Simplify.
4717
4718 2012-05-23  Pedro Alves  <palves@redhat.com>
4719
4720         * arch-utils.h (default_target_signal_to_host): Delete.
4721         * arch-utils.c (default_target_signal_to_host): Delete.
4722         * gdbarch.sh (target_signal_to_host): Remove.
4723         * gdbarch.h, gdbarch.c: Regenerate.
4724
4725 2012-05-22  Doug Evans  <dje@google.com>
4726
4727         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4728         "const gdb_byte *".
4729         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4730         (execute_cfa_program): Update to match API of leb128 functions.
4731         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4732         "const gdb_byte *".
4733         (read_unsigned_leb128, read_signed_leb128): Delete.
4734         (read_initial_length): Change type of buf argument to
4735         "const gdb_byte *".
4736         (read_encoded_value): Update to match API of leb128 functions.
4737         (decode_frame_entry): Change result to "const gdb_byte *", and
4738         similarly for "start" parameter.
4739         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4740         (dwarf2_build_frame_info): Change local frame_ptr to
4741         "const gdb_byte *".
4742         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4743         read_uleb128, read_sleb128.  All callers updated.
4744         (safe_skip_leb128): New function.
4745         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4746         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4747         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4748         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4749         read_uleb128, read_sleb128.
4750         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4751         (execute_stack_op): Update to match API of leb128 functions.
4752         * dwarf2expr.h: #include "leb128.h".
4753         (read_uleb128, read_sleb128): Delete.
4754         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4755         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4756         * dwarf2loc.c (debug_loc_kind): New enum.
4757         (decode_debug_loc_addresses): New function.
4758         (decode_debug_loc_dwo_addresses): New function.
4759         (dwarf2_find_location_expression): Rewrite.
4760         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4761         (locexpr_describe_location_piece): Ditto.
4762         (disassemble_dwarf_expression): Ditto.
4763         (locexpr_describe_location_1): Ditto.
4764         (loclist_describe_location): Rewrite.
4765         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4766         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4767         (dwarf2_section_buffer_overflow_complaint): Renamed from
4768         dwarf2_macros_too_long_complaint.  All callers updated.
4769         (skip_leb128): Delete.
4770         (init_cu_die_reader): Initialize reader->buffer_end.
4771         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4772         (skip_form_bytes): New arg buffer_end.  All callers updated.
4773         Replace call to skip_leb128 with gdb_skip_leb128.
4774         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4775         (fill_in_loclist_baton): Initialize baton->from_dwo.
4776
4777 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4778
4779         * mips-linux-nat.c (mips_linux_read_description): Use a more
4780         verbose error message.
4781
4782 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4783
4784         * NEWS: Add MIPS/Linux DSP support.
4785         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4786         (SIGCONTEXT_DSPCTL): New macro.
4787         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4788         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4789         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4790         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4791         (N64_SIGCONTEXT_HI3): Likewise.
4792         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4793         (N64_SIGCONTEXT_LO3): Likewise.
4794         (N64_SIGCONTEXT_DSPCTL): Likewise.
4795         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4796         (mips_linux_o32_sigframe_init): Handle DSP registers.
4797         (mips_linux_n32n64_sigframe_init): Likewise.
4798
4799 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4800
4801         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4802         call to abort.
4803
4804 2012-05-22  Pedro Alves  <palves@redhat.com>
4805
4806         * target.h (store_waitstatus): Move declaration ...
4807         * inf-child.h (store_waitstatus): ... here.
4808         * target.c: Move inclusion of gdb_wait.h, and ...
4809         (store_waitstatus): ... this ...
4810         * inf-child.c: ... here.
4811         * linux-nat.c: Include inf-child.h.
4812         * rs6000-nat.c: Include inf-child.h.
4813         * spu-linux-nat.c: Include inf-child.h.
4814
4815 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4816
4817         * tracepoint.c (start_tracing): Add missing i18n markup.
4818         (stop_tracing, set_trace_user): Ditto.
4819         (set_trace_notes, set_trace_stop_notes): Ditto.
4820
4821 2012-05-21  Tom Tromey  <tromey@redhat.com>
4822
4823         PR c++/7173:
4824         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4825         types.
4826         * value.h (value_cast_pointers): Update.
4827         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4828         (value_cast): Update.
4829         (update_search_result): New function.
4830         (do_search_struct_field): New, from search_struct_field.  Check
4831         for ambiguous results.
4832         (search_struct_field): Rewrite.
4833         * infcall.c (value_arg_coerce): Update.
4834         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4835         value_cast_pointers.
4836         * ada-lang.c (ada_convert_actual): Update.
4837
4838 2012-05-21  Tom Tromey  <tromey@redhat.com>
4839
4840         * macroexp.c (macro_stringify): Terminate the string.
4841
4842 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4843
4844         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4845         Describe it.
4846         * auto-load.c (auto_load_expand_dir_vars): New function.
4847         (auto_load_safe_path_vec_update): Use it, remove the
4848         substitute_path_component call thanks to it.
4849         (auto_load_objfile_script): Remove the debug_file_directory processing.
4850         Use auto_load_expand_dir_vars, remove the substitute_path_component
4851         call thanks to it.
4852         * configure: Regenerate.
4853         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4854         path.  Escape $ also for $debugdir.
4855         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4856         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4857
4858 2012-05-20  Doug Evans  <dje@google.com>
4859
4860         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4861         before use.  Check for symtab->includes == NULL before scanning it.
4862
4863 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4864
4865         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4866
4867 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4868
4869         * NEWS: Add microMIPS support and "set mips compression",
4870         "show mips compression" commands.
4871         * mips-tdep.h (mips_isa): New enum.
4872         (gdbarch_tdep): Add mips_isa.
4873         (mips_pc_is_mips16): Update prototype.
4874         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4875         * mips-tdep.c (mips_compression_mips16): New variable.
4876         (mips_compression_micromips): Likewise.
4877         (mips_compression_strings): Likewise.
4878         (mips_compression_string): Likewise.
4879         (is_mips16_isa, is_micromips_isa): New functions.
4880         (is_mips16_addr): Rename to...
4881         (is_compact_addr): ... this.
4882         (unmake_mips16_addr): Likewise to...
4883         (unmake_compact_addr): ... this.
4884         (make_mips16_addr): Likewise to...
4885         (make_compact_addr): ... this.
4886         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4887         functions.
4888         (mips_elf_make_msymbol_special): Handle microMIPS code.
4889         (msymbol_is_special): Rename to...
4890         (msymbol_is_mips16): ... this.
4891         (mips_make_symbol_special, mips_pc_is_mips16): Update
4892         accordingly.
4893         (msymbol_is_mips, msymbol_is_micromips): New functions.
4894         (mips16_to_32_reg): Rename to...
4895         (mips_reg3_to_reg): ... this.
4896         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4897         (mips_pc_isa): Likewise.
4898         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4899         code.
4900         (mips_fetch_instruction): Pass return status instead of printing
4901         an error message if requested.  Handle microMIPS code.  Bail out
4902         on an invalid ISA.
4903         (micromips_op): New macro.
4904         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4905         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4906         (b6s4_op, b7s3_reg): Likewise.
4907         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4908         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4909         (mips_insn_size): New function.
4910         (mips32_next_pc): Update mips_fetch_instruction call.
4911         (micromips_relative_offset7): New function.
4912         (micromips_relative_offset10): Likewise.
4913         (micromips_relative_offset16): Likewise.
4914         (micromips_pc_insn_size): Likewise.
4915         (micromips_bc1_pc): Likewise.
4916         (micromips_next_pc): Likewise.
4917         (unpack_mips16): Update mips_fetch_instruction call.
4918         (extended_mips16_next_pc): Update according to change to
4919         mips16_to_32_reg.
4920         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
4921         code.
4922         (mips16_scan_prologue): Update mips_fetch_instruction call.
4923         Update according to change to mips16_to_32_reg.
4924         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4925         (mips_insn16_frame_base_sniffer): Likewise.
4926         (micromips_decode_imm9): New function.
4927         (micromips_scan_prologue): Likewise.
4928         (mips_micro_frame_cache): Likewise.
4929         (mips_micro_frame_this_id): Likewise.
4930         (mips_micro_frame_prev_register): Likewise.
4931         (mips_micro_frame_sniffer): Likewise.
4932         (mips_micro_frame_unwind): New variable.
4933         (mips_micro_frame_base_address): New function.
4934         (mips_micro_frame_base): New variable.
4935         (mips_micro_frame_base_sniffer): New function.
4936         (mips32_scan_prologue): Update mips_fetch_instruction call.
4937         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4938         rather than for MIPS16.
4939         (mips_insn32_frame_base_sniffer): Likewise.
4940         (mips_addr_bits_remove): Handle microMIPS code.
4941         (deal_with_atomic_sequence): Rename to...
4942         (mips_deal_with_atomic_sequence): ... this.  Update the type
4943         of the variable used to hold an instruction.  Remove the ISA bit
4944         check.  Update mips_fetch_instruction call.
4945         (micromips_deal_with_atomic_sequence): New function.
4946         (deal_with_atomic_sequence): Likewise.
4947         (mips_about_to_return): Handle microMIPS code.  Update
4948         mips_fetch_instruction call.
4949         (heuristic_proc_start): Check for the standard MIPS ISA rather
4950         than for MIPS16.  Update mips_pc_is_mips16 and
4951         mips_fetch_instruction calls.  Handle microMIPS code.
4952         (mips_push_dummy_code): Handle microMIPS code.
4953         (mips_eabi_push_dummy_call): Likewise.
4954         (mips_o32_return_value): Update mips_pc_is_mips16 call.
4955         (mips_o64_push_dummy_call): Handle microMIPS code.
4956         (mips_o64_return_value): Update mips_pc_is_mips16 call.
4957         (is_delayed): Remove function.
4958         (mips_single_step_through_delay): Replace the call to is_delayed
4959         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
4960         Handle microMIPS code.
4961         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
4962         microMIPS code.
4963         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4964         call.
4965         (micromips_in_function_epilogue_p): New function.
4966         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4967         call.
4968         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4969         Handle microMIPS.
4970         (gdb_print_insn_mips): Likewise.
4971         (mips_breakpoint_from_pc): Likewise.
4972         (mips_remote_breakpoint_from_pc): New function.
4973         (mips32_instruction_has_delay_slot): Simplify making use of the
4974         updated mips_fetch_instruction interface.
4975         (micromips_instruction_has_delay_slot): New function.
4976         (mips16_instruction_has_delay_slot): Simplify making use of the
4977         updated mips_fetch_instruction interface.
4978         (mips_adjust_breakpoint_address): Check for the standard MIPS
4979         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
4980         calls.  Handle microMIPS code.
4981         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4982         (mips_skip_trampoline_code): Handle microMIPS code.
4983         (global_mips_compression): New function.
4984         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4985         file flags.  Register the microMIPS remote breakpoint handler
4986         and heuristic frame unwinder.
4987         (show_mips_compression): New function.
4988         (_initialize_mips_tdep): Add the "set mips compression" and
4989         "show mips compression" commands.
4990
4991 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4992
4993         * ada-lang.c:
4994         * ada-tasks.c:
4995         * ada-varobj.c:
4996         * amd64-darwin-tdep.c:
4997         * arm-symbian-tdep.c:
4998         * arm-tdep.c:
4999         * avr-tdep.c:
5000         * ax-gdb.c:
5001         * bfin-linux-tdep.c:
5002         * breakpoint.c:
5003         * c-valprint.c:
5004         * cli/cli-cmds.c:
5005         * coffread.c:
5006         * cp-support.c:
5007         * cris-tdep.c:
5008         * dwarf2-frame-tailcall.c:
5009         * dwarf2-frame.c:
5010         * dwarf2expr.c:
5011         * dwarf2loc.c:
5012         * dwarf2read.c:
5013         * elfread.c:
5014         * eval.c:
5015         * expprint.c:
5016         * f-valprint.c:
5017         * frv-tdep.c:
5018         * h8300-tdep.c:
5019         * hppa-hpux-tdep.c:
5020         * hppa-tdep.c:
5021         * hppanbsd-tdep.c:
5022         * i386-nto-tdep.c:
5023         * i386-tdep.c:
5024         * i387-tdep.c:
5025         * ia64-tdep.c:
5026         * jit.c:
5027         * linespec.c:
5028         * linux-tdep.c:
5029         * lm32-tdep.c:
5030         * m2-valprint.c:
5031         * m32c-tdep.c:
5032         * m32r-rom.c:
5033         * m32r-tdep.c:
5034         * m68k-tdep.c:
5035         * m68klinux-tdep.c:
5036         * mi/mi-main.c:
5037         * microblaze-tdep.c:
5038         * mips-linux-tdep.c:
5039         * mips-tdep.c:
5040         * mn10300-tdep.c:
5041         * p-valprint.c:
5042         * parse.c:
5043         * ppc-linux-tdep.c:
5044         * ppc-sysv-tdep.c:
5045         * printcmd.c:
5046         * python/py-finishbreakpoint.c:
5047         * python/py-inferior.c:
5048         * python/py-infthread.c:
5049         * python/py-type.c:
5050         * python/python.c:
5051         * remote-fileio.c:
5052         * remote-m32r-sdi.c:
5053         * remote-mips.c:
5054         * reverse.c:
5055         * rl78-tdep.c:
5056         * rs6000-aix-tdep.c:
5057         * rs6000-tdep.c:
5058         * s390-tdep.c:
5059         * score-tdep.c:
5060         * sh64-tdep.c:
5061         * skip.c:
5062         * solib-darwin.c:
5063         * solib-dsbt.c:
5064         * solib-frv.c:
5065         * sparc-tdep.c:
5066         * spu-multiarch.c:
5067         * spu-tdep.c:
5068         * stack.c:
5069         * symfile.c:
5070         * symtab.c:
5071         * tic6x-tdep.c:
5072         * tracepoint.c:
5073         * v850-tdep.c:
5074         * valarith.c:
5075         * valprint.c:
5076         * value.c:
5077         * xcoffread.c:
5078         * xtensa-tdep.c:
5079         * ada-lang.c:
5080         * ada-tasks.c:
5081         * ada-varobj.c:
5082         * amd64-darwin-tdep.c:
5083         * arm-symbian-tdep.c:
5084         * arm-tdep.c: Delete unused variables.
5085
5086 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5087
5088         Rename $ddir to $datadir.
5089         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5090         * auto-load.c (auto_load_safe_path_vec_update)
5091         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5092         * configure: Regenerate.
5093         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5094         Likewise.  Remove the 'use $ddir' help string.
5095
5096 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5097
5098         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5099         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5100
5101 2012-05-18  Tom Tromey  <tromey@redhat.com>
5102
5103         PR exp/13907:
5104         * valprint.h (struct value_print_options) <symbol_print>: New
5105         field.
5106         * valprint.c (user_print_options): Add default for symbol_print.
5107         (show_symbol_print): New function.
5108         (generic_val_print): Respect symbol_print.
5109         (_initialize_valprint): Add "print symbol" setting.
5110         * f-valprint.c (f_val_print): Respect symbol_print.
5111         * c-valprint.c (c_val_print): Respect symbol_print.
5112         * NEWS: Update.
5113         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5114         zero-size symbols.
5115         (print_address_demangle): Return int.
5116         * defs.h: (print_address_symbolic): Return int.
5117         * value.h (print_address_demangle): Return int.
5118
5119 2012-05-18  Tom Tromey  <tromey@redhat.com>
5120
5121         * valprint.c (val_print_string): Don't print leading space.
5122         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5123         print space before string or vtbl.
5124         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5125         before string.
5126         * jv-valprint.c (java_value_print): Print space before string.
5127         * go-valprint.c (print_go_string): Print space before string.
5128         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5129         space before string.
5130         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5131         space before string or vtbl.
5132         * auxv.c (fprint_target_auxv): Print space after address.
5133
5134 2012-05-18  Tom Tromey  <tromey@redhat.com>
5135
5136         * printcmd.c (print_address_demangle): Remove special case for 0.
5137
5138 2012-05-18  Tom Tromey  <tromey@redhat.com>
5139
5140         * printcmd.c (print_address_demangle): Add 'opts' argument.
5141         * p-valprint.c (pascal_val_print): Update.
5142         * jv-valprint.c (java_val_print): Update.
5143         * value.h: Update.
5144         * valprint.c (generic_val_print): Update.
5145         (print_function_pointer_address): Add 'options' argument.  Remove
5146         'addressprint' argument.  Update.
5147         * m2-valprint.c (print_unpacked_pointer): Update.
5148         * gnu-v3-abi.c (print_one_vtable): Update.
5149         (gnuv3_print_method_ptr): Update.
5150         * f-valprint.c (f_val_print): Update.
5151         * cp-valprint.c (cp_print_value_fields): Update.
5152         * valprint.h (print_function_pointer_address): Update.
5153         * c-valprint.c (c_val_print): Update.
5154
5155 2012-05-18  Tom Tromey  <tromey@redhat.com>
5156
5157         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5158         directly corresponding to the found psymtab.
5159         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5160         (dw2_find_pc_sect_symtab): Use it.
5161         * block.h (blockvector_contains_pc): Declare.
5162         * block.c (find_block_in_blockvector): New function.
5163         (blockvector_for_pc_sect): Use it.
5164         (blockvector_contains_pc): New function.
5165
5166 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5167
5168         * mips-tdep.h (mips_write_pc): New prototype.
5169         * mips-tdep.c (mips_write_pc): Make external, add description.
5170         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5171         add description.
5172
5173 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5174
5175         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5176         mips_regnum->pc.
5177         (mips_unwind_pc, mips_write_pc): Likewise.
5178         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5179         gdbarch_read_pc.
5180
5181 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5182
5183         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5184         proc_warn, proc_error, proc_get_status, proc_flags,
5185         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5186         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5187         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5188         proc_stop_process, proc_wait_for_stop, proc_run_process,
5189         proc_set_traced_signals, proc_set_traced_faults,
5190         proc_set_traced_sysentry, proc_set_traced_sysexit,
5191         proc_set_held_signals, proc_get_held_signals,
5192         proc_get_traced_signals, proc_get_traced_faults,
5193         proc_get_traced_sysentry, proc_get_traced_sysexit,
5194         proc_clear_current_fault, proc_set_current_signal,
5195         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5196         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5197         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5198         proc_get_current_thread, proc_get_current_thread,
5199         proc_get_current_thread, proc_update_threads,
5200         proc_update_threads, proc_update_threads, proc_update_threads,
5201         proc_iterate_over_threads, procfs_find_new_threads,
5202         procfs_pid_to_str): Make static.  Remove advance declaration.
5203         (proc_cursig): Make static.  Conditionalized defintion on
5204         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5205         (proc_syscall, proc_set_kill_on_last_close,
5206         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5207         proc_get_pending_signals, proc_get_signal_actions,
5208         proc_trace_signal, proc_ignore_signal): Delete.
5209
5210 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5211
5212         * coffread.c (cs_section_address): Passing proper argument for
5213         `bfd_get_section_vma'.
5214         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5215         `bfd_get_section_flags'.
5216         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5217         `bfd_get_section_vma'.
5218
5219 2012-05-16  Tom Tromey  <tromey@redhat.com>
5220
5221         PR macros/13205:
5222         * macrotab.h: (macro_define_special): Declare.
5223         (enum macro_special_kind): New.
5224         (struct macro_definition) <argc, replacement>: Update comments.
5225         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5226         (macro_define_object_internal): New function.
5227         (macro_define_object): Use it.
5228         (macro_define_special): New function.
5229         (fixup_definition): New function.
5230         (macro_lookup_definition, foreach_macro_in_scope)
5231         (foreach_macro): Use fixup_definition.
5232         * macroexp.h (macro_stringify): Declare.
5233         * macroexp.c (free_buffer_return_text): New function.
5234         (stringify): Constify "arg".
5235         (macro_stringify): New function.
5236         * dwarf2read.c (macro_start_file): Call macro_define_special.
5237
5238 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5239             Maciej W. Rozycki  <macro@mips.com>
5240
5241         * breakpoint.h (bp_location): Add related_address member.
5242         * inferior.h (get_return_value): Take a pointer to struct value
5243         instead of struct type for the function requested.
5244         * value.h (using_struct_return): Likewise.
5245         * gdbarch.sh (return_value): Take a pointer to struct value
5246         instead of struct type for the function requested.
5247         * breakpoint.c (set_breakpoint_location_function): Initialize
5248         related_address for bp_gnu_ifunc_resolver breakpoints.
5249         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5250         requested function's address to gdbarch_return_value.
5251         * eval.c (evaluate_subexp_standard): Pass the requested
5252         function's address to using_struct_return.
5253         * infcall.c (call_function_by_hand): Pass the requested
5254         function's address to using_struct_return and
5255         gdbarch_return_value.
5256         * infcmd.c (get_return_value): Take a pointer to struct value
5257         instead of struct type for the function requested.
5258         (print_return_value): Update accordingly.
5259         (finish_command_continuation): Likewise.
5260         * stack.c (return_command): Pass the requested function's
5261         address to using_struct_return and gdbarch_return_value.
5262         * value.c (using_struct_return): Take a pointer to struct value
5263         instead of struct type for the function requested.  Pass the
5264         requested function's address to gdbarch_return_value.
5265         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5266         New function_value member, replacing function_type.
5267         (bpfinishpy_dealloc): Update accordingly.
5268         (bpfinishpy_pre_stop_hook): Likewise.
5269         (bpfinishpy_init): Likewise.  Record the requested function's
5270         address.
5271         * mips-tdep.c (mips_fval_reg): New enum.
5272         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5273         words put in GP registers.
5274         (mips_o64_push_dummy_call): Update a comment.
5275         (mips_o32_return_value): Take a pointer to struct value instead
5276         of struct type for the function requested and use it to check if
5277         using the MIPS16 calling convention.  Return the designated
5278         general purpose registers for floating-point values returned in
5279         MIPS16 mode.
5280         (mips_o64_return_value): Likewise.
5281         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5282         (ppc_sysv_abi_broken_return_value): Likewise.
5283         (ppc64_sysv_abi_return_value): Likewise.
5284         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5285         value instead of struct type for the function requested.
5286         * amd64-tdep.c (amd64_return_value): Likewise.
5287         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5288         * arm-tdep.c (arm_return_value): Likewise.
5289         * avr-tdep.c (avr_return_value): Likewise.
5290         * bfin-tdep.c (bfin_return_value): Likewise.
5291         * cris-tdep.c (cris_return_value): Likewise.
5292         * frv-tdep.c (frv_return_value): Likewise.
5293         * h8300-tdep.c (h8300_return_value): Likewise.
5294         (h8300h_return_value): Likewise.
5295         * hppa-tdep.c (hppa32_return_value): Likewise.
5296         (hppa64_return_value): Likewise.
5297         * i386-tdep.c (i386_return_value): Likewise.
5298         * ia64-tdep.c (ia64_return_value): Likewise.
5299         * iq2000-tdep.c (iq2000_return_value): Likewise.
5300         * lm32-tdep.c (lm32_return_value): Likewise.
5301         * m32c-tdep.c (m32c_return_value): Likewise.
5302         * m32r-tdep.c (m32r_return_value): Likewise.
5303         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5304         * m68k-tdep.c (m68k_return_value): Likewise.
5305         (m68k_svr4_return_value): Likewise.
5306         * m88k-tdep.c (m88k_return_value): Likewise.
5307         * mep-tdep.c (mep_return_value): Likewise.
5308         * microblaze-tdep.c (microblaze_return_value): Likewise.
5309         * mn10300-tdep.c (mn10300_return_value): Likewise.
5310         * moxie-tdep.c (moxie_return_value): Likewise.
5311         * mt-tdep.c (mt_return_value): Likewise.
5312         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5313         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5314         (ppc_sysv_abi_broken_return_value): Likewise.
5315         (ppc64_sysv_abi_return_value): Likewise.
5316         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5317         * rl78-tdep.c (rl78_return_value): Likewise.
5318         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5319         * rx-tdep.c (rx_return_value): Likewise.
5320         * s390-tdep.c (s390_return_value): Likewise.
5321         * score-tdep.c (score_return_value): Likewise.
5322         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5323         (sh_return_value_fpu): Likewise.
5324         * sh64-tdep.c (sh64_return_value): Likewise.
5325         * sparc-tdep.c (sparc32_return_value): Likewise.
5326         * sparc64-tdep.c (sparc64_return_value): Likewise.
5327         * spu-tdep.c (spu_return_value): Likewise.
5328         * tic6x-tdep.c (tic6x_return_value): Likewise.
5329         * v850-tdep.c (v850_return_value): Likewise.
5330         * vax-tdep.c (vax_return_value): Likewise.
5331         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5332         * xtensa-tdep.c (xtensa_return_value): Likewise.
5333         * gdbarch.c: Regenerate.
5334         * gdbarch.h: Regenerate.
5335
5336 2012-05-15  Tom Tromey  <tromey@redhat.com>
5337
5338         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5339
5340 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5341
5342         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5343         of command in two error message.
5344
5345 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5346
5347         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5348
5349 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5350
5351         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5352
5353 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5354
5355         * NEWS (show auto-load scripts-directory): Add forgotten command.
5356
5357 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5358
5359         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5360         parameters.
5361
5362 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5363
5364         * amd64-tdep.c: Include features/i386/x32.c and
5365         features/i386/x32-avx.c.
5366         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5367         initialize_tdesc_x32_avx.
5368
5369 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5370
5371         Add dynamic printf.
5372         * breakpoint.h (enum bptype): New type bp_dprintf.
5373         (struct breakpoint): New field extra_string.
5374         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5375         (create_breakpoint): Add extra_string arg.
5376         * breakpoint.c (dprintf_breakpoint_ops): New.
5377         (is_breakpoint): Add bp_dprintf.
5378         (bpstat_what): Add dprintf case.
5379         (bptype_string): Ditto.
5380         (print_one_breakpoint_location): Ditto.
5381         (init_bp_location): Ditto.
5382         (bkpt_print_mention): Ditto.
5383         (dprintf_style_enums): New array.
5384         (dprintf_style): New global.
5385         (dprintf_function): New global.
5386         (dprintf_channel): New global.
5387         (update_dprintf_command_list): New function.
5388         (update_dprintf_commands): New function.
5389         (init_breakpoint_sal): Add extra_string argument, handle it.
5390         (create_breakpoint_sal): Add extra_string argument.
5391         (create_breakpoints_sal): Add extra_string argument, update callers.
5392         (find_condition_and_thread): Add extra argument.
5393         (create_breakpoint): Add extra_string argument, record it.
5394         (dprintf_command): New function.
5395         (break_command_1): Add arg to create_breakpoint call.
5396         (handle_gnu_v3_exceptions): Ditto.
5397         (trace_command): Ditto.
5398         (ftrace_command): Ditto.
5399         (strace_command): Ditto.
5400         (bkpt_print_mention): Add dprintf case.
5401         (create_breakpoint_sal_default): Add extra_string argument.
5402         (_initialize_breakpoint): Add new commands.
5403         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5404         * python/py-breakpoint.c (bppy_init): Ditto.
5405         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5406
5407 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5408
5409         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5410
5411 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5412
5413         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5414         unsigned long long.
5415
5416 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5417
5418         Add a new function gdb.find_pc_line to the Python API.
5419         * NEWS (Python Scripting): Add entry about the new function.
5420         * python/python.c (gdbpy_find_pc_line): New function which
5421         implements gdb.find_pc_line.
5422         (GdbMethods): Add entry for the new function.
5423
5424 2012-05-12  Pedro Alves  <palves@redhat.com>
5425
5426         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5427         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5428
5429 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5430
5431         * inferior.c: Include completer.h
5432         (initialize_inferiors): Set completer of add-inferior to
5433         filename_completer.
5434
5435 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5436
5437         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5438         gdbarch_ptr_bit for x32 core dump.
5439
5440 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5441
5442         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5443         and features/i386/x32-avx-linux.c.
5444
5445 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5446             Kwok Cheung Yeung  <kcy@codesourcery.com>
5447
5448         * NEWS: Describe new info os commands.
5449         * common/linux-osdata.c (PID_T, TIME_T): Define.
5450         (MAX_PID_T_STRLEN): New.
5451         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5452         MAX_PID_T_STRLEN.
5453         (command_from_pid): Add comment.  Change to use PID_T.
5454         (commandline_from_pid):  Change to use PID_T.
5455         (user_from_pid): Add comment.
5456         (get_process_owner): Add comment. Change to use PID_T and
5457         MAX_PID_T_STRLEN.
5458         (get_number_of_cpu_cores): Add comment.
5459         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5460         MAX_PID_T_STRLEN.
5461         (linux_xfer_osdata_processes): Change to use PID_T and
5462         MAX_PID_T_STRLEN.
5463         (compare_processes): New function.
5464         (linux_xfer_osdata_processgroups): New function.
5465         (linux_xfer_osdata_threads): Change to use PID_T.
5466         (linux_xfer_osdata_fds): New function.
5467         (format_socket_state, print_sockets): New functions.
5468         (union socket_addr): New union.
5469         (linux_xfer_osdata_isockets): New function.
5470         (time_from_time_t, group_from_gid): New functions.
5471         (linux_xfer_osdata_shm): New function.
5472         (linux_xfer_osdata_sem): New function.
5473         (linux_xfer_osdata_msg): New function.
5474         (linux_xfer_osdata_modules): New function.
5475         (osdata_table): Add new entries.
5476         * common/buffer.c (buffer_xml_printf): Add support for long and
5477         long long format specifiers.
5478
5479 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5480
5481         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5482         (tdesc_x32_avx_linux): Likewise.
5483
5484 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5485
5486         Implement multi-component --with-auto-load-dir.
5487         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5488         entries.
5489         (--with-auto-load-safe-path): Update the default value description.
5490         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5491         New.
5492         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5493         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5494         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5495         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5496         "set auto-load scripts-directory".
5497         * config.in: Regenerate.
5498         * configure: Regenerate.
5499         * configure.ac (--with-auto-load-dir): New configure option.
5500         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5501
5502 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5503
5504         Provide $ddir substitution for --with-auto-load-safe-path.
5505         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5506         entries.
5507         * auto-load.c: Include observer.h.
5508         (auto_load_safe_path_vec_update): Call substitute_path_component for
5509         each component.  New variable ddir_subst.
5510         (auto_load_gdb_datadir_changed): New function.
5511         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5512         AUTO_LOAD_SAFE_PATH.  New comment.
5513         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5514         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5515         * config.in: Regenerate.
5516         * configure: Regenerate.
5517         * configure.ac (--auto-load-safe-path): Rename
5518         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5519         GDB_DATADIR/auto-load.
5520         * defs.h (substitute_path_component): New declaration.
5521         * top.c: Include observer.h.
5522         (set_gdb_datadir): New function.
5523         (init_main): Install it for "set data-directory".
5524         * utils.c (substitute_path_component): New function.
5525
5526 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5527
5528         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5529         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5530         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5531         DEBUG_FILE_DIRECTORY.
5532
5533 2012-05-10  Tom Tromey  <tromey@redhat.com>
5534
5535         * dwarf2read.c (recursively_write_psymbols): New function.
5536         (write_psymtabs_to_index): Use it.
5537
5538         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5539         field.
5540         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5541         (load_partial_comp_unit): Update.
5542         (queue_comp_unit): Add argument 'pretend_language'.
5543         (process_queue): Update.
5544         (psymtab_to_symtab_1): Skip dependencies that have a user.
5545         (load_partial_comp_unit_reader): Give meaning to the 'data'
5546         argument.
5547         (load_full_comp_unit): Add 'pretend_language' argument.
5548         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5549         language on CU.
5550         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5551         Update.
5552         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5553         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5554         Update.
5555         (prepare_one_comp_unit): Add 'pretend_language' argument.
5556
5557         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5558         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5559         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5560         (dw2_do_instantiate_symtab): Check whether symtab was read in
5561         before queueing.
5562         (dw2_instantiate_symtab): Add assertion.  Call
5563         process_cu_includes.
5564         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5565         (partial_symtab_p): New typedef.
5566         (set_partial_user): New function.
5567         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5568         (scan_partial_symbols): Add imported CU to imported_symtabs.
5569         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5570         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5571         (get_symtab, recursively_compute_inclusions)
5572         (compute_symtab_includes, process_cu_includes)
5573         (process_imported_unit_die): New functions.
5574         (process_die) <DW_TAG_imported_unit>: New case.
5575         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5576
5577         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5578         comment.
5579         (struct partial_die_info) <locdesc>: Remove.
5580         <d>: New field.
5581         (process_psymtab_comp_unit): Add 'read_partial' argument.
5582         Update.
5583         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5584         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5585         (add_partial_symbol): Update.
5586         (process_die): Handle DW_TAG_partial_unit.
5587         (read_file_scope): Update comment.
5588         (load_partial_dies): Handle DW_TAG_imported_unit.
5589         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5590         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5591
5592 2012-05-10  Tom Tromey  <tromey@redhat.com>
5593
5594         * cc-with-dwz.sh: New file.
5595
5596 2012-05-10  Tom Tromey  <tromey@redhat.com>
5597
5598         * symtab.h (struct symtab) <includes, user>: New fields.
5599         * block.h (struct block_iterator) <d, idx, which>: New fields.
5600         * block.c (initialize_block_iterator, find_iterator_symtab)
5601         (block_iterator_step, block_iter_name_step)
5602         (block_iter_match_step): New functions.
5603         (block_iterator_first, block_iterator_next)
5604         (block_iter_name_first, block_iter_name_next)
5605         (block_iter_match_first, block_iter_match_next): Rewrite.
5606         (get_block_symtab): New function.
5607
5608 2012-05-10  Tom Tromey  <tromey@redhat.com>
5609
5610         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5611         set_block_symtab.
5612         * jit.c (finalize_symtab): Use allocate_global_block,
5613         set_block_symtab.
5614         * buildsym.c (finish_block_internal): New function, from old
5615         finish_block.
5616         (finish_block): Rewrite.
5617         (end_symtab): Use finish_block_internal, set_block_symtab.
5618         * block.h (struct global_block): New.
5619         (allocate_global_block, set_block_symtab): Declare.
5620         * block.c (allocate_global_block, set_block_symtab): New
5621         functions.
5622
5623 2012-05-10  Tom Tromey  <tromey@redhat.com>
5624
5625         * psymtab.c (partial_map_expand_apply): Add assertion.
5626         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5627         (psymtab_to_symtab): Find unshared psymtab.
5628         (dump_psymtab): Print including psymtabs.
5629         (recursively_search_psymtabs): New function.
5630         (expand_symtabs_matching_via_partial): Use it.
5631         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5632         fields.
5633         (enum psymtab_search_status): New.
5634
5635 2012-05-10  Tom Tromey  <tromey@redhat.com>
5636
5637         * tracepoint.c (scope_info): Update.
5638         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5639         (find_pc_sect_symtab, search_symbols)
5640         (default_make_symbol_completion_list_break_on)
5641         (make_file_symbol_completion_list): Update.
5642         * symmisc.c (dump_symtab_1): Update.
5643         * stack.c (print_frame_args, iterate_over_block_locals)
5644         (print_frame_labels, iterate_over_block_arg_vars): Update.
5645         * python/py-block.c (block_object) <dict>: Remove.
5646         <block>: New field.
5647         <iter>: Change type.
5648         (blpy_iter): Update.
5649         (blpy_block_syms_iternext): Update.
5650         * psymtab.c (map_block): Use block iterators.
5651         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5652         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5653         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5654         * infrun.c (check_exception_resume): Update.
5655         * cp-support.c (make_symbol_overload_list_block): Update.
5656         * coffread.c (patch_opaque_types): Update.
5657         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5658         * block.h (struct block_iterator): New.
5659         (block_iterator_first, block_iterator_next, block_iter_name_first)
5660         (block_iter_name_next, block_iter_match_first)
5661         (block_iter_match_next): Declare.
5662         (ALL_BLOCK_SYMBOLS): Redefine.
5663         * block.c (block_iterator_first, block_iterator_next)
5664         (block_iter_name_first, block_iter_name_next)
5665         (block_iter_match_first, block_iter_match_next): New functions.
5666         * ada-lang.c (ada_add_block_symbols)
5667         (ada_make_symbol_completion_list): Use block iterator.
5668
5669 2012-05-10  Tom Tromey  <tromey@redhat.com>
5670
5671         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5672         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5673         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5674         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5675         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5676         Update.
5677
5678 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5679
5680         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5681         print-file-var-lib2.c, print-file-var-main.c and
5682         print-file-var.exp (located in gdb/testsuite/gdb.base).
5683
5684 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5685
5686         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5687         try locating the symbol in the symbol's own objfile first, before
5688         extending the search to all objfiles.
5689         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5690         out of lookup_symbol_aux_symtabs.
5691         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5692         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5693         Do not search EXCLUDE_OBJFILE.
5694         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5695         (lookup_symbol_global): Search for matches in the block's objfile
5696         first, before searching all other objfiles.
5697
5698 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5699
5700         * printcmd.c (set_command): Add pre/post inc/dec.
5701
5702 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5703
5704         * gdb.1: Document -ex option.
5705
5706 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5707
5708         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5709         * inferior.h (AT_SYMBOL): Delete.
5710
5711 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5712
5713         * mips-tdep.c (mips_push_dummy_code): New function.
5714         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5715         ON_STACK and install mips_push_dummy_code as our gdbarch
5716         push_dummy_code routine.
5717
5718 2012-05-09  Pedro Alves  <palves@redhat.com>
5719
5720         * target.c (set_maintenance_target_async_permitted): Rename to ...
5721         (set_target_async_command): ... this.
5722         (show_maintenance_target_async_permitted): Rename to ...
5723         (show_target_async_command): ... this.
5724         (initialize_targets): Adjust.
5725
5726 2012-05-08  Doug Evans  <dje@google.com>
5727
5728         * go-exp.y (classify_name): Add missing assignment of fields of
5729         yylval.ssym.
5730
5731 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5732
5733         Display the ">" prompt in interactive mode while reading canned
5734         commands, even when the current interpreter is MI.
5735
5736         * interps.c (interp_set_temp): New function.
5737
5738         * interps.h (interp_set_temp): Add prototype.
5739
5740         * cli/cli-script.c (restore_interp): New cleanup function.
5741         (read_command_lines): Temporarily override the current interpreter
5742         with CLI and arrange for restoring the original one.
5743
5744 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5745
5746         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5747
5748 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5749
5750         * probe.c (parse_probes): Move conditional to check for
5751         debuginfo files from here...
5752         * stap-probe.c (stap_get_probes): ... to here.
5753
5754 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5755             H.J. Lu  <hongjiu.lu@intel.com>
5756
5757         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5758         `movl %esp, %ebp' for the X32 ABI.
5759
5760 2012-05-07  Tom Tromey  <tromey@redhat.com>
5761
5762         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5763         get_DW_TAG_name.
5764         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5765         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5766         (dwarf_stack_op_name): Remove.
5767         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5768         (decode_locdesc): Use get_DW_OP_name.
5769         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5770         (dwarf2_compile_expr_to_ax): Likewise.
5771         (disassemble_dwarf_expression): Likewise.
5772         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5773
5774 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5775
5776         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5777         (sh_linux_sigtramp_cache): New function.
5778         (sh_linux_sigreturn_init): New function.
5779         (sh_linux_rt_sigreturn_init): New function.
5780         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5781         patterns.
5782         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5783         syscall codes.
5784         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5785         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5786         (sh_linux_init_abi): Add init calls to register new tramp_frame
5787         definitions under 32-bit SH, update comments.
5788
5789 2012-05-07  Pedro Alves  <palves@redhat.com>
5790
5791         PR gdb/10952
5792
5793         * amd64-linux-tdep.c: Include glibc-tdep.h.
5794         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5795         gdbarch_skip_solib_resolver callback.
5796
5797 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5798
5799         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5800         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5801         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5802         (add_auto_load_safe_path): Change the error message.
5803         (_initialize_auto_load): Change the "safe-path" help text.
5804         * configure: Regenerate
5805         * configure.ac (--without-auto-load-safe-path): Set
5806         WITH_AUTO_LOAD_SAFE_PATH to /.
5807
5808 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5809
5810         * stap-probe.h: Do not include unecessary `probe.h'.
5811
5812 2012-05-05  Alan Modra  <amodra@gmail.com>
5813
5814         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5815         bfd_und_section_ptr.
5816         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5817         and bfd_com_section_ptr.
5818
5819 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5820
5821         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5822
5823 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5824
5825         * windows-nat.h (segment_register_p_ftype): New typedef.
5826         (windows_set_segment_register_p): Add declaration.
5827         * windows-nat.c (segment_register_p): New static global.
5828         (windows_set_segment_register_p): New function.
5829         (do_windows_fetch_inferior_registers): Add special handling
5830         for segment registers.
5831         * amd64-windows-nat.c: #include "amd64-tdep.h".
5832         (amd64_windows_segment_register_p): New function.
5833         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5834         * i386-windows-nat.c: #include "i386-tdep.h".
5835         (i386_windows_segment_register_p): New function.
5836         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5837
5838 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5839
5840         * printcmd.c (set_command): Emit a warning if the expression is not
5841         an assignment.
5842
5843 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5844
5845         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5846         Make static.
5847
5848 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5849
5850         * stap-probe.c (stap_is_operator): Change declaration.
5851         (stap_get_opcode): Change return value.
5852         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5853         `stap_parse_argument_1'.
5854
5855 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5856
5857         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5858         debug log.
5859
5860 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5861
5862         Add two new methods global_block and static_block to gdb.Symtab
5863         objects.
5864         * NEWS (Python scripting): Add entry about the new methods.
5865         * python/py-symtab.c (stpy_global_block): New function which
5866         implements the gdb.Symtab.global_block() method.
5867         (stpy_static_block): New function which implements the
5868         gdb.Symtab.static_block() method.
5869         (symtab_object_methods): Add entries for the two new methods.
5870
5871 2012-05-03  Doug Evans  <dje@google.com>
5872
5873         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5874         files.
5875
5876 2012-05-03  Yao Qi  <yao@codesourcery.com>
5877
5878         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5879         space.
5880         (i386_process_record): Ditto.
5881
5882 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5883
5884         * infcall.c (unwind_on_signal_p): Make static.
5885
5886 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5887
5888         * sol-thread.c (solaris_pid_to_str): Make static.
5889         (_initialize_sol_thread): Add prototype.
5890
5891 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
5892
5893         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5894
5895 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
5896
5897         * MAINTAINERS: Remove myself.
5898
5899 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5900
5901         Fix --without-auto-load-safe-path for MS-Windows host platform.
5902         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5903
5904 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
5905
5906         * gdb_curses.h: Undefine KEY_EVENT before including curses
5907         headers.  Move "#undef MOUSE_MOVED" before any curses header
5908         inclusion.
5909
5910 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5911
5912         * features/i386/i386-mmx-linux.c: Regenerate.
5913         * features/rs6000/powerpc-32.c: Likewise.
5914         * features/rs6000/powerpc-32l.c: Likewise.
5915         * features/rs6000/powerpc-403.c: Likewise.
5916         * features/rs6000/powerpc-403gc.c: Likewise.
5917         * features/rs6000/powerpc-405.c: Likewise.
5918         * features/rs6000/powerpc-505.c: Likewise.
5919         * features/rs6000/powerpc-601.c: Likewise.
5920         * features/rs6000/powerpc-602.c: Likewise.
5921         * features/rs6000/powerpc-603.c: Likewise.
5922         * features/rs6000/powerpc-604.c: Likewise.
5923         * features/rs6000/powerpc-64.c: Likewise.
5924         * features/rs6000/powerpc-64l.c: Likewise.
5925         * features/rs6000/powerpc-750.c: Likewise.
5926         * features/rs6000/powerpc-860.c: Likewise.
5927         * features/rs6000/powerpc-e500.c: Likewise.
5928         * features/rs6000/powerpc-e500l.c: Likewise.
5929         * features/rs6000/powerpc-isa205-32l.c: Likewise.
5930         * features/rs6000/powerpc-isa205-64l.c: Likewise.
5931         * features/rs6000/rs6000.c: Likewise.
5932
5933 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
5934
5935         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5936         variable.
5937         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5938         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5939         (stap_parse_argument) <e>: Likewise.
5940         (handle_stap_probe) <byte_order>: Likewise.
5941
5942 2012-04-30  Doug Evans  <dje@google.com>
5943
5944         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5945         init_and_read_dies_worker.  All callers updated.
5946         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
5947         replaced with init_cutu_and_read_dies.
5948         (load_partial_comp_unit): Pass 1 for use_existing_cu.
5949         (find_partial_die): Remove FIXME.  Don't free current CU.
5950
5951 2012-04-30  Sterling Augustine  <saugustine@google.com>
5952
5953         * contrib: New directory.
5954         * contrib/test_pubnames_and_indexes.py: New file.
5955
5956 2012-04-30  Doug Evans  <dje@google.com>
5957
5958         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5959         All callers updated.
5960         (init_cu_die_reader): Verify the section is non-empty.
5961         (dwarf_decode_line_header): Don't dereference section->asection
5962         until we know the section is present.
5963
5964 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5965
5966         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5967         probes.
5968
5969 2012-04-29  Yao Qi  <yao@codesourcery.com>
5970
5971         * gdb-code-style.el: New hook gdb-markup-hook
5972         and gdb-comment-hook.
5973
5974 2012-04-28  Doug Evans  <dje@google.com>
5975
5976         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
5977         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5978         objfile->obfd.
5979         * symfile.h (dwarf2_debug_sections): New member addr.
5980         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5981         (ctx_no_get_addr_index): New function.
5982         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5983         (ctx_no_get_addr_index): Declare.
5984         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5985         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5986         (dwarf_expr_ctx_funcs): Update.
5987         (needs_get_addr_index): New function.
5988         (needs_frame_ctx_funcs): Update.
5989         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5990         * dwarf2read.c: #include "gdbcore.h".
5991         (dwarf2_per_objfile): New members addr, dwo_files.
5992         (dwarf2_elf_names): Add entry for addr.
5993         (struct dwo_section_names): New type.
5994         (dwo_section_names): New static global.
5995         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5996         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5997         old debug_types_section member updated to use this.
5998         Rename member debug_types_section to info_or_types_section,
5999         all uses updated.
6000         (signatured_type): Rename member type_offset to type_offset_in_tu,
6001         all uses updated.  New member type_offset_in_section.
6002         (struct dwo_sections): New type.
6003         (struct dwo_unit): New type.
6004         (struct dwo_file): New type.
6005         (die_reader_specs): New member dwo_file.
6006         (dwarf2_locate_sections): Watch for .debug_addr.
6007         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6008         (dwarf2_read_section): Get bfd of section from bfd's asection,
6009         instead of objfile.
6010         (create_cus_from_index): Initialize the_cu->info_or_types_section.
6011         (create_signatured_type_table_from_index): Initialize
6012         sig_type->info_or_types_section.
6013         (dw2_get_file_names): Statement lists for type units with DWO files
6014         live in the DWO file.
6015         (create_debug_types_hash_table): New function.
6016         (create_all_type_units): Rewrite.
6017         (init_cu_die_reader): New arg dwo_file, all callers updated.
6018         (init_and_read_dies_worker): Get section from
6019         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
6020         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6021         continue reading the CU/TU from there.
6022         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6023         updated.  Get section from this_cu->info_or_types_section.
6024         (create_all_comp_units): Initialize this_cu->info_or_types_section.
6025         (skip_one_die): New cases DW_FORM_GNU_addr_index,
6026         DW_FORM_GNU_str_index.
6027         (hash_dwo_file, eq_dwo_file): New functions.
6028         (allocate_dwo_file_hash_table): New function.
6029         (hash_dwo_unit, eq_dwo_unit): New functions.
6030         (allocate_dwo_unit_table): New function.
6031         (dwarf2_locate_dwo_sections): New function.
6032         (struct create_dwo_info_table_data): New type.
6033         (create_debug_info_hash_table_reader): New function.
6034         (create_debug_info_hash_table): New function.
6035         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6036         (lookup_dwo_file): New function.
6037         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6038         (free_dwo_file, free_dwo_file_cleanup): New functions.
6039         (free_dwo_file_from_slot, free_dwo_files): New functions.
6040         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6041         (dwarf2_record_block_ranges): Ditto.
6042         (read_partial_die): Ditto.
6043         (process_enumeration_scope): Update to use type_offset_in_section.
6044         (read_full_die_1): New function.
6045         (read_full_die): Rewrite.
6046         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6047         DW_FORM_GNU_str_index.
6048         (read_addr_index_1, read_addr_index): New functions.
6049         (read_addr_index_from_leb128): New function.
6050         (struct dwarf2_read_addr_index_data): New type.
6051         (dwarf2_read_addr_index_reader): New function.
6052         (dwarf2_read_addr_index): New function.
6053         (read_str_index): New function.
6054         (leb128_size): New function.
6055         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6056         If processing a type unit from a DWO file, get the line section
6057         from the DWO file.
6058         (var_decode_location): Watch for DW_OP_GNU_addr_index.
6059         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6060         DW_FORM_GNU_str_index.
6061         (lookup_die_type): Check whether section offset of type's die is
6062         known before looking it up.  Remove assert.  Condition can
6063         legimately happen for inter-cu type references.
6064         (dwarf_attr_name): Handle Fission attributes.
6065         (dwarf_form_name): Handle Fission forms.
6066         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6067         DW_FORM_GNU_str_index.
6068         (follow_die_sig): Update to use type_offset_in_section.
6069         (decode_locdesc): New case DW_OP_GNU_addr_index.
6070         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6071         DW_FORM_GNU_str_index.
6072         (cu_debug_loc_section): New function.
6073         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6074         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6075         Free DWO files if present.
6076         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6077
6078         Refactor DIE reading.
6079         * dwarf2read.c (dwarf2_per_objfile): Replace members
6080         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6081         (die_reader_specs): New member "die_section".  Temporarily make
6082         member "buffer" non-const, pending constifying all info_ptr uses.
6083         (die_reader_func_ftype): New typedef.
6084         (dw2_get_file_names_reader): New function.
6085         (dw2_get_file_names): Rewrite.
6086         (read_and_check_type_unit_head): Rename arg type_offset to
6087         type_offset_in_tu.
6088         (create_all_type_units): Improve debugging message.
6089         Improve dummy type unit check.
6090         (init_cu_die_reader): New arg "section".  All callers updated.
6091         (init_and_read_dies_worker): New function.
6092         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6093         (init_cutu_and_read_dies_no_follow): New function.
6094         (init_cutu_and_read_dies_simple): New function.
6095         (process_psymtab_comp_unit_reader): New function.
6096         (process_psymtab_comp_unit): Delete args section,
6097         is_debug_types_section.  Rewrite.  All callers updated.
6098         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6099         All callers updated.  Rewrite.
6100         (load_partial_comp_unit_reader): New function.
6101         (load_partial_comp_unit): Rewrite.
6102         (skip_children): New arg reader.  Delete args buffer, cu.
6103         All callers updated.
6104         (skip_one_die): New arg reader.  Delete args buffer, cu.
6105         All callers updated.
6106         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6107         All callers updated.
6108         (load_full_comp_unit_reader): New function.
6109         (load_full_comp_unit): Rewrite.
6110         (read_comp_unit): Delete.
6111         (read_die_and_children_1): Delete, contents moved ...
6112         (read_die_and_children): ... here.
6113         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6114         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6115         All callers updated.
6116         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6117         All callers updated.
6118         (find_partial_die): Rewrite load_all_dies support.
6119         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6120         All callers updated.
6121         (read_attribute): New arg reader.  Delete args abfd, cu.
6122         All callers updated.
6123         (load_full_type_unit): Add assert.
6124         (read_signatured_type_reader): New function.
6125         (read_signatured_type): Rewrite.
6126         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6127         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6128         All callers updated.  Set per_cu->cu = NULL after freeing it.
6129         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6130         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6131         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6132         (set_die_type): Update.
6133         (get_die_type_at_offset): Update.
6134         (read_file_scope): Call prepare_one_comp_unit.
6135         (read_type_unit_scope): Ditto.
6136         (prepare_one_comp_unit): Set producer if present.
6137
6138 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6139
6140         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6141          gettext function on `error'.
6142
6143 2012-04-27  Doug Evans  <dje@google.com>
6144
6145         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6146         is empty.
6147
6148 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6149             Tom Tromey  <tromey@redhat.com>
6150
6151         * breakpoint.c (struct breakpoint_objfile_data)
6152         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6153         <exception_probes>: New fields.
6154         (free_breakpoint_probes): New function.
6155         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6156         `_Unwind_DebugHook'.
6157         (create_exception_master_breakpoint): Likewise.
6158         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6159         * infrun.c: Including necessary header files for handling SystemTap
6160         probes.
6161         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6162         via SystemTap probes.
6163         (check_exception_resume): Remove `func' argument.  Handle exception
6164         unwinding breakpoint set via a SystemTap probe.
6165         (insert_exception_resume_from_probe): New function.
6166
6167 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6168             Tom Tromey  <tromey@redhat.com>
6169             Jan Kratochvil  <jan.kratochvil@redhat.com>
6170
6171         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6172         (COMMON_OBS): Likewise.
6173         (HFILES_NO_SRCDIR): Add `probe'.
6174         * NEWS: Mention support for static and SystemTap probes.
6175         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6176         SystemTap probes' arguments parser.
6177         * arm-linux-tdep.c: Including headers needed to perform the parsing
6178         of SystemTap probes' arguments.
6179         (arm_stap_is_single_operand): New function.
6180         (arm_stap_parse_special_token): Likewise.
6181         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6182         probes' arguments parser.
6183         * ax-gdb.c (require_rvalue): Removing static declaration.
6184         (gen_expr): Likewise.
6185         * ax-gdb.h (gen_expr): Declaring function.
6186         (require_rvalue): Likewise.
6187         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6188         (bkpt_probe_breakpoint_ops): New variable.
6189         (momentary_breakpoint_from_master): Set the `probe' value.
6190         (add_location_to_breakpoint): Likewise.
6191         (break_command_1): Using proper breakpoint_ops according to the
6192         argument passed by the user in the command line.
6193         (bkpt_probe_insert_location): New function.
6194         (bkpt_probe_remove_location): Likewise.
6195         (bkpt_probe_create_sals_from_address): Likewise.
6196         (bkpt_probe_decode_linespec): Likewise.
6197         (tracepoint_probe_create_sals_from_address): Likewise.
6198         (tracepoint_probe_decode_linespec): Likewise.
6199         (tracepoint_probe_breakpoint_ops): New variable.
6200         (trace_command): Using proper breakpoint_ops according to the
6201         argument passed by the user in the command line.
6202         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6203         static probes on breakpoints and tracepoints.
6204         * breakpoint.h (struct bp_location) <probe>: New field.
6205         * cli-utils.c (skip_spaces_const): New function.
6206         (extract_arg): Likewise.
6207         * cli-utils.h (skip_spaces_const): Likewise.
6208         (extract_arg): Likewise.
6209         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6210         * configure.ac: Append `stap-probe.o' to be generated when ELF
6211         support is present.
6212         * configure: Regenerate.
6213         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6214         * elfread.c: Include `probe.h' and `arch-utils.h'.
6215         (probe_key): New variable.
6216         (elf_get_probes): New function.
6217         (elf_get_probe_argument_count): Likewise.
6218         (elf_evaluate_probe_argument): Likewise.
6219         (elf_compile_to_ax): Likewise.
6220         (elf_symfile_relocate_probe): Likewise.
6221         (stap_probe_key_free): Likewise.
6222         (elf_probe_fns): New variable.
6223         (elf_sym_fns): Add `sym_probe_fns' value.
6224         (elf_sym_fns_lazy_psyms): Likewise.
6225         (elf_sym_fns_gdb_index): Likewise.
6226         (_initialize_elfread): Initialize objfile cache for static
6227         probes.
6228         * gdb_vecs.h (struct probe): New forward declaration.
6229         (probe_p): New VEC declaration.
6230         * gdbarch.c: Regenerate.
6231         * gdbarch.h: Regenerate.
6232         * gdbarch.sh (stap_integer_prefix): New variable.
6233         (stap_integer_suffix): Likewise.
6234         (stap_register_prefix): Likewise.
6235         (stap_register_suffix): Likewise.
6236         (stap_register_indirection_prefix): Likewise.
6237         (stap_register_indirection_suffix): Likewise.
6238         (stap_gdb_register_prefix): Likewise.
6239         (stap_gdb_register_suffix): Likewise.
6240         (stap_is_single_operand): New function.
6241         (stap_parse_special_token): Likewise.
6242         (struct stap_parse_info): Forward declaration.
6243         * i386-tdep.c: Including headers needed to perform the parsing
6244         of SystemTap probes' arguments.
6245         (i386_stap_is_single_operand): New function.
6246         (i386_stap_parse_special_token): Likewise.
6247         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6248         probes' arguments parser.
6249         * i386-tdep.h (i386_stap_is_single_operand): New function.
6250         (i386_stap_parse_special_token): Likewise.
6251         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6252         * mipsread.c (ecoff_sym_fns): Likewise.
6253         * objfiles.c (objfile_relocate1): Support relocation for static
6254         probes.
6255         * parse.c (prefixify_expression): Remove static declaration.
6256         (initialize_expout): Likewise.
6257         (reallocate_expout): Likewise.
6258         * parser-defs.h (initialize_expout): Declare function.
6259         (reallocate_expout): Likewise.
6260         (prefixify_expression): Likewise.
6261         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6262         of SystemTap probes' arguments.
6263         (ppc_stap_is_single_operand): New function.
6264         (ppc_stap_parse_special_token): Likewise.
6265         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6266         probes' arguments parser.
6267         * probe.c: New file, for generic statically defined probe support.
6268         * probe.h: Likewise.
6269         * s390-tdep.c: Including headers needed to perform the parsing of
6270         SystemTap probes' arguments.
6271         (s390_stap_is_single_operand): New function.
6272         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6273         probes' arguments parser.
6274         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6275         * stap-probe.c: New file, for SystemTap probe support.
6276         * stap-probe.h: Likewise.
6277         * symfile.h: Include `gdb_vecs.h'.
6278         (struct sym_probe_fns): New struct.
6279         (struct sym_fns) <sym_probe_fns>: New field.
6280         * symtab.c (init_sal): Initialize `probe' field.
6281         * symtab.h (struct probe): Forward declaration.
6282         (struct symtab_and_line) <probe>: New field.
6283         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6284         locations.
6285         (stop_tracing): Likewise.
6286         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6287
6288 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6289             Tom Tromey  <tromey@redhat.com>
6290
6291         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6292         and to compile agent expressions.
6293         * infrun.c (siginfo_make_value): New argument `ignore'.
6294         (siginfo_funcs): New struct.
6295         (_initialize_infrun): New argument when calling
6296         `create_internalvar_type_lazy'.
6297         * thread.c (thread_id_make_value): New argument `ignore'.
6298         (thread_funcs): New struct.
6299         (_initialize_thread): New argument when calling
6300         `create_internalvar_type_lazy'.
6301         * tracepoint.c (sdata_make_value): New argument `ignore'.
6302         (sdata_funcs): New struct.
6303         (_initialize_tracepoint): New argument when calling
6304         `create_internalvar_type_lazy'.
6305         * value.c (make_value): New struct.
6306         (create_internalvar_type_lazy): New argument `data'.
6307         (compile_internalvar_to_ax): New function.
6308         (value_of_internalvar): Properly handling `make_value' case.
6309         (clear_internalvar): Likewise.
6310         (show_convenience): Adding `TRY_CATCH' block.
6311         * value.h (internalvar_make_value): Delete, replace by...
6312         (struct internalvar_funcs): ... this.
6313         (create_internalvar_type_lazy) <fun>: Delete argument.
6314         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6315         (compile_internalvar_to_ax): New function.
6316         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6317         (tlb_funcs): New struct.
6318         (_initialize_windows_tdep): New argument when calling
6319         `create_internalvar_type_lazy'.
6320
6321 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6322
6323         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6324         see whether it is an address or a constant offset from DW_AT_low_pc.
6325         (dwarf2_record_block_ranges): Likewise.
6326         (read_partial_die): Likewise.
6327
6328 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6329
6330         * MAINTAINERS (Write After Approval): Add myself to the list.
6331
6332 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6333
6334         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6335         (proc_prettyprint_signal): Likewise.
6336         (proc_prettyprint_faultset): Likewise.
6337         (proc_prettyprint_fault): Likewise.
6338         (proc_prettyprint_actionset): Likewise.
6339         (proc_prettyprint_flags): Move to new proc-flags.c section.
6340         (proc_prettyfprint_flags): New prototype.
6341         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6342         (proc_syscall, proc_cursig): Likewise.
6343         (proc_set_kill_on_last_close): Likewise.
6344         (proc_unset_kill_on_last_close): Likewise.
6345         (proc_set_watchpoint): Make static.
6346         (proc_delete_dead_threads): Likewise.
6347         (procfs_set_watchpoint): Likewise.
6348         (_initialize_procfs): Add prototype.
6349         * proc-events.c: Include proc-utils.h.
6350         (init_syscall_table): Make static.
6351         * proc-api.c (_initialize_proc_api): Add prototype.
6352         * proc-flags.c: Include proc-utils.h.
6353
6354 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6355
6356         * configure.ac: Add AC_ARG_PROGRAM.
6357         * configure: Regenerate.
6358
6359 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6360
6361         Fix DW_AT_lower_bound defaults for DWARF-4+.
6362         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6363         high.  New variable low_default_is_valid.  Implement DWARF-4+
6364         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6365         no default by the DWARF standard.
6366
6367 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6368             Maciej W. Rozycki  <macro@codesourcery.com>
6369
6370         * infrun.c (handle_inferior_event): Move the check for return
6371         trampolines ahead of the check for function trampolines.
6372         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6373         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6374         (mips_str_mips16_ret_stub): Likewise.
6375         (mips_str_call_fp_stub): Likewise.
6376         (mips_str_call_stub): Likewise.
6377         (mips_str_fn_stub): Likewise.
6378         (mips_str_pic): Likewise.
6379         (mips_in_frame_stub): New function.
6380         (mips_unwind_pc): Return the return address rather than the PC
6381         if the PC of an intermediate frame is inside a call thunk.
6382         (mips_is_stub_suffix): New function.
6383         (mips_is_stub_mode): Likewise.
6384         (mips_get_mips16_fn_stub_pc): Likewise.
6385         (mips_skip_mips16_trampoline_code): Update to handle all the
6386         currently generated stub types.  Don't recurse into __fn_stub
6387         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6388         Use cooked register accesses.
6389         (mips_in_return_stub): Reintroduce function.
6390         (mips_skip_trampoline_code): Traverse trampolines recursively.
6391         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6392
6393 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6394
6395         GDB 7.4.1 released.
6396
6397 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6398
6399         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6400         * features/arm-with-m-vfp-d16.xml: New file. Describes
6401         Cortex-M with VFPv4-sp-d16 FPU register layout.
6402         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6403         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6404         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6405         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6406         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6407
6408 2012-04-25  Doug Evans  <dje@google.com>
6409
6410         * cli/cli-decode.c (print_doc_line): Use stream instead of
6411         current_uiout.
6412
6413 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6414
6415         * features/arm-with-iwmmxt.c: Regenerate.
6416         * features/arm-with-m-fpa-layout.c: Likewise.
6417         * features/arm-with-m.c: Likewise.
6418         * features/arm-with-neon.c: Likewise.
6419         * features/arm-with-vfpv2.c: Likewise.
6420         * features/arm-with-vfpv3.c: Likewise.
6421         * features/mips-dsp-linux.c: Likewise.
6422         * features/mips-linux.c: Likewise.
6423         * features/mips64-dsp-linux.c: Likewise.
6424         * features/mips64-linux.c: Likewise.
6425         * features/s390-linux32.c: Likewise.
6426         * features/s390-linux32v1.c: Likewise.
6427         * features/s390-linux32v2.c: Likewise.
6428         * features/s390-linux64.c: Likewise.
6429         * features/s390-linux64v1.c: Likewise.
6430         * features/s390-linux64v2.c: Likewise.
6431         * features/s390x-linux64.c: Likewise.
6432         * features/s390x-linux64v1.c: Likewise.
6433         * features/s390x-linux64v2.c: Likewise.
6434         * features/tic6x-c62x-linux.c: Likewise.
6435         * features/tic6x-c62x.c: Likewise.
6436         * features/tic6x-c64x-linux.c: Likewise.
6437         * features/tic6x-c64x.c: Likewise.
6438         * features/tic6x-c64xp-linux.c: Likewise.
6439         * features/tic6x-c64xp.c: Likewise.
6440         * target-descriptions.c: Only generate `field_type' and `type'
6441         variables when needed.
6442
6443 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6444
6445         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6446
6447 2012-04-25  Doug Evans  <dje@google.com>
6448
6449         Initial pass at Go language support.
6450         * NEWS: Mention Go.
6451         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6452         go-valprint.c.
6453         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6454         (YYFILES): Add go-exp.c.
6455         (YYOBJ): Add go-exp.o.
6456         (local-maintainer-clean): Delete go-exp.c.
6457         * defs.h (enum language): Add language_go.
6458         * dwarf2read.c: #include "go-lang.h".
6459         (fixup_go_packaging): New function.
6460         (process_full_comp_unit): Call it when processing Go CUs.
6461         (dwarf2_physname): Add Go support.
6462         (read_file_scope): Handle missing language spec for GNU Go.
6463         (set_cu_language): Handle DW_LANG_Go.
6464         * go-exp.y: New file.
6465         * go-lang.h: New file.
6466         * go-lang.c: New file.
6467         * go-typeprint.c: New file.
6468         * go-valprint.c: New file.
6469         * symtab.c: #include "go-lang.h".
6470         (symbol_set_language): Handle language_go.
6471         (symbol_find_demangled_name, symbol_set_names): Ditto.
6472         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6473
6474 2012-04-24  Jim Meyering  <meyering@redhat.com>
6475
6476         avoid a few strncpy-induced buffer overruns
6477         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6478         fname and psargs before trying to concatenate.
6479         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6480         "name" before applying strchr.
6481
6482 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6483
6484         * CONTRIBUTE: Use unified diff instead of context diff when
6485         generating patches.
6486
6487 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6488
6489         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6490         code.  Handle JR.HB correctly.
6491
6492 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6493
6494         * mips-tdep.c
6495         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6496         with the other MIPS16 helpers.
6497
6498 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6499
6500         * observer.sh: Conditionally declare `args', thus cleaning up
6501         unused instances of this variable.
6502
6503 2012-04-24  Yao Qi  <yao@codesourcery.com>
6504
6505         Revert this patch to allow breakpoint always-inserted
6506         in record target.
6507         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6508         * breakpoint.c: Include record.h.
6509         (breakpoints_always_inserted_mode): Return false when the record
6510         target is in use.
6511
6512         * breakpoint.c (iterate_over_bp_locations): New.
6513         * breakpoint.h: Declare.
6514         New typedef walk_bp_location_callback.
6515         * record.c (record_open): Call record_init_record_breakpoints.
6516         (record_sync_record_breakpoints): New.
6517         (record_init_record_breakpoints): New.
6518         * NEWS: Mention supporting breakpoint always-inserted mode in
6519         record target.
6520
6521 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6522
6523         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6524         any thread.
6525
6526 2012-04-24  Yao Qi  <yao@codesourcery.com>
6527
6528         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6529         (is_catchpoint): ... it.
6530         (print_one_breakpoint_location): Caller update.
6531         * breakpoint.h: Update declaration.
6532
6533 2012-04-23  David S. Miller  <davem@davemloft.net>
6534
6535         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6536
6537 2012-04-23  Tom Tromey  <tromey@redhat.com>
6538
6539         * buildsym.c (add_free_pendings): Remove.
6540         * buildsym.h (add_free_pendings): Remove.
6541
6542 2012-04-23  Doug Evans  <dje@google.com>
6543
6544         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6545         attr.u.unsnd instead of attr.u.addr.
6546         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6547         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6548         DW_FORM_ref_udata.
6549         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6550         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6551         DW_FORM_ref_udata.
6552         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6553
6554 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6555
6556         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6557         (mips_o32_return_value): Likewise.
6558         (mips_o64_return_value): Likewise.
6559
6560 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6561
6562         * ada-lang.c (ada_evaluate_subexp): Add cases for
6563         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6564         their treatment in eval.c.
6565
6566 2012-04-21  David S. Miller  <davem@davemloft.net>
6567
6568         * sparc-tdep.c (X_DISP10): Define.
6569         (sparc_analyze_control_transfer): Handle compare-and-branch.
6570
6571 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6572
6573         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6574         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6575
6576 2012-04-20  Nigel Stephens  <nigel@mips.com>
6577             Maciej W. Rozycki  <macro@codesourcery.com>
6578
6579         * mips-tdep.c (mips_float_register_p): New function.
6580         (mips_convert_register_float_case_p): Use mips_float_register_p.
6581         (mips_register_type): Likewise.
6582         (mips_print_register): Likewise.
6583         (print_gp_register_row): Likewise.
6584         (mips_print_registers_info): Likewise.
6585
6586 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6587
6588         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6589         of mips16 symbols.
6590
6591 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6592
6593         * MAINTAINERS (Write After Approval): Add myself to the list.
6594
6595 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6596
6597         * MAINTAINERS: Update my e-mail address.
6598
6599 2012-04-20  Pedro Alves  <palves@redhat.com>
6600
6601         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6602         $srcdir.
6603         * configure: Regenerate.
6604
6605 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6606
6607         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6608         declaration.
6609         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6610
6611 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6612
6613         Fix compilation compatibility with python-2.4
6614         * python/py-type.c (convert_field): Cast ADDRSTRING for
6615         PyObject_SetAttrString as non-const.  New comment.
6616
6617 2012-04-19  Tom Tromey  <tromey@redhat.com>
6618
6619         * top.c (quit_target): Use all_cleanups.
6620         * main.c (captured_command_loop): Use all_cleanups.
6621         * exceptions.c (throw_exception): Use all_cleanups.
6622
6623 2012-04-19  Pedro Alves  <palves@redhat.com>
6624
6625         * Makefile.in (GNULIB_BUILDDIR): New.
6626         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6627         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6628         (CLEANDIRS). Remove gnulib/import.
6629         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6630         (all-lib): Ditto.
6631         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6632         (gnulib/import/Makefile): Replace gnulib/import with
6633         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6634         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6635         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6636         acx_configure_dir.m4.
6637         * acinclude.m4: Include acx_configure_dir.m4.
6638         * acx_configure_dir.m4: New file.
6639         * aclocal.m4: Regenerate.
6640         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6641         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6642         (GNULIB): New variable.
6643         (GNULIB_STDINT_H): Adjust.
6644         (AC_OUTPUT): Don't output gnulib/Makefile.
6645         * gdb/defs.h: Include build-gnulib/config.h.
6646         * aclocal.m4: Regenerate.
6647         * config.in: Regenerate.
6648         * configure: Regenerate.
6649
6650         * gnulib/Makefile.in: New file.
6651         * gnulib/configure.ac: New file.
6652         * gnulib/aclocal.m4: New file.
6653         * gnulib/config.in: New file.
6654         * gnulib/configure: New file.
6655         * gnulib/: Re-run gnulib-tool to adjust.
6656
6657 2012-04-19  Doug Evans  <dje@google.com>
6658
6659         * cleanups.h (struct cleanup): Move to cleanups.c.
6660         (make_cleanup_dtor_ftype): New typedef.
6661         (make_cleanup_dtor): Use it.
6662         (ALL_CLEANUPS): Replace with ...
6663         (all_cleanups): ... this.  Declare.  All uses updated.
6664         * cleanups.c: #include "gdb_assert.h".
6665         (sentinel_cleanup): New static global.
6666         (SENTINEL_CLEANUP): Define.
6667         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6668         (make_my_cleanup2): Assert result is non-NULL.
6669         (all_cleanups): New function.
6670         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6671         of NULL.
6672
6673 2012-04-19  Pedro Alves  <palves@redhat.com>
6674
6675         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6676         Adjust paths to gnulib imported files.
6677
6678 2012-04-19  Pedro Alves  <palves@redhat.com>
6679
6680         * gnulib/: Move whole directory ...
6681         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6682         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6683         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6684         (aclocal_m4_deps): Adjust.
6685         * aclocal.m4: Regenerate.
6686         * configure: Regenerate.
6687         * configure.ac: Adjust AC_OUTPUT output.
6688
6689 2012-04-19  Yao Qi  <yao@codesourcery.com>
6690
6691         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6692         (vec.o): New rule.
6693         * vec.c: Move it ...
6694         * common/vec.c: ... here.
6695         * vec.h: Move it ...
6696         * common/vec.h: ... here.
6697
6698 2012-04-19  Yao Qi  <yao@codesourcery.com>
6699
6700         * gdb-code-style.el: New.
6701
6702 2012-04-18  Pedro Alves  <palves@redhat.com>
6703
6704         Update gnulib from latest git.
6705         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6706
6707         * gnulib/Makefile.am: Update.
6708         * gnulib/dummy.c: Update.
6709         * gnulib/extra/arg-nonnull.h: Update.
6710         * gnulib/extra/c++defs.h: Update.
6711         * gnulib/extra/update-copyright: Update.
6712         * gnulib/extra/warn-on-use.h: Update.
6713         * gnulib/inttypes.in.h: Update.
6714         * gnulib/m4/00gnulib.m4: Update.
6715         * gnulib/m4/extensions.m4: Update.
6716         * gnulib/m4/gnulib-cache.m4: Update.
6717         * gnulib/m4/gnulib-common.m4: Update.
6718         * gnulib/m4/gnulib-comp.m4: Update.
6719         * gnulib/m4/gnulib-tool.m4: Update.
6720         * gnulib/m4/include_next.m4: Update.
6721         * gnulib/m4/inttypes-pri.m4: Update.
6722         * gnulib/m4/inttypes.m4: Update.
6723         * gnulib/m4/longlong.m4: Update.
6724         * gnulib/m4/memchr.m4: Update.
6725         * gnulib/m4/memmem.m4: Update.
6726         * gnulib/m4/mmap-anon.m4: Update.
6727         * gnulib/m4/multiarch.m4: Update.
6728         * gnulib/m4/onceonly.m4: Update.
6729         * gnulib/m4/stddef_h.m4: Update.
6730         * gnulib/m4/stdint.m4: Update.
6731         * gnulib/m4/string_h.m4: Update.
6732         * gnulib/m4/warn-on-use.m4: Update.
6733         * gnulib/m4/wchar_h.m4: Update.
6734         * gnulib/m4/wchar_t.m4: Update.
6735         * gnulib/m4/wint_t.m4: Update.
6736         * gnulib/memchr.c: Update.
6737         * gnulib/memmem.c: Update.
6738         * gnulib/stddef.in.h: Update.
6739         * gnulib/stdint.in.h: Update.
6740         * gnulib/str-two-way.h: Update.
6741         * gnulib/string.in.h: Update.
6742         * gnulib/wchar.in.h: Update.
6743
6744         * gnulib/extra/arg-nonnull.h: Delete.
6745         * gnulib/extra/c++defs.h: Delete.
6746         * gnulib/extra/warn-on-use.h: Delete.
6747         * gnulib/m4/wchar_h.m4: Delete.
6748         * gnulib/m4/wint_t.m4: Delete.
6749         * gnulib/wchar.in.h: Delete.
6750
6751         * gnulib/extra/snippets/arg-nonnull.h: New.
6752         * gnulib/extra/snippets/c++defs.h: New.
6753         * gnulib/extra/snippets/warn-on-use.h: New.
6754
6755         * aclocal.m4: Regenerate.
6756         * config.in: Regenerate.
6757         * configure: Regenerate.
6758         * gnulib/Makefile.in: Regenerate.
6759
6760 2012-04-18  Pedro Alves  <palves@redhat.com>
6761
6762         Reimport the update-copyright module from gnulib
6763         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6764
6765         * configure: Regenerate.
6766         * gnulib/Makefile.am: Update.
6767         * gnulib/Makefile.in: Regenerate.
6768         * gnulib/extra/update-copyright: Update.
6769         * gnulib/m4/gnulib-cache.m4: Update.
6770         * gnulib/m4/gnulib-comp.m4: Update.
6771
6772 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6773
6774         * configure.ac (aix): Put -lpthread into libs.
6775         * configure: Regenerate.
6776
6777 2012-04-18  Tom Tromey  <tromey@redhat.com>
6778
6779         * linespec.c (convert_linespec_to_sals): Don't use
6780         SYMBOL_OBJ_SECTION.
6781         (compare_msymbols): Arguments are minsym_and_objfile, not
6782         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6783
6784 2012-04-18  Pedro Alves  <palves@redhat.com>
6785
6786         Revert gnulib/ part of:
6787         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6788         Copyright year update in most files (performed by copyright.sh).
6789
6790 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6791
6792         Fix 64-bit constants on 32-bit hosts.
6793         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6794         from unsigned long to ULONGEST.
6795         (read_signed_leb128): Change declaration return type from long to
6796         LONGEST.
6797         (dwarf2_const_value_attr): Change declaration parameter value from long
6798         to LONGEST.
6799         (dwarf2_compute_name): Change variable value from long to LONGEST.
6800         (read_unsigned_leb128): Change return type, variable result and some
6801         casts from unsigned long to ULONGEST.
6802         (read_signed_leb128): Change return type, variable result and some
6803         casts from long to LONGEST.
6804         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6805         value from long to LONGEST.
6806         (dwarf2_const_value): Change variable value from long to LONGEST.
6807         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6808         plongest and hex_string.
6809         * symtab.h (struct general_symbol_info): Change ivalue from long to
6810         LONGEST, remove the comment.
6811         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6812         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6813
6814 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6815
6816         PR symtab/7259:
6817         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6818         * ada-lang.c (ada_discrete_type_high_bound)
6819         (ada_discrete_type_low_bound): Fix function comment.  Use
6820         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6821         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6822         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6823         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6824         Use TYPE_FIELD_ENUMVAL.
6825         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6826         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6827         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6828         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6829         TYPE_CODE_ENUM.
6830         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6831         * dwarf2read.c (process_enumeration_scope): Likewise.
6832         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6833         field.bitpos.
6834         (class StructMainTypePrettyPrinter): Support also
6835         FIELD_LOC_KIND_ENUMVAL.
6836         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6837         TYPE_CODE_ENUM.
6838         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6839         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6840         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6841         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6842         field enumval.
6843         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6844         accommodate enumval.
6845         (struct call_site): Adjust loc_kind to accommodate enumval.
6846         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6847         (TYPE_FIELD_ENUMVAL): New macros.
6848         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6849         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6850         TYPE_CODE_ENUM.
6851         * p-typeprint.c (pascal_type_print_base): Likewise.
6852         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6853         enumval.
6854         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6855         * python/py-type.c (convert_field): New variable addrstring.  Use
6856         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6857         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6858         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6859         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6860         TYPE_CODE_ENUM.
6861         * valprint.c (generic_val_print): Likewise.
6862
6863 2012-04-17  Doug Evans  <dje@google.com>
6864
6865         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6866
6867         * dwarf2read.c: Whitespace fixes.
6868         (lookup_signatured_type): Tweak comment.
6869         (get_die_type_at_offset): Fix comment.
6870
6871 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6872
6873         * xcoffread.c (xcoff_secnum_to_sections): New function.
6874         (secnum_to_section, secnum_to_bfd_section): Reimplement
6875         using xcoff_secnum_to_sections.  Rename "secnum" parameter
6876         into "n_scnum".
6877         (RECORD_MINIMAL_SYMBOL): Delete.
6878         (record_minimal_symbol): New function.
6879         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6880         by call to record_minimal_symbol and set misc_func_recorded
6881         to 1.  Set last_csect_sec to the XCOFF section index instead
6882         of GDB's section_offset index.  Update calls to
6883         prim_record_minimal_symbol_and_info to pass the BFD section
6884         as well.
6885
6886 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
6887
6888         * xcoffread.c (read_xcoff_symtab): Delete variables
6889         last_csect_val and last_csect_sec and associated code.
6890
6891 2012-04-17  Doug Evans  <dje@google.com>
6892
6893         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6894         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6895         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6896         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6897
6898         * cleanups.h: New file.
6899         * cleanups.c: New file.
6900         * Makefile.in (SFILES): Add cleanups.c.
6901         (HFILES_NO_SRCDIR): Add cleanups.h.
6902         (COMMON_OBS): Add cleanups.o.
6903         * defs.h (struct cleanup): Moved to cleanups.h.
6904         (do_cleanups,do_final_cleanups): Ditto.
6905         (discard_cleanups,discard_final_cleanups): Ditto
6906         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6907         (save_cleanups,save_final_cleanups): Ditto.
6908         (restore_cleanups,restore_final_cleanups): Ditto.
6909         (null_cleanup): Ditto.
6910         (make_my_cleanup,make_my_cleanup2): Ditto.
6911         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6912         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6913         (do_cleanups,do_final_cleanups): Ditto.
6914         (discard_cleanups,discard_final_cleanups): Ditto
6915         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6916         (save_cleanups,save_final_cleanups): Ditto.
6917         (restore_cleanups,restore_final_cleanups): Ditto.
6918         (null_cleanup): Ditto.
6919         (make_my_cleanup,make_my_cleanup2): Ditto.
6920         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6921
6922         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6923         make_my_cleanup.
6924         (make_cleanup_dyn_string_delete): Ditto.
6925         (make_cleanup_ui_file_delete): Ditto.
6926         (make_cleanup_ui_out_redirect_pop): Ditto.
6927         (make_cleanup_free_section_addr_info): Ditto.
6928         (make_cleanup_restore_integer): Ditto.
6929         (make_cleanup_unpush_target): Ditto.
6930         (make_cleanup_value_free_to_mark): Ditto.
6931         (make_cleanup_value_free): Ditto.
6932         (make_cleanup_free_so): Ditto.
6933
6934 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6935
6936         New option "set debug auto-load".
6937         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6938         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6939         (auto_load_safe_path_vec_update)
6940         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6941         if DEBUG_AUTO_LOAD.
6942         (file_is_auto_load_safe): New parameters debug_fmt and ....
6943         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6944         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6945         caller by explanatory string.
6946         (_initialize_auto_load): Register "set debug auto-load".
6947         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6948         and ....
6949         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6950         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6951         by explanatory string.
6952         * main.c (captured_main): Likewise.
6953         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6954         (source_section_scripts): Likewise.
6955
6956 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6957
6958         New option "set auto-load safe-path".
6959         * NEWS: New commands "set auto-load safe-path"
6960         and "show auto-load safe-path".
6961         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6962         (auto_load_safe_path, auto_load_safe_path_vec)
6963         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6964         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6965         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6966         (source_gdb_script_for_objfile): New variable is_safe.  Call
6967         file_is_auto_load_safe.  Return if it is not.
6968         (struct loaded_script): New field loaded.
6969         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
6970         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
6971         output "Missing" to "No".
6972         (_initialize_auto_load): New variable cmd.  Initialize
6973         auto_load_safe_path.  Register "set auto-load safe-path",
6974         "show auto-load safe-path" and "add-auto-load-safe-path".
6975         * auto-load.h (maybe_add_script): Add parameter loaded.
6976         (file_is_auto_load_safe): New declaration.
6977         * config.in: Regenerate.
6978         * configure: Regenerate.
6979         * configure.ac: New parameters --with-auto-load-safe-path
6980         and --without-auto-load-safe-path.
6981         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6982         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6983         * main.c (captured_main): Check file_is_auto_load_safe for
6984         LOCAL_GDBINIT.
6985         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6986         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
6987         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
6988         not.
6989
6990 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6991
6992         auto-load: Implementation.
6993         * NEWS: New descriptions for "info auto-load",
6994         "info auto-load gdb-scripts", "info auto-load python-scripts",
6995         "info auto-load local-gdbinit" and "info auto-load libthread-db".
6996         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6997         and "show auto-load-scripts".  New description for "set auto-load",
6998         "show auto-load", "set auto-load gdb-scripts",
6999         "show auto-load gdb-scripts", "set auto-load python-scripts",
7000         "show auto-load python-scripts", "set auto-load local-gdbinit",
7001         "show auto-load local-gdbinit", "set auto-load libthread-db" and
7002         "show auto-load libthread-db".
7003         * auto-load.c: Remove include python/python-internal.h.  Add includes
7004         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7005         cli/cli-setshow.h.
7006         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7007         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7008         (gdbpy_global_auto_load): Rename to ...
7009         (global_auto_load): ... here.
7010         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7011         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7012         (script_language_gdb, source_gdb_script_for_objfile): New.
7013         (struct loaded_script): New field language.
7014         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7015         LANGUAGE.
7016         (maybe_add_script): Add parameter language.  Drop redundant
7017         entry.full_path initialization.  Initialize entry.language and
7018         (*slot)->language.
7019         (auto_load_objfile_script): Change parameter suffix to language.
7020         Remove the call of maybe_add_script.
7021         Call language->source_script_for_objfile.
7022         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7023         New.
7024         (collect_matching_scripts): Adjust it for
7025         struct collect_matching_scripts_data.
7026         (auto_load_info_scripts_pattern_nl): New variable.
7027         (info_auto_load_scripts): Rename to ...
7028         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
7029         for struct collect_matching_scripts_data.
7030         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7031         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7032         (auto_load_show_cmdlist_get, info_auto_load_cmd)
7033         (auto_load_info_cmdlist_get): New.
7034         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7035         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
7036         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7037         "info auto-load local-gdbinit".
7038         * auto-load.h (struct script_language): New.
7039         (gdbpy_global_auto_load): Rename to ...
7040         (global_auto_load): ... here.
7041         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7042         (auto_load_local_gdbinit_loaded): New declarations.
7043         (maybe_add_script): New parameter language.
7044         (auto_load_objfile_script): Change parameter suffix to language.
7045         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7046         (auto_load_info_scripts, auto_load_set_cmdlist_get)
7047         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7048         declarations.
7049         * linux-thread-db.c: Include auto-load.h and ctype.h.
7050         (auto_load_thread_db, show_auto_load_thread_db): New.
7051         (struct thread_db_info): New field filename.
7052         (delete_thread_db_info): Call xfree for FILENAME.
7053         (try_thread_db_load): Initialize FILENAME.
7054         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7055         if !AUTO_LOAD_THREAD_DB.
7056         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7057         (_initialize_thread_db): Install auto_load_thread_db
7058         as "set auto-load libthread-db" and install info_auto_load_libthread_db
7059         as "info auto-load libthread-db".
7060         * main.c (captured_main): Rename gdbpy_global_auto_load to
7061         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7062         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7063         (print_gdb_help): Extend the help for 'local init file'.
7064         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7065         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7066         (auto_load_scripts): Rename to ...
7067         (auto_load_python_scripts): ... here, update the comment.
7068         (gdbpy_load_auto_script_for_objfile): New declaration.
7069         (show_auto_load_python_scripts, script_language_python)
7070         (gdbpy_load_auto_script_for_objfile): New.
7071         (source_section_scripts): Refactor the code.
7072         (load_auto_scripts_for_objfile): Rename to ...
7073         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7074         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7075         (info_auto_load_python_scripts): New.
7076         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7077         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7078         Register "set auto-load-scripts" as its deprecated alias.  Register
7079         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7080         its deprecated alias.
7081         (load_auto_scripts_for_objfile): Rename to ...
7082         (gdbpy_load_auto_scripts_for_objfile): ... here.
7083         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7084         (gdbpy_load_auto_scripts_for_objfile): ... here.
7085
7086 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7087
7088         auto-load: Move files.
7089         * Makefile.in (SFILES): Add auto-load.c.
7090         (HFILES_NO_SRCDIR): Add auto-load.h.
7091         (COMMON_OBS): Add auto-load.o.
7092         (distclean): Change .gdbinit for gdb-gdb.gdb.
7093         * auto-load.c: New file, with parts from python/py-auto-load.c.
7094         * auto-load.h: New file, with parts from python/python.h.
7095         * configure: Regenerate.
7096         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7097         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7098         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7099         * main.c: Include auto-load.h.
7100         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7101         command.h, observer.h and progspace.h to auto-load.c.  Add include
7102         auto-load.h.
7103         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7104         (struct loaded_script, auto_load_pspace_data)
7105         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7106         (hash_loaded_script_entry, eq_loaded_script_entry)
7107         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7108         (maybe_add_script): Move to auto-load.c.
7109         (source_section_scripts): Change maybe_add_script parameters passing,
7110         use script_not_found_warning_print.
7111         (clear_section_scripts, auto_load_objfile_script)
7112         (auto_load_new_objfile, loaded_script_ptr)
7113         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7114         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7115         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7116         auto_load_new_objfile and info_auto_load_scripts initizations to
7117         auto-load.c.
7118         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7119
7120 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7121
7122         Code cleanup.
7123         * charset.c (find_charset_names): Remove variables ix and elt.
7124         Use free_char_ptr_vec.
7125         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7126         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7127         debugdir_end.  New variable debugdir_len.
7128         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7129         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7130         declarations.
7131         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7132         and elt.  Use free_char_ptr_vec.
7133         * source.c (add_path): Remove variables argv, arg and argv_index.
7134         New variables dir_vec, back_to, ix and name.
7135         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7136         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7137         no longer expecting DIRNAME_SEPARATOR.
7138         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7139         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7140         no longer expecting DIRNAME_SEPARATOR.
7141         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7142         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7143         debugdir_end.
7144         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7145         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7146         (dirnames_to_char_ptr_vec): New functions.
7147
7148 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7149
7150         Code cleanup.
7151         * source.c (add_path): Remove always true conditional 'p == 0' and
7152         unindent its code block.
7153
7154 2012-04-17  Pedro Alves  <palves@redhat.com>
7155
7156         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7157         (FIELD_BITPOS_LVAL): ... this.
7158         (FIELD_BITPOS): New.
7159         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7160         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7161         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7162         SET_FIELD_BITPOS.
7163         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7164         SET_FIELD_BITPOS.
7165         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7166         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7167         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7168         SET_FIELD_BITPOS.
7169
7170 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7171
7172         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7173         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7174         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7175         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7176         * jv-lang.c (java_link_class_type): Likewise, once.
7177         * stabsread.c (read_enum_type): Likewise.
7178
7179 2012-04-16  Yao Qi  <yao@codesourcery.com>
7180
7181         * common/agent.c (agent_run_command): Add one more parameter `len'.
7182         Update callers.
7183         * common/agent.h: Update declaration.
7184         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7185         Update.
7186         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7187
7188 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7189
7190         PR mi/13393
7191         * value.c (value_actual_type): New function.
7192         * value.h (value_actual_type): New declaration.
7193         * varobj.c (update_type_if_necessary): New function.
7194         (varobj_create): Call value_actual_type instead of
7195         value_type.
7196         (install_dynamic_child): distinct changed and type changed MI variable
7197         objects.
7198         (update_dynamic_varobj_children): Updated for install_dynamic_child
7199         change.  All callers updated.
7200         (varobj_update): Support for MI variable object type change if
7201         the value changed and RTTI is used to determine the type.
7202         (create_child_with_value): Call value_actual_type instead of
7203         value_type.
7204         (adjust_value_for_child_access): Extended with a new parameter which
7205         specify whether the given value should be casted to enclosing type.
7206         All callers updated.
7207
7208 2012-04-14  Yao Qi  <yao@codesourcery.com>
7209
7210         Import gnulib module inttypes from git
7211         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7212         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7213         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7214         gnulib/m4/inttypes-pri.m4
7215         * aclocal.m4, config.in, configure: Regenerated.
7216         * gnulib/Makefile.am: Update.
7217         * gnulib/Makefile.in: Update.
7218         * gnulib/m4/gnulib-cache.m4: Update.
7219         * gnulib/m4/gnulib-comp.m4: Update.
7220         * gnulib/inttypes.in.h: New.
7221         * gnulib/m4/inttypes-pri.m4: New.
7222         * gnulib/m4/inttypes.m4: New.
7223
7224 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7225
7226         * infrun.c (resume): Update PC address to the real PC after
7227         preparing to do displaced stepping.
7228
7229 2012-04-12  Doug Evans  <dje@google.com>
7230
7231         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7232         All callers updated.
7233
7234 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7235
7236         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7237
7238 2012-04-12  Doug Evans  <dje@google.com>
7239
7240         * dwarf2read.c (create_all_type_units): Renamed from
7241         create_debug_types_hash_table.  All callers updated.
7242
7243         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7244         local type_sig to sig_type, type_offset to type_offset_in_tu.
7245         (hash_signatured_type): Renamed from hash_type_signature,
7246         all callers updated.
7247         (eq_signatured_type): Renamed from eq_type_signature,
7248         all callers updated.
7249         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7250         (process_enumeration_scope): Ditto.
7251         (lookup_signatured_type_at_offset): Ditto.
7252         (load_full_type_unit, read_signatured_type): Ditto.
7253
7254 2012-04-12  Yao Qi  <yao@codesourcery.com>
7255
7256         * remote.c (async_remote_interrupt): Correct function name in
7257         debug message.
7258         (async_remote_interrupt_twice): Ditto.
7259
7260 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7261
7262         * source.c (find_and_open_source): Consistently pass resulting
7263         full path through xfullpath.
7264
7265 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7266
7267         Provide more specific displaced-stepping memory error message.
7268         * infrun.c (displaced_step_prepare): New variable status.  Call
7269         target_read_memory instead of read_memory, provide more specific
7270         error message.
7271
7272 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7273
7274         PR gdb/13901
7275         * darwin-nat.c (darwin_execvp): Revert previous patch.
7276
7277 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7278
7279         PR gdb/13901
7280         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7281         in case of change.
7282
7283 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7284
7285         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7286         warning.
7287
7288 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7289
7290         New command 'explore' which helps explore values and types in
7291         scope.
7292         * NEWS: Add an entry about the new 'explore' command.
7293         * data-directory/Makefile.in: Add gdb/command/explore.py
7294         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7295         command using the GDB Python API.
7296
7297 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7298
7299         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7300         extension in jump target calculation.
7301
7302 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7303
7304         * mips-tdep.c (mips32_next_pc): Handle JALX.
7305
7306 2012-04-10  Yao Qi  <yao@codesourcery.com>
7307
7308         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7309
7310 2012-04-10  Yao Qi  <yao@codesourcery.com>
7311
7312         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7313         and gnulib/m4/gnulib-tool.m4.
7314
7315 2012-04-10  Doug Evans  <dje@google.com>
7316
7317         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7318         (load_partial_dies): Clarify comment.
7319         (find_partial_die): Support rereading type units.
7320         Clarify CU handling, if we know offset is in CU, don't search for the
7321         containing CU.  Add comment regarding memory waste.
7322
7323 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7324
7325         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7326         i386/x32-avx and i386/x32-avx-linux.
7327         (i386/x32-expedite): New.
7328         (i386/x32-linux-expedite): Likewise.
7329         (i386/x32-avx-expedite): Likewise.
7330         (i386/x32-avx-linux-expedite): Likewise.
7331         ($(outdir)/i386/x32.dat): Likewise.
7332         ($(outdir)/i386/x32-linux.dat): Likewise.
7333         ($(outdir)/i386/x32-avx.dat): Likewise.
7334         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7335
7336         * features/i386/x32-avx-linux.xml: New file.
7337         * features/i386/x32-avx.xml: Likewise.
7338         * features/i386/x32-core.xml: Likewise.
7339         * features/i386/x32-linux.xml: Likewise.
7340         * features/i386/x32.xml: Likewise.
7341
7342         * features/i386/x32-avx-linux.c: New.  Generated.
7343         * features/i386/x32-avx.c: Likewise.
7344         * features/i386/x32-linux.c: Likewise.
7345         * features/i386/x32.c: Likewise.
7346         * regformats/i386/x32-avx-linux.dat: Likewise.
7347         * regformats/i386/x32-avx.dat: Likewise.
7348         * regformats/i386/x32-linux.dat: Likewise.
7349         * regformats/i386/x32.dat: Likewise.
7350
7351 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7352
7353         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7354         code to kill the inferior.
7355
7356 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7357
7358         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7359         defines.
7360         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7361         defines.
7362         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7363         (yyvsp): New defines.
7364         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7365         defines.
7366         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7367         defines.
7368         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7369         defines.
7370         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7371         defines.
7372         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7373         defines.
7374
7375 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7376
7377         * sparc64-tdep.c (sparc64_store_arguments)
7378         (sparc64_store_arguments): Fix coding style.
7379
7380 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7381
7382         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7383         complex floats, adjust some related comments and tighten a related
7384         assertion.
7385         (sparc64_extract_return_value): Handle complex floats.
7386
7387 2012-04-07  Doug Evans  <dje@google.com>
7388
7389         * dwarf2read.c (load_partial_dies): Change condition to assert.
7390
7391 2012-04-06  Doug Evans  <dje@google.com>
7392
7393         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7394         "mov %rsp,%rbp".
7395
7396 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7397
7398         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7399         fencepost error.
7400         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7401         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7402         architecture.
7403
7404 2012-04-05  Keith Seitz  <keiths@redhat.com>
7405
7406         * linespec.c (decode_compound): Remove.
7407         (enum offset_relative_sign): New enum.
7408         (struct line_offset): New struct.
7409         (struct linespec): New struct.
7410         (struct linespec_state): Move file_symtabs,
7411         user_filename, and user_function into struct linespec.
7412         Make result an anonymous struct holding vectors of
7413         symbolp and minsym_and_objfile_d.
7414         Add language member.
7415         (enum ls_token_type): New enum.
7416         (linespec_keywords): New array.
7417         (struct ls_token): New struct.
7418         (struct ls_parser): New struct.
7419         (linespec_lexer_lex_number): New function.
7420         (linespec_lexer_lex_keyword): New function.
7421         (is_ada_operator): New function.
7422         (skip_quote_char): New function.
7423         (copy_token_string): New function.
7424         (is_closing_quote_enclosed): New function.
7425         (find_parameter_list_end): New function.
7426         (linespec_lexer_lex_string): New function.
7427         (linespec_lexer_lex_one): New function.
7428         (linespec_lexer_consume_token): New function.
7429         (linespec_lexer_peek_token): New function.
7430         (cplusplus_error): Remove unused function.
7431         (find_methods): Update comment.
7432         (find_toplevel_char): Return const.
7433         (is_objc_method_format): Remove unused function.
7434         (find_toplevel_string): New function.
7435         (is_linespec_boundary): Remove.
7436         (symbol_not_found_error): New function.
7437         (find_method_overload_end): Remove function.
7438         (unexpected_linespec_error): New function.
7439         (keep_name_info): Remove.
7440         (linespec_parse_line_offset): New function.
7441         (linespec_parse_basic): New function.
7442         (canonicalize_linespec): New function.
7443         (decode_line_internal): Remove.
7444         (create_sals_line_offset): New function adapted from
7445         decode_all_digits.
7446         (convert_linespec_to_sals): New function.
7447         (parse_linespec): New function.
7448         (linespec_parser_new): New function.
7449         (linespec_state_destructor): Change parameter type to
7450         struct linespec_state *.
7451         Add language parameter.
7452         Remove freeing of moved members.
7453         (linespec_parser_delete): New function.
7454         (decode_line_full): Use parse_linespec and linespec_parser_new.
7455         (decode_line_1): Likewise.
7456         (decode_indirect): Rename to ...
7457         (linespec_expression_to_pc): ... this and rewrite
7458         to simply find CORE_ADDR, storing this result for later
7459         conversion to SALs.
7460         (locate_first_half): Remove.
7461         (deocde_objc): Add parameter LS.
7462         Initialize new struct collect_info members.
7463         Handle minimal symbols, too.
7464         (decode_compound): Delete.
7465         (lookup_prefix_sym): Rewrite.
7466         (compare_msymbols): New function.
7467         (find_method): Rewrite.
7468         Do not call cplusplus_error.
7469         (symtabs_from_filename): Rewrite.
7470         (collect_function_symbols): Delete.
7471         (find_function_symbols): Rewrite without ARGPTR-style
7472         processing.
7473         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7474         (decode_dollar): Adapted and renamed to ...
7475         (linespec_parse_variable): ... this.
7476         (find_linespec_symbols): New function.
7477         (decode_label): Adapted and renamed to ...
7478         (find_label_symbols): ... this.
7479         (decode_digits_list_mode): Add and use LS argument.
7480         (decode_digits_ordinary): Likewise.
7481         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7482         If in list mode, allow any symbol class.  Otherwise, only
7483         permit LOC_BLOCK symbols.
7484         (minsym_found): Update comments.
7485         (search_minsyms_for_name): Do not convert the matching symbol
7486         into a SAL.  Simply push the symbol and objfile into the
7487         result vector.
7488         (decode_variable): Delete. Contents adapted into
7489         find_linespec_symbols.
7490
7491         * cp-support.c (SKIP_SPACE): Remove.
7492         (operator_tokens): Remove unused global.
7493         (cp_validate_operator): Remove.
7494         * cp-support.h (cp_validate_operator): Remove declaration.
7495
7496 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7497
7498         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7499         for TYPE_VPTR_FIELDNO.
7500         * valprint.c (valprint_check_validity): Make it global, move the
7501         function comment ...
7502         * value.h (valprint_check_validity): ... to this new declaration.
7503
7504 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7505
7506         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7507         the STATE32 api for i386 state.
7508         (i386_darwin_store_inferior_registers): Likewise.
7509
7510 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7511
7512         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7513         SS offset.
7514         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7515         format_string.
7516
7517 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7518
7519         PR gdb/13901
7520         * darwin-nat.c (darwin_execvp): Set binary preference.
7521
7522 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7523
7524         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7525
7526 2012-03-30  Tom Tromey  <tromey@redhat.com>
7527
7528         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7529         of TRY_CATCH.  Fix error handling.
7530         * python/py-value.c (convert_value_from_python): Move 'old'
7531         declaration to innermost scope.
7532
7533 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7534             Andrey Smirnov  <andrew.smirnov@gmail.com>
7535
7536         -Wshadow warning fix.
7537         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7538         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7539         Adjust code accordingly.
7540
7541 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7542
7543         * ada-lang.c (symbol_completion_add): Rename parameter
7544         "encoded" into "encoded_p".  Ajust code and documentation
7545         accordingly.
7546
7547 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7548             Andrey Smirnov  <andrew.smirnov@gmail.com>
7549
7550         -Wshadow warning fix.
7551         * ada-lang.c (symbol_completion_add): Rename parameter
7552         "wild_match" into wild_match_p.  Update code and documentation
7553         accordingly.
7554
7555 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7556
7557         * ada-lang.c (symbol_completion_match): Rename parameter
7558         "encoded" into "encoded_p".  Ajust code and documentation
7559         accordingly.
7560
7561 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7562             Andrey Smirnov  <andrew.smirnov@gmail.com>
7563
7564         -Wshadow warning fix.
7565         * ada-lang.c (symbol_completion_match): Rename parameter
7566         "wild_match" into "wild_match_p".  Adjust code and function
7567         documentation accordingly.
7568
7569 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7570             Andrey Smirnov  <andrew.smirnov@gmail.com>
7571
7572         -Wshadow warning fix.
7573         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7574         "symbol_info" into "info".  Adjust code accordingly.
7575         (ada_lookup_symbol): Likewise.
7576
7577 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7578
7579         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7580         of this function's documentation.
7581
7582 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7583             Andrey Smirnov  <andrew.smirnov@gmail.com>
7584
7585         -Wshadow warning fix.
7586         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7587         variable into "wild_match_p".  Adjust code accordingly.
7588
7589 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7590             Andrey Smirnov  <andrew.smirnov@gmail.com>
7591
7592         -Wshadow warning fix.
7593         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7594         parameter into "wild_match_p".  Adjust code accordingly.
7595         Document this parameter in the function description.
7596
7597 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7598             Andrey Smirnov  <andrew.smirnov@gmail.com>
7599
7600         -Wshadow warning fix.
7601         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7602         "wild_match" parameter to "wild_match_p" (-Wshadow).
7603
7604 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7605
7606         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7607         in function documentation.
7608
7609 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7610             Andrey Smirnov  <andrew.smirnov@gmail.com>
7611
7612         -Wshadow warning fix.
7613         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7614         variable into wild_match_p.  Adjust code accordingly.
7615
7616 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7617             Andrey Smirnov  <andrew.smirnov@gmail.com>
7618
7619         * ada-valprint.c (ada_val_print_1): Move the code handling
7620         TYPE_CODE_ENUM inside its own lexical block.  Declare
7621         variables len and val there, instead of in the function's
7622         top level block.  Avoid declaring deref_val again in a way
7623         that shadows another variable of the same name declared
7624         in one of the up-level blocks.  Just re-use the up-level
7625         variable instead.
7626
7627 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7628
7629         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7630         Replace block_found argument by symbol_info.  Adjust
7631         implementation accordingly.  Add function documentation.
7632         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7633         Fix documentation.
7634         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7635         * ada-exp.y (write_object_renaming): Adjust to new
7636         ada_lookup_encoded_symbol API.
7637
7638 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7639
7640         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7641         documentation.
7642
7643 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7644
7645         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7646         (v850_register_name): Add the mpu and fpu register names.
7647         (v850e_register_name): Add the mpu and fpu register names.
7648         (v850e2_register_name): New function.
7649         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7650         bfd_mach_v850e2v3.
7651
7652 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7653
7654         * NEWS: Add entry for Ada varobj support.
7655
7656 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7657
7658         * varobj.c (default_value_is_changeable_p): New function,
7659         extracted from varobj_value_is_changeable_p.  Add declaration.
7660         (ada_value_is_changeable_p): New function, extracted from
7661         varobj_value_is_changeable_p.  Add declaration.
7662         (struct language_specific): New field "value_is_changeable_p".
7663         (languages): Add entries for new field.
7664         (varobj_create): Set language before calling install_new_value.
7665         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7666         "value_is_changeable_p" language callback.
7667
7668 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7669
7670         * ada-varobj.h, ada-varobj.c: New files.
7671         * Makefile.in (SFILES): Add ada-varobj.c.
7672         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7673         (COMMON_OBS): Add ada-varobj.o.
7674
7675 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7676
7677         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7678         (struct language_specific): New field "value_has_mutated".
7679         (languages): Set field "value_has_mutated" in each entry of array.
7680         (varobj_value_has_mutated): New function.
7681         (varobj_udpdate): Add handling of type mutation.
7682         (value_of_root): Add handling of type mutation.
7683         (ada_value_has_mutated): New function.
7684
7685 2012-03-28  Pedro Alves  <palves@redhat.com>
7686
7687         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7688         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7689
7690 2012-03-28  Tom Tromey  <tromey@redhat.com>
7691
7692         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7693         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7694         before returning.
7695
7696 2012-03-28  Tom Tromey  <tromey@redhat.com>
7697
7698         * .dir-locals.el: New file.
7699
7700 2012-03-28  Pedro Alves  <palves@redhat.com>
7701
7702         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7703
7704 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7705
7706         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7707         handling for r0.
7708
7709 2012-03-27  Pedro Alves  <palves@redhat.com>
7710
7711         Eliminate struct ui_stream.
7712
7713         * ui-out.h (struct ui_stream): Delete.
7714         (ui_out_field_stream): Adjust prototype.
7715         (ui_out_stream_new, ui_out_stream_delete)
7716         (make_cleanup_ui_out_stream_delete): Delete declarations.
7717         * ui-out.c (ui_out_field_stream): Change prototype to take a
7718         ui_file instead of a ui_stream.  Adjust.
7719         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7720         (make_cleanup_ui_out_stream_delete): Delete.
7721         * breakpoint.c (print_breakpoint_location)
7722         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7723         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7724         * disasm.c (dump_insns): Ditto.
7725         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7726         prototype.
7727         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7728         ui_stream/ui_out_stream_new.
7729         * infcmd.c (print_return_value): Ditto.
7730         * osdata.c (info_osdata_command): Don't allocate a local
7731         ui_stream.
7732         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7733         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7734         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7735         allocate a local ui_stream.
7736         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7737         instead of ui_stream/ui_out_stream_new.
7738         (list_args_or_locals): Don't allocate a local ui_stream.
7739         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7740         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7741         ui_stream/ui_out_stream_new.
7742         * cli/cli-setshow.c (do_setshow_command): Ditto.
7743
7744 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7745
7746         * arm-linux-tdep.c (arm_linux_init_abi): Call
7747         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7748         * arm-tdep.c (arm_process_record): New function.
7749         (deallocate_reg_mem): New function.
7750         (decode_insn): New function.
7751         (thumb_record_branch): New function.
7752         (thumb_record_ldm_stm_swi(): New function.
7753         (thumb_record_misc): New function.
7754         (thumb_record_ld_st_stack): New function.
7755         (thumb_record_ld_st_imm_offset): New function.
7756         (thumb_record_ld_st_reg_offset(): New function.
7757         (thumb_record_add_sub_cmp_mov): New function.
7758         (thumb_record_shift_add_sub): New function.
7759         (arm_record_coproc_data_proc): New function.
7760         (arm_record_coproc): New function.
7761         (arm_record_b_bl): New function.
7762         (arm_record_ld_st_multiple): New function.
7763         (arm_record_ld_st_reg_offset): New function.
7764         (arm_record_ld_st_imm_offset): New function.
7765         (arm_record_data_proc_imm): New function.
7766         (arm_record_data_proc_misc_ld_str): New function.
7767         (arm_record_extension_space): New function.
7768         (arm_record_strx): New function.
7769         (sbo_sbz): New function.
7770         (struct insn_decode_record): New structure for arm insn record.
7771         (REG_ALLOC): New macro for reg allocations.
7772         (MEM_ALLOC): New macro for memory allocations.
7773         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7774
7775 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7776
7777         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7778         (store_register): Likewise.
7779
7780 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7781
7782         * MAINTAINERS (Write After Approval): Add myself to the list.
7783
7784 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7785
7786         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7787         Describe also the option "auto".
7788
7789 2012-03-22  Richard Henderson  <rth@redhat.com>
7790
7791         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7792         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7793
7794 2012-03-22  Richard Henderson  <rth@redhat.com>
7795
7796         * jit.c (jit_read_code_entry): Compute alignment and offset of
7797         int64_t member before computing entry_size.
7798
7799 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7800
7801         Python scripting: Add new method Value.referenced_value to
7802         gdb.Value which can dereference pointer as well as reference
7803         values.
7804         * NEWS: Add entry under 'Python scripting' about the new method
7805         Value.referenced_value on gdb.Value objects.
7806         * python/py-value.c (valpy_referenced_value): New function
7807         defining a new method on gdb.Value objects which can dereference
7808         pointer and reference values.
7809
7810 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7811
7812         * MAINTAINERS (Write After Approval): Add myself to the list.
7813
7814 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7815
7816         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7817         in addition to "main".
7818
7819 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7820
7821         * expression.h (op_name): Add declaration.
7822         * expprint.c (op_name): Remove declaration.  Make non-static.
7823         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7824
7825 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7826
7827         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7828         of struct siginfo.
7829         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7830         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7831         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7832         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7833         (linux_nat_get_siginfo): Likewise.
7834         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7835         (linux_nat_get_siginfo): Likewise.
7836         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7837         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7838         * procfs.c (gdb_siginfo_t): Likewise.
7839
7840 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7841
7842         * .gitignore: Ignore more files.
7843
7844 2012-03-20  Pedro Alves  <palves@redhat.com>
7845
7846         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7847         returns.
7848
7849 2012-03-20  Yao Qi  <yao@codesourcery.com>
7850
7851         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7852         comment.
7853
7854 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7855
7856         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7857         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7858         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7859         sect_offset.
7860         * dwarf2expr.h (cu_offset, sect_offset): New types.
7861         (struct dwarf_expr_context_funcs) <dwarf_call>
7862         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7863         sect_offset.
7864         (struct dwarf_expr_context) <len>: Improve the comment.
7865         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7866         cu_offset and sect_offset.
7867         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7868         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7869         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7870         * dwarf2loc.h: Include dwarf2expr.h.
7871         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7872         and sect_offset.
7873         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7874         Improve the comment.
7875         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7876         (struct signatured_type, struct line_header, struct partial_die_info)
7877         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7878         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7879         (get_die_type_at_offset, create_cus_from_index)
7880         (create_signatured_type_table_from_index, dw2_get_file_names)
7881         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7882         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7883         (create_debug_types_hash_table, process_psymtab_comp_unit)
7884         (load_partial_comp_unit, create_all_comp_units)
7885         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7886         (load_full_comp_unit, dwarf2_physname, read_import_statement)
7887         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7888         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7889         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7890         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7891         (find_partial_die, read_attribute_value, lookup_die_type)
7892         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7893         (is_ref_attr): New function comment.
7894         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7895         Use cu_offset and sect_offset.
7896         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7897         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7898         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7899         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7900         (offset_and_type_hash, offset_and_type_eq, set_die_type)
7901         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7902         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7903         sect_offset.
7904
7905 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7906
7907         Code cleanup.
7908         * python/py-auto-load.c (source_section_scripts): New variable back_to.
7909         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7910         with xfree.
7911         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7912
7913 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7914
7915         * NEWS: Describe new options --init-command=FILE, -ix and
7916         --init-eval-command=COMMAND, -iex.
7917         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7918         CMDARG_INIT_COMMAND.
7919         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
7920         "init-command", "init-eval-command", "ix" and "iex" to the variable
7921         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
7922         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7923         (print_gdb_help): Describe --init-command=FILE, -ix and
7924         --init-eval-command=COMMAND, -iex.
7925
7926 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7927
7928         Code cleanup.
7929         * main.c (struct cmdarg): Move it here from main.  Add more comments.
7930         (cmdarg_s, VEC (cmdarg_s)): New.
7931         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
7932         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
7933         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
7934         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
7935         of CMDARG.
7936
7937 2012-03-19  Tom Tromey  <tromey@redhat.com>
7938
7939         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7940
7941 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7942
7943         PR symtab/13777
7944         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7945         GCC >=4.5.
7946
7947 2012-03-16  Chris January  <chris.january@allinea.com>
7948
7949         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7950         of clear.
7951
7952 2012-03-16  Chris January  <chris.january@allinea.com>
7953
7954         * source.c (add_path): Use memmove instead of strcpy because the
7955         strings overlap.
7956
7957 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
7958
7959         * value.h (set_value_parent): Add declaration.
7960         * value.c (set_value_parent): New function.
7961         (value_address): If VALUE->PARENT is not NULL, then use it as
7962         the base address instead of VALUE->LOCATION.address.
7963         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7964         the same as OBJ's address.  Adjust V's offset accordingly.
7965         Set V's parent.
7966
7967 2012-03-16  Gary Benson  <gbenson@redhat.com>
7968
7969         PR breakpoints/10738
7970         * dwarf2read.c (use_deprecated_index_sections): New global.
7971         (struct partial_die_info): New member may_be_inlined.
7972         (read_partial_die): Set may_be_inlined where appropriate.
7973         (add_partial_subprogram): Add partial symbols for partial
7974         DIEs that may be inlined.
7975         (new_symbol_full): Add inlined subroutines to the current
7976         scope.
7977         (write_psymtabs_to_index): Bump version number.
7978         (dwarf2_read_index): Read only version 6 indices unless
7979         use_deprecated_index_sections is set.
7980         * linespec.c (symbol_and_data_callback): New structure.
7981         (iterate_inline_only): New function.
7982         (iterate_over_all_matching_symtabs): New argument
7983         "include_inline".  If nonzero, also call the callback for
7984         symbols representing inlined subroutines.
7985         (lookup_prefix_sym): Pass extra argument to the above.
7986         (find_function_symbols): Likewise.
7987         (add_matching_symbols_to_info): Likewise.
7988         * NEWS: Mention that GDB can now set breakpoints on inlined
7989         functions.
7990
7991 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7992
7993         * p-typeprint.c (pascal_type_print_method_args):
7994         Fix display of parameter of methods.
7995
7996 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7997
7998         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7999         Add missing prototype.
8000
8001 2012-03-16  Yao Qi  <yao@codesourcery.com>
8002             Jan Kratochvil  <jan.kratochvil@redhat.com>
8003
8004         Fix false compilation warning.
8005         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8006
8007 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
8008             Pedro Alves  <pedro@codesourcery.com>
8009
8010         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8011         (arm_register_g_packet_guesses): New function.
8012         (arm_gdbarch_init): Don't force a target description with
8013         registers when the executable is detected as M-profile.  Instead
8014         set gdbarch->tdep->is_m.  Register `g' packet guesses.
8015         (_initialize_arm_tdep): Initialize the new target description.
8016         * features/arm-with-m-fpa-layout.xml: New description.
8017         * features/arm-with-m-fpa-layout.c: New, generated.
8018
8019 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
8020
8021         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8022         Update function description.
8023         (insert_bp_location): Do not wipe bl->target_info out.
8024         * mem-break.c: #include "gdb_string.h".
8025         (default_memory_insert_breakpoint): Do not call target_read_memory
8026         with a pointer to the breakpoint's shadow_contents buffer.  Use
8027         a local buffer instead.
8028         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8029
8030 2012-03-15  Tom Tromey  <tromey@redhat.com>
8031
8032         * NEWS: Mention "info vtbl", not "info vtable".
8033         * cp-support.c (info_vtbl_command): Fix comment.
8034         (_initialize_cp_support): Fix text.
8035
8036 2012-03-15  Tom Tromey  <tromey@redhat.com>
8037
8038         * cp-valprint.c (cp_print_value_fields): Use
8039         print_function_pointer_address for vtable slot.
8040
8041 2012-03-15  Tom Tromey  <tromey@redhat.com>
8042
8043         * gnu-v3-abi.c (struct value_and_voffset): New.
8044         (hash_value_and_voffset, eq_value_and_voffset)
8045         (compare_value_and_voffset, compute_vtable_size)
8046         (print_one_vtable, gnuv3_print_vtable): New functions.
8047         (init_gnuv3_ops): Initialize 'print_vtable' field.
8048         * cp-support.c (info_vtbl_command): New function.
8049         (_initialize_cp_support): Add "info vtbl".
8050         * cp-abi.h (cplus_print_vtable): Declare.
8051         (struct cp_abi_ops) <print_vtable>: New field.
8052         * cp-abi.c (cplus_print_vtable): New function.
8053         * NEWS: Update.
8054
8055 2012-03-15  Tom Tromey  <tromey@redhat.com>
8056
8057         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8058         iterate_over_symbols.
8059
8060 2012-03-14  Doug Evans  <dje@google.com>
8061
8062         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8063         DW_OP_GNU_parameter_ref.
8064
8065 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8066
8067         Fix double prompt of 'interpreter-exec mi'.
8068         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8069         (mi_interpreter_resume): use it.
8070         (mi_execute_command_input_handler): New function.
8071         * mi/mi-main.c (mi_execute_command): Move prompt printing to
8072         mi_execute_command_input_handler.
8073
8074 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8075
8076         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8077         prototype.
8078         (darwin_debug_port_info): Make static.
8079         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8080         * machoread.c (_initialize_machoread): Add prototype.
8081         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8082         (i386_darwin_set_control, i386_darwin_get_control)
8083         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8084         i386_darwin_get_status, i386_darwin_get_control):
8085         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8086
8087 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8088
8089         * ax-gdb.c (gen_usual_unary): Remove special handling of
8090         enum and bool types.
8091
8092 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8093
8094         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8095
8096 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8097
8098         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8099
8100 2012-03-13  Chris January  <chris.january@allinea.com>
8101
8102         * aix-thread.c (fill_sprs): Store the floating point registers
8103         at the correct offsets into vals.
8104
8105 2012-03-13  Doug Evans  <dje@google.com>
8106
8107         * NEWS: Mention symbol-reloading has been deleted.
8108         * symfile.c (symbol_reloading): Delete.
8109         (show_symbol_reloading): Delete.
8110         (_initialize_symfile): Delete set/show symbol-reloading.
8111
8112         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8113         read_in_chain until we have successfully read it in.
8114         (load_full_comp_unit): Ditto.
8115         (read_signatured_type): Add comment.
8116
8117 2012-03-13  Chris January  <chris.january@allinea.com>
8118
8119         * stabsread.c (fix_common_block): Change type of valu argument
8120         to CORE_ADDR.
8121
8122 2012-03-13  Chris January  <chris.january@allinea.com>
8123
8124         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8125         instruction.
8126
8127 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8128
8129         * common/linux-procfs.c (linux_proc_get_int): New, from
8130         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8131         field.
8132         (linux_proc_get_tgid): Only call linux_proc_get_int.
8133         (linux_proc_get_tracerpid): New.
8134         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8135         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8136         linux_proc_pid_has_state.
8137         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8138         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8139         (linux_ptrace_attach_warnings): New.
8140         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8141         New declaration.
8142         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8143         (linux_nat_attach): New variables ex, buffer, message and message_s.
8144         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8145
8146 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8147
8148         * Makefile.in (linux-ptrace.o): New.
8149         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8150         from linux-nat.c.
8151         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8152         * common/linux-ptrace.c: New file.
8153         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8154         * config/arm/linux.mh: Likewise.
8155         * config/i386/linux.mh: Likewise.
8156         * config/i386/linux64.mh: Likewise.
8157         * config/ia64/linux.mh: Likewise.
8158         * config/m32r/linux.mh: Likewise.
8159         * config/m68k/linux.mh: Likewise.
8160         * config/mips/linux.mh: Likewise.
8161         * config/pa/linux.mh: Likewise.
8162         * config/powerpc/linux.mh: Likewise.
8163         * config/powerpc/ppc64-linux.mh: Likewise.
8164         * config/powerpc/spu-linux.mh: Likewise.
8165         * config/s390/s390.mh: Likewise.
8166         * config/sparc/linux.mh: Likewise.
8167         * config/sparc/linux64.mh: Likewise.
8168         * config/xtensa/linux.mh: Likewise.
8169         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8170         common/linux-procfs.c.
8171         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8172
8173 2012-03-13  Hui Zhu  <teawater@gmail.com>
8174             Pedro Alves  <palves@redhat.com>
8175
8176         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8177         CREATE_BREAKPOINT_FLAGS_INSERTED.
8178         (create_breakpoint_sal, create_breakpoints_sal)
8179         (base_breakpoint_create_breakpoints_sal)
8180         (tracepoint_create_breakpoints_sal)
8181         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8182         down.
8183         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8184         (ftrace_command, strace_command): Adjust.
8185         (create_tracepoint_from_upload): Pass
8186         CREATE_BREAKPOINT_FLAGS_INSERTED.
8187         * breakpoint.h (enum breakpoint_create_flags): New.
8188         (create_breakpoint): New flags parameter.
8189         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8190         * python/py-breakpoint.c (bppy_init): Adjust.
8191         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8192         * spu-tdep.c (spu_catch_start): Adjust.
8193
8194 2012-03-13  Pedro Alves  <palves@redhat.com>
8195             Hui Zhu  <teawater@gmail.com>
8196             Yao Qi  <yao@codesourcery.com>
8197
8198         * remote.c (struct remote_state): New field `starting_up'.
8199         (remote_start_remote): Set and clear it.
8200         (remote_can_download_tracepoint): If starting up, return false.
8201
8202 2012-03-13  Yao Qi  <yao@codesourcery.com>
8203
8204         * inferior.h (struct inferior): Remove fields any_syscall_count,
8205         syscalls_counts and total_syscalls_count.  Move them to new
8206         struct catch_syscall_inferior_data in breakpoint.c.
8207         * breakpoint.c: Call DEF_VEC_I(int).
8208         (struct catch_syscall_inferior_data): New.
8209         (get_catch_syscall_inferior_data): New.
8210         (catch_syscall_inferior_data_cleanup): New.
8211         (insert_catch_syscall): Update to access data in
8212         struct catch_syscall_inferior_data.
8213         (insert_catch_syscall): Likewise.
8214         (remove_catch_syscall): Likewise.
8215         (remove_catch_syscall): Likewise.
8216         (is_syscall_catchpoint_enabled): Likewise.
8217         (add_catch_command): Likewise.
8218         (_initialize_breakpoint): Register cleanup.
8219         * breakpoint.h: Removed DEF_VEC_I(int).
8220         * dwarf2loc.c: Call DEF_VEC_I(int).
8221         * mi/mi-main.c: Likewise.
8222
8223 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8224
8225         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8226
8227 2012-03-12  Chris January  <chris.january@allinea.com>
8228
8229         * aix-thread.c (_initialize_aix_thread): Add prototype.
8230         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8231         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8232
8233 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8234
8235         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8236         include of "amd64-nat.h".
8237
8238 2012-03-12  Tom Tromey  <tromey@redhat.com>
8239
8240         * buildsym.c (record_pending_block): Now static.
8241         * buildsym.h: (record_pending_block): Remove.
8242
8243 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8244
8245         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8246
8247 2012-03-09  Tom Tromey  <tromey@redhat.com>
8248
8249         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8250         producer_is_gxx_lt_4_6>: New fields.
8251         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8252
8253 2012-03-09  Tom Tromey  <tromey@redhat.com>
8254
8255         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8256
8257 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8258
8259         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8260         prototype.
8261
8262 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8263
8264         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8265
8266 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8267
8268         Fix -Wmissing-prototypes build.
8269         * arm-linux-nat.c (get_thread_id): Make it static.
8270         * xtensa-linux-nat.c (get_thread_id): Likewise.
8271
8272 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8273
8274         * server.c (process_point_options): If a conditional expression
8275         is found, only print a message if remote_debug is nonzero.
8276
8277 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8278
8279         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8280         of internal error for unknown/unsupported types.
8281
8282 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8283
8284         Fix CU relative vs. absolute DIE offsets.
8285         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8286         offset to offset_in_cu.
8287         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8288         TYPE_OFFSET.
8289         (dwarf2_fetch_die_location_block): Rename parameter offset to
8290         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8291
8292 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8293
8294         * libunwind-frame.c: Rename to ...
8295         * ia64-libunwind-tdep.c: ... here.
8296         * libunwind-frame.h: Rename to ...
8297         * ia64-libunwind-tdep.h: ... here.
8298         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8299         ia64-libunwind-tdep.h.
8300         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8301         * README (--with-libunwind): Rename to ...
8302         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8303         * config.in: Regenerate.
8304         * configure: Regenerate.
8305         * configure.ac: New option --with-libunwind-ia64, make the
8306         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8307         Remove AC_DEFINE for HAVE_LIBUNWIND.
8308         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8309         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8310         Rename libunwind-frame in the general comment.
8311         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8312         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8313         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8314         the general comment.
8315         * ia64-tdep.c: Rename libunwind-frame.h #include to
8316         ia64-libunwind-tdep.h.
8317         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8318         (ia64_libunwind_descr): Rename libunwind-frame to
8319         ia64-libunwind-tdep in these function comments.
8320         * ia64-tdep.h: Rename libunwind-frame.h #include to
8321         ia64-libunwind-tdep.h.
8322         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8323         ia64-libunwind-tdep in that data comment.
8324
8325 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8326
8327         * libunwind-frame.h (struct frame_unwind): New declaration.
8328
8329 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8330
8331         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8332         "set breakpoint condition-evaluation" command.
8333
8334 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8335
8336         * sparc-stub.c: Move to stubs/
8337         * sh-stub.c: Likewise.
8338         * m68k-stub.c: Likewise.
8339         * m32r-stub.c: Likewise.
8340         * i386-stub.c: Likewise.
8341
8342 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8343
8344         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8345         linux_get_siginfo_type.
8346
8347         * m68klinux-nat.c: Include "gdb_proc_service.h".
8348         (PTRACE_GET_THREAD_AREA): Define.
8349         (ps_get_thread_area): New function.
8350
8351 2012-03-08  Yao Qi  <yao@codesourcery.com>
8352
8353         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8354         `xsnprintf'.
8355         (remote_query_attached): Likewise.
8356         (remote_static_tracepoint_marker_at): Likewise.
8357         (remote_set_permissions): Likewise.
8358         (remote_detach_1, extended_remote_attach_1): Likewise.
8359         (send_g_packet, remote_vkill): Likewise.
8360         (extended_remote_disable_randomization): Likewise.
8361         (remote_add_target_side_condition): Likewise.
8362         (remote_insert_breakpoint): Likewise.
8363         (remote_remove_breakpoint): Likewise.
8364         (remote_insert_watchpoint): Likewise.
8365         (remote_remove_watchpoint): Likewise.
8366         (remote_insert_hw_breakpoint): Likewise.
8367         (remote_insert_hw_breakpoint): Likewise.
8368         (remote_remove_hw_breakpoint): Likewise.
8369         (remote_download_command_source): Likewise.
8370         (remote_download_tracepoint): Likewise.
8371         (remote_download_trace_state_variable): Likewise.
8372         (remote_disable_tracepoint): Likewise.
8373         (remote_trace_set_readonly_regions): Likewise.
8374         (remote_get_tracepoint_status): Likewise.
8375         (remote_trace_find): Likewise.
8376         (remote_get_trace_state_variable_value): Likewise.
8377         (remote_set_disconnected_tracing): Likewise.
8378         (remote_set_circular_trace_buffer): Likewise.
8379         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8380         (remote_use_agent): Likewise.
8381         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8382         Update callers.
8383
8384 2012-03-07  Pedro Alves  <palves@redhat.com>
8385
8386         * NEWS: Mention QProgramSignals.
8387         * inferior.h (update_signals_program_target): Declare.
8388         * infrun.c: (update_signals_program_target): New.
8389         (handle_command): Update the target of the new program signals
8390         array changes.
8391         * remote.c (PACKET_QProgramSignals): New enum.
8392         (last_program_signals_packet): New global.
8393         (remote_program_signals): New.
8394         (remote_start_remote): Update the target with the program signals
8395         list.
8396         (remote_protocol_features): Add entry for QPassSignals.
8397         (remote_open_1): Free anc clear last_program_signals_packet.
8398         (init_remote_ops): Install remote_program_signals.
8399         * target.c (update_current_target): Adjust.
8400         (target_program_signals): New.
8401         * target.h (struct target_ops) <to_program_signals>: New field.
8402         (target_program_signals): Declare.
8403
8404 2012-03-07  Pedro Alves  <palves@redhat.com>
8405
8406         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8407         extensions.
8408
8409 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8410
8411         * m68klinux-nat.c (getregs_supplies): Make static.
8412         (getfpregs_supplies): Likewise.
8413         (have_ptrace_getregs): Likewise.
8414
8415 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8416
8417         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8418         in call to get_die_type_at_offset.
8419
8420 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8421
8422         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8423         * mi/mi-cmd-disas.c: Ditto.
8424         * mi/mi-cmd-env.c: Ditto.
8425         * mi/mi-cmd-file.c: Ditto.
8426         * mi/mi-cmd-stack.c: Ditto.
8427         * mi/mi-cmd-target.c: Ditto.
8428         * mi/mi-cmd-var.c: Ditto.
8429         * mi/mi-cmds.c: Ditto.
8430         * mi/mi-cmds.h: Ditto.
8431         * mi/mi-console.c: Ditto.
8432         * mi/mi-getopt.c: Ditto.
8433         * mi/mi-getopt.h: Ditto.
8434         * mi/mi-interp.c: Ditto.
8435         * mi/mi-main.c: Ditto.
8436         * mi/mi-out.c: Ditto.
8437         * mi/mi-parse.c: Ditto.
8438         * mi/mi-parse.h: Ditto.
8439         * mi/mi-symbol-cmds.c: Ditto.
8440
8441         * mi/mi-getopt.h: Move mi_opt struct up.
8442         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8443         return.
8444         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8445
8446 2012-03-06  Tom Tromey  <tromey@redhat.com>
8447
8448         * proc-service.c (ps_pglobal_lookup): Set the current program
8449         space.
8450
8451 2012-03-06  Pedro Alves  <palves@redhat.com>
8452
8453         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8454
8455 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8456
8457         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8458
8459 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8460
8461         Code cleanup.
8462         * common/linux-osdata.c (linux_common_core_of_thread): New function
8463         comment.
8464         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8465         call by linux_common_core_of_thread.
8466         (linux_nat_core_of_thread_1): Remove.
8467         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8468         * linux-thread-db.c: Include linux-osdata.h.
8469         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8470         linux_common_core_of_thread.
8471
8472 2012-03-05  Tom Tromey  <tromey@redhat.com>
8473
8474         * value.c (value_primitive_field): Don't fetch contents for
8475         non-virtual bases.
8476
8477 2012-03-05  Tom Tromey  <tromey@redhat.com>
8478
8479         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8480
8481 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8482
8483         * s390-nat.c: Include "gregset.h".
8484
8485 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8486
8487         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8488         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8489         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8490         load also LIBUNWIND_SO_7.
8491
8492 2012-03-05  Pedro Alves  <palves@redhat.com>
8493
8494         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8495         is not NULL, and remove resulting dead code.
8496
8497 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8498
8499         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8500         prologue to sh_analyze_prologue.
8501         (sh_analyze_prologue): Make better use of such an upper limit, and
8502         generally be more cautious about accessing memory.
8503
8504 2012-03-05  Tom Tromey  <tromey@redhat.com>
8505
8506         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8507         _initialize_ia64_hpux_tdep.
8508
8509 2012-03-05  Pedro Alves  <palves@redhat.com>
8510
8511         PR gdb/13766
8512
8513         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8514         the register state is clear, supply explicit zero, instead of
8515         marking the register unavailable.
8516
8517 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8518
8519         * NEWS: Mention OpenVMS ia64 new target.
8520
8521 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8522
8523         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8524         (ia64_unw_accessors, ia64_unw_rse_accessors)
8525         (ia64_libunwind_descr): Declare.
8526         * ia64-vms-tdep.c: New file.
8527         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8528         (ia64_libunwind_descr): Make them public.
8529         * configure.tgt: Add ia64-*-*vms*.
8530         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8531         (ALLDEPFILES): Add ia64-vms-tdep.c
8532
8533 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8534
8535         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8536         * remote.c (PACKET_qXfer_uib): New enum value.
8537         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8538         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8539         (_initialize_remote): Call add_packet_config_cmd for
8540         xfer:uib packet.
8541
8542 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8543
8544         * osabi.c (gdb_osabi_names): Add OpenVMS.
8545         (generic_elf_osabi_sniffer): Likewise.
8546         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8547
8548 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8549
8550         Removed unused code.
8551         * libunwind-frame.c (libunwind_frame_unwind)
8552         (libunwind_frame_base_address): Remove.
8553         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8554
8555 2012-03-04  Yao Qi  <yao@codesourcery.com>
8556
8557         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8558         remove trailing new line.
8559         (agent_run_command, agent_run_command): Add _ markup.
8560         (agent_capability_check): Likewise.
8561
8562 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8563
8564         * breakpoint.c (set_condition_evaluation_mode): Set
8565         CONDITION_EVALUATION_MODE unconditionally.
8566
8567 2012-03-03  Yao Qi  <yao@codesourcery.com>
8568
8569         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8570         * common/agent.h: Update declaration.
8571         * inf-child.c (inf_child_use_agent): New.
8572         (inf_child_can_use_agent): New.
8573         (inf_child_target): Initialize fields `to_use_agent'
8574         and `to_can_use_agent'.
8575         * agent.c (agent_new_objfile): New.
8576         (_initialize_agent): Add agent_new_objfile to new_objfile
8577         observer.
8578
8579         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8580         New.
8581         (linux_target_install_ops): Initialize field
8582         `to_static_tracepoint_markers_by_strid'.
8583         * remote.c (free_current_marker): Move it to ...
8584         * tracepoint.c (free_current_marker): ... here.  New.
8585         (cleanup_target_stop): New.
8586         * tracepoint.h: Declare free_current_marker.
8587         * NEWS: Add one entry about `info static-tracepoint-marker'.
8588
8589 2012-03-03  Yao Qi  <yao@codesourcery.com>
8590
8591         * common/agent.c (agent_loaded_p): New.
8592         (agent_look_up_symbols): New global.
8593         * common/agent.h: Declare agent_loaded_p.
8594
8595 2012-03-03  Yao Qi  <yao@codesourcery.com>
8596
8597         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8598         (agent_capability_check, agent_capability_invalidate): New.
8599         (symbol_list): New array element.
8600         * common/agent.h (enum agent_capa): New.
8601         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8602
8603 2012-03-03  Yao Qi  <yao@codesourcery.com>
8604
8605         * target.h (struct target_ops) <to_use_agent>: New field.
8606         (struct target_ops) <to_can_use_agent>: New field.
8607         (target_use_agent, target_can_use_agent): New macro.
8608         * target.c (update_current_target): Update.
8609         * remote.c: New enum `PACKET_QAgent'.
8610         (remote_protocol_features): Add a new element.
8611         (remote_use_agent, remote_can_use_agent): New.
8612         (init_remote_ops): Initialize field `can_use_agent' with
8613         remote_can_use_agent.  Intiailize field `use_agent' with
8614         remote_use_agent.
8615         * common/agent.c (use_agent): New global.
8616         * common/agent.h: Declare it.
8617         * tracepoint.c (info_static_tracepoint_markers_command): Add
8618         comment.
8619         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8620         (COMMON_OBS): Add common/agent.o and agent.o
8621         (common-agent.o): New rule.
8622         * agent.c: New.
8623
8624 2012-03-03  Yao Qi  <yao@codesourcery.com>
8625
8626         * common/agent.c: New.
8627         * common/agent.h: New.
8628         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8629         AC_CHECK_HEADERS.
8630         * configure, configh.in: Regenerated.
8631
8632 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8633
8634         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8635         unless it exists for this architecture.
8636
8637 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8638
8639         * language.h (struct language_defn): New "method" la_read_var_value.
8640         * findvar.c: #include "language.h".
8641         (default_read_var_value): Renames read_var_value.  Rewrite
8642         function description.
8643         (read_var_value): New function.
8644         * value.h (default_read_var_value): Add prototype.
8645         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8646         New functions.
8647         (ada_language_defn): Add entry for la_read_var_value.
8648         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8649         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8650         language_defn structures to add entry for new la_read_var_value
8651         field.
8652
8653 2012-03-02  Tom Tromey  <tromey@redhat.com>
8654             Pedro Alves  <palves@redhat.com>
8655
8656         PR breakpoints/13776:
8657         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8658         breakpoints.
8659         (delete_longjmp_breakpoint_at_next_stop): New.
8660         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8661         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8662         before deleting the inferior.  Add comments.
8663         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8664         breakpoints immediately, but only on next stop.  Move that code
8665         next to where we mark other breakpoints for deletion.
8666
8667 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8668
8669         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8670         marker.
8671         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8672         violation.
8673
8674 2012-03-02  Pedro Alves  <palves@redhat.com>
8675
8676         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8677
8678 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8679
8680         Fix -Wmissing-prototypes build.
8681         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8682         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8683         (gdbsim_has_memory): Likewise.
8684
8685 2012-03-02  Yao Qi  <yao@codesourcery.com>
8686
8687         Fix -Wmissing-prototypes build.
8688         * charset.c (phony_iconv_open): Make static.
8689         (phony_iconv_close, phony_iconv): Likewise.
8690         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8691         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8692         prototype.
8693         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8694         * ser-mingw.c (create_select_thread): Make static.
8695         * windows-termcap.c (tgetent): New prototype.
8696         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8697
8698 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8699
8700         Fix -Wmissing-prototypes build.
8701         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8702         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8703         (_initialize_loadable): New prototypes.
8704
8705 2012-03-02  Doug Evans  <dje@google.com>
8706
8707         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8708         abbrev table, read_comp_unit will do it.
8709
8710 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8711
8712         Fix -Wmissing-prototypes build.
8713         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8714         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8715         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8716         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8717         (_initialize_arm_symbian_tdep): New prototype.
8718         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8719         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8720         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8721         static.
8722         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8723         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8724         prototype.
8725         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8726         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8727         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8728         static.
8729         * moxie-tdep.c (moxie_process_record): Likewise.
8730         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8731         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8732         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8733         (_initialize_rl78_tdep): New prototype.
8734         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8735         (_initialize_rx_tdep): New prototype.
8736         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8737         (_initialize_darwin_solib): New prototype.
8738         * solib-spu.c: Include solib-spu.h.
8739         (_initialize_spu_solib): New prototype.
8740         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8741         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8742         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8743         (tic6x_software_single_step): Make it static.
8744         (_initialize_tic6x_tdep): New prototype.
8745
8746 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8747
8748         Fix -Wmissing-prototypes build.
8749         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8750         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8751
8752 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8753
8754         Fix -Wmissing-prototypes build.
8755         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8756         (frv_have_stopped_data_address): Remove.
8757
8758 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8759
8760         Fix -Wmissing-prototypes build.
8761         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8762         * sh-tdep.c: Include sh64-tdep.h.
8763         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8764         * sh64-tdep.c: Include sh64-tdep.h.
8765         * sh64-tdep.h: New file.
8766
8767 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8768
8769         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8770
8771 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8772
8773         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8774         sp_regnum once the gdbarch_init_osabi hook has been called.
8775
8776 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8777
8778         * mips-tdep.c (mips32_bc1_pc): New function.
8779         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8780         BPOSGE32 and BPOSGE64 instructions.
8781         (deal_with_atomic_sequence): Likewise.
8782         (mips32_instruction_has_delay_slot): Likewise.
8783
8784 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8785             Chris Dearman  <chris@mips.com>
8786             Maciej W. Rozycki  <macro@codesourcery.com>
8787             Joseph Myers  <joseph@codesourcery.com>
8788
8789         * features/mips-dsp.xml: New file.
8790         * features/mips64-dsp.xml: New file.
8791         * features/mips-dsp-linux.xml: New file.
8792         * features/mips64-dsp-linux.xml: New file.
8793         * features/Makefile (WHICH): Add mips-dsp-linux and
8794         mips64-dsp-linux.
8795         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8796         * features/mips-dsp-linux.c: New file.
8797         * features/mips64-dsp-linux.c: New file.
8798         * regformats/mips-dsp-linux.dat: New file.
8799         * regformats/mips64-dsp-linux.dat: New file.
8800         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8801         registers.
8802         (mips64_linux_register_addr): Likewise.
8803         (mips64_linux_regsets_fetch_registers): Likewise.
8804         (mips64_linux_regsets_store_registers): Likewise.
8805         (mips64_linux_fetch_registers): Update call to
8806         mips64_linux_regsets_fetch_registers.
8807         (mips64_linux_store_registers): Update call to
8808         mips64_linux_regsets_store_registers.
8809         (mips_linux_read_description): Probe for DSP registers.
8810         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8811         and initialize_tdesc_mips64_dsp_linux.
8812         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8813         Remove padding of no longer used embedded register slots.
8814         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8815         (MIPS_RESTART_REGNUM): Redefine enum value.
8816         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8817         strings.
8818         (mips_tx39_reg_names): Likewise.
8819         (mips_linux_reg_names): New array of register names for Linux
8820         targets.
8821         (mips_register_name): Check for a null pointer in
8822         mips_processor_reg_names and return an empty string.
8823         (mips_register_type): Exclude embedded registers for the IRIX
8824         and Linux ABIs.
8825         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8826         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8827         DSP registers.
8828         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8829         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8830         (mips_gdbarch_init): Likewise.  Initialize internal register
8831         indices for the Linux ABI.  Use dynamic numbers to refer to
8832         registers, as applicable, while parsing the target description.
8833         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8834
8835 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8836
8837         * frame.h (read_frame_register_unsigned): Fix typo in function
8838         description.
8839
8840 2012-03-01  Pedro Alves  <palves@redhat.com>
8841
8842         * jit-reader.in [!__cplusplus]
8843         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8844
8845 2012-03-01  Pedro Alves  <palves@redhat.com>
8846
8847         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8848         * configure: Regenerate.
8849
8850 2012-03-01  Pedro Alves  <palves@redhat.com>
8851
8852         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8853         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8854         (ftrace_command, strace_command): Make static.
8855         * d-lang.c (_initialize_d_language): Declare.
8856         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8857         * dwarf2loc.c (_initialize_dwarf2loc):
8858         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8859         * exec.c (exec_get_section_table): Make static.
8860         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8861         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8862         * inferior.c (remove_inferior_command, add_inferior_command)
8863         (clone_inferior_command): Make static.
8864         * linux-nat.c (linux_nat_thread_address_space)
8865         (linux_nat_core_of_thread): Make static.
8866         * linux-tdep.c (_initialize_linux_tdep): Declare.
8867         * objc-lang.c (_initialize_objc_lang): Declare.
8868         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8869         Make static.
8870         (_initialize_opencl_language): Declare.
8871         * record.c (_initialize_record): Declare.
8872         * remote.c (demand_private_info, remote_get_tib_address)
8873         (remote_supports_cond_tracepoints)
8874         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8875         Make static.
8876         * skip.c (_initialize_step_skip): Declare.
8877         * symtab.c (skip_prologue_using_lineinfo): Make static.
8878         * tracepoint.c (delete_trace_state_variable)
8879         (trace_variable_command, delete_trace_variable_command)
8880         (get_uploaded_tsv, find_matching_tracepoint_location)
8881         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8882         Make static.
8883         * value.c (pack_unsigned_long): Make static.
8884         * varobj.c (varobj_ensure_python_env): Make static.
8885         * windows-tdep.c (_initialize_windows_tdep): Declare.
8886         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8887
8888 2012-03-01  Pedro Alves  <palves@redhat.com>
8889
8890         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
8891         gdbarch parameter.
8892         (linux_init_abi): Install it as has_shared_address_space gdbarch
8893         callback.
8894
8895 2012-03-01  Pedro Alves  <palves@redhat.com>
8896
8897         * observer.c (observer_test_first_notification_function)
8898         (observer_test_second_notification_function)
8899         (observer_test_third_notification_function): Add declarations.
8900
8901 2012-03-01  Pedro Alves  <palves@redhat.com>
8902
8903         * common/signals.c (default_target_signal_to_host)
8904         (default_target_signal_from_host): Move ...
8905         * arch-utils.c: ... here.
8906         * arch-utils.h (default_target_signal_to_host)
8907         (default_target_signal_from_host): Declare.
8908
8909         * common/signals.c (target_signal_from_command): Move ...
8910         * infrun.c: ... here.
8911         * inferior.h (target_signal_from_command): Declare.
8912         * target.h (target_signal_from_command)
8913         (default_target_signal_from_host, default_target_signal_to_host):
8914         Delete declarations.
8915
8916         * common/signals.c (_initialize_signals): Delete.
8917
8918 2012-03-01  Pedro Alves  <palves@redhat.com>
8919
8920         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8921         both __cplusplus and !__cplusplus.
8922
8923 2012-03-01  Pedro Alves  <palves@redhat.com>
8924
8925         * psymtab.c (find_and_open_source): Delete declaration.
8926         * source.c (find_and_open_source): Move comment ...
8927         * source.h (find_and_open_source): ... to this new declaration.
8928
8929 2012-03-01  Pedro Alves  <palves@redhat.com>
8930
8931         * inline-frame.c: Include inline-frame.h.
8932
8933 2012-03-01  Pedro Alves  <palves@redhat.com>
8934
8935         * tui/tui-data.c (set_gen_win_origin): Delete.
8936         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8937         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8938
8939 2012-03-01  Pedro Alves  <palves@redhat.com>
8940
8941         * remote.c (encode_actions): Delete declaration.
8942         * tracepoint.c (encode_actions): Make extern.
8943         * tracepoint.h (encode_actions): Declare.
8944
8945 2012-03-01  Pedro Alves  <palves@redhat.com>
8946
8947         * python/py-breakpoint.c: Include python.h.
8948         * python/py-continueevent.c (create_continue_event_object): Make
8949         static.
8950         * python/py-lazy-string.c (stpy_get_type): Make static.
8951         * python/py-newobjfileevent.c (create_new_objfile_event_object):
8952         Make static.
8953         * python/py-utils.c (unicode_to_target_python_string): Make
8954         static.
8955         * python/py-value.c: Include python.h.
8956
8957 2012-03-01  Pedro Alves  <palves@redhat.com>
8958
8959         * inferior.c (delete_threads_of_inferior): Delete.
8960
8961 2012-03-01  Pedro Alves  <palves@redhat.com>
8962
8963         Import fallback definitions from glibc.
8964
8965         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8966         ps_prochandle): Forward declare.
8967         (ps_err_e): Use glibc's comments.
8968         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8969         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8970         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8971         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8972         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8973         (struct ps_prochandle): Adjust comment.
8974
8975 2012-03-01  Pedro Alves  <palves@redhat.com>
8976
8977         * ada-lang.c (ada_modulus_from_name): Delete.
8978         * ada-lex.l (lexer_init): Make static.
8979
8980 2012-03-01  Pedro Alves  <palves@redhat.com>
8981
8982         PR gdb/13767
8983
8984         * frame.c (read_frame_register_unsigned): New.
8985         * frame.h (read_frame_register_unsigned): Declare.
8986         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8987         Handle it.
8988         (print_i387_control_word): New parameter `control_p'.  Handle it.
8989         (i387_print_float_info): Handle unavailable float registers.
8990
8991 2012-03-01  Keith Seitz  <keiths@redhat.com>
8992
8993         * linespec.c (decode_line_2): Sort the list of methods
8994         alphabetically before presenting the user with a selection
8995         menu.
8996
8997 2012-03-01  Doug Evans  <dje@google.com>
8998
8999         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9000         has_namespace_info.
9001         (dwarf2_read_abbrevs): Remove corresponding initialization.
9002
9003 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
9004
9005         * NEWS: Mention new python command class gdb.COMMAND_USER.
9006         * cli/cli-cmds.c (show_user): Print error when used on a python
9007         command.
9008         (init_cli_cmds): Update documentation strings for "show user" and
9009         "set/show max-user-call-depth" to clarify that it does not apply to
9010         python commands.
9011         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9012         error check.
9013         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9014         gdb python api.
9015         * top.c (execute_command): Only execute a user-defined command as a
9016         legacy macro if c->user_commands is set.
9017
9018 2012-03-01  Tom Tromey  <tromey@redhat.com>
9019
9020         * valprint.h (struct generic_val_print_decorations): New.
9021         (generic_val_print): Declare.
9022         * valprint.c (generic_val_print): New function.
9023         * p-valprint.c (p_decorations): New global.
9024         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9025         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9026         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9027         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9028         * m2-valprint.c (m2_decorations): New global.
9029         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9030         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9031         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9032         TYPE_CODE_ERROR>: Call generic_val_print.
9033         * f-valprint.c (f_decorations): New global.
9034         (f_val_print): Use print_function_pointer_address.
9035         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9036         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9037         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9038         generic_val_print.
9039         * c-valprint.c (c_decorations): New global.
9040         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9041         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9042         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9043         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9044         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9045         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9046         case.
9047
9048 2012-03-01  Tom Tromey  <tromey@redhat.com>
9049
9050         * valprint.c (val_print): Update.
9051         * p-valprint (pascal_val_print): Return void.
9052         * p-lang.h (pascal_val_print): Return void.
9053         * m2-valprint.c (m2_val_print): Return void.
9054         * m2-lang.h (m2_val_print): Return void.
9055         * language.h (struct language_defn) <la_val_print>: Return void.
9056         * language.c (unk_lang_val_print): Return void.
9057         * jv-valprint.c (java_val_print): Return void.
9058         * jv-lang.h (java_val_print): Return void.
9059         * f-valprint.c (f_val_print): Return void.
9060         * f-lang.h (f_val_print): Return void.
9061         * d-valprint.c (d_val_print): Return void.
9062         (dynamic_array_type): Update.
9063         * d-lang.h (d_val_print): Return void.
9064         * c-valprint.c (c_val_print): Return void.
9065         * c-lang.h (c_val_print): Return void.
9066         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9067         void.
9068         * ada-lang.h (ada_val_print): Return void.
9069
9070 2012-03-01  Tom Tromey  <tromey@redhat.com>
9071
9072         * value.h (val_print): Return void.
9073         * valprint.c (val_print): Return void.
9074
9075 2012-03-01  Tom Tromey  <tromey@redhat.com>
9076
9077         * value.h (common_val_print): Return void.
9078         * valprint.c (common_val_print): Return void.
9079
9080 2012-03-01  Tom Tromey  <tromey@redhat.com>
9081
9082         * value.h (value_print): Return void.
9083         * valprint.c (value_print): Return void.
9084         * p-valprint.c (pascal_value_print): Return void.
9085         * p-lang.h (pascal_value_print): Return void.
9086         * language.h (struct language_defn) <la_value_print>: Return
9087         void.
9088         * language.c (unk_lang_value_print): Return void.
9089         * jv-valprint.c (java_value_print): Return void.
9090         * jv-lang.h (java_value_print): Return void.
9091         * f-valprint.c (c_value_print): Don't declare.
9092         Include c-lang.h.
9093         * c-valprint.c (c_value_print): Return void.
9094         * c-lang.h (c_value_print): Return void.
9095         * ada-valprint.c (ada_value_print): Return void.
9096         * ada-lang.h (ada_value_print): Return void.
9097
9098 2012-03-01  Tom Tromey  <tromey@redhat.com>
9099
9100         * value.c (value_primitive_field): Handle virtual base classes.
9101
9102 2012-03-01  Tom Tromey  <tromey@redhat.com>
9103
9104         * gdbtypes.h (struct vbase): Remove.
9105
9106 2012-03-01  Tom Tromey  <tromey@redhat.com>
9107
9108         * c-valprint.c (print_function_pointer_address): Move...
9109         * valprint.c: ... here.  Make non-static.
9110         * m2-valprint.c (print_function_pointer_address): Remove.
9111         * valprint.h (print_function_pointer_address): Declare.
9112
9113 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9114
9115         * NEWS: Document the fact that one can provide a condition when
9116         creating an Ada exception catchpoint.
9117
9118 2012-03-01  Tom Tromey  <tromey@redhat.com>
9119
9120         * valprint.c (val_print_type_code_flags): Fix placement of
9121         trailing brace.
9122
9123 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9124
9125         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9126         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9127         environment variable before calling update-copyright.
9128
9129 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9130
9131         * gnulib/extra/update-copyright: Update to the latest from
9132         gnulib's git repository.
9133         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9134         variable to 2 instead of 1.
9135
9136 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9137
9138         * varobj.c (c_value_of_variable): Remove dead code.
9139
9140 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9141
9142         * ada-lex.p (processId): Do not modify already encoded IDs.
9143         Update function documentation.
9144
9145 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9146
9147         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9148         "name" with "struct symbol *name_sym".
9149         * ada-exp.y (write_var_or_type): Update call to
9150         ada_find_renaming_symbol.
9151         "name" with "struct symbol *name_sym". Adjust Implementation
9152         accordingly.  Adjust the function documentation.
9153
9154 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9155
9156         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9157         * ada-lang.c (ada_find_any_type): Add advance declaration.
9158         Make static.  Replace ada_find_any_symbol by
9159         ada_find_any_type_symbol.
9160         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9161         Improve function description.  Make static.
9162         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9163         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9164
9165 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9166
9167         * ada-lang.c (struct tag_args): Delete.
9168         (ada_get_tsd_type): Function body moved up in source file.
9169         (ada_tag_name_1, ada_tag_name_2): Delete.
9170         (ada_get_tsd_from_tag): New function.
9171         (ada_tag_name_from_tsd): New function.
9172         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9173         to determine the tag name.
9174
9175 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9176
9177         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9178         declaration.
9179         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9180         function.
9181
9182 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9183
9184         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9185
9186 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9187
9188         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9189         full searches.
9190
9191 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9192
9193         * ada-lang.c (constrained_packed_array_type): If there is a
9194         parallel XA type, use it to determine the array index type.
9195
9196 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9197
9198         * ada-valprint.c (ada_val_print_1): If our value is a reference
9199         to an array descriptor, dereference it before converting it
9200         to a simple array.
9201
9202 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9203
9204         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9205         creating fixed value.
9206         (ada_value_ind, ada_coerce_ref, assign_component)
9207         (ada_evaluate_subexp): Remove call to unwrap_value before
9208         call to ada_to_fixed_value.
9209
9210 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9211
9212         * ada-lang.c (to_fixed_array_type): Set result's type name.
9213
9214 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9215
9216         * ada-lang.c (catch_ada_exception_command_split): Add new
9217         argument cond_string.  Add support for condition at end of
9218         "catch exception" commands.
9219         (ada_decode_exception_location): Add new argument cond_string.
9220         Update call to catch_ada_exception_command_split.
9221         (create_ada_exception_catchpoint): Add new argument cond_string.
9222         Set the breakpoint condition if needed.
9223         (catch_ada_exception_command): Update call to
9224         ada_decode_exception_location.
9225         (ada_decode_assert_location): Add function documentation.
9226         Add support for condition at end of "catch assert" command.
9227         (catch_assert_command): Update calls to ada_decode_assert_location
9228         and create_ada_exception_catchpoint.
9229
9230 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9231
9232         Fix disp-step-syscall.exp: fork: single step over fork.
9233         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9234         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9235         comment, change parameters gdbarch and ptid to regcache.  Remove
9236         parameter regcache, initialize gdbarch from regcache here.
9237         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9238         New functions.
9239         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9240         instead.
9241         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9242         'syscall'.  Make the 'int' check more strict.
9243
9244 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9245
9246         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9247         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9248         (i386_linux_intx80_sysenter_syscall_record): ... here.
9249         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9250         Use the renamed function name.
9251
9252 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9253
9254         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9255         * breakpoint.c (until_break_command): Likewise.
9256         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9257         * infcall.c (call_function_by_hand): Likewise.
9258         * infcmd.c (finish_forward): Likewise.
9259         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9260
9261 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9262
9263         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9264         avoid variable assignments inside condition.
9265
9266 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9267
9268         Fix static analysis issue found by cppcheck.
9269         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9270         uninitialized BUF for size 2.
9271
9272 2012-02-27  Chris Dearman  <chris@mips.com>
9273             Nathan Froyd  <froydnj@codesourcery.com>
9274             Maciej W. Rozycki  <macro@codesourcery.com>
9275
9276         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9277         (mips16_instruction_has_delay_slot): Likewise.
9278         (mips_segment_boundary): Likewise.
9279         (mips_adjust_breakpoint_address): Likewise.
9280         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9281
9282 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9283             Maciej W. Rozycki  <macro@codesourcery.com>
9284
9285         * infrun.c (handle_inferior_event): Don't proceed through
9286         shared library trampolines if stepping at the machine
9287         instruction level.
9288
9289 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9290
9291         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9292         too.
9293
9294 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9295
9296         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9297         (sh_stub_unwind_sniffer): New functions.
9298         (sh_stub_unwind): New variable.
9299         (sh_gdbarch_init): Wire everything.
9300
9301 2012-02-27  Pedro Alves  <palves@redhat.com>
9302
9303         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9304         (linux_nat_post_attach_wait): Adjust to use
9305         linux_proc_pid_is_stopped.
9306         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9307         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9308         based on pid_is_stopped from both linux-nat.c and
9309         gdbserver/linux-low.c, and renamed.
9310
9311 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9312
9313         * remote.c (remote_watchpoint_addr_within_range): New function.
9314         (init_remote_ops): Use it.
9315
9316 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9317
9318         * target.h (target_watchpoint_addr_within_range): Document macro.
9319
9320 2012-02-24  Pedro Alves  <palves@redhat.com>
9321
9322         * stack.c (set_last_displayed_sal): Issue internal_error instead
9323         of warning, and issue it after clearing the last displayed sal.
9324
9325 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9326             Pedro Alves  <palves@redhat.com>
9327
9328         * breakpoint.c (until_break_command): Install breakpoints after
9329         all frame manipulations.
9330
9331 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9332
9333         * remote.c (remote_supports_cond_breakpoints): New forward
9334         declaration.
9335         (remote_add_target_side_condition): New function.
9336         (remote_insert_breakpoint): Add target-side breakpoint
9337         conditional if supported.
9338         (remote_insert_hw_breakpoint): Likewise.
9339         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9340         hook.
9341
9342         * target.c (update_current_target): Inherit
9343         to_supports_evaluation_of_breakpoint_conditions.
9344         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9345
9346         * target.h (struct target_ops)
9347         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9348         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9349
9350         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9351         (condition_evaluation_both, condition_evaluation_auto,
9352         condition_evaluation_host, condition_evaluation_target,
9353         condition_evaluation_enums, condition_evaluation_mode_1,
9354         condition_evaluation_mode): New static globals.
9355         (translate_condition_evaluation_mode): New function.
9356         (breakpoint_condition_evaluation_mode): New function.
9357         (gdb_evaluates_breakpoint_condition_p): New function.
9358         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9359         (mark_breakpoint_modified): New function.
9360         (mark_breakpoint_location_modified): New function.
9361         (set_condition_evaluation_mode): New function.
9362         (show_condition_evaluation_mode): New function.
9363         (bp_location_compare_addrs): New function.
9364         (get_first_location_gte_addr): New helper function.
9365         (set_breakpoint_condition): Free condition bytecode if locations
9366         has become unconditional.  Call mark_breakpoint_modified (...).
9367         (condition_command): Call update_global_location_list (1) for
9368         breakpoints.
9369         (breakpoint_xfer_memory): Use is_breakpoint (...).
9370         (is_breakpoint): New function.
9371         (parse_cond_to_aexpr): New function.
9372         (build_target_condition_list): New function.
9373         (insert_bp_location): Handle target-side conditional
9374         breakpoints and call build_target_condition_list (...).
9375         (update_inserted_breakpoint_locations): New function.
9376         (insert_breakpoint_locations): Handle target-side conditional
9377         breakpoints.
9378         (bpstat_check_breakpoint_conditions): Add comment.
9379         (bp_condition_evaluator): New function.
9380         (bp_location_condition_evaluator): New function.
9381         (print_breakpoint_location): Print information on where the condition
9382         will be evaluated.
9383         (print_one_breakpoint_location): Likewise.
9384         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9385         breakpoint location.
9386         (force_breakpoint_reinsertion): New functions.
9387         (update_global_location_list): Handle target-side breakpoint
9388         conditions.
9389         Reinsert locations that are already inserted if conditions have
9390         changed.
9391         (bp_location_dtor): Free agent expression bytecode.
9392         (disable_breakpoint): Call mark_breakpoint_modified (...).
9393         Call update_global_location_list (...) with parameter 1 for breakpoints.
9394         (disable_command): Call mark_breakpoint_location_modified (...).
9395         Call update_global_location_list (...) with parameter 1 for breakpoints.
9396         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9397         (enable_command): mark_breakpoint_location_modified (...).
9398         (_initialize_breakpoint): Update documentation and add
9399         condition-evaluation breakpoint subcommand.
9400
9401         * breakpoint.h: Include ax.h.
9402         (condition_list): New data structure.
9403         (condition_status): New enum.
9404         (bp_target_info) <cond_list>: New field.
9405         (bp_location) <condition_changed, cond_bytecode>: New fields.
9406         (is_breakpoint): New prototype.
9407
9408 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9409
9410         * remote.c (remote_state) <cond_breakpoints>: New field.
9411         (PACKET_ConditionalBreakpoints): New enum.
9412         (remote_cond_breakpoint_feature): New function.
9413         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9414         (remote_supports_cond_breakpoints): New function.
9415         (_initialize_remote): Add new packet configuration for
9416         target-side conditional breakpoints.
9417
9418 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9419
9420         * NEWS: Mention target-side conditional breakpoint support,
9421         new condition-evaluation breakpoint subcommand and remote
9422         packet extensions.
9423
9424 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9425
9426         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9427         number.
9428
9429 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9430
9431         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9432         (after_prologue): Remove.
9433
9434 2012-02-23  Tom Tromey  <tromey@redhat.com>
9435
9436         * jv-valprint.c (java_val_print): Remove dead code.
9437
9438 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9439
9440         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9441         known_tasks_element and known_tasks_length fields.
9442         (read_known_tasks_array): Change argument type.  Use pointer type
9443         and number of elements from DATA.  Adjust.
9444         (read_known_tasks_list): Likewise.
9445         (get_known_tasks_addr): Remove.
9446         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9447         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9448         type and array length.  Merge former get_known_tasks_addr code.
9449
9450 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9451
9452         PR backtrace/13716
9453         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9454         it after set_momentary_breakpoint.
9455
9456 2012-02-22  Sterling Augustine  <saugustine@google.com>
9457
9458         PR 13689:
9459         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9460
9461 2012-02-22  Gary Benson  <gbenson@redhat.com>
9462
9463         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9464         (find_slot_in_mapped_hash): Likewise.
9465
9466 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9467
9468         PR build/13638
9469         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9470         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9471         * configure: Regenerate.
9472
9473 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9474             Pedro Alves  <palves@redhat.com>
9475
9476         * ia64-tdep.c: Do not include libunwind-ia64.h.
9477         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9478         Include libunwind-ia64.h instead of libunwind.h.
9479         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9480         for libunwind.h existence.
9481         * configure, config.in: Regenerate.
9482
9483 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9484
9485         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9486         instead of value_rtti_target_type.
9487         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9488         instead of value_rtti_target_type.
9489         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9490         value_rtti_target_type.
9491         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9492         (value_rtti_target_type): Rename to ...
9493         (value_rtti_indirect_type): ... here and make it indirect.  Update
9494         function comment.
9495         * value.c (readjust_indirect_value_type): New function.
9496         (coerce_ref): Support for enclosing type setting for references
9497         with readjust_indirect_value_type.
9498         * value.h (readjust_value_type): New declaration.
9499         (value_rtti_target_type): Rename to ...
9500         (value_rtti_indirect_type): ... here.
9501
9502 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9503
9504         * MAINTAINERS (Write After Approval): Add myself to the list.
9505
9506 2012-02-20  Doug Evans  <dje@google.com>
9507
9508         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9509         Rename objfile_p_char parameter to objfilep.
9510         (build_objfile_section_table): Result is now void.  All callers
9511         updated.
9512         * objfiles.h (struct objfile): Tweak comments, whitespace.
9513         (build_objfile_section_table): Update.
9514
9515         * elfread.c (elf_symfile_segments): Fix warning text.
9516
9517 2012-02-20  Tom Tromey  <tromey@redhat.com>
9518
9519         PR gdb/13498:
9520         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9521         particular set of file names once.
9522         (dw2_map_symbol_filenames): Likewise.
9523
9524 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9525
9526         Code cleanup.
9527         * main.c (write_files): Remove the declaration.
9528         (external_editor_command): Move the declaration ...
9529         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9530
9531 2012-02-20  Tom Tromey  <tromey@redhat.com>
9532
9533         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9534         extraneous block.
9535
9536 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9537
9538         * darwin-nat.h (enum darwin_msg_state): Add comments.
9539
9540 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9541
9542         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9543         value.
9544
9545 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9546
9547         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9548         between function description and implementation.
9549
9550 2012-02-17  Tom Tromey  <tromey@redhat.com>
9551
9552         PR python/12070:
9553         * python/py-event.c (event_object_getset): New global.
9554         (event_object_type): Reference it.
9555         * python/py-type.c (field_object_getset): New global.
9556         (field_object_type): Reference it.
9557         * python/python-internal.h (gdb_py_generic_dict): Declare.
9558         * python/py-utils.c (gdb_py_generic_dict): New function.
9559
9560 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9561
9562         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9563
9564 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9565
9566         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9567         TYPE_CALLING_CONVENTION annotation.
9568
9569 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9570
9571         * MAINTAINERS: Add rx to target ISA section.
9572         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9573         (ALLDEPFILES): Add rx-tdep.c.
9574
9575 2012-02-16  Tom Tromey  <tromey@redhat.com>
9576
9577         * symfile.c (symbol_file_add_main_1): Use inferior's
9578         symfile_flags.
9579         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9580         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9581         inferior.
9582         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9583         inferior.
9584         (follow_exec): Use inferior's symfile_flags.
9585         * inferior.h (struct inferior) <symfile_flags>: New field.
9586
9587 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9588
9589         PR gdb/9734:
9590         * remote-sim.c (gdbsim_create_inferior): Call error() when
9591         sim_create_inferior() fails.
9592
9593 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9594
9595         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9596
9597 2012-02-16  Tom Tromey  <tromey@redhat.com>
9598
9599         PR c++/13653:
9600         * thread.c (struct current_thread_cleanup) <was_removable>: New
9601         field.
9602         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9603         (make_cleanup_restore_current_thread): Initialize new field.
9604
9605 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9606
9607         * MAINTAINERS: Add rl78 to target ISA section.
9608         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9609         (ALLDEPFILES): Add rl78-tdep.c.
9610         * NEWS: Mention rl78 as a new target.
9611
9612 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9613
9614         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9615         data.
9616         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9617
9618 2012-02-15  Tom Tromey  <tromey@redhat.com>
9619
9620         PR gdb/12659:
9621         * infcmd.c (registers_info): Print just the current register's
9622         name.
9623
9624 2012-02-15  Tom Tromey  <tromey@redhat.com>
9625
9626         * python/py-symbol.c (sympy_value): Use _().
9627
9628 2012-02-15  Pedro Alves  <palves@redhat.com>
9629
9630         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9631         output to be like native targets'.
9632         (remote_pid_to_str): Special case the null ptid.
9633
9634 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9635
9636         * NEWS: Mention enable count command.
9637         * breakpoint.h (struct breakpoint): New field enable_count.
9638         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9639         (enable_breakpoint): Add arg to call.
9640         (struct disp_data): New struct.
9641         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9642         (do_map_enable_once_breakpoint): Create a struct and pass it.
9643         (do_map_enable_delete_breakpoint): Ditto.
9644         (do_map_enable_count_breakpoint): New function.
9645         (enable_count_command): New function.
9646         (bpstat_stop_status): Decrement enable_count.
9647         (print_one_breakpoint_location): Report enable count.
9648         (_initialize_breakpoint): Add enable count command.
9649
9650 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9651
9652         * rl78-tdep.c (reggroups.h): Include.
9653         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9654         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9655         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9656         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9657         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9658         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9659         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9660         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9661         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9662         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9663         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9664         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9665         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9666         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9667         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9668         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9669         beginning of register list.
9670         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9671         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9672         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9673         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9674         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9675         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9676         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9677         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9678         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9679         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9680         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9681         the pseudo registers.  Rearrange other pseudo registers too so
9682         that the bank registers appear at the end.
9683         (rl78_register_type): Account for the fact that the byte sized
9684         bank registers are now pseudo-registers.
9685         (rl78_register_name): Rearrange the register name array.  Make
9686         initial set of raw banked registers inaccessible.
9687         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9688         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9689         case for copying bytes back and forth between raw and pseudo
9690         versions of the banked registers.  Update other cases to reflect
9691         the changed names.
9692         (rl78_return_value): Update to account for changed names of
9693         raw registers.
9694         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9695         rl78_register_sim_regno().
9696
9697 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9698
9699         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9700         the name parameter being passed to find_pc_partial_function().
9701
9702 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9703
9704         * MAINTAINERS: Step down from being ia64 target maintainer.
9705
9706 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9707
9708         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9709         compilation warning.
9710
9711 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9712
9713         Fix crash on loaded shlibs without loaded exec_bfd.
9714         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9715         (set_section_command): Replace exec_bfd by p->bfd.
9716
9717 2012-02-10  Tom Tromey  <tromey@redhat.com>
9718
9719         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9720         when we have a C++ qualified name.
9721
9722 2012-02-10  Pedro Alves  <palves@redhat.com>
9723
9724         * inferior.c (inferior_pid_to_str): New.
9725         (print_inferior, inferior_command): Use it.
9726
9727 2012-02-10  Pedro Alves  <palves@redhat.com>
9728
9729         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9730         the test CFLAGS.
9731         * configure: Regenerate.
9732
9733 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9734
9735         * linespec.c (decode_line_internal): Fix comment correctness.
9736
9737 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9738
9739         PR gdb/12953
9740         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9741         * amd64bsd-nat.c: Add support for debug registers (adapted from
9742         i386bsd-nat.c).
9743         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9744         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9745         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9746         (amd64bsd_dr_get_control): New functions.
9747         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9748         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9749         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9750         watchpoints initialization.
9751         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9752
9753 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9754
9755         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9756         flds_bnds.fields.
9757         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9758
9759 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9760
9761         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9762
9763 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9764
9765         * language.h (symbol_name_cmp_ftype): Renames
9766         symbol_name_match_p_ftype.
9767         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9768         la_get_symbol_name_match_p.
9769         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9770         ada_get_symbol_name_match_p.  Update comment.
9771         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9772         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9773         Renames symbol_name_match_p.  Update field type.
9774         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9775         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9776         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9777         "la_get_symbol_name_cmp" in comments.
9778         * language.c: Likewise.
9779
9780 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9781
9782         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9783         %eflags offset.
9784         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9785         (amd64_sol2_gregset32_reg_offs): Likewise.
9786
9787 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9788
9789         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9790         of the returned BFD is allocated by GDB.
9791
9792 2012-02-07  Tom Tromey  <tromey@redhat.com>
9793
9794         PR python/12027:
9795         * python/python-internal.h (frame_object_type): Declare.
9796         * python/py-symbol.c (sympy_needs_frame): New function.
9797         (sympy_value): New function.
9798         (symbol_object_getset): Add "needs_frame".
9799         (symbol_object_methods): Add "value".
9800         * python/py-frame.c (frame_object_type): No longer static.
9801
9802 2012-02-07  Tom Tromey  <tromey@redhat.com>
9803
9804         PR python/13599:
9805         * python/py-symbol.c (sympy_line): New function.
9806         (symbol_object_getset): Add "line".
9807
9808 2012-02-07  Tom Tromey  <tromey@redhat.com>
9809
9810         * charset.c (find_charset_names): Check 'in' against NULL.
9811
9812 2012-02-06  Doug Evans  <dje@google.com>
9813
9814         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9815         and fields.name members from char * to const char *.  All uses updated.
9816         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9817         from char * to const char *.  All uses updated.
9818         (type_name_no_tag): Update.
9819         (lookup_unsigned_typename, lookup_signed_typename): Update.
9820         * gdbtypes.c (type_name_no_tag): Change result type
9821         from char * to const char *.  All callers updated.
9822         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9823         name parameter from char * to const char *.
9824         * symtab.h (struct cplus_specific): Change type of demangled_name
9825         member from char * to const char *.  All uses updated.
9826         (struct general_symbol_info): Change type of name and
9827         mangled_lang.demangled_name members from char * to const char *.
9828         All uses updated.
9829         (symbol_get_demangled_name, symbol_natural_name): Update.
9830         (symbol_demangled_name, symbol_search_name): Update.
9831         * symtab.c (symbol_get_demangled_name): Change result type
9832         from char * to const char *.  All callers updated.
9833         (symbol_natural_name, symbol_demangled_name): Ditto.
9834         (symbol_search_name): Ditto.
9835         (completion_list_add_name): Change type of symname,sym_text,
9836         text,word parameters from char * to const char *.
9837         (completion_list_objc_symbol): Change type of sym_text,
9838         text,word parameters from char * to const char *.
9839         * ada-lang.c (find_struct_field): Change type of name parameter
9840         from char * to const char *.
9841         (encoded_ordered_before): Similarly for N0,N1 parameters.
9842         (old_renaming_is_invisible): Similarly for function_name parameter.
9843         (ada_type_name): Change result type from char * to const char *.
9844         All callers updated.
9845         * ada-lang.h (ada_type_name): Update.
9846         * buildsym.c (hashname): Change type of name parameter
9847         from char * to const char *.
9848         * buildsym.h (hashname): Update.
9849         * dbxread.c (end_psymtab): Change type of include_list parameter
9850         from char ** to const char **.
9851         * dwarf2read.c (determine_prefix): Change result type
9852         from char * to const char *.  All callers updated.
9853         * f-lang.c (find_common_for_function): Change type of name, funcname
9854         parameters from char * to const char *.
9855         * f-lang.c (find_common_for_function): Update.
9856         * f-valprint.c (list_all_visible_commons): Change type of funcname
9857         parameters from char * to const char *.
9858         * gdbarch.sh (static_transform_name): Change type of name parameter
9859         and result from char * to const char *.
9860         * gdbarch.c: Regenerate.
9861         * gdbarch.h: Regenerate.
9862         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9863         of name parameter from char * to const char *.
9864         * jv-lang.c (java_primitive_type_from_name): Ditto.
9865         (java_demangled_signature_length): Similarly for signature parameter.
9866         (java_demangled_signature_copy): Ditto.
9867         (java_demangle_type_signature): Ditto.
9868         * jv-lang.h (java_primitive_type_from_name): Update.
9869         (java_demangle_type_signature): Update.
9870         * objc-lang.c (specialcmp): Change type of a,b parameters
9871         from char * to const char *.
9872         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9873         from char * to const char *.  All callers updated.
9874         * p-lang.h (is_pascal_string_type): Update.
9875         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9876         of name parameter from char * to const char *.
9877         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9878         * utils.c (fprintf_symbol_filtered): Ditto.
9879         * defs.h (fprintf_symbol_filtered): Update.
9880         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9881         * stabsread.h (end_psymtab): Update.
9882         * stack.c (find_frame_funname): Change type of funname parameter
9883         from char ** to const char **.
9884         * stack.h (find_frame_funname): Update.
9885         * typeprint.c (type_print): Change type of varstring parameter
9886         from char * to const char *.
9887         * value.h (type_print): Update.
9888         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9889         from char * to const char *.  All callers updated.
9890         (xcoff_end_psymtab): Change type of include_list parameter
9891         from char ** to const char **.  All callers updated.
9892         (swap_sym): Similarly for name parameter.  All callers updated.
9893         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9894         Use xstrdup.
9895         (process_coff_symbol): Use xstrdup.
9896         * stabsread.c (stabs_method_name_from_physname): Renamed from
9897         update_method_name_from_physname.  Change result type from void
9898         to char *.  All callers updated.
9899         (read_member_functions): In has_destructor case, store name in objfile
9900         obstack instead of malloc space.  In !has_stub case, fix mem leak.
9901
9902 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
9903
9904         * configure: Rebuild.
9905         * configure.ac: Put -L../bfd and -L../libiberty at the front of
9906         LDFLAGS.
9907
9908 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
9909
9910         * configure.tgt (rl78-*-elf): New target.
9911         * rl78-tdep.c: New file.
9912
9913 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9914
9915         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9916         and continue the loop.  Add QUIT statement.
9917
9918 2012-02-03  Tom Tromey  <tromey@redhat.com>
9919
9920         PR gdb/13596:
9921         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9922         bfd_lookup_symbol_from_symtab.
9923         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9924         gdb_bfd_lookup_symbol_from_symtab.
9925
9926 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
9927
9928         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9929         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9930         symbol.  Add assertion that sym2 is never NULL.
9931
9932 2012-02-02  Doug Evans  <dje@google.com>
9933
9934         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9935         "name" parameter to const char ** from char **.  All callers updated.
9936         (find_pc_partial_function): Ditto.
9937         (cache_pc_function_name): Change type to const char * from char *.
9938         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9939         (find_pc_partial_function): Update.
9940         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9941         type of "name" parameter to const char * from char *.
9942         All uses updated.
9943         * arch-utils.c (generic_in_solib_return_trampoline): Change
9944         type of "name" parameter to const char * from char *.
9945         * arch-utils.h (generic_in_solib_return_trampoline): Update.
9946         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9947         type of "name" parameter to const char * from char *.
9948         * gdbarch.sh (in_solib_return_trampoline): Ditto.
9949         * gdbarch.c: Regenerate.
9950         * gdbarch.h: Regenerate.
9951         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9952         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9953         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9954         type of "name" parameter to const char * from char *.
9955         * skip.c (skip_function_pc): Ditto.
9956         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9957         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9958         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9959         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9960         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9961         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9962         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9963         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9964         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9965
9966 2012-02-02  Pedro Alves  <palves@redhat.com>
9967
9968         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9969         the current inferior has no execution.  Make sure the current
9970         remote process matches gdb's current inferior.
9971
9972 2012-02-02  Tom Tromey  <tromey@redhat.com>
9973
9974         PR gdb/13405:
9975         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9976         read-only memory.
9977
9978 2012-02-02  Tom Tromey  <tromey@redhat.com>
9979
9980         PR gdb/9307:
9981         * symtab.c (lookup_language_this): Set block_found.
9982
9983 2012-02-01  Tom Tromey  <tromey@redhat.com>
9984
9985         PR gdb/13431:
9986         * jit.c (struct jit_inferior_data): Rewrite.
9987         (struct jit_objfile_data): New.
9988         (get_jit_objfile_data): New function.
9989         (add_objfile_entry): Update.
9990         (jit_read_descriptor): Return int.  Replace descriptor_addr
9991         argument with inf_data.  Update.  Don't call error.
9992         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
9993         descriptor here.
9994         (jit_inferior_init): Don't look up descriptor.  Don't call error.
9995         (jit_reset_inferior_data_and_breakpoints)
9996         (jit_inferior_created_observer): Remove.
9997         (jit_inferior_exit_hook): Update.
9998         (jit_executable_changed_observer): Remove.
9999         (jit_event_handler): Update.
10000         (free_objfile_data): Reset inferior data if needed.
10001         (_initialize_jit): Update.
10002
10003 2012-02-01  Tom Tromey  <tromey@redhat.com>
10004
10005         * jit.c (bfd_open_from_target_memory): Move higher in file.
10006
10007 2012-02-01  Tristan Gingold  <gingold@adacore.com>
10008
10009         * libunwind-frame.c (libunwind_load): Display message if dlopen
10010         failed.
10011
10012 2012-02-01  Gary Benson  <gbenson@redhat.com>
10013
10014         * symtab.h (symbol_found_callback_ftype): New typedef.
10015         (iterate_over_symbols): Use the above.
10016         * symtab.c (iterate_over_symbols): Likewise.
10017         * language.h (language_defn->la_iterate_over_symbols): Likewise.
10018         * ada-lang.c (ada_iterate_over_symbols): Likewise.
10019         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10020         (iterate_name_matcher): Document return values.
10021         (collect_one_symbol): Likewise.
10022         (collect_function_symbols): Likewise.
10023         (collect_symbols): Likewise.
10024
10025 2012-02-01  Tom Tromey  <tromey@redhat.com>
10026
10027         * ada-lang.c (resolve_subexp): Update.
10028         (ada_lookup_symbol_list): Add 'full_search' argument.
10029         (ada_iterate_over_symbols): Pass 0 as full_search argument to
10030         ada_lookup_symbol_list.
10031         (ada_lookup_encoded_symbol): Update.
10032         (get_var_value): Update.
10033         * ada-exp.y (block_lookup): Update.
10034         (write_var_or_type): Update.
10035         (write_name_assoc): Update.
10036         * ada-lang.h (ada_lookup_symbol_list): Update.
10037
10038 2012-01-31  Tom Tromey  <tromey@redhat.com>
10039
10040         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10041         comment.
10042
10043 2012-01-31  Doug Evans  <dje@google.com>
10044
10045         * symtab.h: Remove outdated comment.
10046         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10047
10048 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
10049
10050         Fix build error in Darwin port.
10051         * i386-darwin-nat.c: Include i386-nat.h.
10052
10053 2012-01-30  Tom Tromey  <tromey@redhat.com>
10054
10055         PR breakpoints/13568:
10056         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10057         argument.  Check for recursive includes.
10058         (dwarf_decode_macros): Create an include hash.
10059
10060 2012-01-30  Michael Eager  <eager@eagercon.com>
10061
10062         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10063         * ppc-linux-tdep.c: Include glibc-tdep.h.
10064         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10065         (powerpc_linux_in_plt_stub): New function.
10066         (powerpc_linux_in_dynsym_resolve_code): New function.
10067         (ppc_skip_trampoline_code): New function.
10068         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10069         Use glibc_skip_solib_resolver.
10070
10071 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10072
10073         Code cleanup: Make 1440 bytes of data segment read-only.
10074         * arch-utils.c (endian_enum): Make it const char *const [].
10075         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10076         Likewise.
10077         * breakpoint.c (always_inserted_enums): Likewise.
10078         * cli/cli-cmds.c (script_ext_enums): Likewise.
10079         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10080         enumlist parameter const char *const *.
10081         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10082         const char *const *.
10083         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10084         parameter const char *const *.
10085         * cris-tdep.c (cris_modes): Make it const char *const [].
10086         * filesystem.c (target_file_system_kinds): Likewise.
10087         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10088         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10089         (can_use_displaced_stepping_enum, scheduler_enums)
10090         (exec_direction_names): Likewise.
10091         * language.c (_initialize_language): Make the type_or_range_names and
10092         case_sensitive_names variables const char *const [].
10093         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10094         * python/python.c (python_excp_enums): Likewise.
10095         * remote.c (interrupt_sequence_modes): Likewise.
10096         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10097         * serial.c (logbase_enums): Likewise.
10098         * sh-tdep.c (sh_cc_enum): Likewise.
10099         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10100         Likewise.
10101         * symtab.c (multiple_symbols_modes): Likewise.
10102         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10103         Likewise.
10104         * utils.c (internal_problem_modes): Likewise.
10105
10106 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10107
10108         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10109         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10110         result.
10111
10112 2012-01-27  Doug Evans  <dje@google.com>
10113
10114         * configure.ac (with_python): Fix absolute path handling for win32.
10115         * configure: Regenerate.
10116
10117 2012-01-26  Doug Evans  <dje@google.com>
10118
10119         * symtab.c: Whitespace cleanup, no code changes.
10120
10121         * symtab.c (lookup_symbol_in_language): Improve comment.
10122         (lookup_symbol_aux): Fix comment.
10123
10124         * psymtab.c (add_psymbol_to_list): Result is now "void".
10125         * psympriv.h (add_psymbol_to_list): Update.
10126
10127         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10128
10129 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10130
10131         Do not open script filenames twice.
10132         * cli/cli-cmds.c (source_script_from_stream): Pass to
10133         source_python_script also STREAM.
10134         * python/py-auto-load.c (source_section_scripts): Pass to
10135         source_python_script_for_objfile also STREAM.
10136         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10137         also INPUT.
10138         * python/python-internal.h (source_python_script_for_objfile): New
10139         parameter file, rename parameter file to filename.
10140         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10141         instead if !_WIN32.  Update the function comment.
10142         (source_python_script, source_python_script_for_objfile)
10143         (source_python_script): New parameter file, rename parameter file to
10144         filename.  Pass FILENAME to python_run_simple_file.
10145         * python/python.h (source_python_script): New parameter file, rename
10146         parameter file to filename.
10147
10148 2012-01-26  Pedro Alves  <palves@redhat.com>
10149
10150         * corelow.c (core_has_fake_pid): Delete.
10151         (core_close): Delete references to `core_has_fake_pid'.
10152         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10153         (core_open): Delete references to `core_has_fake_pid'.
10154         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10155         the removed global.
10156
10157 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10158
10159         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10160         Remove language parameter from name_matcher.  Adjust the comment.
10161         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10162         Remove language parameter.
10163         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10164         * linespec.c (iterate_name_matcher): Likewise.
10165         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10166         name_matcher.  Adjust call accordingly.
10167         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10168         (maintenance_check_symtabs): Adjust type of parameter "fun".
10169         * psymtab.h (maintenance_check_symtabs): Likewise.
10170
10171 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10172
10173         * language.h (symbol_name_match_p_ftype): New typedef.
10174         (struct language_defn): Replace field la_symbol_name_compare
10175         by la_get_symbol_name_match_p.
10176         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10177         (ada_language_defn): Use it.
10178         * linespec.c (struct symbol_matcher_data): New type.
10179         (iterate_name_matcher): Rewrite.
10180         (iterate_over_all_matching_symtabs): Pass a pointer to
10181         a symbol_matcher_data struct to expand_symtabs_matching
10182         instead of just the lookup name.
10183         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10184         opencl-lang.c, p-lang.c, language.c: Delete field
10185         la_symbol_name_compare, and replace by NULL for new field
10186         la_get_symbol_name_match_p.
10187         * symfile.h (struct quick_symbol_functions): Update comment.
10188
10189 2012-01-25  Tom Tromey  <tromey@redhat.com>
10190
10191         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10192         dereferencing.
10193
10194 2012-01-24  Tom Tromey  <tromey@redhat.com>
10195
10196         PR symtab/12406:
10197         * solib.c (update_solib_list): Update the program space's
10198         added_solibs and deleted_solibs fields.
10199         * progspace.h (struct program_space) <added_solibs,
10200         deleted_solibs>: New fields.
10201         (clear_program_space_solib_cache): Declare.
10202         * progspace.c (release_program_space): Call
10203         clear_program_space_solib_cache.
10204         (clear_program_space_solib_cache): New function.
10205         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10206         bpstat_stop_status.  Use handle_solib_event.
10207         * breakpoint.c: Include gdb_regex.h.
10208         (print_solib_event): New function.
10209         (bpstat_print): Use print_solib_event.
10210         (bpstat_stop_status): Add special case for bp_shlib_event.
10211         (handle_solib_event): New function.
10212         (bpstat_what): Use handle_solib_event.
10213         (struct solib_catchpoint): New.
10214         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10215         (breakpoint_hit_catch_solib, check_status_catch_solib)
10216         (print_it_catch_solib, print_one_catch_solib)
10217         (print_mention_catch_solib, print_recreate_catch_solib): New
10218         functions.
10219         (catch_solib_breakpoint_ops): New global.
10220         (catch_load_or_unload, catch_load_command_1)
10221         (catch_unload_command_1): New functions.
10222         (internal_bkpt_check_status): Add special case for
10223         bp_shlib_event.
10224         (internal_bkpt_print_it): Use print_solib_event.
10225         (initialize_breakpoint_ops): Initialize
10226         catch_solib_breakpoint_ops.
10227         (_initialize_breakpoint): Register "catch load" and "catch
10228         unload".
10229         * breakpoint.h (handle_solib_event): Declare.
10230         * NEWS: Add entry for "catch load" and "catch unload".
10231
10232 2012-01-24  Tom Tromey  <tromey@redhat.com>
10233
10234         * ada-lang.c: Include gdb_vecs.h.
10235         * charset.c: Include gdb_vecs.h.
10236         * tracepoint.h: Include gdb_vecs.h.
10237         * gdb_vecs.h: New file.
10238
10239 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10240
10241         * breakpoint.c (breakpoint_hit_catch_fork)
10242         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10243         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10244         * infrun.c (inferior_has_forked, inferior_has_vforked)
10245         (inferior_has_execd, inferior_has_called_syscall): Delete.
10246         (handle_syscall_event): Get syscall_number from the execution
10247         control state's wait status.
10248         (wait_for_inferior): Don't clear syscall_number.
10249
10250 2012-01-24  Pedro Alves  <palves@redhat.com>
10251
10252         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10253         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10254         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10255         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10256         `ws' parameter.
10257         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10258         false for events other than TARGET_SIGNAL_TRAP.
10259         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10260         Add `ws' parameter.
10261         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10262         events other than TARGET_SIGNAL_TRAP.
10263         (tracepoint_breakpoint_hit): Add `ws' parameter.
10264         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10265         parameter.
10266         (bpstat_stop_status): Same.
10267         (pc_at_non_inline_function): Same.
10268         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10269         to pass the current event's waitstatus to bpstat_stop_status
10270         and pc_at_non_inline_function.
10271
10272 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10273
10274         Code cleanup.
10275         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10276         Update the function comment for it.
10277         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10278         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10279         for STREAM.
10280
10281 2012-01-24  Pedro Alves  <palves@redhat.com>
10282
10283         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10284         outside `bs->stop' block.
10285         (bpstat_what): Rework bp_shlib_event handling.
10286         (internal_bkpt_check_status): If the breakpoint is a
10287         bp_shlib_event, then set bs->stop and bs->print if
10288         stop_on_solib_events is set.
10289
10290 2012-01-24  Gary Benson  <gbenson@redhat.com>
10291
10292         Delete #if 0'd out code.
10293         * stack.c (print_frame_label_vars): Remove.
10294         (catch_info): Likewise.
10295         (_initialize_stack): Remove "info catch" command.
10296         * NEWS: Mention the above.
10297
10298 2012-01-24  Pedro Alves  <palves@redhat.com>
10299
10300         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10301         it.
10302         (remote_notice_new_inferior): If the remote end doesn't support
10303         the multiprocess extensions, then the PID is fake.
10304         (add_current_inferior_and_thread): New.
10305         (remote_start_remote): Use it.
10306         (extended_remote_attach_1): Adjust.
10307         (extended_remote_create_inferior_1): Use
10308         add_current_inferior_and_thread.
10309
10310 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10311
10312         Fix watchpoints to be specific for each inferior.
10313         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10314         current_program_space.
10315         * i386-nat.c (i386_inferior_data_cleanup): New.
10316         (i386_inferior_data_get): Replace variable inf_data_local by an
10317         inferior_data call.
10318         (i386_use_watchpoints): Initialize i386_inferior_data.
10319         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10320         specific iterate_over_lwps.
10321
10322 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10323
10324         Fix watchpoints across inferior fork.
10325         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10326         comment for linux_nat_iterate_watchpoint_lwps.
10327         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10328         linux_nat_iterate_watchpoint_lwps.
10329         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10330         * i386-linux-nat.c (update_debug_registers_callback): Update the
10331         comment for linux_nat_iterate_watchpoint_lwps.
10332         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10333         linux_nat_iterate_watchpoint_lwps.
10334         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10335         * i386-nat.c: Include inferior.h.
10336         (dr_mirror): Remove.
10337         (i386_inferior_data, struct i386_inferior_data)
10338         (i386_inferior_data_get): New.
10339         (i386_debug_reg_state): Use i386_inferior_data_get.
10340         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10341         (i386_insert_watchpoint, i386_remove_watchpoint)
10342         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10343         (i386_remove_hw_breakpoint): New variable state, use
10344         i386_debug_reg_state instead of DR_MIRROR.
10345         * linux-nat.c (delete_lwp): New declaration.
10346         (num_lwps): Move here from downwards.
10347         (delete_lwp_cleanup): New.
10348         (linux_child_follow_fork): Create new child_lp, call
10349         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10350         PTRACE_DETACH.
10351         (num_lwps): Move upwards.
10352         (linux_nat_iterate_watchpoint_lwps): New.
10353         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10354         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10355
10356 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10357
10358         GDB 7.4 released.
10359
10360 2012-01-23  Pedro Alves  <palves@redhat.com>
10361
10362         * top.c (caution): Rename to ...
10363         (confirm): ... this.
10364         (show_caution): Rename to ...
10365         (show_confirm): ... this.
10366         (quit_cover): Adjust.
10367         (init_main): Adjust.
10368         * top.h (caution): Rename to ...
10369         (confirm): ... this.
10370         * utils.c (internal_vproblem, defaulted_query): Adjust.
10371
10372 2012-01-23  Pedro Alves  <palves@redhat.com>
10373
10374         * top.c (caution): Update comment.
10375         (execute_command): Don't consider the current value of `caution'.
10376
10377 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10378
10379         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10380
10381 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10382
10383         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10384         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10385         * target.c (target_fileio_pwrite): Remove buffer address from
10386         debug output.
10387         (target_fileio_pread): Likewise.
10388
10389 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10390
10391         * NEWS: Document remote "info proc" and "generate-core-file".
10392
10393 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10394
10395         * gdbarch.sh (find_memory_regions): New callback.
10396         * gdbarch.c, gdbarch.h: Regenerate.
10397
10398         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10399         callback before falling back to target method.
10400
10401         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10402         (linux_target_install_ops): No longer install it.
10403
10404         * linux-tdep.c (linux_find_memory_regions): New function.
10405         (linux_init_abi): Install it.
10406
10407 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10408
10409         * gdbarch.sh (make_corefile_notes): New architecture callback.
10410         * gdbarch.c: Regenerate.
10411         * gdbarch.h: Likewise.
10412
10413         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10414         before target_make_corefile_notes.  If NULL is returned, the
10415         target does not support core file generation.
10416
10417         * linux-nat.c: Include "linux-tdep.h".
10418         (find_signalled_thread, find_stop_signal): Remove.
10419         (linux_nat_do_thread_registers): Likewise.
10420         (struct linux_nat_corefile_thread_data): Likewise.
10421         (linux_nat_corefile_thread_callback): Likewise.
10422         (iterate_over_spus): Likewise.
10423         (struct linux_spu_corefile_data): Likewise.
10424         (linux_spu_corefile_callback): Likewise.
10425         (linux_spu_make_corefile_notes): Likewise.
10426         (linux_nat_collect_thread_registers): New function.
10427         (linux_nat_make_corefile_notes): Replace contents by call to
10428         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10429         as native-only callback.
10430
10431         * linux-tdep.h: Include "bfd.h".
10432         (struct regcache): Add forward declaration.
10433         (linux_collect_thread_registers_ftype): New typedef.
10434         (linux_make_corefile_notes): Add prototype.
10435         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10436         "regset.h", and "elf-bfd.h".
10437         (find_signalled_thread, find_stop_signal): New functions.
10438         (linux_spu_make_corefile_notes): Likewise.
10439         (linux_collect_thread_registers): Likewise.
10440         (struct linux_corefile_thread_data): New data structure.
10441         (linux_corefile_thread_callback): New funcion.
10442         (linux_make_corefile_notes): Likewise.
10443         (linux_make_corefile_notes_1): Likewise.
10444         (linux_init_abi): Install it.
10445
10446 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10447
10448         * gdbarch.sh (info_proc): New callback.
10449         * gdbarch.c, gdbarch.h: Regenerate.
10450
10451         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10452         before falling back to the target info_proc callback.
10453
10454         * linux-nat.c: Do not include "cli/cli-utils.h".
10455         (linux_nat_info_proc): Remove.
10456         (linux_target_install_ops): No longer install it.
10457
10458         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10459         (read_mapping): New function.
10460         (linux_info_proc): Likewise.
10461         (linux_init_abi): Install it.
10462
10463 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10464
10465         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10466         * infcmd.c: (info_proc_cmd_1): New function.
10467         (info_proc_cmd): New function, moved here from equivalent routine
10468         orignally in linux-nat.c.
10469         (info_proc_cmd_mappings): Likewise.
10470         (info_proc_cmd_stat): Likewise.
10471         (info_proc_cmd_status): Likewise.
10472         (info_proc_cmd_cwd): Likewise.
10473         (info_proc_cmd_cmdline): Likewise.
10474         (info_proc_cmd_exe): Likewise.
10475         (info_proc_cmd_all): Likewise.
10476         (_initialize_infcmd): Install "info proc" command and subcommands.
10477
10478         * target.h (struct target_ops): Add to_info_proc.
10479         (target_info_proc): Add prototype.
10480         * target.c (target_info_proc): New function.
10481
10482         * procfs.c (procfs_info_proc): Add prototype.
10483         (info_proc_cmd): Rename into ...
10484         (procfs_info_proc): ... this.  Update argument types as appropriate
10485         for a to_info_proc implementation.  Handle "what" argument.
10486         (procfs_target): Install procfs_info_proc.
10487         (_initialize_procfs): No longer install "info proc" command.
10488
10489         * linux-nat.c: (enum info_proc_what): Remove.
10490         (linux_nat_info_proc_cmd_1): Rename into ...
10491         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10492         for a to_info_proc implementation.
10493         (linux_nat_info_proc_cmd): Remove.
10494         (linux_nat_info_proc_cmd_mappings): Likewise.
10495         (linux_nat_info_proc_cmd_stat): Likewise.
10496         (linux_nat_info_proc_cmd_status): Likewise.
10497         (linux_nat_info_proc_cmd_cwd): Likewise.
10498         (linux_nat_info_proc_cmd_cmdline): Likewise.
10499         (linux_nat_info_proc_cmd_exe): Likewise.
10500         (linux_nat_info_proc_cmd_all): Likewise.
10501         (linux_target_install_ops): Install linux_nat_info_proc.
10502         (_initialize_linux_nat): No longer install "info proc" command
10503         and subcommands.
10504
10505 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10506
10507         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10508         * config.in, configure: Regenerate.
10509
10510         * target.h (struct target_ops): Add to_fileio_readlink.
10511         (target_fileio_readlink): Add prototype.
10512         * target.c (target_fileio_readlink): New function.
10513
10514         * inf-child.c: Conditionally include <sys/param.h>.
10515         (inf_child_fileio_readlink): New function.
10516         (inf_child_target): Install it.
10517
10518         * remote.c (PACKET_vFile_readlink): New enum value.
10519         (remote_hostio_readlink): New function.
10520         (init_remote_ops): Install it.
10521         (_initialize_remote): Handle vFile:readlink packet type.
10522
10523 2012-01-20  Pedro Alves  <palves@redhat.com>
10524             Ulrich Weigand  <ulrich.weigand@linaro.org>
10525
10526         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10527         * config.in, configure: Regenerate.
10528
10529         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10530         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10531         (target_fileio_open): Add prototype.
10532         (target_fileio_pwrite): Likewise.
10533         (target_fileio_pread): Likewise.
10534         (target_fileio_close): Likewise.
10535         (target_fileio_unlink): Likewise.
10536         (target_fileio_read_alloc): Likewise.
10537         (target_fileio_read_stralloc): Likewise.
10538
10539         * target.c: Include "gdb/fileio.h".
10540         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10541         (default_fileio_target): New function.
10542         (target_fileio_open): Likewise.
10543         (target_fileio_pwrite): Likewise.
10544         (target_fileio_pread): Likewise.
10545         (target_fileio_close): Likewise.
10546         (target_fileio_unlink): Likewise.
10547         (target_fileio_close_cleanup): Likewise.
10548         (target_fileio_read_alloc_1): Likewise.
10549         (target_fileio_read_alloc): Likewise.
10550         (target_fileio_read_stralloc): Likewise.
10551
10552         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10553         <fcntl.h>, and <unistd.h>.
10554         (inf_child_fileio_open_flags_to_host): New function.
10555         (inf_child_errno_to_fileio_error): Likewise.
10556         (inf_child_fileio_open): Likewise.
10557         (inf_child_fileio_pwrite): Likewise.
10558         (inf_child_fileio_pread): Likewise.
10559         (inf_child_fileio_close): Likewise.
10560         (inf_child_fileio_unlink): Likewise.
10561         (inf_child_target): Install to_fileio routines.
10562
10563         * remote.c (init_remote_ops): Install to_fileio routines.
10564
10565 2012-01-20  Pedro Alves  <palves@redhat.com>
10566             Ulrich Weigand  <ulrich.weigand@linaro.org>
10567
10568         * remote.c (remote_multi_process_p): Only check for multi-process
10569         protocol feature, do not check for extended protocol.
10570         (remote_supports_multi_process): Check for extended protocol here.
10571         (set_general_process): Likewise.
10572         (extended_remote_kill): Likewise.
10573         (remote_pid_to_str): Likewise.
10574         (remote_query_supported): Always query multiprocess mode.
10575
10576 2012-01-20  Pedro Alves  <palves@redhat.com>
10577             Ulrich Weigand  <ulrich.weigand@linaro.org>
10578
10579         * inferior.h (struct inferior): Add fake_pid_p.
10580         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10581         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10582         magic_null_ptid since the remote side doesn't provide a real PID.
10583
10584 2012-01-19  Tom Tromey  <tromey@redhat.com>
10585
10586         * NEWS: Combine the two Python sections.
10587
10588 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10589
10590         * target.h (target_close): Update comment on the target's unpush state.
10591
10592 2012-01-19  Pedro Alves  <palves@redhat.com>
10593
10594         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10595         linux_nat_async directly instead of going through the target
10596         vector.
10597         * target.c (unpush_target): Close target after unpushing it, not
10598         before.
10599
10600 2012-01-19  Gary Benson  <gbenson@redhat.com>
10601
10602         * mdebugread.c (sort_blocks): Replace integer constants with ones
10603         derived from FIRST_LOCAL_BLOCK.
10604
10605 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10606             Jan Kratochvil  <jan.kratochvil@redhat.com>
10607
10608         PR gdb/9538
10609         * symfile.c (find_separate_debug_file): New function.
10610         (terminate_after_last_dir_separator): Likewise.
10611         (find_separate_debug_file_by_debuglink): Also try realpath.
10612         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10613         * configure: Regenerate.
10614         * config.in: Regenerate.
10615
10616 2012-01-18  Doug Evans  <dje@google.com>
10617
10618         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10619         (main.o): Remove rule.
10620         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10621         (--with-sysroot): Rewrite.
10622         * configure: Regenerate.
10623         * config.in: Regenerate.
10624
10625 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10626
10627         * parse.c (initialize_expout): New function.
10628         (reallocate_expout): Likewise.
10629         (parse_exp_in_context): Use `initialize_expout' and
10630         `reallocate_expout' when appropriate.
10631
10632 2012-01-18  Pedro Alves  <palves@redhat.com>
10633
10634         * record.c (struct record_breakpoint, record_breakpoint_p)
10635         (record_breakpoints): New.
10636         (record_insert_breakpoint, record_remove_breakpoint): Manage
10637         record breakpoints list.  Only remove breakpoints from the
10638         inferior if they had been inserted there in the first place.
10639
10640 2012-01-17  Doug Evans  <dje@google.com>
10641
10642         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10643         if we know we don't have a file name to look for.
10644
10645 2012-01-17  Pedro Alves  <palves@redhat.com>
10646
10647         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10648         the frame's stop reason is UNWIND_UNAVAILABLE.
10649
10650 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10651
10652         Fix compilation error.
10653         * m2-exp.y (yyerror): Use ANSI C prototype.
10654
10655 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10656
10657         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10658         (growbuf_by_size): Likewise.
10659         (yyerror): Likewise.
10660         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10661         (modblock): Remove variable (was #if 0'ed).
10662         (parse_number): Convert prototype from K&R to ANSI C.
10663         (yyerror): Likewise.
10664         * objc-exp.y (parse_number): Likewise.
10665         (yyerror): Likewise.
10666         (yylex): Remove #if 0'ed code.
10667         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10668         (yyerror): Likewise.
10669
10670 2012-01-16  Tom Tromey  <tromey@redhat.com>
10671
10672         * NEWS: Add item.
10673         * symtab.h (compare_filenames_for_search): Declare.
10674         * symtab.c (compare_filenames_for_search): New function.
10675         (iterate_over_some_symtabs): Use it.
10676         * symfile.h (struct quick_symbol_functions)
10677         <map_symtabs_matching_filename>: Change spec.
10678         * psymtab.c (partial_map_symtabs_matching_filename): Use
10679         compare_filenames_for_search.  Update for new spec.
10680         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10681         compare_filenames_for_search.  Update for new spec.
10682         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10683
10684 2012-01-16  Tom Tromey  <tromey@redhat.com>
10685
10686         PR python/13281:
10687         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10688         (struct main_type) <flag_flag_enum>: New field.
10689         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10690         * NEWS: Add entries.
10691         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10692         enums.
10693         * python/lib/gdb/printing.py (_EnumInstance): New class.
10694         (FlagEnumerationPrinter): Likewise.
10695
10696 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10697
10698         * breakpoint.c (create_sals_from_address_default): New function.
10699         (create_breakpoints_sal_default): Likewise.
10700         (decode_linespec_default): Likewise.
10701         (is_marker_spec): Removed.
10702         (strace_marker_p): New function.
10703         (init_breakpoint_sal): Using `strace_marker_p' instead of
10704         `is_marker_spec'.
10705         (create_breakpoint): Call method `create_sals_from_address' from
10706         breakpoint_ops, replacing code that created SALs conditionally
10707         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10708         replacing code that created breakpoints conditionally on the type
10709         wanted.
10710         (base_breakpoint_create_sals_from_address): New function.
10711         (base_breakpoint_create_breakpoints_sal): Likewise.
10712         (base_breakpoint_decode_linespec): Likewise.
10713         (base_breakpoint_ops): Add methods
10714         `base_breakpoint_create_sals_from_address',
10715         `base_breakpoint_create_breakpoints_sal' and
10716         `base_breakpoint_decode_linespec'.
10717         (bkpt_create_sals_from_address): New function.
10718         (bkpt_create_breakpoints_sal): Likewise.
10719         (bkpt_decode_linespec): Likewise.
10720         (tracepoint_create_sals_from_address): Likewise.
10721         (tracepoint_create_breakpoints_sal): Likewise.
10722         (tracepoint_decode_linespec): Likewise.
10723         (strace_marker_create_sals_from_address): Likewise.
10724         (strace_marker_create_breakpoints_sal): Likewise.
10725         (strace_marker_decode_linespec): Likewise.
10726         (strace_marker_breakpoint_ops): New variable.
10727         (addr_string_to_sals): Remove `marker_spec'.  Call method
10728         `decode_linespec' from breakpoint_ops, replacing code that decoded
10729         an address string into a SAL.  Use `strace_marker_p' instead of
10730         `marker_spec'.
10731         (strace_command): Decide whether we are dealing with a static
10732         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10733         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10734         * breakpoint.h (linespec_result, linespec_sals): New forward
10735         declarations.
10736         (breakpoint_ops) <create_sals_from_address>,
10737         <create_breakpoints_sal>, <decode_linespec>: New methods.
10738
10739 2012-01-14  Doug Evans  <dje@google.com>
10740
10741         * NEWS: Update text for "maint set python print-stack".
10742         It is deprecated in gdb 7.4 and deleted in 7.5.
10743
10744 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10745
10746         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10747         including curses.h.
10748
10749 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10750
10751         * configure: Regenerate.
10752         * config.in: Regenerate.
10753
10754 2012-01-12  Keith Seitz  <keiths@redhat.com>
10755
10756         PR mi/10586
10757         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10758         (ANONYMOUS_UNION_NAME): Define.
10759         (is_path_expr_parent): New function.
10760         (get_path_expr_parent): New function.
10761         (is_anonymous_child): New function.
10762         (create_child_with_value): If the child is anonymous and without
10763         a name, assign an object name to it.
10764         (c_describe_child): Use get_path_expr_parent to determine
10765         the parent expression.
10766         If there field represents an anonymous struct or union and
10767         has no name, set an appropriate display name and expression.
10768         (cplus_describe_child): Likewise.
10769
10770 2012-01-12  Pedro Alves  <palves@redhat.com>
10771
10772         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10773         available when %ebp is found to be zero (outermost).
10774
10775 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10776
10777         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10778         an internal gdb_static_assert.
10779         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10780
10781 2012-01-11  Tom Tromey  <tromey@redhat.com>
10782
10783         PR gdb/9598:
10784         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10785         catch" and "catch throw".
10786
10787 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10788
10789         * blockframe.c (block_innermost_frame): Start search from selected
10790         frame, if present, or otherwise the current frame.
10791
10792         * c-exp.y (variable): Update innermost_block for
10793         'block COLONCOLON NAME' clause.
10794         * m2-exp.y (variable): Ditto.
10795         * objc-exp.y (variable): Ditto.
10796
10797 2012-01-10  Tom Tromey  <tromey@redhat.com>
10798
10799         PR python/13199:
10800         * python/python.c (finish_python_initialization): Set sys.argv.
10801
10802 2012-01-10  Doug Evans  <dje@google.com>
10803
10804         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10805         "want_line_info".  All callers updated.
10806         (dwarf_decode_lines_1): New function.
10807         (handle_DW_AT_stmt_list): Add function comment.
10808         New arg "want_line_info".  All callers updated.
10809         (read_file_scope,read_type_unit_scope): Move comment from
10810         handle_DW_AT_stmt_list to here.
10811
10812 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10813
10814         Fix regression after libiberty/ update for GCC PR 6057 and others.
10815         * c-exp.y (operator) <OPERATOR DELETE>
10816         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10817         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10818         (make_builtin_type, make_name): New variable i, add gdb_assert.
10819         (operator) <OPERATOR NEW>: Update ARGS to 3.
10820         (operator) <OPERATOR DELETE>: Add trailing space.
10821         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10822         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10823         * cp-support.c (cp_canonicalize_string): Check NULL from
10824         cp_comp_to_string, call warning and return.
10825
10826 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10827
10828         Fix duplicate .o files after omitting libbfd.a.
10829         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10830         (SFILES): Add corelow.c.
10831         (COMMON_OBS): Add corelow.o.
10832         (ALLDEPFILES): Remove corelow.c.
10833         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10834         * config/alpha/alpha-osf3.mh: Likewise.
10835         * config/alpha/fbsd.mh: Likewise.
10836         * config/arm/nbsdaout.mh: Likewise.
10837         * config/arm/nbsdelf.mh: Likewise.
10838         * config/i386/i386gnu.mh: Likewise.
10839         * config/ia64/hpux.mh: Likewise.
10840         * config/ia64/linux.mh: Likewise.
10841         * config/m32r/linux.mh: Likewise.
10842         * config/m68k/linux.mh: Likewise.
10843         * config/mips/irix5.mh: Likewise.
10844         * config/mips/irix6.mh: Likewise.
10845         * config/pa/hpux.mh: Likewise.
10846         * config/pa/linux.mh: Likewise.
10847         * config/powerpc/aix.mh: Likewise.
10848         * config/sparc/linux.mh: Likewise.
10849         * config/sparc/linux64.mh: Likewise.
10850         * config/sparc/sol2.mh: Likewise.
10851         * config/vax/vax.mh: Likewise.
10852         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10853         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10854         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10855         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10856         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10857         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10858         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10859         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10860         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10861         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10862         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10863         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10864         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10865         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10866         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10867         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10868         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10869         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10870         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10871         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10872         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10873         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10874         corelow.o from gdb_target_obs.
10875         * corefile.c (core_target): Update the comment on NULL value.
10876         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10877         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10878         MATCHES.  Drop YUMMY set on NULL.
10879         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
10880         reclaim CORE_DATA if it is already NULL.
10881
10882 2012-01-09  Doug Evans  <dje@google.com>
10883
10884         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10885         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10886
10887 2012-01-09  Keith Seitz  <keiths@redhat.com>
10888
10889         * breakpoint.c (wrapper.h): Don't include.
10890
10891 2012-01-09  Keith Seitz  <keiths@redhat.com>
10892
10893         * Makefile.in (SFILES): Remove wrapper.c.
10894         (HFILES_NO_SRCDIR): Remove wrapper.h.
10895         (COMMON_OBS): Remove wrapper.o.
10896         * cli/cli-interp.c: Don't inlude wrapper.h.
10897         * corelow.c: Likewise.
10898         (core_open): Replace gdb_target_find_new_threads with
10899         TRY_CATCH around target_find_new_threads.
10900         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10901         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10902         * varobj.c (varobj_create): Likewise for parse_exp_1 and
10903         evaluate_expression.
10904         (varobj_set_value): Likewise for evaluate_expression and
10905         value_assign.
10906         (install_new_variable): Likewise for value_fetch_lazy.
10907         (adjust_value_for_child_access): Likewise for value_ind.
10908         (c_describe_child): Likewise for value_subscript and
10909         value_ind.
10910         (c_value_of_root): Likewise for evaluate_expression.
10911         * wrapper.c: Remove.
10912         * wrapper.h: Remove.
10913
10914 2012-01-09  Doug Evans  <dje@google.com>
10915
10916         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10917         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
10918         "abfd" args with "section".  All callers updated.
10919         Error checking code moved ...
10920         (error_check_comp_unit_head): ... here.  New function.
10921         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10922         Delete arg "abfd".  New arg "type_offset".  All callers updated.
10923         (create_debug_types_hash_table): Simplify by using
10924         read_and_check_type_unit_head.
10925
10926         * parser-defs.h (namecopy): Delete.
10927         * parse.c (namecopy, namecopy_size): Move into copy_name.
10928
10929 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10930
10931         Partially fix duplicate .o files after omitting libbfd.a.
10932         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10933         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10934         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10935         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10936         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10937         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10938         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10939
10940 2012-01-09  Pedro Alves  <palves@redhat.com>
10941
10942         * MAINTAINERS: Update my email address.
10943
10944 2012-01-08  Doug Evans  <dje@google.com>
10945
10946         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10947         n_type_units.  Rename type_comp_units to all_type_units.
10948         All uses updated.
10949         (add_signatured_type_cu_to_table): Renamed from
10950         add_signatured_type_cu_to_list.  All callers updated.
10951
10952         * gdbtypes.h (struct cplus_struct_type): Delete member
10953         nfn_fields_total.  All uses removed.
10954
10955 2012-01-06  Doug Evans  <dje@google.com>
10956
10957         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10958         to top of file.
10959         (dwarf2_find_comp_unit): Delete.
10960         (process_psymtab_comp_unit): Make result "void".
10961         Delete args buffer, info_ptr, buffer_size, and replace with
10962         "section".  All callers updated.
10963         (dwarf2_build_psymtabs_hard): Simplify.
10964
10965 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
10966             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10967
10968         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10969         before `struct gdb_exception'.
10970         * breakpoint.c (update_global_location_list_nothrow)
10971         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10972         * cp-abi.c (value_rtti_type): Likewise.
10973         * cp-support.c (cp_validate_operator): Likewise.
10974         * infrun.c (insert_exception_resume_breakpoint)
10975         (check_exception_resume, keep_going): Likewise.
10976         * mi-interp.c (mi_breakpoint_created)
10977         (mi_breakpoint_modified): Likewise.
10978         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10979         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10980         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10981
10982 2012-01-05  Doug Evans  <dje@google.com>
10983
10984         * dwarf2read.c (statement_prologue): Delete, unused.
10985
10986         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10987         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10988
10989         * dwarf2read.c (comp_unit_header): Delete, unused.
10990
10991 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
10992
10993         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10994         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10995
10996 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
10997
10998         * infrun.c (normal_stop): Don't skip calling the normal_stop
10999         observers if the thread was doing a multi-step, but stopped for
11000         some reason other than stepping.
11001
11002 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
11003
11004         * cli/cli-decode.h: Add comments.
11005         (CMD_LIST_AMBIGUOUS): Moved to command.h
11006         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11007         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11008         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11009         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11010         (add_com, add_com_alias, add_info, add_info_alias)
11011         (complete_on_cmdlist, complete_on_enum, help_list): Remove
11012         declarations.
11013         * command.h: Add and adjust comments.
11014         (CMD_LIST_AMBIGUOUS): Moved here.
11015         (help_cmd, help_cmd_list): Delete declarations.
11016
11017 2012-01-04  Doug Evans  <dje@google.com>
11018
11019         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11020         All callers updated.
11021         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11022         Replace all arguments with "per_cu".  All callers updated.
11023
11024         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11025
11026         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11027         New arg "per_cu".  All callers updated.
11028
11029         Delete #if 0'd out code.
11030         * language.c (binop_result_type): Delete.
11031         (simple_type, ordered_type, same_type, integral_type): Delete.
11032         (numeric_type, character_type, string_type, boolean_type): Delete.
11033         (float_type, structured_type): Delete.
11034         * language.h: Update.
11035
11036 2012-01-04  Tom Tromey  <tromey@redhat.com>
11037
11038         * python/py-value.c (valpy_binop): Initialize 'res_val'.
11039
11040 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11041
11042         * corefile.c (close_exec_file): Delete.
11043         (reopen_exec_file): Remove commented out code that seems related
11044         to close_exec_file, which is being deleted here.
11045         * inferior.h (close_exec_file): Delete.
11046         * fork-child.c (fork_inferior): Remove call to fork_inferior.
11047
11048 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11049
11050         * ada-lang.c: #include "cli/cli-utils.h".
11051         (get_selections): Use skip_spaces.
11052         (ada_get_next_arg): Use skip_spaces and skip_to_space.
11053         (catch_ada_exception_command_split): Use skip_spaces.
11054         (ada_decode_assert_location): Likewise.
11055
11056 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11057
11058         * linespec.c (decode_line_internal): Check for C++ or Java
11059         compound constructs only if the current language is C, C++
11060         or Java.
11061
11062 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11063
11064         Revert:
11065         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11066                     Joel Brobecker  <brobecker@adacore.com>
11067         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11068         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11069         3 times.
11070         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11071         fall through into AT_ENTRY_POINT.
11072         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11073         DUMMY_ADDR with it.
11074         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11075         PPC_INSN_SIZE skip to 3 times.
11076
11077 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11078
11079         * linespec.c (add_minsym): Preserve function descriptors.
11080
11081 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11082
11083         * breakpoint.c (all_locations_are_pending): Consider locations
11084         in program spaces executing during startup pending as well.
11085
11086 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11087
11088         Copyright year update in most files of the GDB Project.
11089
11090 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11091
11092         * copyright.sh: Delete.
11093         * copyright.py: Rewrite.
11094
11095 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11096
11097         * gnulib/extra/update-copyright: New file, imported from gnulib.
11098
11099 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11100
11101         * README (Copyright and License Notices): New section.
11102
11103 2012-01-03  Tom Tromey  <tromey@redhat.com>
11104
11105         PR python/12533:
11106         * python/py-value.c (valpy_dereference, valpy_get_address
11107         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11108         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11109         (valpy_absolute, valpy_richcompare): Free intermediate values.
11110
11111 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11112
11113         * ada-lang.c: Reformat the copyright notice.
11114
11115 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11116
11117         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11118         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11119         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11120         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11121         Revert this part of:
11122         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11123         Build gdb directly from *.o files not using libgdb.a.
11124         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11125
11126 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11127
11128         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11129         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11130         Reformat the copyright header.
11131
11132 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11133
11134         Revert this part of:
11135         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11136         Remove the gdbtui binary.
11137         * gdb.c (main): Remove args.interpreter_p initialization.
11138         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11139         * main.h (struct captured_main_args): Remove interpreter_p.
11140
11141 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11142
11143         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11144
11145 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11146
11147         * top.c (print_gdb_version): Update copyright year.
11148
11149 2012-01-02  Yao Qi  <yao@codesourcery.com>
11150
11151         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11152
11153 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11154             Joel Brobecker  <brobecker@adacore.com>
11155
11156         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11157         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11158         3 times.
11159         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11160         fall through into AT_ENTRY_POINT.
11161         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11162         DUMMY_ADDR with it.
11163         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11164         PPC_INSN_SIZE skip to 3 times.
11165
11166 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11167
11168         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11169         the return value.
11170         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11171
11172 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11173
11174         Build gdb directly from *.o files not using libgdb.a.
11175         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11176         (COMMON_OBS): Remove solib-target.o.
11177         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11178         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11179         (LIBGDB_OBS, libgdb.a): Move it above.
11180         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11181         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11182         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11183         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11184         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11185         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11186         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11187         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11188         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11189         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11190         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11191         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11192         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11193         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11194         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11195         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11196         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11197         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11198         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11199         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11200         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11201         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11202         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11203         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11204         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11205         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11206         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11207
11208 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11209
11210         Remove the gdbtui binary.
11211         * .gitignore (/gdbtui): Remove.
11212         * Makefile.in (TUI): Remove.
11213         (SUBDIR_TUI_OBS): Remove tui-main.o.
11214         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11215         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11216         (tui-main.o): Remove.
11217         (all_object_files): Remove tui-main.o.
11218         * NEWS: New note for the gdbtui removal.
11219         * configure: Rebuilt.
11220         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11221         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11222         CONFIG_UNINSTALL respectively.
11223         * gdb.c (main): Remove args.interpreter_p initialization.
11224         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11225         * main.h (struct captured_main_args): Remove interpreter_p.
11226         * tui/tui-main.c: Remove.
11227
11228 2012-01-01  Doug Evans  <dje@google.com>
11229
11230         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11231         (dwarf2_physname, read_import_statement): Ditto.
11232         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11233         (process_structure_scope read_subroutine_type): Ditto.
11234         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11235         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11236         (dwarf2_fetch_die_location_block): Ditto.
11237         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11238
11239         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11240         All callers updated.
11241         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11242         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11243         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11244
11245         * dwarf2read.c (load_cu): Move assert to more useful location.
11246
11247         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11248         All callers updated.
11249
11250         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11251         (dwarf2_elf_names): Minor reformat.
11252         (dwarf2_per_cu_data): Tweak comment.
11253         (dwarf2_read_section): Fix comment.
11254         (create_all_comp_units): Fix comment.
11255         (load_full_comp_unit): Fix comment.
11256         (process_full_comp_unit): Fix comment.
11257         (read_signatured_type): Fix comment.
11258
11259 For older changes see ChangeLog-2011.
11260 \f
11261 Local Variables:
11262 mode: change-log
11263 left-margin: 8
11264 fill-column: 74
11265 version-control: never
11266 coding: utf-8
11267 End: