* symfile.c (list_overlays_command, map_overlay_command)
[external/binutils.git] / gdb / ChangeLog
1 2012-12-12  Tom Tromey  <tromey@redhat.com>
2
3         * symfile.c (list_overlays_command, map_overlay_command)
4         (unmap_overlay_command): Now static.
5
6 2012-12-12  Tom Tromey  <tromey@redhat.com>
7
8         * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
9         "define", "while", and "if" commands.
10         * cli/cli-script.c (while_command, if_command, define_command)
11         (document_command): Now static.
12         (_initialize_cli_script): New function.
13         * cli/cli-script.h (while_command, if_command, define_command)
14         (document_command): Don't declare.
15
16 2012-12-12  Tom Tromey  <tromey@redhat.com>
17
18         * cli/cli-cmds.c (_initialize_cli_cmds): New function.
19         (init_cli_cmds): Move most code into new function.
20
21 2012-12-12  Tom Tromey  <tromey@redhat.com>
22
23         * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
24         * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
25         declare.
26
27 2012-12-18  Joel Brobecker  <brobecker@adacore.com>
28
29         * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
30         * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
31         * xcoffread.c (xcoff_get_core_n_import_files): New function.
32         (xcoff_get_n_import_files): New function.
33         * xcoffread.h (xcoffread.h): Add declaration.
34         * rs6000-aix-tdep.c: #include "xcoffread.h".
35         (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
36         XCOFF executables that do not depend on any shared library.
37         * rs6000-lynx178-tdep.c: New file.
38         * configure.tgt: Add powerpc-*-lynx*178 handling.
39         * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
40         (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
41
42 2012-12-18  Hui Zhu  <hui_zhu@mentor.com>
43
44         * ui-file.c (ui_file): Add to_fseek.
45         (ui_file_new): Call set_ui_file_fseek.
46         (null_file_fseek, ui_file_fseek, set_ui_file_fseek,
47          stdio_file_fseek): New functions.
48         (stdio_file_new): Call set_ui_file_fseek.
49         * ui-file.h (ui_file_fseek_ftype): New typedef.
50         (set_ui_file_fseek, ui_file_fseek): New externs.
51
52 2012-12-18  Hui Zhu  <hui_zhu@mentor.com>
53
54         * ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
55         (set_ui_file_isatty): Change isatty to isatty_ptr.
56         (set_ui_file_rewind): Change rewind to rewind_ptr.
57         (set_ui_file_put): Change put to put_ptr.
58         (set_ui_file_write): Change write to write_ptr.
59         (set_ui_file_write_async_safe): Change write_async_safe to
60         write_async_safe_ptr.
61         (set_ui_file_read): Change read to read_ptr.
62         (set_ui_file_fputs): Change fputs to fputs_ptr.
63         (set_ui_file_data): Change delete to delete_ptr.
64
65 2012-12-18  Joel Brobecker  <brobecker@adacore.com>
66
67         * solib-darwin.c (darwin_current_sos): Fix indentation.
68         (darwin_read_exec_load_addr): New function.
69         (darwin_solib_create_inferior_hook): Rebase executable.
70         * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
71         * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
72
73 2012-12-18  Joel Brobecker  <brobecker@adacore.com>
74
75         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
76         * gnulib/import/errno.in.h: Import.
77         * gnulib/import/m4/errno_h.m4: Import.
78         * gnulib/aclocal.m4: Regenerate.
79         * gnulib/configure: Regenerate.
80         * gnulib/import/Makefile.am: Update.
81         * gnulib/import/Makefile.in: Update.
82         * gnulib/import/m4/gnulib-cache.m4: Update.
83         * gnulib/import/m4/gnulib-comp.m4: Update.
84
85 2012-12-18  Joel Brobecker  <brobecker@adacore.com>
86
87         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
88         8d5bd1402003bd0153984b138735adf537d960b0.
89         * gnulib/aclocal.m4, configure, config.in: Regenerate.
90         * gnulib/import/m4/extern-inline.m4: Import.
91         * gnulib/import/wctype-h.c: Import.
92         * gnulib/import/Makefile.am: Update.
93         * gnulib/import/Makefile.in: Update.
94         * gnulib/import/alloca.in.h: Update.
95         * gnulib/import/extra/snippet/warn-on-use.h: Update.
96         * gnulib/import/localcharset.c: Update.
97         * gnulib/import/m4/fcntl-o.m4: Update.
98         * gnulib/import/m4/gnulib-cache.m4: Update.
99         * gnulib/import/m4/gnulib-comp.m4: Update.
100         * gnulib/import/m4/wctype_h.m4: Update.
101         * gnulib/import/stdbool.in.h: Update.
102         * gnulib/import/verify.h: Update.
103         * gnulib/import/wctype.in.h: Update.
104
105 2012-12-18  Joel Brobecker  <brobecker@adacore.com>
106
107         * gnulib/update-gnulib.sh: Add call to autoheader.
108
109 2012-12-17  Tom Tromey  <tromey@redhat.com>
110
111         * top.c (xgdb_verbose): Remove.
112
113 2012-12-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
114
115         Code cleanup.
116         * skip.c (skip_function_command, skip_file_command, skip_info): Remove
117         unused forward declarations.
118         (skip_file_command): Make variables symtab and filename targets const.
119         Use proper 0 vs. NULL constant everywhere.
120         (skip_function_command): Use proper 0 vs. NULL constant everywhere.
121         Include empty line after declarations.  Use GNU spacing in a comment.
122         Do not use strlen for end of string check.
123         (skip_info): Use proper 0 vs. NULL constant everywhere.  Add column 5
124         comments.
125         (skip_enable_command, skip_disable_command, skip_delete_command)
126         (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
127         (function_pc_is_marked_for_skip): Make variable filename target const.
128         Use proper 0 vs. NULL constant everywhere.  Fix GNU non-compliant
129         comment formatting.
130         (skip_re_set): Add empty line after function comment.  Use proper 0 vs.
131         NULL constant everywhere.  Include empty line after declarations.  Make
132         variable symtab target const.  Do not use strlen for end of string
133         check.
134
135 2012-12-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
136
137         Code cleanup.
138         * breakpoint.c (clear_command): Remove variable sal_name_len and its
139         initialization, remove it from the compare_filenames_for_search call.
140         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
141         name_len and its initialization, remove it from the
142         compare_filenames_for_search calls.
143         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
144         * symtab.c (compare_filenames_for_search): Remove the search_len
145         parameter, update the function comment, new variable search_len
146         initialized from SEARCH_NAME.
147         (iterate_over_some_symtabs): Remove variable name_len and its
148         initialization, remove it from the compare_filenames_for_search calls.
149         * symtab.h (compare_filenames_for_search): Remove the search_len
150         parameter, 
151
152 2012-12-16  Joel Brobecker  <brobecker@adacore.com>
153
154         * Makefile.in (SFILES): Move ravenscar-thread.c from here...
155         (ALLDEPFILES): ... to there.
156
157 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
158
159         * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
160
161 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
162
163         * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
164         * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
165         (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
166         (ALLDEPFILES): Add ppc-ravenscar-thread.c.
167         * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
168         to gdb_target_obs for every target that uses rs6000-tdep.o.
169         * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
170         (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
171         or register_ppc_ravenscar_ops.
172
173 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
174
175         * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
176         RAVENSCAR_SPARC_THREAD_H.
177         * sparc-ravenscar-thread.c: Rename all global entities
178         whose name is uses "ravenscar_sparc" as the prefix to use
179         "sparc_ravenscar" instead.
180
181 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
182
183         * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
184         * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
185         Adjust sparc-ravenscar-thread.h #include.
186         * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
187         accordingly.
188         * Makefile.in: Replace ravenscar-sparc-thread with
189         sparc-ravenscar-thread throughout.
190         * configure.tgt: Likewise.
191
192 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
193
194         * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
195         declaration.
196         (ravenscar_ops): New gdbarch variable.
197         * gdbarch.h, gdbarch.c: Regenerate.
198         * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
199         * ravenscar-thread.c (current_arch_ops): Delete.
200         (ravenscar_fetch_registers): Get the ravenscar_arch_ops
201         from the gdbarch.
202         (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
203         (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
204         (ravenscar_register_arch_ops): Delete.
205         * ravenscar-sparc-thread.h: New file.
206         * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
207         (ravenscar_sparc_ops): Define value statically.
208         (_initialize_ravenscar_sparc): Delete.
209         (register_sparc_ravenscar_ops): New function.
210         * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
211         (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
212         * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
213         ravenscar-sparc-thread.o.
214         (SFILES): Add ravenscar-thread.c.
215         (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
216         (ALLDEPFILES): ravenscar-sparc-thread.c.
217         * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
218         to gdb_target_obs
219         for all the targets that use sparc-tdep.o.
220
221 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
222
223         * ravenscar-thread.c (ravenscar_is_open): Delete.
224         (ravenscar_initialize): Move most of the code from here...
225         (ravenscar_inferior_created): ... to there.  Invert logic.
226         (ravenscar_close): Delete.
227         (init_ravenscar_thread_ops): Remove setting of
228         ravenscar_ops.to_close.
229
230 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
231
232         * objfiles.c (init_entry_point_info): Move function from here...
233         * symfile.c (init_entry_point_info): ... to there.  Make static.
234         * objfiles.h (objfiles.h): Delete declaration.
235
236 2012-12-15  Joel Brobecker  <brobecker@adacore.com>
237
238         * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
239         Remove call to init_entry_point_info.  Add OBJFILE's
240         section_offsets and num_sections initialization.  Add note
241         about entry info in the function documentation.
242         (syms_from_objfile): New function.
243         * coffread.c (coff_symfile_init): Remove call to
244         init_entry_point_info.
245         * machoread.c (macho_symfile_init): Likewise.
246         * xcoffread.c(xcoff_symfile_init): Likewise.
247
248 2012-12-15  Yao Qi  <yao@codesourcery.com>
249
250         * remote-notif.c (_initialize_notif): Add new commands
251         'set debug notification' and 'show debug notification'.
252         * NEWS: Mention these new commands.
253
254 2012-12-15  Yao Qi  <yao@codesourcery.com>
255
256         * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
257         (SFILES): Add "remote-notif.c".
258         (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
259         * remote-notif.c: New.  Factored out from remote.c.
260         * remote-notif.h: New.
261         * remote.c: Include "remote-notif.h".
262         (stop_reply_xmalloc, do_stop_reply_xfree):
263         (remote_parse_stop_reply, remote_get_pending_stop_replies):
264         (remote_async_get_pending_events_handler): Remove declarations.
265         (remote_parse_stop_reply): Declare.
266         (pending_stop_reply): Remove.
267         (remote_async_get_pending_events_token): Move to
268         remote-notif.c.
269         (remote_close): Replace 'delete_async_event_handler' with
270         remote_notif_unregister_async_event_handler.
271         Don't call discard_pending_stop_replies.
272         (remote_start_remote): Replace code with remote_notif_parse
273         and remote_notif_get_pending_replies.
274         (remote_open_1): Replace 'create_async_event_handler' with
275         remote_notif_register_async_event_handler.
276         (extended_remote_attach_1): Call remote_notif_parse and
277         notif_stop_reply_push.
278         (struct stop_reply) <next>: Remove.
279         <base>: New field.
280         Callers update.
281         (stop_reply_queue): Change its type.
282         (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
283         (remote_notif_remove_all): New.
284         (discard_pending_stop_replies): Update.
285         (remote_notif_stop_ack, stop_reply_dtr): New.
286         (remote_notif_stop_alloc_event): New.
287         (notif_client_stop): New variable.
288         (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
289         (queued_stop_reply, peek_stop_reply): Adjust.
290         (remote_get_pending_stop_replies): Rename to
291         remote_notif_get_pending_events.
292         (handle_notification): Move to remote-notif.c.
293         (remote_async_get_pending_events_handler): Likewise.
294         (remote_wait_as): Adjust to call remote_notif_parse.
295         Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
296         Return minus_one_ptid early if gets a notification.
297         (remote_wait): Call QUEUE_is_empty (notif_reply_p).
298         (_initialize_remote): Call QUEUE_alloc.  Update caller.
299         (remote_resume): Call 'remote_notif_process' in all-stop mode.
300         * remote.h: Include "remote-notif.h".
301         (remote_notif_get_pending_replies): Declare.
302
303 2012-12-15  Yao Qi  <yao@codesourcery.com>
304
305         * remote.c (discard_pending_stop_replies): Update declaration.
306         (remote_detach_1, extended_remote_mourn_1): Likewise.
307         (discard_pending_stop_replies): Change parameter from PID to
308         INF.
309         (remote_close): Update caller.
310         (_initialize_remote): Attach discard_pending_stop_replies to
311         inferior_exit observer.
312
313 2012-12-15  Yao Qi  <yao@codesourcery.com>
314
315         * remote.c (getpkt_or_notif_sane): Add one more argument in
316         its declaration.
317         (getpkt_or_notif_sane_1): Add one more argument.
318         (getpkt_sane): Update caller.
319         (getpkt_or_notif_sane): Likewise.  Update call
320         togetpkt_or_notif_sane_1.
321         (remote_wait_ns): Update caller.
322
323 2012-12-15  Yao Qi  <yao@codesourcery.com>
324             Doug Evans  <dje@google.com>
325
326         * common/queue.h: New.
327
328 2012-12-15  Yao Qi  <yao@codesourcery.com>
329
330         * breakpoint.c (print_one_breakpoint_location): Display the
331         state of 'installed' of each non-pending location of a tracepoint
332         in both CLI and MI.
333         (download_tracepoint_locations): Notify 'breakpoint-modified'
334         observer if any tracepoint location is downloaded.
335         * tracepoint.c (start_tracing): Likewise.
336         (merge_uploaded_tracepoints): Record all modified
337         tracepoints and notify 'breakpoint-modified' observer for them.
338
339         * NEWS: Mention the change for CLI and MI.
340
341 2012-12-15  Yao Qi  <yao@codesourcery.com>
342
343         * breakpoint.c (download_tracepoint_locations): Iterate over
344         ALL_TRACEPOINTS first and then iterate over locations of
345         each tracepoint.
346
347 2012-12-14  Pierre Muller  <muller@sourceware.org>
348             Pedro Alves  <palves@redhat.com>
349
350         * solib-target.c (solib_target_current_sos): Remove 'const'
351         qualifier from type of library_document local variable to be
352         able to free it and avoid a memory leak.
353         Use cleanup chain to avoid leak even if exceptino is generated.
354
355 2012-12-14  Tom Tromey  <tromey@redhat.com>
356
357         PR c++/8888:
358         * symtab.c (lookup_symbol_aux): If constructor is found, consider
359         returning the type instead.
360         * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
361         found.
362
363 2012-12-14  Tom Tromey  <tromey@redhat.com>
364
365         Partial fix for PR c++/14160:
366         * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
367         * dwarf2read.c (dwarf2_is_constructor): New function.
368         (dwarf2_add_member_fn): Use it.
369         * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
370         TYPE_FN_FIELD_CONSTRUCTOR.
371         * jv-typeprint.c (java_type_print_base): Use
372         TYPE_FN_FIELD_CONSTRUCTOR.
373         * gdbtypes.h (struct fn_field) <is_constructor>: New field.
374         <dummy>: Shrink.
375         (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
376
377 2012-12-14  Tom Tromey  <tromey@redhat.com>
378
379         * c-exp.y (block, variable, name_not_typename, lex_one_token,
380         classify_name): Update.
381         * c-valprint.c (c_val_print): Update.
382         * f-exp.y (yylex): Update.
383         * go-exp.y (package_name_p, classify_packaged_name)
384         (classify_name): Update.
385         * jv-exp.y (push_variable): Update.
386         * m2-exp.y (variable): Update.
387         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
388         * p-exp.y (block, variable, yylex): Update.
389         * p-valprint.c (pascal_val_print): Update.
390         * parse.c (write_dollar_variable): Update.
391         * printcmd.c (address_info): Update.
392         * python/py-symbol.c (gdbpy_lookup_symbol): Update.
393         * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
394         (lookup_symbol): Change type of 'is_a_field_of_this'.
395         (check_field): Add 'is_a_field_of_this' argument.
396         * symtab.h (struct field_of_this_result): New.
397         (lookup_symbol, lookup_symbol_in_language): Update.
398
399 2012-12-14  Tom Tromey  <tromey@redhat.com>
400
401         * symtab.c (check_field): Now static.  Move from...
402         * valops.c (check_field): ... here.  Remove.
403         * value.h (check_field): Don't declare.
404
405 2012-12-14  Tom Tromey  <tromey@redhat.com>
406
407         * NEWS: Mention "info proc" and core files.
408         * corelow.c (core_info_proc): New function.
409         (init_core_ops): Set to_info_proc.
410         * gdbarch.c, gdbarch.h: Rebuild.
411         * gdbarch.sh (core_info_proc): New method.
412         * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
413         * linux-tdep.c (linux_core_info_proc_mappings)
414         (linux_core_info_proc): New functions.
415         (linux_find_memory_region_ftype): New typedef.
416         (linux_find_memory_regions_full): New function, from
417         linux_find_memory_regions.
418         (struct linux_find_memory_regions_data): New.
419         (linux_find_memory_regions_thunk): New function.
420         (linux_find_memory_regions): Rewrite.
421         (struct linux_make_mappings_data): New.
422         (linux_make_mappings_callback)
423         (linux_make_mappings_corefile_notes): New functions.
424         (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
425         (linux_init_abi): Call set_gdbarch_core_info_proc.
426         * target.c (target_info_proc): Return 'int'.
427         * target.h (target_info_proc): Update.
428
429 2012-12-14  Pierre Muller  <muller@sourceware.org>
430
431         * windows-nat.c (windows_xfer_shared_libraries): Avoid
432         memory leak when OFFSET >= LEN_AVAIL.
433
434 2012-12-13  Tom Tromey  <tromey@redhat.com>
435
436         * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
437
438 2012-12-13  Tom Tromey  <tromey@redhat.com>
439
440         * acinclude.m4 (CY_AC_C_WORKS): Remove.
441
442 2012-12-13  Pierre Muller  <muller@sourceware.org>
443
444         * coff-pe-read.c (pe_text_section_offset): Increase size of sname
445         local variable and zero terminate it to avoid possible problems
446         in strcmp.
447
448 2012-12-13  Pedro Alves  <palves@redhat.com>
449
450         * coff-pe-read.c: Include coff/internal.h.
451         (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
452         Null terminate buffer explicitly instead of memset the whole
453         buffer.
454
455 2012-12-13  Pierre Muller  <muller@sourceware.org>
456
457         * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
458         (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
459         for already defined macros.
460
461 2012-12-13  Pierre Muller  <muller@sourceware.org>
462
463         * coff-pe-read.h (pe_text_section_offset): Declare new function.
464         * coff-pe-read.c (debug_coff_pe_read): New static variable.
465         (struct read_pe_section_data): Add section_name field.
466         (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
467         (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
468         (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
469         (get_pe_section_index): New function.
470         (struct pe_sections_info): New type.
471         (get_section_vmas): Use new struct pe_sections_info.
472         (add_pe_exported_sym): Handle unnamed exported function.
473         (add_pe_forwarded_sym): New function.
474         (read_pe_truncate_name): Truncate at last dot.
475         (pe_as16): New function.
476         (read_pe_exported_syms): Use ordinal of function to
477         retrieve correct RVA address of function and handle
478         forwarded symbol.
479         (pe_text_section_offset): New function.
480         (show_debug_coff_pe_read): New function.
481         (_initialize_coff_pe_read): New function adding
482         'set/show debug coff_pe_read' commands.
483
484         * windows-tdep.c (windows_xfer_shared_library): Use
485         pe_text_section_offset function instead of possibly wrong
486         0x1000 constant for .text sextion offset.
487
488 2012-12-13  Pedro Alves  <palves@redhat.com>
489
490         * gdbarch.sh (do_read): Set IFS to blank.
491
492 2012-12-12  Mircea Gherzan  <mircea.gherzan@intel.com>
493
494         * NEWS: Mention the -catch-load/-catch-unload MI commands.
495
496 2012-12-12  Mircea Gherzan  <mircea.gherzan@intel.com>
497
498         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
499         (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
500         * breakpoint.c (add_solib_catchpoint): New function that
501         can be used by both CLI and MI, factored out from
502         catch_load_or_unload.
503         (catch_load_or_unload): Strip it down and make it use the
504         new add_solib_catchpoint.
505         * breakpoint.h (add_solib_catchpoint): Declare it.
506         * mi/mi-cmd-break.h: New file.
507         * mi/mi-cmd-break.c: Include mi-cmd-break.h.
508         (setup_breakpoint_reporting): New function used for both
509         catchpoints and breakpoints.
510         (mi_cmd_break_insert): Use setup_breakpoint_reporting.
511         * mi/mi-cmd-catch.c: New file.
512         * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
513         and -catch-unload.
514         * mi/mi-cmds.h: Declare the handlers for -catch-load and
515         -catch-unload.
516
517 2012-11-28  Tom Tromey  <tromey@redhat.com>
518
519         * dbxread.c (read_dbx_symtab): Update.
520         (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
521         (read_ofile_symtab): Add 'objfile' argument.
522         * dwarf2read.c (process_psymtab_comp_unit_reader)
523         (build_type_psymtabs_reader): Update.
524         (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
525         * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
526         argument.
527         (parse_procedure, parse_partial_symbols): Update.
528         (psymtab_to_symtab_1): Add 'objfile' argument.
529         * psympriv.h (struct partial_symtab) <objfile>: Remove.
530         <read_symtab>: Add 'objfile' argument.
531         (sort_pst_symbols, discard_psymtab): Update.
532         * psymtab.c (partial_map_expand_apply): Update.
533         (find_pc_sect_psymtab_closer): Add 'objfile' argument.
534         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
535         (find_pc_sect_psymbol): Add 'objfile' argument.
536         (lookup_symbol_aux_psymtabs): Update.
537         (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
538         Add 'objfile' argument.
539         (find_last_source_symtab_from_partial, dump_psymtab)
540         (dump_psymtabs_for_objfile, read_symtabs_for_function)
541         (expand_partial_symbol_tables, read_psymtabs_with_filename)
542         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
543         (expand_symtabs_matching_via_partial): Update.
544         (sort_pst_symbols): Add 'objfile' argument.
545         (allocate_psymtab): Update.
546         (discard_psymtab): Add 'objfile' argument.
547         (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
548         * stabsread.h (end_psymtab): Update.
549         * xcoffread.c (this_symtab_objfile): New global.
550         (process_linenos, enter_line_range, xcoff_next_symbol_text):
551         Update.
552         (read_xcoff_symtab): Add 'objfile' argument.
553         (read_symbol, read_symbol_lineno): Update.
554         (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
555         (xcoff_end_psymtab): Add 'objfile' argument.
556         (scan_xcoff_symtab): Update.
557
558 2012-12-12  Paul Koning  <paul_koning@dell.com>
559
560         Add support for Python 3.
561         * NEWS: Mention Python 3 support.
562         * varobj.c (value_get_print_value): Use
563         python_string_to_target_string.
564         * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
565         of type objects.
566         * python/py-breakpoint.c: Ditto.
567         * python/py-cmd.c:  Ditto.
568         * python/py-event.c: Ditto.
569         * python/py-event.h: Ditto.
570         * python/py-evtregistry.c: Ditto.
571         * python/py-finishbreakpoint.c: Ditto.
572         * python/py-frame.c: Ditto.
573         * python/py-function.c: Ditto.
574         * python/py-infthread.c: Ditto.
575         * python/py-lazy-string.c: Ditto.
576         * python/py-progspace.c: Ditto.
577         * /python/py-symbol.c: Ditto.
578         * python/py-evts.c:  (gdbpy_initialize_py_events): Add module
579         initialization for Python 3.
580         * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
581         of type objects.
582         (infpy_read_memory): Return memoryview object if Python 3.
583         (infpy_write_memory): Use "s*" operand parsing code for Python 3.
584         (infpy_search_memory): Ditto.
585         (get_buffer): New function for Python 3.
586         * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
587         of type objects.
588         (objfpy_dealloc): Use Py_TYPE to call tp_free.
589         * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
590         of type objects.
591         (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
592         (set_attr): Ditto.
593         * python/py-prettyprint.c (print_string_repr): use PyBytes methods
594         instead of PyString methods if Python 3.
595         (print_children): Skip push_dummy_python_frame call if Python 3.
596         * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
597         of type objects.
598         (salpy_dealloc): Use Py_TYPE to call tp_free.
599         * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
600         of type objects.
601         (field_dealloc): Use Py_TYPE to call tp_free.
602         (typy_dealloc): Ditto.
603         (type_object_as_number): Adjust struct initializations for
604         differences in layout for Python 2 vs. Python 3.
605         * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
606         string case for Python 3.
607         (unicode_to_encoded_python_string): Shorten code (no functional
608         change).
609         (python_string_to_target_python_string): Comment that in Python 3
610         returned value is a Python "bytes" type.
611         (gdbpy_is_string): Omit non-Unicode string check in Python 3.
612         (gdb_py_object_from_longest): Omit non-long integer case in Python
613         3.
614         (gdb_py_object_from_ulongest): Ditto.
615         * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
616         of type objects.
617         (valpy_dealloc): Use Py_TYPE to call tp_free.
618         (valpy_int): Omit function if Python 3.
619         (convert_value_from_python): Use "%S" format (Python object as a
620         string) if Python 3.
621         (value_object_as_number): Adjust struct initializations for
622         differences in layout for Python 2 vs. Python 3.
623         * python/python-config.py: Adjust syntax for Python 3
624         compatibility.
625         Include "sys.abiflags" string as part of python library name, if
626         that attribute exists (Python 3).
627         * python/python-internal.h (IS_PY3): Define if Python 3.
628         (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
629         placeholder value if Python 3.
630         (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
631         PyString_Decode, PyString_FromFormat, PyString_Check): Define as
632         analogous Python 3 API function if Python 3.
633         (PyVarObject_HEAD_INIT): Define if not already defined.
634         (Py_TYPE): Ditto.
635         * python/python.c (eval_python_command): Omit Py_FlushLine call if
636         Python 3.
637         Check return values of all Python API calls for error.
638         Supply dummy "python" and "python-interactive" commands if Python
639         initialization failed.
640         (_initialize_python): Convert argc to wchar_t** if Python 3.
641         Add module initialization for Python 3.
642         (finish_python_initialization): Pass wchar_t * argument to
643         PySys_SetPath if Python 3.
644         * python/lib/gdb/__init__.py: Define "reload" if Python 3.
645         (_GdbFile): New class for common output file behavior.
646         (GdbOutFile): Subclass from _GdbFile.
647         (GdbOutputErrorFile): Ditto.
648         (auto_load_packages): Adjust syntax for Python 3 compatibility.
649         * python/lib/gdb/printing.py: Define basestr and int if Python 3.
650         * python/lib/gdb/prompt.py: Use sorted() function rather than
651         sort() method.
652         * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
653         Adjust syntax for Python 3 compatibility.
654         * python/lib/gdb/command/pretty_printers.py: Use sorted() function
655         rather than sort() method.
656         Adjust syntax for Python 3 compatibility.
657         * python/lib/gdb/command/type_printers.py: Ditto.
658         * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
659         value is a memoryview object if Python 3.
660
661 2012-12-12  Tom Tromey  <tromey@redhat.com>
662
663         * coffread.c (coff_objfile_data_key): New global.
664         (coff_symfile_init): Use set_objfile_data.
665         (coff_symfile_read): Use objfile_data.
666         (coff_symfile_finish): Don't free deprecated_sym_private.
667         (coff_free_info): New function.
668         (_initialize_coffread): Initialize coff_objfile_data_key.
669         * mdebugread.c (pending_list): Update comment.
670         * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
671         * symfile.c (reread_symbols): Don't mention
672         deprecated_sym_private.
673         * xcoffread.c (xcoff_objfile_data_key): New global.
674         (XCOFF_DATA): New macro.
675         (process_linenos, enter_line_range, xcoff_next_symbol_text)
676         (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
677         XCOFF_DATA.
678         (xcoff_new_init) Use set_objfile_data.
679         (xcoff_symfile_finish): Don't free deprecated_sym_private.
680         (init_stringtab, swap_sym, scan_xcoff_symtab)
681         (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
682         (xcoff_free_info): New function.
683         (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
684
685 2012-12-12  Mircea Gherzan  <mircea.gherzan@intel.com>
686
687         * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
688
689 2012-12-12  Tom Tromey  <tromey@redhat.com>
690
691         * coffread.c (coff_symfile_init): Use set_objfile_data.
692         (coff_symfile_read): Use DBX_SYMFILE_INFO.
693         * dbxread.c (dbx_objfile_data_key): New global.
694         (dbx_symfile_init): Use set_objfile_data.
695         (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
696         (dbx_free_symfile_info): New function.
697         (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
698         DBX_SYMFILE_INFO.
699         (stabsect_build_psymtabs): Use set_objfile_data.
700         (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
701         * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
702         set_objfile_data.
703         (free_elfinfo): Use DBX_SYMFILE_INFO.
704         (elf_symfile_finish): Don't free deprecated_sym_stab_info.
705         (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
706         * gdb-stabs.h (dbx_objfile_data_key): Declare.
707         (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
708         * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
709         * somread.c (som_symfile_finish): Don't free
710         deprecated_sym_stab_info.
711
712 2012-12-12  Joel Brobecker  <brobecker@adacore.com>
713
714         * gdbarch.sh (software_single_step): Remove trailing space in
715         comment (gdbarch.h is already correct).
716
717 2012-12-11  Tom Tromey  <tromey@redhat.com>
718
719         * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
720
721 2012-12-11  Tom Tromey  <tromey@redhat.com>
722
723         * dsrec.c (report_transfer_performance): Don't declare.
724         (load_srec): Use gettimeofday, print_transfer_performance.
725         * symfile.c (report_transfer_performance): Remove.
726
727 2012-12-11  Pedro Alves  <pedro@codesourcery.com>
728             Pedro Alves  <palves@redhat.com>
729
730         * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
731         NT_PSTATUS note.
732         * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
733         differently from LWP IDs.
734
735 2012-12-11  Pedro Alves  <palves@redhat.com>
736
737         * configure.ac (detect type of /proc): Remove Unixware handling.
738         * configure: Regenerate.
739         * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
740         (ioctl_table) [PCRESET]: Remove entry.
741         * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
742         (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
743         (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
744         * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
745         * procfs.c: Remove all UNIXWARE guarded code, and all traces of
746         Unixware in comments throughout.
747         * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
748         and remove mention of Unixware.
749
750 2012-12-10  Doug Evans  <dje@google.com>
751
752         * dwarf2read.c (dwarf2_cu): Enhance comment.
753         (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
754         the DWO file.
755         (dwarf2_record_block_ranges): Ditto.
756
757         * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
758
759         * symtab.c (find_pc_sect_symtab): Add comment.
760
761 2012-12-10  Tom Tromey  <tromey@redhat.com>
762
763         * defs.h: Don't check for definition of LONGEST.
764         (min, max): Remove duplicates.
765
766 2012-12-10  Tom Tromey  <tromey@redhat.com>
767
768         * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
769         (dwarf2_fetch_die_loc_cu_off): Rename from
770         dwarf2_fetch_die_location_block.  Rewrite to use
771         dwarf2_fetch_die_loc_sect_off.
772         * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
773         (dwarf2_fetch_die_loc_cu_off): Rename.
774         * dwarf2loc.c (indirect_pieced_value): Use
775         dwarf2_fetch_die_loc_sect_off.
776         * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
777         comment.
778         (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
779         * dwarf2expr.c (add_piece): Update.
780         (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
781
782 2012-12-10  Tom Tromey  <tromey@redhat.com>
783
784         * buildsym.c (struct pending_block): Move from buildsym.h.
785         (pending_blocks): Likewise; now static.
786         (pending_block_obstack): New global.
787         (free_pending_blocks): Free blocks.
788         (record_pending_block): Use pending_block_obstack.
789         * buildsym.h (struct pending_block): Move definition to
790         buildsym.c.
791         (pending_blocks): Don't declare.
792
793 2012-12-10  Pedro Alves  <palves@redhat.com>
794
795         * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
796         dead SCO code, and adjust function description comment.
797
798 2012-12-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
799
800         * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
801         * defs.h (LONGEST, ULONGEST): Remove conditionalization for
802         CC_HAS_LONG_LONG.
803         * dwarf2-frame.c (DW64_CIE_ID): Likewise.
804         * dwarf2read.c (extract_cu_value): Remove the function.
805         (create_cus_from_index_list): Make the return type void, inline the
806         extract_cu_value caller, include new gdb_static_assert.
807         (create_cus_from_index): Make the return type void, update the function
808         comment, update the create_cus_from_index_list caller.
809         (create_signatured_type_table_from_index): Make the return type void,
810         inline the extract_cu_value caller, include new gdb_static_assert.
811         (dwarf2_read_index): Update the create_cus_from_index and
812         create_signatured_type_table_from_index caller.
813         * printcmd.c (ui_printf): Remove conditionalizations for
814         CC_HAS_LONG_LONG.
815         * config.in: Regenerate.
816         * configure: Regenerate.
817
818 2012-12-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
819
820         * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
821         Update the comment for checked_producer.
822         (check_producer): New forward declaration.
823         (producer_is_gcc_lt_4_3): New function.
824         (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
825         (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
826
827 2012-12-07  Tom Tromey  <tromey@redhat.com>
828
829         * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
830         argument, assertion.
831         * c-exp.y (typebase): Add completion productions.
832         * completer.c (expression_completer): Handle tag completion.
833         * expression.h (parse_expression_for_completion): Add argument.
834         * f-lang.c (f_make_symbol_completion_list): Add 'code'
835         argument.
836         * language.h (struct language_defn)
837         <la_make_symbol_completion_list>: Add 'code' argument.
838         * parse.c (expout_tag_completion_type, expout_completion_name):
839         New globals.
840         (mark_struct_expression): Add assertion.
841         (mark_completion_tag): New function.
842         (parse_exp_in_context): Initialize new globals.
843         (parse_expression_for_completion): Add 'code' argument.  Handle
844         tag completion.
845         * parser-defs.h (mark_completion_tag): Declare.
846         * symtab.c (default_make_symbol_completion_list_break_on): Add
847         'code' argument.  Update.
848         (default_make_symbol_completion_list): Add 'code' argument.
849         (make_symbol_completion_list): Update.
850         (make_symbol_completion_type): New function.
851         * symtab.h (default_make_symbol_completion_list_break_on)
852         (default_make_symbol_completion_list): Update.
853         (make_symbol_completion_type): Declare.
854
855 2012-12-07  Tom Tromey  <tromey@redhat.com>
856
857         * expression.h (parse_expression_for_completion): Rename
858         from parse_field_expression.
859         (parse_completion): Rename from in_parse_field.
860         * c-exp.y (lex_one_token): Update.
861         * completer.c (expression_completer): Update.
862         * go-exp.y (lex_one_token): Update.
863         * p-exp.y (yylex): Update.
864         * parse.c (parse_completion): Rename from in_parse_field.
865         (parse_exp_in_context): Update.
866         (parse_expression_for_completion): Rename from
867         parse_field_expression.  Update.
868
869 2012-12-07  Tom Tromey  <tromey@redhat.com>
870
871         * typeprint.c (_initialize_typeprint): Set completer
872         for "whatis" and "ptype".
873
874 2012-12-07  Joel Brobecker  <brobecker@adacore.com>
875
876         * copyright.py (NOT_FSF_LIST): Remove duplicate entry
877         "sim/common/cgen-fpu.h".  Remove invalid entries
878         "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
879         which actually have an FSF copyright header.
880
881 2012-12-07  Joel Brobecker  <brobecker@adacore.com>
882
883         * osf-share/AT386/cma_thread_io.h: Delete.
884         * osf-share/HP800/cma_thread_io.h: Delete.
885         * osf-share/README: Delete.
886         * osf-share/RIOS/cma_thread_io.h: Delete.
887         * osf-share/cma_attr.h: Delete.
888         * osf-share/cma_deb_core.h: Delete.
889         * osf-share/cma_debug_client.h: Delete.
890         * osf-share/cma_errors.h: Delete.
891         * osf-share/cma_handle.h: Delete.
892         * osf-share/cma_init.h: Delete.
893         * osf-share/cma_list.h: Delete.
894         * osf-share/cma_mutex.h: Delete.
895         * osf-share/cma_sched.h: Delete.
896         * osf-share/cma_semaphore_defs.h: Delete.
897         * osf-share/cma_sequence.h: Delete.
898         * osf-share/cma_stack.h: Delete.
899         * osf-share/cma_stack_int.h: Delete.
900         * osf-share/cma_tcb_defs.h: Delete.
901         * osf-share/cma_util.h: Delete.
902         * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
903         in osf-share.
904         * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
905         * contrib/ari/gdb_find.sh: Remove handling of osf-share.
906         * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
907
908 2012-12-06  Pedro Alves  <palves@redhat.com>
909             Tom Tromey  <tromey@redhat.com>
910
911         * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
912
913 2012-12-06  Jens Elmenthaler <jens.elmenthaler@advantest.com>
914
915         PR mi/14741:
916         * mi/mi-cmd-var.c (varobj_update_one): Take value of
917         attribute "dynamic" and "displayhint" from printed child,
918         not the root variable.
919
920 2012-12-06  Joel Brobecker  <brobecker@adacore.com>
921
922         * aix-thread.c (getthrds): Fix type of 4th parameter.
923         (get_signaled_thread): Change type of variable ktid to tid_t.
924
925 2012-12-06  Hui Zhu  <hui_zhu@mentor.com>
926
927         * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
928         value of get_frame_block.
929
930 2012-12-05  Pierre Muller  <muller@sourceware.org>
931
932         Avoid memory leaks on struct cmd_list_element.doc field.
933         * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
934         if flags contains DOC_ALLOCATED.
935         (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
936         flags.
937         (delete_cmd): Handle DOC_ALLOCATED flag.
938         * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
939         in flags filed of struct cmd_list_element.
940         (struct cmd_list_element): Document new flag item.
941
942 2012-12-04  Doug Evans  <dje@google.com>
943
944         * symmisc.c: Whitespace fixes.
945
946 2012-12-04  Karthik Bhat  <kv.bhat@samsung.com>
947
948         * i386-tdep.c (i386_skip_prologue): Using symbol table
949         to find the end of prologue for clang compiled binaries.
950         * amd64-tdep.c (amd64_skip_prologue): Using symbol table
951         to find the end of prologue for clang compiled binaries.
952
953 2012-12-03  Doug Evans  <dje@google.com>
954
955         * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
956         (dw2_find_symbol_file): Delete unused local file_data.
957
958 2012-12-03  Tom Tromey  <tromey@redhat.com>
959
960         * ada-exp.y (write_object_renaming, write_var_or_type)
961         (write_ambiguous_var, write_var_from_sym): Make blocks const.
962         * ada-lang.c (replace_operator_with_call)
963         (find_old_style_renaming_symbol): Make blocks const.
964         * ada-lang.h (ada_find_renaming_symbol): Update.
965         (struct ada_symbol_info) <block>: Now const.
966         * breakpoint.c (watch_command_1): Update.
967         * breakpoint.h (struct watchpoint) <exp_valid_block,
968         cond_exp_valid_block>: Now const.
969         * c-exp.y (classify_inner_name, classify_name): Make block
970         argument const.
971         * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
972         const.
973         * expression.h (innermost_block, parse_exp_1): Update.
974         (union exp_element) <block>: Now const.
975         * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
976         (lookup_struct): Make block argument const.
977         * gdbtypes.h (lookup_template_type): Update.
978         * go-exp.y (classify_name, classify_packaged_name)
979         (package_name_p): Make block argument const.
980         * objc-lang.c (lookup_struct_typedef): Make block argument const.
981         * objc-lang.h (lookup_struct_typedef): Update.
982         * parse.c (parse_exp_in_context, parse_exp_1)
983         (write_exp_elt_block): Make block arguments const.
984         (expression_context_block, innermost_block): Now const.
985         * parser-defs.h (write_exp_elt_block): Update.
986         (expression_context_block, innermost_block, block_found): Now
987         const.
988         * printcmd.c (struct display) <block>: Now const.
989         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
990         * valops.c (address_of_variable): Make block argument const.
991         * value.h (value_of_variable): Update.
992         * varobj.c (struct varobj_root) <valid_block>: Now const.
993
994 2012-11-30  Yao Qi  <yao@codesourcery.com>
995
996         * breakpoint.c (print_one_breakpoint_location): Indent code.
997
998 2012-11-30  Yao Qi  <yao@codesourcery.com>
999
1000         * breakpoint.c (print_one_breakpoint_location): Combine two
1001         blocks handling 'hit count' together.
1002
1003 2012-11-30  Yao Qi  <yao@codesourcery.com>
1004
1005         * infrun.c (error_is_running, ensure_not_running): Move them
1006         to ...
1007         * infcmd.c (error_is_running, ensure_not_running): ... here.
1008         Make them 'static'.
1009         * inferior.h: Remove declarations of error_is_running and
1010         ensure_not_running.
1011
1012 2012-11-30  Yao Qi  <yao@codesourcery.com>
1013
1014         * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
1015         check REGNUM >= 0.
1016
1017 2012-11-30  Yao Qi  <yao@codesourcery.com>
1018
1019         * infrun.c: Make the declaration of 'init_infwait_state'
1020         static.
1021         (init_infwait_state): Make it 'static'.
1022
1023 2012-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
1024
1025         * python/python.c (finalize_python): Cast unused PyGILState_Ensure
1026         return value to void to avoid compiler warning.
1027
1028 2012-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
1029
1030         * opencl-lang.c (opencl_print_type): New function.
1031         (opencl_language_arch_info): Install it.
1032
1033 2012-11-29  Tom Tromey  <tromey@redhat.com>
1034
1035         * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
1036         xvasprintf.
1037         * common/common-utils.c (xasprintf, xvasprintf): Remove.
1038         * common/common-utils.h (xasprintf, xvasprintf): Remove.
1039
1040 2012-11-29  Jerome Guitton  <guitton@adacore.com>
1041
1042         * ada-lang.c (ada_is_interface_tag): New function.
1043         (ada_is_ignored_field): Add interface tags to the list
1044         of ignored fields.
1045
1046 2012-11-29  Jerome Guitton  <guitton@adacore.com>
1047
1048         * ada-lang.h (ada_tag_value_at_base_address): New function
1049         declaration.
1050         * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
1051         New functions.
1052         (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
1053         relocate the class-wide value if need be.
1054         (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
1055         Let ada_tag_value_at_base_address relocate the class-wide access/ref
1056         before dereferencing it.
1057         * ada-valprint.c (ada_val_print_1): Relocate to base address
1058         before displaying the content of an interface-wide ref.
1059
1060 2012-11-29  Jerome Guitton  <guitton@adacore.com>
1061
1062         * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
1063
1064 2012-11-29  Joel Brobecker  <brobecker@adacore.com>
1065
1066         GDB 7.5.1 released.
1067
1068 2012-11-29  Yao Qi  <yao@codesourcery.com>
1069             Tom Tromey  <tromey@redhat.com>
1070
1071         * eval.c (evaluate_subexp_standard): Get the correct pointer
1072         type for TYPE_CODE_MEMBERPTR.
1073
1074 2012-11-28  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1075
1076         * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
1077         since now it is being done by binutils' powerpc_init_dialect().
1078
1079 2012-11-28  Tom Tromey  <tromey@redhat.com>
1080
1081         PR gdb/14290:
1082         * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
1083         (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
1084         Use it.
1085         * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
1086         * gdb_bfd.c (gdb_bfd_mark_parent): New function.
1087         (gdb_bfd_openr_next_archived_file): Use it.
1088
1089 2012-11-28  Markus Metzger  <markus.t.metzger@intel.com>
1090
1091         * configure.ac: Check for linux/perf_event.h.
1092         * config.in: Regenerated.
1093         * configure: Regenerated.
1094
1095 2012-11-28  Yao Qi  <yao@codesourcery.com>
1096
1097         * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
1098         abbreviate 'delete tracepoints' to 'delete tr'.
1099         * corefile.c (_initialize_core): Call add_alias_cmd to
1100         abbreviate 'set gnutarget' to 'set g'.
1101         * value.c (_initialize_values): Call add_alias_cmd to abbreviate
1102         'show convenience' to 'show conv'.
1103
1104 2012-11-27  Joel Brobecker  <brobecker@adacore.com>
1105
1106         * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
1107         call to sparc_supply_fpregset.
1108         (fill_fpregset): Fix first parameter in call to
1109         sparc_collect_fpregset.
1110
1111 2012-11-27  Daniel Jacobowitz  <dan@codesourcery.com>
1112             Kazu Hirata  <kazu@codesourcery.com>
1113             Yao Qi  <yao@codesourcery.com>
1114
1115         * objfiles.c (init_entry_point_info): Call
1116         gdbarch_convert_from_func_ptr_addr and
1117         gdbarch_addr_bits_remove here ...
1118         (entry_point_address_query): ... instead of here.
1119         * solib-svr4.c (exec_entry_point): Call
1120         gdbarch_addr_bits_remove.
1121         * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
1122         the entry address.
1123
1124 2012-11-27  Daniel Jacobowitz  <dan@codesourcery.com>
1125             Yao Qi  <yao@codesourcery.com>
1126
1127         * eval.c (evaluate_subexp_standard): Add handling of
1128         TYPE_CODE_MEMBERPTR when calling functions.  Correct the
1129         result of ptype for calling a TYPE_CODE_METHODPTR.
1130
1131 2012-11-27  Yao Qi  <yao@codesourcery.com>
1132
1133         * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1134         warning.
1135         Add i18n markup.
1136
1137 2012-11-26  Alexander Larsson  <alexl@redhat.com>
1138             Jan Kratochvil  <jan.kratochvil@redhat.com>
1139             Tom Tromey  <tromey@redhat.com>
1140
1141         * NEWS: Mention mini debuginfo feature.
1142         * minidebug.c: New file.
1143         * configure.ac: Check for lzma.
1144         * configure, config.in: Rebuild.
1145         * Makefile.in (LIBLZMA): New variable.
1146         (CLIBS): Include LIBLZMA.
1147         (SFILES): Mention minidebug.c.
1148         (COMMON_OBS): Mention minidebug.o.
1149         * symfile.c (read_symbols): New function.
1150         (syms_from_objfile, reread_symbols): Call it.
1151         * symfile.h (find_separate_debug_file_in_section): Declare.
1152
1153 2012-11-26  Keith Seitz  <keiths@redhat.com>
1154
1155         * exec.c (exec_file_attach): Move cleanup after verifying that
1156         memory has in fact been allocated.
1157
1158 2012-11-26  Tom Tromey  <tromey@redhat.com>
1159
1160         * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1161         * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1162         SYMBOL_SYMTAB.
1163         * skip.c (skip_info): Use SYMBOL_SYMTAB.
1164
1165 2012-11-26  Maxime Villard  <rustyBSD@gmx.fr>
1166             Pedro Alves  <palves@redhat.com>
1167
1168         * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1169         size parameter passed to readlink by one byte.
1170         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1171         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1172         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1173         * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1174         size by one byte.
1175
1176 2012-11-26  Yao Qi  <yao@codesourcery.com>
1177
1178         * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1179         extraneous parentheses.
1180
1181 2012-11-26  Yao Qi  <yao@codesourcery.com>
1182
1183         * remote.c (remote_start_remote): Typo fix.
1184
1185 2012-11-23  David S. Miller  <davem@davemloft.net>
1186
1187         * sparc-tdep.h (struct sparc_fpregset): New data structure.
1188         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1189         sparc32_sol2_fpregset): Declare new globals.
1190         (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1191         'fpregset' argument.
1192         * sparc64-tdep.h (sparc64_supply_fpregset,
1193         sparc64_collect_fpregset): Likewise.
1194         (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1195         globals.
1196         * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1197         (sparc_fpregset): Declare new global.
1198         (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1199         'fpregset' argument.
1200         * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1201         into handler.
1202         (fill_fpregset): Likewise.
1203         (_initialize_sparc_linux_nat): Set sparc_fpregset to
1204         sparc32_bsd_fpregset.
1205         * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1206         sparc32_bsd_fpregset down into handler.
1207         (sparc32_linux_collect_core_fpregset): Likewise.
1208         * sparc-nat.c (sparc_fpregset): Define.
1209         (sparc_supply_fpregset): Add 'fpregset' argument.
1210         (sparc_collect_fpregset): Likewise.
1211         (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1212         into fpregset handler.
1213         (sparc_store_inferior_registers): Likewise.
1214         (_initialize_sparc_nat): Set sparc_fpregset to
1215         sparc32_sunos4_fpregset if NULL.
1216         * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1217         down into handler.
1218         (fill_fpregset): Likewise.
1219         * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1220         * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1221         use it to compute offsets.
1222         (sparc32_collect_fpregset): Likewise.
1223         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1224         * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1225         down into handler.
1226         (fill_fpregset): Likewise.
1227         * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1228         Likewise.
1229         (sparc64_linux_collect_core_fpregset): Likewise.
1230         * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1231         * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1232         use it to compute offsets.
1233         (sparc64_collect_fpregset): Likewise.
1234         (sparc64_bsd_fpregset): Define.
1235         * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1236         sparc64_bsd_fpregset down into handler.
1237         (sparc64fbsd_collect_fpregset): Likewise.
1238         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1239         and pass sparc{32,64}_bsd_fpregset down into handler.
1240         (sparc64nbsd_collect_fpregset): Likewise.
1241         * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1242         sparc64_bsd_fpregset down into handler.
1243         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1244         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1245         to sparc32_bsd_fpregset.
1246         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1247         sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1248         (sparc32nbsd_supply_fpregset): Likewise.
1249
1250 2012-11-21  Tom Tromey  <tromey@redhat.com>
1251
1252         * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1253         field.
1254         (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1255         Remove.
1256         * c-typeprint.c (c_type_print_base): Update.
1257
1258 2012-11-21  Yao Qi  <yao@codesourcery.com>
1259
1260         PR tdep/7438
1261         * gdbarch.sh (smash_text_address): Remove.
1262         * gdbarch.c, gdbarch.h: Regenerate.
1263         * arm-tdep.c (arm_smash_text_address): Remove.
1264         (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1265         * hppa-tdep.c (hppa_smash_text_address): Remove.
1266         (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1267         (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1268         Caller update.
1269         * coffread.c (coff_symtab_read): Caller update.
1270         * dbxread.c (process_one_symbol): Likewise.
1271         * elfread.c (record_minimal_symbol): Likewise.
1272         * somread.c (som_symtab_read): Likewise.
1273
1274 2012-11-20  Pierre Muller  <muller@sourceware.org>
1275
1276         ARI fixes: sprintf rule.
1277         Replace sprintf function calls for char arrays by
1278         calls to xsnprintf calls.
1279         * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1280         (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1281         (arm_neon_quad_read, arm_pseudo_read): Ditto.
1282         (arm_neon_quad_write, arm_pseudo_write): Ditto.
1283         * breakpoint.c (condition_completer): Ditto.
1284         (create_tracepoint_from_upload): Ditto.
1285         * dwarf2read.c (file_full_name): Ditto.
1286         * gcore.c (gcore_command): Ditto.
1287         * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1288         * go32-nat.c (go32_sysinfo): Ditto.
1289         * interps.c (interp_set): Ditto.
1290         * m32c-tdep.c (make_types): Ditto.
1291         * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1292         * remote-m32r-sdi.c (m32r_open): Ditto.
1293         * sol-thread.c (td_err_string): Ditto.
1294         (td_state_string, solaris_pid_to_str): Ditto.
1295         * symtab.c (gdb_mangle_name): Ditto.
1296         * cli/cli-script.c (execute_control_command): Ditto.
1297         (define_command, document_command): Ditto.
1298         * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1299         * tui/tui-stack.c (tui_make_status_line): Ditto.
1300         * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1301
1302 2012-11-20  Mike Frysinger  <vapier@gentoo.org>
1303
1304         * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1305         it when looking at ptr->func.
1306         * command.h (complete_on_cmdlist): Add a fourth arg.
1307         * completer.c (complete_line_internal): Add local ignore_help_classes,
1308         and set it to 1 when reason is not handle_help.  Pass this down to
1309         lookup_cmd_1 and complete_on_cmdlist.
1310
1311 2012-11-20  Tom Tromey  <tromey@redhat.com>
1312
1313         * completer.c (count_struct_fields): Remove.
1314         (expression_completer): Don't call count_struct_fields.
1315
1316 2012-11-20  Pedro Alves  <palves@redhat.com>
1317
1318         * annotate.c (breakpoints_changed): Rename to ...
1319         (annotate_breakpoints_changed): ... this.
1320         (annotate_stopped, breakpoint_changed): Adjust caller.
1321         * annotate.h (breakpoints_changed): Rename to ...
1322         (annotate_breakpoints_changed): ... this.
1323         * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1324         (do_map_commands_command, init_raw_breakpoint, clear_command)
1325         (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1326
1327 2012-11-20  David S. Miller  <davem@davemloft.net>
1328
1329         * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1330         (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1331         sysconf.
1332         (get_cores_used_by_process): Update comment.
1333
1334 2012-11-20  Yao Qi  <yao@codesourcery.com>
1335
1336         * objfiles.c (init_entry_point_info): Remove trailing spaces.
1337
1338 2012-11-20  Yao Qi  <yao@codesourcery.com>
1339
1340         * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1341         to deprecated_context_hook.
1342
1343 2012-11-19  Yao Qi  <yao@codesourcery.com>
1344
1345         * infrun.c (infwait_state): Add static.
1346
1347 2012-11-16  Keith Seitz  <keiths@redhat.com>
1348
1349         PR c++/13615
1350         * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1351         parameter and pass it to lookup_symbol_file.
1352         (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1353         to search base classes.
1354         (cp_lookup_symbol_namespace): Likewise.
1355         (lookup_namespace_scope): Likewise.
1356         (lookup_symbol_file): Add SEARCH parameter.
1357         If SEARCH is non-zero and no symbol is found, lookup the class
1358         and call cp_lookup_nested_symbol.
1359         (find_symbol_in_baseclass): New function.
1360         (cp_lookup_nested_symbol): Do not let
1361         cp_lookup_symbol_in_namespace search through base classes.
1362         Do that later when there is no global symbol match.
1363
1364 2012-11-16  Doug Evans  <dje@google.com>
1365
1366         * main.c (gdb_datadir_provided): New static global.
1367         (get_init_files): If --data-directory is provided,
1368         and SYSTEM_GDBINIT lives in data-directory, look for it there.
1369         * NEWS: Mention it.
1370
1371 2012-11-15  Pierre Muller  <muller@sourceware.org>
1372
1373         ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1374         * gdb_stat.h: Delete. Moved to common directory.
1375         * common/gdb_stat.h: New file.
1376         * gdb_wait.h: Delete. Moved to common directory.
1377         * common/gdb_wait.h: New file.
1378         * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1379         location.
1380         * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1381         location.
1382         (stat.h rule): Adapt to new gdb_stat.h location.
1383         * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1384         <sys/stat.h> header.
1385         * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1386         <sys/wait.h> header.
1387
1388 2012-11-15  Pierre Muller  <muller@sourceware.org>
1389
1390         * configure.ac (AC_HEADER_STAT): Remove.
1391         * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1392         and corresponding code.
1393         * configure: Regenerate.
1394         * config.in: Regenerate.
1395
1396 2012-11-15  Pierre Muller  <muller@sourceware.org>
1397
1398         ARI xasprintf rule fixes.
1399         * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1400         instead of xasprintf.
1401         (open_and_init_dwp_file): Ditto.
1402
1403 2012-11-14  Luis Machado  <lgustavo@codesourcery.com>
1404
1405         * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1406         target types.
1407
1408 2012-11-14  Tom Tromey  <tromey@redhat.com>
1409
1410         * configure, config.in: Rebuild.
1411         * configure.ac: Don't check for ctype.h, time.h.
1412         * expprint.c: Don't use HAVE_CTYPE_H.
1413
1414 2012-11-13  Tom Tromey  <tromey@redhat.com>
1415
1416         * gdbarch.h, gdbarch.c: Rebuild.
1417         * gdbarch.sh (set_target_gdbarch): Rename from
1418         deprecated_target_gdbarch_select_hack.
1419         * arch-utils.c (gdbarch_update_p): Update.
1420         (set_gdbarch_from_file): Update.
1421
1422 2012-11-14  Pierre Muller  <muller@sourceware.org>
1423
1424         * MAINTAINERS (Responsible Maintainers/misc): Add myself
1425         as responsible of contrib/ari directory.
1426
1427 2012-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
1428             Yao Qi  <yao@codesourcery.com>
1429
1430         * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1431         bit of EXC_RETURN.
1432         (arm_m_exception_cache, arm_m_exception_this_id)
1433         (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1434         (arm_m_exception_unwind): New.
1435         (arm_gdbarch_init): Register arm_m_exception_unwind.
1436
1437 2012-11-13  Giuseppe Montalto  <giuseppe.montalto@st.com>
1438
1439         * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1440         parameter COUNT, for pattern filling of memory regions.
1441         * NEWS: Mention it.
1442
1443 2012-11-13 Markus Metzger  <markus.t.metzger@intel.com>
1444
1445         * disasm.h (DISASSEMBLY_FILENAME): New macro.
1446         * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1447         to print_source_lines ().
1448         * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1449         flag.
1450         * source.c (print_source_lines_base): Prefix source line with
1451         filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1452
1453 2012-11-13 Markus Metzger  <markus.t.metzger@intel.com>
1454
1455         * symtab.h (print_source_lines_flags): New enum.
1456         * source.c (print_source_lines_base): Change noerror to flags.
1457         (print_source_lines): Change noerror to flags.
1458
1459 2012-11-13  Pierre Muller  <muller@sourceware.org>
1460
1461         ARI fixes: Avoid sprintf function use rule.
1462         * charset.c (convert_between_encodings): Use xsnprintf.
1463         * cli-out.c (cli_field_int): Likewise.
1464         * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1465         * expprint.c (op_name_standard): Likewise.
1466         * frv-tdep.c (set_variant_num_gprs): Likewise.
1467         (set_variant_num_fprs): Likewise.
1468         * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1469         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1470         (nto_init_solib_absolute_prefix): Likewise.
1471         * source.c (init_source_path): Likewise.
1472         (print_source_lines_base): Likewise.
1473         * valprint.c (print_wchar): Likewise.
1474         * mi/mi-out.c (mi_field_int): Likewise.
1475         windows-nat.c (windows_pid_to_exec_file): Likewise.
1476         (windows_create_inferior): Likewise.
1477         (_initialize_check_for_gdb_ini): Likewise.
1478
1479 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
1480
1481         * frame.h (deprecated_frame_register_read): Renames
1482         frame_register_read.
1483         * frame.c (deprecated_frame_register_read): Renames
1484         frame_register_read.  Update all callers.
1485         * i386-tdep.c: Update all callers of frame_register_read.
1486         * infcmd.c: Likewise.
1487         * jit.c: Likewise.
1488         * mips-tdep.c: Likewise.
1489         * mt-tdep.c: Likewise.
1490         * sh64-tdep.c: Likewise.
1491
1492 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
1493
1494         * frame.h (frame_register_read): Remove FIXME comment.
1495         * frame.c (frame_register_read): Add suggestion explaining
1496         which function to use in place of this one.
1497
1498 2012-11-12  Tom Tromey  <tromey@redhat.com>
1499
1500         * python/python.c (start_type_printers): Initialize 'result_obj'.
1501
1502 2012-11-12  Tom Tromey  <tromey@redhat.com>
1503
1504         * NEWS: Update.
1505         * data-directory/Makefile.in (PYTHON_FILES): Add
1506         type_printers.py.
1507         * python/lib/gdb/command/type_printers.py: New file.
1508         * python/lib/gdb/command/types.py (TypePrinter): New class.
1509         (_get_some_type_recognizers, get_type_recognizers,
1510         apply_type_recognizers, register_type_printer): New
1511         functions.
1512         * python/py-objfile.c (objfile_object) <type_printers>: New
1513         field.
1514         (objfpy_dealloc): Decref new field.
1515         (objfpy_new): Set new field.
1516         (objfpy_get_type_printers, objfpy_set_type_printers): New
1517         functions.
1518         (objfile_to_objfile_object): Set new field.
1519         (objfile_getset): Add "type_printers".
1520         * python/py-progspace.c (pspace_object) <type_printers>: New
1521         field.
1522         (pspy_dealloc): Decref new field.
1523         (pspy_new): Set new field.
1524         (pspy_get_type_printers, pspy_set_type_printers): New functions.
1525         (pspace_to_pspace_object): Set new field.
1526         (pspace_getset): Add "type_printers".
1527         * python/python.c (start_type_printers, apply_type_printers,
1528         free_type_printers): New functions.
1529         (_initialize_python): Set gdb.type_printers.
1530         * python/python.h (start_type_printers, apply_type_printers,
1531         free_type_printers): Declare.
1532         * typeprint.c (type_print_raw_options, default_ptype_flags):
1533         Update for new fields.
1534         (do_free_global_table, create_global_typedef_table,
1535         find_global_typedef): New functions.
1536         (find_typedef_in_hash): Use find_global_typedef.
1537         (whatis_exp): Use create_global_typedef_table.  Change cleanup
1538         handling.
1539         * typeprint.h (struct type_print_options) <global_typedefs,
1540         global_printers>: New fields.
1541
1542 2012-11-12  Tom Tromey  <tromey@redhat.com>
1543
1544         * c-typeprint.c (find_typedef_for_canonicalize,
1545         print_name_maybe_canonical): New functions.
1546         (c_print_type): Look up type name.
1547         (cp_type_print_derivation_info): Add flags argument.  Use
1548         print_name_maybe_canonical.
1549         (cp_type_print_method_args): Add wrapping.
1550         (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1551         (c_type_print_template_args): New function.
1552         (c_type_print_base): Change wrapping.  Use
1553         print_name_maybe_canonical.
1554         <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1555         type name lookups.
1556         * gdbtypes.c (types_equal): No longer static.
1557         * gdbtypes.h (types_equal): Declare.
1558         * typeprint.c (type_print_raw_options, default_ptype_flags):
1559         Update.
1560         (struct typedef_hash_table): New.
1561         (hash_typedef_field, eq_typedef_field,
1562         recursively_update_typedef_hash, add_template_parameters,
1563         create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1564         make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1565         copy_typedef_hash, find_typedef_in_hash): New functions.
1566         * typeprint.h (struct type_print_options) <local_typedefs>:
1567         New field.
1568         (recursively_update_typedef_hash, add_template_parameters,
1569         create_typedef_hash, free_typedef_hash,
1570         make_cleanup_free_typedef_hash, copy_typedef_hash,
1571         find_typedef_in_hash): Declare.
1572
1573 2012-11-12  Tom Tromey  <tromey@redhat.com>
1574
1575         * cp-support.c (inspect_type,
1576         replace_typedefs_qualified_name, replace_typedefs): Add
1577         finder, data arguments.  Call as needed.
1578         (cp_canonicalize_string_full): New function.
1579         (cp_canonicalize_string_no_typedefs): Rewrite.
1580         * cp-support.h (canonicalization_ftype): New typedef.
1581         (cp_canonicalize_string_full): Declare.
1582
1583 2012-11-12  Tom Tromey  <tromey@redhat.com>
1584
1585         * NEWS: Update.
1586         * c-typeprint.c (c_type_print_base): Handle print_method and
1587         print_typedefs flags.
1588         * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1589         * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1590         options.
1591         * typeprint.c (type_print_raw_options, default_ptype_flags):
1592         Update for new field.s
1593         (whatis_exp): Parse flags.  Use LA_PRINT_TYPE.
1594         (setprinttypelist, showprinttypelist, print_methods,
1595         print_typedefs): New globals.
1596         (set_print_type, show_print_type, set_print_type_methods,
1597         show_print_type_methods, set_print_type_typedefs,
1598         show_print_type_typedefs): New functions.
1599         (_initialize_typeprint): Update documentation.  Add "print
1600         type methods" and "print type typedefs" parameters.
1601         * typeprint.h (struct type_print_options) <print_methods,
1602         print_typedefs>: New fields.
1603
1604 2012-11-12  Tom Tromey  <tromey@redhat.com>
1605
1606         * c-typeprint.c (cp_type_print_method_args): Add flags
1607         argument.  Call c_print_type, not type_print.
1608         (c_type_print_base): Call c_print_type, not type_print.
1609         Update.
1610
1611 2012-11-12  Tom Tromey  <tromey@redhat.com>
1612
1613         * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1614         to type-printing functions.
1615         * ada-lang.h (ada_print_type): Add argument.
1616         * ada-typeprint.c (print_array_type, print_variant_clauses,
1617         print_variant_part, print_selected_record_field_types,
1618         print_record_field_types, print_unchecked_union_type,
1619         print_func_type, ada_print_type): Add flags argument.
1620         (ada_print_typedef): Update.
1621         * c-exp.y (OPERATOR conversion_type_id): Update.
1622         * c-lang.h (c_print_type, c_type_print_base): Update.
1623         * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1624         c_type_print_modifier, c_type_print_args,
1625         c_type_print_varspec_suffix, c_type_print_base): Add flags
1626         argument.
1627         * cp-valprint.c (cp_print_class_member): Update.
1628         * dwarf2read.c (dwarf2_compute_name): Update.
1629         * f-lang.h (f_print_type): Add argument.
1630         * f-typeprint.c (f_print_type): Add flags argument.
1631         * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1632         * go-lang.h (go_print_type): Add argument.
1633         * go-typeprint.c (go_print_type): Add flags argument.
1634         * jv-lang.h (java_print_type): Add argument.
1635         * jv-typeprint.c (java_type_print_base, java_print_type): Add
1636         flags argument.
1637         * language.c (unk_lang_print_type): Add flags argument.
1638         * language.h (struct language_defn) <la_print_type>: Add flags
1639         argument.
1640         (LA_PRINT_TYPE): Likewise.
1641         * m2-lang.h (m2_print_type): Add argument.
1642         * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1643         m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1644         m2_unbounded_array, m2_record_fields): Add flags argument.
1645         * p-lang.h (pascal_print_type, pascal_type_print_base,
1646         pascal_type_print_varspec_prefix): Add argument.
1647         * p-typeprint.c (pascal_print_type,
1648         pascal_type_print_varspec_prefix, pascal_print_func_args,
1649         pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1650         flags argument.
1651         * symmisc.c (print_symbol): Update.
1652         * typeprint.c (type_print_raw_options, default_ptype_flags):
1653         New globals.
1654         (type_print): Update.
1655         * typeprint.h (struct type_print_options): New.
1656         (type_print_raw_options): Declare.
1657         (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1658
1659 2012-11-10  Keith Seitz  <keiths@redhat.com>
1660
1661         * breakpoint.c (clear_command): Add cleanup for
1662         sals.sals if an argument is given.
1663
1664         * linespec.c (parse_linespec): Do cleanups after
1665         parsing a convenience variable.
1666
1667 2012-11-10  Keith Seitz  <keiths@redhat.com>
1668
1669         PR gdb/14288
1670         * c-valprint.c (c_val_print): For character arrays
1671         with "print null" option on, print ellipses if
1672         the output is truncated and the next character is not \000.
1673         * valprint.c (MAX_WCHARS): Define.
1674         (WCHAR_BUFLEN): Likewise.
1675         (WCHAR_BUFLEN_MAX): Likewise.
1676         (struct converted_character): New structure.
1677         (count_next_character): New function.
1678         (print_converted_chars_to_obstack): New function.
1679         (generic_printstr): Rewrite using count_next_character
1680         and print_converted_chars_to_obstack.
1681
1682 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
1683
1684         * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1685         while executing the gdb command.
1686         (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1687         are called from prompt_for_continue.
1688         * tui/tui-io.c (tui_redisplay_readline): Likewise.
1689
1690 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
1691
1692         PR tui/9584
1693
1694         * tui/tui.c (tui_rl_command_key): Do not call execute_command
1695         but insert the command to execute in readline's buffer.
1696
1697 2012-11-09  Tom Tromey  <tromey@redhat.com>
1698
1699         * gdbarch.sh (target_gdbarch): Remove macro.
1700         (get_target_gdbarch): Rename to target_gdbarch.
1701         * gdbarch.c, gdbarch.h: Rebuild.
1702         * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1703         arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1704         darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1705         filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1706         ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1707         linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1708         mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1709         mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1710         nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1711         procfs.c, progspace.c, ravenscar-thread.c, record.c,
1712         remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1713         rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1714         solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1715         solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1716         solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1717         spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1718         target-descriptions.c, target.c, target.h, tracepoint.c,
1719         windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1720         common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1721         python/py-inferior.c, python/python.c: Update.
1722
1723 2012-11-09  Andrew Burgess  <aburgess@broadcom.com>
1724
1725         * source.c (print_source_lines_base): Add fullname field giving
1726         full path to file in mi output.
1727         * NEWS: Mention the new fullname field.
1728
1729 2012-11-09  Yao Qi  <yao@codesourcery.com>
1730
1731         * NEWS: Mention the fix to the ambiguity of 'fo' command.
1732
1733 2012-11-09  Pedro Alves  <palves@redhat.com>
1734
1735         PR gdb/14306
1736
1737         * infrun.c: Include target-descriptions.h.
1738         (follow_exec): Fetch new target description.
1739
1740 2012-11-09  Yao Qi  <yao@codesourcery.com>
1741
1742         * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1743         0x8d (lea).
1744
1745 2012-11-09  Yao Qi  <yao@codesourcery.com>
1746
1747         * breakpoint.c: Declare set_tracepoint_count.
1748         (install_breakpoint): Call set_tracepoint_count if B is a
1749         tracepoint.
1750         (trace_command): Don't call set_tracepoint_count.  Re-indent.
1751         (strace_command, ftrace_command):
1752         (create_tracepoint_from_upload): Likewise.
1753
1754 2012-11-09  Pedro Alves  <palves@redhat.com>
1755
1756         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1757         (get_target_gdbarch) <gdbarch.h>: New function.
1758         (startup_gdbarch) <gdbarch.h>: Declare.
1759         <gdbarch.c> (target_gdbarch): Delete.
1760         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1761         current inferior's gdbarch.
1762         <gdbarch.c> (get_target_gdbarch): New function.
1763         * inferior.c: Include target-descriptions.h.
1764         (free_inferior): Free target description info.
1765         (add_inferior_with_spaces): Set the inferior's initial
1766         architecture.
1767         (clone_inferior_command): Copy the original inferior's target
1768         description if it was user specified.
1769         (initialize_inferiors): Add comment.
1770         * inferior.h (struct target_desc_info): Forward declare.
1771         (struct inferior) <gdbarch>: New field.
1772         * linux-nat.c: Include target-descriptions.h.
1773         (linux_child_follow_fork): Copy the parent's architecture and
1774         target description to the child.
1775         * target-descriptions.c: Include inferior.h.
1776         (struct target_desc_info): New structure, holding the equivalents
1777         of ...
1778         (target_desc_fetched, current_target_desc)
1779         (target_description_filename): ... these removed globals.
1780         (get_tdesc_info, target_desc_info_from_user_p)
1781         (copy_inferior_target_desc_info, target_desc_info_free): New.
1782         (target_desc_fetched, current_target_desc)
1783         (target_description_filename): Reimplemented as convenience
1784         macros.
1785         (tdesc_filename_cmd_string): New global.
1786         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1787         tdescs filename ..." commands to the per-inferior equivalent.
1788         (show_tdesc_filename_cmd): Get the value to show from the
1789         per-inferior description filename.
1790         (_initilize_target_descriptions): Change the "set/show tdesc
1791         filename" commands' variable.
1792         * target-descriptions.h (struct target_desc, struct target_desc_info)
1793         (struct inferior): Forward declare.
1794         (target_find_description, target_clear_description)
1795         (target_current_description): Adjust comments.
1796         (copy_inferior_target_desc_info, target_desc_info_free)
1797         (target_desc_info_from_user_p). Declare.
1798
1799 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
1800
1801         * tui/tui-hooks.c (tui_about_to_proceed): New function.
1802         (tui_target_wait_hook): Remove.
1803         (tui_install_hooks): Install the about_to_proceed observer.
1804         (tui_remove_hooks): And remove it here.
1805
1806 2012-11-08  Tom Tromey  <tromey@redhat.com>
1807
1808         * linux-tdep.c (linux_make_siginfo_note): New function.
1809         (linux_make_corefile_notes): Use it.
1810         * corelow.c (get_core_siginfo): New function.
1811         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1812
1813 2012-11-08  Tom Tromey  <tromey@redhat.com>
1814
1815         PR gdb/14704:
1816         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1817         (zlib_decompress_section): Remove.
1818         (gdb_bfd_map_section): Only check for compressed section
1819         in mmap case.  Use bfd_get_full_section_contents.
1820         * osabi.c (check_note): Add 'sectsize' argument.  Read
1821         section data.
1822         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1823         section data.  Update for check_note change.
1824         * xcoffread.c (xcoff_initial_scan): Use
1825         bfd_get_full_section_contents.
1826         * py-auto-load.c (auto_load_section_scripts): Use
1827         bfd_get_full_section_contents.
1828         * contrib/cc-with-tweaks.sh: Add -Z option.
1829
1830 2012-11-08  Tom Tromey  <tromey@redhat.com>
1831
1832         * python/py-bpevent.c: Include defs.h.
1833         * python/py-continueevent.c: Include defs.h.
1834         * python/py-event.c: Include defs.h.
1835         * python/py-event.h: Don't include defs.h.
1836         * python/py-events.h: Don't include defs.h.
1837         * python/py-evts.c: Include defs.h.
1838         * python/py-exitedevent.c: Include defs.h.
1839         * python/py-newobjfileevent.c: Include defs.h.
1840         * python/py-signalevent.c: Include defs.h.
1841         * python/py-stopevent.c: Include defs.h.
1842         * python/py-threadevent.c: Include defs.h.
1843
1844 2012-11-08  Pierre Muller  <muller@sourceware.org>
1845
1846         * update-web-ari.sh (print_heading): Add number of files
1847         checked.
1848         (nb_files): New variable counting the number of sources
1849         files found by gdb_find.sh script.
1850         (debug_awk): New variable to allow extra debug output.
1851         (indexes): Add more information if DEBUG_AWK is set.
1852
1853 2012-11-08  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1854
1855         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1856         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1857         following the change in PLT call stubs on linker.
1858
1859 2012-11-08  Pierre Muller  <muller@sourceware.org>
1860
1861         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1862         as default language.
1863         (AWK): Use = instead of == for sh test to avoid warning.
1864         (Linux rule): Correct [:digit] into [[:digit:]].
1865         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1866         (vasprintf rule): Adapt to common subdirectory moves.
1867         (xasprintf rule): Idem.
1868         (xvasprintf rule): Idem.
1869         (var_boolean rule): Accept occurence in == or != test.
1870
1871         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1872
1873 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
1874
1875         * tui/tui-hooks.c (tui_inferior_exit): New function.
1876         (tui_detach_hook): Remove.
1877         (tui_install_hooks): Install the inferior exit observer.
1878         (tui_remove_hooks): Remove it.
1879
1880 2012-11-08  Yao Qi  <yao@codesourcery.com>
1881
1882         PR gdb/14777.
1883         * source.c (_initialize_source): Call add_com_alias to abbreviate
1884         'forward-search' as 'fo'.
1885
1886 2012-11-07  Pedro Alves  <palves@redhat.com>
1887
1888         * arm-tdep.c: Make defs.h be the first include.
1889         * coff-pe-read.c: Ditto.
1890         * gnu-nat.c: Ditto.
1891         * go32-nat.c: Ditto.
1892         * i386-nat.c: Ditto.
1893         * ppcnbsd-nat.c: Ditto.
1894         * ada-varobj.h: Don't include defs.h.
1895         * i386-darwin-tdep.h: Ditto.
1896         * i386-nat.h: Ditto.
1897
1898 2012-11-07  Pedro Alves  <palves@redhat.com>
1899
1900         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1901         Committee.
1902
1903 2012-11-07  Pierre Muller  <muller@sourceware.org>
1904
1905         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1906         File already uses "gdb_dirent.h" header.
1907
1908 2012-11-07  Yao Qi  <yao@codesourcery.com>
1909
1910         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1911         tracepoint_count'.
1912
1913 2012-11-06  Tom Tromey  <tromey@redhat.com>
1914
1915         * target.h (inferior_has_forked, inferior_has_vforked)
1916         (inferior_has_execd, inferior_has_called_syscall): Remove
1917         declarations.
1918
1919 2012-11-06  Pierre Muller  <muller@sourceware.org>
1920
1921         * remote.c (remote_insert_hw_breakpoint): ARI fix,
1922         add missing internalization markup.
1923
1924 2012-11-06  Pedro Alves  <palves@redhat.com>
1925
1926         PR gdb/14810
1927
1928         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1929
1930 2012-11-06  Pierre Muller  <muller@sourceware.org>
1931
1932         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1933         is not executable.
1934
1935 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
1936
1937         * gnulib/update-gnulib.sh: New script.
1938
1939 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
1940
1941         * MAINTAINERS: Update my email address.
1942
1943 2012-11-05  Tom Tromey  <tromey@redhat.com>
1944
1945         * frame.c (put_frame_register): Don't use temporary buffer.
1946
1947 2012-11-05  Pedro Alves  <palves@redhat.com>
1948
1949         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1950         child.  Clear 'pending_detach'.
1951         * infrun.c (handle_vfork_child_exec_or_exit): Clear
1952         'pending_detach' in the vfork parent.
1953
1954 2012-11-05  Doug Evans  <dje@google.com>
1955
1956         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
1957         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1958         * dwarf2read.c: #include "elf-bfd.h".
1959         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1960         (dwop_section_names): Renamed from dwo_section names.  All uses
1961         updated.  Add entries for .debug_cu_index, .debug_tu_index.
1962         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1963         All uses updated.
1964         (struct dwp_sections): New type.
1965         (struct virtual_dwo_sections): New type.
1966         (struct dwp_hash_table): New type.
1967         (struct dwp_file): New type.
1968         (init_cutu_and_read_dies): Ensure DWO info/types section has been
1969         read in.  Handle DWOs coming from DWP files.
1970         (lookup_dwo_file_slot): New function.
1971         (dwarf2_locate_dwo_sections): Move definition closer to use.
1972         (create_dwo_debug_info_hash_table_reader): Renamed from
1973         create_debug_info_hash_table_reader.  All callers updated.
1974         (create_dwo_debug_info_hash_table): Renamed from
1975         create_debug_info_hash_table.  All callers updated.
1976         (create_dwp_hash_table): New function.
1977         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1978         (lookup_dwo_in_dwp): New function.
1979         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
1980         is_dwp.  All callers updated.
1981         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
1982         (open_and_init_dwo_file): Renamed from init_dwo_file.
1983         All callers updated.
1984         (lookup_dwo_file): Delete.
1985         (dwarf2_locate_dwp_sections): New function.
1986         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1987         (allocate_dwp_loaded_cutus_table): New function.
1988         (open_and_init_dwp_file): New function.
1989         (lookup_dwo_cutu): New function.
1990         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1991
1992 2012-11-03  Yao Qi  <yao@codesourcery.com>
1993
1994         Fix PR gdb/14617.
1995         * breakpoint.c (trace_pass_set_count): Call
1996         observer_notify_breakpoint_modified instead of
1997         observer_notify_tracepoint_modified.
1998         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1999
2000 2012-11-02  Tom Tromey  <tromey@redhat.com>
2001
2002         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
2003         argument to complete_on_enum.
2004
2005 2012-11-02  Tom Tromey  <tromey@redhat.com>
2006
2007         * configure: Rebuild.
2008         * configure.ac (build_warnings): Add -Wempty-body.
2009         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
2010         * remote.c (handle_notification): Use braces for empty 'else' body.
2011         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
2012         'else' body.
2013         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
2014         'else' body.
2015         * solib-som.c (som_relocate_section_addresses): Use braces
2016         for empty 'else' body.
2017         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
2018         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
2019
2020 2012-11-02  Pedro Alves  <palves@redhat.com>
2021
2022         PR gdb/14766
2023
2024         * infrun.c (handle_inferior_event)
2025         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
2026         null_ptid before handling a vfork child exec or exit.  Switch to
2027         the event ptid afterwards.
2028
2029 2012-11-02  Yao Qi  <yao@codesourcery.com>
2030
2031         * std-operator.def: Remove OP_LABELED.
2032         * eval.c: Remove the declaration of 'get_label'.
2033         (get_label): Remove.
2034         (evaluate_struct_tuple): Remove code handling OP_LABELED.
2035         Update comment.
2036         Remove local variable 'variantno' and related code.
2037         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
2038         with 'fieldno'.
2039         * expprint.c (print_subexp_standard): Likewise.
2040         (dump_subexp_body_standard): Likewise.
2041         * parse.c (operator_length_standard): Likewise.
2042
2043 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
2044
2045         Incorporate ARI web page generator into GDB sources.
2046         * contrib/ari/create-web-ari-in-src.sh: New file.
2047         * contrib/ari/gdb_ari.sh: New file.
2048         * contrib/ari/gdb_find.sh: New file.
2049         * contrib/ari/update-web-ari.sh: New file.
2050
2051 2012-10-31  Tom Tromey  <tromey@redhat.com>
2052
2053         * gdbarch.c: Rebuild.
2054         * gdbarch.sh: Remove references to gdbarch_swap.
2055         * corelow.c (core_open): Remove obsolete comment.
2056
2057 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
2058
2059         PR cli/14772
2060         * c-typeprint.c (c_print_type): Don't print a space for vector
2061         types, this is handled within the suffix.
2062         (c_type_print_varspec_suffix): Add a space to vector suffix.
2063
2064 2012-10-26  Pedro Alves  <palves@redhat.com>
2065
2066         * amd64-tdep.c (amd64_relocate_instruction): Use
2067         store_unsigned_integer instead of memcpy.
2068         * i386-tdep.c (i386_relocate_instruction): Ditto.
2069
2070 2012-10-26  Pedro Alves  <palves@redhat.com>
2071
2072         * infrun.c (handle_inferior_event): Merge handling of
2073         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
2074         switch case.
2075
2076 2012-10-26  Pedro Alves  <palves@redhat.com>
2077
2078         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
2079         Remove comment.
2080
2081 2012-10-26  Pedro Alves  <palves@redhat.com>
2082
2083         * target.c (target_waitstatus_to_string): Handle
2084         TARGET_WAITKIND_VFORK_DONE.
2085
2086 2012-10-26  Pedro Alves  <palves@redhat.com>
2087
2088         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
2089         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2090
2091 2012-10-24  Tristan Gingold  <gingold@adacore.com>
2092
2093         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
2094         Add comments.
2095
2096 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2097
2098         * ravenscar-thread.c (ravenscar_wait): Only update the list
2099         of threads and inferior_ptid if the inferior is still alive.
2100
2101 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2102
2103         * ada-lang.c (is_known_support_routine): Use lbasename when
2104         matching the symtab's filename against
2105         known_runtime_file_name_patterns.
2106
2107 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2108
2109         * ada-lang.c (ada_same_array_size_p): New function.
2110         (ada_promote_array_of_integrals): New function.
2111         (coerce_for_assign): Add handling of arrays where the elements
2112         are integrals of a smaller size than the size of the target
2113         array element type.
2114
2115 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2116
2117         * doublest.c (convert_doublest_to_floatformat): Fix comparison
2118         against maximum exponent value.
2119
2120 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2121
2122         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
2123         "unwind-seh.c".
2124
2125 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2126
2127         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
2128         strip typedef layer when computing the fixed type's field type,
2129         only when computing its size.
2130
2131 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
2132
2133         PR gdb/12783
2134         * i386-tdep.c (i386_return_value): Handle complex double and long
2135         double.
2136
2137 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
2138
2139         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2140         New local variable args_len.
2141         Quote the name of the executable when computing the command line.
2142
2143 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
2144
2145         PR gdb/12796
2146         PR gdb/12798
2147         PR gdb/12800
2148         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2149         AMD64_FTAG_REGNUM.
2150         * amd64-tdep.c (amd64_classify): Classify complex types.
2151         (amd64_return_value): Handle the COMPLEX_X87 class.
2152
2153 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
2154
2155         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2156         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2157
2158 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
2159
2160         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2161         function.
2162         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2163         to amd64_windows_auto_wide_charset.
2164
2165 2012-10-23  Yao Qi  <yao@codesourcery.com>
2166
2167         * event-top.c (mark_async_signal_handler_wrapper): Remove.
2168         * event-top.h: Remove its declaration.
2169         (async_request_quit): Call mark_async_signal_handler instead of
2170         mark_async_signal_handler_wrapper.
2171         (async_do_nothing, async_disconnect): Likewise.
2172         (async_stop_sig): Likewise.
2173         * remote.c (handle_remote_sigint): Likewise.
2174         (handle_remote_sigint_twice): Likewise.
2175
2176 2012-10-23  Yao Qi  <yao@codesourcery.com>
2177
2178         * event-top.c (sigint_token, sighup_token): Replace 'void *'
2179         with 'static struct async_signal_handler *'.
2180         (sighup_token, sigquit_token, sigstp_token): Likewise.
2181
2182 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
2183
2184         * gdbarch.sh (function_list): Use 'pstring' when printing
2185         a variable which could return NULL.
2186         * gdbarch.c: Regenerate.
2187
2188 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
2189             Tom Tromey  <tromey@redhat.com>
2190
2191         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2192         inneffective if condition by gdb assertion.  Add function
2193         description comment.
2194
2195 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
2196
2197         * parser-defs.h (struct exp_descriptor): Document constraint
2198         on return value for "op_name" callbacks.
2199
2200 2012-10-18  Tom Tromey  <tromey@redhat.com>
2201
2202         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2203         * symtab.c (iterate_over_some_symtabs): Constify.
2204         * source.h (symtab_to_fullname): Return 'const char *'.
2205         * source.c (symtab_to_fullname): Return 'const char *'.
2206         * python/py-symtab.c (stpy_fullname): Constify.
2207         * cli/cli-cmds.c (edit_command): Constify.
2208         * breakpoint.c (print_breakpoint_location)
2209         (update_static_tracepoint): Constify.
2210
2211 2012-10-18  Tom Tromey  <tromey@redhat.com>
2212
2213         * breakpoint.c (compare_breakpoints): Fix comparison.
2214
2215 2012-10-18  Tom Tromey  <tromey@redhat.com>
2216
2217         * valprint.c (generic_emit_char, generic_printstr): Pass size of
2218         gdb_wchar_t to convert_between_encodings.
2219
2220 2012-10-17  Yao Qi  <yao@codesourcery.com>
2221
2222         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2223         more parameter 'inferior'.
2224         * corefile.c (write_memory_with_notification): Caller update.
2225
2226         * mi/mi-cmd-var.c: Include "mi-main.h".
2227         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2228         to 1 and restore it later.
2229         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2230         and "data-write-memory-bytes.
2231         * mi/mi-interp.c: Include objfiles.h.
2232         (mi_interpreter_init): Call observer_attach_memory_changed.
2233         (mi_memory_changed): New.
2234         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2235         New field.
2236
2237         * NEWS: Mention new MI notification "memory-changed".
2238
2239 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2240
2241         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2242
2243 2012-10-15  Doug Evans  <dje@google.com>
2244
2245         New option -nh: inhibit loading of ~/.gdbinit.
2246         * NEWS: Mention -nh.
2247         * main.c (captured_main): Recognize and process -nh.
2248         (print_gdb_help): Mention -nh.
2249         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
2250
2251 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2252
2253         PR backtrace/14646
2254         PR gdb/14647
2255         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2256         pc_regnum_from_eax.
2257         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2258         nor pc_regnum_from_eax.
2259         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2260         nor pc_regnum_from_eax.
2261
2262 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2263
2264         Fix entry values resolving in inlined frames.
2265         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2266         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
2267         entries of FRAME.
2268
2269 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
2270
2271         * configure.ac: Build with -DMS_WIN64 if building with Python
2272         enabled using GCC on amd64-windows.
2273         * configure: Regenerate.
2274
2275 2012-10-15  Tom Tromey  <tromey@redhat.com>
2276
2277         PR python/14635:
2278         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2279         to Py_None.
2280
2281 2012-10-15  Tom Tromey  <tromey@redhat.com>
2282
2283         PR python/14634:
2284         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2285
2286 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
2287
2288         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2289         reset thread numbering back to 1.
2290
2291 2012-10-11  Doug Evans  <dje@google.com>
2292
2293         PR breakpoints/14643.
2294         * linespec.c (struct ls_parser): New member keyword_ok.
2295         (linespec_lexer_lex_string): Add comment.
2296         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2297         for one.
2298         (parse_linespec): Set keyword_ok.
2299
2300 2012-10-10  Doug Evans  <dje@google.com>
2301
2302         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2303         "0x" prefix on address in log message.
2304
2305         * dwarf2read.c (read_1_byte): Add const to buf parameter.
2306         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2307         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2308         (lookup_dwo_file): Add const to dwo_name parameter.
2309         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2310
2311 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2312
2313         Fix crash during stepping on ppc32.
2314         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2315         SYM.
2316
2317 2012-10-03  Doug Evans  <dje@google.com>
2318
2319         PR symtab/14601
2320         * buildsym.c (buildsym_init): Reset using_directives to NULL.
2321
2322 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
2323
2324         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2325         output and use uint32_t not long to ensure 4 byte size.
2326
2327 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
2328
2329         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2330         unref'ed it.
2331
2332 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
2333
2334         * target.c (simple_search_memory): Include access length in
2335         warning message.
2336
2337 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
2338             Edjunior Machado  <emachado@linux.vnet.ibm.com>
2339
2340         PR gdb/13989
2341         * solib.c (solib_find): Prevent GDB from loading native libraries when
2342         debugging a cross-target corefile.
2343
2344 2012-09-28  selven  <pcthegreat@gmail.com>
2345
2346         Make definition match declaration.
2347
2348         * regcache.c (regcache_register_status): Change return type to
2349         enum register_status.
2350
2351 2012-09-28  Yao Qi  <yao@codesourcery.com>
2352
2353         * mi/mi-main.c (mi_cmd_data_write_memory): Call
2354         write_memory_with_notification instead of write_memory.
2355         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2356         instead of target_write_memory.
2357
2358 2012-09-28  Yao Qi  <yao@codesourcery.com>
2359
2360         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2361         when the length of content is not an even number.
2362
2363 2012-09-27  Tom Tromey  <tromey@redhat.com>
2364
2365         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2366         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2367
2368 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2369
2370         * sol-thread.c (sol_thread_fetch_registers)
2371         (sol_thread_store_registers): Delete commented out code.
2372
2373 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2374
2375         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2376         Move these functions to sparc-sol-thread.c.
2377         * sparc-sol-thread.c: New file.
2378         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2379         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2380         configurations.
2381         * configure: Regenerate.
2382
2383 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2384
2385         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2386         Remove commented-out code.
2387
2388 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2389
2390         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2391         Enable this code for sparc hosts only.
2392
2393 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2394
2395         * procfs.h (procfs_find_LDT_entry): Add declaration.
2396         * sol-thread.c (ps_lgetLDT): Delete local declaration of
2397         function procfs_find_LDT_entry.
2398
2399 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2400
2401         * procfs.c (proc_get_LDT_entry): Make static.
2402
2403 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
2404
2405         * procfs.c (proc_find_memory_regions): Fix declaration.
2406
2407 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2408
2409         * amd64-tdep.c (amd64_return_value): Revert previous change
2410         that used TYPE_LENGTH directly.
2411         * bfin-tdep.c (bfin_extract_return_value): Likewise.
2412         (bfin_store_return_value): Likewise.
2413         * cris-tdep.c (cris_store_return_value): Likewise.
2414         (cris_extract_return_value): Likewise.
2415         * h8300-tdep.c (h8300_extract_return_value): Likewise.
2416         * hppa-tdep.c (hppa64_return_value): Likewise.
2417         * lm32-tdep.c (lm32_store_return_value): Likewise.
2418         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2419         * spu-tdep.c (spu_value_from_register): Likewise.
2420         * vax-tdep.c (vax_return_value): Likewise.
2421
2422 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2423
2424         * gdbtypes.c (lookup_array_range_type): Expand parameters
2425         LOW_BOUND and HIGH_BOUND to LONGEST.
2426         (lookup_string_range_type): Likewise.
2427         * gdbtypes.h (lookup_array_range_type): Likewise.
2428         (lookup_string_range_type): Likewise.
2429         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2430         Expand HIGHBOUND to ssize_t.
2431         (value_string): Likewise.
2432         * value.h (value_cstring): Expand parameter LEN to ssize_t.
2433         (value_string): Likewise.
2434
2435 2012-09-27  Yao Qi  <yao@codesourcery.com>
2436
2437         PR breakpoints/13898
2438         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2439         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2440         per breakpoint type.
2441
2442 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
2443
2444         * procfs.c: Add gdb_bfd header.
2445         * rs6000-nat.c: Likewise.
2446         * solib-pa64.c: Likewise.
2447         * spu-linux-nat.c: Likewise.
2448         * windows-nat.c: Likewise.
2449
2450 2012-09-26  Tom Tromey  <tromey@redhat.com>
2451
2452         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2453
2454 2012-09-26  Tom Tromey  <tromey@redhat.com>
2455
2456         * dwarf2read.c (mark_common_block_symbol_computed): New function.
2457         (read_common_block): Handle child DIEs with
2458         DW_AT_data_member_location.
2459         (new_symbol_full): Add special case for common blocks.
2460
2461 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2462             Tom Tromey  <tromey@redhat.com>
2463
2464         * dwarf2read.c (read_common_block): Rewrite.
2465         (new_symbol_full): Handle DW_TAG_common_block.
2466         * f-lang.c (head_common_list, find_common_for_function):
2467         Remove.
2468         * f-lang.h (struct common_entry, struct saved_f77_common,
2469         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2470         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2471         BLANK_COMMON_NAME_LOCAL): Remove.
2472         (struct common_block): New.
2473         * f-valprint.c (list_all_visible_commons): Remove.
2474         (info_common_command_for_block): New function.
2475         (info_common_command): Use it.
2476         * stack.c (iterate_over_block_locals): Special case for
2477         COMMON_BLOCK_DOMAIN.
2478         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2479         constant.
2480         (struct general_symbol_info) <value.common_block>: New field.
2481         (SYMBOL_VALUE_COMMON_BLOCK): New define.
2482
2483 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2484             Tom Tromey  <tromey@redhat.com>
2485
2486         * f-lang.c (allocate_saved_bf_node,
2487         allocate_saved_function_node, allocate_saved_f77_common_node,
2488         allocate_common_entry_node, tail_common_list, current_common,
2489         saved_bf_list, saved_bf_list_end, current_head_bf_list,
2490         tmp_bf_ptr, add_common_block, add_common_entry,
2491         find_first_common_named, patch_common_entries,
2492         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2493         global_remote_debug, get_bf_for_fcn, saved_function_list,
2494         saved_function_list_end, clear_function_list, struct saved_fcn,
2495         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2496         SAVED_BF, SAVED_BF_PTR): Remove.
2497         * f-lang.h (tail_common_list, current_common,
2498         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2499         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2500         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2501         real_main_c_value): Remove.
2502         * f-valprint.c (there_is_a_visible_common_named): Remove.
2503
2504 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
2505
2506         * breakpoint.c (update_global_location_list): Ignore previous
2507         duplicate status of a breakpoint when starting a new scan for
2508         duplicate breakpoints.
2509
2510 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
2511         PR breakpoints/14419
2512         * arm-tdep.c (arm_skip_prologue): Extending producer check to
2513         support LLVM compiler.
2514
2515 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2516
2517         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2518         * bfin-tdep.c (bfin_extract_return_value): Likewise.
2519         (bfin_store_return_value): Likewise.
2520         * cris-tdep.c (cris_store_return_value): Likewise.
2521         (cris_extract_return_value): Likewise.
2522         * h8300-tdep.c (h8300_extract_return_value): Likewise.
2523         * hppa-tdep.c (hppa64_return_value): Likewise.
2524         * lm32-tdep.c (lm32_store_return_value): Likewise.
2525         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2526         * spu-tdep.c (spu_value_from_register): Likewise.
2527         * vax-tdep.c (vax_return_value): Likewise.
2528
2529 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2530
2531         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2532         parameter LEN to ssize_t.
2533
2534 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2535
2536         * ada-valprint.c (ada_val_print_1): Eliminate single-use
2537         variable LEN.
2538         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2539         directly.
2540         (alpha_store_return_value): Likewise.
2541         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2542         (amd64_push_arguments): Likewise.
2543         * ax-gdb.c (gen_trace_static_fields): Likewise.
2544         (gen_traced_pop): Likewise.
2545         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2546         * breakpoint.c (update_watchpoint): Likewise.
2547         * findcmd.c (parse_find_args): Use local variable for type
2548         instead of length.
2549         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2550         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2551         (h8300_store_return_value): Likewise.
2552         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2553         Use i386_darwin_arg_type_alignment directly.
2554         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2555         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2556         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2557         (m68hc11_extract_return_value): Likewise.
2558         * mep-tdep.c (mep_push_dummy_call): Likewise.
2559         * printcmd.c (float_type_from_length): Likewise.
2560         * s390-tdep.c (s390_value_from_register): Likewise.
2561         * stack.c (read_frame_arg): Likewise.
2562         * tracepoint.c (encode_actions_1): Likewise.
2563         * valops.c (value_fetch_lazy): Use local variable for type
2564         instead of length.  Use TYPE_LENGTH directly.
2565         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2566
2567 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
2568
2569         * symtab.c (skip_prologue_sal): Fix typo in comment.
2570
2571 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
2572
2573         * linespec.c (create_sals_line_offset): Fix typo in comment.
2574
2575 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2576
2577         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2578         use plongest to print the array size.
2579
2580 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2581
2582         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2583         * p-valprint.c (pascal_type_print_base): Likewise.
2584
2585 2012-09-22  Yao Qi  <yao@codesourcery.com>
2586
2587         * remote.c (remote_get_trace_status): Remove setting default
2588         values of fields of 'ts'.
2589
2590 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2591
2592         Fix internal error on canonicalization of clang types.
2593         * cp-name-parser.y (operator): New comment at make_operator call for
2594         new, delete, new[] and delete[].
2595         (exp): Use "sizeof ".  Add new comment at make_operator call.
2596
2597 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2598
2599         Fix disassemble without parameters in tailcall frame.
2600         * cli/cli-cmds.c (disassemble_current_function): Use
2601         get_frame_address_in_block.
2602
2603 2012-09-21  Tom Tromey  <tromey@redhat.com>
2604
2605         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2606         TYPE_CODE_UNION>: Unify, removing a goto.
2607
2608 2012-09-21  Tom Tromey  <tromey@redhat.com>
2609
2610         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2611
2612 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
2613
2614         * findvar.c (read_frame_register_value): Mark the result value as
2615         optimized out if any of the input registers have been optimized out.
2616
2617 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
2618
2619         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2620
2621 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2622
2623         * eval.c (evaluate_subexp_standard): Eliminate single-use
2624         variable LOWER.
2625
2626 2012-09-21  Yao Qi  <yao@codesourcery.com>
2627
2628         * mi/mi-interp.c: Declare mi_record_changed.
2629         (mi_interpreter_init): Call observer_attach_record_changed.
2630         (mi_record_changed): New.
2631         * record.c (record_open): Call observer_notify_record_changed.
2632         (cmd_record_stop): Call observer_notify_record_changed.
2633         * NEWS: Mention it.
2634
2635 2012-09-20  Tom Tromey  <tromey@redhat.com>
2636
2637         * NEWS: Update.
2638         * python/python.c (finalize_python): New function.
2639         (_initialize_python): Make a final cleanup.
2640
2641 2012-09-19  Doug Evans  <dje@google.com>
2642
2643         * buildsym.h (param_symbols): Delete, unused.
2644         (context_stack): Delete member "params", unused.
2645         * buildsym.c (push_context): Update.
2646         * dwarf2read.c (read_func_scope): Update.
2647
2648 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
2649
2650         * sh-tdep.c (sh_register_convert_to_virtual)
2651         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
2652         all callers.  Just do a memcpy if not the little-endian case.
2653
2654         * h8300-tdep.c (h8300_gdbarch_init): Invoke
2655         set_gdbarch_double_format and set_gdbarch_long_double_format.
2656         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2657         set_gdbarch_double_format.
2658         * sh-tdep.c (sh_gdbarch_init): Likewise.
2659
2660         * NEWS: Document the removal of SH's 'regs' command.
2661         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2662         command.
2663
2664 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2665
2666         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2667         `jump'.
2668
2669 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
2670
2671         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2672         language when iterating over symbols.
2673
2674 2012-09-18  Yao Qi  <yao@codesourcery.com>
2675
2676         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2677         (mi_interpreter_init): Call observer_attach_tsv_created and
2678         observer_attach_tsv_deleted.
2679         (mi_tsv_created, mi_tsv_deleted): New.
2680         * tracepoint.c (delete_trace_state_variable): Call
2681         observer_notify_tsv_deleted.
2682         (trace_variable_command): Call observer_notify_tsv_created.
2683         (delete_trace_variable_command): Call
2684         observer_notify_tsv_deleted.
2685         (create_tsv_from_upload): Call observer_notify_tsv_created.
2686         * NEWS: Mention it.
2687
2688 2012-09-18  Yao Qi  <yao@codesourcery.com>
2689
2690         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2691         if traceframe changed.
2692         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2693         "trace-find".
2694         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2695         (mi_interpreter_init): Hook mi_traceframe_changed to observer
2696         'traceframe_changed'.
2697         (mi_traceframe_changed): New.
2698         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2699         New field.
2700         * NEWS: Mention the new MI notification.
2701
2702 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
2703
2704         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2705
2706 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2707
2708         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2709         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
2710         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2711         Extend code also for PaX support.  Convert all gdb_assert to warning
2712         calls.
2713
2714 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2715
2716         Implement auto-load user conveniences suggested by Doug Evans.
2717         * auto-load.c: Include top.h.
2718         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
2719         (_initialize_auto_load): New variable scripts_directory_help.  Mention
2720         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2721         scripts-directory.  Document in online help one can use also files for
2722         set auto-load safe-path.
2723         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2724         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2725
2726 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2727
2728         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2729         of LEN.
2730
2731 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2732
2733         * m2-valprint.c (m2_print_array_contents): Eliminate variable
2734         ELTLEN and use TYPE_LENGTH directly.
2735         (m2_val_print): Likewise.
2736         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2737         variable LEN and use TYPE_LENGTH directly.
2738         (m68k_svr4_store_return_value): Likewise.
2739         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2740         ARGLEN and use TYPE_LENGTH directly.
2741         (mips_o64_push_dummy_call): Likewise.
2742         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2743         variable LENGTH and use TYPE_LENGTH directly.
2744         (s390_function_arg_float): Likewise.
2745         (s390_function_arg_integer): Likewise.
2746         (s390_push_dummy_call): Likewise.
2747         (s390_return_value_convention): Likewise.
2748         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2749         TYPE_LENGTH directly.
2750
2751 2012-09-17  Yao Qi  <yao@codesourcery.com>
2752
2753         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2754         Update comment to add_setshow_integer_cmd.
2755         * cli/cli-setshow.c (do_set_command): Handle case
2756         'var_zuinteger_unlimited'.
2757         (do_show_command): Likewise.
2758         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2759         for command 'remotetimeout'.
2760         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
2761         to var_integer.
2762         * source.c (_initialize_source): Call
2763         add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2764
2765 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2766
2767         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2768         variable LEN.
2769
2770 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2771
2772         PR 14119
2773         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2774         (frame_pop): Drop also TAILCALL_FRAME frames.
2775         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2776
2777 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2778             Pedro Alves  <palves@redhat.com>
2779
2780         PR 14548
2781         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2782         function start if we are already at function start.  Both for
2783         reverse-next and for reverse-step into function without line number
2784         info.
2785
2786 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2787
2788         Code cleanup - rename 'inline' depth to 'artificial' depth.
2789         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2790         frame_id_artificial_p, extend the comment.
2791         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2792         * frame.c (fprint_frame_id): Rename at a user, change debug output
2793         text to "artificial=".
2794         (skip_inlined_frames): Rename to ...
2795         (skip_artificial_frames): ... here.  Extend the comment.
2796         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2797         (frame_id_inlined_p): Rename to ...
2798         (frame_id_artificial_p): ... here.  Rename at a user.
2799         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2800         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2801         at a user.
2802         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2803         Extend the comment.
2804         (frame_id_inlined_p): Rename to ...
2805         (frame_id_artificial_p): ... here.
2806         * inline-frame.c (inline_frame_this_id): Rename at a user.
2807
2808 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
2809
2810         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2811         vector variables using vector_size syntax rather than array
2812         syntax.
2813
2814 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2815
2816         * valarith.c (value_concat): Replace unsafe ALLOCA with
2817         XMALLOC/XFREE.
2818
2819 2012-09-14  Pedro Alves  <palves@redhat.com>
2820
2821         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2822
2823 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
2824
2825         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2826         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2827         data-directory as appropriate.
2828
2829 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2830
2831         * printcmd.c (ui_printf): Eliminate single-use variable
2832         PARAM_LEN.
2833
2834 2012-09-14  Yao Qi  <yao@codesourcery.com>
2835             Pedro Alves  <palves@redhat.com>
2836
2837         * valops.c (value_assign): Move observer_notify_target_changed
2838         below to replace reinit_frame_cache.
2839
2840 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
2841
2842         Refactor Python "gdb" module into a proper Python package, by
2843         introducing a new "_gdb" module for code implemented in C, and
2844         using reload/__import__ instead of exec.
2845         * python/lib/gdb/__init__.py: Import * from _gdb.
2846         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2847         prompt_hook, sys.argv): Moved from finish_python_initialization.
2848         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2849         (packages, auto_load_packages): New list and function replacing
2850         module_dict and auto-loading code, using __file__ instead of
2851         gdb.PYTHONDIR and reload/__import__ instead of exec.
2852         (GdbSetPythonDirectory): Replacing function of the same name
2853         from finish_python_initialization, using reload/__import__ instead
2854         of exec, as well as call auto_load_packages.
2855         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2856         gdb_python_module and not gdb_module.
2857         * python/python-internal.h (gdb_python_module): Declare.
2858         * python/python.c (gdb_python_module): New global.
2859         (before_prompt_hook): Check gdb_python_module and not gdb_module.
2860         (_initialize_python): Rename gdb module to _gdb.
2861         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2862         (finish_python_initialization): Move Python code to
2863         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2864         __main__.
2865
2866 2012-09-13  Pedro Alves  <palves@redhat.com>
2867
2868         * Makefile.in (COMMON_OBS): Add registry.o.
2869         * registry.c: New file.
2870         * registry.h (struct registry_container): Declare.
2871         (registry_data_callback): New typedef.
2872         (struct registry_data, struct registry_data_registration, struct
2873         registry_data_registry): New type.
2874         (register_data_with_cleanup, registry_alloc_data)
2875         (registry_callback_adaptor, registry_clear_data)
2876         (registry_container_free_data, registry_set_data, registry_data):
2877         Declare.
2878         (DEFINE_REGISTRY): Refactor structures and functions as shims over
2879         the new common structures and functions.
2880         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
2881         callback typedefs.
2882
2883 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
2884
2885         * remote.c (remote_insert_hw_breakpoint): Throw exception if
2886         there is an error inserting hardware breakpoints and use the
2887         error message from the target.
2888
2889         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2890         Catch this exception and print the error message contained within.
2891         Do not print the default hardware error breakpoint message in this
2892         case.
2893
2894 2012-09-12  Doug Evans  <dje@google.com>
2895
2896         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2897         cu == NULL.
2898
2899 2012-09-11  Doug Evans  <dje@google.com>
2900
2901         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2902         .gdb_index symbol attributes if there are none.
2903
2904 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
2905
2906         * symtab.h (struct minimal_symbol) [has_size]: New field.
2907         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2908         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2909         * printcmd.c (build_address_symbolic): Only filter out zero-sized
2910         minimal symbols if the symbol's size is actually known.
2911         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2912         of msymbol's size field.  Add comment.
2913         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2914         SET_MSYMBOL_SIZE to set the minimal symbol size.
2915
2916 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
2917
2918         * minsyms.c (install_minimal_symbols): Use memset to fill entire
2919         minimal_symbol struct object, rather than setting some of its
2920         fields one by one.
2921
2922 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
2923
2924         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2925         passed_a_ptr flag when displaying typedef types.
2926
2927 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
2928
2929         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2930         the optimized_out flag is preserved.
2931
2932 2012-09-10  Anthony Green  <green@moxielogic.com>
2933
2934         * moxie-tdep.c (moxie_analyze_prologue): Update for function
2935         prologue changes in GCC.
2936
2937 2012-09-10  Keith Seitz  <keiths@redhat.com>
2938
2939         PR gdb/13483
2940         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2941         (BOOL_CONVERSION_BADNESS): ... this.
2942         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2943         (rank_one_type): Allow all boolean conversions
2944         permitted by the standard.
2945
2946 2012-09-06  Tom Tromey  <tromey@redhat.com>
2947
2948         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2949         Don't decref py_objfile.
2950
2951 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
2952
2953         Do not enable -lmcheck by default when Python is enabled with
2954         threading support.
2955         * configure.ac: (python_has_threads) New variable, by testing
2956         if WITH_THREAD is defined in Python.h.
2957         Move --enable-lmcheck after --with-python.
2958         Do not enable -lmcheck by default if python_has_threads=yes.
2959         Warn if --enable-lmcheck and python_has_threads=yes.
2960         * configure: Regenerate.
2961
2962 2012-08-31  Yao Qi  <yao@codesourcery.com>
2963
2964         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2965         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2966         Update some commands.
2967         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2968         * mi/mi-main.c (mi_cmd_execute): Set
2969         '*parse->cmd->suppress_notification' to 1.
2970
2971 2012-08-31  Yao Qi  <yao@codesourcery.com>
2972
2973         * mi/mi-cmds.c (mi_cmds): Add 'static'.
2974
2975 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
2976
2977         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2978
2979 2012-08-29  Doug Evans  <dje@google.com>
2980
2981         * main.c (print_gdb_help): Remove reference to
2982         --use-deprecated-index-sections.
2983
2984 2012-08-28  Yao Qi  <yao@codesourcery.com>
2985
2986         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2987         (init_cmds): Call add_setshow_uinteger_cmd for command
2988         'max-user-call-depth'.
2989         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2990         declaration of 'max_user_call_depth'.
2991         * frame.c (backtrace_limit): Add 'unsigned'.
2992         (_initialize_frame): Call add_setshow_uinteger_cmd for command
2993         'limit'.
2994         * remote.c (remoteaddresssize): Add 'unsigned'.
2995         (remote_address_masked): Change local var 'address_size' to
2996         'unsigned'.
2997         (_initialize_remote): Call add_setshow_uinteger_cmd for
2998         'remoteaddresssize'.
2999         * top.c (history_size): Add 'unsigned'.
3000         (show_commands): Change local variables to 'unsigned'.
3001         (set_history_size_command): Don't check history_size is negative.
3002         Adjust the condition to call unstifle_history and set history_size
3003         to UNIT_MAX.
3004
3005 2012-08-28  Pedro Alves  <palves@redhat.com>
3006
3007         PR gdb/14428
3008
3009         * infcmd.c (default_print_one_register_info): New, factored out
3010         from default_print_registers_info.
3011         (default_print_registers_info): Use it.  Mark value unavailable if
3012         necessary.
3013         (registers_info): Print user registers with
3014         default_print_one_register_info.
3015
3016 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
3017
3018         PR tui/14486
3019         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
3020         is not NULL before referencing it.
3021
3022 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3023
3024         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
3025         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
3026         original PC for it.
3027
3028 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
3029             Jan Kratochvil  <jan.kratochvil@redhat.com>
3030
3031         * auto-load.c (auto_load_objfile_script): Rename to ...
3032         (auto_load_objfile_script_1): ... here, change variable realname to
3033         parameter realname, document it, add return value, add variable retval.
3034         (auto_load_objfile_script): New function.
3035
3036 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3037
3038         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
3039         followed by a whitespace.
3040
3041 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3042
3043         PR gdb/14494.
3044         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
3045         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
3046         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
3047         here.
3048
3049 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
3050
3051         * memattr.c (create_mem_region): Fix memory region overlapping
3052         checking.
3053
3054 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
3055
3056         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
3057         with xmalloc/cleanup.
3058         * mt-tdep.c (mt_push_dummy_call): Likewise.
3059         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3060         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3061
3062 2012-08-24  Yao Qi  <yao@codesourcery.com>
3063
3064         * jv-exp.y (push_expression_name): Add "." at the end of error
3065         message.
3066
3067 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
3068
3069         Document how to return from "python-interactive" to GDB.
3070         * python/python.c (_initialize_python): Update documentation.
3071
3072 2012-08-23  Pedro Alves  <palves@redhat.com>
3073
3074         * infrun.c (_initialize_infrun) <handle command help text>:
3075         Mention that multiple signals are supported.
3076
3077 2012-08-23  Pedro Alves  <palves@redhat.com>
3078
3079         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
3080         string.
3081
3082 2012-08-23  Yao Qi  <yao@codesourcery.com>
3083
3084         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
3085         (tfind_1): Don't call registers_changed, set_traceframe_num,
3086         and clear_traceframe_info.
3087         Call set_current_traceframe.
3088         (set_current_traceframe): call set_traceframe_num.
3089
3090 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
3091
3092         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
3093         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
3094
3095 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
3096
3097         Enable readline in Python in a GDB-specific way and block the
3098         standard Python readline module to prevent conflicts with GDB.
3099         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
3100         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
3101         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
3102         * python/py-gdb-readline.c: New file.
3103         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
3104         prototype.
3105         * python/python.c (_initialize_python): Call
3106         gdbpy_initialize_gdb_readline.
3107
3108 2012-08-22  Keith Seitz  <keiths@redhat.com>
3109
3110         * defs.h: Include build-gnulib/config.h
3111
3112 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
3113
3114         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
3115         and blx pc.
3116
3117 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
3118
3119         Add a new "python-interactive" command that starts a standard
3120         Python interactive prompt with "pi" as alias, and add "py" as
3121         an alias to "python".
3122         * NEWS: Mention the new commands.
3123         * python/python.c (eval_python_command): New function.
3124         (python_interactive_command): For "python-interactive" with
3125         arguments, call eval_python_command.  For "python-interactive"
3126         without arguments, call PyRun_InteractiveLoop.
3127         (_initialize_python): Add "python-interactive" command with
3128         "pi" as alias, and add "py" as an alias to "python".
3129
3130 2012-08-22  Tom Tromey  <tromey@redhat.com>
3131
3132         * defs.h (quit_flag): Don't declare.
3133         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3134         (QUIT): Use new functions.
3135         * event-top.c (command_handler): Use clear_quit_flag.
3136         (handle_sigint): Use set_quit_flag.
3137         (async_request_quit): Use check_quit_flag.  Don't check
3138         immediate_quit.
3139         * exceptions.c (throw_exception): Use clear_quit_flag.
3140         * main.c (captured_main): Use clear_quit_flag.
3141         * python/python.c (clear_quit_flag, set_quit_flag)
3142         (check_quit_flag): New functions.
3143         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3144         clear_quit_flag.
3145         * remote.c (remote_wait_as): Use check_quit_flag,
3146         clear_quit_flag.
3147         (remote_start_remote): Call QUIT.
3148         * symfile.c (load_progress): Use check_quit_flag.
3149         * top.c (command_loop): Use clear_quit_flag.
3150         (command_line_input): Call QUIT.
3151         * utils.c (quit_flag): Conditionally define.
3152         (clear_quit_flag, check_quit_flag, set_quit_flag): New
3153         functions.
3154         (prompt_for_continue): Call QUIT.  Use quit, not
3155         async_request_quit.
3156         * remote-mips.c (mips_expect_timeout): Call QUIT.
3157         * monitor.c (monitor_expect): Call QUIT.
3158
3159 2012-08-22  Tom Tromey  <tromey@redhat.com>
3160
3161         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3162         (async_init_signals): Update.
3163         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3164         (SIGWINCH_HANDLER_BODY): Remove.
3165
3166 2012-08-22  Tom Tromey  <tromey@redhat.com>
3167
3168         * jit.c (jit_object_close_impl): Don't malloc the objfile
3169         name.
3170         * objfiles.c (allocate_objfile): Don't malloc the objfile
3171         name.
3172         (free_objfile): Don't free the objfile name.
3173         * objfiles.h (struct objfile) <name>: Update comment.
3174         * symfile.c (reread_symbols): Fix reference counting.  Don't
3175         malloc objfile name.
3176
3177 2012-08-22  Tom Tromey  <tromey@redhat.com>
3178
3179         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3180         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3181         (symfile_bfd_open): Likewise.
3182         (generic_load): Likewise.
3183         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3184         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3185         gdb_bfd_open.
3186         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3187         Use gdb_bfd_open.
3188         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3189         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3190         (pmon_load_fast): Likewise.
3191         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3192         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3193         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3194         (macho_check_dsym): Likewise.
3195         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3196         (m32r_upload_command): Likewise.
3197         * gdb_bfd.h (gdb_bfd_cache): Declare.
3198         * gdb_bfd.c (struct gdb_bfd_data): New.
3199         (gdb_bfd_cache): New global.
3200         (struct gdb_bfd_cache_search): New.
3201         (hash_bfd): New function.
3202         (eq_bfd): Likewise.
3203         (gdb_bfd_open): Likewise.
3204         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3205         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
3206         gdb_bfd_data.
3207         * exec.c (exec_file_attach): Use gdb_bfd_open.
3208         * dsrec.c (load_srec): Use gdb_bfd_open.
3209
3210 2012-08-22  Tom Tromey  <tromey@redhat.com>
3211
3212         * dwarf2read.c (macro_start_file): Update.
3213         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3214         (free_objfile_per_bfd_storage): Destroy macro_cache.
3215         (allocate_objfile, free_objfile): Update.
3216         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3217         New field.
3218         (struct objfile) <macro_cache>: Remove.
3219         * symfile.c (reread_symbols): Update.
3220         * symmisc.c (print_symbol_bcache_statistics): Update.
3221         (print_objfile_statistics): Update.
3222
3223 2012-08-22  Tom Tromey  <tromey@redhat.com>
3224
3225         * elfread.c (elf_symtab_read): Update.
3226         * objfiles.c (objfiles_bfd_data): New global.
3227         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3228         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3229         (allocate_objfile, free_objfile): Update.
3230         (_initialize_objfiles): Initialize objfiles_bfd_data.
3231         * objfiles.h (struct objfile_per_bfd_storage): New.
3232         (struct objfile) <per_bfd>: New field.
3233         <filename_cache>: Remove.
3234         (set_objfile_per_bfd): Declare.
3235         * symfile.c (reread_symbols): Update.  Call
3236         set_objfile_per_bfd.
3237         (allocate_symtab): Update.
3238         * symmisc.c (print_symbol_bcache_statistics): Update.
3239         (print_objfile_statistics): Print the size of the BFD obstack.
3240
3241 2012-08-22  Tom Tromey  <tromey@redhat.com>
3242
3243         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
3244         * gdb_bfd.c: Use DEFINE_REGISTRY.
3245         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3246         (gdb_bfd_ref): Call bfd_alloc_data.
3247         (gdb_bfd_unref): Call bfd_free_data.
3248
3249 2012-08-22  Tom Tromey  <tromey@redhat.com>
3250
3251         * registry.h (struct registry_fields): New.
3252         (REGISTRY_FIELDS): Redefine.
3253         (REGISTRY_ACCESS_FIELD): New macro.
3254         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
3255         functions.
3256
3257 2012-08-22  Tom Tromey  <tromey@redhat.com>
3258
3259         * auto-load.c (_initialize_auto_load): Update.
3260         * solib-svr4.c (_initialize_svr4_solib): Update
3261         * solib-dsbt.c (_initialize_dsbt_solib): Update.
3262         * solib-darwin.c (_initialize_darwin_solib): Update.
3263         * registry.h: New file.
3264         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3265         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3266         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
3267         (register_program_space_data_with_cleanup)
3268         (register_program_space_data, program_space_alloc_data)
3269         (clear_program_space_data, set_program_space_data)
3270         (program_space_data): Don't declare.
3271         * progspace.c: Use DEFINE_REGISTRY.
3272         (struct program_space_data, struct
3273         program_space_data_registration, struct
3274         program_space_data_registry, program_space_data_registry)
3275         (register_program_space_data_with_cleanup)
3276         (register_program_space_data, program_space_alloc_data)
3277         (program_space_free_data, clear_program_space_data)
3278         (set_program_space_data, program_space_data): Remove.
3279         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
3280         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3281         (register_objfile_data_with_cleanup, register_objfile_data)
3282         (clear_objfile_data, set_objfile_data, objfile_data): Don't
3283         declare.
3284         * objfiles.c: Use DEFINE_REGISTRY.
3285         (struct objfile_data, struct objfile_data_registration, struct
3286         objfile_data_registry, objfile_data_registry)
3287         (register_objfile_data_with_cleanup, register_objfile_data)
3288         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3289         (set_objfile_data, objfile_data): Remove.
3290         (_initialize_objfiles): Update.
3291         * jit.c (_initialize_jit): Update.
3292         * inflow.c (_initialize_inflow): Update.
3293         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
3294         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3295         (register_inferior_data_with_cleanup, register_inferior_data)
3296         (clear_inferior_data, set_inferior_data, inferior_data): Don't
3297         declare.
3298         * inferior.c: Use DEFINE_REGISTRY.
3299         (struct inferior_data, struct inferior_data_registration, struct
3300         inferior_data_registry, inferior_data_registry)
3301         (register_inferior_data_with_cleanup, register_inferior_data)
3302         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
3303         (set_inferior_data, inferior_data): Remove.
3304         * auxv.c (_initialize_auxv): Update.
3305         * ada-lang.c (_initialize_ada_language): Update.
3306         * breakpoint.c (_initialize_breakpoint): Update.
3307         * i386-nat.c (i386_use_watchpoints): Update.
3308
3309 2012-08-22  Tom Tromey  <tromey@redhat.com>
3310
3311         * exec.c (exec_close, exec_file_attach): Update.
3312         (add_to_section_table): Initialize 'key' field.
3313         (add_target_sections, remove_target_sections): Add 'key' argument.
3314         * exec.h (add_target_sections, remove_target_sections): Add
3315         'key' argument.
3316         * solib.c (solib_map_sections, update_solib_list, clear_solib)
3317         (reload_shared_libraries_1): Update.
3318         * target.h (struct target_section) <key>: New field.
3319
3320 2012-08-22  Tom Tromey  <tromey@redhat.com>
3321
3322         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3323
3324 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3325
3326         * symfile.c (allocate_symtab): Use host_address_to_string
3327         function instead of cast of pointer to long which is not
3328         compatible with x86_64-w64-mingw32 build.
3329
3330 2012-08-19  Andrew Pinski  <apinski@cavium.com>
3331
3332         * mips-tdep.c (is_octeon): New function.
3333         (is_octeon_bbit_op): New function.
3334         (mips32_next_pc): Handle Octeon's bbit instructions.
3335         (mips32_instruction_has_delay_slot): Likewise.
3336
3337 2012-08-19  Andrew Pinski  <apinski@cavium.com>
3338
3339         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3340         before the function.
3341
3342 2012-08-19  Andrew Pinski  <apinski@cavium.com>
3343
3344         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3345
3346 2012-08-19  Keith Seitz  <keiths@redhat.com>
3347
3348         PR c++/14365
3349         * c-typeprint.c (c_type_print_varspec_prefix): Pass
3350         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3351
3352 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
3353
3354         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3355         The typo broke "make TAGS".
3356
3357 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
3358
3359         GDB 7.5 released.
3360
3361 2012-08-17  Keith Seitz  <keiths@redhat.com>
3362
3363         PR c++/13356
3364         * gdbtypes.c (strict_type_checking): New variable.
3365         (show_strict_type_checking): New function.
3366         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3367         if strict type checking is disabled.
3368         (_initialize_gdbtypes): Add "check type" subcommand.
3369         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3370
3371 2012-08-17  Keith Seitz  <keiths@redhat.com>
3372
3373         * language.h (type_mode): Remove.
3374         (type_check): Remove.
3375         (struct language_defn): Remove la_type_check.
3376         (STRICT_TYPE): Remove unused macro.
3377         (type_error): Remove.
3378         * language.c (set_type_range_case): Renamed to ...
3379         (set_range_case): ... this.  Update all callers.
3380         Remove type_mode/type_check.
3381         (type_mode): Remove.
3382         (type_check): Remove.
3383         (show_type_command): Remove.
3384         (set_type_command): Remove.
3385         (language_info): Remove type checking output.
3386         (type_error): Remove unused function.
3387         (range_error): Update comment.
3388         (unknown_language_defn): Remove la_type_check.
3389         (auto_language_defn): Likewise.
3390         (local_language_defn): Likewise.
3391         (_initialize_language): Remove "check type" subcommand.
3392         * ada-lang.c (ada_language_defn): Remove la_type_check.
3393         * c-lang.c (c_language_defn): Likewise.
3394         (cplus_language_defn): Likewise.
3395         (asm_language_defn): Likewise.
3396         (minimal_language_defn): Likewise.
3397         * d-lang.c (d_language_defn): Likewise.
3398         * f-lang.c (f_language_defn): Likewise.
3399         * go-lang.c (go_language_defn): Likewise.
3400         * jv-lang.c (java_language_defn): Likewise.
3401         * m2-lang.c (m2_language_defn): Likewise.
3402         * objc-lang.c (objc_language_defn): Likewise.
3403         * opencl-lang.c (opencl_language_defn): Likewise.
3404         * p-lang.c (pascal_language_defn): Likewise.
3405
3406 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
3407
3408         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3409
3410 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
3411
3412         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3413         New function.
3414         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3415         using the regache.  Use ia64_hpux_get_register_from_save_state_t
3416         to access the bsp and bspstore registers if not.
3417
3418 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
3419
3420         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3421         * breakpoint.c (detach_breakpoints): Change pid parameter into
3422         a ptid.  Adjust code accordingly.
3423         * infrun.c (handle_inferior_event): Delete variable child_pid.
3424         Update call to detach_breakpoints to pass the child ptid for
3425         fork events.
3426         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3427         assert that inferior_ptid's lwp is zero.
3428         (linux_handle_extended_wait): Update call to detach_breakpoints.
3429         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3430         detach_breakpoints.
3431
3432 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
3433
3434         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3435         parent, only call detach_breakpoints if tts.tts_event ==
3436         TTEVT_VFORK.
3437
3438 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
3439
3440         * dwarf2-frame.c (dwarf2_frame_cache): Use
3441         get_frame_address_in_block instead of get_frame_pc as
3442         the bound for executing the frame's FDE.
3443
3444 2012-08-16  Yao Qi  <yao@codesourcery.com>
3445
3446         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3447         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3448         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3449         (c_type_print_varspec_suffix): Likewise.
3450         * eval.c (evaluate_subexp_standard): Likewise.
3451         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3452         (f_type_print_varspec_suffix): Likewise.
3453         * gdbtypes.c (is_scalar_type): Likewise.
3454         (recursive_dump_type): Likewise.
3455         * infcall.c (value_arg_coerce): Likewise.
3456         * m2-valprint.c (m2_val_print): Likewise.
3457         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3458         (pascal_type_print_varspec_suffix): Likewise.
3459         (pascal_type_print_base): Likewise.
3460         * p-valprint.c (pascal_val_print): Likewise.
3461         (pascal_val_print): Likewise.
3462         * valops.c (value_slice): Likewise.
3463         * valprint.c (scalar_type_p): Likewise.
3464         * valarith.c (value_bitstring_subscript): Remove.
3465         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3466         Remove comment on TYPE_CODE_BITSTRING.
3467
3468         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3469         TYPE_CODE_BITSTRING.
3470
3471         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3472         slot 0.
3473
3474 2012-08-16  Yao Qi  <yao@codesourcery.com>
3475
3476         * tracepoint.c (trace_find_none_command): Remove.
3477         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3478
3479 2012-08-16  Yao Qi  <yao@codesourcery.com>
3480
3481         * remote.c (handle_notification): Remove parameter 'length'.
3482         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3483
3484 2012-08-15  Keith Seitz  <keiths@redhat.com>
3485
3486         * gdbtypes.c (opaque_type_resolution): Make static.
3487         Add missing comment.
3488         (overload_debug): Add missing comment.
3489         (show_opaque_type_resolution): Likewise.
3490         (show_overload_debug): Likewise.
3491         (print_bit_vector): Remove unnecessary forward declaration.
3492         (print_arg_types): Likewise.
3493         (dump_fn_fieldlists): Likewise.
3494         (print_cplus_stuff): Likewise.
3495
3496 2012-08-15  Tom Tromey  <tromey@redhat.com>
3497
3498         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3499         (gdb_bfd_ref): Initialize new field.
3500         (gdb_bfd_unref): Unref the archive BFD.
3501         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3502         parent archive.
3503
3504 2012-08-15  Tom Tromey  <tromey@redhat.com>
3505
3506         PR python/14387:
3507         * python/py-bpevent.c (create_breakpoint_event_object): Update
3508         comment.
3509         * python/py-event.c (evpy_add_attribute): Update comment.
3510         * python/py-exitedevent.c (create_exited_event_object): Fix
3511         reference counting and error handling.
3512         * python/py-newobjfileevent.c (create_new_objfile_event_object):
3513         Fix reference counting.
3514         * python/py-signalevent.c (create_signal_event_object): Fix
3515         reference counting and error handling.
3516         * python/py-stopevent.c (emit_stop_event): Fix reference
3517         counting.
3518         * python/py-threadevent.c (get_event_thread): Return a
3519         borrowed reference.
3520         * python/py-type.c (convert_field): Fix reference counting.
3521
3522 2012-08-15  Tom Tromey  <tromey@redhat.com>
3523
3524         * dwarf2read.c (dwarf_decode_macro_bytes)
3525         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3526         as hash key.
3527
3528 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3529
3530         * infcmd.c (_initialize_infcmd): Update help text for the signal,
3531         stepi, nexti, finish, next, step, jump, and continue commands.
3532         * infrun.c (_initialize_infrun): Update help text for the handle
3533         command.
3534
3535 2012-08-14  Doug Evans  <dje@google.com>
3536
3537         * gdbtypes.c (struct extra): Delete, unused.
3538
3539         * gdbtypes.c: Whitespace cleanup.
3540         (address_space_name_to_int): Remove "extern" from definition.
3541         (_initialize_gdbtypes): Declare with initialize_file_ftype.
3542
3543         * gdbtypes.c (make_pointer_type): Remove redundant setting of
3544         TYPE_POINTER_TYPE (type).
3545
3546 2012-08-14  Gary Benson  <gbenson@redhat.com>
3547
3548         * solib-svr4.c (svr4_free_library_list): Use free_so.
3549
3550 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
3551
3552         * .gitignore: Add go-exp.c.
3553
3554 2012-08-13  Doug Evans  <dje@google.com>
3555
3556         * value.c (show_convenience): Tweak comment.
3557         (_initialize_values): Mention convenience functions in the help text
3558         for "show convenience".
3559
3560 2012-08-13  Yao Qi  <yao@codesourcery.com>
3561
3562         * std-operator.def: Remove TERNOP_SLICE_COUNT.
3563         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3564         TERNOP_SLICE_COUNT.
3565         * eval.c (evaluate_subexp_standard): Likewise.
3566         * expprint.c (print_subexp_standard): Likewise.
3567         (dump_subexp_body_standard): Likewise.
3568         * parse.c (operator_length_standard): Likewise.
3569
3570 2012-08-13  Yao Qi  <yao@codesourcery.com>
3571
3572         * std-operator.def: Remove OP_BITSTRING.
3573         * breakpoint.c (watchpoint_exp_is_const): Update.
3574         * eval.c (evaluate_subexp_standard): Remove handling to
3575         OP_BITSTRING.
3576         * expprint.c (print_subexp_standard): Likewise.
3577         (dump_subexp_body_standard): Likewise.
3578         * parse.c (operator_length_standard): Likewise.
3579         * valops.c (value_bitstring): Remove.
3580         * value.h: Remove the declaration of 'value_bitstring'.
3581
3582 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3583
3584         * linespec.c (find_methods): Remove unused variables `i1' and
3585         `name_len'.
3586         (decode_line_full): Likewise for `arg_start'.
3587
3588 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3589
3590         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3591         (zlib_decompress_section): Likewise for `section_data'.
3592         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3593
3594 2012-08-10  Doug Evans  <dje@google.com>
3595
3596         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3597         * NEWS: Document them.
3598         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3599         function/strfns.py.
3600         * python/py-type.c (typy_array_1): New function.
3601         (typy_array): Call it.
3602         (typy_vector): New function.
3603         (type_object_methods): Add "vector".
3604         * python/lib/gdb/function/__init__.py: New file.
3605         * python/lib/gdb/function/strfns.py: New file.
3606
3607 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3608
3609         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3610         for TYPE_FIELD_BITPOS.
3611         (typy_get_sizeof): Likewise for TYPE_LENGTH.
3612
3613 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
3614
3615         PR cli/10436:
3616         * common/vec.h (VEC_merge): Define.
3617         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3618         (DEF_VEC_ALLOC_FUNC_P): Likewise.
3619         (DEF_VEC_ALLOC_FUNC_O): Likewise.
3620         * completer.c: Include gdb_signals.h.
3621         (signal_completer): Define.
3622         * completer.h (signal_completer): Add prototype.
3623         * infcmd.c (_initialize_infcmd): Assign the command
3624         completer for "signal" to handle_completer.
3625         * infrun.c: Include completer.h.
3626         (handle_completer): Define.
3627         (_initialize_infrun): Declare a new local variable c.  Store the
3628         result of add_com("handle") to it.  Assign the command
3629         completer for "handle" to handle_completer.
3630
3631 2012-08-09  Yao Qi  <yao@codesourcery.com>
3632
3633         * cli/cli-decode.c (set_cmd_prefix): New.
3634         (lookup_cmd_for_prefixlist): New.
3635         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3636         of each cmd_list_element in *prefixlist.
3637         (add_setshow_cmd_full): set_cmd_prefix.
3638         (add_alias_cmd): Likewise.
3639         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3640         Declare 'auto_boolean_enums'.
3641         * cli/cli-setshow.c: Include "observer.h".
3642         (notify_command_param_changed_p): New.
3643         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3644         Remove 'static'.
3645         (do_setshow_command): Split it to ...
3646         (do_set_command, do_show_command): ... them.  New.
3647         (do_set_command): Call observer_notify_command_param_changed if
3648         notify_command_param_changed_p returns true.
3649         (cmd_show_list): Caller update.
3650         * auto-load.c (set_auto_load_cmd): Likewise.
3651         * remote.c (show_remote_cmd): Likewise.
3652         * cli/cli-setshow.h: Update declarations.
3653         * top.c (execute_command): Call do_set_command and do_show_command.
3654
3655         * NEWS: Mention new MI notification.
3656         * mi/mi-interp.c: Declare mi_command_param_changed.
3657         (mi_interpreter_init): Attach mi_command_param_changed to
3658         observer command_param_changed.
3659         (mi_command_param_changed): New.
3660         Remove mi_suppress_breakpoint_notifications.
3661         Define global variable mi_suppress_notification.
3662         (mi_breakpoint_created): Update.
3663         (mi_breakpoint_deleted): Likewise.
3664         (mi_breakpoint_modified): Likewise.
3665         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
3666         'gdb-set' and set mi_suppress_notification.
3667         * mi/mi-main.h: (mi_suppress_notification): New struct.
3668
3669 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
3670             Jan Kratochvil  <jan.kratochvil@redhat.com>
3671
3672         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3673
3674 2012-08-09  Yao Qi  <yao@codesourcery.com>
3675
3676         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3677         (skiplist): Move it to skip.c.
3678         (init_cmd_lists): Remove code setting enablebreaklist and
3679         skiplist to NULL.
3680         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3681         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3682         skiplist.
3683         * gdbcmd.h: Likewise.
3684         * skip.c (_initialize_step_skip): Move 'skiplist' from
3685         cli/cli-cmds.c.
3686
3687 2012-08-09  Yao Qi  <yao@codesourcery.com>
3688
3689         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3690         * gnu-nat.c, symfile.c: Likewise.
3691
3692 2012-08-08  Aaron Gamble  <agamble@google.com>
3693
3694         * utils.c (prompt_for_continue_wait_time): New static global.
3695         (make_command_stats_cleanup): Initialize it.
3696         (report_command_stats): Subtract time waiting for user.
3697         (prompt_for_continue): Track time waiting for user.
3698         (defaulted_query): Track time waiting for user.
3699
3700 2012-08-08  Doug Evans  <dje@google.com>
3701
3702         * eval.c (evaluate_subexp_standard): Fix thinko in handling
3703         UNOP_MEMVAL_TYPE.
3704         * expprint.c (print_subexp_standard, case OP_TYPE): New.
3705         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3706         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3707         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3708         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3709         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3710         elt.
3711         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3712         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3713         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3714         (dump_prefix_expression): Handle OP_TYPE.
3715
3716 2012-08-08  Keith Seitz  <keiths@redhat.com>
3717
3718         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3719         addr_start.
3720
3721 2012-08-08  Doug Evans  <dje@google.com>
3722
3723         * linux-thread-db.c: #include "gdb_vecs.h".
3724         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
3725         updated.
3726         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
3727         (thread_db_load_search): Use a vector to iterate over path elements.
3728         Handle text appearing after "$pdir".
3729
3730         * gdb_string.h: Moved to ...
3731         * common/gdb_string.h: ... here.
3732         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3733         gdb_string.h and gdb_assert.h.
3734
3735 2012-08-08  Yao Qi  <yao@codesourcery.com>
3736
3737         * tic6x-tdep.c (tic6x_register_to_value): Remove.
3738         (tic6x_value_to_register): Likewise.
3739         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3740         and set_gdbarch_value_to_register.
3741
3742 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3743             Jean-Marc Saffroy  <saffroy@gmail.com>
3744
3745         PR 11804
3746         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
3747         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3748         * gcore.c (gcore_create_callback): New function comment.  Add modified
3749         parameter.  Only write modified regions.  Set SEC_READONLY exactly
3750         according to MODIFIED.
3751         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
3752         the passed modified value to FUNC.
3753         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3754         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3755         first.  New variables modified and has_anonymous.  Parse the lines of
3756         smaps file.  Add the passed MODIFIED value to FUNC.
3757         * procfs.c (find_memory_regions_callback): Add the passed modified
3758         value.
3759
3760 2012-08-06  Tom Tromey  <tromey@redhat.com>
3761
3762         * dwarf2-frame.c (clear_pointer_cleanup): New function.
3763         (dwarf2_frame_cache): Use it.
3764         * frame-unwind.h (frame_sniffer_ftype): Document prologue
3765         cache initialization constraint.
3766
3767 2012-08-06  Tom Tromey  <tromey@redhat.com>
3768
3769         PR python/14386:
3770         * varobj.c (update_dynamic_varobj_children): Don't call
3771         PyIter_Check.
3772
3773 2012-08-06  Tom Tromey  <tromey@redhat.com>
3774
3775         PR cli/14392:
3776         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3777
3778 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
3779
3780         * NEWS: New entry for 'cd' default parameters.
3781         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3782
3783 2012-08-03  Tom Tromey  <tromey@redhat.com>
3784
3785         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3786         return.
3787
3788 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
3789
3790         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3791         to attempting lseek/write.
3792         (inf_child_fileio_pread): Likewise for pread.
3793
3794 2012-08-02  Yao Qi  <yao@codesourcery.com>
3795
3796         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3797         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3798         add_setshow_zinteger_cmd.
3799         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3800         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3801         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3802         instead of add_setshow_zinteger_cmd.
3803         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3804         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3805         instead of add_setshow_zinteger_cmd.
3806         * frame.c (frame_debug): Add 'unsigned'.
3807         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3808         add_setshow_zinteger_cmd.
3809         * frame.h: Update the declaration of 'frame_debug'.
3810         * gdbtypes.c (overload_debug): Add 'unsigned'.
3811         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3812         add_setshow_zinteger_cmd.
3813         * inferior.h: Update declaration of 'debug_infrun'.
3814         * infrun.c (debug_infrun): Add 'unsigned'.
3815         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3816         add_setshow_zinteger_cmd.
3817         * jit.c (jit_debug): Add 'unsigned'.
3818         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3819         add_setshow_zinteger_cmd.
3820         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3821         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3822         instead of add_setshow_zinteger_cmd.
3823         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3824         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3825         add_setshow_zinteger_cmd.
3826         * machoread.c (mach_o_debug_level): Add 'unsigned'.
3827         (_initialize_machoread): Call add_setshow_zuinteger_cmd
3828         instead of add_setshow_zinteger_cmd.
3829         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3830         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3831         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3832         intead of add_setshow_zinteger_cmd.
3833         * mips-tdep.c (mips_debug): Add 'unsigned'.
3834         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3835         instead of add_setshow_zinteger_cmd.
3836         * monitor.c (monitor_debug): Add 'unsigned'.
3837         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3838         add_setshow_zinteger_cmd.
3839         * observer.c (observer_debug): Add 'unsigned'.
3840         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3841         add_setshow_zinteger_cmd.
3842         * parse.c (expressiondebug): Add 'unsigned'.
3843         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3844         add_setshow_zinteger_cmd.
3845         * record.c (record_debug): Add 'unsigned'.
3846         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3847         add_setshow_zinteger_cmd.
3848         * record.h: Update the declaration of 'record_debug'.
3849         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3850         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3851         add_setshow_zinteger_cmd.
3852         * serial.c (global_serial_debug_p): Add 'unsigned'.
3853         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3854         add_setshow_zinteger_cmd.
3855         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3856         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3857         add_setshow_zinteger_cmd.
3858         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3859         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3860         add_setshow_zinteger_cmd.
3861         * target.c (targetdebug): Add 'unsigned'.
3862         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3863         add_setshow_zinteger_cmd.
3864         * valops.c (overload_debug): Add 'unsigned'.
3865         * varobj.c (varobjdebug): Add 'unsigned'.
3866         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3867         add_setshow_zinteger_cmd.
3868         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3869         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3870         instead of add_setshow_zinteger_cmd.
3871
3872         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3873         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3874         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3875         instead of add_setshow_zinteger_cmd.
3876         * gdbarch.c, gdbarch.h: Re-generated.
3877
3878 2012-08-02  Yao Qi  <yao@codesourcery.com>
3879
3880         * nto-tdep.c: Don't include cli/cli-decode.h and
3881         cli/cli-cmds.h.
3882         (_initialize_nto_tdep): Remove.
3883         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3884         Remove field.
3885         Remove macro nto_internal_debugging.
3886
3887 2012-08-01  Richard Henderson  <rth@redhat.com>
3888
3889         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3890         (mep-*-*) [gdb_target_obs]: Likewise.
3891
3892 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
3893
3894         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3895         linux_get_siginfo_type.
3896
3897 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
3898
3899         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3900         AT_ENTRY_POINT.
3901         (call_function_by_hand) <ON_STACK>: Call write_memory with
3902         gdbarch_breakpoint_from_pc, if possible.
3903         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3904         here.
3905
3906 2012-07-31  Yao Qi  <yao@codesourcery.com>
3907
3908         * tracepoint.c: Add 'static' for some variables.
3909
3910 2012-07-31  Yao Qi  <yao@codesourcery.com>
3911
3912         * go32-nat.c: Declare _initialize_go32_nat.
3913         * ser-go32.c: Declare _initialize_ser_dos.
3914         * top.c (do_chdir_cleanup): Add 'static'.
3915
3916 2012-07-30  Keith Seitz  <keiths@redhat.com>
3917
3918         * linespec.c (linespec_lex_number): A number followed
3919         by quotes is a valid number, too.
3920
3921 2012-07-30  Tom Tromey  <tromey@redhat.com>
3922
3923         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3924
3925 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
3926
3927         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3928         attempt to 4-byte-align HW breakpoint addresses for Thumb.
3929
3930 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
3931
3932         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3933         invalid or reevaluated to prevent prevent references to possibly
3934         delete'd type objects being left in the varobj.
3935
3936 2012-07-27  Tom Tromey  <tromey@redhat.com>
3937             Jan Kratochvil  <jan.kratochvil@redhat.com>
3938
3939         * copying.awk: Print buffer-read-only and vi ro markers.
3940         * copying.c: Rebuild.
3941         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3942         * gdbarch.c, gdbarch.h: Rebuild.
3943         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3944         buffer-read-only and vi ro markers.
3945         * features/arm-with-iwmmxt.c: Rebuild.
3946         * features/arm-with-m-fpa-layout.c: Rebuild.
3947         * features/arm-with-m-vfp-d16.c: Rebuild.
3948         * features/arm-with-m.c: Rebuild.
3949         * features/arm-with-neon.c: Rebuild.
3950         * features/arm-with-vfpv2.c: Rebuild.
3951         * features/arm-with-vfpv3.c: Rebuild.
3952         * features/i386/amd64-avx-linux.c: Rebuild.
3953         * features/i386/amd64-avx.c: Rebuild.
3954         * features/i386/amd64-linux.c: Rebuild.
3955         * features/i386/amd64.c: Rebuild.
3956         * features/i386/i386-avx-linux.c: Rebuild.
3957         * features/i386/i386-avx.c: Rebuild.
3958         * features/i386/i386-linux.c: Rebuild.
3959         * features/i386/i386-mmx-linux.c: Rebuild.
3960         * features/i386/i386-mmx.c: Rebuild.
3961         * features/i386/i386.c: Rebuild.
3962         * features/i386/x32-avx-linux.c: Rebuild.
3963         * features/i386/x32-avx.c: Rebuild.
3964         * features/i386/x32-linux.c: Rebuild.
3965         * features/i386/x32.c: Rebuild.
3966         * features/mips-dsp-linux.c: Rebuild.
3967         * features/mips-linux.c: Rebuild.
3968         * features/mips64-dsp-linux.c: Rebuild.
3969         * features/mips64-linux.c: Rebuild.
3970         * features/rs6000/powerpc-32.c: Rebuild.
3971         * features/rs6000/powerpc-32l.c: Rebuild.
3972         * features/rs6000/powerpc-403.c: Rebuild.
3973         * features/rs6000/powerpc-403gc.c: Rebuild.
3974         * features/rs6000/powerpc-405.c: Rebuild.
3975         * features/rs6000/powerpc-505.c: Rebuild.
3976         * features/rs6000/powerpc-601.c: Rebuild.
3977         * features/rs6000/powerpc-602.c: Rebuild.
3978         * features/rs6000/powerpc-603.c: Rebuild.
3979         * features/rs6000/powerpc-604.c: Rebuild.
3980         * features/rs6000/powerpc-64.c: Rebuild.
3981         * features/rs6000/powerpc-64l.c: Rebuild.
3982         * features/rs6000/powerpc-7400.c: Rebuild.
3983         * features/rs6000/powerpc-750.c: Rebuild.
3984         * features/rs6000/powerpc-860.c: Rebuild.
3985         * features/rs6000/powerpc-altivec32.c: Rebuild.
3986         * features/rs6000/powerpc-altivec32l.c: Rebuild.
3987         * features/rs6000/powerpc-altivec64.c: Rebuild.
3988         * features/rs6000/powerpc-altivec64l.c: Rebuild.
3989         * features/rs6000/powerpc-cell32l.c: Rebuild.
3990         * features/rs6000/powerpc-cell64l.c: Rebuild.
3991         * features/rs6000/powerpc-e500.c: Rebuild.
3992         * features/rs6000/powerpc-e500l.c: Rebuild.
3993         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3994         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3995         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3996         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3997         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3998         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3999         * features/rs6000/powerpc-vsx32.c: Rebuild.
4000         * features/rs6000/powerpc-vsx32l.c: Rebuild.
4001         * features/rs6000/powerpc-vsx64.c: Rebuild.
4002         * features/rs6000/powerpc-vsx64l.c: Rebuild.
4003         * features/rs6000/rs6000.c: Rebuild.
4004         * features/s390-linux32.c: Rebuild.
4005         * features/s390-linux32v1.c: Rebuild.
4006         * features/s390-linux32v2.c: Rebuild.
4007         * features/s390-linux64.c: Rebuild.
4008         * features/s390-linux64v1.c: Rebuild.
4009         * features/s390-linux64v2.c: Rebuild.
4010         * features/s390x-linux64.c: Rebuild.
4011         * features/s390x-linux64v1.c: Rebuild.
4012         * features/s390x-linux64v2.c: Rebuild.
4013         * features/tic6x-c62x-linux.c: Rebuild.
4014         * features/tic6x-c62x.c: Rebuild.
4015         * features/tic6x-c64x-linux.c: Rebuild.
4016         * features/tic6x-c64x.c: Rebuild.
4017         * features/tic6x-c64xp-linux.c: Rebuild.
4018         * features/tic6x-c64xp.c: Rebuild.
4019
4020 2012-07-27  Tom Tromey  <tromey@redhat.com>
4021
4022         * c-exp.y (classify_name): Avoid assignment in condition.
4023
4024 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
4025
4026         * amd64-windows-tdep.c: Include "frame.h".
4027         (amd64_windows_skip_trampoline_code): New function.
4028         (amd64_windows_init_abi): Add trampoline registration.
4029
4030 2012-07-27  Yao Qi  <yao@codesourcery.com>
4031
4032         * tracepoint.c (cur_traceframe_number): Remove.
4033         (set_tfile_traceframe): Remove.
4034         (tfile_trace_find, tfile_fetch_registers): Update callers.
4035         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
4036         (tfile_open, tfile_trace_find): Likewise.
4037
4038 2012-07-27  Yao Qi  <yao@codesourcery.com>
4039
4040         * thread.c (switch_to_thread): Don't call registers_changed.
4041
4042 2012-07-26  Tom Tromey  <tromey@redhat.com>
4043
4044         * Makefile.in (SFILES): Remove objc-exp.y.
4045         (YYFILES): Remove objc-exp.c.
4046         (YYOBJ): Remove objc-exp.o.
4047         (local-maintainer-clean): Don't mention objc-exp.c.
4048         * c-exp.y: Include objc-lang.h.
4049         (%union) <class>: New field.
4050         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
4051         (exp): Clone subscript production for OBJC_LBRAC.  Add various
4052         Objective C productions.
4053         (msglist, msgarglist, msgarg): New productions.
4054         (array_mod, func_mod, operator): Clone productions for
4055         OBJC_LBRAC.
4056         (parse_string_or_char): Handle '@' strings.
4057         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
4058         (classify_name): Check la_name_of_this.  Recognize ObjC class
4059         names.
4060         * objc-exp.y: Remove.
4061         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
4062         * objc-lang.h (objc_parse, objc_error): Don't declare.
4063
4064 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
4065
4066         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
4067
4068 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4069
4070         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
4071         and decrement.
4072
4073 2012-07-26  Tom Tromey  <tromey@redhat.com>
4074
4075         * copying.c: Rebuild.
4076         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
4077         'no_class'.
4078
4079 2012-07-26  Tom Tromey  <tromey@redhat.com>
4080
4081         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
4082         immediate_quit.
4083         (print_objfile_statistics): Likewise.
4084         (maintenance_print_symbols): Likewise.
4085         (maintenance_print_msymbols): Likewise.
4086         (maintenance_print_objfiles): Likewise.
4087         * psymtab.c (print_partial_symbols): Call QUIT.
4088         (maintenance_print_psymbols): Likewise.  Don't modify
4089         immediate_quit.
4090         * copying.c (show_copying_command): Don't modify immediate_quit.
4091         (show_warranty_command): Likewise.
4092         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
4093
4094 2012-07-26  Keith Seitz  <keiths@redhat.com>
4095
4096         * linespec.c (linespec_lexer_lex_number): The input
4097         is also a valid number if the next character is a comma
4098         or colon.
4099
4100 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
4101
4102         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
4103         configure options.
4104
4105 2012-07-26  Tristan Gingold  <gingold@adacore.com>
4106
4107         * machoread.c: Include gdb_bfd.h.
4108
4109 2012-07-26  Tristan Gingold  <gingold@adacore.com>
4110
4111         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
4112         offset.
4113
4114 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4115
4116         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
4117         SIZE to size_t.
4118         (dwarf2_evaluate_loc_desc): Likewise.
4119         (dwarf2_loc_desc_needs_frame): Likewise.
4120         (locexpr_describe_location_1): Likewise.
4121         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
4122         size_t.
4123         (struct dwarf2_loclist_baton): Likewise.
4124         * dwarf2read.c (struct dwarf_block): Likewise.
4125         (dump_die_shallow): Use pulongest to print dwarf_block.size.
4126         (decode_locdesc): Expand SIZE and I to size_t.
4127
4128 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4129
4130         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
4131
4132 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
4133
4134         * doublest.c (convert_doublest_to_floatformat): If the exponent
4135         is too small, treat the value as zero.  If the exponent is too
4136         large, treat the value as infinity.
4137
4138 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
4139
4140         * configure.ac: Add --enable-lmcheck configure option.
4141         * configure: Regenerate.
4142
4143 2012-07-25  Tom Tromey  <tromey@redhat.com>
4144
4145         * NEWS: Mention maint info bfds.
4146         * gdb_bfd.c (all_bfds): New global.
4147         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4148         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4149         New functions.
4150
4151 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
4152
4153         * configure.tgt: Add v850*-*-rtems*.
4154
4155 2012-07-25  Tom Tromey  <tromey@redhat.com>
4156
4157         * macrotab.c (macro_bcache_str): Remove cast.
4158
4159 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
4160
4161         * linespec.c (linespec_lexer_lex_number): Update comments,
4162         change the return and add check to make sure the input is
4163         the decimal numbers.
4164         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4165         false, call linespec_lexer_lex_string.
4166
4167 2012-07-24  Tom Tromey  <tromey@redhat.com>
4168
4169         * symfile.c (symbol_file_add): Don't open BFD twice.
4170
4171 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
4172
4173         * breakpoint.c (create_breakpoint): Store condition for pending
4174         breakpoints.
4175
4176 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
4177
4178         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4179         (m68k_return_value): Handle complex types like structures.
4180         (m68k_svr4_return_value): Likewise.
4181
4182 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4183
4184         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4185         parameters to bfd_get_section_name.
4186
4187 2012-07-24  Yao Qi  <yao@codesourcery.com>
4188
4189         * cli/cli-setshow.c: Handle case 'var_uinteger'
4190         and 'var_zuninteger' together.  Handle case 'var_integer' and
4191         'var_zinteger' together.
4192
4193 2012-07-23  Keith Seitz  <keiths@redhat.com>
4194
4195         * linespec.c (convert_linespec_to_sal): Don't add
4196         any symbols to the result vector if symbol_to_sal
4197         returns zero.
4198
4199 2012-07-23  Keith Seitz  <keiths@redhat.com>
4200
4201         * linespec.c (decode_objc): Record the function name
4202         in the linespec.
4203
4204 2012-07-23  Tom Tromey  <tromey@redhat.com>
4205
4206         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
4207         counting.
4208         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4209         (map_vmap): Acquire a reference to the BFD.
4210
4211 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4212
4213         * p-valprint.c (pascal_object_print_value): Replace potentially
4214         unsafe alloca with xmalloc/xfree.
4215         * valops.c (search_struct_method): Likewise.
4216
4217 2012-07-23  Tom Tromey  <tromey@redhat.com>
4218
4219         * solib-svr4.c (enable_break): Update.
4220         * bfd-target.h (target_bfd_reopen): Update documentation.
4221
4222 2012-07-23  Tom Tromey  <tromey@redhat.com>
4223
4224         * symfile.c (separate_debug_file_exists): Update.
4225         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4226         (reread_symbols): Update.
4227         * elfread.c (build_id_verify): Update.
4228         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4229         bfd_open_maybe_remote.
4230
4231 2012-07-23  Tom Tromey  <tromey@redhat.com>
4232
4233         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4234
4235 2012-07-23  Tom Tromey  <tromey@redhat.com>
4236
4237         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4238         and 'abfd'.
4239         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4240         and 'abfd'.
4241         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4242         * machoread.c (macho_add_oso_symfile): Make a cleanup for
4243         'abfd'.
4244         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4245         * objfiles.c (allocate_objfile): Acquire a new reference.
4246         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4247         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4248         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4249         a cleanup for 'nbfd'.
4250         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4251         for 'nbfd'.
4252         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4253         make a cleanup for 'abfd'.
4254         (symbol_file_add): Make a BFD cleanup.
4255
4256 2012-07-23  Tom Tromey  <tromey@redhat.com>
4257
4258         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4259         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4260         * corelow.c (core_open): Use gdb_bfd_fopen.
4261         * dsrec.c (load_srec): Use gdb_bfd_openr.
4262         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4263         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4264         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4265         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4266         (gdb_bfd_fdopenr): New functions.
4267         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4268         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4269         (gdb_bfd_fdopenr): Declare.
4270         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4271         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4272         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4273         gdb_bfd_openr_next_archived_file.
4274         (macho_check_dsym): Use gdb_bfd_openr.
4275         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4276         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4277         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4278         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4279         gdb_bfd_openr.
4280         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4281         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4282         gdb_bfd_openr_next_archived_file.
4283         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4284         Use gdb_bfd_openr.
4285         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4286         gdb_bfd_openr.
4287         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4288         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4289         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4290         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4291         (symfile_bfd_open): Use gdb_bfd_fopen.
4292         (generic_load): Use gdb_bfd_openr.
4293         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4294
4295 2012-07-23  Tom Tromey  <tromey@redhat.com>
4296
4297         * bfd-target.c (target_bfd_reopen): Update.
4298         * cli/cli-dump.c (bfd_openr_with_cleanup)
4299         (bfd_openw_with_cleanup): Update.
4300         * corelow.c (core_open): Update.
4301         * dsrec.c (load_srec): Update.
4302         * exec.c (exec_file_attach): Update.
4303         * gcore.c (create_gcore_bfd): Update.
4304         * gdb_bfd.c (gdb_bfd_ref): Return void.
4305         (gdb_bfd_open): Update.
4306         * gdb_bfd.h (gdb_bfd_ref): Return void.
4307         Update comments.
4308         * jit.c (jit_bfd_try_read_symtab): Update.
4309         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4310         * machoread.c (macho_symfile_read_all_oso): Update.
4311         (macho_check_dsym): Update.
4312         * procfs.c (insert_dbx_link_bpt_in_file): Update.
4313         * remote-m32r-sdi.c (m32r_load): Update.
4314         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4315         * rs6000-nat.c (add_vmap): Update.
4316         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4317         Update.
4318         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4319         * solib-spu.c (spu_bfd_open): Update.
4320         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4321         * spu-linux-nat.c (spu_bfd_open): Update.
4322         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4323         (generic_load): Update.
4324         * windows-nat.c (windows_make_so): Update.
4325
4326 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4327
4328         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4329
4330 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
4331
4332         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4333         SIGTRAMP_FRAME unwinding.
4334
4335 2012-07-20  Doug Evans  <dje@google.com>
4336
4337         * NEWS: Document new options "set/show use-deprecated-index-sections",
4338         and delete reference to --use-deprecated-index-sections.
4339         * symfile.h (use_deprecated_index_sections): Delete.
4340         * dwarf2read.c (use_deprecated_index_sections): Make static.
4341         (read_index_from_section): Update wording of how to load
4342         deprecated index sections.
4343         (_initialize_dwarf2_read): New options
4344         "set/show use-deprecated-index-sections".
4345         * main.c (captured_main): Delete --use-deprecated-index-sections.
4346
4347 2012-07-20  Pedro Alves  <palves@redhat.com>
4348
4349         PR threads/11692
4350         PR gdb/12203
4351
4352         * infrun.c (handle_inferior_event) <new thread>: Don't special
4353         case minus_one_ptid.
4354         <TARGET_WAITKIND_SPURIOUS>: Ditto.
4355         * linux-thread-db.c (thread_get_info_callback): Don't return early
4356         if the thread is zombie.
4357         (thread_from_lwp): Change return type to void.  Rewrite stale
4358         comment.
4359         (attach_thread): Don't return early if the thread is zombie,
4360         instead set its "dying" flag.
4361         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4362         (find_new_threads_callback): Don't return early if the thread is
4363         zombie.
4364
4365 2012-07-20  Pedro Alves  <palves@redhat.com>
4366
4367         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4368         * target.c (target_wait): Likewise.
4369         (str_comma_list_concat_elem, do_option, target_options_to_string):
4370         New functions.
4371         * target.h (target_options_to_string): Declare.
4372
4373 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
4374             Tom Tromey  <tromey@redhat.com>
4375
4376         * dwarf2read.c (dwarf_decode_macros)
4377         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4378         DW_MACRO_GNU_transparent_include_alt>: New cases.
4379         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4380         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4381
4382 2012-07-20  Tom Tromey  <tromey@redhat.com>
4383
4384         * dwarf2read.c (try_open_dwo_file): Don't call
4385         gdb_bfd_stash_filename.
4386
4387 2012-07-20  Pedro Alves  <palves@redhat.com>
4388
4389         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4390         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4391         (i386_process_record): Tweak description comments.
4392
4393 2012-07-20  Pedro Alves  <palves@redhat.com>
4394
4395         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4396         (i386_process_record): Use record_read_memory.
4397         * record.c (record_read_memory): New function.
4398         (record_arch_list_add_mem, record_exec_insn): Use
4399         record_read_memory.
4400         * record.h (record_read_memory): Declare.
4401
4402 2012-07-20  Yao Qi  <yao@codesourcery.com>
4403
4404         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4405         NULL for xfree.
4406
4407 2012-07-19  Pedro Alves  <palves@redhat.com>
4408
4409         * record.c (record_resume): Ask the target beneath to report all
4410         signals.
4411
4412 2012-07-19  Doug Evans  <dje@google.com>
4413
4414         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4415         there's no section at address zero.
4416         (dwarf2_record_block_ranges): Ditto.
4417
4418 2012-07-19  Yao Qi  <yao@codesourcery.com>
4419
4420         * command.h, remote.c: Fix a typo in comment.
4421
4422 2012-07-19  Tom Tromey  <tromey@redhat.com>
4423
4424         PR exp/13206:
4425         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4426         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4427         OP_DECLTYPE>: New cases.
4428         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4429         (type_exp): Add new productions.
4430         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4431         and decltype.
4432         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4433         New case.
4434         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4435         OP_DECLTYPE>: New case.
4436         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4437         New case.
4438         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4439         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4440
4441 2012-07-19  Tom Tromey  <tromey@redhat.com>
4442
4443         * c-exp.y (enum token_flags): New.
4444         (struct token) <cxx_only>: Remove.
4445         <flags>: New field.
4446         (tokentab3, tokentab2, ident_tokens): Update.
4447         (lex_one_token): Update.  Handle FLAG_SHADOW.
4448
4449 2012-07-19  Tom Tromey  <tromey@redhat.com>
4450
4451         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4452         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4453         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4454         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
4455         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
4456         type_exp production where appropriate.
4457         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4458         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4459         <UNOP_MEMVAL_TYPE>: New case.
4460         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4461         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4462         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4463         <UNOP_MEMVAL_TYPE>: New case.
4464         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4465         UNOP_REINTERPRET_CAST>: Update.
4466         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4467         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4468         UNOP_REINTERPRET_CAST>: Update.
4469         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4470         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4471         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4472         constants.
4473
4474 2012-07-19  Yao Qi  <yao@codesourcery.com>
4475             Jan Kratochvil <jan.kratochvil@redhat.com>
4476
4477         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4478         and case 'var_optional_filename' together.
4479         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4480         instead of add_setshow_optional_filename_cmd for setshow command
4481         'args'.  Set completer for 'set args'.
4482
4483 2012-07-18  Doug Evans  <dje@google.com>
4484
4485         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4486         * common/gdb_vecs.c: New file, contents from utils.c.
4487         * common/host-defs.h: New file, contents from defs.h.
4488         * utils.h: New file, contents from defs.h.
4489         * defs.h: Move all declarations of objects defined in utils.c
4490         to utils.h (except QUIT() and related).
4491         #include "utils.h", "host-defs.h".
4492         * probe.h (probe_p): Move here from gdb_vecs.h.
4493         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4494         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4495         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4496         * Makefile.in (SFILES): Add common/gdb_vecs.c.
4497         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4498         (COMMON_OBS): Add gdb_vecs.o.
4499         (gdb_vecs.o): New rule.
4500
4501 2012-07-18  Keith Seitz  <keiths@redhat.com>
4502
4503         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4504         parameter.  If non-zero, use SYMNAME as the canonical name
4505         for the SaL.
4506         Update all callers.
4507         (convert_linespec_to_sals): Use add_sal_to_sals for
4508         expressions, too.
4509         (decode_line_full): No need to "fill in missing canonical names"
4510         anymore. Simply make cleanups for the allocated names.
4511
4512 2012-07-18  Keith Seitz  <keiths@redhat.com>
4513
4514         * linespec.c (struct linespec): Constify expression,
4515         source_filename, function_name, and label_name.
4516         (symbol_not_found_error): Make all parameters const.
4517         (linespec_parser_delete): No need to check for NULL
4518         when using xfree. Cast const char * to char * for xfree.
4519
4520 2012-07-18  Keith Seitz  <keiths@redhat.com>
4521
4522         * breakpoint.c (invalid_thread_id_error): New function.
4523         (find_condition_and_thread): Use invalid_thread_id_error.
4524         (watch_command_1): Likewise.
4525
4526 2012-07-18  Tom Tromey  <tromey@redhat.com>
4527
4528         * cc-with-index.sh, cc-with-dwz.sh: Remove.
4529         * contrib/cc-with-tweaks.sh: New file.
4530
4531 2012-07-18  Tom Tromey  <tromey@redhat.com>
4532
4533         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4534         (locate_dwz_sections): Recognize .gdb_index.
4535         (create_cus_from_index_list): New function.
4536         (create_cus_from_index): Use it.  Handle .dwz data.
4537         (read_index_from_section): New function, extracted from
4538         dwarf2_read_index.
4539         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
4540         if needed.
4541
4542 2012-07-18  Tom Tromey  <tromey@redhat.com>
4543
4544         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4545         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4546         <is_dwz>: New field.
4547         (struct dwz_file): New.
4548         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4549         (locate_dwz_sections, dwarf2_get_dwz_file)
4550         (get_abbrev_section_for_cu): New functions.
4551         (error_check_comp_unit_head, read_and_check_comp_unit_head)
4552         (read_and_check_type_unit_head): Add abbrev_section argument.
4553         (create_debug_types_hash_table): Update.
4554         (init_cutu_and_read_dies): Use proper abbrev section.
4555         (init_cutu_and_read_dies_no_follow): Likewise.
4556         (set_partial_user): Do nothing if PST==NULL.
4557         (read_comp_units_from_section): New function.
4558         (create_all_comp_units): Use it.
4559         (scan_partial_symbols, partial_die_parent_scope): Update.
4560         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4561         (process_imported_unit_die, read_partial_die): Handle .dwz files.
4562         (find_partial_die): Add offset_in_dwz argument.  Update.
4563         (guess_partial_die_structure_name, fixup_partial_die): Update.
4564         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4565         DW_FORM_GNU_strp_alt.
4566         (read_indirect_string_from_dwz): New function.
4567         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4568         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4569         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4570         (follow_die_offset): Add offset_in_dwz argument.
4571         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4572         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4573         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4574         Handle new macro forms.
4575         (dwarf_decode_macros): Update.
4576         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4577         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4578         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4579         (create_debug_types_hash_table): Use correct abbrev section.
4580         (get_debug_line_section): New function.
4581         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4582         (process_full_comp_unit): Pass 'required' argument to
4583         end_symtab_get_static_block.
4584         * buildsym.h (end_symtab_get_static_block): Update.
4585         * buildsym.c (end_symtab_get_static_block): Add 'required'
4586         argument.
4587         (end_symtab, end_expandable_symtab): Update.
4588
4589 2012-07-18  Tom Tromey  <tromey@redhat.com>
4590
4591         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4592         (pagesize): Remove.
4593         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4594         (zlib_decompress_section): Remove.
4595         (dwarf2_read_section): Use gdb_bfd_map_section.
4596         (munmap_section_buffer): Remove.
4597         (free_dwo_file, dwarf2_per_objfile_free): Don't use
4598         munmap_section_buffer.
4599         * gdb_bfd.c: Include zlib.h, sys/mman.h.
4600         (struct gdb_bfd_section_data): New.
4601         (free_one_bfd_section): New function.
4602         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4603         (get_section_descriptor, zlib_decompress_section)
4604         (gdb_bfd_map_section): New functions.
4605         * gdb_bfd.h (gdb_bfd_map_section): Declare.
4606
4607 2012-07-18  Tom Tromey  <tromey@redhat.com>
4608
4609         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4610
4611 2012-07-18  Tom Tromey  <tromey@redhat.com>
4612
4613         * gdb_bfd.c (struct gdb_bfd_data): New.
4614         (gdb_bfd_cache): New global.
4615         (struct gdb_bfd_cache_search): New.
4616         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4617         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4618         * gdb_bfd.h (gdb_bfd_open): Declare.
4619
4620 2012-07-18  Tom Tromey  <tromey@redhat.com>
4621
4622         * utils.c (make_cleanup_bfd_unref): Rename from
4623         make_cleanup_bfd_close.
4624         * defs.h (make_cleanup_bfd_unref): Rename from
4625         make_cleanup_bfd_close.
4626         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4627         (bfd_openw_with_cleanup): Update.
4628         * corelow.c (core_open): Update.
4629         * dsrec.c (load_srec): Update.
4630         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4631         * remote-m32r-sdi.c (m32r_load): Update.
4632         * remote-mips.c (mips_load_srec): Update.
4633         (pmon_load_fast): Update.
4634         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4635         Update.
4636         (darwin_bfd_open): Update.
4637         * solib.c (solib_bfd_fopen): Update.
4638         * symfile-mem.c (symbol_file_add_from_memory): Update.
4639         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4640         (symfile_bfd_open): Update.
4641         (generic_load): Update.
4642
4643 2012-07-18  Tom Tromey  <tromey@redhat.com>
4644
4645         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4646         (pmon_load_fast): Likewise.
4647         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4648         (m32r_upload_command): Likewise.
4649         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4650         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4651         Use make_cleanup_bfd_close.
4652
4653 2012-07-18  Tom Tromey  <tromey@redhat.com>
4654
4655         * symfile.c (symfile_bfd_open): Don't copy name.  Call
4656         gdb_bfd_stash_filename.
4657         (load_command): Open the new BFD before freeing the old.
4658         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4659         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4660         Call gdb_bfd_stash_filename.
4661         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4662         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
4663         gdb_bfd_stash_filename.
4664         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4665         Free found_pathname.
4666         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
4667         gdb_bfd_stash_filename.
4668         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4669         * machoread.c (macho_add_oso_symfile): Call
4670         gdb_bfd_stash_filename.
4671         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
4672         gdb_bfd_stash_filename.
4673         (macho_check_dsym): Don't copy filename.  Call
4674         gdb_bfd_stash_filename.
4675         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4676         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4677         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4678         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4679         * exec.c (exec_close): Don't free the BFD's filename.
4680         (exec_file_attach): Don't copy the filename.  Call
4681         gdb_bfd_stash_filename.
4682         * corelow.c (core_close): Don't free the BFD's filename.
4683         (core_open): Call gdb_bfd_stash_filename.
4684         * corefile.c (reopen_exec_file): Remove #if 0 code.
4685         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
4686         pathname.
4687         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4688
4689 2012-07-18  Tom Tromey  <tromey@redhat.com>
4690
4691         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4692         gdb_bfd_unref.
4693         (free_dwo_file): Use gdb_bfd_unref.
4694         * cli/cli-dump.c: Include gdb_bfd.h.
4695         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4696         (bfd_openr_with_cleanup): Likewise.
4697         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4698         gdb_bfd_unref.
4699         * utils.c: Include gdb_bfd.h.
4700         (do_bfd_close_cleanup): Use gdb_bfd_unref.
4701         * symfile.c: Include gdb_bfd.h.
4702         (separate_debug_file_exists): Use gdb_bfd_unref.
4703         (bfd_open_maybe_remote): Use gdb_bfd_ref.
4704         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4705         (generic_load): Use gdb_bfd_ref.
4706         (reread_symbols): Use gdb_bfd_unref.
4707         * symfile-mem.c: Include gdb_bfd.h.
4708         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4709         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4710         * solib.c: Include gdb_bfd.h.
4711         (solib_bfd_fopen): Use gdb_bfd_ref.
4712         (solib_bfd_open): Use gdb_bfd_unref.
4713         (free_so_symbols): Use gdb_bfd_unref.
4714         (reload_shared_libraries_1): Use gdb_bfd_unref.
4715         * solib-spu.c: Include gdb_bfd.h.
4716         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4717         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4718         gdb_bfd_unref.
4719         * solib-frv.c: Include gdb_bfd.h.
4720         (enable_break2): Use gdb_bfd_unref.
4721         * solib-dsbt.c: Include gdb_bfd.h.
4722         (enable_break2): Use gdb_bfd_unref.
4723         * solib-darwin.c: Include gdb_bfd.h.
4724         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4725         gdb_bfd_unref.
4726         (darwin_bfd_open): Use gdb_bfd_unref.
4727         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4728         * remote-mips.c: Include gdb_bfd.h.
4729         (mips_load_srec): Use gdb_bfd_ref.
4730         (pmon_load_fast): Use gdb_bfd_ref.
4731         * remote-m32r-sdi.c: Include gdb_bfd.h.
4732         (m32r_load): Use gdb_bfd_ref.
4733         * record.c: Include gdb_bfd.h.
4734         (record_save_cleanups): Use gdb_bfd_unref.
4735         (cmd_record_save): Use gdb_bfd_unref.
4736         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4737         gdb_bfd_unref.
4738         * objfiles.h (gdb_bfd_close_or_warn): Remove.
4739         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4740         * objfiles.c: Include gdb_bfd.h.
4741         (free_objfile): Use gdb_bfd_unref.
4742         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4743         gdb_bfd.c.
4744         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4745         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4746         (macho_check_dsym): Likewise.
4747         * m32r-rom.c: Include gdb_bfd.h.
4748         (m32r_load): Use gdb_bfd_ref.
4749         (m32r_upload_command): Use gdb_bfd_ref.
4750         * jit.c: Include gdb_bfd.h.
4751         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4752         * gdb_bfd.h: New file.
4753         * gdb_bfd.c: New file.
4754         * gcore.c: Include gdb_bfd.h.
4755         (create_gcore_bfd): Use gdb_bfd_ref.
4756         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4757         (gcore_command): Use gdb_bfd_unref.
4758         * exec.c: Include gdb_bfd.h.
4759         (exec_close): Use gdb_bfd_unref.
4760         (exec_close_1): Use gdb_bfd_unref.
4761         (exec_file_attach): Use gdb_bfd_ref.
4762         * elfread.c: Include gdb_bfd.h.
4763         (build_id_verify): Use gdb_bfd_unref.
4764         * dsrec.c: Include gdb_bfd.h.
4765         (load_srec): Use gdb_bfd_ref.
4766         * corelow.c: Include gdb_bfd.h.
4767         (core_close): Use gdb_bfd_unref.
4768         (core_open): Use gdb_bfd_ref.
4769         * bfd-target.c: Include gdb_bfd.h.
4770         (target_bfd_xclose): Use gdb_bfd_unref.
4771         (target_bfd_reopen): Use gdb_bfd_ref.
4772         * Makefile.in (SFILES): Add gdb_bfd.c.
4773         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4774         (COMMON_OBS): Add gdb_bfd.o.
4775
4776 2012-07-18  Keith Seitz  <keiths@redhat.com>
4777
4778         * breakpoint.c (find_condition_and_thread): Initialize
4779         TASK and REST.
4780         (create_breakpiont): find_condition_and_thread will now
4781         initialize COND_STRING, THREAD, and REST (and TASK).
4782         (addr_string_to_sals): Likewise.
4783
4784 2012-07-18  Pedro Alves  <palves@redhat.com>
4785
4786         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4787         Pull the single step breakpoints out of the target.
4788
4789 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4790
4791         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4792         * stap-probe.c (compile_probe_arg): Likewise.
4793
4794 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4795
4796         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4797         (elf_compile_to_ax): Likewise.
4798         * infrun.c (insert_exception_resume_from_probe): Likewise.
4799         (check_exception_resume): Remove `objfile' variable.
4800         * probe.c (find_probe_by_pc): Remove `objfile' argument.
4801         (struct probe_and_objfile, probe_and_objfile_s): Delete.
4802         (collect_probes): Adjust return value to `VEC (probe_p) *'.
4803         (compare_entries): Rename to...
4804         (compare_probes): ...this.  Adjust function to work with
4805         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
4806         respectively.
4807         (gen_ui_out_table_header_info): Adjust `probes' argument to be
4808         `VEC (probe_p) *'.
4809         (print_ui_out_info): Adjust argument to be `struct probe *'.
4810         (info_probes_for_ops): Adjust internal computations to use
4811         `VEC (probe_p) *'.
4812         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4813         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4814         gen_info_probes_table_values>: Remove `objfile' argument.
4815         (struct probe) <objfile>: New field.
4816         (find_probe_by_pc): Remove `objfile' argument.
4817         * stap-probe.c (stap_parse_probe_arguments): Likewise.
4818         (stap_get_probe_argument_count): Likewise.
4819         (stap_get_arg): Likewise.
4820         (stap_evaluate_probe_argument): Likewise.
4821         (stap_compile_to_ax): Likewise.
4822         (compile_probe_arg): Refactor not to pass `objfile' anymore.
4823         (handle_stap_probe): Fill `objfile' field from `struct probe'.
4824         (stap_gen_info_probes_table_header): Remove `objfile' argument.
4825         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4826         sym_compile_to_ax>: Likewise.
4827
4828 2012-07-18  Terry Guo  <terry.guo@arm.com>
4829
4830         PR 14329
4831         * defs.h (GDB_MI_MSG_WIDTH): New.
4832         * ser_base (ser_base_read_error_fd): New function.
4833         (do_ser_base_readchar): Poll error file descriptor as well as
4834         standard output.
4835         (generic_readchar): Refactor error handling.
4836
4837 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
4838
4839         * NEWS: Create a new section for the next release branch.
4840         Rename the section of the current branch, now that it has
4841         been cut.
4842
4843 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
4844
4845         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4846         * version.in: Bump version to 7.5.50.20120718-cvs.
4847
4848 2012-07-17  Keith Seitz  <keiths@redhat.com>
4849
4850         * linespec.c (linespec_parse_line_offset): Make parameter
4851         const.
4852
4853 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4854
4855         PR 11914
4856         * f-valprint.c (info_common_command): New variable frame_id.
4857         Reinitialize FI form FRAME_ID after each print_variable_and_value.
4858         * printcmd.c (print_variable_and_value): Extend function comment.
4859         Add comment for invalidated FRAME.
4860         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
4861         FI form FRAME_ID after each print_frame_local_vars.
4862         (struct print_variable_and_value_data): Change frame to frame_id.
4863         (do_print_variable_and_value): New variable frame, initialize it from
4864         p->frame_id.  Add comment for invalidated FRAME.
4865         (print_frame_local_vars, print_frame_arg_vars): New function comment.
4866         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
4867         for invalidated FRAME.
4868
4869 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
4870             Pedro Alves  <palves@redhat.com>
4871
4872         * linux-nat.c (linux_nat_detach): Don't unregister from the event
4873         loop.
4874
4875 2012-07-16  Tom Tromey  <tromey@redhat.com>
4876
4877         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4878
4879 2012-07-15  Doug Evans  <dje@google.com>
4880
4881         * dwarf2read.c (stmt_list_hash): New struct.
4882         (type_unit_group): Embed "per_cu" member, remove pointer.
4883         New union member "t", move member "tus" into it, all uses updated.
4884         New member "hash", replaces member "line_offset, all uses updated.
4885         (quick_file_names): Replace member "offset" with "hash", all uses
4886         updated.
4887         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4888         (hash_file_name_entry, eq_file_name_entry): Call them.
4889         (hash_type_unit_group, eq_type_unit_group): Ditto.
4890         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4891         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4892         (dw2_get_file_names): Update.
4893         (create_type_unit_group): Replace "per_cu" arg with "cu".
4894         All callers updated.  Fix "quick" (.gdb_index) handling.
4895         (get_type_unit_group): Replace "per_cu" arg with "cu".
4896         All callers updated.
4897         (build_type_unit_groups): Don't reset tu_stats.
4898
4899         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4900         "tab_cur_size".  Change member "tab" to be a htab_t.
4901         (create_filename_seen_cache): Update.
4902         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4903         (filename_seen): Update.
4904
4905 2012-07-13  Doug Evans  <dje@google.com>
4906
4907         * symtab.c (filename_seen): Update comment.
4908
4909 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4910             Doug Evans  <dje@google.com>
4911
4912         * buildsym.c (end_symtab_1): Split it to ...
4913         (end_symtab_get_static_block): ... this ...
4914         (end_symtab_from_static_block): ... and this function.
4915         (end_symtab, end_expandable_symtab): Call them.
4916         * buildsym.h (end_symtab_get_static_block)
4917         (end_symtab_from_static_block): New declarations.
4918         * dwarf2read.c (process_full_comp_unit): New variable static_block.
4919         Set its valid CU ranges.
4920
4921 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4922
4923         * dwarf2loc.c (disassemble_dwarf_expression): Handle
4924         DW_OP_GNU_parameter_ref.
4925
4926 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4927
4928         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4929         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4930
4931 2012-07-13  Doug Evans  <dje@google.com>
4932
4933         * symtab.c (output_source_filename): Delete unnecessary forward decl.
4934         (filename_seen_cache): New struct.
4935         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4936         (create_filename_seen_cache): New function.
4937         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4938         (filename_seen): Delete arg "first".  New arg "cache".  All callers
4939         updated.
4940         (output_source_filename_data): New struct.
4941         (output_source_filename): Delete arg "first".  New arg "data".
4942         All callers updated.
4943         (sources_info): Delete local "first".  New locals "data", "cleanups".
4944         Rewrite to use filename_seen_cache.
4945         (add_partial_filename_data): Delete member "first".  New member
4946         "filename_seen_cache".  All uses updated.
4947         (make_source_files_completion_list): Rewrite to use
4948         filename_seen_cache.
4949
4950 2012-07-12  Doug Evans  <dje@google.com>
4951
4952         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4953
4954 2012-07-10  Doug Evans  <dje@google.com>
4955
4956         PR gdb/13498
4957         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4958         all_type_unit_groups, type_unit_groups, tu_stats.
4959         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4960         All uses updated.  Add type_unit_group to union "s".
4961         (type_unit_group): New struct.
4962         (IS_TYPE_UNIT_GROUP): New macro.
4963         (abbrev_table): Delete unused member "section".
4964         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4965         (dw2_get_cu): Assert not used with type_unit_group.
4966         (dw2_get_primary_cu): New function.
4967         (dw2_build_type_unit_groups_reader): New function.
4968         (dw2_build_type_unit_groups): New function.
4969         (dw2_get_file_names): Assert not called on type units.
4970         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4971         Redo loop to iterate over type unit groups instead of type units.
4972         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4973         (read_abbrev_offset): New function.
4974         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
4975         updated.
4976         (create_partial_symtab): New function.
4977         (process_psymtab_comp_unit_reader): Assert not used with type units.
4978         Call create_partial_symtab.
4979         (process_psymtab_type_unit): Delete.
4980         (hash_type_unit_group, eq_type_unit_group): New functions.
4981         (allocate_type_unit_groups_table): New function.
4982         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4983         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4984         (create_type_unit_group, get_type_unit_group): New functions.
4985         (tu_abbrev_offset): New struct.
4986         (sort_tu_by_abbrev_offset): New function.
4987         (add_type_unit_group_to_table): New function.
4988         (build_type_unit_groups): New function.
4989         (build_type_psymtabs_reader): New function.
4990         (build_type_psymtab_dependencies): New function.
4991         (build_type_psymtabs): Rewrite.
4992         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4993         is seen in a type unit.
4994         (process_queue): Move symtab expansion debugging printfs here.
4995         Call process_full_type_unit for type units.
4996         (compute_symtab_includes): Assert not called for type units.
4997         (process_cu_includes): Don't call compute_symtab_includes for
4998         type units.
4999         (process_full_type_unit): New function.
5000         (process_imported_unit_die): Flag an error if called for type units.
5001         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
5002         updated.  Assert not called for type units.
5003         (read_file_scope): Call dwarf2_start_symtab.
5004         (setup_type_unit_groups): New function.
5005         (read_type_unit_scope): Rewrite.
5006         (abbrev_table_read_table): Initialize abbrev_table->offset.
5007         (abbrev_table_free_cleanup): New function.
5008         (dwarf2_start_symtab): New function.
5009         (load_full_type_unit): Assert not called for type unit groups.
5010         * buildsym.c (finish_block_internal): New arg "expandable".
5011         All callers updated.
5012         (start_symtab): Move most contents to ...
5013         (restart_symtab): ... here.  New function.
5014         (reset_symtab_globals): New function.
5015         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
5016         Call reset_symtab_globals.
5017         (end_symtab, end_expandable_symtab): New functions.
5018         (set_missing_symtab, augment_type_symtab): New functions.
5019         * buildsym.h (end_expandable_symtab): Declare.
5020         (augment_type_symtab, restart_symtab): Declare.
5021         * psympriv.h (struct partial_symtab): New member "anonymous".
5022         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
5023         anonymous psymtabs.
5024         (read_psymtabs_with_filename): Ditto.
5025         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
5026         (expand_symtabs_matching_via_partial): Ditto.
5027         (dump_psymtab): Update.
5028         * dictionary.c (dict_add_pending): New function.
5029         * dictionary.h (dict_add_pending): Declare.
5030
5031 2012-07-09  Doug Evans  <dje@google.com>
5032
5033         * buildsym.c (start_subfile): Remove unnecessary check for
5034         name == NULL.
5035
5036         * psymtab.c (allocate_psymtab): Use host_address_to_string.
5037
5038         * dwarf2read.c (load_full_type_unit): Simplify.
5039
5040         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
5041         to struct signatured_type **.  All uses updated.
5042
5043         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
5044         All callers updated.
5045
5046 2012-07-09  Tom Tromey  <tromey@redhat.com>
5047
5048         * c-exp.y (check_parameter_typelist): New function.
5049         (parameter_typelist): Call it.
5050         * eval.c (make_params): Handle '(void)' case.
5051         * gdbtypes.c (lookup_function_type_with_arguments): Handle
5052         '(void)' case.
5053
5054 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5055
5056         * common/linux-ptrace.c: Include gdb_assert.h.
5057         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
5058         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
5059         stdint.h.
5060         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
5061         functions.
5062         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
5063         * linux-nat.c (linux_child_post_attach)
5064         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
5065
5066 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
5067
5068         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
5069         nptl <2.7 bug workaround for core files.
5070
5071 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5072
5073         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
5074         clearing.
5075         (save_siginfo): Remove.
5076         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
5077         call.
5078         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
5079         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
5080         * linux-nat.h (struct lwp_info): Remove field siginfo.
5081
5082 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5083
5084         Code cleanup for the next patch.
5085         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
5086         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5087         call for it.
5088         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5089         (ia64_linux_stopped_data_address):
5090         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
5091         the return value.
5092         * linux-nat.h (linux_nat_get_siginfo): Likewise.
5093         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
5094         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5095         call for it.
5096
5097 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5098
5099         PR 14321
5100         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
5101         Increase buffer sizes to 2x we need, not just 2x of the previous size.
5102
5103 2012-07-06  Tom Tromey  <tromey@redhat.com>
5104
5105         * c-exp.y (DOTDOTDOT): New token.
5106         (func_mod, exp): Use parameter_typelist.
5107         (parameter_typelist): New production.
5108         (tokentab3): Add "..." token.
5109         * eval.c (make_params): Handle varargs.
5110         * gdbtypes.c (lookup_function_type_with_arguments): Handle
5111         varargs.
5112
5113 2012-07-06  Tom Tromey  <tromey@redhat.com>
5114
5115         PR exp/9608:
5116         * c-exp.y (%union) <tvec>: Change type.
5117         (func_mod): Now uses <tvec> type.
5118         (exp): Update for tvec change.
5119         (direct_abs_decl): Push the typelist.
5120         (func_mod): Return a typelist.
5121         (nonempty_typelist): Update for tvec change.
5122         * gdbtypes.c (lookup_function_type_with_arguments): New function.
5123         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
5124         * parse.c (pop_type_list): New function.
5125         (push_typelist): New function.
5126         (follow_types): Handle tp_function_with_arguments.
5127         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
5128         (enum type_pieces) <tp_function_with_arguments>: New constant.
5129         (union type_stack_elt) <typelist_val>: New field.
5130         (push_typelist): Declare.
5131
5132 2012-07-06  Tom Tromey  <tromey@redhat.com>
5133
5134         * c-exp.y (%union) <type_stack>: New field.
5135         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
5136         (ptr_operator_ts): New production.
5137         (ptype): Update.
5138         * parse.c (type_stack_reserve): New function.
5139         (check_type_stack_depth): Use it.
5140         (pop_type_stack, append_type_stack, push_type_stack)
5141         (get_type_stack, type_stack_cleanup): New functions.
5142         (follow_types): Handle tp_type_stack.
5143         (_initialize_parse): Simplify initialization.
5144         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5145         constant.
5146         (union type_stack_elt) <stack_val>: New field.
5147         (get_type_stack, append_type_stack, push_type_stack)
5148         (type_stack_cleanup): Declare.
5149
5150 2012-07-06  Tom Tromey  <tromey@redhat.com>
5151
5152         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5153         Remove.
5154         (struct type_stack): New.
5155         * parse.c (type_stack, type_stack_size, type_stack_depth):
5156         Remove.
5157         (type_stack): New global.
5158         (parse_exp_in_context, check_type_stack_depth)
5159         (insert_into_type_stack, insert_type, push_type, push_type_int)
5160         (insert_type_address_space, pop_type, pop_type_int)
5161         (_initialize_parse): Update.
5162
5163 2012-07-06  Tom Tromey  <tromey@redhat.com>
5164
5165         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5166         Remove %type.
5167
5168 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5169
5170         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5171
5172 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5173             Jan Kratochvil  <jan.kratochvil@redhat.com>
5174
5175         * cp-valprint.c (cp_print_value): Replace potentially unsafe
5176         alloca with xmalloc/xfree.
5177
5178 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5179
5180         * MAINTAINERS (Write After Approval): Add myself to the list.
5181
5182 2012-07-05  Doug Evans  <dje@google.com>
5183
5184         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5185
5186 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
5187
5188         * ax-gdb.c (cli/cli-utils.h): New include.
5189         (linespec.h): Ditto.
5190         (agent_eval_command_one): New function.
5191         (agent_command_1): Ditto.
5192         (agent_command): Call function agent_command_1.
5193         (agent_eval_command): Ditto.
5194         (_initialize_ax_gdb): Change help for "maint agent"
5195         and "maint agent-eval".
5196
5197 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
5198
5199         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5200         * cli/cli-utils.c (check_for_argument): New function.
5201         * cli/cli-utils.h (check_for_argument): Ditto.
5202
5203 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
5204
5205         * NEWS: Mention x32 ABI support.
5206
5207 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
5208
5209         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5210         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5211
5212         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5213         and pc_regnum_from_eax to -1.  Update SP regnum from
5214         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5215         needed.
5216
5217         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5218         pc_regnum_from_eax.
5219
5220 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5221
5222         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5223         * dwarf2expr.h: Include gdbtypes.h.
5224         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5225         these forward declarations.
5226         (cu_offset, sect_offset): Move these ...
5227         * gdbtypes.h: Remove include dwarf2expr.h.
5228         (cu_offset, sect_offset): ... here.
5229
5230 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
5231
5232         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5233         (amd64_linux_sigtramp_code): This.
5234         (amd64_x32_linux_sigtramp_code): New.
5235         (LINUX_SIGTRAMP_LEN): Updated.
5236         (amd64_linux_sigtramp_start): Check x32 sigtramp.
5237
5238 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5239
5240         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5241
5242 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5243
5244         * config.in: Regenerate.
5245         * configure: Regenerate.
5246         * configure.ac: Remove check for gnu/libc-version.h.
5247         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5248         gnu/libc-version.h.
5249         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5250         variables libc_version, libc_major and libc_minor.  Replace sscanf by
5251         inferior_has_bug.  Extend the comment.
5252
5253 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5254
5255         * linux-thread-db.c (inferior_has_bug): New function.
5256         (thread_db_find_new_threads_silently): Return boolean as checked by
5257         inferior_has_bug, describe it in the comments.
5258         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5259         earlier.  Abort the initialization if it returned non-zero.
5260         (thread_db_new_objfile): Exclude debug files.
5261         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
5262         if UNTIL_NO_NEW,
5263
5264 2012-07-02  Doug Evans  <dje@google.com>
5265
5266         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5267         related to queue management.
5268
5269         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5270         instead of "debug dwarf2-die" in debugging printfs.
5271         (create_debug_info_hash_table_reader): Ditto.
5272         (create_debug_info_hash_table): Ditto.
5273         (init_dwo_file): Ditto.
5274         (init_cutu_and_read_dies): Add debugging printf.
5275         (init_cutu_and_read_dies_no_follow): Ditto.
5276         (process_psymtab_comp_unit_reader): Ditto.
5277
5278 2012-07-02  Stan Shebs  <stan@codesourcery.com>
5279
5280         Add target-side support for dynamic printf.
5281         * NEWS: Mention the additional style.
5282         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5283         (struct bp_location): New field cmd_bytecode.
5284         * breakpoint.c: Include format.h.
5285         (disconnected_dprintf): New global.
5286         (parse_cmd_to_aexpr): New function.
5287         (build_target_command_list): New function.
5288         (insert_bp_location): Call it.
5289         (remove_breakpoints_pid): Skip dprintf breakpoints.
5290         (print_one_breakpoint_location): Ditto.
5291         (dprintf_style_agent): New global.
5292         (dprintf_style_enums): Add dprintf_style_agent.
5293         (update_dprintf_command_list): Add agent case.
5294         (agent_printf_command): New function.
5295         (_initialize_breakpoint): Add new commands.
5296         * common/ax.def (printf): New bytecode.
5297         * ax.h (ax_string): Declare.
5298         * ax-gdb.h (gen_printf): Declare.
5299         * ax-gdb.c: Include cli-utils.h, format.h.
5300         (gen_printf): New function.
5301         (maint_agent_print_command): New function.
5302         (_initialize_ax_gdb): Add maint agent-printf command.
5303         * ax-general.c (ax_string): New function.
5304         (ax_print): Add printf disassembly.
5305         * Makefile.in (SFILES): Add format.c
5306         (COMMON_OBS): Add format.o.
5307         * common/format.h: New file.
5308         * common/format.c: New file.
5309         * printcmd.c: Include format.h.
5310         (ui_printf): Call parse_format_string.
5311         * remote.c (remote_state): New field breakpoint_commands.
5312         (PACKET_BreakpointCommands): New enum.
5313         (remote_breakpoint_commands_feature): New function.
5314         (remote_protocol_features): Add new BreakpointCommands entry.
5315         (remote_can_run_breakpoint_commands): New function.
5316         (remote_add_target_side_commands): New function.
5317         (remote_insert_breakpoint): Call it.
5318         (remote_insert_hw_breakpoint): Ditto.
5319         (_initialize_remote): Add new packet configuration for
5320         target-side breakpoint commands.
5321         * target.h (struct target_ops): New field
5322         to_can_run_breakpoint_commands.
5323         (target_can_run_breakpoint_commands): New macro.
5324         * target.c (update_current_target): Handle
5325         to_can_run_breakpoint_commands.
5326
5327 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5328
5329         Execute -ix and -iex only after system and user gdbinit files.
5330         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5331         processing down after gdbinit files.
5332
5333 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5334
5335         Add fnmatch-gnu module.
5336         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5337         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5338         * gnulib/aclocal.m4: Regenerate.
5339         * gnulib/config.in: Regenerate.
5340         * gnulib/configure: Regenerate.
5341         * gnulib/import/dummy.c: Remove.
5342         * gnulib/import/Makefile.am: Regenerate.
5343         * gnulib/import/Makefile.in: Likewise.
5344         * gnulib/import/m4/gnulib-cache.m4: Likewise.
5345         * gnulib/import/m4/gnulib-comp.m4: Likewise.
5346         * gnulib/import/alloca.c: New file.
5347         * gnulib/import/alloca.in.h: Likewise.
5348         * gnulib/import/config.charset: Likewise.
5349         * gnulib/import/fnmatch.c: Likewise.
5350         * gnulib/import/fnmatch.in.h: Likewise.
5351         * gnulib/import/fnmatch_loop.c: Likewise.
5352         * gnulib/import/localcharset.c: Likewise.
5353         * gnulib/import/localcharset.h: Likewise.
5354         * gnulib/import/m4/alloca.m4: Likewise.
5355         * gnulib/import/m4/codeset.m4: Likewise.
5356         * gnulib/import/m4/configmake.m4: Likewise.
5357         * gnulib/import/m4/fcntl-o.m4: Likewise.
5358         * gnulib/import/m4/fnmatch.m4: Likewise.
5359         * gnulib/import/m4/glibc21.m4: Likewise.
5360         * gnulib/import/m4/localcharset.m4: Likewise.
5361         * gnulib/import/m4/locale-fr.m4: Likewise.
5362         * gnulib/import/m4/locale-ja.m4: Likewise.
5363         * gnulib/import/m4/locale-zh.m4: Likewise.
5364         * gnulib/import/m4/mbrtowc.m4: Likewise.
5365         * gnulib/import/m4/mbsinit.m4: Likewise.
5366         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5367         * gnulib/import/m4/mbstate_t.m4: Likewise.
5368         * gnulib/import/m4/stdbool.m4: Likewise.
5369         * gnulib/import/m4/wchar_h.m4: Likewise.
5370         * gnulib/import/m4/wctype_h.m4: Likewise.
5371         * gnulib/import/m4/wint_t.m4: Likewise.
5372         * gnulib/import/mbrtowc.c: Likewise.
5373         * gnulib/import/mbsinit.c: Likewise.
5374         * gnulib/import/mbsrtowcs-impl.h: Likewise.
5375         * gnulib/import/mbsrtowcs-state.c: Likewise.
5376         * gnulib/import/mbsrtowcs.c: Likewise.
5377         * gnulib/import/ref-add.sin: Likewise.
5378         * gnulib/import/ref-del.sin: Likewise.
5379         * gnulib/import/stdbool.in.h: Likewise.
5380         * gnulib/import/streq.h: Likewise.
5381         * gnulib/import/strnlen1.c: Likewise.
5382         * gnulib/import/strnlen1.h: Likewise.
5383         * gnulib/import/verify.h: Likewise.
5384         * gnulib/import/wchar.in.h: Likewise.
5385         * gnulib/import/wctype.in.h: Likewise.
5386
5387 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5388
5389         Support shell wildcards for 'set auto-load safe-path'.
5390         * auto-load.c: Include fnmatch.h.
5391         (filename_is_in_dir): Rename to ...
5392         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5393         it.  Update function comment.  Rename dir_len to pattern_len.  New
5394         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
5395         messages.  Use gdb_filename_fnmatch.
5396         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5397         pattern.
5398         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5399         * defs.h (gdb_filename_fnmatch): New declaration.
5400         * utils.c: Include fnmatch.h.
5401         (gdb_filename_fnmatch): New function.
5402
5403 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5404
5405         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5406         `-probe' and `-probe-stap' options.
5407
5408 2012-07-01  Yao Qi  <yao@codesourcery.com>
5409
5410         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5411         always_inserted_off, and always_inserted_enums.
5412         Change always_inserted_mode's type to 'enum auto_boolean'.
5413         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5414         callers.
5415         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5416         of add_setshow_enum_cmd.
5417         * infrun.c: Remove can_use_displaced_stepping_auto,
5418         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5419         can_use_displaced_stepping_enum.
5420         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5421         (show_can_use_displaced_stepping, use_displaced_stepping): Update
5422         callers.
5423         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5424         add_setshow_enum_cmd.
5425
5426 2012-06-30  Doug Evans  <dje@google.com>
5427
5428         * dwarf2read.c (signatured_type): Make "per_cu" member first.
5429         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5430         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
5431
5432 2012-06-29  Doug Evans  <dje@google.com>
5433
5434         * linespec.c: #include "stack.h".
5435         (decode_line_with_current_source): Moved here from symtab.c and
5436         renamed from decode_line_spec.  All callers updated.
5437         (decode_line_with_last_displayed): Moved here from breakpoint.c and
5438         renamed from decode_line_spec_1.  All callers updated.
5439         * linespec.h (decode_line_with_current_source): Move declaration here
5440         from symtab.h and renamed from decode_line_spec.
5441         (decode_line_with_last_displayed): Move declaration here from symtab.h
5442         and renamed from decode_line_spec_1.
5443         * macrocmd.c: #include "linespec.h".
5444         * symtab.c: Remove #include "linespec.h".
5445
5446 2012-06-28  Doug Evans  <dje@google.com>
5447
5448         * dwarf2read.c (get_cu_length): New function.
5449         (offset_in_cu_p, error_check_comp_unit_head): Call it.
5450         (create_debug_types_hash_table): Ditto.
5451         (init_cutu_and_read_dies): Ditto.
5452         (init_cutu_and_read_dies_no_follow): Ditto.
5453
5454         * dwarf2read.c (dwarf2_find_base_address): Move definition.
5455
5456         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5457         (struct abbrev_table): Define.
5458         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5459         abbrev_table.
5460         (init_cutu_and_read_dies): Update.
5461         (abbrev_table_alloc_abbrev): New function.  Replaces
5462         dwarf_alloc_abbrev.  All callers updated.
5463         (abbrev_table_add_abbrev): New function.
5464         (abbrev_table_lookup_abbrev): New function.  Replaces
5465         dwarf2_lookup_abbrev.  All callers updated.
5466         (abbrev_table_read_table): New function.  Contents moved here from
5467         dwarf2_read_abbrevs.
5468         (dwarf2_read_abbrevs): Call it.
5469         (abbrev_table_free): New function.
5470         (dwarf2_free_abbrev_table): Call it.
5471
5472 2012-06-28  Stan Shebs  <stan@codesourcery.com>
5473
5474         * osdata.c (info_osdata_command): Filter out "Title" columns
5475         from non-MI uses.
5476         * common/linux-osdata.c (struct osdata_type): Add title field.
5477         (osdata_table): Add titles to each entry.
5478         (linux_command_xfer_osdata): Add a column for title data.
5479
5480 2012-06-28  Stan Shebs  <stan@codesourcery.com>
5481
5482         Make logging work for MI.
5483         * NEWS: Mention it.
5484         * interps.h (interp_set_logging_ftype): New typedef.
5485         (struct interp_procs): New field set_logging_proc.
5486         (current_interp_set_logging): Declare.
5487         * interps.c (current_interp_set_logging): New function.
5488         * cli/cli-logging.c: Include interps.h.
5489         (set_logging_redirect): Call current_interp_set_logging.
5490         (pop_output_files): Ditto.
5491         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5492         * mi/mi-console.h (mi_console_set_raw): Declare.
5493         * mi/mi-console.c (mi_console_set_raw): New function.
5494         * mi/mi-interp.c (saved_raw_stdout): New global.
5495         (mi_set_logging): New function.
5496         (_initialize_mi_interp): Add it to interp procs.
5497
5498 2012-06-28  Doug Evans  <dje@google.com>
5499
5500         * symtab.c (lookup_symbol_aux_objfile): Use
5501         ALL_OBJFILE_PRIMARY_SYMTABS.
5502
5503         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5504
5505 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5506
5507         * common/buffer.c: Include inttypes.h and stdint.h.
5508         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5509
5510 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5511             Pedro Alves  <palves@redhat.com>
5512
5513         * gdbthread.h (ALL_THREADS): New macro.
5514         (thread_list): Declare.
5515         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5516         going, but instead fall through to the stepping handling.
5517         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
5518         the passed in signal.  Adjust debug output.
5519         (resume_callback): Rename to ...
5520         (linux_nat_resume_callback): ... this.  Pass the thread's last
5521         stop signal, if in "pass" state.
5522         (linux_nat_resume): Adjust to rename.
5523         (stop_wait_callback): New assertion.  Don't respawn signals;
5524         instead let the LWP remain with SIGNALLED set.
5525         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5526         * remote.c (append_pending_thread_resumptions): New.
5527         (remote_vcont_resume): Call it.
5528         * target.h (target_resume): Extend comment.
5529
5530 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
5531
5532         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5533
5534 2012-06-27  Doug Evans  <dje@google.com>
5535
5536         * dwarf2read.c (dwarf2_cu): Add ranges_base.
5537         Delete have_addr_base, unused.  All uses updated.
5538         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5539         (dwarf2_get_pc_bounds): Add ranges_base.
5540         (dwarf2_record_block_ranges): Ditto.
5541
5542 2012-06-27  Tom Tromey  <tromey@redhat.com>
5543
5544         PR macros/7961:
5545         * varobj.c (varobj_create): Update.
5546         (varobj_set_value): Update.
5547         * tracepoint.c (validate_actionline): Update.
5548         (encode_actions_1): Update.
5549         * parse.c (parse_exp_1): Add 'pc' argument.
5550         (parse_exp_in_context): Add 'pc' argument.  Change how
5551         expression_context_pc is set.
5552         (parse_expression): Update.
5553         (parse_field_expression): Update.
5554         * expression.h (parse_exp_1): Update.
5555         * eval.c (parse_to_comma_and_eval): Update.
5556         * breakpoint.c (set_breakpoint_condition): Update.
5557         (update_watchpoint): Update.
5558         (init_breakpoint_sal): Update
5559         (find_condition_and_thread): Update.
5560         (watch_command_1): Update.
5561         (update_breakpoint_locations): Update.
5562         * ada-lang.c (ada_read_renaming_var_value): Update.
5563         (create_excep_cond_exprs): Update.
5564
5565 2012-06-27  Doug Evans  <dje@google.com>
5566
5567         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5568         type units.
5569
5570 2012-06-26  Doug Evans  <dje@google.com>
5571
5572         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5573         prototype.
5574         (error_check_comp_unit_head): New arg abbrev_section.  All callers
5575         updated.
5576         (read_and_check_comp_unit_head): Ditto.
5577         (read_and_check_type_unit_head): Ditto.
5578
5579 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
5580
5581         New attribute 'last' for gdb.Symtab_and_line.
5582         * NEWS (Python Scripting): Add entry about the new attribute.
5583         * python/py-symtab.c (salpy_get_last): New function which
5584         implements the get method for the 'last' attribute of
5585         gdb.Symtab_and_line.
5586         (sal_object_getset): Add entry for the 'last' attribute.
5587
5588 2012-06-26  Doug Evans  <dje@google.com>
5589
5590         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5591         (dwo_sections): Add macinfo, macro.
5592         (dwarf2_locate_dwo_sections): Watch for macro sections.
5593         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5594         All callers updated.  Handle DWO files.
5595
5596         * NEWS: Mention new options "set debug dwarf2-read" and
5597         "set debug symtab-create".
5598         * dwarf2read.c (dwarf2_read_debug): New static global.
5599         (dwarf2_build_psymtabs_hard): Add debugging printfs.
5600         (process_queue): Ditto.
5601         (process_full_comp_unit): Ditto.
5602         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5603         * elfread.c (elf_symfile_read): Add debugging printf.
5604         * minsyms.c (install_minimal_symbols): Ditto.
5605         * psymtab.c (allocate_psymtab): Ditto.
5606         * symfile.c (allocate_symtab): Ditto.
5607         * symtab.c (symtab_create_debug): New global.
5608         (_initialize_symtab): Add new option "set debug symtab-create".
5609         * symtab.h (symtab_create_debug): Declare.
5610
5611         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5612         (lookup_dwo_type_unit): Ditto.
5613
5614 2012-06-26  Roland McGrath  <roland@hack.frob.com>
5615             H.J. Lu  <hongjiu.lu@intel.com>
5616
5617         * amd64-linux-nat.c: Include <sys/user.h>.
5618         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5619         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5620         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5621
5622         * configure.ac: Check if the fs_base and gs_base members of
5623         `struct user_regs_struct' exist.
5624         * config.in: Regenerated.
5625         * configure: Likewise.
5626
5627 2012-06-25  Michael Eager  <eager@eagercon.com>
5628
5629         PR python/14291
5630         * python/python.c (gdbpy_write): Check for interrupted output.
5631
5632 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
5633
5634         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5635         register as a stack alignment in ARM mode.
5636
5637 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5638
5639         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5640         * gnulib/config.in: Regenerate.
5641         * gnulib/configure: Likewise.
5642         * gnulib/import/m4/extensions.m4: Update it.
5643         * gnulib/import/m4/gnulib-common.m4: Likewise.
5644         * gnulib/import/m4/memmem.m4: Likewise.
5645         * gnulib/import/m4/mmap-anon.m4: Likewise.
5646         * gnulib/import/m4/multiarch.m4: Likewise.
5647         * gnulib/import/stdint.in.h: Likewise.
5648
5649 2012-06-24  Yao Qi  <yao@codesourcery.com>
5650
5651         * corefile.c (write_memory_with_notification): New.
5652         * gdbcore.h: Declare write_memory_with_notification.
5653         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5654         'observer_notify_memory_changed' with 'write_memory_with_notification'.
5655         * valops.c (value_assign): Likewise.
5656         * python/py-inferior.c (infpy_write_memory): Call
5657         'write_memory_with_notification'.
5658
5659 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5660
5661         * cc-with-index.sh: Use also -ex "set auto-load no".
5662
5663 2012-06-23  Doug Evans  <dje@google.com>
5664
5665         PR 14125
5666         * NEWS: Document additions to .gdb_index.
5667         * dwarf2read.c: #include "gdb/gdb-index.h".
5668         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5669         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5670         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5671         (dwarf2_read_index): Recognize version 7.
5672         (dw2_do_expand_symtabs_matching): New args want_specific_block,
5673         block_kind, domain): All callers updated.
5674         (dw2_find_symbol_file): Handle new index CU values.
5675         (dw2_expand_symtabs_matching): Match symbol kind if requested.
5676         (add_index_entry): New args is_static, kind.  All callers updated.
5677         (offset_type_compare, uniquify_cu_indices): New functions
5678         (symbol_kind): New function.
5679         (write_psymtabs_to_index): Remove duplicate CU values.
5680         (write_psymtabs_to_index): Write .gdb_index version 7.
5681
5682 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
5683
5684         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5685         * configure: Regenerate.
5686
5687 2012-06-20  Yao Qi  <yao@codesourcery.com>
5688
5689         * python/py-inferior.c: Update comments of infpy_read_memory
5690         and infpy_write_memory.
5691
5692 2012-06-19  Tom Tromey  <tromey@redhat.com>
5693
5694         PR exp/9514:
5695         * parser-defs.h (insert_type, insert_type_address_space): Declare.
5696         (push_type_address_space): Remove.
5697         * parse.c (insert_into_type_stack): New function.
5698         (insert_type): Likewise.
5699         (insert_type_address_space): Rename from push_type_address_space.
5700         Insert tp_space_identifier.
5701         * c-exp.y (ptr_operator): New production.
5702         (abs_decl): Use ptr_operator.
5703         (space_identifier): Call insert_type_address_space.
5704         (ptype): Don't use const_or_volatile_or_space_identifier.
5705         (const_or_volatile_noopt): Call insert_type.
5706         (conversion_type_id, conversion_declarator): New productions.
5707         (operator): Use conversion_type_id.
5708
5709 2012-06-18  Doug Evans  <dje@google.com>
5710
5711         * symtab.h (minimal_symbol): New member created_by_gdb.
5712         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5713         created by gdb.
5714         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5715         (search_symbols): Call it instead of lookup_symbol.
5716         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
5717
5718         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5719         Adjust address for DW_OP_GNU_addr_index.
5720         * dwarf2expr.h (dwarf_expr_context): Update comment.
5721         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5722         all callers updated.  Handle TLS vars described with
5723         DW_OP_GNU_const_index.
5724         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5725         and DW_OP_GNU_const_index.
5726         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5727
5728         * block.c (find_block_in_blockvector): Make explicit the fact that we
5729         ignore GLOBAL_BLOCK.
5730
5731 2012-06-18  Tom Tromey  <tromey@redhat.com>
5732
5733         * c-exp.y (operator): Remove trailing space after "delete" and
5734         "delete[]".
5735
5736 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
5737             Jan Kratochvil  <jan.kratochvil@redhat.com>
5738
5739         Switch i386 and derived targets to ON_STACK.
5740         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5741         (amd64_dicos_init_abi): Remove its installment.
5742         * dicos-tdep.c (dicos_init_abi): Remove the
5743         set_gdbarch_call_dummy_location call.  Update the comment here.
5744         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5745         (i386_dicos_init_abi): Remove its installment.
5746         * i386-tdep.c (i386_push_dummy_code): New function.
5747         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5748         i386_push_dummy_code.
5749
5750 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5751
5752         Remove stale dummy frames.
5753         * breakpoint.c: Include dummy-frame.h.
5754         (longjmp_breakpoint_ops): New variable.
5755         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5756         bp_longjmp_call_dummy.
5757         (bpstat_what, bptype_string, print_one_breakpoint_location)
5758         (init_bp_location): Support bp_longjmp_call_dummy.
5759         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
5760         (set_longjmp_breakpoint_for_call_dummy)
5761         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5762         functions.
5763         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5764         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
5765         FIXME comment and extend the other comment for bp_call_dummy.
5766         (set_longjmp_breakpoint_for_call_dummy)
5767         (check_longjmp_breakpoint_for_call_dummy): New declarations.
5768         * dummy-frame.c: Include gdbthread.h.
5769         (pop_dummy_frame_bpt): New function.
5770         (pop_dummy_frame): Call pop_dummy_frame_bpt.
5771         (dummy_frame_discard): New function.
5772         (cleanup_dummy_frames): Update the comment about longjmps.
5773         * dummy-frame.h (dummy_frame_discard): New declaration.
5774         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5775         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
5776         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
5777         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5778         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
5779         keep_going if IS_LONGJMP and there is no other reason to stop.
5780
5781 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
5782
5783         * remote-sim.c (sim_command_completer): Initialize
5784         variable 'result'.
5785
5786 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5787
5788         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5789         * dwarf2loc.c (call_site_parameter_matches): Support
5790         CALL_SITE_PARAMETER_PARAM_OFFSET.
5791         (needs_dwarf_reg_entry_value): Push stub value.
5792         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
5793         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5794         * gdbtypes.h (enum call_site_parameter_kind): New item
5795         CALL_SITE_PARAMETER_PARAM_OFFSET.
5796         (struct call_site.parameter.u): New field param_offset.
5797
5798 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5799
5800         Code cleanup: Generalize call_site.parameter key.
5801         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5802         variable dwarf_reg.  New variable kind_u.  Update parameters to
5803         push_dwarf_reg_entry_value.
5804         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5805         * dwarf2expr.h (enum call_site_parameter_kind)
5806         (union call_site_parameter_u): Forward declarations.
5807         (struct dwarf_expr_context_funcs): Update parameters and their
5808         description for push_dwarf_reg_entry_value.
5809         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5810         * dwarf2loc.c (call_site_parameter_matches): New function.
5811         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5812         description.  Use call_site_parameter_matches.
5813         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5814         Update parameters and their description.
5815         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5816         New variable kind_u.  Adjust the caller for updated parameters.
5817         (needs_dwarf_reg_entry_value): Update parameters.
5818         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
5819         instead of attr.  Update for the changed fields of struct
5820         call_site_parameter.
5821         * gdbtypes.h: Include dwarf2expr.h.
5822         (enum call_site_parameter_kind): New.
5823         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
5824         fb_offset into new union u.
5825
5826 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
5827
5828         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5829         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5830         for x32.
5831
5832 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
5833
5834         * amd64-linux-nat.c (compat_x32_clock_t): New.
5835         (compat_x32_siginfo_t): Likewise.
5836         (compat_x32_siginfo_from_siginfo): Likewise.
5837         (siginfo_from_compat_x32_siginfo): Likewise.
5838         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5839         and siginfo_from_compat_x32_siginfo for x32.
5840
5841 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
5842
5843         * tracepoint.c (tfile_xfer_partial): Add a lseek.
5844
5845 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5846
5847         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5848         instead of gdbarch_ptr_bit.
5849         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5850         (amd64_supply_native_gregset): Likewise.
5851         (amd64_collect_native_gregset): Likewise.
5852         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5853         (amd64_supply_xsave): Likewise.
5854         (amd64_collect_fxsave): Likewise.
5855         (amd64_collect_xsave): Likewise.
5856
5857 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5858
5859         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5860         (amd64_linux_read_description): Check DS segment register for
5861         x32 process.
5862
5863 2012-06-15  Tom Tromey  <tromey@redhat.com>
5864
5865         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5866         init_cutu_and_read_dies.
5867
5868 2012-06-15  Iain Sandoe <iain@codesourcery.com>
5869
5870         * MAINTAINERS (Write After Approval): Add myself to the list.
5871
5872 2012-06-15  Tom Tromey  <tromey@redhat.com>
5873
5874         * valops.c (value_find_oload_method_list): Now static.
5875         * value.h (value_find_oload_method_list): Don't declare.
5876
5877 2012-06-15  Tom Tromey  <tromey@redhat.com>
5878
5879         * valops.c (find_overload_match): Use value_ind.
5880
5881 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
5882
5883         * infrun.c (handle_inferior_event): Correct indentation.
5884
5885 2012-06-14  Doug Evans  <dje@google.com>
5886
5887         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5888         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5889         All uses updated.
5890         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
5891         updated.  Handle DEBUG_LOC_START_LENGTH.
5892         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5893         (loclist_describe_location): Ditto.
5894
5895 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
5896
5897         PR backtrace/13866
5898         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5899         after hiding inline functions.
5900
5901 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
5902
5903         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5904         _initialize_inf_ttrace.
5905
5906 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
5907
5908         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5909         _initialize_hppa_hpux_nat.
5910
5911 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
5912
5913         * remote-sim.c (sim_command_completer): Change type of return
5914         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
5915
5916 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
5917             Jan Kratochvil  <jan.kratochvil@redhat.com>
5918
5919         PR tdep/14222
5920         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5921         stack on a 16-byte boundary.
5922
5923 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
5924
5925         * jit.c (finalize_symtab): Set function's return type to 'void' by
5926         default.
5927
5928 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
5929             H.J. Lu  <hongjiu.lu@intel.com>
5930
5931         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5932         Move bits common to both the classic LP64 and the new x32 ILP32
5933         ABI here.
5934         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5935         (amd64_x32_linux_init_abi): New function.
5936         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5937         subtype.
5938
5939         * i386-tdep.h (i386_pseudo_register_name): New prototype.
5940         * i386-tdep.c (i386_pseudo_register_name): Make public.
5941         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5942         * amd64-tdep.c (amd64_dword_names): Add "eip".
5943         (amd64_x32_pseudo_register_type): New function
5944         (amd64_x32_init_abi): New function.
5945
5946 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5947
5948         PR build/14003
5949         * inferior.h (struct inferior_suspend_state): Comment out.
5950         (struct inferior): Comment out the field suspend.
5951         * infrun.c (struct infcall_suspend_state): Comment out the field
5952         inferior_suspend.
5953         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5954         out its assignment.
5955
5956 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5957
5958         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5959         * c-exp.y (classify_inner_name): Remove caller assumptions in the
5960         function comment.  Return ERROR for unresolved cases.  Implement
5961         returning proper NAME.
5962         (yylex): Accept also NAME from classify_inner_name.
5963         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5964         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
5965         LOC_TYPEDEF type.
5966         * cp-support.h (cp_lookup_nested_type): Update its declaration.
5967
5968 2012-06-13  Tom Tromey  <tromey@redhat.com>
5969
5970         * breakpoint.c (condition_completer): New function.
5971         (_initialize_breakpoint): Use it.
5972         * value.c (complete_internalvar): New function.
5973         * value.h (complete_internalvar): Declare.
5974
5975 2012-06-13  Tom Tromey  <tromey@redhat.com>
5976
5977         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5978         * breakpoint.c (catch_syscall_completer): Return a VEC.
5979         * cli/cli-cmds.c (complete_command): Update.
5980         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5981         (complete_on_enum): Likewise.
5982         * command.h: Include gdb_vecs.h.
5983         (completer_ftype): Change return type.
5984         (complete_on_cmdlist, complete_on_enum): Likewise.
5985         * completer.c (noop_completer, filename_completer)
5986         (location_completer): Return a VEC.
5987         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
5988         to a VEC.
5989         (expression_completer, complete_line_internal, complete_line)
5990         (command_completer): Return a VEC.
5991         (gdb_completion_word_break_characters, line_completion_function):
5992         Update.
5993         * completer.h: Include gdb_vecs.h.
5994         (complete_line, noop_completer, filename_completer)
5995         (expression_completer, location_completer, command_completer):
5996         Update.
5997         * f-lang.c (f_word_break_characters): Return a VEC.
5998         * interps.c (interpreter_completer): Return a VEC.
5999         * language.h (struct language_defn)
6000         <la_make_symbol_completion_list>: Return a VEC.
6001         * python/py-cmd.c (cmdpy_completer): Return a VEC.
6002         * symtab.c (free_completion_list): Take a VEC.
6003         (return_val_size, return_val_index): Remove.
6004         (return_val): Now a VEC.
6005         (completion_list_add_name): Update.
6006         (default_make_symbol_completion_list_break_on)
6007         (default_make_symbol_completion_list, make_symbol_completion_list)
6008         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
6009         Return a VEC.
6010         (add_filename_to_list): Update.
6011         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
6012         <list>: Now a VEC.
6013         (maybe_add_partial_symtab_filename): Update.
6014         (make_source_files_completion_list): Return a VEC.
6015         * symtab.h (default_make_symbol_completion_list_break_on)
6016         (default_make_symbol_completion_list, make_symbol_completion_list)
6017         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
6018         (make_source_files_completion_list): Update.
6019
6020 2012-06-13  Tom Tromey  <tromey@redhat.com>
6021
6022         * breakpoint.c (add_catch_command): Use completer_ftype.
6023         * breakpoint.h: Include command.h.
6024         (add_catch_command): Use completer_ftype.
6025         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
6026         * cli/cli-decode.h (struct cmd_list_element) <completer>:
6027         Use completer_ftype.
6028         * command.h (completer_ftype): New typedef.
6029         (set_cmd_completer): Use it.
6030         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
6031         completer_ftype.
6032
6033 2012-06-13  Pedro Alves  <palves@redhat.com>
6034
6035         Partial revert of previous change.
6036
6037         * serial.c (scb_base): New global.
6038         (serial_for_fd): New.
6039         (serial_open, serial_fdopen_ops): Link new serial in open serials
6040         chain.
6041         (do_serial_close): Unlink serial from the open serials chain.
6042
6043 2012-06-12  Pedro Alves  <palves@redhat.com>
6044
6045         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
6046         threads here.
6047         (prepare_for_detach): No longer context switch here in non-stop
6048         mode.
6049         (fetch_inferior_event): Ditto.
6050         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
6051         to the event thread before removing breakpoints.  Switch to the
6052         event thread before inserting breakpoints and resuming.
6053         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
6054         event thread before resuming.
6055         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
6056         Switch to the event thread before removing breakpoints.
6057
6058 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
6059
6060         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
6061         special characters correctly for the Windows shells.  See
6062         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
6063         report.
6064         [!__MINGW32__]: Remove extra double quote character from special
6065         characters.
6066
6067 2012-06-11  Stan Shebs  <stan@codesourcery.com>
6068
6069         * ui-out.h: Remove #if 0 declarations.
6070         * ui-out.c: Remove #if 0 functions.
6071
6072 2012-06-11  Pedro Alves  <palves@redhat.com>
6073
6074         * ser-base.c (run_async_handler_and_reschedule): New.
6075         (fd_event, push_event): Use it.
6076         * serial.c (serial_open, serial_fdopen_ops): Set the initial
6077         reference count to 1.
6078         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
6079         instead of xfree.
6080         (serial_is_open, serial_ref, serial_unref): New.
6081         * serial.h (serial_open): Adjust comment.
6082         (serial_is_open): Declare.
6083         (serial_close): Adjust comment.
6084         (serial_ref, serial_unref) Declare.
6085         (struct serial): New field 'refcnt'.
6086
6087 2012-06-11  Pedro Alves  <palves@redhat.com>
6088
6089         Remove #if 0'd "connect" command, and unnecessary associated
6090         refcounting and serial reuse bits.
6091
6092         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
6093         * serial.c (last_serial_opened): Delete.
6094         (scb_base): Delete.
6095         (serial_open): Adjust.
6096         (serial_for_fd): Delete.
6097         (serial_fdopen_ops, do_serial_close): Adjust.
6098         (serial_fdopen_ops): Adjust.
6099
6100 2012-06-11  Pedro Alves  <palves@redhat.com>
6101
6102         * serial.c (do_serial_close): Remove early return when SCB is
6103         null.
6104
6105 2012-06-11  Tom Tromey  <tromey@redhat.com>
6106
6107         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
6108
6109 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6110
6111         Fix regression by the "ambiguous linespec" series.
6112         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
6113         get_last_displayed_symtab and get_last_displayed_line and depending
6114         on CURSAL.
6115
6116 2012-06-11  Tom Tromey  <tromey@redhat.com>
6117
6118         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
6119         (dw2_find_symbol_file): Use it.
6120
6121 2012-06-11  Michael Eager  <eager@eagercon.com>
6122
6123         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
6124         * mips-linux-tdep.h (mips_signals): New
6125
6126 2012-06-11  Tom Tromey  <tromey@redhat.com>
6127
6128         * infrun.c (handle_inferior_event)
6129         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
6130         breakpoint.
6131         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
6132         exception logic in all cases.  Update comments.
6133         (insert_longjmp_resume_breakpoint): Set the exception resume
6134         breakpoint.
6135
6136 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
6137
6138         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6139
6140 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
6141
6142         * valarith.c (binop_types_user_defined_p): Fix a typo.
6143
6144 2012-06-08  Yao Qi  <yao@codesourcery.com>
6145             Chung-Lin Tang <cltang@codesourcery.com>
6146
6147         * arch-utils.c (default_return_in_first_hidden_param_p): New.
6148         * arch-utils.h: Declare.
6149         * gdbarch.sh: Add return_in_first_hidden_param_p.
6150         * gdbarch.c, gdbarch.h: Regenerated.
6151         * infcall.c (call_function_by_hand): Call
6152         gdbarch_return_in_first_hidden_param_p instead of
6153         language_pass_by_reference.
6154
6155         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6156         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6157         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6158         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6159         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6160         `cplus_return_struct_by_reference'.
6161         (tic6x_return_value): Handle language cplusplus.
6162         (tic6x_return_in_first_hidden_param_p): New.
6163         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6164
6165 2012-06-07  Doug Evans  <dje@google.com>
6166
6167         * dwarf2read.c (dwarf2_cu): Add comment.
6168
6169 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
6170
6171         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6172         variable.
6173         (mips_eabi_push_dummy_call): Likewise.
6174         (mips_n32n64_push_dummy_call): Likewise.
6175         (mips_o32_push_dummy_call): Likewise.
6176         (mips_o64_push_dummy_call): Likewise.
6177
6178 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
6179
6180         * mips-tdep.c (mips_convert_register_p): Correct coding style.
6181
6182 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
6183
6184         * mips-tdep.c (mips_pseudo_register_type): Use
6185         mips_float_register_p.
6186
6187 2012-06-06  Pedro Alves  <palves@redhat.com>
6188
6189         * infrun.c (handle_inferior_event): Remove calls to
6190         reinit_frame_cache that follow a context_switch call.
6191
6192 2012-06-06  Pedro Alves  <palves@redhat.com>
6193
6194         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6195         context_switch and remove stale comment.
6196
6197 2012-06-06  Pedro Alves  <palves@redhat.com>
6198
6199         * infrun.c (struct execution_control_state): Remove
6200         `new_thread_event' field.
6201         (handle_inferior_event): Simplify new threads handling; don't
6202         resume the inferior if we find a new thread.
6203
6204 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
6205
6206         * NEWS: Document the deprecation of SH's 'regs' command.
6207         * inferior.h (all_registers_info): Add function declaration.
6208         * sh-tdep.c (sh_show_regs): Remove variable.
6209         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6210         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6211         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6212         (sh_show_regs_command): Remove functions.
6213         (sh_gdbarch_init): Don't set sh_show_regs.
6214         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6215         'info all-registers'.
6216         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6217         (sh64_show_regs): Remove functions.
6218         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6219
6220 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6221
6222         * configure.ac: Move development=true below AC_INIT.
6223         * configure: Regenerate.
6224
6225 2012-06-05  Stan Shebs  <stan@codesourcery.com>
6226
6227         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6228         gdb_stdout.
6229
6230 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6231
6232         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6233         argument as ssize_t.
6234         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6235         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6236         * target.c (target_read_stack, target_write_memory)
6237         (target_write_raw_memory): Likewise.
6238         * target.h (target_read_stack, target_write_memory)
6239         (target_write_raw_memory): Likewise.
6240
6241 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
6242
6243         * symfile-mem.c: Change gdb_static_assert to ssize_t.
6244         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6245         * target.c (target_read_memory): Change LEN to ssize_t.
6246         * target.h (target_read_memory): Change LEN to ssize_t.
6247
6248 2012-06-05  Pedro Alves  <palves@redhat.com>
6249
6250         PR backtrace/13866
6251
6252         * breakpoint.c (until_break_command): Only fetch the selected
6253         frame after decode_line_1.
6254
6255 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
6256
6257         * solib-svr4.c (enable_break): Don't fallback to setting the solib
6258         event breakpoint at _start, __start or main if a program
6259         interpreter is not found.
6260
6261 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6262
6263         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6264         Add declaration.
6265         * windows-tdep.c: #include "objfiles.h".
6266         (windows_iterate_over_objfiles_in_search_order): New function.
6267         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6268         iterate_over_objfiles_in_search_order gdbarch method to
6269         windows_iterate_over_objfiles_in_search_order.
6270         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6271
6272 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6273
6274         * gdbarch.sh: Add generation of
6275         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6276         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
6277         (iterate_over_objfiles_in_search_order): New gdbarch method.
6278         * gdbarch.h, gdbarch.c: Regenerate.
6279         * objfiles.h (default_iterate_over_objfiles_in_search_order):
6280         Add declaration.
6281         * objfiles.c (default_iterate_over_objfiles_in_search_order):
6282         New function.
6283         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6284         out of lookup_symbol_aux_symtabs.
6285         (lookup_symbol_aux_symtabs): Replace extracted-out code by
6286         call to lookup_symbol_aux_objfile.
6287         (struct global_sym_lookup_data): New type.
6288         (lookup_symbol_global_iterator_cb): New function.
6289         (lookup_symbol_global): Search for symbol using
6290         gdbarch_iterate_over_objfiles_in_search_order and
6291         lookup_symbol_global_iterator_cb.
6292         * findvar.c (struct minsym_lookup_data): New type.
6293         (minsym_lookup_iterator_cb): New function.
6294         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6295         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6296         and minsym_lookup_iterator_cb.
6297
6298 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6299
6300         Revert the following patch:
6301         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6302         try locating the symbol in the symbol's own objfile first, before
6303         extending the search to all objfiles.
6304         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6305         out of lookup_symbol_aux_symtabs.
6306         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6307         Replace extracted-out code by call to lookup_symbol_aux_objfile.
6308         Do not search EXCLUDE_OBJFILE.
6309         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6310         (lookup_symbol_global): Search for matches in the block's objfile
6311         first, before searching all other objfiles.
6312
6313 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6314
6315         * breakpoint.c (find_condition_and_thread): Stop parsing
6316         as soon as the first invalid keyword is found.
6317
6318 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6319
6320         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6321
6322 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6323
6324         * config/djgpp/djcheck.sh: Add copyright header.
6325
6326 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6327
6328         * copyright.py (update_files, main): Fix path to update-copyright
6329         script.
6330
6331 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
6332
6333         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6334         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6335         for which a reminder to update by hand is printed.
6336
6337 2012-06-04  Doug Evans  <dje@google.com>
6338
6339         * buildsym.c (make_blockvector): Add comment.
6340
6341 2012-06-04  Pedro Alves  <palves@redhat.com>
6342
6343         * arch-utils.c (default_gdb_signal_from_target): Delete.
6344         * arch-utils.h (default_gdb_signal_from_target): Delete.
6345         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
6346         gdbarch_gdb_signal_from_target_p.
6347         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6348         predicate).
6349         * gdbarch.h: Regenerate.
6350         * gdbarch.c: Regenerate.
6351
6352 2012-06-04  Pedro Alves  <palves@redhat.com>
6353
6354         * gdbarch.sh (gdb_signal_from_target): Mention that the
6355         implementation of the method must be host independent.
6356         * gdbarch.h: Regenerate.
6357
6358 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6359
6360         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6361         parameters.
6362         (target_read_memory_bfd): New function.
6363         (symbol_file_add_from_memory): Use it.
6364
6365 2012-06-03  Doug Evans  <dje@google.com>
6366
6367         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6368         of primary symtab.
6369         (basic_lookup_transparent_type): Ditto.
6370
6371         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6372         (ALL_PRIMARY_SYMTABS): Use it.
6373         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6374         * dwarf2read.c (dw2_find_symbol_file): Ditto.
6375         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6376         * symtab.c (lookup_symbol_aux_objfile): Ditto.
6377         (basic_lookup_transparent_type): Ditto.
6378
6379 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6380
6381         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
6382         it to optimize resolution of demangled name.
6383
6384 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6385
6386         * configure.ac (development): Define new variable.
6387         Call AC_CHECK_LIB for mcheck if $development.
6388         (ERROR_ON_WARNING): Enable it by default only if $development.
6389         * config.in: Regenerate.
6390         * configure: Regenerate.
6391
6392 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
6393
6394         * target.c (target_read_memory): Make LEN argument as size_t.
6395         * target.h (target_read_memory): Likewise.
6396
6397 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6398
6399         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6400
6401 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6402
6403         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6404         BookE interface for PowerPC server processors if not available
6405         in the Linux Kernel.
6406
6407 2012-05-31  Keith Seitz  <keiths@redhat.com>
6408
6409         * linespec.c (decode_objc): Add cleanup to free
6410         INFO.FILE_SYMTABS.
6411         (find_linespec_symbols): Add cleanup to free CLASSES.
6412         * symfile.c (find_separate_debug_file_by_debuglink): Add
6413         cleanup to free DEBUGLINK.
6414         * ui-out.c (clear_header_list): No need to check if
6415         HEADER_NEXT.COLHDR is NULL.
6416         Free HEADER_NEXT.COL_NAME.
6417
6418 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6419
6420         * ada-lang.c (standard_lookup): Prevent uninitialized variable
6421         warning.
6422
6423 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
6424
6425         * configure.host (gdb_host_cpu): Handle tilegx*.
6426         (gdb_host): Handle tilegx-*-linux*.
6427         * tilegx-linux-nat.c: New file.
6428         * config/tilegx/linux.mh: New file.
6429
6430 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
6431
6432         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6433         tilegx-linux-tdep.o.
6434         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6435         tilegx-linux-tdep.c.
6436         * configure.tgt: Handle tilegx-*-linux*.
6437         * tilegx-tdep.h: New file.
6438         * tilegx-tdep.c: New file.
6439         * tilegx-linux-tdep.c: New file.
6440         * regformats/reg-tilegx.dat: New file.
6441
6442 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6443
6444         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6445         accounting of hw watchpoints on ppc.
6446
6447 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
6448
6449         * source.c (openp): Expand tilde in path entries.
6450
6451 2012-05-29  Doug Evans  <dje@google.com>
6452
6453         * buildsym.c (block_compar): Fix comment.
6454         (end_symtab): Fix and clarify some comments.
6455
6456         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6457         cleanup_undefined_types.
6458         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6459         All callers updated.
6460
6461 2012-05-29  Tom Tromey  <tromey@redhat.com>
6462
6463         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6464         fails.
6465         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6466         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6467         fails.
6468         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6469         fails.
6470
6471 2012-05-29  Tristan Gingold  <gingold@adacore.com>
6472
6473         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6474         (struct darwin_info): ... New struct.
6475         (solib_darwin_pspace_data): New variable.
6476         (darwin_pspace_data_cleanup): New function.
6477         (get_darwin_info): Likewise.
6478         (darwin_dyld_version_ok, darwin_load_image_infos)
6479         (darwin_solib_get_all_image_info_addr_at_init)
6480         (darwin_solib_read_all_image_info_addr): Add info argument.
6481         Adjust code.
6482         (darwin_current_sos): Use per pspace structure.
6483         (darwin_solib_create_inferior_hook): Likewise.
6484         (darwin_clear_solib): Likewise.
6485         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6486
6487 2012-05-28  Pedro Alves  <palves@redhat.com>
6488
6489         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6490         block that uses them.  Clear ecss before handling each event.
6491
6492 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6493
6494         * solib-svr4.c (svr4_current_sos): New comment on
6495         svr4_current_sos_via_xfer_libraries fall back.
6496
6497 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6498
6499         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
6500         it as a fallback for TYPE_IS_OPAQUE.
6501         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6502         symbols for lookup_symbol.
6503
6504 2012-05-24  John Steele Scott  <toojays@toojays.net>
6505
6506         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6507         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6508         (producer_is_gxx_lt_4_6): Move the checking and caching to...
6509         (check_producer): ... this new function, which also checks for ICC
6510         and caches the result.
6511         (producer_is_icc): New function.
6512         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6513         producer was ICC.
6514
6515 2012-05-24  Pedro Alves  <palves@redhat.com>
6516
6517         PR gdb/7205
6518
6519         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6520         (default_gdb_signal_to_target): ... this.  Add comment.
6521         (default_gdb_signal_from_host): Rename to ...
6522         (default_gdb_signal_from_target): ... this.  Add comment.
6523         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6524         (default_gdb_signal_to_target): ... this.
6525         (default_gdb_signal_from_host): Rename to ...
6526         (default_gdb_signal_from_target): ... this.
6527         * corelow.c (core_open): Adjust to naming change.  Replace comment.
6528         * gdbarch.sh (gdb_signal_from_host): Rename to ...
6529         (gdb_signal_from_target): ... this.  Adjust to
6530         default_gdb_signal_from_host naming change.  Extend comment.
6531         (gdb_signal_to_host): Rename to ...
6532         (gdb_signal_to_target): ... this.  Adjust to
6533         default_gdb_signal_to_host naming change.
6534         * gdbarch.h, gdbarch.c: Renegerate.
6535
6536 2012-05-24  Pedro Alves  <palves@redhat.com>
6537
6538         PR gdb/7205
6539
6540         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6541
6542 2012-05-24  Pedro Alves  <palves@redhat.com>
6543
6544         PR gdb/7205
6545
6546         Replace target_signal with gdb_signal throughout.
6547
6548 2012-05-24  Pedro Alves  <palves@redhat.com>
6549
6550         PR tui/14159
6551
6552         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6553         string, instead of reusing the va_list argument.
6554
6555 2012-05-24  Tom Tromey  <tromey@redhat.com>
6556
6557         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6558         Remove.
6559
6560 2012-05-23  Doug Evans  <dje@google.com>
6561
6562         * symtab.c (search_symbols): Formatting fixes.
6563         (print_symbol_info): Formatting fixes.
6564
6565         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6566         int64_t change to leb128 API.
6567         (read_encoded_value, decode_frame_entry_1): Ditto.
6568         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6569         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6570         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6571         (execute_stack_op): Ditto.
6572         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6573         (safe_read_uleb128, safe_read_sleb128): Ditto.
6574         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6575         (dwarf2_compile_expr_to_ax): Ditto.
6576         (locexpr_describe_location_piece): Ditto.
6577         (disassemble_dwarf_expression): Ditto.
6578         (locexpr_describe_location_1): Ditto.
6579
6580 2012-05-23  Stan Shebs  <stan@codesourcery.com>
6581             Kwok Cheung Yeung  <kcy@codesourcery.com>
6582
6583         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6584         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6585         (mi-cmd-info.o): New rule.
6586         * osdata.h (info_osdata_command): New declaration.
6587         * osdata.c (info_osdata_command): Change to non-static.
6588         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6589         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6590         * mi/mi-cmd-info.c: New file.
6591
6592 2012-05-23  Doug Evans  <dje@google.com>
6593
6594         * symtab.c (search_symbols): Pass NULL for file_matcher to
6595         expand_symtabs_matching if there are no files to match.
6596
6597         * gdbtypes.c (lookup_typename): Simplify.
6598
6599 2012-05-23  Pedro Alves  <palves@redhat.com>
6600
6601         * arch-utils.h (default_target_signal_to_host): Delete.
6602         * arch-utils.c (default_target_signal_to_host): Delete.
6603         * gdbarch.sh (target_signal_to_host): Remove.
6604         * gdbarch.h, gdbarch.c: Regenerate.
6605
6606 2012-05-22  Doug Evans  <dje@google.com>
6607
6608         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6609         "const gdb_byte *".
6610         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6611         (execute_cfa_program): Update to match API of leb128 functions.
6612         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6613         "const gdb_byte *".
6614         (read_unsigned_leb128, read_signed_leb128): Delete.
6615         (read_initial_length): Change type of buf argument to
6616         "const gdb_byte *".
6617         (read_encoded_value): Update to match API of leb128 functions.
6618         (decode_frame_entry): Change result to "const gdb_byte *", and
6619         similarly for "start" parameter.
6620         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
6621         (dwarf2_build_frame_info): Change local frame_ptr to
6622         "const gdb_byte *".
6623         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6624         read_uleb128, read_sleb128.  All callers updated.
6625         (safe_skip_leb128): New function.
6626         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6627         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6628         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6629         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
6630         read_uleb128, read_sleb128.
6631         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6632         (execute_stack_op): Update to match API of leb128 functions.
6633         * dwarf2expr.h: #include "leb128.h".
6634         (read_uleb128, read_sleb128): Delete.
6635         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6636         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6637         * dwarf2loc.c (debug_loc_kind): New enum.
6638         (decode_debug_loc_addresses): New function.
6639         (decode_debug_loc_dwo_addresses): New function.
6640         (dwarf2_find_location_expression): Rewrite.
6641         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6642         (locexpr_describe_location_piece): Ditto.
6643         (disassemble_dwarf_expression): Ditto.
6644         (locexpr_describe_location_1): Ditto.
6645         (loclist_describe_location): Rewrite.
6646         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6647         * dwarf2read.c (die_reader_specs): New member "buffer_end".
6648         (dwarf2_section_buffer_overflow_complaint): Renamed from
6649         dwarf2_macros_too_long_complaint.  All callers updated.
6650         (skip_leb128): Delete.
6651         (init_cu_die_reader): Initialize reader->buffer_end.
6652         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6653         (skip_form_bytes): New arg buffer_end.  All callers updated.
6654         Replace call to skip_leb128 with gdb_skip_leb128.
6655         (skip_unknown_opcode): New arg mac_end.  All callers updated.
6656         (fill_in_loclist_baton): Initialize baton->from_dwo.
6657
6658 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
6659
6660         * mips-linux-nat.c (mips_linux_read_description): Use a more
6661         verbose error message.
6662
6663 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
6664
6665         * NEWS: Add MIPS/Linux DSP support.
6666         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6667         (SIGCONTEXT_DSPCTL): New macro.
6668         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6669         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6670         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6671         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6672         (N64_SIGCONTEXT_HI3): Likewise.
6673         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6674         (N64_SIGCONTEXT_LO3): Likewise.
6675         (N64_SIGCONTEXT_DSPCTL): Likewise.
6676         (N64_SIGCONTEXT_FPCSR): Clarify definition.
6677         (mips_linux_o32_sigframe_init): Handle DSP registers.
6678         (mips_linux_n32n64_sigframe_init): Likewise.
6679
6680 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6681
6682         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6683         call to abort.
6684
6685 2012-05-22  Pedro Alves  <palves@redhat.com>
6686
6687         * target.h (store_waitstatus): Move declaration ...
6688         * inf-child.h (store_waitstatus): ... here.
6689         * target.c: Move inclusion of gdb_wait.h, and ...
6690         (store_waitstatus): ... this ...
6691         * inf-child.c: ... here.
6692         * linux-nat.c: Include inf-child.h.
6693         * rs6000-nat.c: Include inf-child.h.
6694         * spu-linux-nat.c: Include inf-child.h.
6695
6696 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6697
6698         * tracepoint.c (start_tracing): Add missing i18n markup.
6699         (stop_tracing, set_trace_user): Ditto.
6700         (set_trace_notes, set_trace_stop_notes): Ditto.
6701
6702 2012-05-21  Tom Tromey  <tromey@redhat.com>
6703
6704         PR c++/7173:
6705         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6706         types.
6707         * value.h (value_cast_pointers): Update.
6708         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6709         (value_cast): Update.
6710         (update_search_result): New function.
6711         (do_search_struct_field): New, from search_struct_field.  Check
6712         for ambiguous results.
6713         (search_struct_field): Rewrite.
6714         * infcall.c (value_arg_coerce): Update.
6715         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6716         value_cast_pointers.
6717         * ada-lang.c (ada_convert_actual): Update.
6718
6719 2012-05-21  Tom Tromey  <tromey@redhat.com>
6720
6721         * macroexp.c (macro_stringify): Terminate the string.
6722
6723 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6724
6725         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6726         Describe it.
6727         * auto-load.c (auto_load_expand_dir_vars): New function.
6728         (auto_load_safe_path_vec_update): Use it, remove the
6729         substitute_path_component call thanks to it.
6730         (auto_load_objfile_script): Remove the debug_file_directory processing.
6731         Use auto_load_expand_dir_vars, remove the substitute_path_component
6732         call thanks to it.
6733         * configure: Regenerate.
6734         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6735         path.  Escape $ also for $debugdir.
6736         (--with_auto_load_safe_path): Escape $ also for $debugdir.
6737         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6738
6739 2012-05-20  Doug Evans  <dje@google.com>
6740
6741         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6742         before use.  Check for symtab->includes == NULL before scanning it.
6743
6744 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6745
6746         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6747
6748 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6749
6750         * NEWS: Add microMIPS support and "set mips compression",
6751         "show mips compression" commands.
6752         * mips-tdep.h (mips_isa): New enum.
6753         (gdbarch_tdep): Add mips_isa.
6754         (mips_pc_is_mips16): Update prototype.
6755         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6756         * mips-tdep.c (mips_compression_mips16): New variable.
6757         (mips_compression_micromips): Likewise.
6758         (mips_compression_strings): Likewise.
6759         (mips_compression_string): Likewise.
6760         (is_mips16_isa, is_micromips_isa): New functions.
6761         (is_mips16_addr): Rename to...
6762         (is_compact_addr): ... this.
6763         (unmake_mips16_addr): Likewise to...
6764         (unmake_compact_addr): ... this.
6765         (make_mips16_addr): Likewise to...
6766         (make_compact_addr): ... this.
6767         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6768         functions.
6769         (mips_elf_make_msymbol_special): Handle microMIPS code.
6770         (msymbol_is_special): Rename to...
6771         (msymbol_is_mips16): ... this.
6772         (mips_make_symbol_special, mips_pc_is_mips16): Update
6773         accordingly.
6774         (msymbol_is_mips, msymbol_is_micromips): New functions.
6775         (mips16_to_32_reg): Rename to...
6776         (mips_reg3_to_reg): ... this.
6777         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6778         (mips_pc_isa): Likewise.
6779         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6780         code.
6781         (mips_fetch_instruction): Pass return status instead of printing
6782         an error message if requested.  Handle microMIPS code.  Bail out
6783         on an invalid ISA.
6784         (micromips_op): New macro.
6785         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6786         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6787         (b6s4_op, b7s3_reg): Likewise.
6788         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6789         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6790         (mips_insn_size): New function.
6791         (mips32_next_pc): Update mips_fetch_instruction call.
6792         (micromips_relative_offset7): New function.
6793         (micromips_relative_offset10): Likewise.
6794         (micromips_relative_offset16): Likewise.
6795         (micromips_pc_insn_size): Likewise.
6796         (micromips_bc1_pc): Likewise.
6797         (micromips_next_pc): Likewise.
6798         (unpack_mips16): Update mips_fetch_instruction call.
6799         (extended_mips16_next_pc): Update according to change to
6800         mips16_to_32_reg.
6801         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
6802         code.
6803         (mips16_scan_prologue): Update mips_fetch_instruction call.
6804         Update according to change to mips16_to_32_reg.
6805         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6806         (mips_insn16_frame_base_sniffer): Likewise.
6807         (micromips_decode_imm9): New function.
6808         (micromips_scan_prologue): Likewise.
6809         (mips_micro_frame_cache): Likewise.
6810         (mips_micro_frame_this_id): Likewise.
6811         (mips_micro_frame_prev_register): Likewise.
6812         (mips_micro_frame_sniffer): Likewise.
6813         (mips_micro_frame_unwind): New variable.
6814         (mips_micro_frame_base_address): New function.
6815         (mips_micro_frame_base): New variable.
6816         (mips_micro_frame_base_sniffer): New function.
6817         (mips32_scan_prologue): Update mips_fetch_instruction call.
6818         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6819         rather than for MIPS16.
6820         (mips_insn32_frame_base_sniffer): Likewise.
6821         (mips_addr_bits_remove): Handle microMIPS code.
6822         (deal_with_atomic_sequence): Rename to...
6823         (mips_deal_with_atomic_sequence): ... this.  Update the type
6824         of the variable used to hold an instruction.  Remove the ISA bit
6825         check.  Update mips_fetch_instruction call.
6826         (micromips_deal_with_atomic_sequence): New function.
6827         (deal_with_atomic_sequence): Likewise.
6828         (mips_about_to_return): Handle microMIPS code.  Update
6829         mips_fetch_instruction call.
6830         (heuristic_proc_start): Check for the standard MIPS ISA rather
6831         than for MIPS16.  Update mips_pc_is_mips16 and
6832         mips_fetch_instruction calls.  Handle microMIPS code.
6833         (mips_push_dummy_code): Handle microMIPS code.
6834         (mips_eabi_push_dummy_call): Likewise.
6835         (mips_o32_return_value): Update mips_pc_is_mips16 call.
6836         (mips_o64_push_dummy_call): Handle microMIPS code.
6837         (mips_o64_return_value): Update mips_pc_is_mips16 call.
6838         (is_delayed): Remove function.
6839         (mips_single_step_through_delay): Replace the call to is_delayed
6840         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
6841         Handle microMIPS code.
6842         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
6843         microMIPS code.
6844         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6845         call.
6846         (micromips_in_function_epilogue_p): New function.
6847         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6848         call.
6849         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6850         Handle microMIPS.
6851         (gdb_print_insn_mips): Likewise.
6852         (mips_breakpoint_from_pc): Likewise.
6853         (mips_remote_breakpoint_from_pc): New function.
6854         (mips32_instruction_has_delay_slot): Simplify making use of the
6855         updated mips_fetch_instruction interface.
6856         (micromips_instruction_has_delay_slot): New function.
6857         (mips16_instruction_has_delay_slot): Simplify making use of the
6858         updated mips_fetch_instruction interface.
6859         (mips_adjust_breakpoint_address): Check for the standard MIPS
6860         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
6861         calls.  Handle microMIPS code.
6862         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6863         (mips_skip_trampoline_code): Handle microMIPS code.
6864         (global_mips_compression): New function.
6865         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6866         file flags.  Register the microMIPS remote breakpoint handler
6867         and heuristic frame unwinder.
6868         (show_mips_compression): New function.
6869         (_initialize_mips_tdep): Add the "set mips compression" and
6870         "show mips compression" commands.
6871
6872 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
6873
6874         * ada-lang.c:
6875         * ada-tasks.c:
6876         * ada-varobj.c:
6877         * amd64-darwin-tdep.c:
6878         * arm-symbian-tdep.c:
6879         * arm-tdep.c:
6880         * avr-tdep.c:
6881         * ax-gdb.c:
6882         * bfin-linux-tdep.c:
6883         * breakpoint.c:
6884         * c-valprint.c:
6885         * cli/cli-cmds.c:
6886         * coffread.c:
6887         * cp-support.c:
6888         * cris-tdep.c:
6889         * dwarf2-frame-tailcall.c:
6890         * dwarf2-frame.c:
6891         * dwarf2expr.c:
6892         * dwarf2loc.c:
6893         * dwarf2read.c:
6894         * elfread.c:
6895         * eval.c:
6896         * expprint.c:
6897         * f-valprint.c:
6898         * frv-tdep.c:
6899         * h8300-tdep.c:
6900         * hppa-hpux-tdep.c:
6901         * hppa-tdep.c:
6902         * hppanbsd-tdep.c:
6903         * i386-nto-tdep.c:
6904         * i386-tdep.c:
6905         * i387-tdep.c:
6906         * ia64-tdep.c:
6907         * jit.c:
6908         * linespec.c:
6909         * linux-tdep.c:
6910         * lm32-tdep.c:
6911         * m2-valprint.c:
6912         * m32c-tdep.c:
6913         * m32r-rom.c:
6914         * m32r-tdep.c:
6915         * m68k-tdep.c:
6916         * m68klinux-tdep.c:
6917         * mi/mi-main.c:
6918         * microblaze-tdep.c:
6919         * mips-linux-tdep.c:
6920         * mips-tdep.c:
6921         * mn10300-tdep.c:
6922         * p-valprint.c:
6923         * parse.c:
6924         * ppc-linux-tdep.c:
6925         * ppc-sysv-tdep.c:
6926         * printcmd.c:
6927         * python/py-finishbreakpoint.c:
6928         * python/py-inferior.c:
6929         * python/py-infthread.c:
6930         * python/py-type.c:
6931         * python/python.c:
6932         * remote-fileio.c:
6933         * remote-m32r-sdi.c:
6934         * remote-mips.c:
6935         * reverse.c:
6936         * rl78-tdep.c:
6937         * rs6000-aix-tdep.c:
6938         * rs6000-tdep.c:
6939         * s390-tdep.c:
6940         * score-tdep.c:
6941         * sh64-tdep.c:
6942         * skip.c:
6943         * solib-darwin.c:
6944         * solib-dsbt.c:
6945         * solib-frv.c:
6946         * sparc-tdep.c:
6947         * spu-multiarch.c:
6948         * spu-tdep.c:
6949         * stack.c:
6950         * symfile.c:
6951         * symtab.c:
6952         * tic6x-tdep.c:
6953         * tracepoint.c:
6954         * v850-tdep.c:
6955         * valarith.c:
6956         * valprint.c:
6957         * value.c:
6958         * xcoffread.c:
6959         * xtensa-tdep.c:
6960         * ada-lang.c:
6961         * ada-tasks.c:
6962         * ada-varobj.c:
6963         * amd64-darwin-tdep.c:
6964         * arm-symbian-tdep.c:
6965         * arm-tdep.c: Delete unused variables.
6966
6967 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6968
6969         Rename $ddir to $datadir.
6970         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6971         * auto-load.c (auto_load_safe_path_vec_update)
6972         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6973         * configure: Regenerate.
6974         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6975         Likewise.  Remove the 'use $ddir' help string.
6976
6977 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6978
6979         * auto-load.c (show_auto_load_safe_path): Accept any combination of
6980         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6981
6982 2012-05-18  Tom Tromey  <tromey@redhat.com>
6983
6984         PR exp/13907:
6985         * valprint.h (struct value_print_options) <symbol_print>: New
6986         field.
6987         * valprint.c (user_print_options): Add default for symbol_print.
6988         (show_symbol_print): New function.
6989         (generic_val_print): Respect symbol_print.
6990         (_initialize_valprint): Add "print symbol" setting.
6991         * f-valprint.c (f_val_print): Respect symbol_print.
6992         * c-valprint.c (c_val_print): Respect symbol_print.
6993         * NEWS: Update.
6994         * printcmd.c (print_address_symbolic): Return int.  Ignore some
6995         zero-size symbols.
6996         (print_address_demangle): Return int.
6997         * defs.h: (print_address_symbolic): Return int.
6998         * value.h (print_address_demangle): Return int.
6999
7000 2012-05-18  Tom Tromey  <tromey@redhat.com>
7001
7002         * valprint.c (val_print_string): Don't print leading space.
7003         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
7004         print space before string or vtbl.
7005         * m2-valprint.c (print_unpacked_pointer): Optionally print space
7006         before string.
7007         * jv-valprint.c (java_value_print): Print space before string.
7008         * go-valprint.c (print_go_string): Print space before string.
7009         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
7010         space before string.
7011         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
7012         space before string or vtbl.
7013         * auxv.c (fprint_target_auxv): Print space after address.
7014
7015 2012-05-18  Tom Tromey  <tromey@redhat.com>
7016
7017         * printcmd.c (print_address_demangle): Remove special case for 0.
7018
7019 2012-05-18  Tom Tromey  <tromey@redhat.com>
7020
7021         * printcmd.c (print_address_demangle): Add 'opts' argument.
7022         * p-valprint.c (pascal_val_print): Update.
7023         * jv-valprint.c (java_val_print): Update.
7024         * value.h: Update.
7025         * valprint.c (generic_val_print): Update.
7026         (print_function_pointer_address): Add 'options' argument.  Remove
7027         'addressprint' argument.  Update.
7028         * m2-valprint.c (print_unpacked_pointer): Update.
7029         * gnu-v3-abi.c (print_one_vtable): Update.
7030         (gnuv3_print_method_ptr): Update.
7031         * f-valprint.c (f_val_print): Update.
7032         * cp-valprint.c (cp_print_value_fields): Update.
7033         * valprint.h (print_function_pointer_address): Update.
7034         * c-valprint.c (c_val_print): Update.
7035
7036 2012-05-18  Tom Tromey  <tromey@redhat.com>
7037
7038         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
7039         directly corresponding to the found psymtab.
7040         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
7041         (dw2_find_pc_sect_symtab): Use it.
7042         * block.h (blockvector_contains_pc): Declare.
7043         * block.c (find_block_in_blockvector): New function.
7044         (blockvector_for_pc_sect): Use it.
7045         (blockvector_contains_pc): New function.
7046
7047 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
7048
7049         * mips-tdep.h (mips_write_pc): New prototype.
7050         * mips-tdep.c (mips_write_pc): Make external, add description.
7051         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
7052         add description.
7053
7054 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
7055
7056         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
7057         mips_regnum->pc.
7058         (mips_unwind_pc, mips_write_pc): Likewise.
7059         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
7060         gdbarch_read_pc.
7061
7062 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
7063
7064         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
7065         proc_warn, proc_error, proc_get_status, proc_flags,
7066         proc_why, proc_what, proc_nsysarg, proc_sysargs,
7067         proc_set_run_on_last_close, proc_unset_run_on_last_close,
7068         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
7069         proc_stop_process, proc_wait_for_stop, proc_run_process,
7070         proc_set_traced_signals, proc_set_traced_faults,
7071         proc_set_traced_sysentry, proc_set_traced_sysexit,
7072         proc_set_held_signals, proc_get_held_signals,
7073         proc_get_traced_signals, proc_get_traced_faults,
7074         proc_get_traced_sysentry, proc_get_traced_sysexit,
7075         proc_clear_current_fault, proc_set_current_signal,
7076         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
7077         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
7078         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
7079         proc_get_current_thread, proc_get_current_thread,
7080         proc_get_current_thread, proc_update_threads,
7081         proc_update_threads, proc_update_threads, proc_update_threads,
7082         proc_iterate_over_threads, procfs_find_new_threads,
7083         procfs_pid_to_str): Make static.  Remove advance declaration.
7084         (proc_cursig): Make static.  Conditionalized defintion on
7085         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
7086         (proc_syscall, proc_set_kill_on_last_close,
7087         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
7088         proc_get_pending_signals, proc_get_signal_actions,
7089         proc_trace_signal, proc_ignore_signal): Delete.
7090
7091 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
7092
7093         * coffread.c (cs_section_address): Passing proper argument for
7094         `bfd_get_section_vma'.
7095         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
7096         `bfd_get_section_flags'.
7097         * remote.c (remote_trace_set_readonly_regions): Likewise, for
7098         `bfd_get_section_vma'.
7099
7100 2012-05-16  Tom Tromey  <tromey@redhat.com>
7101
7102         PR macros/13205:
7103         * macrotab.h: (macro_define_special): Declare.
7104         (enum macro_special_kind): New.
7105         (struct macro_definition) <argc, replacement>: Update comments.
7106         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
7107         (macro_define_object_internal): New function.
7108         (macro_define_object): Use it.
7109         (macro_define_special): New function.
7110         (fixup_definition): New function.
7111         (macro_lookup_definition, foreach_macro_in_scope)
7112         (foreach_macro): Use fixup_definition.
7113         * macroexp.h (macro_stringify): Declare.
7114         * macroexp.c (free_buffer_return_text): New function.
7115         (stringify): Constify "arg".
7116         (macro_stringify): New function.
7117         * dwarf2read.c (macro_start_file): Call macro_define_special.
7118
7119 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
7120             Maciej W. Rozycki  <macro@mips.com>
7121
7122         * breakpoint.h (bp_location): Add related_address member.
7123         * inferior.h (get_return_value): Take a pointer to struct value
7124         instead of struct type for the function requested.
7125         * value.h (using_struct_return): Likewise.
7126         * gdbarch.sh (return_value): Take a pointer to struct value
7127         instead of struct type for the function requested.
7128         * breakpoint.c (set_breakpoint_location_function): Initialize
7129         related_address for bp_gnu_ifunc_resolver breakpoints.
7130         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
7131         requested function's address to gdbarch_return_value.
7132         * eval.c (evaluate_subexp_standard): Pass the requested
7133         function's address to using_struct_return.
7134         * infcall.c (call_function_by_hand): Pass the requested
7135         function's address to using_struct_return and
7136         gdbarch_return_value.
7137         * infcmd.c (get_return_value): Take a pointer to struct value
7138         instead of struct type for the function requested.
7139         (print_return_value): Update accordingly.
7140         (finish_command_continuation): Likewise.
7141         * stack.c (return_command): Pass the requested function's
7142         address to using_struct_return and gdbarch_return_value.
7143         * value.c (using_struct_return): Take a pointer to struct value
7144         instead of struct type for the function requested.  Pass the
7145         requested function's address to gdbarch_return_value.
7146         * python/py-finishbreakpoint.c (finish_breakpoint_object):
7147         New function_value member, replacing function_type.
7148         (bpfinishpy_dealloc): Update accordingly.
7149         (bpfinishpy_pre_stop_hook): Likewise.
7150         (bpfinishpy_init): Likewise.  Record the requested function's
7151         address.
7152         * mips-tdep.c (mips_fval_reg): New enum.
7153         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7154         words put in GP registers.
7155         (mips_o64_push_dummy_call): Update a comment.
7156         (mips_o32_return_value): Take a pointer to struct value instead
7157         of struct type for the function requested and use it to check if
7158         using the MIPS16 calling convention.  Return the designated
7159         general purpose registers for floating-point values returned in
7160         MIPS16 mode.
7161         (mips_o64_return_value): Likewise.
7162         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7163         (ppc_sysv_abi_broken_return_value): Likewise.
7164         (ppc64_sysv_abi_return_value): Likewise.
7165         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7166         value instead of struct type for the function requested.
7167         * amd64-tdep.c (amd64_return_value): Likewise.
7168         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7169         * arm-tdep.c (arm_return_value): Likewise.
7170         * avr-tdep.c (avr_return_value): Likewise.
7171         * bfin-tdep.c (bfin_return_value): Likewise.
7172         * cris-tdep.c (cris_return_value): Likewise.
7173         * frv-tdep.c (frv_return_value): Likewise.
7174         * h8300-tdep.c (h8300_return_value): Likewise.
7175         (h8300h_return_value): Likewise.
7176         * hppa-tdep.c (hppa32_return_value): Likewise.
7177         (hppa64_return_value): Likewise.
7178         * i386-tdep.c (i386_return_value): Likewise.
7179         * ia64-tdep.c (ia64_return_value): Likewise.
7180         * iq2000-tdep.c (iq2000_return_value): Likewise.
7181         * lm32-tdep.c (lm32_return_value): Likewise.
7182         * m32c-tdep.c (m32c_return_value): Likewise.
7183         * m32r-tdep.c (m32r_return_value): Likewise.
7184         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7185         * m68k-tdep.c (m68k_return_value): Likewise.
7186         (m68k_svr4_return_value): Likewise.
7187         * m88k-tdep.c (m88k_return_value): Likewise.
7188         * mep-tdep.c (mep_return_value): Likewise.
7189         * microblaze-tdep.c (microblaze_return_value): Likewise.
7190         * mn10300-tdep.c (mn10300_return_value): Likewise.
7191         * moxie-tdep.c (moxie_return_value): Likewise.
7192         * mt-tdep.c (mt_return_value): Likewise.
7193         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7194         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7195         (ppc_sysv_abi_broken_return_value): Likewise.
7196         (ppc64_sysv_abi_return_value): Likewise.
7197         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7198         * rl78-tdep.c (rl78_return_value): Likewise.
7199         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7200         * rx-tdep.c (rx_return_value): Likewise.
7201         * s390-tdep.c (s390_return_value): Likewise.
7202         * score-tdep.c (score_return_value): Likewise.
7203         * sh-tdep.c (sh_return_value_nofpu): Likewise.
7204         (sh_return_value_fpu): Likewise.
7205         * sh64-tdep.c (sh64_return_value): Likewise.
7206         * sparc-tdep.c (sparc32_return_value): Likewise.
7207         * sparc64-tdep.c (sparc64_return_value): Likewise.
7208         * spu-tdep.c (spu_return_value): Likewise.
7209         * tic6x-tdep.c (tic6x_return_value): Likewise.
7210         * v850-tdep.c (v850_return_value): Likewise.
7211         * vax-tdep.c (vax_return_value): Likewise.
7212         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7213         * xtensa-tdep.c (xtensa_return_value): Likewise.
7214         * gdbarch.c: Regenerate.
7215         * gdbarch.h: Regenerate.
7216
7217 2012-05-15  Tom Tromey  <tromey@redhat.com>
7218
7219         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7220
7221 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
7222
7223         * breakpoint.c (init_breakpoint_sal): Add quotes around part
7224         of command in two error message.
7225
7226 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
7227
7228         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7229
7230 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
7231
7232         * breakpoint.c (find_condition_and_thread): Minor reformatting.
7233
7234 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7235
7236         * NEWS (show auto-load scripts-directory): Add forgotten command.
7237
7238 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7239
7240         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7241         parameters.
7242
7243 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7244
7245         * amd64-tdep.c: Include features/i386/x32.c and
7246         features/i386/x32-avx.c.
7247         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7248         initialize_tdesc_x32_avx.
7249
7250 2012-05-14  Stan Shebs  <stan@codesourcery.com>
7251
7252         Add dynamic printf.
7253         * breakpoint.h (enum bptype): New type bp_dprintf.
7254         (struct breakpoint): New field extra_string.
7255         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7256         (create_breakpoint): Add extra_string arg.
7257         * breakpoint.c (dprintf_breakpoint_ops): New.
7258         (is_breakpoint): Add bp_dprintf.
7259         (bpstat_what): Add dprintf case.
7260         (bptype_string): Ditto.
7261         (print_one_breakpoint_location): Ditto.
7262         (init_bp_location): Ditto.
7263         (bkpt_print_mention): Ditto.
7264         (dprintf_style_enums): New array.
7265         (dprintf_style): New global.
7266         (dprintf_function): New global.
7267         (dprintf_channel): New global.
7268         (update_dprintf_command_list): New function.
7269         (update_dprintf_commands): New function.
7270         (init_breakpoint_sal): Add extra_string argument, handle it.
7271         (create_breakpoint_sal): Add extra_string argument.
7272         (create_breakpoints_sal): Add extra_string argument, update callers.
7273         (find_condition_and_thread): Add extra argument.
7274         (create_breakpoint): Add extra_string argument, record it.
7275         (dprintf_command): New function.
7276         (break_command_1): Add arg to create_breakpoint call.
7277         (handle_gnu_v3_exceptions): Ditto.
7278         (trace_command): Ditto.
7279         (ftrace_command): Ditto.
7280         (strace_command): Ditto.
7281         (bkpt_print_mention): Add dprintf case.
7282         (create_breakpoint_sal_default): Add extra_string argument.
7283         (_initialize_breakpoint): Add new commands.
7284         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7285         * python/py-breakpoint.c (bppy_init): Ditto.
7286         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7287
7288 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
7289
7290         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7291
7292 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
7293
7294         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7295         unsigned long long.
7296
7297 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
7298
7299         Add a new function gdb.find_pc_line to the Python API.
7300         * NEWS (Python Scripting): Add entry about the new function.
7301         * python/python.c (gdbpy_find_pc_line): New function which
7302         implements gdb.find_pc_line.
7303         (GdbMethods): Add entry for the new function.
7304
7305 2012-05-12  Pedro Alves  <palves@redhat.com>
7306
7307         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7308         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7309
7310 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
7311
7312         * inferior.c: Include completer.h
7313         (initialize_inferiors): Set completer of add-inferior to
7314         filename_completer.
7315
7316 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7317
7318         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7319         gdbarch_ptr_bit for x32 core dump.
7320
7321 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7322
7323         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7324         and features/i386/x32-avx-linux.c.
7325
7326 2012-05-11  Stan Shebs  <stan@codesourcery.com>
7327             Kwok Cheung Yeung  <kcy@codesourcery.com>
7328
7329         * NEWS: Describe new info os commands.
7330         * common/linux-osdata.c (PID_T, TIME_T): Define.
7331         (MAX_PID_T_STRLEN): New.
7332         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
7333         MAX_PID_T_STRLEN.
7334         (command_from_pid): Add comment.  Change to use PID_T.
7335         (commandline_from_pid):  Change to use PID_T.
7336         (user_from_pid): Add comment.
7337         (get_process_owner): Add comment. Change to use PID_T and
7338         MAX_PID_T_STRLEN.
7339         (get_number_of_cpu_cores): Add comment.
7340         (get_cores_used_by_process): Add comment.  Change to use PID_T and
7341         MAX_PID_T_STRLEN.
7342         (linux_xfer_osdata_processes): Change to use PID_T and
7343         MAX_PID_T_STRLEN.
7344         (compare_processes): New function.
7345         (linux_xfer_osdata_processgroups): New function.
7346         (linux_xfer_osdata_threads): Change to use PID_T.
7347         (linux_xfer_osdata_fds): New function.
7348         (format_socket_state, print_sockets): New functions.
7349         (union socket_addr): New union.
7350         (linux_xfer_osdata_isockets): New function.
7351         (time_from_time_t, group_from_gid): New functions.
7352         (linux_xfer_osdata_shm): New function.
7353         (linux_xfer_osdata_sem): New function.
7354         (linux_xfer_osdata_msg): New function.
7355         (linux_xfer_osdata_modules): New function.
7356         (osdata_table): Add new entries.
7357         * common/buffer.c (buffer_xml_printf): Add support for long and
7358         long long format specifiers.
7359
7360 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7361
7362         * amd64-linux-tdep.h (tdesc_x32_linux): New.
7363         (tdesc_x32_avx_linux): Likewise.
7364
7365 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7366
7367         Implement multi-component --with-auto-load-dir.
7368         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7369         entries.
7370         (--with-auto-load-safe-path): Update the default value description.
7371         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7372         New.
7373         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
7374         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
7375         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
7376         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
7377         "set auto-load scripts-directory".
7378         * config.in: Regenerate.
7379         * configure: Regenerate.
7380         * configure.ac (--with-auto-load-dir): New configure option.
7381         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7382
7383 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7384
7385         Provide $ddir substitution for --with-auto-load-safe-path.
7386         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7387         entries.
7388         * auto-load.c: Include observer.h.
7389         (auto_load_safe_path_vec_update): Call substitute_path_component for
7390         each component.  New variable ddir_subst.
7391         (auto_load_gdb_datadir_changed): New function.
7392         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7393         AUTO_LOAD_SAFE_PATH.  New comment.
7394         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7395         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
7396         * config.in: Regenerate.
7397         * configure: Regenerate.
7398         * configure.ac (--auto-load-safe-path): Rename
7399         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
7400         GDB_DATADIR/auto-load.
7401         * defs.h (substitute_path_component): New declaration.
7402         * top.c: Include observer.h.
7403         (set_gdb_datadir): New function.
7404         (init_main): Install it for "set data-directory".
7405         * utils.c (substitute_path_component): New function.
7406
7407 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7408
7409         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7410         * auto-load.c (auto_load_objfile_script): Remove check for NULL
7411         DEBUG_FILE_DIRECTORY.  Handle multiple components of
7412         DEBUG_FILE_DIRECTORY.
7413
7414 2012-05-10  Tom Tromey  <tromey@redhat.com>
7415
7416         * dwarf2read.c (recursively_write_psymbols): New function.
7417         (write_psymtabs_to_index): Use it.
7418
7419         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7420         field.
7421         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7422         (load_partial_comp_unit): Update.
7423         (queue_comp_unit): Add argument 'pretend_language'.
7424         (process_queue): Update.
7425         (psymtab_to_symtab_1): Skip dependencies that have a user.
7426         (load_partial_comp_unit_reader): Give meaning to the 'data'
7427         argument.
7428         (load_full_comp_unit): Add 'pretend_language' argument.
7429         (process_full_comp_unit): Add 'pretend_language' argument.  Set
7430         language on CU.
7431         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7432         Update.
7433         (maybe_queue_comp_unit): Add 'pretend_language' argument.
7434         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7435         Update.
7436         (prepare_one_comp_unit): Add 'pretend_language' argument.
7437
7438         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7439         (struct dwarf2_per_objfile) <just_read_cus>: New field.
7440         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7441         (dw2_do_instantiate_symtab): Check whether symtab was read in
7442         before queueing.
7443         (dw2_instantiate_symtab): Add assertion.  Call
7444         process_cu_includes.
7445         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7446         (partial_symtab_p): New typedef.
7447         (set_partial_user): New function.
7448         (dwarf2_build_psymtabs_hard): Use set_partial_user.
7449         (scan_partial_symbols): Add imported CU to imported_symtabs.
7450         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7451         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7452         (get_symtab, recursively_compute_inclusions)
7453         (compute_symtab_includes, process_cu_includes)
7454         (process_imported_unit_die): New functions.
7455         (process_die) <DW_TAG_imported_unit>: New case.
7456         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7457
7458         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7459         comment.
7460         (struct partial_die_info) <locdesc>: Remove.
7461         <d>: New field.
7462         (process_psymtab_comp_unit): Add 'read_partial' argument.
7463         Update.
7464         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7465         (scan_partial_symbols): Handle DW_TAG_imported_unit.
7466         (add_partial_symbol): Update.
7467         (process_die): Handle DW_TAG_partial_unit.
7468         (read_file_scope): Update comment.
7469         (load_partial_dies): Handle DW_TAG_imported_unit.
7470         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7471         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7472
7473 2012-05-10  Tom Tromey  <tromey@redhat.com>
7474
7475         * cc-with-dwz.sh: New file.
7476
7477 2012-05-10  Tom Tromey  <tromey@redhat.com>
7478
7479         * symtab.h (struct symtab) <includes, user>: New fields.
7480         * block.h (struct block_iterator) <d, idx, which>: New fields.
7481         * block.c (initialize_block_iterator, find_iterator_symtab)
7482         (block_iterator_step, block_iter_name_step)
7483         (block_iter_match_step): New functions.
7484         (block_iterator_first, block_iterator_next)
7485         (block_iter_name_first, block_iter_name_next)
7486         (block_iter_match_first, block_iter_match_next): Rewrite.
7487         (get_block_symtab): New function.
7488
7489 2012-05-10  Tom Tromey  <tromey@redhat.com>
7490
7491         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7492         set_block_symtab.
7493         * jit.c (finalize_symtab): Use allocate_global_block,
7494         set_block_symtab.
7495         * buildsym.c (finish_block_internal): New function, from old
7496         finish_block.
7497         (finish_block): Rewrite.
7498         (end_symtab): Use finish_block_internal, set_block_symtab.
7499         * block.h (struct global_block): New.
7500         (allocate_global_block, set_block_symtab): Declare.
7501         * block.c (allocate_global_block, set_block_symtab): New
7502         functions.
7503
7504 2012-05-10  Tom Tromey  <tromey@redhat.com>
7505
7506         * psymtab.c (partial_map_expand_apply): Add assertion.
7507         (partial_map_symtabs_matching_filename): Skip included psymtabs.
7508         (psymtab_to_symtab): Find unshared psymtab.
7509         (dump_psymtab): Print including psymtabs.
7510         (recursively_search_psymtabs): New function.
7511         (expand_symtabs_matching_via_partial): Use it.
7512         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7513         fields.
7514         (enum psymtab_search_status): New.
7515
7516 2012-05-10  Tom Tromey  <tromey@redhat.com>
7517
7518         * tracepoint.c (scope_info): Update.
7519         * symtab.c (lookup_block_symbol, iterate_over_symbols)
7520         (find_pc_sect_symtab, search_symbols)
7521         (default_make_symbol_completion_list_break_on)
7522         (make_file_symbol_completion_list): Update.
7523         * symmisc.c (dump_symtab_1): Update.
7524         * stack.c (print_frame_args, iterate_over_block_locals)
7525         (print_frame_labels, iterate_over_block_arg_vars): Update.
7526         * python/py-block.c (block_object) <dict>: Remove.
7527         <block>: New field.
7528         <iter>: Change type.
7529         (blpy_iter): Update.
7530         (blpy_block_syms_iternext): Update.
7531         * psymtab.c (map_block): Use block iterators.
7532         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7533         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7534         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7535         * infrun.c (check_exception_resume): Update.
7536         * cp-support.c (make_symbol_overload_list_block): Update.
7537         * coffread.c (patch_opaque_types): Update.
7538         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7539         * block.h (struct block_iterator): New.
7540         (block_iterator_first, block_iterator_next, block_iter_name_first)
7541         (block_iter_name_next, block_iter_match_first)
7542         (block_iter_match_next): Declare.
7543         (ALL_BLOCK_SYMBOLS): Redefine.
7544         * block.c (block_iterator_first, block_iterator_next)
7545         (block_iter_name_first, block_iter_name_next)
7546         (block_iter_match_first, block_iter_match_next): New functions.
7547         * ada-lang.c (ada_add_block_symbols)
7548         (ada_make_symbol_completion_list): Use block iterator.
7549
7550 2012-05-10  Tom Tromey  <tromey@redhat.com>
7551
7552         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7553         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7554         (lookup_partial_symbol, find_last_source_symtab_from_partial)
7555         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7556         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7557         Update.
7558
7559 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
7560
7561         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7562         print-file-var-lib2.c, print-file-var-main.c and
7563         print-file-var.exp (located in gdb/testsuite/gdb.base).
7564
7565 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
7566
7567         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7568         try locating the symbol in the symbol's own objfile first, before
7569         extending the search to all objfiles.
7570         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7571         out of lookup_symbol_aux_symtabs.
7572         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7573         Replace extracted-out code by call to lookup_symbol_aux_objfile.
7574         Do not search EXCLUDE_OBJFILE.
7575         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7576         (lookup_symbol_global): Search for matches in the block's objfile
7577         first, before searching all other objfiles.
7578
7579 2012-05-10  Tristan Gingold  <gingold@adacore.com>
7580
7581         * printcmd.c (set_command): Add pre/post inc/dec.
7582
7583 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
7584
7585         * gdb.1: Document -ex option.
7586
7587 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
7588
7589         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7590         * inferior.h (AT_SYMBOL): Delete.
7591
7592 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
7593
7594         * mips-tdep.c (mips_push_dummy_code): New function.
7595         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7596         ON_STACK and install mips_push_dummy_code as our gdbarch
7597         push_dummy_code routine.
7598
7599 2012-05-09  Pedro Alves  <palves@redhat.com>
7600
7601         * target.c (set_maintenance_target_async_permitted): Rename to ...
7602         (set_target_async_command): ... this.
7603         (show_maintenance_target_async_permitted): Rename to ...
7604         (show_target_async_command): ... this.
7605         (initialize_targets): Adjust.
7606
7607 2012-05-08  Doug Evans  <dje@google.com>
7608
7609         * go-exp.y (classify_name): Add missing assignment of fields of
7610         yylval.ssym.
7611
7612 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
7613
7614         Display the ">" prompt in interactive mode while reading canned
7615         commands, even when the current interpreter is MI.
7616
7617         * interps.c (interp_set_temp): New function.
7618
7619         * interps.h (interp_set_temp): Add prototype.
7620
7621         * cli/cli-script.c (restore_interp): New cleanup function.
7622         (read_command_lines): Temporarily override the current interpreter
7623         with CLI and arrange for restoring the original one.
7624
7625 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
7626
7627         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7628
7629 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
7630
7631         * probe.c (parse_probes): Move conditional to check for
7632         debuginfo files from here...
7633         * stap-probe.c (stap_get_probes): ... to here.
7634
7635 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
7636             H.J. Lu  <hongjiu.lu@intel.com>
7637
7638         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7639         `movl %esp, %ebp' for the X32 ABI.
7640
7641 2012-05-07  Tom Tromey  <tromey@redhat.com>
7642
7643         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
7644         get_DW_TAG_name.
7645         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
7646         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
7647         (dwarf_stack_op_name): Remove.
7648         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
7649         (decode_locdesc): Use get_DW_OP_name.
7650         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7651         (dwarf2_compile_expr_to_ax): Likewise.
7652         (disassemble_dwarf_expression): Likewise.
7653         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7654
7655 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
7656
7657         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7658         (sh_linux_sigtramp_cache): New function.
7659         (sh_linux_sigreturn_init): New function.
7660         (sh_linux_rt_sigreturn_init): New function.
7661         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7662         patterns.
7663         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7664         syscall codes.
7665         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7666         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7667         (sh_linux_init_abi): Add init calls to register new tramp_frame
7668         definitions under 32-bit SH, update comments.
7669
7670 2012-05-07  Pedro Alves  <palves@redhat.com>
7671
7672         PR gdb/10952
7673
7674         * amd64-linux-tdep.c: Include glibc-tdep.h.
7675         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7676         gdbarch_skip_solib_resolver callback.
7677
7678 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7679
7680         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7681         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7682         (show_auto_load_safe_path): Check any-directory by comparison with "/".
7683         (add_auto_load_safe_path): Change the error message.
7684         (_initialize_auto_load): Change the "safe-path" help text.
7685         * configure: Regenerate
7686         * configure.ac (--without-auto-load-safe-path): Set
7687         WITH_AUTO_LOAD_SAFE_PATH to /.
7688
7689 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
7690
7691         * stap-probe.h: Do not include unecessary `probe.h'.
7692
7693 2012-05-05  Alan Modra  <amodra@gmail.com>
7694
7695         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7696         bfd_und_section_ptr.
7697         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7698         and bfd_com_section_ptr.
7699
7700 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
7701
7702         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7703
7704 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
7705
7706         * windows-nat.h (segment_register_p_ftype): New typedef.
7707         (windows_set_segment_register_p): Add declaration.
7708         * windows-nat.c (segment_register_p): New static global.
7709         (windows_set_segment_register_p): New function.
7710         (do_windows_fetch_inferior_registers): Add special handling
7711         for segment registers.
7712         * amd64-windows-nat.c: #include "amd64-tdep.h".
7713         (amd64_windows_segment_register_p): New function.
7714         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7715         * i386-windows-nat.c: #include "i386-tdep.h".
7716         (i386_windows_segment_register_p): New function.
7717         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7718
7719 2012-05-04  Tristan Gingold  <gingold@adacore.com>
7720
7721         * printcmd.c (set_command): Emit a warning if the expression is not
7722         an assignment.
7723
7724 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
7725
7726         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7727         Make static.
7728
7729 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
7730
7731         * stap-probe.c (stap_is_operator): Change declaration.
7732         (stap_get_opcode): Change return value.
7733         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7734         `stap_parse_argument_1'.
7735
7736 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
7737
7738         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7739         debug log.
7740
7741 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
7742
7743         Add two new methods global_block and static_block to gdb.Symtab
7744         objects.
7745         * NEWS (Python scripting): Add entry about the new methods.
7746         * python/py-symtab.c (stpy_global_block): New function which
7747         implements the gdb.Symtab.global_block() method.
7748         (stpy_static_block): New function which implements the
7749         gdb.Symtab.static_block() method.
7750         (symtab_object_methods): Add entries for the two new methods.
7751
7752 2012-05-03  Doug Evans  <dje@google.com>
7753
7754         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7755         files.
7756
7757 2012-05-03  Yao Qi  <yao@codesourcery.com>
7758
7759         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7760         space.
7761         (i386_process_record): Ditto.
7762
7763 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7764
7765         * infcall.c (unwind_on_signal_p): Make static.
7766
7767 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7768
7769         * sol-thread.c (solaris_pid_to_str): Make static.
7770         (_initialize_sol_thread): Add prototype.
7771
7772 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7773
7774         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7775
7776 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
7777
7778         * MAINTAINERS: Remove myself.
7779
7780 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7781
7782         Fix --without-auto-load-safe-path for MS-Windows host platform.
7783         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7784
7785 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
7786
7787         * gdb_curses.h: Undefine KEY_EVENT before including curses
7788         headers.  Move "#undef MOUSE_MOVED" before any curses header
7789         inclusion.
7790
7791 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
7792
7793         * features/i386/i386-mmx-linux.c: Regenerate.
7794         * features/rs6000/powerpc-32.c: Likewise.
7795         * features/rs6000/powerpc-32l.c: Likewise.
7796         * features/rs6000/powerpc-403.c: Likewise.
7797         * features/rs6000/powerpc-403gc.c: Likewise.
7798         * features/rs6000/powerpc-405.c: Likewise.
7799         * features/rs6000/powerpc-505.c: Likewise.
7800         * features/rs6000/powerpc-601.c: Likewise.
7801         * features/rs6000/powerpc-602.c: Likewise.
7802         * features/rs6000/powerpc-603.c: Likewise.
7803         * features/rs6000/powerpc-604.c: Likewise.
7804         * features/rs6000/powerpc-64.c: Likewise.
7805         * features/rs6000/powerpc-64l.c: Likewise.
7806         * features/rs6000/powerpc-750.c: Likewise.
7807         * features/rs6000/powerpc-860.c: Likewise.
7808         * features/rs6000/powerpc-e500.c: Likewise.
7809         * features/rs6000/powerpc-e500l.c: Likewise.
7810         * features/rs6000/powerpc-isa205-32l.c: Likewise.
7811         * features/rs6000/powerpc-isa205-64l.c: Likewise.
7812         * features/rs6000/rs6000.c: Likewise.
7813
7814 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
7815
7816         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7817         variable.
7818         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7819         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7820         (stap_parse_argument) <e>: Likewise.
7821         (handle_stap_probe) <byte_order>: Likewise.
7822
7823 2012-04-30  Doug Evans  <dje@google.com>
7824
7825         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7826         init_and_read_dies_worker.  All callers updated.
7827         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
7828         replaced with init_cutu_and_read_dies.
7829         (load_partial_comp_unit): Pass 1 for use_existing_cu.
7830         (find_partial_die): Remove FIXME.  Don't free current CU.
7831
7832 2012-04-30  Sterling Augustine  <saugustine@google.com>
7833
7834         * contrib: New directory.
7835         * contrib/test_pubnames_and_indexes.py: New file.
7836
7837 2012-04-30  Doug Evans  <dje@google.com>
7838
7839         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7840         All callers updated.
7841         (init_cu_die_reader): Verify the section is non-empty.
7842         (dwarf_decode_line_header): Don't dereference section->asection
7843         until we know the section is present.
7844
7845 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
7846
7847         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7848         probes.
7849
7850 2012-04-29  Yao Qi  <yao@codesourcery.com>
7851
7852         * gdb-code-style.el: New hook gdb-markup-hook
7853         and gdb-comment-hook.
7854
7855 2012-04-28  Doug Evans  <dje@google.com>
7856
7857         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
7858         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7859         objfile->obfd.
7860         * symfile.h (dwarf2_debug_sections): New member addr.
7861         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7862         (ctx_no_get_addr_index): New function.
7863         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7864         (ctx_no_get_addr_index): Declare.
7865         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7866         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7867         (dwarf_expr_ctx_funcs): Update.
7868         (needs_get_addr_index): New function.
7869         (needs_frame_ctx_funcs): Update.
7870         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7871         * dwarf2read.c: #include "gdbcore.h".
7872         (dwarf2_per_objfile): New members addr, dwo_files.
7873         (dwarf2_elf_names): Add entry for addr.
7874         (struct dwo_section_names): New type.
7875         (dwo_section_names): New static global.
7876         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7877         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7878         old debug_types_section member updated to use this.
7879         Rename member debug_types_section to info_or_types_section,
7880         all uses updated.
7881         (signatured_type): Rename member type_offset to type_offset_in_tu,
7882         all uses updated.  New member type_offset_in_section.
7883         (struct dwo_sections): New type.
7884         (struct dwo_unit): New type.
7885         (struct dwo_file): New type.
7886         (die_reader_specs): New member dwo_file.
7887         (dwarf2_locate_sections): Watch for .debug_addr.
7888         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7889         (dwarf2_read_section): Get bfd of section from bfd's asection,
7890         instead of objfile.
7891         (create_cus_from_index): Initialize the_cu->info_or_types_section.
7892         (create_signatured_type_table_from_index): Initialize
7893         sig_type->info_or_types_section.
7894         (dw2_get_file_names): Statement lists for type units with DWO files
7895         live in the DWO file.
7896         (create_debug_types_hash_table): New function.
7897         (create_all_type_units): Rewrite.
7898         (init_cu_die_reader): New arg dwo_file, all callers updated.
7899         (init_and_read_dies_worker): Get section from
7900         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
7901         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7902         continue reading the CU/TU from there.
7903         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7904         updated.  Get section from this_cu->info_or_types_section.
7905         (create_all_comp_units): Initialize this_cu->info_or_types_section.
7906         (skip_one_die): New cases DW_FORM_GNU_addr_index,
7907         DW_FORM_GNU_str_index.
7908         (hash_dwo_file, eq_dwo_file): New functions.
7909         (allocate_dwo_file_hash_table): New function.
7910         (hash_dwo_unit, eq_dwo_unit): New functions.
7911         (allocate_dwo_unit_table): New function.
7912         (dwarf2_locate_dwo_sections): New function.
7913         (struct create_dwo_info_table_data): New type.
7914         (create_debug_info_hash_table_reader): New function.
7915         (create_debug_info_hash_table): New function.
7916         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7917         (lookup_dwo_file): New function.
7918         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7919         (free_dwo_file, free_dwo_file_cleanup): New functions.
7920         (free_dwo_file_from_slot, free_dwo_files): New functions.
7921         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7922         (dwarf2_record_block_ranges): Ditto.
7923         (read_partial_die): Ditto.
7924         (process_enumeration_scope): Update to use type_offset_in_section.
7925         (read_full_die_1): New function.
7926         (read_full_die): Rewrite.
7927         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7928         DW_FORM_GNU_str_index.
7929         (read_addr_index_1, read_addr_index): New functions.
7930         (read_addr_index_from_leb128): New function.
7931         (struct dwarf2_read_addr_index_data): New type.
7932         (dwarf2_read_addr_index_reader): New function.
7933         (dwarf2_read_addr_index): New function.
7934         (read_str_index): New function.
7935         (leb128_size): New function.
7936         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7937         If processing a type unit from a DWO file, get the line section
7938         from the DWO file.
7939         (var_decode_location): Watch for DW_OP_GNU_addr_index.
7940         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7941         DW_FORM_GNU_str_index.
7942         (lookup_die_type): Check whether section offset of type's die is
7943         known before looking it up.  Remove assert.  Condition can
7944         legimately happen for inter-cu type references.
7945         (dwarf_attr_name): Handle Fission attributes.
7946         (dwarf_form_name): Handle Fission forms.
7947         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7948         DW_FORM_GNU_str_index.
7949         (follow_die_sig): Update to use type_offset_in_section.
7950         (decode_locdesc): New case DW_OP_GNU_addr_index.
7951         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7952         DW_FORM_GNU_str_index.
7953         (cu_debug_loc_section): New function.
7954         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7955         (dwarf2_per_objfile_free): Unmap .debug_addr section.
7956         Free DWO files if present.
7957         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7958
7959         Refactor DIE reading.
7960         * dwarf2read.c (dwarf2_per_objfile): Replace members
7961         debug_info_type_hash and debug_types_type_hash with die_type_hash.
7962         (die_reader_specs): New member "die_section".  Temporarily make
7963         member "buffer" non-const, pending constifying all info_ptr uses.
7964         (die_reader_func_ftype): New typedef.
7965         (dw2_get_file_names_reader): New function.
7966         (dw2_get_file_names): Rewrite.
7967         (read_and_check_type_unit_head): Rename arg type_offset to
7968         type_offset_in_tu.
7969         (create_all_type_units): Improve debugging message.
7970         Improve dummy type unit check.
7971         (init_cu_die_reader): New arg "section".  All callers updated.
7972         (init_and_read_dies_worker): New function.
7973         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7974         (init_cutu_and_read_dies_no_follow): New function.
7975         (init_cutu_and_read_dies_simple): New function.
7976         (process_psymtab_comp_unit_reader): New function.
7977         (process_psymtab_comp_unit): Delete args section,
7978         is_debug_types_section.  Rewrite.  All callers updated.
7979         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7980         All callers updated.  Rewrite.
7981         (load_partial_comp_unit_reader): New function.
7982         (load_partial_comp_unit): Rewrite.
7983         (skip_children): New arg reader.  Delete args buffer, cu.
7984         All callers updated.
7985         (skip_one_die): New arg reader.  Delete args buffer, cu.
7986         All callers updated.
7987         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
7988         All callers updated.
7989         (load_full_comp_unit_reader): New function.
7990         (load_full_comp_unit): Rewrite.
7991         (read_comp_unit): Delete.
7992         (read_die_and_children_1): Delete, contents moved ...
7993         (read_die_and_children): ... here.
7994         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
7995         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
7996         All callers updated.
7997         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
7998         All callers updated.
7999         (find_partial_die): Rewrite load_all_dies support.
8000         (read_attribute_value): New arg reader.  Delete args abfd, cu.
8001         All callers updated.
8002         (read_attribute): New arg reader.  Delete args abfd, cu.
8003         All callers updated.
8004         (load_full_type_unit): Add assert.
8005         (read_signatured_type_reader): New function.
8006         (read_signatured_type): Rewrite.
8007         (free_stack_comp_unit): Remove call to age_cached_comp_units.
8008         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
8009         All callers updated.  Set per_cu->cu = NULL after freeing it.
8010         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
8011         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
8012         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
8013         (set_die_type): Update.
8014         (get_die_type_at_offset): Update.
8015         (read_file_scope): Call prepare_one_comp_unit.
8016         (read_type_unit_scope): Ditto.
8017         (prepare_one_comp_unit): Set producer if present.
8018
8019 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
8020
8021         * probe.c (compile_rx_or_error): Silence ARI warning about missing
8022          gettext function on `error'.
8023
8024 2012-04-27  Doug Evans  <dje@google.com>
8025
8026         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
8027         is empty.
8028
8029 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8030             Tom Tromey  <tromey@redhat.com>
8031
8032         * breakpoint.c (struct breakpoint_objfile_data)
8033         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
8034         <exception_probes>: New fields.
8035         (free_breakpoint_probes): New function.
8036         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
8037         `_Unwind_DebugHook'.
8038         (create_exception_master_breakpoint): Likewise.
8039         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
8040         * infrun.c: Including necessary header files for handling SystemTap
8041         probes.
8042         (handle_inferior_event): Handling longjmp breakpoint and exceptions
8043         via SystemTap probes.
8044         (check_exception_resume): Remove `func' argument.  Handle exception
8045         unwinding breakpoint set via a SystemTap probe.
8046         (insert_exception_resume_from_probe): New function.
8047
8048 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8049             Tom Tromey  <tromey@redhat.com>
8050             Jan Kratochvil  <jan.kratochvil@redhat.com>
8051
8052         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
8053         (COMMON_OBS): Likewise.
8054         (HFILES_NO_SRCDIR): Add `probe'.
8055         * NEWS: Mention support for static and SystemTap probes.
8056         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
8057         SystemTap probes' arguments parser.
8058         * arm-linux-tdep.c: Including headers needed to perform the parsing
8059         of SystemTap probes' arguments.
8060         (arm_stap_is_single_operand): New function.
8061         (arm_stap_parse_special_token): Likewise.
8062         (arm_linux_init_abi): Initializing proper fields used by SystemTap
8063         probes' arguments parser.
8064         * ax-gdb.c (require_rvalue): Removing static declaration.
8065         (gen_expr): Likewise.
8066         * ax-gdb.h (gen_expr): Declaring function.
8067         (require_rvalue): Likewise.
8068         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
8069         (bkpt_probe_breakpoint_ops): New variable.
8070         (momentary_breakpoint_from_master): Set the `probe' value.
8071         (add_location_to_breakpoint): Likewise.
8072         (break_command_1): Using proper breakpoint_ops according to the
8073         argument passed by the user in the command line.
8074         (bkpt_probe_insert_location): New function.
8075         (bkpt_probe_remove_location): Likewise.
8076         (bkpt_probe_create_sals_from_address): Likewise.
8077         (bkpt_probe_decode_linespec): Likewise.
8078         (tracepoint_probe_create_sals_from_address): Likewise.
8079         (tracepoint_probe_decode_linespec): Likewise.
8080         (tracepoint_probe_breakpoint_ops): New variable.
8081         (trace_command): Using proper breakpoint_ops according to the
8082         argument passed by the user in the command line.
8083         (initialize_breakpoint_ops): Initializing breakpoint_ops for
8084         static probes on breakpoints and tracepoints.
8085         * breakpoint.h (struct bp_location) <probe>: New field.
8086         * cli-utils.c (skip_spaces_const): New function.
8087         (extract_arg): Likewise.
8088         * cli-utils.h (skip_spaces_const): Likewise.
8089         (extract_arg): Likewise.
8090         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
8091         * configure.ac: Append `stap-probe.o' to be generated when ELF
8092         support is present.
8093         * configure: Regenerate.
8094         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
8095         * elfread.c: Include `probe.h' and `arch-utils.h'.
8096         (probe_key): New variable.
8097         (elf_get_probes): New function.
8098         (elf_get_probe_argument_count): Likewise.
8099         (elf_evaluate_probe_argument): Likewise.
8100         (elf_compile_to_ax): Likewise.
8101         (elf_symfile_relocate_probe): Likewise.
8102         (stap_probe_key_free): Likewise.
8103         (elf_probe_fns): New variable.
8104         (elf_sym_fns): Add `sym_probe_fns' value.
8105         (elf_sym_fns_lazy_psyms): Likewise.
8106         (elf_sym_fns_gdb_index): Likewise.
8107         (_initialize_elfread): Initialize objfile cache for static
8108         probes.
8109         * gdb_vecs.h (struct probe): New forward declaration.
8110         (probe_p): New VEC declaration.
8111         * gdbarch.c: Regenerate.
8112         * gdbarch.h: Regenerate.
8113         * gdbarch.sh (stap_integer_prefix): New variable.
8114         (stap_integer_suffix): Likewise.
8115         (stap_register_prefix): Likewise.
8116         (stap_register_suffix): Likewise.
8117         (stap_register_indirection_prefix): Likewise.
8118         (stap_register_indirection_suffix): Likewise.
8119         (stap_gdb_register_prefix): Likewise.
8120         (stap_gdb_register_suffix): Likewise.
8121         (stap_is_single_operand): New function.
8122         (stap_parse_special_token): Likewise.
8123         (struct stap_parse_info): Forward declaration.
8124         * i386-tdep.c: Including headers needed to perform the parsing
8125         of SystemTap probes' arguments.
8126         (i386_stap_is_single_operand): New function.
8127         (i386_stap_parse_special_token): Likewise.
8128         (i386_elf_init_abi): Initializing proper fields used by SystemTap
8129         probes' arguments parser.
8130         * i386-tdep.h (i386_stap_is_single_operand): New function.
8131         (i386_stap_parse_special_token): Likewise.
8132         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
8133         * mipsread.c (ecoff_sym_fns): Likewise.
8134         * objfiles.c (objfile_relocate1): Support relocation for static
8135         probes.
8136         * parse.c (prefixify_expression): Remove static declaration.
8137         (initialize_expout): Likewise.
8138         (reallocate_expout): Likewise.
8139         * parser-defs.h (initialize_expout): Declare function.
8140         (reallocate_expout): Likewise.
8141         (prefixify_expression): Likewise.
8142         * ppc-linux-tdep.c: Including headers needed to perform the parsing
8143         of SystemTap probes' arguments.
8144         (ppc_stap_is_single_operand): New function.
8145         (ppc_stap_parse_special_token): Likewise.
8146         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8147         probes' arguments parser.
8148         * probe.c: New file, for generic statically defined probe support.
8149         * probe.h: Likewise.
8150         * s390-tdep.c: Including headers needed to perform the parsing of
8151         SystemTap probes' arguments.
8152         (s390_stap_is_single_operand): New function.
8153         (s390_gdbarch_init): Initializing proper fields used by SystemTap
8154         probes' arguments parser.
8155         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8156         * stap-probe.c: New file, for SystemTap probe support.
8157         * stap-probe.h: Likewise.
8158         * symfile.h: Include `gdb_vecs.h'.
8159         (struct sym_probe_fns): New struct.
8160         (struct sym_fns) <sym_probe_fns>: New field.
8161         * symtab.c (init_sal): Initialize `probe' field.
8162         * symtab.h (struct probe): Forward declaration.
8163         (struct symtab_and_line) <probe>: New field.
8164         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8165         locations.
8166         (stop_tracing): Likewise.
8167         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8168
8169 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8170             Tom Tromey  <tromey@redhat.com>
8171
8172         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8173         and to compile agent expressions.
8174         * infrun.c (siginfo_make_value): New argument `ignore'.
8175         (siginfo_funcs): New struct.
8176         (_initialize_infrun): New argument when calling
8177         `create_internalvar_type_lazy'.
8178         * thread.c (thread_id_make_value): New argument `ignore'.
8179         (thread_funcs): New struct.
8180         (_initialize_thread): New argument when calling
8181         `create_internalvar_type_lazy'.
8182         * tracepoint.c (sdata_make_value): New argument `ignore'.
8183         (sdata_funcs): New struct.
8184         (_initialize_tracepoint): New argument when calling
8185         `create_internalvar_type_lazy'.
8186         * value.c (make_value): New struct.
8187         (create_internalvar_type_lazy): New argument `data'.
8188         (compile_internalvar_to_ax): New function.
8189         (value_of_internalvar): Properly handling `make_value' case.
8190         (clear_internalvar): Likewise.
8191         (show_convenience): Adding `TRY_CATCH' block.
8192         * value.h (internalvar_make_value): Delete, replace by...
8193         (struct internalvar_funcs): ... this.
8194         (create_internalvar_type_lazy) <fun>: Delete argument.
8195         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8196         (compile_internalvar_to_ax): New function.
8197         * windows-tdep.c (tlb_make_value): New argument `ignore'.
8198         (tlb_funcs): New struct.
8199         (_initialize_windows_tdep): New argument when calling
8200         `create_internalvar_type_lazy'.
8201
8202 2012-04-27  Mark Wielaard  <mjw@redhat.com>
8203
8204         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8205         see whether it is an address or a constant offset from DW_AT_low_pc.
8206         (dwarf2_record_block_ranges): Likewise.
8207         (read_partial_die): Likewise.
8208
8209 2012-04-26  Mark Wielaard  <mjw@redhat.com>
8210
8211         * MAINTAINERS (Write After Approval): Add myself to the list.
8212
8213 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
8214
8215         * proc-utils.h (proc_prettyprint_signalset): New prototype.
8216         (proc_prettyprint_signal): Likewise.
8217         (proc_prettyprint_faultset): Likewise.
8218         (proc_prettyprint_fault): Likewise.
8219         (proc_prettyprint_actionset): Likewise.
8220         (proc_prettyprint_flags): Move to new proc-flags.c section.
8221         (proc_prettyfprint_flags): New prototype.
8222         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8223         (proc_syscall, proc_cursig): Likewise.
8224         (proc_set_kill_on_last_close): Likewise.
8225         (proc_unset_kill_on_last_close): Likewise.
8226         (proc_set_watchpoint): Make static.
8227         (proc_delete_dead_threads): Likewise.
8228         (procfs_set_watchpoint): Likewise.
8229         (_initialize_procfs): Add prototype.
8230         * proc-events.c: Include proc-utils.h.
8231         (init_syscall_table): Make static.
8232         * proc-api.c (_initialize_proc_api): Add prototype.
8233         * proc-flags.c: Include proc-utils.h.
8234
8235 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
8236
8237         * configure.ac: Add AC_ARG_PROGRAM.
8238         * configure: Regenerate.
8239
8240 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8241
8242         Fix DW_AT_lower_bound defaults for DWARF-4+.
8243         * dwarf2read.c (read_subrange_type): Remove initialization of low and
8244         high.  New variable low_default_is_valid.  Implement DWARF-4+
8245         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
8246         no default by the DWARF standard.
8247
8248 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
8249             Maciej W. Rozycki  <macro@codesourcery.com>
8250
8251         * infrun.c (handle_inferior_event): Move the check for return
8252         trampolines ahead of the check for function trampolines.
8253         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8254         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8255         (mips_str_mips16_ret_stub): Likewise.
8256         (mips_str_call_fp_stub): Likewise.
8257         (mips_str_call_stub): Likewise.
8258         (mips_str_fn_stub): Likewise.
8259         (mips_str_pic): Likewise.
8260         (mips_in_frame_stub): New function.
8261         (mips_unwind_pc): Return the return address rather than the PC
8262         if the PC of an intermediate frame is inside a call thunk.
8263         (mips_is_stub_suffix): New function.
8264         (mips_is_stub_mode): Likewise.
8265         (mips_get_mips16_fn_stub_pc): Likewise.
8266         (mips_skip_mips16_trampoline_code): Update to handle all the
8267         currently generated stub types.  Don't recurse into __fn_stub
8268         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
8269         Use cooked register accesses.
8270         (mips_in_return_stub): Reintroduce function.
8271         (mips_skip_trampoline_code): Traverse trampolines recursively.
8272         (mips_gdbarch_init): Handle MIPS16 return trampolines.
8273
8274 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
8275
8276         GDB 7.4.1 released.
8277
8278 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
8279
8280         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8281         * features/arm-with-m-vfp-d16.xml: New file. Describes
8282         Cortex-M with VFPv4-sp-d16 FPU register layout.
8283         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8284         * features/arm-with-m-vfp-d16.c: New. Generated from above.
8285         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8286         (arm-register_g_packet_guesses): Add vfp-d16 guess.
8287         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8288
8289 2012-04-25  Doug Evans  <dje@google.com>
8290
8291         * cli/cli-decode.c (print_doc_line): Use stream instead of
8292         current_uiout.
8293
8294 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
8295
8296         * features/arm-with-iwmmxt.c: Regenerate.
8297         * features/arm-with-m-fpa-layout.c: Likewise.
8298         * features/arm-with-m.c: Likewise.
8299         * features/arm-with-neon.c: Likewise.
8300         * features/arm-with-vfpv2.c: Likewise.
8301         * features/arm-with-vfpv3.c: Likewise.
8302         * features/mips-dsp-linux.c: Likewise.
8303         * features/mips-linux.c: Likewise.
8304         * features/mips64-dsp-linux.c: Likewise.
8305         * features/mips64-linux.c: Likewise.
8306         * features/s390-linux32.c: Likewise.
8307         * features/s390-linux32v1.c: Likewise.
8308         * features/s390-linux32v2.c: Likewise.
8309         * features/s390-linux64.c: Likewise.
8310         * features/s390-linux64v1.c: Likewise.
8311         * features/s390-linux64v2.c: Likewise.
8312         * features/s390x-linux64.c: Likewise.
8313         * features/s390x-linux64v1.c: Likewise.
8314         * features/s390x-linux64v2.c: Likewise.
8315         * features/tic6x-c62x-linux.c: Likewise.
8316         * features/tic6x-c62x.c: Likewise.
8317         * features/tic6x-c64x-linux.c: Likewise.
8318         * features/tic6x-c64x.c: Likewise.
8319         * features/tic6x-c64xp-linux.c: Likewise.
8320         * features/tic6x-c64xp.c: Likewise.
8321         * target-descriptions.c: Only generate `field_type' and `type'
8322         variables when needed.
8323
8324 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
8325
8326         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8327
8328 2012-04-25  Doug Evans  <dje@google.com>
8329
8330         Initial pass at Go language support.
8331         * NEWS: Mention Go.
8332         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8333         go-valprint.c.
8334         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8335         (YYFILES): Add go-exp.c.
8336         (YYOBJ): Add go-exp.o.
8337         (local-maintainer-clean): Delete go-exp.c.
8338         * defs.h (enum language): Add language_go.
8339         * dwarf2read.c: #include "go-lang.h".
8340         (fixup_go_packaging): New function.
8341         (process_full_comp_unit): Call it when processing Go CUs.
8342         (dwarf2_physname): Add Go support.
8343         (read_file_scope): Handle missing language spec for GNU Go.
8344         (set_cu_language): Handle DW_LANG_Go.
8345         * go-exp.y: New file.
8346         * go-lang.h: New file.
8347         * go-lang.c: New file.
8348         * go-typeprint.c: New file.
8349         * go-valprint.c: New file.
8350         * symtab.c: #include "go-lang.h".
8351         (symbol_set_language): Handle language_go.
8352         (symbol_find_demangled_name, symbol_set_names): Ditto.
8353         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8354
8355 2012-04-24  Jim Meyering  <meyering@redhat.com>
8356
8357         avoid a few strncpy-induced buffer overruns
8358         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8359         fname and psargs before trying to concatenate.
8360         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8361         "name" before applying strchr.
8362
8363 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
8364
8365         * CONTRIBUTE: Use unified diff instead of context diff when
8366         generating patches.
8367
8368 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
8369
8370         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8371         code.  Handle JR.HB correctly.
8372
8373 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
8374
8375         * mips-tdep.c
8376         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8377         with the other MIPS16 helpers.
8378
8379 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
8380
8381         * observer.sh: Conditionally declare `args', thus cleaning up
8382         unused instances of this variable.
8383
8384 2012-04-24  Yao Qi  <yao@codesourcery.com>
8385
8386         Revert this patch to allow breakpoint always-inserted
8387         in record target.
8388         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
8389         * breakpoint.c: Include record.h.
8390         (breakpoints_always_inserted_mode): Return false when the record
8391         target is in use.
8392
8393         * breakpoint.c (iterate_over_bp_locations): New.
8394         * breakpoint.h: Declare.
8395         New typedef walk_bp_location_callback.
8396         * record.c (record_open): Call record_init_record_breakpoints.
8397         (record_sync_record_breakpoints): New.
8398         (record_init_record_breakpoints): New.
8399         * NEWS: Mention supporting breakpoint always-inserted mode in
8400         record target.
8401
8402 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
8403
8404         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8405         any thread.
8406
8407 2012-04-24  Yao Qi  <yao@codesourcery.com>
8408
8409         * breakpoint.c (ep_is_catchpoint): Renamed to ...
8410         (is_catchpoint): ... it.
8411         (print_one_breakpoint_location): Caller update.
8412         * breakpoint.h: Update declaration.
8413
8414 2012-04-23  David S. Miller  <davem@davemloft.net>
8415
8416         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8417
8418 2012-04-23  Tom Tromey  <tromey@redhat.com>
8419
8420         * buildsym.c (add_free_pendings): Remove.
8421         * buildsym.h (add_free_pendings): Remove.
8422
8423 2012-04-23  Doug Evans  <dje@google.com>
8424
8425         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8426         attr.u.unsnd instead of attr.u.addr.
8427         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8428         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8429         DW_FORM_ref_udata.
8430         (dump_die_shallow): Update cases DW_FORM_ref_addr,
8431         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
8432         DW_FORM_ref_udata.
8433         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8434
8435 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
8436
8437         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8438         (mips_o32_return_value): Likewise.
8439         (mips_o64_return_value): Likewise.
8440
8441 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
8442
8443         * ada-lang.c (ada_evaluate_subexp): Add cases for
8444         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8445         their treatment in eval.c.
8446
8447 2012-04-21  David S. Miller  <davem@davemloft.net>
8448
8449         * sparc-tdep.c (X_DISP10): Define.
8450         (sparc_analyze_control_transfer): Handle compare-and-branch.
8451
8452 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
8453
8454         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8455         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8456
8457 2012-04-20  Nigel Stephens  <nigel@mips.com>
8458             Maciej W. Rozycki  <macro@codesourcery.com>
8459
8460         * mips-tdep.c (mips_float_register_p): New function.
8461         (mips_convert_register_float_case_p): Use mips_float_register_p.
8462         (mips_register_type): Likewise.
8463         (mips_print_register): Likewise.
8464         (print_gp_register_row): Likewise.
8465         (mips_print_registers_info): Likewise.
8466
8467 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
8468
8469         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8470         of mips16 symbols.
8471
8472 2012-04-20  Andrew Pinski  <apinski@cavium.com>
8473
8474         * MAINTAINERS (Write After Approval): Add myself to the list.
8475
8476 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8477
8478         * MAINTAINERS: Update my e-mail address.
8479
8480 2012-04-20  Pedro Alves  <palves@redhat.com>
8481
8482         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8483         $srcdir.
8484         * configure: Regenerate.
8485
8486 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8487
8488         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
8489         declaration.
8490         * gdb_vecs.h: Declare `const_char_ptr' VEC.
8491
8492 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
8493
8494         Fix compilation compatibility with python-2.4
8495         * python/py-type.c (convert_field): Cast ADDRSTRING for
8496         PyObject_SetAttrString as non-const.  New comment.
8497
8498 2012-04-19  Tom Tromey  <tromey@redhat.com>
8499
8500         * top.c (quit_target): Use all_cleanups.
8501         * main.c (captured_command_loop): Use all_cleanups.
8502         * exceptions.c (throw_exception): Use all_cleanups.
8503
8504 2012-04-19  Pedro Alves  <palves@redhat.com>
8505
8506         * Makefile.in (GNULIB_BUILDDIR): New.
8507         (LIBGNU, INCGNU, GNULIB_H): Adjust.
8508         (SUBDIRS): Add $(GNULIB_BUILDDIR).
8509         (CLEANDIRS). Remove gnulib/import.
8510         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8511         (all-lib): Ditto.
8512         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8513         (gnulib/import/Makefile): Replace gnulib/import with
8514         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
8515         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8516         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
8517         acx_configure_dir.m4.
8518         * acinclude.m4: Include acx_configure_dir.m4.
8519         * acx_configure_dir.m4: New file.
8520         * aclocal.m4: Regenerate.
8521         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8522         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
8523         (GNULIB): New variable.
8524         (GNULIB_STDINT_H): Adjust.
8525         (AC_OUTPUT): Don't output gnulib/Makefile.
8526         * gdb/defs.h: Include build-gnulib/config.h.
8527         * aclocal.m4: Regenerate.
8528         * config.in: Regenerate.
8529         * configure: Regenerate.
8530
8531         * gnulib/Makefile.in: New file.
8532         * gnulib/configure.ac: New file.
8533         * gnulib/aclocal.m4: New file.
8534         * gnulib/config.in: New file.
8535         * gnulib/configure: New file.
8536         * gnulib/: Re-run gnulib-tool to adjust.
8537
8538 2012-04-19  Doug Evans  <dje@google.com>
8539
8540         * cleanups.h (struct cleanup): Move to cleanups.c.
8541         (make_cleanup_dtor_ftype): New typedef.
8542         (make_cleanup_dtor): Use it.
8543         (ALL_CLEANUPS): Replace with ...
8544         (all_cleanups): ... this.  Declare.  All uses updated.
8545         * cleanups.c: #include "gdb_assert.h".
8546         (sentinel_cleanup): New static global.
8547         (SENTINEL_CLEANUP): Define.
8548         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8549         (make_my_cleanup2): Assert result is non-NULL.
8550         (all_cleanups): New function.
8551         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8552         of NULL.
8553
8554 2012-04-19  Pedro Alves  <palves@redhat.com>
8555
8556         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8557         Adjust paths to gnulib imported files.
8558
8559 2012-04-19  Pedro Alves  <palves@redhat.com>
8560
8561         * gnulib/: Move whole directory ...
8562         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8563         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8564         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8565         (aclocal_m4_deps): Adjust.
8566         * aclocal.m4: Regenerate.
8567         * configure: Regenerate.
8568         * configure.ac: Adjust AC_OUTPUT output.
8569
8570 2012-04-19  Yao Qi  <yao@codesourcery.com>
8571
8572         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8573         (vec.o): New rule.
8574         * vec.c: Move it ...
8575         * common/vec.c: ... here.
8576         * vec.h: Move it ...
8577         * common/vec.h: ... here.
8578
8579 2012-04-19  Yao Qi  <yao@codesourcery.com>
8580
8581         * gdb-code-style.el: New.
8582
8583 2012-04-18  Pedro Alves  <palves@redhat.com>
8584
8585         Update gnulib from latest git.
8586         (639ea5ae15e39fe48d43e04864b2997301e4b969)
8587
8588         * gnulib/Makefile.am: Update.
8589         * gnulib/dummy.c: Update.
8590         * gnulib/extra/arg-nonnull.h: Update.
8591         * gnulib/extra/c++defs.h: Update.
8592         * gnulib/extra/update-copyright: Update.
8593         * gnulib/extra/warn-on-use.h: Update.
8594         * gnulib/inttypes.in.h: Update.
8595         * gnulib/m4/00gnulib.m4: Update.
8596         * gnulib/m4/extensions.m4: Update.
8597         * gnulib/m4/gnulib-cache.m4: Update.
8598         * gnulib/m4/gnulib-common.m4: Update.
8599         * gnulib/m4/gnulib-comp.m4: Update.
8600         * gnulib/m4/gnulib-tool.m4: Update.
8601         * gnulib/m4/include_next.m4: Update.
8602         * gnulib/m4/inttypes-pri.m4: Update.
8603         * gnulib/m4/inttypes.m4: Update.
8604         * gnulib/m4/longlong.m4: Update.
8605         * gnulib/m4/memchr.m4: Update.
8606         * gnulib/m4/memmem.m4: Update.
8607         * gnulib/m4/mmap-anon.m4: Update.
8608         * gnulib/m4/multiarch.m4: Update.
8609         * gnulib/m4/onceonly.m4: Update.
8610         * gnulib/m4/stddef_h.m4: Update.
8611         * gnulib/m4/stdint.m4: Update.
8612         * gnulib/m4/string_h.m4: Update.
8613         * gnulib/m4/warn-on-use.m4: Update.
8614         * gnulib/m4/wchar_h.m4: Update.
8615         * gnulib/m4/wchar_t.m4: Update.
8616         * gnulib/m4/wint_t.m4: Update.
8617         * gnulib/memchr.c: Update.
8618         * gnulib/memmem.c: Update.
8619         * gnulib/stddef.in.h: Update.
8620         * gnulib/stdint.in.h: Update.
8621         * gnulib/str-two-way.h: Update.
8622         * gnulib/string.in.h: Update.
8623         * gnulib/wchar.in.h: Update.
8624
8625         * gnulib/extra/arg-nonnull.h: Delete.
8626         * gnulib/extra/c++defs.h: Delete.
8627         * gnulib/extra/warn-on-use.h: Delete.
8628         * gnulib/m4/wchar_h.m4: Delete.
8629         * gnulib/m4/wint_t.m4: Delete.
8630         * gnulib/wchar.in.h: Delete.
8631
8632         * gnulib/extra/snippets/arg-nonnull.h: New.
8633         * gnulib/extra/snippets/c++defs.h: New.
8634         * gnulib/extra/snippets/warn-on-use.h: New.
8635
8636         * aclocal.m4: Regenerate.
8637         * config.in: Regenerate.
8638         * configure: Regenerate.
8639         * gnulib/Makefile.in: Regenerate.
8640
8641 2012-04-18  Pedro Alves  <palves@redhat.com>
8642
8643         Reimport the update-copyright module from gnulib
8644         (250b80067c1e1d8faa0c42fb572f721975b929c5).
8645
8646         * configure: Regenerate.
8647         * gnulib/Makefile.am: Update.
8648         * gnulib/Makefile.in: Regenerate.
8649         * gnulib/extra/update-copyright: Update.
8650         * gnulib/m4/gnulib-cache.m4: Update.
8651         * gnulib/m4/gnulib-comp.m4: Update.
8652
8653 2012-04-18  Tristan Gingold  <gingold@adacore.com>
8654
8655         * configure.ac (aix): Put -lpthread into libs.
8656         * configure: Regenerate.
8657
8658 2012-04-18  Tom Tromey  <tromey@redhat.com>
8659
8660         * linespec.c (convert_linespec_to_sals): Don't use
8661         SYMBOL_OBJ_SECTION.
8662         (compare_msymbols): Arguments are minsym_and_objfile, not
8663         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
8664
8665 2012-04-18  Pedro Alves  <palves@redhat.com>
8666
8667         Revert gnulib/ part of:
8668         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
8669         Copyright year update in most files (performed by copyright.sh).
8670
8671 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8672
8673         Fix 64-bit constants on 32-bit hosts.
8674         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8675         from unsigned long to ULONGEST.
8676         (read_signed_leb128): Change declaration return type from long to
8677         LONGEST.
8678         (dwarf2_const_value_attr): Change declaration parameter value from long
8679         to LONGEST.
8680         (dwarf2_compute_name): Change variable value from long to LONGEST.
8681         (read_unsigned_leb128): Change return type, variable result and some
8682         casts from unsigned long to ULONGEST.
8683         (read_signed_leb128): Change return type, variable result and some
8684         casts from long to LONGEST.
8685         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8686         value from long to LONGEST.
8687         (dwarf2_const_value): Change variable value from long to LONGEST.
8688         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8689         plongest and hex_string.
8690         * symtab.h (struct general_symbol_info): Change ivalue from long to
8691         LONGEST, remove the comment.
8692         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8693         Change SYMBOL_VALUE format strings to use plongest and hex_string.
8694
8695 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8696
8697         PR symtab/7259:
8698         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8699         * ada-lang.c (ada_discrete_type_high_bound)
8700         (ada_discrete_type_low_bound): Fix function comment.  Use
8701         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8702         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8703         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8704         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8705         Use TYPE_FIELD_ENUMVAL.
8706         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8707         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8708         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8709         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
8710         TYPE_CODE_ENUM.
8711         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8712         * dwarf2read.c (process_enumeration_scope): Likewise.
8713         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8714         field.bitpos.
8715         (class StructMainTypePrettyPrinter): Support also
8716         FIELD_LOC_KIND_ENUMVAL.
8717         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8718         TYPE_CODE_ENUM.
8719         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8720         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8721         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8722         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
8723         field enumval.
8724         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8725         accommodate enumval.
8726         (struct call_site): Adjust loc_kind to accommodate enumval.
8727         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8728         (TYPE_FIELD_ENUMVAL): New macros.
8729         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8730         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8731         TYPE_CODE_ENUM.
8732         * p-typeprint.c (pascal_type_print_base): Likewise.
8733         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8734         enumval.
8735         * python/lib/gdb/types.py (make_enum_dict): Likewise.
8736         * python/py-type.c (convert_field): New variable addrstring.  Use
8737         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8738         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8739         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8740         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8741         TYPE_CODE_ENUM.
8742         * valprint.c (generic_val_print): Likewise.
8743
8744 2012-04-17  Doug Evans  <dje@google.com>
8745
8746         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8747
8748         * dwarf2read.c: Whitespace fixes.
8749         (lookup_signatured_type): Tweak comment.
8750         (get_die_type_at_offset): Fix comment.
8751
8752 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
8753
8754         * xcoffread.c (xcoff_secnum_to_sections): New function.
8755         (secnum_to_section, secnum_to_bfd_section): Reimplement
8756         using xcoff_secnum_to_sections.  Rename "secnum" parameter
8757         into "n_scnum".
8758         (RECORD_MINIMAL_SYMBOL): Delete.
8759         (record_minimal_symbol): New function.
8760         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8761         by call to record_minimal_symbol and set misc_func_recorded
8762         to 1.  Set last_csect_sec to the XCOFF section index instead
8763         of GDB's section_offset index.  Update calls to
8764         prim_record_minimal_symbol_and_info to pass the BFD section
8765         as well.
8766
8767 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
8768
8769         * xcoffread.c (read_xcoff_symtab): Delete variables
8770         last_csect_val and last_csect_sec and associated code.
8771
8772 2012-04-17  Doug Evans  <dje@google.com>
8773
8774         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8775         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8776         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8777         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8778
8779         * cleanups.h: New file.
8780         * cleanups.c: New file.
8781         * Makefile.in (SFILES): Add cleanups.c.
8782         (HFILES_NO_SRCDIR): Add cleanups.h.
8783         (COMMON_OBS): Add cleanups.o.
8784         * defs.h (struct cleanup): Moved to cleanups.h.
8785         (do_cleanups,do_final_cleanups): Ditto.
8786         (discard_cleanups,discard_final_cleanups): Ditto
8787         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8788         (save_cleanups,save_final_cleanups): Ditto.
8789         (restore_cleanups,restore_final_cleanups): Ditto.
8790         (null_cleanup): Ditto.
8791         (make_my_cleanup,make_my_cleanup2): Ditto.
8792         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8793         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8794         (do_cleanups,do_final_cleanups): Ditto.
8795         (discard_cleanups,discard_final_cleanups): Ditto
8796         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8797         (save_cleanups,save_final_cleanups): Ditto.
8798         (restore_cleanups,restore_final_cleanups): Ditto.
8799         (null_cleanup): Ditto.
8800         (make_my_cleanup,make_my_cleanup2): Ditto.
8801         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8802
8803         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8804         make_my_cleanup.
8805         (make_cleanup_dyn_string_delete): Ditto.
8806         (make_cleanup_ui_file_delete): Ditto.
8807         (make_cleanup_ui_out_redirect_pop): Ditto.
8808         (make_cleanup_free_section_addr_info): Ditto.
8809         (make_cleanup_restore_integer): Ditto.
8810         (make_cleanup_unpush_target): Ditto.
8811         (make_cleanup_value_free_to_mark): Ditto.
8812         (make_cleanup_value_free): Ditto.
8813         (make_cleanup_free_so): Ditto.
8814
8815 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8816
8817         New option "set debug auto-load".
8818         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8819         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8820         (auto_load_safe_path_vec_update)
8821         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8822         if DEBUG_AUTO_LOAD.
8823         (file_is_auto_load_safe): New parameters debug_fmt and ....
8824         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8825         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8826         caller by explanatory string.
8827         (_initialize_auto_load): Register "set debug auto-load".
8828         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8829         and ....
8830         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8831         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8832         by explanatory string.
8833         * main.c (captured_main): Likewise.
8834         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8835         (source_section_scripts): Likewise.
8836
8837 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8838
8839         New option "set auto-load safe-path".
8840         * NEWS: New commands "set auto-load safe-path"
8841         and "show auto-load safe-path".
8842         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8843         (auto_load_safe_path, auto_load_safe_path_vec)
8844         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8845         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8846         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8847         (source_gdb_script_for_objfile): New variable is_safe.  Call
8848         file_is_auto_load_safe.  Return if it is not.
8849         (struct loaded_script): New field loaded.
8850         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
8851         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
8852         output "Missing" to "No".
8853         (_initialize_auto_load): New variable cmd.  Initialize
8854         auto_load_safe_path.  Register "set auto-load safe-path",
8855         "show auto-load safe-path" and "add-auto-load-safe-path".
8856         * auto-load.h (maybe_add_script): Add parameter loaded.
8857         (file_is_auto_load_safe): New declaration.
8858         * config.in: Regenerate.
8859         * configure: Regenerate.
8860         * configure.ac: New parameters --with-auto-load-safe-path
8861         and --without-auto-load-safe-path.
8862         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8863         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8864         * main.c (captured_main): Check file_is_auto_load_safe for
8865         LOCAL_GDBINIT.
8866         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8867         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
8868         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
8869         not.
8870
8871 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8872
8873         auto-load: Implementation.
8874         * NEWS: New descriptions for "info auto-load",
8875         "info auto-load gdb-scripts", "info auto-load python-scripts",
8876         "info auto-load local-gdbinit" and "info auto-load libthread-db".
8877         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8878         and "show auto-load-scripts".  New description for "set auto-load",
8879         "show auto-load", "set auto-load gdb-scripts",
8880         "show auto-load gdb-scripts", "set auto-load python-scripts",
8881         "show auto-load python-scripts", "set auto-load local-gdbinit",
8882         "show auto-load local-gdbinit", "set auto-load libthread-db" and
8883         "show auto-load libthread-db".
8884         * auto-load.c: Remove include python/python-internal.h.  Add includes
8885         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8886         cli/cli-setshow.h.
8887         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8888         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8889         (gdbpy_global_auto_load): Rename to ...
8890         (global_auto_load): ... here.
8891         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8892         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8893         (script_language_gdb, source_gdb_script_for_objfile): New.
8894         (struct loaded_script): New field language.
8895         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8896         LANGUAGE.
8897         (maybe_add_script): Add parameter language.  Drop redundant
8898         entry.full_path initialization.  Initialize entry.language and
8899         (*slot)->language.
8900         (auto_load_objfile_script): Change parameter suffix to language.
8901         Remove the call of maybe_add_script.
8902         Call language->source_script_for_objfile.
8903         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8904         New.
8905         (collect_matching_scripts): Adjust it for
8906         struct collect_matching_scripts_data.
8907         (auto_load_info_scripts_pattern_nl): New variable.
8908         (info_auto_load_scripts): Rename to ...
8909         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
8910         for struct collect_matching_scripts_data.
8911         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8912         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8913         (auto_load_show_cmdlist_get, info_auto_load_cmd)
8914         (auto_load_info_cmdlist_get): New.
8915         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8916         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
8917         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8918         "info auto-load local-gdbinit".
8919         * auto-load.h (struct script_language): New.
8920         (gdbpy_global_auto_load): Rename to ...
8921         (global_auto_load): ... here.
8922         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8923         (auto_load_local_gdbinit_loaded): New declarations.
8924         (maybe_add_script): New parameter language.
8925         (auto_load_objfile_script): Change parameter suffix to language.
8926         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8927         (auto_load_info_scripts, auto_load_set_cmdlist_get)
8928         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8929         declarations.
8930         * linux-thread-db.c: Include auto-load.h and ctype.h.
8931         (auto_load_thread_db, show_auto_load_thread_db): New.
8932         (struct thread_db_info): New field filename.
8933         (delete_thread_db_info): Call xfree for FILENAME.
8934         (try_thread_db_load): Initialize FILENAME.
8935         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8936         if !AUTO_LOAD_THREAD_DB.
8937         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8938         (_initialize_thread_db): Install auto_load_thread_db
8939         as "set auto-load libthread-db" and install info_auto_load_libthread_db
8940         as "info auto-load libthread-db".
8941         * main.c (captured_main): Rename gdbpy_global_auto_load to
8942         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8943         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8944         (print_gdb_help): Extend the help for 'local init file'.
8945         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8946         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8947         (auto_load_scripts): Rename to ...
8948         (auto_load_python_scripts): ... here, update the comment.
8949         (gdbpy_load_auto_script_for_objfile): New declaration.
8950         (show_auto_load_python_scripts, script_language_python)
8951         (gdbpy_load_auto_script_for_objfile): New.
8952         (source_section_scripts): Refactor the code.
8953         (load_auto_scripts_for_objfile): Rename to ...
8954         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8955         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8956         (info_auto_load_python_scripts): New.
8957         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8958         Rename "set auto-load-scripts" to "set auto-load python-scripts".
8959         Register "set auto-load-scripts" as its deprecated alias.  Register
8960         "info auto-load python-scripts".  Register "info auto-load-scripts" as
8961         its deprecated alias.
8962         (load_auto_scripts_for_objfile): Rename to ...
8963         (gdbpy_load_auto_scripts_for_objfile): ... here.
8964         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8965         (gdbpy_load_auto_scripts_for_objfile): ... here.
8966
8967 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8968
8969         auto-load: Move files.
8970         * Makefile.in (SFILES): Add auto-load.c.
8971         (HFILES_NO_SRCDIR): Add auto-load.h.
8972         (COMMON_OBS): Add auto-load.o.
8973         (distclean): Change .gdbinit for gdb-gdb.gdb.
8974         * auto-load.c: New file, with parts from python/py-auto-load.c.
8975         * auto-load.h: New file, with parts from python/python.h.
8976         * configure: Regenerate.
8977         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8978         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8979         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8980         * main.c: Include auto-load.h.
8981         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8982         command.h, observer.h and progspace.h to auto-load.c.  Add include
8983         auto-load.h.
8984         (gdbpy_global_auto_load, struct auto_load_pspace_info)
8985         (struct loaded_script, auto_load_pspace_data)
8986         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8987         (hash_loaded_script_entry, eq_loaded_script_entry)
8988         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8989         (maybe_add_script): Move to auto-load.c.
8990         (source_section_scripts): Change maybe_add_script parameters passing,
8991         use script_not_found_warning_print.
8992         (clear_section_scripts, auto_load_objfile_script)
8993         (auto_load_new_objfile, loaded_script_ptr)
8994         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8995         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8996         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8997         auto_load_new_objfile and info_auto_load_scripts initizations to
8998         auto-load.c.
8999         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
9000
9001 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9002
9003         Code cleanup.
9004         * charset.c (find_charset_names): Remove variables ix and elt.
9005         Use free_char_ptr_vec.
9006         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
9007         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
9008         debugdir_end.  New variable debugdir_len.
9009         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
9010         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
9011         declarations.
9012         * progspace.c (clear_program_space_solib_cache): Remove variables ix
9013         and elt.  Use free_char_ptr_vec.
9014         * source.c (add_path): Remove variables argv, arg and argv_index.
9015         New variables dir_vec, back_to, ix and name.
9016         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
9017         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
9018         no longer expecting DIRNAME_SEPARATOR.
9019         (openp): Remove variable p, p1 and len.  New variables dir_vec,
9020         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
9021         no longer expecting DIRNAME_SEPARATOR.
9022         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
9023         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
9024         debugdir_end.
9025         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
9026         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
9027         (dirnames_to_char_ptr_vec): New functions.
9028
9029 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9030
9031         Code cleanup.
9032         * source.c (add_path): Remove always true conditional 'p == 0' and
9033         unindent its code block.
9034
9035 2012-04-17  Pedro Alves  <palves@redhat.com>
9036
9037         * gdbtypes.h (FIELD_BITPOS): Rename to ...
9038         (FIELD_BITPOS_LVAL): ... this.
9039         (FIELD_BITPOS): New.
9040         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
9041         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
9042         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
9043         SET_FIELD_BITPOS.
9044         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
9045         SET_FIELD_BITPOS.
9046         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
9047         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
9048         * target-descriptions.c (tdesc_gdb_type): Adjust to use
9049         SET_FIELD_BITPOS.
9050
9051 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
9052
9053         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
9054         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
9055         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
9056         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
9057         * jv-lang.c (java_link_class_type): Likewise, once.
9058         * stabsread.c (read_enum_type): Likewise.
9059
9060 2012-04-16  Yao Qi  <yao@codesourcery.com>
9061
9062         * common/agent.c (agent_run_command): Add one more parameter `len'.
9063         Update callers.
9064         * common/agent.h: Update declaration.
9065         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9066         Update.
9067         (linux_child_static_tracepoint_markers_by_strid): Ditto.
9068
9069 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
9070
9071         PR mi/13393
9072         * value.c (value_actual_type): New function.
9073         * value.h (value_actual_type): New declaration.
9074         * varobj.c (update_type_if_necessary): New function.
9075         (varobj_create): Call value_actual_type instead of
9076         value_type.
9077         (install_dynamic_child): distinct changed and type changed MI variable
9078         objects.
9079         (update_dynamic_varobj_children): Updated for install_dynamic_child
9080         change.  All callers updated.
9081         (varobj_update): Support for MI variable object type change if
9082         the value changed and RTTI is used to determine the type.
9083         (create_child_with_value): Call value_actual_type instead of
9084         value_type.
9085         (adjust_value_for_child_access): Extended with a new parameter which
9086         specify whether the given value should be casted to enclosing type.
9087         All callers updated.
9088
9089 2012-04-14  Yao Qi  <yao@codesourcery.com>
9090
9091         Import gnulib module inttypes from git
9092         (250b80067c1e1d8faa0c42fb572f721975b929c5)
9093         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
9094         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
9095         gnulib/m4/inttypes-pri.m4
9096         * aclocal.m4, config.in, configure: Regenerated.
9097         * gnulib/Makefile.am: Update.
9098         * gnulib/Makefile.in: Update.
9099         * gnulib/m4/gnulib-cache.m4: Update.
9100         * gnulib/m4/gnulib-comp.m4: Update.
9101         * gnulib/inttypes.in.h: New.
9102         * gnulib/m4/inttypes-pri.m4: New.
9103         * gnulib/m4/inttypes.m4: New.
9104
9105 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
9106
9107         * infrun.c (resume): Update PC address to the real PC after
9108         preparing to do displaced stepping.
9109
9110 2012-04-12  Doug Evans  <dje@google.com>
9111
9112         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
9113         All callers updated.
9114
9115 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
9116
9117         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
9118
9119 2012-04-12  Doug Evans  <dje@google.com>
9120
9121         * dwarf2read.c (create_all_type_units): Renamed from
9122         create_debug_types_hash_table.  All callers updated.
9123
9124         * dwarf2read.c (create_signatured_type_table_from_index): Rename
9125         local type_sig to sig_type, type_offset to type_offset_in_tu.
9126         (hash_signatured_type): Renamed from hash_type_signature,
9127         all callers updated.
9128         (eq_signatured_type): Renamed from eq_type_signature,
9129         all callers updated.
9130         (create_debug_types_hash_table): Rename local type_sig to sig_type.
9131         (process_enumeration_scope): Ditto.
9132         (lookup_signatured_type_at_offset): Ditto.
9133         (load_full_type_unit, read_signatured_type): Ditto.
9134
9135 2012-04-12  Yao Qi  <yao@codesourcery.com>
9136
9137         * remote.c (async_remote_interrupt): Correct function name in
9138         debug message.
9139         (async_remote_interrupt_twice): Ditto.
9140
9141 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
9142
9143         * source.c (find_and_open_source): Consistently pass resulting
9144         full path through xfullpath.
9145
9146 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9147
9148         Provide more specific displaced-stepping memory error message.
9149         * infrun.c (displaced_step_prepare): New variable status.  Call
9150         target_read_memory instead of read_memory, provide more specific
9151         error message.
9152
9153 2012-04-11  Tristan Gingold  <gingold@adacore.com>
9154
9155         PR gdb/13901
9156         * darwin-nat.c (darwin_execvp): Revert previous patch.
9157
9158 2012-04-11  Tristan Gingold  <gingold@adacore.com>
9159
9160         PR gdb/13901
9161         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9162         in case of change.
9163
9164 2012-04-11  Tristan Gingold  <gingold@adacore.com>
9165
9166         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9167         warning.
9168
9169 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
9170
9171         New command 'explore' which helps explore values and types in
9172         scope.
9173         * NEWS: Add an entry about the new 'explore' command.
9174         * data-directory/Makefile.in: Add gdb/command/explore.py
9175         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
9176         command using the GDB Python API.
9177
9178 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
9179
9180         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9181         extension in jump target calculation.
9182
9183 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
9184
9185         * mips-tdep.c (mips32_next_pc): Handle JALX.
9186
9187 2012-04-10  Yao Qi  <yao@codesourcery.com>
9188
9189         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9190
9191 2012-04-10  Yao Qi  <yao@codesourcery.com>
9192
9193         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9194         and gnulib/m4/gnulib-tool.m4.
9195
9196 2012-04-10  Doug Evans  <dje@google.com>
9197
9198         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9199         (load_partial_dies): Clarify comment.
9200         (find_partial_die): Support rereading type units.
9201         Clarify CU handling, if we know offset is in CU, don't search for the
9202         containing CU.  Add comment regarding memory waste.
9203
9204 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9205
9206         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9207         i386/x32-avx and i386/x32-avx-linux.
9208         (i386/x32-expedite): New.
9209         (i386/x32-linux-expedite): Likewise.
9210         (i386/x32-avx-expedite): Likewise.
9211         (i386/x32-avx-linux-expedite): Likewise.
9212         ($(outdir)/i386/x32.dat): Likewise.
9213         ($(outdir)/i386/x32-linux.dat): Likewise.
9214         ($(outdir)/i386/x32-avx.dat): Likewise.
9215         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9216
9217         * features/i386/x32-avx-linux.xml: New file.
9218         * features/i386/x32-avx.xml: Likewise.
9219         * features/i386/x32-core.xml: Likewise.
9220         * features/i386/x32-linux.xml: Likewise.
9221         * features/i386/x32.xml: Likewise.
9222
9223         * features/i386/x32-avx-linux.c: New.  Generated.
9224         * features/i386/x32-avx.c: Likewise.
9225         * features/i386/x32-linux.c: Likewise.
9226         * features/i386/x32.c: Likewise.
9227         * regformats/i386/x32-avx-linux.dat: Likewise.
9228         * regformats/i386/x32-avx.dat: Likewise.
9229         * regformats/i386/x32-linux.dat: Likewise.
9230         * regformats/i386/x32.dat: Likewise.
9231
9232 2012-04-10  Tristan Gingold  <gingold@adacore.com>
9233
9234         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9235         code to kill the inferior.
9236
9237 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
9238
9239         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9240         defines.
9241         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9242         defines.
9243         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9244         (yyvsp): New defines.
9245         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9246         defines.
9247         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9248         defines.
9249         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9250         defines.
9251         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9252         defines.
9253         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9254         defines.
9255
9256 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
9257
9258         * sparc64-tdep.c (sparc64_store_arguments)
9259         (sparc64_store_arguments): Fix coding style.
9260
9261 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
9262
9263         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9264         complex floats, adjust some related comments and tighten a related
9265         assertion.
9266         (sparc64_extract_return_value): Handle complex floats.
9267
9268 2012-04-07  Doug Evans  <dje@google.com>
9269
9270         * dwarf2read.c (load_partial_dies): Change condition to assert.
9271
9272 2012-04-06  Doug Evans  <dje@google.com>
9273
9274         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9275         "mov %rsp,%rbp".
9276
9277 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
9278
9279         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9280         fencepost error.
9281         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9282         (v850_gdbarch_init): Set `num_regs' as appropriate for the
9283         architecture.
9284
9285 2012-04-05  Keith Seitz  <keiths@redhat.com>
9286
9287         * linespec.c (decode_compound): Remove.
9288         (enum offset_relative_sign): New enum.
9289         (struct line_offset): New struct.
9290         (struct linespec): New struct.
9291         (struct linespec_state): Move file_symtabs,
9292         user_filename, and user_function into struct linespec.
9293         Make result an anonymous struct holding vectors of
9294         symbolp and minsym_and_objfile_d.
9295         Add language member.
9296         (enum ls_token_type): New enum.
9297         (linespec_keywords): New array.
9298         (struct ls_token): New struct.
9299         (struct ls_parser): New struct.
9300         (linespec_lexer_lex_number): New function.
9301         (linespec_lexer_lex_keyword): New function.
9302         (is_ada_operator): New function.
9303         (skip_quote_char): New function.
9304         (copy_token_string): New function.
9305         (is_closing_quote_enclosed): New function.
9306         (find_parameter_list_end): New function.
9307         (linespec_lexer_lex_string): New function.
9308         (linespec_lexer_lex_one): New function.
9309         (linespec_lexer_consume_token): New function.
9310         (linespec_lexer_peek_token): New function.
9311         (cplusplus_error): Remove unused function.
9312         (find_methods): Update comment.
9313         (find_toplevel_char): Return const.
9314         (is_objc_method_format): Remove unused function.
9315         (find_toplevel_string): New function.
9316         (is_linespec_boundary): Remove.
9317         (symbol_not_found_error): New function.
9318         (find_method_overload_end): Remove function.
9319         (unexpected_linespec_error): New function.
9320         (keep_name_info): Remove.
9321         (linespec_parse_line_offset): New function.
9322         (linespec_parse_basic): New function.
9323         (canonicalize_linespec): New function.
9324         (decode_line_internal): Remove.
9325         (create_sals_line_offset): New function adapted from
9326         decode_all_digits.
9327         (convert_linespec_to_sals): New function.
9328         (parse_linespec): New function.
9329         (linespec_parser_new): New function.
9330         (linespec_state_destructor): Change parameter type to
9331         struct linespec_state *.
9332         Add language parameter.
9333         Remove freeing of moved members.
9334         (linespec_parser_delete): New function.
9335         (decode_line_full): Use parse_linespec and linespec_parser_new.
9336         (decode_line_1): Likewise.
9337         (decode_indirect): Rename to ...
9338         (linespec_expression_to_pc): ... this and rewrite
9339         to simply find CORE_ADDR, storing this result for later
9340         conversion to SALs.
9341         (locate_first_half): Remove.
9342         (deocde_objc): Add parameter LS.
9343         Initialize new struct collect_info members.
9344         Handle minimal symbols, too.
9345         (decode_compound): Delete.
9346         (lookup_prefix_sym): Rewrite.
9347         (compare_msymbols): New function.
9348         (find_method): Rewrite.
9349         Do not call cplusplus_error.
9350         (symtabs_from_filename): Rewrite.
9351         (collect_function_symbols): Delete.
9352         (find_function_symbols): Rewrite without ARGPTR-style
9353         processing.
9354         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9355         (decode_dollar): Adapted and renamed to ...
9356         (linespec_parse_variable): ... this.
9357         (find_linespec_symbols): New function.
9358         (decode_label): Adapted and renamed to ...
9359         (find_label_symbols): ... this.
9360         (decode_digits_list_mode): Add and use LS argument.
9361         (decode_digits_ordinary): Likewise.
9362         (collect_symbols): Do not collect SALs, just symbols and msymbols.
9363         If in list mode, allow any symbol class.  Otherwise, only
9364         permit LOC_BLOCK symbols.
9365         (minsym_found): Update comments.
9366         (search_minsyms_for_name): Do not convert the matching symbol
9367         into a SAL.  Simply push the symbol and objfile into the
9368         result vector.
9369         (decode_variable): Delete. Contents adapted into
9370         find_linespec_symbols.
9371
9372         * cp-support.c (SKIP_SPACE): Remove.
9373         (operator_tokens): Remove unused global.
9374         (cp_validate_operator): Remove.
9375         * cp-support.h (cp_validate_operator): Remove declaration.
9376
9377 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9378
9379         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9380         for TYPE_VPTR_FIELDNO.
9381         * valprint.c (valprint_check_validity): Make it global, move the
9382         function comment ...
9383         * value.h (valprint_check_validity): ... to this new declaration.
9384
9385 2012-04-02  Tristan Gingold  <gingold@adacore.com>
9386
9387         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9388         the STATE32 api for i386 state.
9389         (i386_darwin_store_inferior_registers): Likewise.
9390
9391 2012-04-02  Tristan Gingold  <gingold@adacore.com>
9392
9393         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9394         SS offset.
9395         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9396         format_string.
9397
9398 2012-04-02  Tristan Gingold  <gingold@adacore.com>
9399
9400         PR gdb/13901
9401         * darwin-nat.c (darwin_execvp): Set binary preference.
9402
9403 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9404
9405         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9406
9407 2012-03-30  Tom Tromey  <tromey@redhat.com>
9408
9409         * python/python.c (gdbpy_decode_line): Move cleanup creation out
9410         of TRY_CATCH.  Fix error handling.
9411         * python/py-value.c (convert_value_from_python): Move 'old'
9412         declaration to innermost scope.
9413
9414 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9415             Andrey Smirnov  <andrew.smirnov@gmail.com>
9416
9417         -Wshadow warning fix.
9418         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9419         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9420         Adjust code accordingly.
9421
9422 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9423
9424         * ada-lang.c (symbol_completion_add): Rename parameter
9425         "encoded" into "encoded_p".  Ajust code and documentation
9426         accordingly.
9427
9428 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9429             Andrey Smirnov  <andrew.smirnov@gmail.com>
9430
9431         -Wshadow warning fix.
9432         * ada-lang.c (symbol_completion_add): Rename parameter
9433         "wild_match" into wild_match_p.  Update code and documentation
9434         accordingly.
9435
9436 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9437
9438         * ada-lang.c (symbol_completion_match): Rename parameter
9439         "encoded" into "encoded_p".  Ajust code and documentation
9440         accordingly.
9441
9442 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9443             Andrey Smirnov  <andrew.smirnov@gmail.com>
9444
9445         -Wshadow warning fix.
9446         * ada-lang.c (symbol_completion_match): Rename parameter
9447         "wild_match" into "wild_match_p".  Adjust code and function
9448         documentation accordingly.
9449
9450 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9451             Andrey Smirnov  <andrew.smirnov@gmail.com>
9452
9453         -Wshadow warning fix.
9454         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9455         "symbol_info" into "info".  Adjust code accordingly.
9456         (ada_lookup_symbol): Likewise.
9457
9458 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9459
9460         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9461         of this function's documentation.
9462
9463 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9464             Andrey Smirnov  <andrew.smirnov@gmail.com>
9465
9466         -Wshadow warning fix.
9467         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9468         variable into "wild_match_p".  Adjust code accordingly.
9469
9470 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9471             Andrey Smirnov  <andrew.smirnov@gmail.com>
9472
9473         -Wshadow warning fix.
9474         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9475         parameter into "wild_match_p".  Adjust code accordingly.
9476         Document this parameter in the function description.
9477
9478 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9479             Andrey Smirnov  <andrew.smirnov@gmail.com>
9480
9481         -Wshadow warning fix.
9482         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9483         "wild_match" parameter to "wild_match_p" (-Wshadow).
9484
9485 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9486
9487         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9488         in function documentation.
9489
9490 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9491             Andrey Smirnov  <andrew.smirnov@gmail.com>
9492
9493         -Wshadow warning fix.
9494         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9495         variable into wild_match_p.  Adjust code accordingly.
9496
9497 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9498             Andrey Smirnov  <andrew.smirnov@gmail.com>
9499
9500         * ada-valprint.c (ada_val_print_1): Move the code handling
9501         TYPE_CODE_ENUM inside its own lexical block.  Declare
9502         variables len and val there, instead of in the function's
9503         top level block.  Avoid declaring deref_val again in a way
9504         that shadows another variable of the same name declared
9505         in one of the up-level blocks.  Just re-use the up-level
9506         variable instead.
9507
9508 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9509
9510         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9511         Replace block_found argument by symbol_info.  Adjust
9512         implementation accordingly.  Add function documentation.
9513         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9514         Fix documentation.
9515         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9516         * ada-exp.y (write_object_renaming): Adjust to new
9517         ada_lookup_encoded_symbol API.
9518
9519 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9520
9521         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
9522         documentation.
9523
9524 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
9525
9526         * v850-tdep.c: Add the enum values for mpu and fpu registers.
9527         (v850_register_name): Add the mpu and fpu register names.
9528         (v850e_register_name): Add the mpu and fpu register names.
9529         (v850e2_register_name): New function.
9530         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9531         bfd_mach_v850e2v3.
9532
9533 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9534
9535         * NEWS: Add entry for Ada varobj support.
9536
9537 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9538
9539         * varobj.c (default_value_is_changeable_p): New function,
9540         extracted from varobj_value_is_changeable_p.  Add declaration.
9541         (ada_value_is_changeable_p): New function, extracted from
9542         varobj_value_is_changeable_p.  Add declaration.
9543         (struct language_specific): New field "value_is_changeable_p".
9544         (languages): Add entries for new field.
9545         (varobj_create): Set language before calling install_new_value.
9546         (varobj_value_is_changeable_p): Reimplement to call the varobj's
9547         "value_is_changeable_p" language callback.
9548
9549 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9550
9551         * ada-varobj.h, ada-varobj.c: New files.
9552         * Makefile.in (SFILES): Add ada-varobj.c.
9553         (HFILES_NO_SRCDIR): Add ada-varobj.h.
9554         (COMMON_OBS): Add ada-varobj.o.
9555
9556 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9557
9558         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
9559         (struct language_specific): New field "value_has_mutated".
9560         (languages): Set field "value_has_mutated" in each entry of array.
9561         (varobj_value_has_mutated): New function.
9562         (varobj_udpdate): Add handling of type mutation.
9563         (value_of_root): Add handling of type mutation.
9564         (ada_value_has_mutated): New function.
9565
9566 2012-03-28  Pedro Alves  <palves@redhat.com>
9567
9568         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9569         Always supply $fr0 as 0.0 and $fr1 as 1.0.
9570
9571 2012-03-28  Tom Tromey  <tromey@redhat.com>
9572
9573         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9574         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
9575         before returning.
9576
9577 2012-03-28  Tom Tromey  <tromey@redhat.com>
9578
9579         * .dir-locals.el: New file.
9580
9581 2012-03-28  Pedro Alves  <palves@redhat.com>
9582
9583         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9584
9585 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9586
9587         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9588         handling for r0.
9589
9590 2012-03-27  Pedro Alves  <palves@redhat.com>
9591
9592         Eliminate struct ui_stream.
9593
9594         * ui-out.h (struct ui_stream): Delete.
9595         (ui_out_field_stream): Adjust prototype.
9596         (ui_out_stream_new, ui_out_stream_delete)
9597         (make_cleanup_ui_out_stream_delete): Delete declarations.
9598         * ui-out.c (ui_out_field_stream): Change prototype to take a
9599         ui_file instead of a ui_stream.  Adjust.
9600         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9601         (make_cleanup_ui_out_stream_delete): Delete.
9602         * breakpoint.c (print_breakpoint_location)
9603         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9604         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9605         * disasm.c (dump_insns): Ditto.
9606         (do_mixed_source_and_assembly, do_assembly_only): Adjust
9607         prototype.
9608         (gdb_disassembly): Use ui_file/mem_fileopen instead of
9609         ui_stream/ui_out_stream_new.
9610         * infcmd.c (print_return_value): Ditto.
9611         * osdata.c (info_osdata_command): Don't allocate a local
9612         ui_stream.
9613         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9614         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9615         * tracepoint.c (print_one_static_tracepoint_marker): Don't
9616         allocate a local ui_stream.
9617         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9618         instead of ui_stream/ui_out_stream_new.
9619         (list_args_or_locals): Don't allocate a local ui_stream.
9620         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9621         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9622         ui_stream/ui_out_stream_new.
9623         * cli/cli-setshow.c (do_setshow_command): Ditto.
9624
9625 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
9626
9627         * arm-linux-tdep.c (arm_linux_init_abi): Call
9628         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
9629         * arm-tdep.c (arm_process_record): New function.
9630         (deallocate_reg_mem): New function.
9631         (decode_insn): New function.
9632         (thumb_record_branch): New function.
9633         (thumb_record_ldm_stm_swi(): New function.
9634         (thumb_record_misc): New function.
9635         (thumb_record_ld_st_stack): New function.
9636         (thumb_record_ld_st_imm_offset): New function.
9637         (thumb_record_ld_st_reg_offset(): New function.
9638         (thumb_record_add_sub_cmp_mov): New function.
9639         (thumb_record_shift_add_sub): New function.
9640         (arm_record_coproc_data_proc): New function.
9641         (arm_record_coproc): New function.
9642         (arm_record_b_bl): New function.
9643         (arm_record_ld_st_multiple): New function.
9644         (arm_record_ld_st_reg_offset): New function.
9645         (arm_record_ld_st_imm_offset): New function.
9646         (arm_record_data_proc_imm): New function.
9647         (arm_record_data_proc_misc_ld_str): New function.
9648         (arm_record_extension_space): New function.
9649         (arm_record_strx): New function.
9650         (sbo_sbz): New function.
9651         (struct insn_decode_record): New structure for arm insn record.
9652         (REG_ALLOC): New macro for reg allocations.
9653         (MEM_ALLOC): New macro for memory allocations.
9654         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9655
9656 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
9657
9658         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9659         (store_register): Likewise.
9660
9661 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
9662
9663         * MAINTAINERS (Write After Approval): Add myself to the list.
9664
9665 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9666
9667         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9668         Describe also the option "auto".
9669
9670 2012-03-22  Richard Henderson  <rth@redhat.com>
9671
9672         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9673         * sparc-nat.c (sparc_xfer_wcookie): Make static.
9674
9675 2012-03-22  Richard Henderson  <rth@redhat.com>
9676
9677         * jit.c (jit_read_code_entry): Compute alignment and offset of
9678         int64_t member before computing entry_size.
9679
9680 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
9681
9682         Python scripting: Add new method Value.referenced_value to
9683         gdb.Value which can dereference pointer as well as reference
9684         values.
9685         * NEWS: Add entry under 'Python scripting' about the new method
9686         Value.referenced_value on gdb.Value objects.
9687         * python/py-value.c (valpy_referenced_value): New function
9688         defining a new method on gdb.Value objects which can dereference
9689         pointer and reference values.
9690
9691 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
9692
9693         * MAINTAINERS (Write After Approval): Add myself to the list.
9694
9695 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
9696
9697         * symtab.c (skip_prologue_sal): Change test to check for "main()"
9698         in addition to "main".
9699
9700 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
9701
9702         * expression.h (op_name): Add declaration.
9703         * expprint.c (op_name): Remove declaration.  Make non-static.
9704         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9705
9706 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9707
9708         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9709         of struct siginfo.
9710         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9711         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9712         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9713         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9714         (linux_nat_get_siginfo): Likewise.
9715         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9716         (linux_nat_get_siginfo): Likewise.
9717         * linux-tdep.c (linux_get_siginfo_type): Likewise.
9718         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9719         * procfs.c (gdb_siginfo_t): Likewise.
9720
9721 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
9722
9723         * .gitignore: Ignore more files.
9724
9725 2012-03-20  Pedro Alves  <palves@redhat.com>
9726
9727         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9728         returns.
9729
9730 2012-03-20  Yao Qi  <yao@codesourcery.com>
9731
9732         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9733         comment.
9734
9735 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9736
9737         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9738         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9739         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9740         sect_offset.
9741         * dwarf2expr.h (cu_offset, sect_offset): New types.
9742         (struct dwarf_expr_context_funcs) <dwarf_call>
9743         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9744         sect_offset.
9745         (struct dwarf_expr_context) <len>: Improve the comment.
9746         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9747         cu_offset and sect_offset.
9748         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9749         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9750         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9751         * dwarf2loc.h: Include dwarf2expr.h.
9752         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9753         and sect_offset.
9754         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9755         Improve the comment.
9756         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9757         (struct signatured_type, struct line_header, struct partial_die_info)
9758         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9759         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9760         (get_die_type_at_offset, create_cus_from_index)
9761         (create_signatured_type_table_from_index, dw2_get_file_names)
9762         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9763         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9764         (create_debug_types_hash_table, process_psymtab_comp_unit)
9765         (load_partial_comp_unit, create_all_comp_units)
9766         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9767         (load_full_comp_unit, dwarf2_physname, read_import_statement)
9768         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9769         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9770         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9771         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9772         (find_partial_die, read_attribute_value, lookup_die_type)
9773         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9774         (is_ref_attr): New function comment.
9775         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9776         Use cu_offset and sect_offset.
9777         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9778         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9779         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9780         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9781         (offset_and_type_hash, offset_and_type_eq, set_die_type)
9782         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9783         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9784         sect_offset.
9785
9786 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9787
9788         Code cleanup.
9789         * python/py-auto-load.c (source_section_scripts): New variable back_to.
9790         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9791         with xfree.
9792         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9793
9794 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9795
9796         * NEWS: Describe new options --init-command=FILE, -ix and
9797         --init-eval-command=COMMAND, -iex.
9798         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9799         CMDARG_INIT_COMMAND.
9800         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
9801         "init-command", "init-eval-command", "ix" and "iex" to the variable
9802         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
9803         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9804         (print_gdb_help): Describe --init-command=FILE, -ix and
9805         --init-eval-command=COMMAND, -iex.
9806
9807 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9808
9809         Code cleanup.
9810         * main.c (struct cmdarg): Move it here from main.  Add more comments.
9811         (cmdarg_s, VEC (cmdarg_s)): New.
9812         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
9813         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
9814         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
9815         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
9816         of CMDARG.
9817
9818 2012-03-19  Tom Tromey  <tromey@redhat.com>
9819
9820         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9821
9822 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9823
9824         PR symtab/13777
9825         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9826         GCC >=4.5.
9827
9828 2012-03-16  Chris January  <chris.january@allinea.com>
9829
9830         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9831         of clear.
9832
9833 2012-03-16  Chris January  <chris.january@allinea.com>
9834
9835         * source.c (add_path): Use memmove instead of strcpy because the
9836         strings overlap.
9837
9838 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
9839
9840         * value.h (set_value_parent): Add declaration.
9841         * value.c (set_value_parent): New function.
9842         (value_address): If VALUE->PARENT is not NULL, then use it as
9843         the base address instead of VALUE->LOCATION.address.
9844         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9845         the same as OBJ's address.  Adjust V's offset accordingly.
9846         Set V's parent.
9847
9848 2012-03-16  Gary Benson  <gbenson@redhat.com>
9849
9850         PR breakpoints/10738
9851         * dwarf2read.c (use_deprecated_index_sections): New global.
9852         (struct partial_die_info): New member may_be_inlined.
9853         (read_partial_die): Set may_be_inlined where appropriate.
9854         (add_partial_subprogram): Add partial symbols for partial
9855         DIEs that may be inlined.
9856         (new_symbol_full): Add inlined subroutines to the current
9857         scope.
9858         (write_psymtabs_to_index): Bump version number.
9859         (dwarf2_read_index): Read only version 6 indices unless
9860         use_deprecated_index_sections is set.
9861         * linespec.c (symbol_and_data_callback): New structure.
9862         (iterate_inline_only): New function.
9863         (iterate_over_all_matching_symtabs): New argument
9864         "include_inline".  If nonzero, also call the callback for
9865         symbols representing inlined subroutines.
9866         (lookup_prefix_sym): Pass extra argument to the above.
9867         (find_function_symbols): Likewise.
9868         (add_matching_symbols_to_info): Likewise.
9869         * NEWS: Mention that GDB can now set breakpoints on inlined
9870         functions.
9871
9872 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9873
9874         * p-typeprint.c (pascal_type_print_method_args):
9875         Fix display of parameter of methods.
9876
9877 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9878
9879         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9880         Add missing prototype.
9881
9882 2012-03-16  Yao Qi  <yao@codesourcery.com>
9883             Jan Kratochvil  <jan.kratochvil@redhat.com>
9884
9885         Fix false compilation warning.
9886         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9887
9888 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
9889             Pedro Alves  <pedro@codesourcery.com>
9890
9891         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9892         (arm_register_g_packet_guesses): New function.
9893         (arm_gdbarch_init): Don't force a target description with
9894         registers when the executable is detected as M-profile.  Instead
9895         set gdbarch->tdep->is_m.  Register `g' packet guesses.
9896         (_initialize_arm_tdep): Initialize the new target description.
9897         * features/arm-with-m-fpa-layout.xml: New description.
9898         * features/arm-with-m-fpa-layout.c: New, generated.
9899
9900 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
9901
9902         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9903         Update function description.
9904         (insert_bp_location): Do not wipe bl->target_info out.
9905         * mem-break.c: #include "gdb_string.h".
9906         (default_memory_insert_breakpoint): Do not call target_read_memory
9907         with a pointer to the breakpoint's shadow_contents buffer.  Use
9908         a local buffer instead.
9909         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9910
9911 2012-03-15  Tom Tromey  <tromey@redhat.com>
9912
9913         * NEWS: Mention "info vtbl", not "info vtable".
9914         * cp-support.c (info_vtbl_command): Fix comment.
9915         (_initialize_cp_support): Fix text.
9916
9917 2012-03-15  Tom Tromey  <tromey@redhat.com>
9918
9919         * cp-valprint.c (cp_print_value_fields): Use
9920         print_function_pointer_address for vtable slot.
9921
9922 2012-03-15  Tom Tromey  <tromey@redhat.com>
9923
9924         * gnu-v3-abi.c (struct value_and_voffset): New.
9925         (hash_value_and_voffset, eq_value_and_voffset)
9926         (compare_value_and_voffset, compute_vtable_size)
9927         (print_one_vtable, gnuv3_print_vtable): New functions.
9928         (init_gnuv3_ops): Initialize 'print_vtable' field.
9929         * cp-support.c (info_vtbl_command): New function.
9930         (_initialize_cp_support): Add "info vtbl".
9931         * cp-abi.h (cplus_print_vtable): Declare.
9932         (struct cp_abi_ops) <print_vtable>: New field.
9933         * cp-abi.c (cplus_print_vtable): New function.
9934         * NEWS: Update.
9935
9936 2012-03-15  Tom Tromey  <tromey@redhat.com>
9937
9938         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9939         iterate_over_symbols.
9940
9941 2012-03-14  Doug Evans  <dje@google.com>
9942
9943         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9944         DW_OP_GNU_parameter_ref.
9945
9946 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9947
9948         Fix double prompt of 'interpreter-exec mi'.
9949         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9950         (mi_interpreter_resume): use it.
9951         (mi_execute_command_input_handler): New function.
9952         * mi/mi-main.c (mi_execute_command): Move prompt printing to
9953         mi_execute_command_input_handler.
9954
9955 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9956
9957         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9958         prototype.
9959         (darwin_debug_port_info): Make static.
9960         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9961         * machoread.c (_initialize_machoread): Add prototype.
9962         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9963         (i386_darwin_set_control, i386_darwin_get_control)
9964         i386_darwin_dr_set_addr, i386_darwin_get_addr)
9965         i386_darwin_get_status, i386_darwin_get_control):
9966         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9967
9968 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
9969
9970         * ax-gdb.c (gen_usual_unary): Remove special handling of
9971         enum and bool types.
9972
9973 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
9974
9975         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9976
9977 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
9978
9979         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9980
9981 2012-03-13  Chris January  <chris.january@allinea.com>
9982
9983         * aix-thread.c (fill_sprs): Store the floating point registers
9984         at the correct offsets into vals.
9985
9986 2012-03-13  Doug Evans  <dje@google.com>
9987
9988         * NEWS: Mention symbol-reloading has been deleted.
9989         * symfile.c (symbol_reloading): Delete.
9990         (show_symbol_reloading): Delete.
9991         (_initialize_symfile): Delete set/show symbol-reloading.
9992
9993         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9994         read_in_chain until we have successfully read it in.
9995         (load_full_comp_unit): Ditto.
9996         (read_signatured_type): Add comment.
9997
9998 2012-03-13  Chris January  <chris.january@allinea.com>
9999
10000         * stabsread.c (fix_common_block): Change type of valu argument
10001         to CORE_ADDR.
10002
10003 2012-03-13  Chris January  <chris.january@allinea.com>
10004
10005         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
10006         instruction.
10007
10008 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10009
10010         * common/linux-procfs.c (linux_proc_get_int): New, from
10011         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
10012         field.
10013         (linux_proc_get_tgid): Only call linux_proc_get_int.
10014         (linux_proc_get_tracerpid): New.
10015         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
10016         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
10017         linux_proc_pid_has_state.
10018         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
10019         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
10020         (linux_ptrace_attach_warnings): New.
10021         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
10022         New declaration.
10023         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
10024         (linux_nat_attach): New variables ex, buffer, message and message_s.
10025         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
10026
10027 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10028
10029         * Makefile.in (linux-ptrace.o): New.
10030         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
10031         from linux-nat.c.
10032         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
10033         * common/linux-ptrace.c: New file.
10034         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
10035         * config/arm/linux.mh: Likewise.
10036         * config/i386/linux.mh: Likewise.
10037         * config/i386/linux64.mh: Likewise.
10038         * config/ia64/linux.mh: Likewise.
10039         * config/m32r/linux.mh: Likewise.
10040         * config/m68k/linux.mh: Likewise.
10041         * config/mips/linux.mh: Likewise.
10042         * config/pa/linux.mh: Likewise.
10043         * config/powerpc/linux.mh: Likewise.
10044         * config/powerpc/ppc64-linux.mh: Likewise.
10045         * config/powerpc/spu-linux.mh: Likewise.
10046         * config/s390/s390.mh: Likewise.
10047         * config/sparc/linux.mh: Likewise.
10048         * config/sparc/linux64.mh: Likewise.
10049         * config/xtensa/linux.mh: Likewise.
10050         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
10051         common/linux-procfs.c.
10052         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
10053
10054 2012-03-13  Hui Zhu  <teawater@gmail.com>
10055             Pedro Alves  <palves@redhat.com>
10056
10057         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
10058         CREATE_BREAKPOINT_FLAGS_INSERTED.
10059         (create_breakpoint_sal, create_breakpoints_sal)
10060         (base_breakpoint_create_breakpoints_sal)
10061         (tracepoint_create_breakpoints_sal)
10062         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
10063         down.
10064         (break_command_1, handle_gnu_v3_exceptions, trace_command)
10065         (ftrace_command, strace_command): Adjust.
10066         (create_tracepoint_from_upload): Pass
10067         CREATE_BREAKPOINT_FLAGS_INSERTED.
10068         * breakpoint.h (enum breakpoint_create_flags): New.
10069         (create_breakpoint): New flags parameter.
10070         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
10071         * python/py-breakpoint.c (bppy_init): Adjust.
10072         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
10073         * spu-tdep.c (spu_catch_start): Adjust.
10074
10075 2012-03-13  Pedro Alves  <palves@redhat.com>
10076             Hui Zhu  <teawater@gmail.com>
10077             Yao Qi  <yao@codesourcery.com>
10078
10079         * remote.c (struct remote_state): New field `starting_up'.
10080         (remote_start_remote): Set and clear it.
10081         (remote_can_download_tracepoint): If starting up, return false.
10082
10083 2012-03-13  Yao Qi  <yao@codesourcery.com>
10084
10085         * inferior.h (struct inferior): Remove fields any_syscall_count,
10086         syscalls_counts and total_syscalls_count.  Move them to new
10087         struct catch_syscall_inferior_data in breakpoint.c.
10088         * breakpoint.c: Call DEF_VEC_I(int).
10089         (struct catch_syscall_inferior_data): New.
10090         (get_catch_syscall_inferior_data): New.
10091         (catch_syscall_inferior_data_cleanup): New.
10092         (insert_catch_syscall): Update to access data in
10093         struct catch_syscall_inferior_data.
10094         (insert_catch_syscall): Likewise.
10095         (remove_catch_syscall): Likewise.
10096         (remove_catch_syscall): Likewise.
10097         (is_syscall_catchpoint_enabled): Likewise.
10098         (add_catch_command): Likewise.
10099         (_initialize_breakpoint): Register cleanup.
10100         * breakpoint.h: Removed DEF_VEC_I(int).
10101         * dwarf2loc.c: Call DEF_VEC_I(int).
10102         * mi/mi-main.c: Likewise.
10103
10104 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
10105
10106         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
10107
10108 2012-03-12  Chris January  <chris.january@allinea.com>
10109
10110         * aix-thread.c (_initialize_aix_thread): Add prototype.
10111         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
10112         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
10113
10114 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
10115
10116         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
10117         include of "amd64-nat.h".
10118
10119 2012-03-12  Tom Tromey  <tromey@redhat.com>
10120
10121         * buildsym.c (record_pending_block): Now static.
10122         * buildsym.h: (record_pending_block): Remove.
10123
10124 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
10125
10126         * amd64bsd-nat.c: Include amd64bsd-nat.h.
10127
10128 2012-03-09  Tom Tromey  <tromey@redhat.com>
10129
10130         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
10131         producer_is_gxx_lt_4_6>: New fields.
10132         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
10133
10134 2012-03-09  Tom Tromey  <tromey@redhat.com>
10135
10136         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10137
10138 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
10139
10140         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10141         prototype.
10142
10143 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
10144
10145         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10146
10147 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10148
10149         Fix -Wmissing-prototypes build.
10150         * arm-linux-nat.c (get_thread_id): Make it static.
10151         * xtensa-linux-nat.c (get_thread_id): Likewise.
10152
10153 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
10154
10155         * server.c (process_point_options): If a conditional expression
10156         is found, only print a message if remote_debug is nonzero.
10157
10158 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
10159
10160         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10161         of internal error for unknown/unsupported types.
10162
10163 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10164
10165         Fix CU relative vs. absolute DIE offsets.
10166         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10167         offset to offset_in_cu.
10168         * dwarf2read.c (process_enumeration_scope): Add CU offset to
10169         TYPE_OFFSET.
10170         (dwarf2_fetch_die_location_block): Rename parameter offset to
10171         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
10172
10173 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10174
10175         * libunwind-frame.c: Rename to ...
10176         * ia64-libunwind-tdep.c: ... here.
10177         * libunwind-frame.h: Rename to ...
10178         * ia64-libunwind-tdep.h: ... here.
10179         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10180         ia64-libunwind-tdep.h.
10181         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10182         * README (--with-libunwind): Rename to ...
10183         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10184         * config.in: Regenerate.
10185         * configure: Regenerate.
10186         * configure.ac: New option --with-libunwind-ia64, make the
10187         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
10188         Remove AC_DEFINE for HAVE_LIBUNWIND.
10189         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10190         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10191         Rename libunwind-frame in the general comment.
10192         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10193         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10194         Move forward declarations inside #ifndef.  Rename libunwind-frame in
10195         the general comment.
10196         * ia64-tdep.c: Rename libunwind-frame.h #include to
10197         ia64-libunwind-tdep.h.
10198         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10199         (ia64_libunwind_descr): Rename libunwind-frame to
10200         ia64-libunwind-tdep in these function comments.
10201         * ia64-tdep.h: Rename libunwind-frame.h #include to
10202         ia64-libunwind-tdep.h.
10203         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10204         ia64-libunwind-tdep in that data comment.
10205
10206 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10207
10208         * libunwind-frame.h (struct frame_unwind): New declaration.
10209
10210 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
10211
10212         * breakpoint.c (_initialize_breakpoint): Fix error in help of
10213         "set breakpoint condition-evaluation" command.
10214
10215 2012-03-08  Tristan Gingold  <gingold@adacore.com>
10216
10217         * sparc-stub.c: Move to stubs/
10218         * sh-stub.c: Likewise.
10219         * m68k-stub.c: Likewise.
10220         * m32r-stub.c: Likewise.
10221         * i386-stub.c: Likewise.
10222
10223 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
10224
10225         * m68klinux-tdep.c (m68k_linux_init_abi): Register
10226         linux_get_siginfo_type.
10227
10228         * m68klinux-nat.c: Include "gdb_proc_service.h".
10229         (PTRACE_GET_THREAD_AREA): Define.
10230         (ps_get_thread_area): New function.
10231
10232 2012-03-08  Yao Qi  <yao@codesourcery.com>
10233
10234         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10235         `xsnprintf'.
10236         (remote_query_attached): Likewise.
10237         (remote_static_tracepoint_marker_at): Likewise.
10238         (remote_set_permissions): Likewise.
10239         (remote_detach_1, extended_remote_attach_1): Likewise.
10240         (send_g_packet, remote_vkill): Likewise.
10241         (extended_remote_disable_randomization): Likewise.
10242         (remote_add_target_side_condition): Likewise.
10243         (remote_insert_breakpoint): Likewise.
10244         (remote_remove_breakpoint): Likewise.
10245         (remote_insert_watchpoint): Likewise.
10246         (remote_remove_watchpoint): Likewise.
10247         (remote_insert_hw_breakpoint): Likewise.
10248         (remote_insert_hw_breakpoint): Likewise.
10249         (remote_remove_hw_breakpoint): Likewise.
10250         (remote_download_command_source): Likewise.
10251         (remote_download_tracepoint): Likewise.
10252         (remote_download_trace_state_variable): Likewise.
10253         (remote_disable_tracepoint): Likewise.
10254         (remote_trace_set_readonly_regions): Likewise.
10255         (remote_get_tracepoint_status): Likewise.
10256         (remote_trace_find): Likewise.
10257         (remote_get_trace_state_variable_value): Likewise.
10258         (remote_set_disconnected_tracing): Likewise.
10259         (remote_set_circular_trace_buffer): Likewise.
10260         (remote_get_min_fast_tracepoint_insn_len): Likewise.
10261         (remote_use_agent): Likewise.
10262         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10263         Update callers.
10264
10265 2012-03-07  Pedro Alves  <palves@redhat.com>
10266
10267         * NEWS: Mention QProgramSignals.
10268         * inferior.h (update_signals_program_target): Declare.
10269         * infrun.c: (update_signals_program_target): New.
10270         (handle_command): Update the target of the new program signals
10271         array changes.
10272         * remote.c (PACKET_QProgramSignals): New enum.
10273         (last_program_signals_packet): New global.
10274         (remote_program_signals): New.
10275         (remote_start_remote): Update the target with the program signals
10276         list.
10277         (remote_protocol_features): Add entry for QPassSignals.
10278         (remote_open_1): Free anc clear last_program_signals_packet.
10279         (init_remote_ops): Install remote_program_signals.
10280         * target.c (update_current_target): Adjust.
10281         (target_program_signals): New.
10282         * target.h (struct target_ops) <to_program_signals>: New field.
10283         (target_program_signals): Declare.
10284
10285 2012-03-07  Pedro Alves  <palves@redhat.com>
10286
10287         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10288         extensions.
10289
10290 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
10291
10292         * m68klinux-nat.c (getregs_supplies): Make static.
10293         (getfpregs_supplies): Likewise.
10294         (have_ptrace_getregs): Likewise.
10295
10296 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
10297
10298         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10299         in call to get_die_type_at_offset.
10300
10301 2012-03-06  Stan Shebs  <stan@codesourcery.com>
10302
10303         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10304         * mi/mi-cmd-disas.c: Ditto.
10305         * mi/mi-cmd-env.c: Ditto.
10306         * mi/mi-cmd-file.c: Ditto.
10307         * mi/mi-cmd-stack.c: Ditto.
10308         * mi/mi-cmd-target.c: Ditto.
10309         * mi/mi-cmd-var.c: Ditto.
10310         * mi/mi-cmds.c: Ditto.
10311         * mi/mi-cmds.h: Ditto.
10312         * mi/mi-console.c: Ditto.
10313         * mi/mi-getopt.c: Ditto.
10314         * mi/mi-getopt.h: Ditto.
10315         * mi/mi-interp.c: Ditto.
10316         * mi/mi-main.c: Ditto.
10317         * mi/mi-out.c: Ditto.
10318         * mi/mi-parse.c: Ditto.
10319         * mi/mi-parse.h: Ditto.
10320         * mi/mi-symbol-cmds.c: Ditto.
10321
10322         * mi/mi-getopt.h: Move mi_opt struct up.
10323         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10324         return.
10325         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10326
10327 2012-03-06  Tom Tromey  <tromey@redhat.com>
10328
10329         * proc-service.c (ps_pglobal_lookup): Set the current program
10330         space.
10331
10332 2012-03-06  Pedro Alves  <palves@redhat.com>
10333
10334         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10335
10336 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
10337
10338         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10339
10340 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
10341
10342         Code cleanup.
10343         * common/linux-osdata.c (linux_common_core_of_thread): New function
10344         comment.
10345         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10346         call by linux_common_core_of_thread.
10347         (linux_nat_core_of_thread_1): Remove.
10348         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10349         * linux-thread-db.c: Include linux-osdata.h.
10350         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10351         linux_common_core_of_thread.
10352
10353 2012-03-05  Tom Tromey  <tromey@redhat.com>
10354
10355         * value.c (value_primitive_field): Don't fetch contents for
10356         non-virtual bases.
10357
10358 2012-03-05  Tom Tromey  <tromey@redhat.com>
10359
10360         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10361
10362 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10363
10364         * s390-nat.c: Include "gregset.h".
10365
10366 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
10367
10368         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10369         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10370         (libunwind_load): New variable so_error, use it for dlerror.  Try to
10371         load also LIBUNWIND_SO_7.
10372
10373 2012-03-05  Pedro Alves  <palves@redhat.com>
10374
10375         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10376         is not NULL, and remove resulting dead code.
10377
10378 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
10379
10380         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10381         prologue to sh_analyze_prologue.
10382         (sh_analyze_prologue): Make better use of such an upper limit, and
10383         generally be more cautious about accessing memory.
10384
10385 2012-03-05  Tom Tromey  <tromey@redhat.com>
10386
10387         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10388         _initialize_ia64_hpux_tdep.
10389
10390 2012-03-05  Pedro Alves  <palves@redhat.com>
10391
10392         PR gdb/13766
10393
10394         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10395         the register state is clear, supply explicit zero, instead of
10396         marking the register unavailable.
10397
10398 2012-03-05  Tristan Gingold  <gingold@adacore.com>
10399
10400         * NEWS: Mention OpenVMS ia64 new target.
10401
10402 2012-03-05  Tristan Gingold  <gingold@adacore.com>
10403
10404         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10405         (ia64_unw_accessors, ia64_unw_rse_accessors)
10406         (ia64_libunwind_descr): Declare.
10407         * ia64-vms-tdep.c: New file.
10408         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10409         (ia64_libunwind_descr): Make them public.
10410         * configure.tgt: Add ia64-*-*vms*.
10411         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10412         (ALLDEPFILES): Add ia64-vms-tdep.c
10413
10414 2012-03-05  Tristan Gingold  <gingold@adacore.com>
10415
10416         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10417         * remote.c (PACKET_qXfer_uib): New enum value.
10418         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10419         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10420         (_initialize_remote): Call add_packet_config_cmd for
10421         xfer:uib packet.
10422
10423 2012-03-05  Tristan Gingold  <gingold@adacore.com>
10424
10425         * osabi.c (gdb_osabi_names): Add OpenVMS.
10426         (generic_elf_osabi_sniffer): Likewise.
10427         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10428
10429 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
10430
10431         Removed unused code.
10432         * libunwind-frame.c (libunwind_frame_unwind)
10433         (libunwind_frame_base_address): Remove.
10434         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10435
10436 2012-03-04  Yao Qi  <yao@codesourcery.com>
10437
10438         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10439         remove trailing new line.
10440         (agent_run_command, agent_run_command): Add _ markup.
10441         (agent_capability_check): Likewise.
10442
10443 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10444
10445         * breakpoint.c (set_condition_evaluation_mode): Set
10446         CONDITION_EVALUATION_MODE unconditionally.
10447
10448 2012-03-03  Yao Qi  <yao@codesourcery.com>
10449
10450         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10451         * common/agent.h: Update declaration.
10452         * inf-child.c (inf_child_use_agent): New.
10453         (inf_child_can_use_agent): New.
10454         (inf_child_target): Initialize fields `to_use_agent'
10455         and `to_can_use_agent'.
10456         * agent.c (agent_new_objfile): New.
10457         (_initialize_agent): Add agent_new_objfile to new_objfile
10458         observer.
10459
10460         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10461         New.
10462         (linux_target_install_ops): Initialize field
10463         `to_static_tracepoint_markers_by_strid'.
10464         * remote.c (free_current_marker): Move it to ...
10465         * tracepoint.c (free_current_marker): ... here.  New.
10466         (cleanup_target_stop): New.
10467         * tracepoint.h: Declare free_current_marker.
10468         * NEWS: Add one entry about `info static-tracepoint-marker'.
10469
10470 2012-03-03  Yao Qi  <yao@codesourcery.com>
10471
10472         * common/agent.c (agent_loaded_p): New.
10473         (agent_look_up_symbols): New global.
10474         * common/agent.h: Declare agent_loaded_p.
10475
10476 2012-03-03  Yao Qi  <yao@codesourcery.com>
10477
10478         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10479         (agent_capability_check, agent_capability_invalidate): New.
10480         (symbol_list): New array element.
10481         * common/agent.h (enum agent_capa): New.
10482         * target.c (target_pre_inferior): Call agent_capability_invalidate.
10483
10484 2012-03-03  Yao Qi  <yao@codesourcery.com>
10485
10486         * target.h (struct target_ops) <to_use_agent>: New field.
10487         (struct target_ops) <to_can_use_agent>: New field.
10488         (target_use_agent, target_can_use_agent): New macro.
10489         * target.c (update_current_target): Update.
10490         * remote.c: New enum `PACKET_QAgent'.
10491         (remote_protocol_features): Add a new element.
10492         (remote_use_agent, remote_can_use_agent): New.
10493         (init_remote_ops): Initialize field `can_use_agent' with
10494         remote_can_use_agent.  Intiailize field `use_agent' with
10495         remote_use_agent.
10496         * common/agent.c (use_agent): New global.
10497         * common/agent.h: Declare it.
10498         * tracepoint.c (info_static_tracepoint_markers_command): Add
10499         comment.
10500         * Makefile.in (SFILES): Add common/agent.c and agent.c.
10501         (COMMON_OBS): Add common/agent.o and agent.o
10502         (common-agent.o): New rule.
10503         * agent.c: New.
10504
10505 2012-03-03  Yao Qi  <yao@codesourcery.com>
10506
10507         * common/agent.c: New.
10508         * common/agent.h: New.
10509         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10510         AC_CHECK_HEADERS.
10511         * configure, configh.in: Regenerated.
10512
10513 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
10514
10515         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10516         unless it exists for this architecture.
10517
10518 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
10519
10520         * language.h (struct language_defn): New "method" la_read_var_value.
10521         * findvar.c: #include "language.h".
10522         (default_read_var_value): Renames read_var_value.  Rewrite
10523         function description.
10524         (read_var_value): New function.
10525         * value.h (default_read_var_value): Add prototype.
10526         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10527         New functions.
10528         (ada_language_defn): Add entry for la_read_var_value.
10529         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10530         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10531         language_defn structures to add entry for new la_read_var_value
10532         field.
10533
10534 2012-03-02  Tom Tromey  <tromey@redhat.com>
10535             Pedro Alves  <palves@redhat.com>
10536
10537         PR breakpoints/13776:
10538         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10539         breakpoints.
10540         (delete_longjmp_breakpoint_at_next_stop): New.
10541         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10542         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10543         before deleting the inferior.  Add comments.
10544         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10545         breakpoints immediately, but only on next stop.  Move that code
10546         next to where we mark other breakpoints for deletion.
10547
10548 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
10549
10550         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10551         marker.
10552         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10553         violation.
10554
10555 2012-03-02  Pedro Alves  <palves@redhat.com>
10556
10557         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10558
10559 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
10560
10561         Fix -Wmissing-prototypes build.
10562         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10563         * remote-sim.c (gdbsim_has_all_memory): Likewise.
10564         (gdbsim_has_memory): Likewise.
10565
10566 2012-03-02  Yao Qi  <yao@codesourcery.com>
10567
10568         Fix -Wmissing-prototypes build.
10569         * charset.c (phony_iconv_open): Make static.
10570         (phony_iconv_close, phony_iconv): Likewise.
10571         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10572         * i386-windows-nat.c (_initialize_i386_windows_nat): New
10573         prototype.
10574         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10575         * ser-mingw.c (create_select_thread): Make static.
10576         * windows-termcap.c (tgetent): New prototype.
10577         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10578
10579 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
10580
10581         Fix -Wmissing-prototypes build.
10582         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10583         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10584         (_initialize_loadable): New prototypes.
10585
10586 2012-03-02  Doug Evans  <dje@google.com>
10587
10588         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10589         abbrev table, read_comp_unit will do it.
10590
10591 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10592
10593         Fix -Wmissing-prototypes build.
10594         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10595         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10596         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10597         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10598         (_initialize_arm_symbian_tdep): New prototype.
10599         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10600         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10601         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10602         static.
10603         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10604         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10605         prototype.
10606         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10607         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10608         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10609         static.
10610         * moxie-tdep.c (moxie_process_record): Likewise.
10611         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10612         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10613         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10614         (_initialize_rl78_tdep): New prototype.
10615         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10616         (_initialize_rx_tdep): New prototype.
10617         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10618         (_initialize_darwin_solib): New prototype.
10619         * solib-spu.c: Include solib-spu.h.
10620         (_initialize_spu_solib): New prototype.
10621         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10622         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10623         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10624         (tic6x_software_single_step): Make it static.
10625         (_initialize_tic6x_tdep): New prototype.
10626
10627 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10628
10629         Fix -Wmissing-prototypes build.
10630         * cris-tdep.c (cris_can_use_hardware_watchpoint)
10631         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10632
10633 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10634
10635         Fix -Wmissing-prototypes build.
10636         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10637         (frv_have_stopped_data_address): Remove.
10638
10639 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10640
10641         Fix -Wmissing-prototypes build.
10642         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10643         * sh-tdep.c: Include sh64-tdep.h.
10644         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10645         * sh64-tdep.c: Include sh64-tdep.h.
10646         * sh64-tdep.h: New file.
10647
10648 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
10649
10650         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10651
10652 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
10653
10654         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10655         sp_regnum once the gdbarch_init_osabi hook has been called.
10656
10657 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
10658
10659         * mips-tdep.c (mips32_bc1_pc): New function.
10660         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10661         BPOSGE32 and BPOSGE64 instructions.
10662         (deal_with_atomic_sequence): Likewise.
10663         (mips32_instruction_has_delay_slot): Likewise.
10664
10665 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
10666             Chris Dearman  <chris@mips.com>
10667             Maciej W. Rozycki  <macro@codesourcery.com>
10668             Joseph Myers  <joseph@codesourcery.com>
10669
10670         * features/mips-dsp.xml: New file.
10671         * features/mips64-dsp.xml: New file.
10672         * features/mips-dsp-linux.xml: New file.
10673         * features/mips64-dsp-linux.xml: New file.
10674         * features/Makefile (WHICH): Add mips-dsp-linux and
10675         mips64-dsp-linux.
10676         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10677         * features/mips-dsp-linux.c: New file.
10678         * features/mips64-dsp-linux.c: New file.
10679         * regformats/mips-dsp-linux.dat: New file.
10680         * regformats/mips64-dsp-linux.dat: New file.
10681         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10682         registers.
10683         (mips64_linux_register_addr): Likewise.
10684         (mips64_linux_regsets_fetch_registers): Likewise.
10685         (mips64_linux_regsets_store_registers): Likewise.
10686         (mips64_linux_fetch_registers): Update call to
10687         mips64_linux_regsets_fetch_registers.
10688         (mips64_linux_store_registers): Update call to
10689         mips64_linux_regsets_store_registers.
10690         (mips_linux_read_description): Probe for DSP registers.
10691         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10692         and initialize_tdesc_mips64_dsp_linux.
10693         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10694         Remove padding of no longer used embedded register slots.
10695         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10696         (MIPS_RESTART_REGNUM): Redefine enum value.
10697         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10698         strings.
10699         (mips_tx39_reg_names): Likewise.
10700         (mips_linux_reg_names): New array of register names for Linux
10701         targets.
10702         (mips_register_name): Check for a null pointer in
10703         mips_processor_reg_names and return an empty string.
10704         (mips_register_type): Exclude embedded registers for the IRIX
10705         and Linux ABIs.
10706         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
10707         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
10708         DSP registers.
10709         (mips_stab_reg_to_regnum): Handle DSP accumulators.
10710         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10711         (mips_gdbarch_init): Likewise.  Initialize internal register
10712         indices for the Linux ABI.  Use dynamic numbers to refer to
10713         registers, as applicable, while parsing the target description.
10714         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10715
10716 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
10717
10718         * frame.h (read_frame_register_unsigned): Fix typo in function
10719         description.
10720
10721 2012-03-01  Pedro Alves  <palves@redhat.com>
10722
10723         * jit-reader.in [!__cplusplus]
10724         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10725
10726 2012-03-01  Pedro Alves  <palves@redhat.com>
10727
10728         * configure.ac (build_warnings): Add -Wmissing-prototypes.
10729         * configure: Regenerate.
10730
10731 2012-03-01  Pedro Alves  <palves@redhat.com>
10732
10733         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10734         * breakpoint.c (create_exception_master_breakpoint, trace_command)
10735         (ftrace_command, strace_command): Make static.
10736         * d-lang.c (_initialize_d_language): Declare.
10737         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10738         * dwarf2loc.c (_initialize_dwarf2loc):
10739         * dwarf2read.c (process_psymtab_comp_unit): Make static.
10740         * exec.c (exec_get_section_table): Make static.
10741         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10742         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10743         * inferior.c (remove_inferior_command, add_inferior_command)
10744         (clone_inferior_command): Make static.
10745         * linux-nat.c (linux_nat_thread_address_space)
10746         (linux_nat_core_of_thread): Make static.
10747         * linux-tdep.c (_initialize_linux_tdep): Declare.
10748         * objc-lang.c (_initialize_objc_lang): Declare.
10749         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10750         Make static.
10751         (_initialize_opencl_language): Declare.
10752         * record.c (_initialize_record): Declare.
10753         * remote.c (demand_private_info, remote_get_tib_address)
10754         (remote_supports_cond_tracepoints)
10755         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10756         Make static.
10757         * skip.c (_initialize_step_skip): Declare.
10758         * symtab.c (skip_prologue_using_lineinfo): Make static.
10759         * tracepoint.c (delete_trace_state_variable)
10760         (trace_variable_command, delete_trace_variable_command)
10761         (get_uploaded_tsv, find_matching_tracepoint_location)
10762         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10763         Make static.
10764         * value.c (pack_unsigned_long): Make static.
10765         * varobj.c (varobj_ensure_python_env): Make static.
10766         * windows-tdep.c (_initialize_windows_tdep): Declare.
10767         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10768
10769 2012-03-01  Pedro Alves  <palves@redhat.com>
10770
10771         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
10772         gdbarch parameter.
10773         (linux_init_abi): Install it as has_shared_address_space gdbarch
10774         callback.
10775
10776 2012-03-01  Pedro Alves  <palves@redhat.com>
10777
10778         * observer.c (observer_test_first_notification_function)
10779         (observer_test_second_notification_function)
10780         (observer_test_third_notification_function): Add declarations.
10781
10782 2012-03-01  Pedro Alves  <palves@redhat.com>
10783
10784         * common/signals.c (default_target_signal_to_host)
10785         (default_target_signal_from_host): Move ...
10786         * arch-utils.c: ... here.
10787         * arch-utils.h (default_target_signal_to_host)
10788         (default_target_signal_from_host): Declare.
10789
10790         * common/signals.c (target_signal_from_command): Move ...
10791         * infrun.c: ... here.
10792         * inferior.h (target_signal_from_command): Declare.
10793         * target.h (target_signal_from_command)
10794         (default_target_signal_from_host, default_target_signal_to_host):
10795         Delete declarations.
10796
10797         * common/signals.c (_initialize_signals): Delete.
10798
10799 2012-03-01  Pedro Alves  <palves@redhat.com>
10800
10801         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10802         both __cplusplus and !__cplusplus.
10803
10804 2012-03-01  Pedro Alves  <palves@redhat.com>
10805
10806         * psymtab.c (find_and_open_source): Delete declaration.
10807         * source.c (find_and_open_source): Move comment ...
10808         * source.h (find_and_open_source): ... to this new declaration.
10809
10810 2012-03-01  Pedro Alves  <palves@redhat.com>
10811
10812         * inline-frame.c: Include inline-frame.h.
10813
10814 2012-03-01  Pedro Alves  <palves@redhat.com>
10815
10816         * tui/tui-data.c (set_gen_win_origin): Delete.
10817         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10818         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10819
10820 2012-03-01  Pedro Alves  <palves@redhat.com>
10821
10822         * remote.c (encode_actions): Delete declaration.
10823         * tracepoint.c (encode_actions): Make extern.
10824         * tracepoint.h (encode_actions): Declare.
10825
10826 2012-03-01  Pedro Alves  <palves@redhat.com>
10827
10828         * python/py-breakpoint.c: Include python.h.
10829         * python/py-continueevent.c (create_continue_event_object): Make
10830         static.
10831         * python/py-lazy-string.c (stpy_get_type): Make static.
10832         * python/py-newobjfileevent.c (create_new_objfile_event_object):
10833         Make static.
10834         * python/py-utils.c (unicode_to_target_python_string): Make
10835         static.
10836         * python/py-value.c: Include python.h.
10837
10838 2012-03-01  Pedro Alves  <palves@redhat.com>
10839
10840         * inferior.c (delete_threads_of_inferior): Delete.
10841
10842 2012-03-01  Pedro Alves  <palves@redhat.com>
10843
10844         Import fallback definitions from glibc.
10845
10846         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10847         ps_prochandle): Forward declare.
10848         (ps_err_e): Use glibc's comments.
10849         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10850         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10851         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10852         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10853         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10854         (struct ps_prochandle): Adjust comment.
10855
10856 2012-03-01  Pedro Alves  <palves@redhat.com>
10857
10858         * ada-lang.c (ada_modulus_from_name): Delete.
10859         * ada-lex.l (lexer_init): Make static.
10860
10861 2012-03-01  Pedro Alves  <palves@redhat.com>
10862
10863         PR gdb/13767
10864
10865         * frame.c (read_frame_register_unsigned): New.
10866         * frame.h (read_frame_register_unsigned): Declare.
10867         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10868         Handle it.
10869         (print_i387_control_word): New parameter `control_p'.  Handle it.
10870         (i387_print_float_info): Handle unavailable float registers.
10871
10872 2012-03-01  Keith Seitz  <keiths@redhat.com>
10873
10874         * linespec.c (decode_line_2): Sort the list of methods
10875         alphabetically before presenting the user with a selection
10876         menu.
10877
10878 2012-03-01  Doug Evans  <dje@google.com>
10879
10880         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10881         has_namespace_info.
10882         (dwarf2_read_abbrevs): Remove corresponding initialization.
10883
10884 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
10885
10886         * NEWS: Mention new python command class gdb.COMMAND_USER.
10887         * cli/cli-cmds.c (show_user): Print error when used on a python
10888         command.
10889         (init_cli_cmds): Update documentation strings for "show user" and
10890         "set/show max-user-call-depth" to clarify that it does not apply to
10891         python commands.
10892         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10893         error check.
10894         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10895         gdb python api.
10896         * top.c (execute_command): Only execute a user-defined command as a
10897         legacy macro if c->user_commands is set.
10898
10899 2012-03-01  Tom Tromey  <tromey@redhat.com>
10900
10901         * valprint.h (struct generic_val_print_decorations): New.
10902         (generic_val_print): Declare.
10903         * valprint.c (generic_val_print): New function.
10904         * p-valprint.c (p_decorations): New global.
10905         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10906         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10907         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10908         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10909         * m2-valprint.c (m2_decorations): New global.
10910         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10911         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10912         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10913         TYPE_CODE_ERROR>: Call generic_val_print.
10914         * f-valprint.c (f_decorations): New global.
10915         (f_val_print): Use print_function_pointer_address.
10916         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10917         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10918         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10919         generic_val_print.
10920         * c-valprint.c (c_decorations): New global.
10921         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10922         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10923         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10924         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10925         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10926         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10927         case.
10928
10929 2012-03-01  Tom Tromey  <tromey@redhat.com>
10930
10931         * valprint.c (val_print): Update.
10932         * p-valprint (pascal_val_print): Return void.
10933         * p-lang.h (pascal_val_print): Return void.
10934         * m2-valprint.c (m2_val_print): Return void.
10935         * m2-lang.h (m2_val_print): Return void.
10936         * language.h (struct language_defn) <la_val_print>: Return void.
10937         * language.c (unk_lang_val_print): Return void.
10938         * jv-valprint.c (java_val_print): Return void.
10939         * jv-lang.h (java_val_print): Return void.
10940         * f-valprint.c (f_val_print): Return void.
10941         * f-lang.h (f_val_print): Return void.
10942         * d-valprint.c (d_val_print): Return void.
10943         (dynamic_array_type): Update.
10944         * d-lang.h (d_val_print): Return void.
10945         * c-valprint.c (c_val_print): Return void.
10946         * c-lang.h (c_val_print): Return void.
10947         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10948         void.
10949         * ada-lang.h (ada_val_print): Return void.
10950
10951 2012-03-01  Tom Tromey  <tromey@redhat.com>
10952
10953         * value.h (val_print): Return void.
10954         * valprint.c (val_print): Return void.
10955
10956 2012-03-01  Tom Tromey  <tromey@redhat.com>
10957
10958         * value.h (common_val_print): Return void.
10959         * valprint.c (common_val_print): Return void.
10960
10961 2012-03-01  Tom Tromey  <tromey@redhat.com>
10962
10963         * value.h (value_print): Return void.
10964         * valprint.c (value_print): Return void.
10965         * p-valprint.c (pascal_value_print): Return void.
10966         * p-lang.h (pascal_value_print): Return void.
10967         * language.h (struct language_defn) <la_value_print>: Return
10968         void.
10969         * language.c (unk_lang_value_print): Return void.
10970         * jv-valprint.c (java_value_print): Return void.
10971         * jv-lang.h (java_value_print): Return void.
10972         * f-valprint.c (c_value_print): Don't declare.
10973         Include c-lang.h.
10974         * c-valprint.c (c_value_print): Return void.
10975         * c-lang.h (c_value_print): Return void.
10976         * ada-valprint.c (ada_value_print): Return void.
10977         * ada-lang.h (ada_value_print): Return void.
10978
10979 2012-03-01  Tom Tromey  <tromey@redhat.com>
10980
10981         * value.c (value_primitive_field): Handle virtual base classes.
10982
10983 2012-03-01  Tom Tromey  <tromey@redhat.com>
10984
10985         * gdbtypes.h (struct vbase): Remove.
10986
10987 2012-03-01  Tom Tromey  <tromey@redhat.com>
10988
10989         * c-valprint.c (print_function_pointer_address): Move...
10990         * valprint.c: ... here.  Make non-static.
10991         * m2-valprint.c (print_function_pointer_address): Remove.
10992         * valprint.h (print_function_pointer_address): Declare.
10993
10994 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
10995
10996         * NEWS: Document the fact that one can provide a condition when
10997         creating an Ada exception catchpoint.
10998
10999 2012-03-01  Tom Tromey  <tromey@redhat.com>
11000
11001         * valprint.c (val_print_type_code_flags): Fix placement of
11002         trailing brace.
11003
11004 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
11005
11006         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
11007         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
11008         environment variable before calling update-copyright.
11009
11010 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
11011
11012         * gnulib/extra/update-copyright: Update to the latest from
11013         gnulib's git repository.
11014         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
11015         variable to 2 instead of 1.
11016
11017 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11018
11019         * varobj.c (c_value_of_variable): Remove dead code.
11020
11021 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11022
11023         * ada-lex.p (processId): Do not modify already encoded IDs.
11024         Update function documentation.
11025
11026 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11027
11028         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
11029         "name" with "struct symbol *name_sym".
11030         * ada-exp.y (write_var_or_type): Update call to
11031         ada_find_renaming_symbol.
11032         "name" with "struct symbol *name_sym". Adjust Implementation
11033         accordingly.  Adjust the function documentation.
11034
11035 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11036
11037         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
11038         * ada-lang.c (ada_find_any_type): Add advance declaration.
11039         Make static.  Replace ada_find_any_symbol by
11040         ada_find_any_type_symbol.
11041         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
11042         Improve function description.  Make static.
11043         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
11044         Replace ada_find_any_symbol by ada_find_any_type_symbol.
11045
11046 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11047
11048         * ada-lang.c (struct tag_args): Delete.
11049         (ada_get_tsd_type): Function body moved up in source file.
11050         (ada_tag_name_1, ada_tag_name_2): Delete.
11051         (ada_get_tsd_from_tag): New function.
11052         (ada_tag_name_from_tsd): New function.
11053         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
11054         to determine the tag name.
11055
11056 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11057
11058         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
11059         declaration.
11060         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
11061         function.
11062
11063 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11064
11065         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
11066
11067 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11068
11069         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
11070         full searches.
11071
11072 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11073
11074         * ada-lang.c (constrained_packed_array_type): If there is a
11075         parallel XA type, use it to determine the array index type.
11076
11077 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11078
11079         * ada-valprint.c (ada_val_print_1): If our value is a reference
11080         to an array descriptor, dereference it before converting it
11081         to a simple array.
11082
11083 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11084
11085         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
11086         creating fixed value.
11087         (ada_value_ind, ada_coerce_ref, assign_component)
11088         (ada_evaluate_subexp): Remove call to unwrap_value before
11089         call to ada_to_fixed_value.
11090
11091 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11092
11093         * ada-lang.c (to_fixed_array_type): Set result's type name.
11094
11095 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11096
11097         * ada-lang.c (catch_ada_exception_command_split): Add new
11098         argument cond_string.  Add support for condition at end of
11099         "catch exception" commands.
11100         (ada_decode_exception_location): Add new argument cond_string.
11101         Update call to catch_ada_exception_command_split.
11102         (create_ada_exception_catchpoint): Add new argument cond_string.
11103         Set the breakpoint condition if needed.
11104         (catch_ada_exception_command): Update call to
11105         ada_decode_exception_location.
11106         (ada_decode_assert_location): Add function documentation.
11107         Add support for condition at end of "catch assert" command.
11108         (catch_assert_command): Update calls to ada_decode_assert_location
11109         and create_ada_exception_catchpoint.
11110
11111 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
11112
11113         Fix disp-step-syscall.exp: fork: single step over fork.
11114         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
11115         (i386_linux_get_syscall_number_from_regcache): ... here, new function
11116         comment, change parameters gdbarch and ptid to regcache.  Remove
11117         parameter regcache, initialize gdbarch from regcache here.
11118         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
11119         New functions.
11120         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
11121         instead.
11122         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
11123         'syscall'.  Make the 'int' check more strict.
11124
11125 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
11126
11127         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
11128         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
11129         (i386_linux_intx80_sysenter_syscall_record): ... here.
11130         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
11131         Use the renamed function name.
11132
11133 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
11134
11135         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11136         * breakpoint.c (until_break_command): Likewise.
11137         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11138         * infcall.c (call_function_by_hand): Likewise.
11139         * infcmd.c (finish_forward): Likewise.
11140         * infrun.c (insert_exception_resume_breakpoint): Likewise.
11141
11142 2012-02-28  Tristan Gingold  <gingold@adacore.com>
11143
11144         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11145         avoid variable assignments inside condition.
11146
11147 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
11148
11149         Fix static analysis issue found by cppcheck.
11150         * microblaze-tdep.c (microblaze_extract_return_value): Fix
11151         uninitialized BUF for size 2.
11152
11153 2012-02-27  Chris Dearman  <chris@mips.com>
11154             Nathan Froyd  <froydnj@codesourcery.com>
11155             Maciej W. Rozycki  <macro@codesourcery.com>
11156
11157         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11158         (mips16_instruction_has_delay_slot): Likewise.
11159         (mips_segment_boundary): Likewise.
11160         (mips_adjust_breakpoint_address): Likewise.
11161         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11162
11163 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
11164             Maciej W. Rozycki  <macro@codesourcery.com>
11165
11166         * infrun.c (handle_inferior_event): Don't proceed through
11167         shared library trampolines if stepping at the machine
11168         instruction level.
11169
11170 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
11171
11172         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11173         too.
11174
11175 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
11176
11177         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11178         (sh_stub_unwind_sniffer): New functions.
11179         (sh_stub_unwind): New variable.
11180         (sh_gdbarch_init): Wire everything.
11181
11182 2012-02-27  Pedro Alves  <palves@redhat.com>
11183
11184         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11185         (linux_nat_post_attach_wait): Adjust to use
11186         linux_proc_pid_is_stopped.
11187         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11188         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11189         based on pid_is_stopped from both linux-nat.c and
11190         gdbserver/linux-low.c, and renamed.
11191
11192 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
11193
11194         * remote.c (remote_watchpoint_addr_within_range): New function.
11195         (init_remote_ops): Use it.
11196
11197 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
11198
11199         * target.h (target_watchpoint_addr_within_range): Document macro.
11200
11201 2012-02-24  Pedro Alves  <palves@redhat.com>
11202
11203         * stack.c (set_last_displayed_sal): Issue internal_error instead
11204         of warning, and issue it after clearing the last displayed sal.
11205
11206 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11207             Pedro Alves  <palves@redhat.com>
11208
11209         * breakpoint.c (until_break_command): Install breakpoints after
11210         all frame manipulations.
11211
11212 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
11213
11214         * remote.c (remote_supports_cond_breakpoints): New forward
11215         declaration.
11216         (remote_add_target_side_condition): New function.
11217         (remote_insert_breakpoint): Add target-side breakpoint
11218         conditional if supported.
11219         (remote_insert_hw_breakpoint): Likewise.
11220         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11221         hook.
11222
11223         * target.c (update_current_target): Inherit
11224         to_supports_evaluation_of_breakpoint_conditions.
11225         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11226
11227         * target.h (struct target_ops)
11228         <to_supports_evaluation_of_breakpoint_conditions>: New field.
11229         (target_supports_evaluation_of_breakpoint_conditions): New #define.
11230
11231         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11232         (condition_evaluation_both, condition_evaluation_auto,
11233         condition_evaluation_host, condition_evaluation_target,
11234         condition_evaluation_enums, condition_evaluation_mode_1,
11235         condition_evaluation_mode): New static globals.
11236         (translate_condition_evaluation_mode): New function.
11237         (breakpoint_condition_evaluation_mode): New function.
11238         (gdb_evaluates_breakpoint_condition_p): New function.
11239         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11240         (mark_breakpoint_modified): New function.
11241         (mark_breakpoint_location_modified): New function.
11242         (set_condition_evaluation_mode): New function.
11243         (show_condition_evaluation_mode): New function.
11244         (bp_location_compare_addrs): New function.
11245         (get_first_location_gte_addr): New helper function.
11246         (set_breakpoint_condition): Free condition bytecode if locations
11247         has become unconditional.  Call mark_breakpoint_modified (...).
11248         (condition_command): Call update_global_location_list (1) for
11249         breakpoints.
11250         (breakpoint_xfer_memory): Use is_breakpoint (...).
11251         (is_breakpoint): New function.
11252         (parse_cond_to_aexpr): New function.
11253         (build_target_condition_list): New function.
11254         (insert_bp_location): Handle target-side conditional
11255         breakpoints and call build_target_condition_list (...).
11256         (update_inserted_breakpoint_locations): New function.
11257         (insert_breakpoint_locations): Handle target-side conditional
11258         breakpoints.
11259         (bpstat_check_breakpoint_conditions): Add comment.
11260         (bp_condition_evaluator): New function.
11261         (bp_location_condition_evaluator): New function.
11262         (print_breakpoint_location): Print information on where the condition
11263         will be evaluated.
11264         (print_one_breakpoint_location): Likewise.
11265         (init_bp_location): Call mark_breakpoint_location_modified (...) for
11266         breakpoint location.
11267         (force_breakpoint_reinsertion): New functions.
11268         (update_global_location_list): Handle target-side breakpoint
11269         conditions.
11270         Reinsert locations that are already inserted if conditions have
11271         changed.
11272         (bp_location_dtor): Free agent expression bytecode.
11273         (disable_breakpoint): Call mark_breakpoint_modified (...).
11274         Call update_global_location_list (...) with parameter 1 for breakpoints.
11275         (disable_command): Call mark_breakpoint_location_modified (...).
11276         Call update_global_location_list (...) with parameter 1 for breakpoints.
11277         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11278         (enable_command): mark_breakpoint_location_modified (...).
11279         (_initialize_breakpoint): Update documentation and add
11280         condition-evaluation breakpoint subcommand.
11281
11282         * breakpoint.h: Include ax.h.
11283         (condition_list): New data structure.
11284         (condition_status): New enum.
11285         (bp_target_info) <cond_list>: New field.
11286         (bp_location) <condition_changed, cond_bytecode>: New fields.
11287         (is_breakpoint): New prototype.
11288
11289 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
11290
11291         * remote.c (remote_state) <cond_breakpoints>: New field.
11292         (PACKET_ConditionalBreakpoints): New enum.
11293         (remote_cond_breakpoint_feature): New function.
11294         (remote_protocol_features): Add new ConditionalBreakpoints entry.
11295         (remote_supports_cond_breakpoints): New function.
11296         (_initialize_remote): Add new packet configuration for
11297         target-side conditional breakpoints.
11298
11299 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
11300
11301         * NEWS: Mention target-side conditional breakpoint support,
11302         new condition-evaluation breakpoint subcommand and remote
11303         packet extensions.
11304
11305 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
11306
11307         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11308         number.
11309
11310 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
11311
11312         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11313         (after_prologue): Remove.
11314
11315 2012-02-23  Tom Tromey  <tromey@redhat.com>
11316
11317         * jv-valprint.c (java_val_print): Remove dead code.
11318
11319 2012-02-23  Tristan Gingold  <gingold@adacore.com>
11320
11321         * ada-tasks.c (struct ada_tasks_inferior_data): Add
11322         known_tasks_element and known_tasks_length fields.
11323         (read_known_tasks_array): Change argument type.  Use pointer type
11324         and number of elements from DATA.  Adjust.
11325         (read_known_tasks_list): Likewise.
11326         (get_known_tasks_addr): Remove.
11327         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11328         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
11329         type and array length.  Merge former get_known_tasks_addr code.
11330
11331 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
11332
11333         PR backtrace/13716
11334         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11335         it after set_momentary_breakpoint.
11336
11337 2012-02-22  Sterling Augustine  <saugustine@google.com>
11338
11339         PR 13689:
11340         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11341
11342 2012-02-22  Gary Benson  <gbenson@redhat.com>
11343
11344         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11345         (find_slot_in_mapped_hash): Likewise.
11346
11347 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11348
11349         PR build/13638
11350         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11351         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11352         * configure: Regenerate.
11353
11354 2012-02-21  Tristan Gingold  <gingold@adacore.com>
11355             Pedro Alves  <palves@redhat.com>
11356
11357         * ia64-tdep.c: Do not include libunwind-ia64.h.
11358         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11359         Include libunwind-ia64.h instead of libunwind.h.
11360         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11361         for libunwind.h existence.
11362         * configure, config.in: Regenerate.
11363
11364 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
11365
11366         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11367         instead of value_rtti_target_type.
11368         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11369         instead of value_rtti_target_type.
11370         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11371         value_rtti_target_type.
11372         * valops.c (value_ind): Extract function readjust_indirect_value_type.
11373         (value_rtti_target_type): Rename to ...
11374         (value_rtti_indirect_type): ... here and make it indirect.  Update
11375         function comment.
11376         * value.c (readjust_indirect_value_type): New function.
11377         (coerce_ref): Support for enclosing type setting for references
11378         with readjust_indirect_value_type.
11379         * value.h (readjust_value_type): New declaration.
11380         (value_rtti_target_type): Rename to ...
11381         (value_rtti_indirect_type): ... here.
11382
11383 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
11384
11385         * MAINTAINERS (Write After Approval): Add myself to the list.
11386
11387 2012-02-20  Doug Evans  <dje@google.com>
11388
11389         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11390         Rename objfile_p_char parameter to objfilep.
11391         (build_objfile_section_table): Result is now void.  All callers
11392         updated.
11393         * objfiles.h (struct objfile): Tweak comments, whitespace.
11394         (build_objfile_section_table): Update.
11395
11396         * elfread.c (elf_symfile_segments): Fix warning text.
11397
11398 2012-02-20  Tom Tromey  <tromey@redhat.com>
11399
11400         PR gdb/13498:
11401         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11402         particular set of file names once.
11403         (dw2_map_symbol_filenames): Likewise.
11404
11405 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
11406
11407         Code cleanup.
11408         * main.c (write_files): Remove the declaration.
11409         (external_editor_command): Move the declaration ...
11410         [GDBTK] (external_editor_command): ... here.  Fix the comment.
11411
11412 2012-02-20  Tom Tromey  <tromey@redhat.com>
11413
11414         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11415         extraneous block.
11416
11417 2012-02-20  Tristan Gingold  <gingold@adacore.com>
11418
11419         * darwin-nat.h (enum darwin_msg_state): Add comments.
11420
11421 2012-02-20  Tristan Gingold  <gingold@adacore.com>
11422
11423         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11424         value.
11425
11426 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
11427
11428         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11429         between function description and implementation.
11430
11431 2012-02-17  Tom Tromey  <tromey@redhat.com>
11432
11433         PR python/12070:
11434         * python/py-event.c (event_object_getset): New global.
11435         (event_object_type): Reference it.
11436         * python/py-type.c (field_object_getset): New global.
11437         (field_object_type): Reference it.
11438         * python/python-internal.h (gdb_py_generic_dict): Declare.
11439         * python/py-utils.c (gdb_py_generic_dict): New function.
11440
11441 2012-02-17  Tristan Gingold  <gingold@adacore.com>
11442
11443         * solib-darwin.c (darwin_current_sos): Check magic and filetype
11444
11445 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11446
11447         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11448         TYPE_CALLING_CONVENTION annotation.
11449
11450 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
11451
11452         * MAINTAINERS: Add rx to target ISA section.
11453         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11454         (ALLDEPFILES): Add rx-tdep.c.
11455
11456 2012-02-16  Tom Tromey  <tromey@redhat.com>
11457
11458         * symfile.c (symbol_file_add_main_1): Use inferior's
11459         symfile_flags.
11460         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11461         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11462         inferior.
11463         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11464         inferior.
11465         (follow_exec): Use inferior's symfile_flags.
11466         * inferior.h (struct inferior) <symfile_flags>: New field.
11467
11468 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
11469
11470         PR gdb/9734:
11471         * remote-sim.c (gdbsim_create_inferior): Call error() when
11472         sim_create_inferior() fails.
11473
11474 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
11475
11476         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11477
11478 2012-02-16  Tom Tromey  <tromey@redhat.com>
11479
11480         PR c++/13653:
11481         * thread.c (struct current_thread_cleanup) <was_removable>: New
11482         field.
11483         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11484         (make_cleanup_restore_current_thread): Initialize new field.
11485
11486 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
11487
11488         * MAINTAINERS: Add rl78 to target ISA section.
11489         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11490         (ALLDEPFILES): Add rl78-tdep.c.
11491         * NEWS: Mention rl78 as a new target.
11492
11493 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
11494
11495         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11496         data.
11497         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11498
11499 2012-02-15  Tom Tromey  <tromey@redhat.com>
11500
11501         PR gdb/12659:
11502         * infcmd.c (registers_info): Print just the current register's
11503         name.
11504
11505 2012-02-15  Tom Tromey  <tromey@redhat.com>
11506
11507         * python/py-symbol.c (sympy_value): Use _().
11508
11509 2012-02-15  Pedro Alves  <palves@redhat.com>
11510
11511         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11512         output to be like native targets'.
11513         (remote_pid_to_str): Special case the null ptid.
11514
11515 2012-02-14  Stan Shebs  <stan@codesourcery.com>
11516
11517         * NEWS: Mention enable count command.
11518         * breakpoint.h (struct breakpoint): New field enable_count.
11519         * breakpoint.c (enable_breakpoint_disp): Add count argument.
11520         (enable_breakpoint): Add arg to call.
11521         (struct disp_data): New struct.
11522         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11523         (do_map_enable_once_breakpoint): Create a struct and pass it.
11524         (do_map_enable_delete_breakpoint): Ditto.
11525         (do_map_enable_count_breakpoint): New function.
11526         (enable_count_command): New function.
11527         (bpstat_stop_status): Decrement enable_count.
11528         (print_one_breakpoint_location): Report enable count.
11529         (_initialize_breakpoint): Add enable count command.
11530
11531 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
11532
11533         * rl78-tdep.c (reggroups.h): Include.
11534         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11535         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11536         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11537         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11538         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11539         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11540         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11541         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11542         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11543         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11544         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11545         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11546         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11547         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11548         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11549         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11550         beginning of register list.
11551         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11552         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11553         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11554         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11555         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11556         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11557         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11558         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11559         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11560         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11561         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11562         the pseudo registers.  Rearrange other pseudo registers too so
11563         that the bank registers appear at the end.
11564         (rl78_register_type): Account for the fact that the byte sized
11565         bank registers are now pseudo-registers.
11566         (rl78_register_name): Rearrange the register name array.  Make
11567         initial set of raw banked registers inaccessible.
11568         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11569         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11570         case for copying bytes back and forth between raw and pseudo
11571         versions of the banked registers.  Update other cases to reflect
11572         the changed names.
11573         (rl78_return_value): Update to account for changed names of
11574         raw registers.
11575         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11576         rl78_register_sim_regno().
11577
11578 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
11579
11580         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11581         the name parameter being passed to find_pc_partial_function().
11582
11583 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11584
11585         * MAINTAINERS: Step down from being ia64 target maintainer.
11586
11587 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11588
11589         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11590         compilation warning.
11591
11592 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11593
11594         Fix crash on loaded shlibs without loaded exec_bfd.
11595         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11596         (set_section_command): Replace exec_bfd by p->bfd.
11597
11598 2012-02-10  Tom Tromey  <tromey@redhat.com>
11599
11600         * linespec.c (decode_line_internal): Skip symtabs_from_filename
11601         when we have a C++ qualified name.
11602
11603 2012-02-10  Pedro Alves  <palves@redhat.com>
11604
11605         * inferior.c (inferior_pid_to_str): New.
11606         (print_inferior, inferior_command): Use it.
11607
11608 2012-02-10  Pedro Alves  <palves@redhat.com>
11609
11610         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11611         the test CFLAGS.
11612         * configure: Regenerate.
11613
11614 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11615
11616         * linespec.c (decode_line_internal): Fix comment correctness.
11617
11618 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
11619
11620         PR gdb/12953
11621         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11622         * amd64bsd-nat.c: Add support for debug registers (adapted from
11623         i386bsd-nat.c).
11624         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11625         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11626         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11627         (amd64bsd_dr_get_control): New functions.
11628         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11629         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11630         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11631         watchpoints initialization.
11632         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11633
11634 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11635
11636         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11637         flds_bnds.fields.
11638         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11639
11640 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11641
11642         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
11643
11644 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
11645
11646         * language.h (symbol_name_cmp_ftype): Renames
11647         symbol_name_match_p_ftype.
11648         (struct language_defn)[la_get_symbol_name_cmp]: Renames
11649         la_get_symbol_name_match_p.
11650         * ada-lang.c (ada_get_symbol_name_cmp): Renames
11651         ada_get_symbol_name_match_p.  Update comment.
11652         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11653         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11654         Renames symbol_name_match_p.  Update field type.
11655         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11656         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11657         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11658         "la_get_symbol_name_cmp" in comments.
11659         * language.c: Likewise.
11660
11661 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11662
11663         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11664         %eflags offset.
11665         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11666         (amd64_sol2_gregset32_reg_offs): Likewise.
11667
11668 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
11669
11670         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11671         of the returned BFD is allocated by GDB.
11672
11673 2012-02-07  Tom Tromey  <tromey@redhat.com>
11674
11675         PR python/12027:
11676         * python/python-internal.h (frame_object_type): Declare.
11677         * python/py-symbol.c (sympy_needs_frame): New function.
11678         (sympy_value): New function.
11679         (symbol_object_getset): Add "needs_frame".
11680         (symbol_object_methods): Add "value".
11681         * python/py-frame.c (frame_object_type): No longer static.
11682
11683 2012-02-07  Tom Tromey  <tromey@redhat.com>
11684
11685         PR python/13599:
11686         * python/py-symbol.c (sympy_line): New function.
11687         (symbol_object_getset): Add "line".
11688
11689 2012-02-07  Tom Tromey  <tromey@redhat.com>
11690
11691         * charset.c (find_charset_names): Check 'in' against NULL.
11692
11693 2012-02-06  Doug Evans  <dje@google.com>
11694
11695         * gdbtypes.h (struct main_type): Change type of name,tag_name,
11696         and fields.name members from char * to const char *.  All uses updated.
11697         (struct cplus_struct_type): Change type of fn_fieldlists.name member
11698         from char * to const char *.  All uses updated.
11699         (type_name_no_tag): Update.
11700         (lookup_unsigned_typename, lookup_signed_typename): Update.
11701         * gdbtypes.c (type_name_no_tag): Change result type
11702         from char * to const char *.  All callers updated.
11703         (lookup_unsigned_typename, lookup_signed_typename): Change type of
11704         name parameter from char * to const char *.
11705         * symtab.h (struct cplus_specific): Change type of demangled_name
11706         member from char * to const char *.  All uses updated.
11707         (struct general_symbol_info): Change type of name and
11708         mangled_lang.demangled_name members from char * to const char *.
11709         All uses updated.
11710         (symbol_get_demangled_name, symbol_natural_name): Update.
11711         (symbol_demangled_name, symbol_search_name): Update.
11712         * symtab.c (symbol_get_demangled_name): Change result type
11713         from char * to const char *.  All callers updated.
11714         (symbol_natural_name, symbol_demangled_name): Ditto.
11715         (symbol_search_name): Ditto.
11716         (completion_list_add_name): Change type of symname,sym_text,
11717         text,word parameters from char * to const char *.
11718         (completion_list_objc_symbol): Change type of sym_text,
11719         text,word parameters from char * to const char *.
11720         * ada-lang.c (find_struct_field): Change type of name parameter
11721         from char * to const char *.
11722         (encoded_ordered_before): Similarly for N0,N1 parameters.
11723         (old_renaming_is_invisible): Similarly for function_name parameter.
11724         (ada_type_name): Change result type from char * to const char *.
11725         All callers updated.
11726         * ada-lang.h (ada_type_name): Update.
11727         * buildsym.c (hashname): Change type of name parameter
11728         from char * to const char *.
11729         * buildsym.h (hashname): Update.
11730         * dbxread.c (end_psymtab): Change type of include_list parameter
11731         from char ** to const char **.
11732         * dwarf2read.c (determine_prefix): Change result type
11733         from char * to const char *.  All callers updated.
11734         * f-lang.c (find_common_for_function): Change type of name, funcname
11735         parameters from char * to const char *.
11736         * f-lang.c (find_common_for_function): Update.
11737         * f-valprint.c (list_all_visible_commons): Change type of funcname
11738         parameters from char * to const char *.
11739         * gdbarch.sh (static_transform_name): Change type of name parameter
11740         and result from char * to const char *.
11741         * gdbarch.c: Regenerate.
11742         * gdbarch.h: Regenerate.
11743         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11744         of name parameter from char * to const char *.
11745         * jv-lang.c (java_primitive_type_from_name): Ditto.
11746         (java_demangled_signature_length): Similarly for signature parameter.
11747         (java_demangled_signature_copy): Ditto.
11748         (java_demangle_type_signature): Ditto.
11749         * jv-lang.h (java_primitive_type_from_name): Update.
11750         (java_demangle_type_signature): Update.
11751         * objc-lang.c (specialcmp): Change type of a,b parameters
11752         from char * to const char *.
11753         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11754         from char * to const char *.  All callers updated.
11755         * p-lang.h (is_pascal_string_type): Update.
11756         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11757         of name parameter from char * to const char *.
11758         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11759         * utils.c (fprintf_symbol_filtered): Ditto.
11760         * defs.h (fprintf_symbol_filtered): Update.
11761         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11762         * stabsread.h (end_psymtab): Update.
11763         * stack.c (find_frame_funname): Change type of funname parameter
11764         from char ** to const char **.
11765         * stack.h (find_frame_funname): Update.
11766         * typeprint.c (type_print): Change type of varstring parameter
11767         from char * to const char *.
11768         * value.h (type_print): Update.
11769         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11770         from char * to const char *.  All callers updated.
11771         (xcoff_end_psymtab): Change type of include_list parameter
11772         from char ** to const char **.  All callers updated.
11773         (swap_sym): Similarly for name parameter.  All callers updated.
11774         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11775         Use xstrdup.
11776         (process_coff_symbol): Use xstrdup.
11777         * stabsread.c (stabs_method_name_from_physname): Renamed from
11778         update_method_name_from_physname.  Change result type from void
11779         to char *.  All callers updated.
11780         (read_member_functions): In has_destructor case, store name in objfile
11781         obstack instead of malloc space.  In !has_stub case, fix mem leak.
11782
11783 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
11784
11785         * configure: Rebuild.
11786         * configure.ac: Put -L../bfd and -L../libiberty at the front of
11787         LDFLAGS.
11788
11789 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
11790
11791         * configure.tgt (rl78-*-elf): New target.
11792         * rl78-tdep.c: New file.
11793
11794 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
11795
11796         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11797         and continue the loop.  Add QUIT statement.
11798
11799 2012-02-03  Tom Tromey  <tromey@redhat.com>
11800
11801         PR gdb/13596:
11802         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11803         bfd_lookup_symbol_from_symtab.
11804         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11805         gdb_bfd_lookup_symbol_from_symtab.
11806
11807 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
11808
11809         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11810         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11811         symbol.  Add assertion that sym2 is never NULL.
11812
11813 2012-02-02  Doug Evans  <dje@google.com>
11814
11815         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11816         "name" parameter to const char ** from char **.  All callers updated.
11817         (find_pc_partial_function): Ditto.
11818         (cache_pc_function_name): Change type to const char * from char *.
11819         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11820         (find_pc_partial_function): Update.
11821         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11822         type of "name" parameter to const char * from char *.
11823         All uses updated.
11824         * arch-utils.c (generic_in_solib_return_trampoline): Change
11825         type of "name" parameter to const char * from char *.
11826         * arch-utils.h (generic_in_solib_return_trampoline): Update.
11827         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11828         type of "name" parameter to const char * from char *.
11829         * gdbarch.sh (in_solib_return_trampoline): Ditto.
11830         * gdbarch.c: Regenerate.
11831         * gdbarch.h: Regenerate.
11832         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11833         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11834         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11835         type of "name" parameter to const char * from char *.
11836         * skip.c (skip_function_pc): Ditto.
11837         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11838         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11839         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11840         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11841         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11842         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11843         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11844         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11845         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11846
11847 2012-02-02  Pedro Alves  <palves@redhat.com>
11848
11849         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11850         the current inferior has no execution.  Make sure the current
11851         remote process matches gdb's current inferior.
11852
11853 2012-02-02  Tom Tromey  <tromey@redhat.com>
11854
11855         PR gdb/13405:
11856         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11857         read-only memory.
11858
11859 2012-02-02  Tom Tromey  <tromey@redhat.com>
11860
11861         PR gdb/9307:
11862         * symtab.c (lookup_language_this): Set block_found.
11863
11864 2012-02-01  Tom Tromey  <tromey@redhat.com>
11865
11866         PR gdb/13431:
11867         * jit.c (struct jit_inferior_data): Rewrite.
11868         (struct jit_objfile_data): New.
11869         (get_jit_objfile_data): New function.
11870         (add_objfile_entry): Update.
11871         (jit_read_descriptor): Return int.  Replace descriptor_addr
11872         argument with inf_data.  Update.  Don't call error.
11873         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
11874         descriptor here.
11875         (jit_inferior_init): Don't look up descriptor.  Don't call error.
11876         (jit_reset_inferior_data_and_breakpoints)
11877         (jit_inferior_created_observer): Remove.
11878         (jit_inferior_exit_hook): Update.
11879         (jit_executable_changed_observer): Remove.
11880         (jit_event_handler): Update.
11881         (free_objfile_data): Reset inferior data if needed.
11882         (_initialize_jit): Update.
11883
11884 2012-02-01  Tom Tromey  <tromey@redhat.com>
11885
11886         * jit.c (bfd_open_from_target_memory): Move higher in file.
11887
11888 2012-02-01  Tristan Gingold  <gingold@adacore.com>
11889
11890         * libunwind-frame.c (libunwind_load): Display message if dlopen
11891         failed.
11892
11893 2012-02-01  Gary Benson  <gbenson@redhat.com>
11894
11895         * symtab.h (symbol_found_callback_ftype): New typedef.
11896         (iterate_over_symbols): Use the above.
11897         * symtab.c (iterate_over_symbols): Likewise.
11898         * language.h (language_defn->la_iterate_over_symbols): Likewise.
11899         * ada-lang.c (ada_iterate_over_symbols): Likewise.
11900         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11901         (iterate_name_matcher): Document return values.
11902         (collect_one_symbol): Likewise.
11903         (collect_function_symbols): Likewise.
11904         (collect_symbols): Likewise.
11905
11906 2012-02-01  Tom Tromey  <tromey@redhat.com>
11907
11908         * ada-lang.c (resolve_subexp): Update.
11909         (ada_lookup_symbol_list): Add 'full_search' argument.
11910         (ada_iterate_over_symbols): Pass 0 as full_search argument to
11911         ada_lookup_symbol_list.
11912         (ada_lookup_encoded_symbol): Update.
11913         (get_var_value): Update.
11914         * ada-exp.y (block_lookup): Update.
11915         (write_var_or_type): Update.
11916         (write_name_assoc): Update.
11917         * ada-lang.h (ada_lookup_symbol_list): Update.
11918
11919 2012-01-31  Tom Tromey  <tromey@redhat.com>
11920
11921         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11922         comment.
11923
11924 2012-01-31  Doug Evans  <dje@google.com>
11925
11926         * symtab.h: Remove outdated comment.
11927         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11928
11929 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
11930
11931         Fix build error in Darwin port.
11932         * i386-darwin-nat.c: Include i386-nat.h.
11933
11934 2012-01-30  Tom Tromey  <tromey@redhat.com>
11935
11936         PR breakpoints/13568:
11937         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11938         argument.  Check for recursive includes.
11939         (dwarf_decode_macros): Create an include hash.
11940
11941 2012-01-30  Michael Eager  <eager@eagercon.com>
11942
11943         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11944         * ppc-linux-tdep.c: Include glibc-tdep.h.
11945         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11946         (powerpc_linux_in_plt_stub): New function.
11947         (powerpc_linux_in_dynsym_resolve_code): New function.
11948         (ppc_skip_trampoline_code): New function.
11949         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11950         Use glibc_skip_solib_resolver.
11951
11952 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
11953
11954         Code cleanup: Make 1440 bytes of data segment read-only.
11955         * arch-utils.c (endian_enum): Make it const char *const [].
11956         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11957         Likewise.
11958         * breakpoint.c (always_inserted_enums): Likewise.
11959         * cli/cli-cmds.c (script_ext_enums): Likewise.
11960         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11961         enumlist parameter const char *const *.
11962         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11963         const char *const *.
11964         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11965         parameter const char *const *.
11966         * cris-tdep.c (cris_modes): Make it const char *const [].
11967         * filesystem.c (target_file_system_kinds): Likewise.
11968         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11969         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11970         (can_use_displaced_stepping_enum, scheduler_enums)
11971         (exec_direction_names): Likewise.
11972         * language.c (_initialize_language): Make the type_or_range_names and
11973         case_sensitive_names variables const char *const [].
11974         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11975         * python/python.c (python_excp_enums): Likewise.
11976         * remote.c (interrupt_sequence_modes): Likewise.
11977         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11978         * serial.c (logbase_enums): Likewise.
11979         * sh-tdep.c (sh_cc_enum): Likewise.
11980         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11981         Likewise.
11982         * symtab.c (multiple_symbols_modes): Likewise.
11983         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11984         Likewise.
11985         * utils.c (internal_problem_modes): Likewise.
11986
11987 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
11988
11989         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11990         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11991         result.
11992
11993 2012-01-27  Doug Evans  <dje@google.com>
11994
11995         * configure.ac (with_python): Fix absolute path handling for win32.
11996         * configure: Regenerate.
11997
11998 2012-01-26  Doug Evans  <dje@google.com>
11999
12000         * symtab.c: Whitespace cleanup, no code changes.
12001
12002         * symtab.c (lookup_symbol_in_language): Improve comment.
12003         (lookup_symbol_aux): Fix comment.
12004
12005         * psymtab.c (add_psymbol_to_list): Result is now "void".
12006         * psympriv.h (add_psymbol_to_list): Update.
12007
12008         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
12009
12010 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
12011
12012         Do not open script filenames twice.
12013         * cli/cli-cmds.c (source_script_from_stream): Pass to
12014         source_python_script also STREAM.
12015         * python/py-auto-load.c (source_section_scripts): Pass to
12016         source_python_script_for_objfile also STREAM.
12017         (auto_load_objfile_script): Pass to source_python_script_for_objfile
12018         also INPUT.
12019         * python/python-internal.h (source_python_script_for_objfile): New
12020         parameter file, rename parameter file to filename.
12021         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
12022         instead if !_WIN32.  Update the function comment.
12023         (source_python_script, source_python_script_for_objfile)
12024         (source_python_script): New parameter file, rename parameter file to
12025         filename.  Pass FILENAME to python_run_simple_file.
12026         * python/python.h (source_python_script): New parameter file, rename
12027         parameter file to filename.
12028
12029 2012-01-26  Pedro Alves  <palves@redhat.com>
12030
12031         * corelow.c (core_has_fake_pid): Delete.
12032         (core_close): Delete references to `core_has_fake_pid'.
12033         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
12034         (core_open): Delete references to `core_has_fake_pid'.
12035         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
12036         the removed global.
12037
12038 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
12039
12040         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
12041         Remove language parameter from name_matcher.  Adjust the comment.
12042         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
12043         Remove language parameter.
12044         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
12045         * linespec.c (iterate_name_matcher): Likewise.
12046         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
12047         name_matcher.  Adjust call accordingly.
12048         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
12049         (maintenance_check_symtabs): Adjust type of parameter "fun".
12050         * psymtab.h (maintenance_check_symtabs): Likewise.
12051
12052 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
12053
12054         * language.h (symbol_name_match_p_ftype): New typedef.
12055         (struct language_defn): Replace field la_symbol_name_compare
12056         by la_get_symbol_name_match_p.
12057         * ada-lang.c (ada_get_symbol_name_match_p): New function.
12058         (ada_language_defn): Use it.
12059         * linespec.c (struct symbol_matcher_data): New type.
12060         (iterate_name_matcher): Rewrite.
12061         (iterate_over_all_matching_symtabs): Pass a pointer to
12062         a symbol_matcher_data struct to expand_symtabs_matching
12063         instead of just the lookup name.
12064         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
12065         opencl-lang.c, p-lang.c, language.c: Delete field
12066         la_symbol_name_compare, and replace by NULL for new field
12067         la_get_symbol_name_match_p.
12068         * symfile.h (struct quick_symbol_functions): Update comment.
12069
12070 2012-01-25  Tom Tromey  <tromey@redhat.com>
12071
12072         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
12073         dereferencing.
12074
12075 2012-01-24  Tom Tromey  <tromey@redhat.com>
12076
12077         PR symtab/12406:
12078         * solib.c (update_solib_list): Update the program space's
12079         added_solibs and deleted_solibs fields.
12080         * progspace.h (struct program_space) <added_solibs,
12081         deleted_solibs>: New fields.
12082         (clear_program_space_solib_cache): Declare.
12083         * progspace.c (release_program_space): Call
12084         clear_program_space_solib_cache.
12085         (clear_program_space_solib_cache): New function.
12086         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
12087         bpstat_stop_status.  Use handle_solib_event.
12088         * breakpoint.c: Include gdb_regex.h.
12089         (print_solib_event): New function.
12090         (bpstat_print): Use print_solib_event.
12091         (bpstat_stop_status): Add special case for bp_shlib_event.
12092         (handle_solib_event): New function.
12093         (bpstat_what): Use handle_solib_event.
12094         (struct solib_catchpoint): New.
12095         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
12096         (breakpoint_hit_catch_solib, check_status_catch_solib)
12097         (print_it_catch_solib, print_one_catch_solib)
12098         (print_mention_catch_solib, print_recreate_catch_solib): New
12099         functions.
12100         (catch_solib_breakpoint_ops): New global.
12101         (catch_load_or_unload, catch_load_command_1)
12102         (catch_unload_command_1): New functions.
12103         (internal_bkpt_check_status): Add special case for
12104         bp_shlib_event.
12105         (internal_bkpt_print_it): Use print_solib_event.
12106         (initialize_breakpoint_ops): Initialize
12107         catch_solib_breakpoint_ops.
12108         (_initialize_breakpoint): Register "catch load" and "catch
12109         unload".
12110         * breakpoint.h (handle_solib_event): Declare.
12111         * NEWS: Add entry for "catch load" and "catch unload".
12112
12113 2012-01-24  Tom Tromey  <tromey@redhat.com>
12114
12115         * ada-lang.c: Include gdb_vecs.h.
12116         * charset.c: Include gdb_vecs.h.
12117         * tracepoint.h: Include gdb_vecs.h.
12118         * gdb_vecs.h: New file.
12119
12120 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
12121
12122         * breakpoint.c (breakpoint_hit_catch_fork)
12123         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
12124         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
12125         * infrun.c (inferior_has_forked, inferior_has_vforked)
12126         (inferior_has_execd, inferior_has_called_syscall): Delete.
12127         (handle_syscall_event): Get syscall_number from the execution
12128         control state's wait status.
12129         (wait_for_inferior): Don't clear syscall_number.
12130
12131 2012-01-24  Pedro Alves  <palves@redhat.com>
12132
12133         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12134         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12135         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12136         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12137         `ws' parameter.
12138         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
12139         false for events other than TARGET_SIGNAL_TRAP.
12140         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12141         Add `ws' parameter.
12142         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
12143         events other than TARGET_SIGNAL_TRAP.
12144         (tracepoint_breakpoint_hit): Add `ws' parameter.
12145         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12146         parameter.
12147         (bpstat_stop_status): Same.
12148         (pc_at_non_inline_function): Same.
12149         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12150         to pass the current event's waitstatus to bpstat_stop_status
12151         and pc_at_non_inline_function.
12152
12153 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12154
12155         Code cleanup.
12156         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12157         Update the function comment for it.
12158         (source_script_with_search): Call make_cleanup_fclose for STREAM.
12159         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12160         for STREAM.
12161
12162 2012-01-24  Pedro Alves  <palves@redhat.com>
12163
12164         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12165         outside `bs->stop' block.
12166         (bpstat_what): Rework bp_shlib_event handling.
12167         (internal_bkpt_check_status): If the breakpoint is a
12168         bp_shlib_event, then set bs->stop and bs->print if
12169         stop_on_solib_events is set.
12170
12171 2012-01-24  Gary Benson  <gbenson@redhat.com>
12172
12173         Delete #if 0'd out code.
12174         * stack.c (print_frame_label_vars): Remove.
12175         (catch_info): Likewise.
12176         (_initialize_stack): Remove "info catch" command.
12177         * NEWS: Mention the above.
12178
12179 2012-01-24  Pedro Alves  <palves@redhat.com>
12180
12181         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
12182         it.
12183         (remote_notice_new_inferior): If the remote end doesn't support
12184         the multiprocess extensions, then the PID is fake.
12185         (add_current_inferior_and_thread): New.
12186         (remote_start_remote): Use it.
12187         (extended_remote_attach_1): Adjust.
12188         (extended_remote_create_inferior_1): Use
12189         add_current_inferior_and_thread.
12190
12191 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12192
12193         Fix watchpoints to be specific for each inferior.
12194         * breakpoint.c (watchpoint_in_thread_scope): Verify also
12195         current_program_space.
12196         * i386-nat.c (i386_inferior_data_cleanup): New.
12197         (i386_inferior_data_get): Replace variable inf_data_local by an
12198         inferior_data call.
12199         (i386_use_watchpoints): Initialize i386_inferior_data.
12200         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12201         specific iterate_over_lwps.
12202
12203 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12204
12205         Fix watchpoints across inferior fork.
12206         * amd64-linux-nat.c (update_debug_registers_callback): Update the
12207         comment for linux_nat_iterate_watchpoint_lwps.
12208         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12209         linux_nat_iterate_watchpoint_lwps.
12210         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12211         * i386-linux-nat.c (update_debug_registers_callback): Update the
12212         comment for linux_nat_iterate_watchpoint_lwps.
12213         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12214         linux_nat_iterate_watchpoint_lwps.
12215         (i386_linux_prepare_to_resume): New comment on Linux kernel.
12216         * i386-nat.c: Include inferior.h.
12217         (dr_mirror): Remove.
12218         (i386_inferior_data, struct i386_inferior_data)
12219         (i386_inferior_data_get): New.
12220         (i386_debug_reg_state): Use i386_inferior_data_get.
12221         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12222         (i386_insert_watchpoint, i386_remove_watchpoint)
12223         (i386_stopped_data_address, i386_insert_hw_breakpoint)
12224         (i386_remove_hw_breakpoint): New variable state, use
12225         i386_debug_reg_state instead of DR_MIRROR.
12226         * linux-nat.c (delete_lwp): New declaration.
12227         (num_lwps): Move here from downwards.
12228         (delete_lwp_cleanup): New.
12229         (linux_child_follow_fork): Create new child_lp, call
12230         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12231         PTRACE_DETACH.
12232         (num_lwps): Move upwards.
12233         (linux_nat_iterate_watchpoint_lwps): New.
12234         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12235         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12236
12237 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
12238
12239         GDB 7.4 released.
12240
12241 2012-01-23  Pedro Alves  <palves@redhat.com>
12242
12243         * top.c (caution): Rename to ...
12244         (confirm): ... this.
12245         (show_caution): Rename to ...
12246         (show_confirm): ... this.
12247         (quit_cover): Adjust.
12248         (init_main): Adjust.
12249         * top.h (caution): Rename to ...
12250         (confirm): ... this.
12251         * utils.c (internal_vproblem, defaulted_query): Adjust.
12252
12253 2012-01-23  Pedro Alves  <palves@redhat.com>
12254
12255         * top.c (caution): Update comment.
12256         (execute_command): Don't consider the current value of `caution'.
12257
12258 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
12259
12260         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12261
12262 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
12263
12264         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12265         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12266         * target.c (target_fileio_pwrite): Remove buffer address from
12267         debug output.
12268         (target_fileio_pread): Likewise.
12269
12270 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12271
12272         * NEWS: Document remote "info proc" and "generate-core-file".
12273
12274 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12275
12276         * gdbarch.sh (find_memory_regions): New callback.
12277         * gdbarch.c, gdbarch.h: Regenerate.
12278
12279         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12280         callback before falling back to target method.
12281
12282         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12283         (linux_target_install_ops): No longer install it.
12284
12285         * linux-tdep.c (linux_find_memory_regions): New function.
12286         (linux_init_abi): Install it.
12287
12288 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12289
12290         * gdbarch.sh (make_corefile_notes): New architecture callback.
12291         * gdbarch.c: Regenerate.
12292         * gdbarch.h: Likewise.
12293
12294         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12295         before target_make_corefile_notes.  If NULL is returned, the
12296         target does not support core file generation.
12297
12298         * linux-nat.c: Include "linux-tdep.h".
12299         (find_signalled_thread, find_stop_signal): Remove.
12300         (linux_nat_do_thread_registers): Likewise.
12301         (struct linux_nat_corefile_thread_data): Likewise.
12302         (linux_nat_corefile_thread_callback): Likewise.
12303         (iterate_over_spus): Likewise.
12304         (struct linux_spu_corefile_data): Likewise.
12305         (linux_spu_corefile_callback): Likewise.
12306         (linux_spu_make_corefile_notes): Likewise.
12307         (linux_nat_collect_thread_registers): New function.
12308         (linux_nat_make_corefile_notes): Replace contents by call to
12309         linux_make_corefile_notes passing linux_nat_collect_thread_registers
12310         as native-only callback.
12311
12312         * linux-tdep.h: Include "bfd.h".
12313         (struct regcache): Add forward declaration.
12314         (linux_collect_thread_registers_ftype): New typedef.
12315         (linux_make_corefile_notes): Add prototype.
12316         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12317         "regset.h", and "elf-bfd.h".
12318         (find_signalled_thread, find_stop_signal): New functions.
12319         (linux_spu_make_corefile_notes): Likewise.
12320         (linux_collect_thread_registers): Likewise.
12321         (struct linux_corefile_thread_data): New data structure.
12322         (linux_corefile_thread_callback): New funcion.
12323         (linux_make_corefile_notes): Likewise.
12324         (linux_make_corefile_notes_1): Likewise.
12325         (linux_init_abi): Install it.
12326
12327 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12328
12329         * gdbarch.sh (info_proc): New callback.
12330         * gdbarch.c, gdbarch.h: Regenerate.
12331
12332         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12333         before falling back to the target info_proc callback.
12334
12335         * linux-nat.c: Do not include "cli/cli-utils.h".
12336         (linux_nat_info_proc): Remove.
12337         (linux_target_install_ops): No longer install it.
12338
12339         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12340         (read_mapping): New function.
12341         (linux_info_proc): Likewise.
12342         (linux_init_abi): Install it.
12343
12344 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12345
12346         * defs.h (enum info_proc_what): Moved here from linux-nat.c
12347         * infcmd.c: (info_proc_cmd_1): New function.
12348         (info_proc_cmd): New function, moved here from equivalent routine
12349         orignally in linux-nat.c.
12350         (info_proc_cmd_mappings): Likewise.
12351         (info_proc_cmd_stat): Likewise.
12352         (info_proc_cmd_status): Likewise.
12353         (info_proc_cmd_cwd): Likewise.
12354         (info_proc_cmd_cmdline): Likewise.
12355         (info_proc_cmd_exe): Likewise.
12356         (info_proc_cmd_all): Likewise.
12357         (_initialize_infcmd): Install "info proc" command and subcommands.
12358
12359         * target.h (struct target_ops): Add to_info_proc.
12360         (target_info_proc): Add prototype.
12361         * target.c (target_info_proc): New function.
12362
12363         * procfs.c (procfs_info_proc): Add prototype.
12364         (info_proc_cmd): Rename into ...
12365         (procfs_info_proc): ... this.  Update argument types as appropriate
12366         for a to_info_proc implementation.  Handle "what" argument.
12367         (procfs_target): Install procfs_info_proc.
12368         (_initialize_procfs): No longer install "info proc" command.
12369
12370         * linux-nat.c: (enum info_proc_what): Remove.
12371         (linux_nat_info_proc_cmd_1): Rename into ...
12372         (linux_nat_info_proc): ... this.  Update argument types as appropriate
12373         for a to_info_proc implementation.
12374         (linux_nat_info_proc_cmd): Remove.
12375         (linux_nat_info_proc_cmd_mappings): Likewise.
12376         (linux_nat_info_proc_cmd_stat): Likewise.
12377         (linux_nat_info_proc_cmd_status): Likewise.
12378         (linux_nat_info_proc_cmd_cwd): Likewise.
12379         (linux_nat_info_proc_cmd_cmdline): Likewise.
12380         (linux_nat_info_proc_cmd_exe): Likewise.
12381         (linux_nat_info_proc_cmd_all): Likewise.
12382         (linux_target_install_ops): Install linux_nat_info_proc.
12383         (_initialize_linux_nat): No longer install "info proc" command
12384         and subcommands.
12385
12386 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
12387
12388         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12389         * config.in, configure: Regenerate.
12390
12391         * target.h (struct target_ops): Add to_fileio_readlink.
12392         (target_fileio_readlink): Add prototype.
12393         * target.c (target_fileio_readlink): New function.
12394
12395         * inf-child.c: Conditionally include <sys/param.h>.
12396         (inf_child_fileio_readlink): New function.
12397         (inf_child_target): Install it.
12398
12399         * remote.c (PACKET_vFile_readlink): New enum value.
12400         (remote_hostio_readlink): New function.
12401         (init_remote_ops): Install it.
12402         (_initialize_remote): Handle vFile:readlink packet type.
12403
12404 2012-01-20  Pedro Alves  <palves@redhat.com>
12405             Ulrich Weigand  <ulrich.weigand@linaro.org>
12406
12407         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12408         * config.in, configure: Regenerate.
12409
12410         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12411         to_fileio_pread, to_fileio_close, to_fileio_unlink.
12412         (target_fileio_open): Add prototype.
12413         (target_fileio_pwrite): Likewise.
12414         (target_fileio_pread): Likewise.
12415         (target_fileio_close): Likewise.
12416         (target_fileio_unlink): Likewise.
12417         (target_fileio_read_alloc): Likewise.
12418         (target_fileio_read_stralloc): Likewise.
12419
12420         * target.c: Include "gdb/fileio.h".
12421         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12422         (default_fileio_target): New function.
12423         (target_fileio_open): Likewise.
12424         (target_fileio_pwrite): Likewise.
12425         (target_fileio_pread): Likewise.
12426         (target_fileio_close): Likewise.
12427         (target_fileio_unlink): Likewise.
12428         (target_fileio_close_cleanup): Likewise.
12429         (target_fileio_read_alloc_1): Likewise.
12430         (target_fileio_read_alloc): Likewise.
12431         (target_fileio_read_stralloc): Likewise.
12432
12433         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12434         <fcntl.h>, and <unistd.h>.
12435         (inf_child_fileio_open_flags_to_host): New function.
12436         (inf_child_errno_to_fileio_error): Likewise.
12437         (inf_child_fileio_open): Likewise.
12438         (inf_child_fileio_pwrite): Likewise.
12439         (inf_child_fileio_pread): Likewise.
12440         (inf_child_fileio_close): Likewise.
12441         (inf_child_fileio_unlink): Likewise.
12442         (inf_child_target): Install to_fileio routines.
12443
12444         * remote.c (init_remote_ops): Install to_fileio routines.
12445
12446 2012-01-20  Pedro Alves  <palves@redhat.com>
12447             Ulrich Weigand  <ulrich.weigand@linaro.org>
12448
12449         * remote.c (remote_multi_process_p): Only check for multi-process
12450         protocol feature, do not check for extended protocol.
12451         (remote_supports_multi_process): Check for extended protocol here.
12452         (set_general_process): Likewise.
12453         (extended_remote_kill): Likewise.
12454         (remote_pid_to_str): Likewise.
12455         (remote_query_supported): Always query multiprocess mode.
12456
12457 2012-01-20  Pedro Alves  <palves@redhat.com>
12458             Ulrich Weigand  <ulrich.weigand@linaro.org>
12459
12460         * inferior.h (struct inferior): Add fake_pid_p.
12461         * inferior.c (exit_inferior_1): Clear fake_pid_p.
12462         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12463         magic_null_ptid since the remote side doesn't provide a real PID.
12464
12465 2012-01-19  Tom Tromey  <tromey@redhat.com>
12466
12467         * NEWS: Combine the two Python sections.
12468
12469 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
12470
12471         * target.h (target_close): Update comment on the target's unpush state.
12472
12473 2012-01-19  Pedro Alves  <palves@redhat.com>
12474
12475         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12476         linux_nat_async directly instead of going through the target
12477         vector.
12478         * target.c (unpush_target): Close target after unpushing it, not
12479         before.
12480
12481 2012-01-19  Gary Benson  <gbenson@redhat.com>
12482
12483         * mdebugread.c (sort_blocks): Replace integer constants with ones
12484         derived from FIRST_LOCAL_BLOCK.
12485
12486 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12487             Jan Kratochvil  <jan.kratochvil@redhat.com>
12488
12489         PR gdb/9538
12490         * symfile.c (find_separate_debug_file): New function.
12491         (terminate_after_last_dir_separator): Likewise.
12492         (find_separate_debug_file_by_debuglink): Also try realpath.
12493         * configure.ac (AC_CHECK_FUNCS): Add lstat.
12494         * configure: Regenerate.
12495         * config.in: Regenerate.
12496
12497 2012-01-18  Doug Evans  <dje@google.com>
12498
12499         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12500         (main.o): Remove rule.
12501         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12502         (--with-sysroot): Rewrite.
12503         * configure: Regenerate.
12504         * config.in: Regenerate.
12505
12506 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
12507
12508         * parse.c (initialize_expout): New function.
12509         (reallocate_expout): Likewise.
12510         (parse_exp_in_context): Use `initialize_expout' and
12511         `reallocate_expout' when appropriate.
12512
12513 2012-01-18  Pedro Alves  <palves@redhat.com>
12514
12515         * record.c (struct record_breakpoint, record_breakpoint_p)
12516         (record_breakpoints): New.
12517         (record_insert_breakpoint, record_remove_breakpoint): Manage
12518         record breakpoints list.  Only remove breakpoints from the
12519         inferior if they had been inserted there in the first place.
12520
12521 2012-01-17  Doug Evans  <dje@google.com>
12522
12523         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12524         if we know we don't have a file name to look for.
12525
12526 2012-01-17  Pedro Alves  <palves@redhat.com>
12527
12528         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12529         the frame's stop reason is UNWIND_UNAVAILABLE.
12530
12531 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
12532
12533         Fix compilation error.
12534         * m2-exp.y (yyerror): Use ANSI C prototype.
12535
12536 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12537
12538         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12539         (growbuf_by_size): Likewise.
12540         (yyerror): Likewise.
12541         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12542         (modblock): Remove variable (was #if 0'ed).
12543         (parse_number): Convert prototype from K&R to ANSI C.
12544         (yyerror): Likewise.
12545         * objc-exp.y (parse_number): Likewise.
12546         (yyerror): Likewise.
12547         (yylex): Remove #if 0'ed code.
12548         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12549         (yyerror): Likewise.
12550
12551 2012-01-16  Tom Tromey  <tromey@redhat.com>
12552
12553         * NEWS: Add item.
12554         * symtab.h (compare_filenames_for_search): Declare.
12555         * symtab.c (compare_filenames_for_search): New function.
12556         (iterate_over_some_symtabs): Use it.
12557         * symfile.h (struct quick_symbol_functions)
12558         <map_symtabs_matching_filename>: Change spec.
12559         * psymtab.c (partial_map_symtabs_matching_filename): Use
12560         compare_filenames_for_search.  Update for new spec.
12561         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12562         compare_filenames_for_search.  Update for new spec.
12563         * breakpoint.c (clear_command): Use compare_filenames_for_search.
12564
12565 2012-01-16  Tom Tromey  <tromey@redhat.com>
12566
12567         PR python/13281:
12568         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12569         (struct main_type) <flag_flag_enum>: New field.
12570         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12571         * NEWS: Add entries.
12572         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12573         enums.
12574         * python/lib/gdb/printing.py (_EnumInstance): New class.
12575         (FlagEnumerationPrinter): Likewise.
12576
12577 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12578
12579         * breakpoint.c (create_sals_from_address_default): New function.
12580         (create_breakpoints_sal_default): Likewise.
12581         (decode_linespec_default): Likewise.
12582         (is_marker_spec): Removed.
12583         (strace_marker_p): New function.
12584         (init_breakpoint_sal): Using `strace_marker_p' instead of
12585         `is_marker_spec'.
12586         (create_breakpoint): Call method `create_sals_from_address' from
12587         breakpoint_ops, replacing code that created SALs conditionally
12588         on the type of the breakpoint.  Call method `create_breakpoints_sal',
12589         replacing code that created breakpoints conditionally on the type
12590         wanted.
12591         (base_breakpoint_create_sals_from_address): New function.
12592         (base_breakpoint_create_breakpoints_sal): Likewise.
12593         (base_breakpoint_decode_linespec): Likewise.
12594         (base_breakpoint_ops): Add methods
12595         `base_breakpoint_create_sals_from_address',
12596         `base_breakpoint_create_breakpoints_sal' and
12597         `base_breakpoint_decode_linespec'.
12598         (bkpt_create_sals_from_address): New function.
12599         (bkpt_create_breakpoints_sal): Likewise.
12600         (bkpt_decode_linespec): Likewise.
12601         (tracepoint_create_sals_from_address): Likewise.
12602         (tracepoint_create_breakpoints_sal): Likewise.
12603         (tracepoint_decode_linespec): Likewise.
12604         (strace_marker_create_sals_from_address): Likewise.
12605         (strace_marker_create_breakpoints_sal): Likewise.
12606         (strace_marker_decode_linespec): Likewise.
12607         (strace_marker_breakpoint_ops): New variable.
12608         (addr_string_to_sals): Remove `marker_spec'.  Call method
12609         `decode_linespec' from breakpoint_ops, replacing code that decoded
12610         an address string into a SAL.  Use `strace_marker_p' instead of
12611         `marker_spec'.
12612         (strace_command): Decide whether we are dealing with a static
12613         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
12614         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12615         * breakpoint.h (linespec_result, linespec_sals): New forward
12616         declarations.
12617         (breakpoint_ops) <create_sals_from_address>,
12618         <create_breakpoints_sal>, <decode_linespec>: New methods.
12619
12620 2012-01-14  Doug Evans  <dje@google.com>
12621
12622         * NEWS: Update text for "maint set python print-stack".
12623         It is deprecated in gdb 7.4 and deleted in 7.5.
12624
12625 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
12626
12627         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12628         including curses.h.
12629
12630 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
12631
12632         * configure: Regenerate.
12633         * config.in: Regenerate.
12634
12635 2012-01-12  Keith Seitz  <keiths@redhat.com>
12636
12637         PR mi/10586
12638         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12639         (ANONYMOUS_UNION_NAME): Define.
12640         (is_path_expr_parent): New function.
12641         (get_path_expr_parent): New function.
12642         (is_anonymous_child): New function.
12643         (create_child_with_value): If the child is anonymous and without
12644         a name, assign an object name to it.
12645         (c_describe_child): Use get_path_expr_parent to determine
12646         the parent expression.
12647         If there field represents an anonymous struct or union and
12648         has no name, set an appropriate display name and expression.
12649         (cplus_describe_child): Likewise.
12650
12651 2012-01-12  Pedro Alves  <palves@redhat.com>
12652
12653         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12654         available when %ebp is found to be zero (outermost).
12655
12656 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
12657
12658         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12659         an internal gdb_static_assert.
12660         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12661
12662 2012-01-11  Tom Tromey  <tromey@redhat.com>
12663
12664         PR gdb/9598:
12665         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12666         catch" and "catch throw".
12667
12668 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
12669
12670         * blockframe.c (block_innermost_frame): Start search from selected
12671         frame, if present, or otherwise the current frame.
12672
12673         * c-exp.y (variable): Update innermost_block for
12674         'block COLONCOLON NAME' clause.
12675         * m2-exp.y (variable): Ditto.
12676         * objc-exp.y (variable): Ditto.
12677
12678 2012-01-10  Tom Tromey  <tromey@redhat.com>
12679
12680         PR python/13199:
12681         * python/python.c (finish_python_initialization): Set sys.argv.
12682
12683 2012-01-10  Doug Evans  <dje@google.com>
12684
12685         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
12686         "want_line_info".  All callers updated.
12687         (dwarf_decode_lines_1): New function.
12688         (handle_DW_AT_stmt_list): Add function comment.
12689         New arg "want_line_info".  All callers updated.
12690         (read_file_scope,read_type_unit_scope): Move comment from
12691         handle_DW_AT_stmt_list to here.
12692
12693 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
12694
12695         Fix regression after libiberty/ update for GCC PR 6057 and others.
12696         * c-exp.y (operator) <OPERATOR DELETE>
12697         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12698         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12699         (make_builtin_type, make_name): New variable i, add gdb_assert.
12700         (operator) <OPERATOR NEW>: Update ARGS to 3.
12701         (operator) <OPERATOR DELETE>: Add trailing space.
12702         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12703         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12704         * cp-support.c (cp_canonicalize_string): Check NULL from
12705         cp_comp_to_string, call warning and return.
12706
12707 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
12708
12709         Fix duplicate .o files after omitting libbfd.a.
12710         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12711         (SFILES): Add corelow.c.
12712         (COMMON_OBS): Add corelow.o.
12713         (ALLDEPFILES): Remove corelow.c.
12714         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12715         * config/alpha/alpha-osf3.mh: Likewise.
12716         * config/alpha/fbsd.mh: Likewise.
12717         * config/arm/nbsdaout.mh: Likewise.
12718         * config/arm/nbsdelf.mh: Likewise.
12719         * config/i386/i386gnu.mh: Likewise.
12720         * config/ia64/hpux.mh: Likewise.
12721         * config/ia64/linux.mh: Likewise.
12722         * config/m32r/linux.mh: Likewise.
12723         * config/m68k/linux.mh: Likewise.
12724         * config/mips/irix5.mh: Likewise.
12725         * config/mips/irix6.mh: Likewise.
12726         * config/pa/hpux.mh: Likewise.
12727         * config/pa/linux.mh: Likewise.
12728         * config/powerpc/aix.mh: Likewise.
12729         * config/sparc/linux.mh: Likewise.
12730         * config/sparc/linux64.mh: Likewise.
12731         * config/sparc/sol2.mh: Likewise.
12732         * config/vax/vax.mh: Likewise.
12733         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12734         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12735         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12736         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12737         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12738         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12739         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12740         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12741         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12742         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12743         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12744         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12745         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12746         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12747         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12748         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12749         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12750         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12751         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12752         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12753         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12754         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12755         corelow.o from gdb_target_obs.
12756         * corefile.c (core_target): Update the comment on NULL value.
12757         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12758         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12759         MATCHES.  Drop YUMMY set on NULL.
12760         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
12761         reclaim CORE_DATA if it is already NULL.
12762
12763 2012-01-09  Doug Evans  <dje@google.com>
12764
12765         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12766         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12767
12768 2012-01-09  Keith Seitz  <keiths@redhat.com>
12769
12770         * breakpoint.c (wrapper.h): Don't include.
12771
12772 2012-01-09  Keith Seitz  <keiths@redhat.com>
12773
12774         * Makefile.in (SFILES): Remove wrapper.c.
12775         (HFILES_NO_SRCDIR): Remove wrapper.h.
12776         (COMMON_OBS): Remove wrapper.o.
12777         * cli/cli-interp.c: Don't inlude wrapper.h.
12778         * corelow.c: Likewise.
12779         (core_open): Replace gdb_target_find_new_threads with
12780         TRY_CATCH around target_find_new_threads.
12781         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12782         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12783         * varobj.c (varobj_create): Likewise for parse_exp_1 and
12784         evaluate_expression.
12785         (varobj_set_value): Likewise for evaluate_expression and
12786         value_assign.
12787         (install_new_variable): Likewise for value_fetch_lazy.
12788         (adjust_value_for_child_access): Likewise for value_ind.
12789         (c_describe_child): Likewise for value_subscript and
12790         value_ind.
12791         (c_value_of_root): Likewise for evaluate_expression.
12792         * wrapper.c: Remove.
12793         * wrapper.h: Remove.
12794
12795 2012-01-09  Doug Evans  <dje@google.com>
12796
12797         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12798         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
12799         "abfd" args with "section".  All callers updated.
12800         Error checking code moved ...
12801         (error_check_comp_unit_head): ... here.  New function.
12802         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12803         Delete arg "abfd".  New arg "type_offset".  All callers updated.
12804         (create_debug_types_hash_table): Simplify by using
12805         read_and_check_type_unit_head.
12806
12807         * parser-defs.h (namecopy): Delete.
12808         * parse.c (namecopy, namecopy_size): Move into copy_name.
12809
12810 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12811
12812         Partially fix duplicate .o files after omitting libbfd.a.
12813         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12814         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12815         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12816         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12817         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12818         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12819         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12820
12821 2012-01-09  Pedro Alves  <palves@redhat.com>
12822
12823         * MAINTAINERS: Update my email address.
12824
12825 2012-01-08  Doug Evans  <dje@google.com>
12826
12827         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12828         n_type_units.  Rename type_comp_units to all_type_units.
12829         All uses updated.
12830         (add_signatured_type_cu_to_table): Renamed from
12831         add_signatured_type_cu_to_list.  All callers updated.
12832
12833         * gdbtypes.h (struct cplus_struct_type): Delete member
12834         nfn_fields_total.  All uses removed.
12835
12836 2012-01-06  Doug Evans  <dje@google.com>
12837
12838         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12839         to top of file.
12840         (dwarf2_find_comp_unit): Delete.
12841         (process_psymtab_comp_unit): Make result "void".
12842         Delete args buffer, info_ptr, buffer_size, and replace with
12843         "section".  All callers updated.
12844         (dwarf2_build_psymtabs_hard): Simplify.
12845
12846 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
12847             Thiago Jung Bauermann  <bauerman@br.ibm.com>
12848
12849         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12850         before `struct gdb_exception'.
12851         * breakpoint.c (update_global_location_list_nothrow)
12852         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12853         * cp-abi.c (value_rtti_type): Likewise.
12854         * cp-support.c (cp_validate_operator): Likewise.
12855         * infrun.c (insert_exception_resume_breakpoint)
12856         (check_exception_resume, keep_going): Likewise.
12857         * mi-interp.c (mi_breakpoint_created)
12858         (mi_breakpoint_modified): Likewise.
12859         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12860         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12861         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12862
12863 2012-01-05  Doug Evans  <dje@google.com>
12864
12865         * dwarf2read.c (statement_prologue): Delete, unused.
12866
12867         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12868         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12869
12870         * dwarf2read.c (comp_unit_header): Delete, unused.
12871
12872 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
12873
12874         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12875         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12876
12877 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
12878
12879         * infrun.c (normal_stop): Don't skip calling the normal_stop
12880         observers if the thread was doing a multi-step, but stopped for
12881         some reason other than stepping.
12882
12883 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
12884
12885         * cli/cli-decode.h: Add comments.
12886         (CMD_LIST_AMBIGUOUS): Moved to command.h
12887         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12888         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12889         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12890         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12891         (add_com, add_com_alias, add_info, add_info_alias)
12892         (complete_on_cmdlist, complete_on_enum, help_list): Remove
12893         declarations.
12894         * command.h: Add and adjust comments.
12895         (CMD_LIST_AMBIGUOUS): Moved here.
12896         (help_cmd, help_cmd_list): Delete declarations.
12897
12898 2012-01-04  Doug Evans  <dje@google.com>
12899
12900         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12901         All callers updated.
12902         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12903         Replace all arguments with "per_cu".  All callers updated.
12904
12905         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12906
12907         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12908         New arg "per_cu".  All callers updated.
12909
12910         Delete #if 0'd out code.
12911         * language.c (binop_result_type): Delete.
12912         (simple_type, ordered_type, same_type, integral_type): Delete.
12913         (numeric_type, character_type, string_type, boolean_type): Delete.
12914         (float_type, structured_type): Delete.
12915         * language.h: Update.
12916
12917 2012-01-04  Tom Tromey  <tromey@redhat.com>
12918
12919         * python/py-value.c (valpy_binop): Initialize 'res_val'.
12920
12921 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12922
12923         * corefile.c (close_exec_file): Delete.
12924         (reopen_exec_file): Remove commented out code that seems related
12925         to close_exec_file, which is being deleted here.
12926         * inferior.h (close_exec_file): Delete.
12927         * fork-child.c (fork_inferior): Remove call to fork_inferior.
12928
12929 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12930
12931         * ada-lang.c: #include "cli/cli-utils.h".
12932         (get_selections): Use skip_spaces.
12933         (ada_get_next_arg): Use skip_spaces and skip_to_space.
12934         (catch_ada_exception_command_split): Use skip_spaces.
12935         (ada_decode_assert_location): Likewise.
12936
12937 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12938
12939         * linespec.c (decode_line_internal): Check for C++ or Java
12940         compound constructs only if the current language is C, C++
12941         or Java.
12942
12943 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
12944
12945         Revert:
12946         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12947                     Joel Brobecker  <brobecker@adacore.com>
12948         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12949         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12950         3 times.
12951         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12952         fall through into AT_ENTRY_POINT.
12953         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
12954         DUMMY_ADDR with it.
12955         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12956         PPC_INSN_SIZE skip to 3 times.
12957
12958 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12959
12960         * linespec.c (add_minsym): Preserve function descriptors.
12961
12962 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
12963
12964         * breakpoint.c (all_locations_are_pending): Consider locations
12965         in program spaces executing during startup pending as well.
12966
12967 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12968
12969         Copyright year update in most files of the GDB Project.
12970
12971 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12972
12973         * copyright.sh: Delete.
12974         * copyright.py: Rewrite.
12975
12976 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12977
12978         * gnulib/extra/update-copyright: New file, imported from gnulib.
12979
12980 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12981
12982         * README (Copyright and License Notices): New section.
12983
12984 2012-01-03  Tom Tromey  <tromey@redhat.com>
12985
12986         PR python/12533:
12987         * python/py-value.c (valpy_dereference, valpy_get_address
12988         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12989         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12990         (valpy_absolute, valpy_richcompare): Free intermediate values.
12991
12992 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
12993
12994         * ada-lang.c: Reformat the copyright notice.
12995
12996 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12997
12998         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12999         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
13000         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
13001         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
13002         Revert this part of:
13003         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13004         Build gdb directly from *.o files not using libgdb.a.
13005         * Makefile.in (COMMON_OBS): Remove solib-target.o.
13006
13007 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
13008
13009         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
13010         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
13011         Reformat the copyright header.
13012
13013 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13014
13015         Revert this part of:
13016         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13017         Remove the gdbtui binary.
13018         * gdb.c (main): Remove args.interpreter_p initialization.
13019         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13020         * main.h (struct captured_main_args): Remove interpreter_p.
13021
13022 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
13023
13024         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
13025
13026 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
13027
13028         * top.c (print_gdb_version): Update copyright year.
13029
13030 2012-01-02  Yao Qi  <yao@codesourcery.com>
13031
13032         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
13033
13034 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13035             Joel Brobecker  <brobecker@adacore.com>
13036
13037         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13038         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13039         3 times.
13040         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13041         fall through into AT_ENTRY_POINT.
13042         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
13043         DUMMY_ADDR with it.
13044         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13045         PPC_INSN_SIZE skip to 3 times.
13046
13047 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13048
13049         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
13050         the return value.
13051         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
13052
13053 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13054
13055         Build gdb directly from *.o files not using libgdb.a.
13056         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
13057         (COMMON_OBS): Remove solib-target.o.
13058         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
13059         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
13060         (LIBGDB_OBS, libgdb.a): Move it above.
13061         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
13062         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
13063         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
13064         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
13065         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
13066         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
13067         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
13068         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
13069         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
13070         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
13071         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
13072         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
13073         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
13074         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
13075         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
13076         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
13077         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
13078         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
13079         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
13080         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
13081         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
13082         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
13083         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
13084         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
13085         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
13086         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
13087         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
13088
13089 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13090
13091         Remove the gdbtui binary.
13092         * .gitignore (/gdbtui): Remove.
13093         * Makefile.in (TUI): Remove.
13094         (SUBDIR_TUI_OBS): Remove tui-main.o.
13095         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
13096         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
13097         (tui-main.o): Remove.
13098         (all_object_files): Remove tui-main.o.
13099         * NEWS: New note for the gdbtui removal.
13100         * configure: Rebuilt.
13101         * configure.ac: No longer add all-tui, clean-tui, install-tui and
13102         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
13103         CONFIG_UNINSTALL respectively.
13104         * gdb.c (main): Remove args.interpreter_p initialization.
13105         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13106         * main.h (struct captured_main_args): Remove interpreter_p.
13107         * tui/tui-main.c: Remove.
13108
13109 2012-01-01  Doug Evans  <dje@google.com>
13110
13111         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
13112         (dwarf2_physname, read_import_statement): Ditto.
13113         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
13114         (process_structure_scope read_subroutine_type): Ditto.
13115         (read_typedef, load_partial_dies, read_partial_die): Ditto.
13116         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
13117         (dwarf2_fetch_die_location_block): Ditto.
13118         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
13119
13120         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
13121         All callers updated.
13122         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
13123         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
13124         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
13125
13126         * dwarf2read.c (load_cu): Move assert to more useful location.
13127
13128         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
13129         All callers updated.
13130
13131         * dwarf2read.c (dwarf2_per_objfile): Add comment.
13132         (dwarf2_elf_names): Minor reformat.
13133         (dwarf2_per_cu_data): Tweak comment.
13134         (dwarf2_read_section): Fix comment.
13135         (create_all_comp_units): Fix comment.
13136         (load_full_comp_unit): Fix comment.
13137         (process_full_comp_unit): Fix comment.
13138         (read_signatured_type): Fix comment.
13139
13140 For older changes see ChangeLog-2011.
13141 \f
13142 Local Variables:
13143 mode: change-log
13144 left-margin: 8
13145 fill-column: 74
13146 version-control: never
13147 coding: utf-8
13148 End: