Add ravenscar-thread support for powerpc.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-12-15 Joel Brobecker <brobecker@adacore.com>
2
3 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
4 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
5 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
6 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
7 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
8 to gdb_target_obs for every target that uses rs6000-tdep.o.
9 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
10 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
11 or register_ppc_ravenscar_ops.
12
13 2012-12-15 Joel Brobecker <brobecker@adacore.com>
14
15 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
16 RAVENSCAR_SPARC_THREAD_H.
17 * sparc-ravenscar-thread.c: Rename all global entities
18 whose name is uses "ravenscar_sparc" as the prefix to use
19 "sparc_ravenscar" instead.
20
21 2012-12-15 Joel Brobecker <brobecker@adacore.com>
22
23 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
24 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
25 Adjust sparc-ravenscar-thread.h #include.
26 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
27 accordingly.
28 * Makefile.in: Replace ravenscar-sparc-thread with
29 sparc-ravenscar-thread throughout.
30 * configure.tgt: Likewise.
31
32 2012-12-15 Joel Brobecker <brobecker@adacore.com>
33
34 * gdbarch.sh: Add "struct ravenscar_arch_ops" advance
35 declaration.
36 (ravenscar_ops): New gdbarch variable.
37 * gdbarch.h, gdbarch.c: Regenerate.
38 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
39 * ravenscar-thread.c (current_arch_ops): Delete.
40 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
41 from the gdbarch.
42 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
43 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
44 (ravenscar_register_arch_ops): Delete.
45 * ravenscar-sparc-thread.h: New file.
46 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
47 (ravenscar_sparc_ops): Define value statically.
48 (_initialize_ravenscar_sparc): Delete.
49 (register_sparc_ravenscar_ops): New function.
50 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
51 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
52 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
53 ravenscar-sparc-thread.o.
54 (SFILES): Add ravenscar-thread.c.
55 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
56 (ALLDEPFILES): ravenscar-sparc-thread.c.
57 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
58 to gdb_target_obs
59 for all the targets that use sparc-tdep.o.
60
61 2012-12-15 Joel Brobecker <brobecker@adacore.com>
62
63 * ravenscar-thread.c (ravenscar_is_open): Delete.
64 (ravenscar_initialize): Move most of the code from here...
65 (ravenscar_inferior_created): ... to there. Invert logic.
66 (ravenscar_close): Delete.
67 (init_ravenscar_thread_ops): Remove setting of
68 ravenscar_ops.to_close.
69
70 2012-12-15 Joel Brobecker <brobecker@adacore.com>
71
72 * objfiles.c (init_entry_point_info): Move function from here...
73 * symfile.c (init_entry_point_info): ... to there. Make static.
74 * objfiles.h (objfiles.h): Delete declaration.
75
76 2012-12-15 Joel Brobecker <brobecker@adacore.com>
77
78 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
79 Remove call to init_entry_point_info. Add OBJFILE's
80 section_offsets and num_sections initialization. Add note
81 about entry info in the function documentation.
82 (syms_from_objfile): New function.
83 * coffread.c (coff_symfile_init): Remove call to
84 init_entry_point_info.
85 * machoread.c (macho_symfile_init): Likewise.
86 * xcoffread.c(xcoff_symfile_init): Likewise.
87
88 2012-12-15 Yao Qi <yao@codesourcery.com>
89
90 * remote-notif.c (_initialize_notif): Add new commands
91 'set debug notification' and 'show debug notification'.
92 * NEWS: Mention these new commands.
93
94 2012-12-15 Yao Qi <yao@codesourcery.com>
95
96 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
97 (SFILES): Add "remote-notif.c".
98 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
99 * remote-notif.c: New. Factored out from remote.c.
100 * remote-notif.h: New.
101 * remote.c: Include "remote-notif.h".
102 (stop_reply_xmalloc, do_stop_reply_xfree):
103 (remote_parse_stop_reply, remote_get_pending_stop_replies):
104 (remote_async_get_pending_events_handler): Remove declarations.
105 (remote_parse_stop_reply): Declare.
106 (pending_stop_reply): Remove.
107 (remote_async_get_pending_events_token): Move to
108 remote-notif.c.
109 (remote_close): Replace 'delete_async_event_handler' with
110 remote_notif_unregister_async_event_handler.
111 Don't call discard_pending_stop_replies.
112 (remote_start_remote): Replace code with remote_notif_parse
113 and remote_notif_get_pending_replies.
114 (remote_open_1): Replace 'create_async_event_handler' with
115 remote_notif_register_async_event_handler.
116 (extended_remote_attach_1): Call remote_notif_parse and
117 notif_stop_reply_push.
118 (struct stop_reply) <next>: Remove.
119 <base>: New field.
120 Callers update.
121 (stop_reply_queue): Change its type.
122 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
123 (remote_notif_remove_all): New.
124 (discard_pending_stop_replies): Update.
125 (remote_notif_stop_ack, stop_reply_dtr): New.
126 (remote_notif_stop_alloc_event): New.
127 (notif_client_stop): New variable.
128 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
129 (queued_stop_reply, peek_stop_reply): Adjust.
130 (remote_get_pending_stop_replies): Rename to
131 remote_notif_get_pending_events.
132 (handle_notification): Move to remote-notif.c.
133 (remote_async_get_pending_events_handler): Likewise.
134 (remote_wait_as): Adjust to call remote_notif_parse.
135 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
136 Return minus_one_ptid early if gets a notification.
137 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
138 (_initialize_remote): Call QUEUE_alloc. Update caller.
139 (remote_resume): Call 'remote_notif_process' in all-stop mode.
140 * remote.h: Include "remote-notif.h".
141 (remote_notif_get_pending_replies): Declare.
142
143 2012-12-15 Yao Qi <yao@codesourcery.com>
144
145 * remote.c (discard_pending_stop_replies): Update declaration.
146 (remote_detach_1, extended_remote_mourn_1): Likewise.
147 (discard_pending_stop_replies): Change parameter from PID to
148 INF.
149 (remote_close): Update caller.
150 (_initialize_remote): Attach discard_pending_stop_replies to
151 inferior_exit observer.
152
153 2012-12-15 Yao Qi <yao@codesourcery.com>
154
155 * remote.c (getpkt_or_notif_sane): Add one more argument in
156 its declaration.
157 (getpkt_or_notif_sane_1): Add one more argument.
158 (getpkt_sane): Update caller.
159 (getpkt_or_notif_sane): Likewise. Update call
160 togetpkt_or_notif_sane_1.
161 (remote_wait_ns): Update caller.
162
163 2012-12-15 Yao Qi <yao@codesourcery.com>
164 Doug Evans <dje@google.com>
165
166 * common/queue.h: New.
167
168 2012-12-15 Yao Qi <yao@codesourcery.com>
169
170 * breakpoint.c (print_one_breakpoint_location): Display the
171 state of 'installed' of each non-pending location of a tracepoint
172 in both CLI and MI.
173 (download_tracepoint_locations): Notify 'breakpoint-modified'
174 observer if any tracepoint location is downloaded.
175 * tracepoint.c (start_tracing): Likewise.
176 (merge_uploaded_tracepoints): Record all modified
177 tracepoints and notify 'breakpoint-modified' observer for them.
178
179 * NEWS: Mention the change for CLI and MI.
180
181 2012-12-15 Yao Qi <yao@codesourcery.com>
182
183 * breakpoint.c (download_tracepoint_locations): Iterate over
184 ALL_TRACEPOINTS first and then iterate over locations of
185 each tracepoint.
186
187 2012-12-14 Pierre Muller <muller@sourceware.org>
188 Pedro Alves <palves@redhat.com>
189
190 * solib-target.c (solib_target_current_sos): Remove 'const'
191 qualifier from type of library_document local variable to be
192 able to free it and avoid a memory leak.
193 Use cleanup chain to avoid leak even if exceptino is generated.
194
195 2012-12-14 Tom Tromey <tromey@redhat.com>
196
197 PR c++/8888:
198 * symtab.c (lookup_symbol_aux): If constructor is found, consider
199 returning the type instead.
200 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
201 found.
202
203 2012-12-14 Tom Tromey <tromey@redhat.com>
204
205 Partial fix for PR c++/14160:
206 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
207 * dwarf2read.c (dwarf2_is_constructor): New function.
208 (dwarf2_add_member_fn): Use it.
209 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
210 TYPE_FN_FIELD_CONSTRUCTOR.
211 * jv-typeprint.c (java_type_print_base): Use
212 TYPE_FN_FIELD_CONSTRUCTOR.
213 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
214 <dummy>: Shrink.
215 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
216
217 2012-12-14 Tom Tromey <tromey@redhat.com>
218
219 * c-exp.y (block, variable, name_not_typename, lex_one_token,
220 classify_name): Update.
221 * c-valprint.c (c_val_print): Update.
222 * f-exp.y (yylex): Update.
223 * go-exp.y (package_name_p, classify_packaged_name)
224 (classify_name): Update.
225 * jv-exp.y (push_variable): Update.
226 * m2-exp.y (variable): Update.
227 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
228 * p-exp.y (block, variable, yylex): Update.
229 * p-valprint.c (pascal_val_print): Update.
230 * parse.c (write_dollar_variable): Update.
231 * printcmd.c (address_info): Update.
232 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
233 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
234 (lookup_symbol): Change type of 'is_a_field_of_this'.
235 (check_field): Add 'is_a_field_of_this' argument.
236 * symtab.h (struct field_of_this_result): New.
237 (lookup_symbol, lookup_symbol_in_language): Update.
238
239 2012-12-14 Tom Tromey <tromey@redhat.com>
240
241 * symtab.c (check_field): Now static. Move from...
242 * valops.c (check_field): ... here. Remove.
243 * value.h (check_field): Don't declare.
244
245 2012-12-14 Tom Tromey <tromey@redhat.com>
246
247 * NEWS: Mention "info proc" and core files.
248 * corelow.c (core_info_proc): New function.
249 (init_core_ops): Set to_info_proc.
250 * gdbarch.c, gdbarch.h: Rebuild.
251 * gdbarch.sh (core_info_proc): New method.
252 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
253 * linux-tdep.c (linux_core_info_proc_mappings)
254 (linux_core_info_proc): New functions.
255 (linux_find_memory_region_ftype): New typedef.
256 (linux_find_memory_regions_full): New function, from
257 linux_find_memory_regions.
258 (struct linux_find_memory_regions_data): New.
259 (linux_find_memory_regions_thunk): New function.
260 (linux_find_memory_regions): Rewrite.
261 (struct linux_make_mappings_data): New.
262 (linux_make_mappings_callback)
263 (linux_make_mappings_corefile_notes): New functions.
264 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
265 (linux_init_abi): Call set_gdbarch_core_info_proc.
266 * target.c (target_info_proc): Return 'int'.
267 * target.h (target_info_proc): Update.
268
269 2012-12-14 Pierre Muller <muller@sourceware.org>
270
271 * windows-nat.c (windows_xfer_shared_libraries): Avoid
272 memory leak when OFFSET >= LEN_AVAIL.
273
274 2012-12-13 Tom Tromey <tromey@redhat.com>
275
276 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
277
278 2012-12-13 Tom Tromey <tromey@redhat.com>
279
280 * acinclude.m4 (CY_AC_C_WORKS): Remove.
281
282 2012-12-13 Pierre Muller <muller@sourceware.org>
283
284 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
285 local variable and zero terminate it to avoid possible problems
286 in strcmp.
287
288 2012-12-13 Pedro Alves <palves@redhat.com>
289
290 * coff-pe-read.c: Include coff/internal.h.
291 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
292 Null terminate buffer explicitly instead of memset the whole
293 buffer.
294
295 2012-12-13 Pierre Muller <muller@sourceware.org>
296
297 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
298 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
299 for already defined macros.
300
301 2012-12-13 Pierre Muller <muller@sourceware.org>
302
303 * coff-pe-read.h (pe_text_section_offset): Declare new function.
304 * coff-pe-read.c (debug_coff_pe_read): New static variable.
305 (struct read_pe_section_data): Add section_name field.
306 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
307 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
308 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
309 (get_pe_section_index): New function.
310 (struct pe_sections_info): New type.
311 (get_section_vmas): Use new struct pe_sections_info.
312 (add_pe_exported_sym): Handle unnamed exported function.
313 (add_pe_forwarded_sym): New function.
314 (read_pe_truncate_name): Truncate at last dot.
315 (pe_as16): New function.
316 (read_pe_exported_syms): Use ordinal of function to
317 retrieve correct RVA address of function and handle
318 forwarded symbol.
319 (pe_text_section_offset): New function.
320 (show_debug_coff_pe_read): New function.
321 (_initialize_coff_pe_read): New function adding
322 'set/show debug coff_pe_read' commands.
323
324 * windows-tdep.c (windows_xfer_shared_library): Use
325 pe_text_section_offset function instead of possibly wrong
326 0x1000 constant for .text sextion offset.
327
328 2012-12-13 Pedro Alves <palves@redhat.com>
329
330 * gdbarch.sh (do_read): Set IFS to blank.
331
332 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
333
334 * NEWS: Mention the -catch-load/-catch-unload MI commands.
335
336 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
337
338 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
339 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
340 * breakpoint.c (add_solib_catchpoint): New function that
341 can be used by both CLI and MI, factored out from
342 catch_load_or_unload.
343 (catch_load_or_unload): Strip it down and make it use the
344 new add_solib_catchpoint.
345 * breakpoint.h (add_solib_catchpoint): Declare it.
346 * mi/mi-cmd-break.h: New file.
347 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
348 (setup_breakpoint_reporting): New function used for both
349 catchpoints and breakpoints.
350 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
351 * mi/mi-cmd-catch.c: New file.
352 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
353 and -catch-unload.
354 * mi/mi-cmds.h: Declare the handlers for -catch-load and
355 -catch-unload.
356
357 2012-11-28 Tom Tromey <tromey@redhat.com>
358
359 * dbxread.c (read_dbx_symtab): Update.
360 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
361 (read_ofile_symtab): Add 'objfile' argument.
362 * dwarf2read.c (process_psymtab_comp_unit_reader)
363 (build_type_psymtabs_reader): Update.
364 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
365 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
366 argument.
367 (parse_procedure, parse_partial_symbols): Update.
368 (psymtab_to_symtab_1): Add 'objfile' argument.
369 * psympriv.h (struct partial_symtab) <objfile>: Remove.
370 <read_symtab>: Add 'objfile' argument.
371 (sort_pst_symbols, discard_psymtab): Update.
372 * psymtab.c (partial_map_expand_apply): Update.
373 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
374 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
375 (find_pc_sect_psymbol): Add 'objfile' argument.
376 (lookup_symbol_aux_psymtabs): Update.
377 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
378 Add 'objfile' argument.
379 (find_last_source_symtab_from_partial, dump_psymtab)
380 (dump_psymtabs_for_objfile, read_symtabs_for_function)
381 (expand_partial_symbol_tables, read_psymtabs_with_filename)
382 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
383 (expand_symtabs_matching_via_partial): Update.
384 (sort_pst_symbols): Add 'objfile' argument.
385 (allocate_psymtab): Update.
386 (discard_psymtab): Add 'objfile' argument.
387 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
388 * stabsread.h (end_psymtab): Update.
389 * xcoffread.c (this_symtab_objfile): New global.
390 (process_linenos, enter_line_range, xcoff_next_symbol_text):
391 Update.
392 (read_xcoff_symtab): Add 'objfile' argument.
393 (read_symbol, read_symbol_lineno): Update.
394 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
395 (xcoff_end_psymtab): Add 'objfile' argument.
396 (scan_xcoff_symtab): Update.
397
398 2012-12-12 Paul Koning <paul_koning@dell.com>
399
400 Add support for Python 3.
401 * NEWS: Mention Python 3 support.
402 * varobj.c (value_get_print_value): Use
403 python_string_to_target_string.
404 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
405 of type objects.
406 * python/py-breakpoint.c: Ditto.
407 * python/py-cmd.c: Ditto.
408 * python/py-event.c: Ditto.
409 * python/py-event.h: Ditto.
410 * python/py-evtregistry.c: Ditto.
411 * python/py-finishbreakpoint.c: Ditto.
412 * python/py-frame.c: Ditto.
413 * python/py-function.c: Ditto.
414 * python/py-infthread.c: Ditto.
415 * python/py-lazy-string.c: Ditto.
416 * python/py-progspace.c: Ditto.
417 * /python/py-symbol.c: Ditto.
418 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
419 initialization for Python 3.
420 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
421 of type objects.
422 (infpy_read_memory): Return memoryview object if Python 3.
423 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
424 (infpy_search_memory): Ditto.
425 (get_buffer): New function for Python 3.
426 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
427 of type objects.
428 (objfpy_dealloc): Use Py_TYPE to call tp_free.
429 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
430 of type objects.
431 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
432 (set_attr): Ditto.
433 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
434 instead of PyString methods if Python 3.
435 (print_children): Skip push_dummy_python_frame call if Python 3.
436 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
437 of type objects.
438 (salpy_dealloc): Use Py_TYPE to call tp_free.
439 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
440 of type objects.
441 (field_dealloc): Use Py_TYPE to call tp_free.
442 (typy_dealloc): Ditto.
443 (type_object_as_number): Adjust struct initializations for
444 differences in layout for Python 2 vs. Python 3.
445 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
446 string case for Python 3.
447 (unicode_to_encoded_python_string): Shorten code (no functional
448 change).
449 (python_string_to_target_python_string): Comment that in Python 3
450 returned value is a Python "bytes" type.
451 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
452 (gdb_py_object_from_longest): Omit non-long integer case in Python
453 3.
454 (gdb_py_object_from_ulongest): Ditto.
455 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
456 of type objects.
457 (valpy_dealloc): Use Py_TYPE to call tp_free.
458 (valpy_int): Omit function if Python 3.
459 (convert_value_from_python): Use "%S" format (Python object as a
460 string) if Python 3.
461 (value_object_as_number): Adjust struct initializations for
462 differences in layout for Python 2 vs. Python 3.
463 * python/python-config.py: Adjust syntax for Python 3
464 compatibility.
465 Include "sys.abiflags" string as part of python library name, if
466 that attribute exists (Python 3).
467 * python/python-internal.h (IS_PY3): Define if Python 3.
468 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
469 placeholder value if Python 3.
470 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
471 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
472 analogous Python 3 API function if Python 3.
473 (PyVarObject_HEAD_INIT): Define if not already defined.
474 (Py_TYPE): Ditto.
475 * python/python.c (eval_python_command): Omit Py_FlushLine call if
476 Python 3.
477 Check return values of all Python API calls for error.
478 Supply dummy "python" and "python-interactive" commands if Python
479 initialization failed.
480 (_initialize_python): Convert argc to wchar_t** if Python 3.
481 Add module initialization for Python 3.
482 (finish_python_initialization): Pass wchar_t * argument to
483 PySys_SetPath if Python 3.
484 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
485 (_GdbFile): New class for common output file behavior.
486 (GdbOutFile): Subclass from _GdbFile.
487 (GdbOutputErrorFile): Ditto.
488 (auto_load_packages): Adjust syntax for Python 3 compatibility.
489 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
490 * python/lib/gdb/prompt.py: Use sorted() function rather than
491 sort() method.
492 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
493 Adjust syntax for Python 3 compatibility.
494 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
495 rather than sort() method.
496 Adjust syntax for Python 3 compatibility.
497 * python/lib/gdb/command/type_printers.py: Ditto.
498 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
499 value is a memoryview object if Python 3.
500
501 2012-12-12 Tom Tromey <tromey@redhat.com>
502
503 * coffread.c (coff_objfile_data_key): New global.
504 (coff_symfile_init): Use set_objfile_data.
505 (coff_symfile_read): Use objfile_data.
506 (coff_symfile_finish): Don't free deprecated_sym_private.
507 (coff_free_info): New function.
508 (_initialize_coffread): Initialize coff_objfile_data_key.
509 * mdebugread.c (pending_list): Update comment.
510 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
511 * symfile.c (reread_symbols): Don't mention
512 deprecated_sym_private.
513 * xcoffread.c (xcoff_objfile_data_key): New global.
514 (XCOFF_DATA): New macro.
515 (process_linenos, enter_line_range, xcoff_next_symbol_text)
516 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
517 XCOFF_DATA.
518 (xcoff_new_init) Use set_objfile_data.
519 (xcoff_symfile_finish): Don't free deprecated_sym_private.
520 (init_stringtab, swap_sym, scan_xcoff_symtab)
521 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
522 (xcoff_free_info): New function.
523 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
524
525 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
526
527 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
528
529 2012-12-12 Tom Tromey <tromey@redhat.com>
530
531 * coffread.c (coff_symfile_init): Use set_objfile_data.
532 (coff_symfile_read): Use DBX_SYMFILE_INFO.
533 * dbxread.c (dbx_objfile_data_key): New global.
534 (dbx_symfile_init): Use set_objfile_data.
535 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
536 (dbx_free_symfile_info): New function.
537 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
538 DBX_SYMFILE_INFO.
539 (stabsect_build_psymtabs): Use set_objfile_data.
540 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
541 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
542 set_objfile_data.
543 (free_elfinfo): Use DBX_SYMFILE_INFO.
544 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
545 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
546 * gdb-stabs.h (dbx_objfile_data_key): Declare.
547 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
548 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
549 * somread.c (som_symfile_finish): Don't free
550 deprecated_sym_stab_info.
551
552 2012-12-12 Joel Brobecker <brobecker@adacore.com>
553
554 * gdbarch.sh (software_single_step): Remove trailing space in
555 comment (gdbarch.h is already correct).
556
557 2012-12-11 Tom Tromey <tromey@redhat.com>
558
559 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
560
561 2012-12-11 Tom Tromey <tromey@redhat.com>
562
563 * dsrec.c (report_transfer_performance): Don't declare.
564 (load_srec): Use gettimeofday, print_transfer_performance.
565 * symfile.c (report_transfer_performance): Remove.
566
567 2012-12-11 Pedro Alves <pedro@codesourcery.com>
568 Pedro Alves <palves@redhat.com>
569
570 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
571 NT_PSTATUS note.
572 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
573 differently from LWP IDs.
574
575 2012-12-11 Pedro Alves <palves@redhat.com>
576
577 * configure.ac (detect type of /proc): Remove Unixware handling.
578 * configure: Regenerate.
579 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
580 (ioctl_table) [PCRESET]: Remove entry.
581 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
582 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
583 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
584 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
585 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
586 Unixware in comments throughout.
587 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
588 and remove mention of Unixware.
589
590 2012-12-10 Doug Evans <dje@google.com>
591
592 * dwarf2read.c (dwarf2_cu): Enhance comment.
593 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
594 the DWO file.
595 (dwarf2_record_block_ranges): Ditto.
596
597 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
598
599 * symtab.c (find_pc_sect_symtab): Add comment.
600
601 2012-12-10 Tom Tromey <tromey@redhat.com>
602
603 * defs.h: Don't check for definition of LONGEST.
604 (min, max): Remove duplicates.
605
606 2012-12-10 Tom Tromey <tromey@redhat.com>
607
608 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
609 (dwarf2_fetch_die_loc_cu_off): Rename from
610 dwarf2_fetch_die_location_block. Rewrite to use
611 dwarf2_fetch_die_loc_sect_off.
612 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
613 (dwarf2_fetch_die_loc_cu_off): Rename.
614 * dwarf2loc.c (indirect_pieced_value): Use
615 dwarf2_fetch_die_loc_sect_off.
616 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
617 comment.
618 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
619 * dwarf2expr.c (add_piece): Update.
620 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
621
622 2012-12-10 Tom Tromey <tromey@redhat.com>
623
624 * buildsym.c (struct pending_block): Move from buildsym.h.
625 (pending_blocks): Likewise; now static.
626 (pending_block_obstack): New global.
627 (free_pending_blocks): Free blocks.
628 (record_pending_block): Use pending_block_obstack.
629 * buildsym.h (struct pending_block): Move definition to
630 buildsym.c.
631 (pending_blocks): Don't declare.
632
633 2012-12-10 Pedro Alves <palves@redhat.com>
634
635 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
636 dead SCO code, and adjust function description comment.
637
638 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
639
640 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
641 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
642 CC_HAS_LONG_LONG.
643 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
644 * dwarf2read.c (extract_cu_value): Remove the function.
645 (create_cus_from_index_list): Make the return type void, inline the
646 extract_cu_value caller, include new gdb_static_assert.
647 (create_cus_from_index): Make the return type void, update the function
648 comment, update the create_cus_from_index_list caller.
649 (create_signatured_type_table_from_index): Make the return type void,
650 inline the extract_cu_value caller, include new gdb_static_assert.
651 (dwarf2_read_index): Update the create_cus_from_index and
652 create_signatured_type_table_from_index caller.
653 * printcmd.c (ui_printf): Remove conditionalizations for
654 CC_HAS_LONG_LONG.
655 * config.in: Regenerate.
656 * configure: Regenerate.
657
658 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
659
660 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
661 Update the comment for checked_producer.
662 (check_producer): New forward declaration.
663 (producer_is_gcc_lt_4_3): New function.
664 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
665 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
666
667 2012-12-07 Tom Tromey <tromey@redhat.com>
668
669 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
670 argument, assertion.
671 * c-exp.y (typebase): Add completion productions.
672 * completer.c (expression_completer): Handle tag completion.
673 * expression.h (parse_expression_for_completion): Add argument.
674 * f-lang.c (f_make_symbol_completion_list): Add 'code'
675 argument.
676 * language.h (struct language_defn)
677 <la_make_symbol_completion_list>: Add 'code' argument.
678 * parse.c (expout_tag_completion_type, expout_completion_name):
679 New globals.
680 (mark_struct_expression): Add assertion.
681 (mark_completion_tag): New function.
682 (parse_exp_in_context): Initialize new globals.
683 (parse_expression_for_completion): Add 'code' argument. Handle
684 tag completion.
685 * parser-defs.h (mark_completion_tag): Declare.
686 * symtab.c (default_make_symbol_completion_list_break_on): Add
687 'code' argument. Update.
688 (default_make_symbol_completion_list): Add 'code' argument.
689 (make_symbol_completion_list): Update.
690 (make_symbol_completion_type): New function.
691 * symtab.h (default_make_symbol_completion_list_break_on)
692 (default_make_symbol_completion_list): Update.
693 (make_symbol_completion_type): Declare.
694
695 2012-12-07 Tom Tromey <tromey@redhat.com>
696
697 * expression.h (parse_expression_for_completion): Rename
698 from parse_field_expression.
699 (parse_completion): Rename from in_parse_field.
700 * c-exp.y (lex_one_token): Update.
701 * completer.c (expression_completer): Update.
702 * go-exp.y (lex_one_token): Update.
703 * p-exp.y (yylex): Update.
704 * parse.c (parse_completion): Rename from in_parse_field.
705 (parse_exp_in_context): Update.
706 (parse_expression_for_completion): Rename from
707 parse_field_expression. Update.
708
709 2012-12-07 Tom Tromey <tromey@redhat.com>
710
711 * typeprint.c (_initialize_typeprint): Set completer
712 for "whatis" and "ptype".
713
714 2012-12-07 Joel Brobecker <brobecker@adacore.com>
715
716 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
717 "sim/common/cgen-fpu.h". Remove invalid entries
718 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
719 which actually have an FSF copyright header.
720
721 2012-12-07 Joel Brobecker <brobecker@adacore.com>
722
723 * osf-share/AT386/cma_thread_io.h: Delete.
724 * osf-share/HP800/cma_thread_io.h: Delete.
725 * osf-share/README: Delete.
726 * osf-share/RIOS/cma_thread_io.h: Delete.
727 * osf-share/cma_attr.h: Delete.
728 * osf-share/cma_deb_core.h: Delete.
729 * osf-share/cma_debug_client.h: Delete.
730 * osf-share/cma_errors.h: Delete.
731 * osf-share/cma_handle.h: Delete.
732 * osf-share/cma_init.h: Delete.
733 * osf-share/cma_list.h: Delete.
734 * osf-share/cma_mutex.h: Delete.
735 * osf-share/cma_sched.h: Delete.
736 * osf-share/cma_semaphore_defs.h: Delete.
737 * osf-share/cma_sequence.h: Delete.
738 * osf-share/cma_stack.h: Delete.
739 * osf-share/cma_stack_int.h: Delete.
740 * osf-share/cma_tcb_defs.h: Delete.
741 * osf-share/cma_util.h: Delete.
742 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
743 in osf-share.
744 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
745 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
746 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
747
748 2012-12-06 Pedro Alves <palves@redhat.com>
749 Tom Tromey <tromey@redhat.com>
750
751 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
752
753 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
754
755 PR mi/14741:
756 * mi/mi-cmd-var.c (varobj_update_one): Take value of
757 attribute "dynamic" and "displayhint" from printed child,
758 not the root variable.
759
760 2012-12-06 Joel Brobecker <brobecker@adacore.com>
761
762 * aix-thread.c (getthrds): Fix type of 4th parameter.
763 (get_signaled_thread): Change type of variable ktid to tid_t.
764
765 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
766
767 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
768 value of get_frame_block.
769
770 2012-12-05 Pierre Muller <muller@sourceware.org>
771
772 Avoid memory leaks on struct cmd_list_element.doc field.
773 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
774 if flags contains DOC_ALLOCATED.
775 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
776 flags.
777 (delete_cmd): Handle DOC_ALLOCATED flag.
778 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
779 in flags filed of struct cmd_list_element.
780 (struct cmd_list_element): Document new flag item.
781
782 2012-12-04 Doug Evans <dje@google.com>
783
784 * symmisc.c: Whitespace fixes.
785
786 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
787
788 * i386-tdep.c (i386_skip_prologue): Using symbol table
789 to find the end of prologue for clang compiled binaries.
790 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
791 to find the end of prologue for clang compiled binaries.
792
793 2012-12-03 Doug Evans <dje@google.com>
794
795 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
796 (dw2_find_symbol_file): Delete unused local file_data.
797
798 2012-12-03 Tom Tromey <tromey@redhat.com>
799
800 * ada-exp.y (write_object_renaming, write_var_or_type)
801 (write_ambiguous_var, write_var_from_sym): Make blocks const.
802 * ada-lang.c (replace_operator_with_call)
803 (find_old_style_renaming_symbol): Make blocks const.
804 * ada-lang.h (ada_find_renaming_symbol): Update.
805 (struct ada_symbol_info) <block>: Now const.
806 * breakpoint.c (watch_command_1): Update.
807 * breakpoint.h (struct watchpoint) <exp_valid_block,
808 cond_exp_valid_block>: Now const.
809 * c-exp.y (classify_inner_name, classify_name): Make block
810 argument const.
811 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
812 const.
813 * expression.h (innermost_block, parse_exp_1): Update.
814 (union exp_element) <block>: Now const.
815 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
816 (lookup_struct): Make block argument const.
817 * gdbtypes.h (lookup_template_type): Update.
818 * go-exp.y (classify_name, classify_packaged_name)
819 (package_name_p): Make block argument const.
820 * objc-lang.c (lookup_struct_typedef): Make block argument const.
821 * objc-lang.h (lookup_struct_typedef): Update.
822 * parse.c (parse_exp_in_context, parse_exp_1)
823 (write_exp_elt_block): Make block arguments const.
824 (expression_context_block, innermost_block): Now const.
825 * parser-defs.h (write_exp_elt_block): Update.
826 (expression_context_block, innermost_block, block_found): Now
827 const.
828 * printcmd.c (struct display) <block>: Now const.
829 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
830 * valops.c (address_of_variable): Make block argument const.
831 * value.h (value_of_variable): Update.
832 * varobj.c (struct varobj_root) <valid_block>: Now const.
833
834 2012-11-30 Yao Qi <yao@codesourcery.com>
835
836 * breakpoint.c (print_one_breakpoint_location): Indent code.
837
838 2012-11-30 Yao Qi <yao@codesourcery.com>
839
840 * breakpoint.c (print_one_breakpoint_location): Combine two
841 blocks handling 'hit count' together.
842
843 2012-11-30 Yao Qi <yao@codesourcery.com>
844
845 * infrun.c (error_is_running, ensure_not_running): Move them
846 to ...
847 * infcmd.c (error_is_running, ensure_not_running): ... here.
848 Make them 'static'.
849 * inferior.h: Remove declarations of error_is_running and
850 ensure_not_running.
851
852 2012-11-30 Yao Qi <yao@codesourcery.com>
853
854 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
855 check REGNUM >= 0.
856
857 2012-11-30 Yao Qi <yao@codesourcery.com>
858
859 * infrun.c: Make the declaration of 'init_infwait_state'
860 static.
861 (init_infwait_state): Make it 'static'.
862
863 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
864
865 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
866 return value to void to avoid compiler warning.
867
868 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
869
870 * opencl-lang.c (opencl_print_type): New function.
871 (opencl_language_arch_info): Install it.
872
873 2012-11-29 Tom Tromey <tromey@redhat.com>
874
875 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
876 xvasprintf.
877 * common/common-utils.c (xasprintf, xvasprintf): Remove.
878 * common/common-utils.h (xasprintf, xvasprintf): Remove.
879
880 2012-11-29 Jerome Guitton <guitton@adacore.com>
881
882 * ada-lang.c (ada_is_interface_tag): New function.
883 (ada_is_ignored_field): Add interface tags to the list
884 of ignored fields.
885
886 2012-11-29 Jerome Guitton <guitton@adacore.com>
887
888 * ada-lang.h (ada_tag_value_at_base_address): New function
889 declaration.
890 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
891 New functions.
892 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
893 relocate the class-wide value if need be.
894 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
895 Let ada_tag_value_at_base_address relocate the class-wide access/ref
896 before dereferencing it.
897 * ada-valprint.c (ada_val_print_1): Relocate to base address
898 before displaying the content of an interface-wide ref.
899
900 2012-11-29 Jerome Guitton <guitton@adacore.com>
901
902 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
903
904 2012-11-29 Joel Brobecker <brobecker@adacore.com>
905
906 GDB 7.5.1 released.
907
908 2012-11-29 Yao Qi <yao@codesourcery.com>
909 Tom Tromey <tromey@redhat.com>
910
911 * eval.c (evaluate_subexp_standard): Get the correct pointer
912 type for TYPE_CODE_MEMBERPTR.
913
914 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
915
916 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
917 since now it is being done by binutils' powerpc_init_dialect().
918
919 2012-11-28 Tom Tromey <tromey@redhat.com>
920
921 PR gdb/14290:
922 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
923 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
924 Use it.
925 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
926 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
927 (gdb_bfd_openr_next_archived_file): Use it.
928
929 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
930
931 * configure.ac: Check for linux/perf_event.h.
932 * config.in: Regenerated.
933 * configure: Regenerated.
934
935 2012-11-28 Yao Qi <yao@codesourcery.com>
936
937 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
938 abbreviate 'delete tracepoints' to 'delete tr'.
939 * corefile.c (_initialize_core): Call add_alias_cmd to
940 abbreviate 'set gnutarget' to 'set g'.
941 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
942 'show convenience' to 'show conv'.
943
944 2012-11-27 Joel Brobecker <brobecker@adacore.com>
945
946 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
947 call to sparc_supply_fpregset.
948 (fill_fpregset): Fix first parameter in call to
949 sparc_collect_fpregset.
950
951 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
952 Kazu Hirata <kazu@codesourcery.com>
953 Yao Qi <yao@codesourcery.com>
954
955 * objfiles.c (init_entry_point_info): Call
956 gdbarch_convert_from_func_ptr_addr and
957 gdbarch_addr_bits_remove here ...
958 (entry_point_address_query): ... instead of here.
959 * solib-svr4.c (exec_entry_point): Call
960 gdbarch_addr_bits_remove.
961 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
962 the entry address.
963
964 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
965 Yao Qi <yao@codesourcery.com>
966
967 * eval.c (evaluate_subexp_standard): Add handling of
968 TYPE_CODE_MEMBERPTR when calling functions. Correct the
969 result of ptype for calling a TYPE_CODE_METHODPTR.
970
971 2012-11-27 Yao Qi <yao@codesourcery.com>
972
973 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
974 warning.
975 Add i18n markup.
976
977 2012-11-26 Alexander Larsson <alexl@redhat.com>
978 Jan Kratochvil <jan.kratochvil@redhat.com>
979 Tom Tromey <tromey@redhat.com>
980
981 * NEWS: Mention mini debuginfo feature.
982 * minidebug.c: New file.
983 * configure.ac: Check for lzma.
984 * configure, config.in: Rebuild.
985 * Makefile.in (LIBLZMA): New variable.
986 (CLIBS): Include LIBLZMA.
987 (SFILES): Mention minidebug.c.
988 (COMMON_OBS): Mention minidebug.o.
989 * symfile.c (read_symbols): New function.
990 (syms_from_objfile, reread_symbols): Call it.
991 * symfile.h (find_separate_debug_file_in_section): Declare.
992
993 2012-11-26 Keith Seitz <keiths@redhat.com>
994
995 * exec.c (exec_file_attach): Move cleanup after verifying that
996 memory has in fact been allocated.
997
998 2012-11-26 Tom Tromey <tromey@redhat.com>
999
1000 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1001 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1002 SYMBOL_SYMTAB.
1003 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1004
1005 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
1006 Pedro Alves <palves@redhat.com>
1007
1008 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1009 size parameter passed to readlink by one byte.
1010 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1011 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1012 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1013 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1014 size by one byte.
1015
1016 2012-11-26 Yao Qi <yao@codesourcery.com>
1017
1018 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1019 extraneous parentheses.
1020
1021 2012-11-26 Yao Qi <yao@codesourcery.com>
1022
1023 * remote.c (remote_start_remote): Typo fix.
1024
1025 2012-11-23 David S. Miller <davem@davemloft.net>
1026
1027 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1028 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1029 sparc32_sol2_fpregset): Declare new globals.
1030 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1031 'fpregset' argument.
1032 * sparc64-tdep.h (sparc64_supply_fpregset,
1033 sparc64_collect_fpregset): Likewise.
1034 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1035 globals.
1036 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1037 (sparc_fpregset): Declare new global.
1038 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1039 'fpregset' argument.
1040 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1041 into handler.
1042 (fill_fpregset): Likewise.
1043 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1044 sparc32_bsd_fpregset.
1045 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1046 sparc32_bsd_fpregset down into handler.
1047 (sparc32_linux_collect_core_fpregset): Likewise.
1048 * sparc-nat.c (sparc_fpregset): Define.
1049 (sparc_supply_fpregset): Add 'fpregset' argument.
1050 (sparc_collect_fpregset): Likewise.
1051 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1052 into fpregset handler.
1053 (sparc_store_inferior_registers): Likewise.
1054 (_initialize_sparc_nat): Set sparc_fpregset to
1055 sparc32_sunos4_fpregset if NULL.
1056 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1057 down into handler.
1058 (fill_fpregset): Likewise.
1059 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1060 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1061 use it to compute offsets.
1062 (sparc32_collect_fpregset): Likewise.
1063 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1064 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1065 down into handler.
1066 (fill_fpregset): Likewise.
1067 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1068 Likewise.
1069 (sparc64_linux_collect_core_fpregset): Likewise.
1070 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1071 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1072 use it to compute offsets.
1073 (sparc64_collect_fpregset): Likewise.
1074 (sparc64_bsd_fpregset): Define.
1075 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1076 sparc64_bsd_fpregset down into handler.
1077 (sparc64fbsd_collect_fpregset): Likewise.
1078 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1079 and pass sparc{32,64}_bsd_fpregset down into handler.
1080 (sparc64nbsd_collect_fpregset): Likewise.
1081 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1082 sparc64_bsd_fpregset down into handler.
1083 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1084 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1085 to sparc32_bsd_fpregset.
1086 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1087 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1088 (sparc32nbsd_supply_fpregset): Likewise.
1089
1090 2012-11-21 Tom Tromey <tromey@redhat.com>
1091
1092 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1093 field.
1094 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1095 Remove.
1096 * c-typeprint.c (c_type_print_base): Update.
1097
1098 2012-11-21 Yao Qi <yao@codesourcery.com>
1099
1100 PR tdep/7438
1101 * gdbarch.sh (smash_text_address): Remove.
1102 * gdbarch.c, gdbarch.h: Regenerate.
1103 * arm-tdep.c (arm_smash_text_address): Remove.
1104 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1105 * hppa-tdep.c (hppa_smash_text_address): Remove.
1106 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1107 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1108 Caller update.
1109 * coffread.c (coff_symtab_read): Caller update.
1110 * dbxread.c (process_one_symbol): Likewise.
1111 * elfread.c (record_minimal_symbol): Likewise.
1112 * somread.c (som_symtab_read): Likewise.
1113
1114 2012-11-20 Pierre Muller <muller@sourceware.org>
1115
1116 ARI fixes: sprintf rule.
1117 Replace sprintf function calls for char arrays by
1118 calls to xsnprintf calls.
1119 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1120 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1121 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1122 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1123 * breakpoint.c (condition_completer): Ditto.
1124 (create_tracepoint_from_upload): Ditto.
1125 * dwarf2read.c (file_full_name): Ditto.
1126 * gcore.c (gcore_command): Ditto.
1127 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1128 * go32-nat.c (go32_sysinfo): Ditto.
1129 * interps.c (interp_set): Ditto.
1130 * m32c-tdep.c (make_types): Ditto.
1131 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1132 * remote-m32r-sdi.c (m32r_open): Ditto.
1133 * sol-thread.c (td_err_string): Ditto.
1134 (td_state_string, solaris_pid_to_str): Ditto.
1135 * symtab.c (gdb_mangle_name): Ditto.
1136 * cli/cli-script.c (execute_control_command): Ditto.
1137 (define_command, document_command): Ditto.
1138 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1139 * tui/tui-stack.c (tui_make_status_line): Ditto.
1140 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1141
1142 2012-11-20 Mike Frysinger <vapier@gentoo.org>
1143
1144 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1145 it when looking at ptr->func.
1146 * command.h (complete_on_cmdlist): Add a fourth arg.
1147 * completer.c (complete_line_internal): Add local ignore_help_classes,
1148 and set it to 1 when reason is not handle_help. Pass this down to
1149 lookup_cmd_1 and complete_on_cmdlist.
1150
1151 2012-11-20 Tom Tromey <tromey@redhat.com>
1152
1153 * completer.c (count_struct_fields): Remove.
1154 (expression_completer): Don't call count_struct_fields.
1155
1156 2012-11-20 Pedro Alves <palves@redhat.com>
1157
1158 * annotate.c (breakpoints_changed): Rename to ...
1159 (annotate_breakpoints_changed): ... this.
1160 (annotate_stopped, breakpoint_changed): Adjust caller.
1161 * annotate.h (breakpoints_changed): Rename to ...
1162 (annotate_breakpoints_changed): ... this.
1163 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1164 (do_map_commands_command, init_raw_breakpoint, clear_command)
1165 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1166
1167 2012-11-20 David S. Miller <davem@davemloft.net>
1168
1169 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1170 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1171 sysconf.
1172 (get_cores_used_by_process): Update comment.
1173
1174 2012-11-20 Yao Qi <yao@codesourcery.com>
1175
1176 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1177
1178 2012-11-20 Yao Qi <yao@codesourcery.com>
1179
1180 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1181 to deprecated_context_hook.
1182
1183 2012-11-19 Yao Qi <yao@codesourcery.com>
1184
1185 * infrun.c (infwait_state): Add static.
1186
1187 2012-11-16 Keith Seitz <keiths@redhat.com>
1188
1189 PR c++/13615
1190 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1191 parameter and pass it to lookup_symbol_file.
1192 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1193 to search base classes.
1194 (cp_lookup_symbol_namespace): Likewise.
1195 (lookup_namespace_scope): Likewise.
1196 (lookup_symbol_file): Add SEARCH parameter.
1197 If SEARCH is non-zero and no symbol is found, lookup the class
1198 and call cp_lookup_nested_symbol.
1199 (find_symbol_in_baseclass): New function.
1200 (cp_lookup_nested_symbol): Do not let
1201 cp_lookup_symbol_in_namespace search through base classes.
1202 Do that later when there is no global symbol match.
1203
1204 2012-11-16 Doug Evans <dje@google.com>
1205
1206 * main.c (gdb_datadir_provided): New static global.
1207 (get_init_files): If --data-directory is provided,
1208 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1209 * NEWS: Mention it.
1210
1211 2012-11-15 Pierre Muller <muller@sourceware.org>
1212
1213 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1214 * gdb_stat.h: Delete. Moved to common directory.
1215 * common/gdb_stat.h: New file.
1216 * gdb_wait.h: Delete. Moved to common directory.
1217 * common/gdb_wait.h: New file.
1218 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1219 location.
1220 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1221 location.
1222 (stat.h rule): Adapt to new gdb_stat.h location.
1223 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1224 <sys/stat.h> header.
1225 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1226 <sys/wait.h> header.
1227
1228 2012-11-15 Pierre Muller <muller@sourceware.org>
1229
1230 * configure.ac (AC_HEADER_STAT): Remove.
1231 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1232 and corresponding code.
1233 * configure: Regenerate.
1234 * config.in: Regenerate.
1235
1236 2012-11-15 Pierre Muller <muller@sourceware.org>
1237
1238 ARI xasprintf rule fixes.
1239 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1240 instead of xasprintf.
1241 (open_and_init_dwp_file): Ditto.
1242
1243 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1244
1245 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1246 target types.
1247
1248 2012-11-14 Tom Tromey <tromey@redhat.com>
1249
1250 * configure, config.in: Rebuild.
1251 * configure.ac: Don't check for ctype.h, time.h.
1252 * expprint.c: Don't use HAVE_CTYPE_H.
1253
1254 2012-11-13 Tom Tromey <tromey@redhat.com>
1255
1256 * gdbarch.h, gdbarch.c: Rebuild.
1257 * gdbarch.sh (set_target_gdbarch): Rename from
1258 deprecated_target_gdbarch_select_hack.
1259 * arch-utils.c (gdbarch_update_p): Update.
1260 (set_gdbarch_from_file): Update.
1261
1262 2012-11-14 Pierre Muller <muller@sourceware.org>
1263
1264 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1265 as responsible of contrib/ari directory.
1266
1267 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1268 Yao Qi <yao@codesourcery.com>
1269
1270 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1271 bit of EXC_RETURN.
1272 (arm_m_exception_cache, arm_m_exception_this_id)
1273 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1274 (arm_m_exception_unwind): New.
1275 (arm_gdbarch_init): Register arm_m_exception_unwind.
1276
1277 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1278
1279 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1280 parameter COUNT, for pattern filling of memory regions.
1281 * NEWS: Mention it.
1282
1283 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1284
1285 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1286 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1287 to print_source_lines ().
1288 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1289 flag.
1290 * source.c (print_source_lines_base): Prefix source line with
1291 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1292
1293 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1294
1295 * symtab.h (print_source_lines_flags): New enum.
1296 * source.c (print_source_lines_base): Change noerror to flags.
1297 (print_source_lines): Change noerror to flags.
1298
1299 2012-11-13 Pierre Muller <muller@sourceware.org>
1300
1301 ARI fixes: Avoid sprintf function use rule.
1302 * charset.c (convert_between_encodings): Use xsnprintf.
1303 * cli-out.c (cli_field_int): Likewise.
1304 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1305 * expprint.c (op_name_standard): Likewise.
1306 * frv-tdep.c (set_variant_num_gprs): Likewise.
1307 (set_variant_num_fprs): Likewise.
1308 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1309 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1310 (nto_init_solib_absolute_prefix): Likewise.
1311 * source.c (init_source_path): Likewise.
1312 (print_source_lines_base): Likewise.
1313 * valprint.c (print_wchar): Likewise.
1314 * mi/mi-out.c (mi_field_int): Likewise.
1315 windows-nat.c (windows_pid_to_exec_file): Likewise.
1316 (windows_create_inferior): Likewise.
1317 (_initialize_check_for_gdb_ini): Likewise.
1318
1319 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1320
1321 * frame.h (deprecated_frame_register_read): Renames
1322 frame_register_read.
1323 * frame.c (deprecated_frame_register_read): Renames
1324 frame_register_read. Update all callers.
1325 * i386-tdep.c: Update all callers of frame_register_read.
1326 * infcmd.c: Likewise.
1327 * jit.c: Likewise.
1328 * mips-tdep.c: Likewise.
1329 * mt-tdep.c: Likewise.
1330 * sh64-tdep.c: Likewise.
1331
1332 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1333
1334 * frame.h (frame_register_read): Remove FIXME comment.
1335 * frame.c (frame_register_read): Add suggestion explaining
1336 which function to use in place of this one.
1337
1338 2012-11-12 Tom Tromey <tromey@redhat.com>
1339
1340 * python/python.c (start_type_printers): Initialize 'result_obj'.
1341
1342 2012-11-12 Tom Tromey <tromey@redhat.com>
1343
1344 * NEWS: Update.
1345 * data-directory/Makefile.in (PYTHON_FILES): Add
1346 type_printers.py.
1347 * python/lib/gdb/command/type_printers.py: New file.
1348 * python/lib/gdb/command/types.py (TypePrinter): New class.
1349 (_get_some_type_recognizers, get_type_recognizers,
1350 apply_type_recognizers, register_type_printer): New
1351 functions.
1352 * python/py-objfile.c (objfile_object) <type_printers>: New
1353 field.
1354 (objfpy_dealloc): Decref new field.
1355 (objfpy_new): Set new field.
1356 (objfpy_get_type_printers, objfpy_set_type_printers): New
1357 functions.
1358 (objfile_to_objfile_object): Set new field.
1359 (objfile_getset): Add "type_printers".
1360 * python/py-progspace.c (pspace_object) <type_printers>: New
1361 field.
1362 (pspy_dealloc): Decref new field.
1363 (pspy_new): Set new field.
1364 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1365 (pspace_to_pspace_object): Set new field.
1366 (pspace_getset): Add "type_printers".
1367 * python/python.c (start_type_printers, apply_type_printers,
1368 free_type_printers): New functions.
1369 (_initialize_python): Set gdb.type_printers.
1370 * python/python.h (start_type_printers, apply_type_printers,
1371 free_type_printers): Declare.
1372 * typeprint.c (type_print_raw_options, default_ptype_flags):
1373 Update for new fields.
1374 (do_free_global_table, create_global_typedef_table,
1375 find_global_typedef): New functions.
1376 (find_typedef_in_hash): Use find_global_typedef.
1377 (whatis_exp): Use create_global_typedef_table. Change cleanup
1378 handling.
1379 * typeprint.h (struct type_print_options) <global_typedefs,
1380 global_printers>: New fields.
1381
1382 2012-11-12 Tom Tromey <tromey@redhat.com>
1383
1384 * c-typeprint.c (find_typedef_for_canonicalize,
1385 print_name_maybe_canonical): New functions.
1386 (c_print_type): Look up type name.
1387 (cp_type_print_derivation_info): Add flags argument. Use
1388 print_name_maybe_canonical.
1389 (cp_type_print_method_args): Add wrapping.
1390 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1391 (c_type_print_template_args): New function.
1392 (c_type_print_base): Change wrapping. Use
1393 print_name_maybe_canonical.
1394 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1395 type name lookups.
1396 * gdbtypes.c (types_equal): No longer static.
1397 * gdbtypes.h (types_equal): Declare.
1398 * typeprint.c (type_print_raw_options, default_ptype_flags):
1399 Update.
1400 (struct typedef_hash_table): New.
1401 (hash_typedef_field, eq_typedef_field,
1402 recursively_update_typedef_hash, add_template_parameters,
1403 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1404 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1405 copy_typedef_hash, find_typedef_in_hash): New functions.
1406 * typeprint.h (struct type_print_options) <local_typedefs>:
1407 New field.
1408 (recursively_update_typedef_hash, add_template_parameters,
1409 create_typedef_hash, free_typedef_hash,
1410 make_cleanup_free_typedef_hash, copy_typedef_hash,
1411 find_typedef_in_hash): Declare.
1412
1413 2012-11-12 Tom Tromey <tromey@redhat.com>
1414
1415 * cp-support.c (inspect_type,
1416 replace_typedefs_qualified_name, replace_typedefs): Add
1417 finder, data arguments. Call as needed.
1418 (cp_canonicalize_string_full): New function.
1419 (cp_canonicalize_string_no_typedefs): Rewrite.
1420 * cp-support.h (canonicalization_ftype): New typedef.
1421 (cp_canonicalize_string_full): Declare.
1422
1423 2012-11-12 Tom Tromey <tromey@redhat.com>
1424
1425 * NEWS: Update.
1426 * c-typeprint.c (c_type_print_base): Handle print_method and
1427 print_typedefs flags.
1428 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1429 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1430 options.
1431 * typeprint.c (type_print_raw_options, default_ptype_flags):
1432 Update for new field.s
1433 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1434 (setprinttypelist, showprinttypelist, print_methods,
1435 print_typedefs): New globals.
1436 (set_print_type, show_print_type, set_print_type_methods,
1437 show_print_type_methods, set_print_type_typedefs,
1438 show_print_type_typedefs): New functions.
1439 (_initialize_typeprint): Update documentation. Add "print
1440 type methods" and "print type typedefs" parameters.
1441 * typeprint.h (struct type_print_options) <print_methods,
1442 print_typedefs>: New fields.
1443
1444 2012-11-12 Tom Tromey <tromey@redhat.com>
1445
1446 * c-typeprint.c (cp_type_print_method_args): Add flags
1447 argument. Call c_print_type, not type_print.
1448 (c_type_print_base): Call c_print_type, not type_print.
1449 Update.
1450
1451 2012-11-12 Tom Tromey <tromey@redhat.com>
1452
1453 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1454 to type-printing functions.
1455 * ada-lang.h (ada_print_type): Add argument.
1456 * ada-typeprint.c (print_array_type, print_variant_clauses,
1457 print_variant_part, print_selected_record_field_types,
1458 print_record_field_types, print_unchecked_union_type,
1459 print_func_type, ada_print_type): Add flags argument.
1460 (ada_print_typedef): Update.
1461 * c-exp.y (OPERATOR conversion_type_id): Update.
1462 * c-lang.h (c_print_type, c_type_print_base): Update.
1463 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1464 c_type_print_modifier, c_type_print_args,
1465 c_type_print_varspec_suffix, c_type_print_base): Add flags
1466 argument.
1467 * cp-valprint.c (cp_print_class_member): Update.
1468 * dwarf2read.c (dwarf2_compute_name): Update.
1469 * f-lang.h (f_print_type): Add argument.
1470 * f-typeprint.c (f_print_type): Add flags argument.
1471 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1472 * go-lang.h (go_print_type): Add argument.
1473 * go-typeprint.c (go_print_type): Add flags argument.
1474 * jv-lang.h (java_print_type): Add argument.
1475 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1476 flags argument.
1477 * language.c (unk_lang_print_type): Add flags argument.
1478 * language.h (struct language_defn) <la_print_type>: Add flags
1479 argument.
1480 (LA_PRINT_TYPE): Likewise.
1481 * m2-lang.h (m2_print_type): Add argument.
1482 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1483 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1484 m2_unbounded_array, m2_record_fields): Add flags argument.
1485 * p-lang.h (pascal_print_type, pascal_type_print_base,
1486 pascal_type_print_varspec_prefix): Add argument.
1487 * p-typeprint.c (pascal_print_type,
1488 pascal_type_print_varspec_prefix, pascal_print_func_args,
1489 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1490 flags argument.
1491 * symmisc.c (print_symbol): Update.
1492 * typeprint.c (type_print_raw_options, default_ptype_flags):
1493 New globals.
1494 (type_print): Update.
1495 * typeprint.h (struct type_print_options): New.
1496 (type_print_raw_options): Declare.
1497 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1498
1499 2012-11-10 Keith Seitz <keiths@redhat.com>
1500
1501 * breakpoint.c (clear_command): Add cleanup for
1502 sals.sals if an argument is given.
1503
1504 * linespec.c (parse_linespec): Do cleanups after
1505 parsing a convenience variable.
1506
1507 2012-11-10 Keith Seitz <keiths@redhat.com>
1508
1509 PR gdb/14288
1510 * c-valprint.c (c_val_print): For character arrays
1511 with "print null" option on, print ellipses if
1512 the output is truncated and the next character is not \000.
1513 * valprint.c (MAX_WCHARS): Define.
1514 (WCHAR_BUFLEN): Likewise.
1515 (WCHAR_BUFLEN_MAX): Likewise.
1516 (struct converted_character): New structure.
1517 (count_next_character): New function.
1518 (print_converted_chars_to_obstack): New function.
1519 (generic_printstr): Rewrite using count_next_character
1520 and print_converted_chars_to_obstack.
1521
1522 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1523
1524 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1525 while executing the gdb command.
1526 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1527 are called from prompt_for_continue.
1528 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1529
1530 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1531
1532 PR tui/9584
1533
1534 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1535 but insert the command to execute in readline's buffer.
1536
1537 2012-11-09 Tom Tromey <tromey@redhat.com>
1538
1539 * gdbarch.sh (target_gdbarch): Remove macro.
1540 (get_target_gdbarch): Rename to target_gdbarch.
1541 * gdbarch.c, gdbarch.h: Rebuild.
1542 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1543 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1544 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1545 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1546 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1547 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1548 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1549 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1550 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1551 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1552 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1553 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1554 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1555 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1556 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1557 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1558 target-descriptions.c, target.c, target.h, tracepoint.c,
1559 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1560 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1561 python/py-inferior.c, python/python.c: Update.
1562
1563 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1564
1565 * source.c (print_source_lines_base): Add fullname field giving
1566 full path to file in mi output.
1567 * NEWS: Mention the new fullname field.
1568
1569 2012-11-09 Yao Qi <yao@codesourcery.com>
1570
1571 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1572
1573 2012-11-09 Pedro Alves <palves@redhat.com>
1574
1575 PR gdb/14306
1576
1577 * infrun.c: Include target-descriptions.h.
1578 (follow_exec): Fetch new target description.
1579
1580 2012-11-09 Yao Qi <yao@codesourcery.com>
1581
1582 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1583 0x8d (lea).
1584
1585 2012-11-09 Yao Qi <yao@codesourcery.com>
1586
1587 * breakpoint.c: Declare set_tracepoint_count.
1588 (install_breakpoint): Call set_tracepoint_count if B is a
1589 tracepoint.
1590 (trace_command): Don't call set_tracepoint_count. Re-indent.
1591 (strace_command, ftrace_command):
1592 (create_tracepoint_from_upload): Likewise.
1593
1594 2012-11-09 Pedro Alves <palves@redhat.com>
1595
1596 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1597 (get_target_gdbarch) <gdbarch.h>: New function.
1598 (startup_gdbarch) <gdbarch.h>: Declare.
1599 <gdbarch.c> (target_gdbarch): Delete.
1600 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1601 current inferior's gdbarch.
1602 <gdbarch.c> (get_target_gdbarch): New function.
1603 * inferior.c: Include target-descriptions.h.
1604 (free_inferior): Free target description info.
1605 (add_inferior_with_spaces): Set the inferior's initial
1606 architecture.
1607 (clone_inferior_command): Copy the original inferior's target
1608 description if it was user specified.
1609 (initialize_inferiors): Add comment.
1610 * inferior.h (struct target_desc_info): Forward declare.
1611 (struct inferior) <gdbarch>: New field.
1612 * linux-nat.c: Include target-descriptions.h.
1613 (linux_child_follow_fork): Copy the parent's architecture and
1614 target description to the child.
1615 * target-descriptions.c: Include inferior.h.
1616 (struct target_desc_info): New structure, holding the equivalents
1617 of ...
1618 (target_desc_fetched, current_target_desc)
1619 (target_description_filename): ... these removed globals.
1620 (get_tdesc_info, target_desc_info_from_user_p)
1621 (copy_inferior_target_desc_info, target_desc_info_free): New.
1622 (target_desc_fetched, current_target_desc)
1623 (target_description_filename): Reimplemented as convenience
1624 macros.
1625 (tdesc_filename_cmd_string): New global.
1626 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1627 tdescs filename ..." commands to the per-inferior equivalent.
1628 (show_tdesc_filename_cmd): Get the value to show from the
1629 per-inferior description filename.
1630 (_initilize_target_descriptions): Change the "set/show tdesc
1631 filename" commands' variable.
1632 * target-descriptions.h (struct target_desc, struct target_desc_info)
1633 (struct inferior): Forward declare.
1634 (target_find_description, target_clear_description)
1635 (target_current_description): Adjust comments.
1636 (copy_inferior_target_desc_info, target_desc_info_free)
1637 (target_desc_info_from_user_p). Declare.
1638
1639 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1640
1641 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1642 (tui_target_wait_hook): Remove.
1643 (tui_install_hooks): Install the about_to_proceed observer.
1644 (tui_remove_hooks): And remove it here.
1645
1646 2012-11-08 Tom Tromey <tromey@redhat.com>
1647
1648 * linux-tdep.c (linux_make_siginfo_note): New function.
1649 (linux_make_corefile_notes): Use it.
1650 * corelow.c (get_core_siginfo): New function.
1651 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1652
1653 2012-11-08 Tom Tromey <tromey@redhat.com>
1654
1655 PR gdb/14704:
1656 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1657 (zlib_decompress_section): Remove.
1658 (gdb_bfd_map_section): Only check for compressed section
1659 in mmap case. Use bfd_get_full_section_contents.
1660 * osabi.c (check_note): Add 'sectsize' argument. Read
1661 section data.
1662 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1663 section data. Update for check_note change.
1664 * xcoffread.c (xcoff_initial_scan): Use
1665 bfd_get_full_section_contents.
1666 * py-auto-load.c (auto_load_section_scripts): Use
1667 bfd_get_full_section_contents.
1668 * contrib/cc-with-tweaks.sh: Add -Z option.
1669
1670 2012-11-08 Tom Tromey <tromey@redhat.com>
1671
1672 * python/py-bpevent.c: Include defs.h.
1673 * python/py-continueevent.c: Include defs.h.
1674 * python/py-event.c: Include defs.h.
1675 * python/py-event.h: Don't include defs.h.
1676 * python/py-events.h: Don't include defs.h.
1677 * python/py-evts.c: Include defs.h.
1678 * python/py-exitedevent.c: Include defs.h.
1679 * python/py-newobjfileevent.c: Include defs.h.
1680 * python/py-signalevent.c: Include defs.h.
1681 * python/py-stopevent.c: Include defs.h.
1682 * python/py-threadevent.c: Include defs.h.
1683
1684 2012-11-08 Pierre Muller <muller@sourceware.org>
1685
1686 * update-web-ari.sh (print_heading): Add number of files
1687 checked.
1688 (nb_files): New variable counting the number of sources
1689 files found by gdb_find.sh script.
1690 (debug_awk): New variable to allow extra debug output.
1691 (indexes): Add more information if DEBUG_AWK is set.
1692
1693 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1694
1695 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1696 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1697 following the change in PLT call stubs on linker.
1698
1699 2012-11-08 Pierre Muller <muller@sourceware.org>
1700
1701 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1702 as default language.
1703 (AWK): Use = instead of == for sh test to avoid warning.
1704 (Linux rule): Correct [:digit] into [[:digit:]].
1705 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1706 (vasprintf rule): Adapt to common subdirectory moves.
1707 (xasprintf rule): Idem.
1708 (xvasprintf rule): Idem.
1709 (var_boolean rule): Accept occurence in == or != test.
1710
1711 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1712
1713 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1714
1715 * tui/tui-hooks.c (tui_inferior_exit): New function.
1716 (tui_detach_hook): Remove.
1717 (tui_install_hooks): Install the inferior exit observer.
1718 (tui_remove_hooks): Remove it.
1719
1720 2012-11-08 Yao Qi <yao@codesourcery.com>
1721
1722 PR gdb/14777.
1723 * source.c (_initialize_source): Call add_com_alias to abbreviate
1724 'forward-search' as 'fo'.
1725
1726 2012-11-07 Pedro Alves <palves@redhat.com>
1727
1728 * arm-tdep.c: Make defs.h be the first include.
1729 * coff-pe-read.c: Ditto.
1730 * gnu-nat.c: Ditto.
1731 * go32-nat.c: Ditto.
1732 * i386-nat.c: Ditto.
1733 * ppcnbsd-nat.c: Ditto.
1734 * ada-varobj.h: Don't include defs.h.
1735 * i386-darwin-tdep.h: Ditto.
1736 * i386-nat.h: Ditto.
1737
1738 2012-11-07 Pedro Alves <palves@redhat.com>
1739
1740 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1741 Committee.
1742
1743 2012-11-07 Pierre Muller <muller@sourceware.org>
1744
1745 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1746 File already uses "gdb_dirent.h" header.
1747
1748 2012-11-07 Yao Qi <yao@codesourcery.com>
1749
1750 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1751 tracepoint_count'.
1752
1753 2012-11-06 Tom Tromey <tromey@redhat.com>
1754
1755 * target.h (inferior_has_forked, inferior_has_vforked)
1756 (inferior_has_execd, inferior_has_called_syscall): Remove
1757 declarations.
1758
1759 2012-11-06 Pierre Muller <muller@sourceware.org>
1760
1761 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1762 add missing internalization markup.
1763
1764 2012-11-06 Pedro Alves <palves@redhat.com>
1765
1766 PR gdb/14810
1767
1768 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1769
1770 2012-11-06 Pierre Muller <muller@sourceware.org>
1771
1772 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1773 is not executable.
1774
1775 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1776
1777 * gnulib/update-gnulib.sh: New script.
1778
1779 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1780
1781 * MAINTAINERS: Update my email address.
1782
1783 2012-11-05 Tom Tromey <tromey@redhat.com>
1784
1785 * frame.c (put_frame_register): Don't use temporary buffer.
1786
1787 2012-11-05 Pedro Alves <palves@redhat.com>
1788
1789 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1790 child. Clear 'pending_detach'.
1791 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1792 'pending_detach' in the vfork parent.
1793
1794 2012-11-05 Doug Evans <dje@google.com>
1795
1796 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1797 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1798 * dwarf2read.c: #include "elf-bfd.h".
1799 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1800 (dwop_section_names): Renamed from dwo_section names. All uses
1801 updated. Add entries for .debug_cu_index, .debug_tu_index.
1802 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1803 All uses updated.
1804 (struct dwp_sections): New type.
1805 (struct virtual_dwo_sections): New type.
1806 (struct dwp_hash_table): New type.
1807 (struct dwp_file): New type.
1808 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1809 read in. Handle DWOs coming from DWP files.
1810 (lookup_dwo_file_slot): New function.
1811 (dwarf2_locate_dwo_sections): Move definition closer to use.
1812 (create_dwo_debug_info_hash_table_reader): Renamed from
1813 create_debug_info_hash_table_reader. All callers updated.
1814 (create_dwo_debug_info_hash_table): Renamed from
1815 create_debug_info_hash_table. All callers updated.
1816 (create_dwp_hash_table): New function.
1817 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1818 (lookup_dwo_in_dwp): New function.
1819 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1820 is_dwp. All callers updated.
1821 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1822 (open_and_init_dwo_file): Renamed from init_dwo_file.
1823 All callers updated.
1824 (lookup_dwo_file): Delete.
1825 (dwarf2_locate_dwp_sections): New function.
1826 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1827 (allocate_dwp_loaded_cutus_table): New function.
1828 (open_and_init_dwp_file): New function.
1829 (lookup_dwo_cutu): New function.
1830 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1831
1832 2012-11-03 Yao Qi <yao@codesourcery.com>
1833
1834 Fix PR gdb/14617.
1835 * breakpoint.c (trace_pass_set_count): Call
1836 observer_notify_breakpoint_modified instead of
1837 observer_notify_tracepoint_modified.
1838 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1839
1840 2012-11-02 Tom Tromey <tromey@redhat.com>
1841
1842 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1843 argument to complete_on_enum.
1844
1845 2012-11-02 Tom Tromey <tromey@redhat.com>
1846
1847 * configure: Rebuild.
1848 * configure.ac (build_warnings): Add -Wempty-body.
1849 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1850 * remote.c (handle_notification): Use braces for empty 'else' body.
1851 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1852 'else' body.
1853 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1854 'else' body.
1855 * solib-som.c (som_relocate_section_addresses): Use braces
1856 for empty 'else' body.
1857 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1858 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1859
1860 2012-11-02 Pedro Alves <palves@redhat.com>
1861
1862 PR gdb/14766
1863
1864 * infrun.c (handle_inferior_event)
1865 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1866 null_ptid before handling a vfork child exec or exit. Switch to
1867 the event ptid afterwards.
1868
1869 2012-11-02 Yao Qi <yao@codesourcery.com>
1870
1871 * std-operator.def: Remove OP_LABELED.
1872 * eval.c: Remove the declaration of 'get_label'.
1873 (get_label): Remove.
1874 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1875 Update comment.
1876 Remove local variable 'variantno' and related code.
1877 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1878 with 'fieldno'.
1879 * expprint.c (print_subexp_standard): Likewise.
1880 (dump_subexp_body_standard): Likewise.
1881 * parse.c (operator_length_standard): Likewise.
1882
1883 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1884
1885 Incorporate ARI web page generator into GDB sources.
1886 * contrib/ari/create-web-ari-in-src.sh: New file.
1887 * contrib/ari/gdb_ari.sh: New file.
1888 * contrib/ari/gdb_find.sh: New file.
1889 * contrib/ari/update-web-ari.sh: New file.
1890
1891 2012-10-31 Tom Tromey <tromey@redhat.com>
1892
1893 * gdbarch.c: Rebuild.
1894 * gdbarch.sh: Remove references to gdbarch_swap.
1895 * corelow.c (core_open): Remove obsolete comment.
1896
1897 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1898
1899 PR cli/14772
1900 * c-typeprint.c (c_print_type): Don't print a space for vector
1901 types, this is handled within the suffix.
1902 (c_type_print_varspec_suffix): Add a space to vector suffix.
1903
1904 2012-10-26 Pedro Alves <palves@redhat.com>
1905
1906 * amd64-tdep.c (amd64_relocate_instruction): Use
1907 store_unsigned_integer instead of memcpy.
1908 * i386-tdep.c (i386_relocate_instruction): Ditto.
1909
1910 2012-10-26 Pedro Alves <palves@redhat.com>
1911
1912 * infrun.c (handle_inferior_event): Merge handling of
1913 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1914 switch case.
1915
1916 2012-10-26 Pedro Alves <palves@redhat.com>
1917
1918 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1919 Remove comment.
1920
1921 2012-10-26 Pedro Alves <palves@redhat.com>
1922
1923 * target.c (target_waitstatus_to_string): Handle
1924 TARGET_WAITKIND_VFORK_DONE.
1925
1926 2012-10-26 Pedro Alves <palves@redhat.com>
1927
1928 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1929 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1930
1931 2012-10-24 Tristan Gingold <gingold@adacore.com>
1932
1933 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1934 Add comments.
1935
1936 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1937
1938 * ravenscar-thread.c (ravenscar_wait): Only update the list
1939 of threads and inferior_ptid if the inferior is still alive.
1940
1941 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1942
1943 * ada-lang.c (is_known_support_routine): Use lbasename when
1944 matching the symtab's filename against
1945 known_runtime_file_name_patterns.
1946
1947 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1948
1949 * ada-lang.c (ada_same_array_size_p): New function.
1950 (ada_promote_array_of_integrals): New function.
1951 (coerce_for_assign): Add handling of arrays where the elements
1952 are integrals of a smaller size than the size of the target
1953 array element type.
1954
1955 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1956
1957 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1958 against maximum exponent value.
1959
1960 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1961
1962 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1963 "unwind-seh.c".
1964
1965 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1966
1967 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1968 strip typedef layer when computing the fixed type's field type,
1969 only when computing its size.
1970
1971 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1972
1973 PR gdb/12783
1974 * i386-tdep.c (i386_return_value): Handle complex double and long
1975 double.
1976
1977 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1978
1979 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1980 New local variable args_len.
1981 Quote the name of the executable when computing the command line.
1982
1983 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1984
1985 PR gdb/12796
1986 PR gdb/12798
1987 PR gdb/12800
1988 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1989 AMD64_FTAG_REGNUM.
1990 * amd64-tdep.c (amd64_classify): Classify complex types.
1991 (amd64_return_value): Handle the COMPLEX_X87 class.
1992
1993 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1994
1995 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1996 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1997
1998 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1999
2000 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2001 function.
2002 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2003 to amd64_windows_auto_wide_charset.
2004
2005 2012-10-23 Yao Qi <yao@codesourcery.com>
2006
2007 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2008 * event-top.h: Remove its declaration.
2009 (async_request_quit): Call mark_async_signal_handler instead of
2010 mark_async_signal_handler_wrapper.
2011 (async_do_nothing, async_disconnect): Likewise.
2012 (async_stop_sig): Likewise.
2013 * remote.c (handle_remote_sigint): Likewise.
2014 (handle_remote_sigint_twice): Likewise.
2015
2016 2012-10-23 Yao Qi <yao@codesourcery.com>
2017
2018 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2019 with 'static struct async_signal_handler *'.
2020 (sighup_token, sigquit_token, sigstp_token): Likewise.
2021
2022 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
2023
2024 * gdbarch.sh (function_list): Use 'pstring' when printing
2025 a variable which could return NULL.
2026 * gdbarch.c: Regenerate.
2027
2028 2012-10-10 Joel Brobecker <brobecker@adacore.com>
2029 Tom Tromey <tromey@redhat.com>
2030
2031 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2032 inneffective if condition by gdb assertion. Add function
2033 description comment.
2034
2035 2012-10-19 Joel Brobecker <brobecker@adacore.com>
2036
2037 * parser-defs.h (struct exp_descriptor): Document constraint
2038 on return value for "op_name" callbacks.
2039
2040 2012-10-18 Tom Tromey <tromey@redhat.com>
2041
2042 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2043 * symtab.c (iterate_over_some_symtabs): Constify.
2044 * source.h (symtab_to_fullname): Return 'const char *'.
2045 * source.c (symtab_to_fullname): Return 'const char *'.
2046 * python/py-symtab.c (stpy_fullname): Constify.
2047 * cli/cli-cmds.c (edit_command): Constify.
2048 * breakpoint.c (print_breakpoint_location)
2049 (update_static_tracepoint): Constify.
2050
2051 2012-10-18 Tom Tromey <tromey@redhat.com>
2052
2053 * breakpoint.c (compare_breakpoints): Fix comparison.
2054
2055 2012-10-18 Tom Tromey <tromey@redhat.com>
2056
2057 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2058 gdb_wchar_t to convert_between_encodings.
2059
2060 2012-10-17 Yao Qi <yao@codesourcery.com>
2061
2062 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2063 more parameter 'inferior'.
2064 * corefile.c (write_memory_with_notification): Caller update.
2065
2066 * mi/mi-cmd-var.c: Include "mi-main.h".
2067 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2068 to 1 and restore it later.
2069 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2070 and "data-write-memory-bytes.
2071 * mi/mi-interp.c: Include objfiles.h.
2072 (mi_interpreter_init): Call observer_attach_memory_changed.
2073 (mi_memory_changed): New.
2074 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2075 New field.
2076
2077 * NEWS: Mention new MI notification "memory-changed".
2078
2079 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2080
2081 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2082
2083 2012-10-15 Doug Evans <dje@google.com>
2084
2085 New option -nh: inhibit loading of ~/.gdbinit.
2086 * NEWS: Mention -nh.
2087 * main.c (captured_main): Recognize and process -nh.
2088 (print_gdb_help): Mention -nh.
2089 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2090
2091 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2092
2093 PR backtrace/14646
2094 PR gdb/14647
2095 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2096 pc_regnum_from_eax.
2097 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2098 nor pc_regnum_from_eax.
2099 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2100 nor pc_regnum_from_eax.
2101
2102 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2103
2104 Fix entry values resolving in inlined frames.
2105 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2106 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2107 entries of FRAME.
2108
2109 2012-10-15 Joel Brobecker <brobecker@adacore.com>
2110
2111 * configure.ac: Build with -DMS_WIN64 if building with Python
2112 enabled using GCC on amd64-windows.
2113 * configure: Regenerate.
2114
2115 2012-10-15 Tom Tromey <tromey@redhat.com>
2116
2117 PR python/14635:
2118 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2119 to Py_None.
2120
2121 2012-10-15 Tom Tromey <tromey@redhat.com>
2122
2123 PR python/14634:
2124 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2125
2126 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
2127
2128 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2129 reset thread numbering back to 1.
2130
2131 2012-10-11 Doug Evans <dje@google.com>
2132
2133 PR breakpoints/14643.
2134 * linespec.c (struct ls_parser): New member keyword_ok.
2135 (linespec_lexer_lex_string): Add comment.
2136 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2137 for one.
2138 (parse_linespec): Set keyword_ok.
2139
2140 2012-10-10 Doug Evans <dje@google.com>
2141
2142 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2143 "0x" prefix on address in log message.
2144
2145 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2146 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2147 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2148 (lookup_dwo_file): Add const to dwo_name parameter.
2149 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2150
2151 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2152
2153 Fix crash during stepping on ppc32.
2154 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2155 SYM.
2156
2157 2012-10-03 Doug Evans <dje@google.com>
2158
2159 PR symtab/14601
2160 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2161
2162 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
2163
2164 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2165 output and use uint32_t not long to ensure 4 byte size.
2166
2167 2012-10-02 Joel Brobecker <brobecker@adacore.com>
2168
2169 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2170 unref'ed it.
2171
2172 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
2173
2174 * target.c (simple_search_memory): Include access length in
2175 warning message.
2176
2177 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2178 Edjunior Machado <emachado@linux.vnet.ibm.com>
2179
2180 PR gdb/13989
2181 * solib.c (solib_find): Prevent GDB from loading native libraries when
2182 debugging a cross-target corefile.
2183
2184 2012-09-28 selven <pcthegreat@gmail.com>
2185
2186 Make definition match declaration.
2187
2188 * regcache.c (regcache_register_status): Change return type to
2189 enum register_status.
2190
2191 2012-09-28 Yao Qi <yao@codesourcery.com>
2192
2193 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2194 write_memory_with_notification instead of write_memory.
2195 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2196 instead of target_write_memory.
2197
2198 2012-09-28 Yao Qi <yao@codesourcery.com>
2199
2200 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2201 when the length of content is not an even number.
2202
2203 2012-09-27 Tom Tromey <tromey@redhat.com>
2204
2205 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2206 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2207
2208 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2209
2210 * sol-thread.c (sol_thread_fetch_registers)
2211 (sol_thread_store_registers): Delete commented out code.
2212
2213 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2214
2215 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2216 Move these functions to sparc-sol-thread.c.
2217 * sparc-sol-thread.c: New file.
2218 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2219 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2220 configurations.
2221 * configure: Regenerate.
2222
2223 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2224
2225 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2226 Remove commented-out code.
2227
2228 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2229
2230 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2231 Enable this code for sparc hosts only.
2232
2233 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2234
2235 * procfs.h (procfs_find_LDT_entry): Add declaration.
2236 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2237 function procfs_find_LDT_entry.
2238
2239 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2240
2241 * procfs.c (proc_get_LDT_entry): Make static.
2242
2243 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2244
2245 * procfs.c (proc_find_memory_regions): Fix declaration.
2246
2247 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2248
2249 * amd64-tdep.c (amd64_return_value): Revert previous change
2250 that used TYPE_LENGTH directly.
2251 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2252 (bfin_store_return_value): Likewise.
2253 * cris-tdep.c (cris_store_return_value): Likewise.
2254 (cris_extract_return_value): Likewise.
2255 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2256 * hppa-tdep.c (hppa64_return_value): Likewise.
2257 * lm32-tdep.c (lm32_store_return_value): Likewise.
2258 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2259 * spu-tdep.c (spu_value_from_register): Likewise.
2260 * vax-tdep.c (vax_return_value): Likewise.
2261
2262 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2263
2264 * gdbtypes.c (lookup_array_range_type): Expand parameters
2265 LOW_BOUND and HIGH_BOUND to LONGEST.
2266 (lookup_string_range_type): Likewise.
2267 * gdbtypes.h (lookup_array_range_type): Likewise.
2268 (lookup_string_range_type): Likewise.
2269 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2270 Expand HIGHBOUND to ssize_t.
2271 (value_string): Likewise.
2272 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2273 (value_string): Likewise.
2274
2275 2012-09-27 Yao Qi <yao@codesourcery.com>
2276
2277 PR breakpoints/13898
2278 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2279 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2280 per breakpoint type.
2281
2282 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2283
2284 * procfs.c: Add gdb_bfd header.
2285 * rs6000-nat.c: Likewise.
2286 * solib-pa64.c: Likewise.
2287 * spu-linux-nat.c: Likewise.
2288 * windows-nat.c: Likewise.
2289
2290 2012-09-26 Tom Tromey <tromey@redhat.com>
2291
2292 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2293
2294 2012-09-26 Tom Tromey <tromey@redhat.com>
2295
2296 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2297 (read_common_block): Handle child DIEs with
2298 DW_AT_data_member_location.
2299 (new_symbol_full): Add special case for common blocks.
2300
2301 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2302 Tom Tromey <tromey@redhat.com>
2303
2304 * dwarf2read.c (read_common_block): Rewrite.
2305 (new_symbol_full): Handle DW_TAG_common_block.
2306 * f-lang.c (head_common_list, find_common_for_function):
2307 Remove.
2308 * f-lang.h (struct common_entry, struct saved_f77_common,
2309 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2310 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2311 BLANK_COMMON_NAME_LOCAL): Remove.
2312 (struct common_block): New.
2313 * f-valprint.c (list_all_visible_commons): Remove.
2314 (info_common_command_for_block): New function.
2315 (info_common_command): Use it.
2316 * stack.c (iterate_over_block_locals): Special case for
2317 COMMON_BLOCK_DOMAIN.
2318 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2319 constant.
2320 (struct general_symbol_info) <value.common_block>: New field.
2321 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2322
2323 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2324 Tom Tromey <tromey@redhat.com>
2325
2326 * f-lang.c (allocate_saved_bf_node,
2327 allocate_saved_function_node, allocate_saved_f77_common_node,
2328 allocate_common_entry_node, tail_common_list, current_common,
2329 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2330 tmp_bf_ptr, add_common_block, add_common_entry,
2331 find_first_common_named, patch_common_entries,
2332 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2333 global_remote_debug, get_bf_for_fcn, saved_function_list,
2334 saved_function_list_end, clear_function_list, struct saved_fcn,
2335 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2336 SAVED_BF, SAVED_BF_PTR): Remove.
2337 * f-lang.h (tail_common_list, current_common,
2338 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2339 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2340 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2341 real_main_c_value): Remove.
2342 * f-valprint.c (there_is_a_visible_common_named): Remove.
2343
2344 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2345
2346 * breakpoint.c (update_global_location_list): Ignore previous
2347 duplicate status of a breakpoint when starting a new scan for
2348 duplicate breakpoints.
2349
2350 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2351 PR breakpoints/14419
2352 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2353 support LLVM compiler.
2354
2355 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2356
2357 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2358 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2359 (bfin_store_return_value): Likewise.
2360 * cris-tdep.c (cris_store_return_value): Likewise.
2361 (cris_extract_return_value): Likewise.
2362 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2363 * hppa-tdep.c (hppa64_return_value): Likewise.
2364 * lm32-tdep.c (lm32_store_return_value): Likewise.
2365 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2366 * spu-tdep.c (spu_value_from_register): Likewise.
2367 * vax-tdep.c (vax_return_value): Likewise.
2368
2369 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2370
2371 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2372 parameter LEN to ssize_t.
2373
2374 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2375
2376 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2377 variable LEN.
2378 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2379 directly.
2380 (alpha_store_return_value): Likewise.
2381 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2382 (amd64_push_arguments): Likewise.
2383 * ax-gdb.c (gen_trace_static_fields): Likewise.
2384 (gen_traced_pop): Likewise.
2385 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2386 * breakpoint.c (update_watchpoint): Likewise.
2387 * findcmd.c (parse_find_args): Use local variable for type
2388 instead of length.
2389 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2390 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2391 (h8300_store_return_value): Likewise.
2392 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2393 Use i386_darwin_arg_type_alignment directly.
2394 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2395 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2396 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2397 (m68hc11_extract_return_value): Likewise.
2398 * mep-tdep.c (mep_push_dummy_call): Likewise.
2399 * printcmd.c (float_type_from_length): Likewise.
2400 * s390-tdep.c (s390_value_from_register): Likewise.
2401 * stack.c (read_frame_arg): Likewise.
2402 * tracepoint.c (encode_actions_1): Likewise.
2403 * valops.c (value_fetch_lazy): Use local variable for type
2404 instead of length. Use TYPE_LENGTH directly.
2405 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2406
2407 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2408
2409 * symtab.c (skip_prologue_sal): Fix typo in comment.
2410
2411 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2412
2413 * linespec.c (create_sals_line_offset): Fix typo in comment.
2414
2415 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2416
2417 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2418 use plongest to print the array size.
2419
2420 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2421
2422 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2423 * p-valprint.c (pascal_type_print_base): Likewise.
2424
2425 2012-09-22 Yao Qi <yao@codesourcery.com>
2426
2427 * remote.c (remote_get_trace_status): Remove setting default
2428 values of fields of 'ts'.
2429
2430 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2431
2432 Fix internal error on canonicalization of clang types.
2433 * cp-name-parser.y (operator): New comment at make_operator call for
2434 new, delete, new[] and delete[].
2435 (exp): Use "sizeof ". Add new comment at make_operator call.
2436
2437 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2438
2439 Fix disassemble without parameters in tailcall frame.
2440 * cli/cli-cmds.c (disassemble_current_function): Use
2441 get_frame_address_in_block.
2442
2443 2012-09-21 Tom Tromey <tromey@redhat.com>
2444
2445 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2446 TYPE_CODE_UNION>: Unify, removing a goto.
2447
2448 2012-09-21 Tom Tromey <tromey@redhat.com>
2449
2450 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2451
2452 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2453
2454 * findvar.c (read_frame_register_value): Mark the result value as
2455 optimized out if any of the input registers have been optimized out.
2456
2457 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2458
2459 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2460
2461 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2462
2463 * eval.c (evaluate_subexp_standard): Eliminate single-use
2464 variable LOWER.
2465
2466 2012-09-21 Yao Qi <yao@codesourcery.com>
2467
2468 * mi/mi-interp.c: Declare mi_record_changed.
2469 (mi_interpreter_init): Call observer_attach_record_changed.
2470 (mi_record_changed): New.
2471 * record.c (record_open): Call observer_notify_record_changed.
2472 (cmd_record_stop): Call observer_notify_record_changed.
2473 * NEWS: Mention it.
2474
2475 2012-09-20 Tom Tromey <tromey@redhat.com>
2476
2477 * NEWS: Update.
2478 * python/python.c (finalize_python): New function.
2479 (_initialize_python): Make a final cleanup.
2480
2481 2012-09-19 Doug Evans <dje@google.com>
2482
2483 * buildsym.h (param_symbols): Delete, unused.
2484 (context_stack): Delete member "params", unused.
2485 * buildsym.c (push_context): Update.
2486 * dwarf2read.c (read_func_scope): Update.
2487
2488 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2489
2490 * sh-tdep.c (sh_register_convert_to_virtual)
2491 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2492 all callers. Just do a memcpy if not the little-endian case.
2493
2494 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2495 set_gdbarch_double_format and set_gdbarch_long_double_format.
2496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2497 set_gdbarch_double_format.
2498 * sh-tdep.c (sh_gdbarch_init): Likewise.
2499
2500 * NEWS: Document the removal of SH's 'regs' command.
2501 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2502 command.
2503
2504 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2505
2506 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2507 `jump'.
2508
2509 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2510
2511 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2512 language when iterating over symbols.
2513
2514 2012-09-18 Yao Qi <yao@codesourcery.com>
2515
2516 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2517 (mi_interpreter_init): Call observer_attach_tsv_created and
2518 observer_attach_tsv_deleted.
2519 (mi_tsv_created, mi_tsv_deleted): New.
2520 * tracepoint.c (delete_trace_state_variable): Call
2521 observer_notify_tsv_deleted.
2522 (trace_variable_command): Call observer_notify_tsv_created.
2523 (delete_trace_variable_command): Call
2524 observer_notify_tsv_deleted.
2525 (create_tsv_from_upload): Call observer_notify_tsv_created.
2526 * NEWS: Mention it.
2527
2528 2012-09-18 Yao Qi <yao@codesourcery.com>
2529
2530 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2531 if traceframe changed.
2532 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2533 "trace-find".
2534 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2535 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2536 'traceframe_changed'.
2537 (mi_traceframe_changed): New.
2538 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2539 New field.
2540 * NEWS: Mention the new MI notification.
2541
2542 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2543
2544 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2545
2546 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2547
2548 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2549 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2550 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2551 Extend code also for PaX support. Convert all gdb_assert to warning
2552 calls.
2553
2554 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2555
2556 Implement auto-load user conveniences suggested by Doug Evans.
2557 * auto-load.c: Include top.h.
2558 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2559 (_initialize_auto_load): New variable scripts_directory_help. Mention
2560 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2561 scripts-directory. Document in online help one can use also files for
2562 set auto-load safe-path.
2563 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2564 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2565
2566 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2567
2568 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2569 of LEN.
2570
2571 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2572
2573 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2574 ELTLEN and use TYPE_LENGTH directly.
2575 (m2_val_print): Likewise.
2576 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2577 variable LEN and use TYPE_LENGTH directly.
2578 (m68k_svr4_store_return_value): Likewise.
2579 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2580 ARGLEN and use TYPE_LENGTH directly.
2581 (mips_o64_push_dummy_call): Likewise.
2582 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2583 variable LENGTH and use TYPE_LENGTH directly.
2584 (s390_function_arg_float): Likewise.
2585 (s390_function_arg_integer): Likewise.
2586 (s390_push_dummy_call): Likewise.
2587 (s390_return_value_convention): Likewise.
2588 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2589 TYPE_LENGTH directly.
2590
2591 2012-09-17 Yao Qi <yao@codesourcery.com>
2592
2593 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2594 Update comment to add_setshow_integer_cmd.
2595 * cli/cli-setshow.c (do_set_command): Handle case
2596 'var_zuinteger_unlimited'.
2597 (do_show_command): Likewise.
2598 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2599 for command 'remotetimeout'.
2600 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2601 to var_integer.
2602 * source.c (_initialize_source): Call
2603 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2604
2605 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2606
2607 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2608 variable LEN.
2609
2610 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2611
2612 PR 14119
2613 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2614 (frame_pop): Drop also TAILCALL_FRAME frames.
2615 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2616
2617 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2618 Pedro Alves <palves@redhat.com>
2619
2620 PR 14548
2621 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2622 function start if we are already at function start. Both for
2623 reverse-next and for reverse-step into function without line number
2624 info.
2625
2626 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2627
2628 Code cleanup - rename 'inline' depth to 'artificial' depth.
2629 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2630 frame_id_artificial_p, extend the comment.
2631 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2632 * frame.c (fprint_frame_id): Rename at a user, change debug output
2633 text to "artificial=".
2634 (skip_inlined_frames): Rename to ...
2635 (skip_artificial_frames): ... here. Extend the comment.
2636 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2637 (frame_id_inlined_p): Rename to ...
2638 (frame_id_artificial_p): ... here. Rename at a user.
2639 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2640 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2641 at a user.
2642 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2643 Extend the comment.
2644 (frame_id_inlined_p): Rename to ...
2645 (frame_id_artificial_p): ... here.
2646 * inline-frame.c (inline_frame_this_id): Rename at a user.
2647
2648 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2649
2650 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2651 vector variables using vector_size syntax rather than array
2652 syntax.
2653
2654 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2655
2656 * valarith.c (value_concat): Replace unsafe ALLOCA with
2657 XMALLOC/XFREE.
2658
2659 2012-09-14 Pedro Alves <palves@redhat.com>
2660
2661 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2662
2663 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2664
2665 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2666 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2667 data-directory as appropriate.
2668
2669 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2670
2671 * printcmd.c (ui_printf): Eliminate single-use variable
2672 PARAM_LEN.
2673
2674 2012-09-14 Yao Qi <yao@codesourcery.com>
2675 Pedro Alves <palves@redhat.com>
2676
2677 * valops.c (value_assign): Move observer_notify_target_changed
2678 below to replace reinit_frame_cache.
2679
2680 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2681
2682 Refactor Python "gdb" module into a proper Python package, by
2683 introducing a new "_gdb" module for code implemented in C, and
2684 using reload/__import__ instead of exec.
2685 * python/lib/gdb/__init__.py: Import * from _gdb.
2686 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2687 prompt_hook, sys.argv): Moved from finish_python_initialization.
2688 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2689 (packages, auto_load_packages): New list and function replacing
2690 module_dict and auto-loading code, using __file__ instead of
2691 gdb.PYTHONDIR and reload/__import__ instead of exec.
2692 (GdbSetPythonDirectory): Replacing function of the same name
2693 from finish_python_initialization, using reload/__import__ instead
2694 of exec, as well as call auto_load_packages.
2695 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2696 gdb_python_module and not gdb_module.
2697 * python/python-internal.h (gdb_python_module): Declare.
2698 * python/python.c (gdb_python_module): New global.
2699 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2700 (_initialize_python): Rename gdb module to _gdb.
2701 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2702 (finish_python_initialization): Move Python code to
2703 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2704 __main__.
2705
2706 2012-09-13 Pedro Alves <palves@redhat.com>
2707
2708 * Makefile.in (COMMON_OBS): Add registry.o.
2709 * registry.c: New file.
2710 * registry.h (struct registry_container): Declare.
2711 (registry_data_callback): New typedef.
2712 (struct registry_data, struct registry_data_registration, struct
2713 registry_data_registry): New type.
2714 (register_data_with_cleanup, registry_alloc_data)
2715 (registry_callback_adaptor, registry_clear_data)
2716 (registry_container_free_data, registry_set_data, registry_data):
2717 Declare.
2718 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2719 the new common structures and functions.
2720 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2721 callback typedefs.
2722
2723 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2724
2725 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2726 there is an error inserting hardware breakpoints and use the
2727 error message from the target.
2728
2729 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2730 Catch this exception and print the error message contained within.
2731 Do not print the default hardware error breakpoint message in this
2732 case.
2733
2734 2012-09-12 Doug Evans <dje@google.com>
2735
2736 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2737 cu == NULL.
2738
2739 2012-09-11 Doug Evans <dje@google.com>
2740
2741 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2742 .gdb_index symbol attributes if there are none.
2743
2744 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2745
2746 * symtab.h (struct minimal_symbol) [has_size]: New field.
2747 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2748 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2749 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2750 minimal symbols if the symbol's size is actually known.
2751 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2752 of msymbol's size field. Add comment.
2753 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2754 SET_MSYMBOL_SIZE to set the minimal symbol size.
2755
2756 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2757
2758 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2759 minimal_symbol struct object, rather than setting some of its
2760 fields one by one.
2761
2762 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2763
2764 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2765 passed_a_ptr flag when displaying typedef types.
2766
2767 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2768
2769 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2770 the optimized_out flag is preserved.
2771
2772 2012-09-10 Anthony Green <green@moxielogic.com>
2773
2774 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2775 prologue changes in GCC.
2776
2777 2012-09-10 Keith Seitz <keiths@redhat.com>
2778
2779 PR gdb/13483
2780 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2781 (BOOL_CONVERSION_BADNESS): ... this.
2782 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2783 (rank_one_type): Allow all boolean conversions
2784 permitted by the standard.
2785
2786 2012-09-06 Tom Tromey <tromey@redhat.com>
2787
2788 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2789 Don't decref py_objfile.
2790
2791 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2792
2793 Do not enable -lmcheck by default when Python is enabled with
2794 threading support.
2795 * configure.ac: (python_has_threads) New variable, by testing
2796 if WITH_THREAD is defined in Python.h.
2797 Move --enable-lmcheck after --with-python.
2798 Do not enable -lmcheck by default if python_has_threads=yes.
2799 Warn if --enable-lmcheck and python_has_threads=yes.
2800 * configure: Regenerate.
2801
2802 2012-08-31 Yao Qi <yao@codesourcery.com>
2803
2804 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2805 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2806 Update some commands.
2807 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2808 * mi/mi-main.c (mi_cmd_execute): Set
2809 '*parse->cmd->suppress_notification' to 1.
2810
2811 2012-08-31 Yao Qi <yao@codesourcery.com>
2812
2813 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2814
2815 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2816
2817 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2818
2819 2012-08-29 Doug Evans <dje@google.com>
2820
2821 * main.c (print_gdb_help): Remove reference to
2822 --use-deprecated-index-sections.
2823
2824 2012-08-28 Yao Qi <yao@codesourcery.com>
2825
2826 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2827 (init_cmds): Call add_setshow_uinteger_cmd for command
2828 'max-user-call-depth'.
2829 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2830 declaration of 'max_user_call_depth'.
2831 * frame.c (backtrace_limit): Add 'unsigned'.
2832 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2833 'limit'.
2834 * remote.c (remoteaddresssize): Add 'unsigned'.
2835 (remote_address_masked): Change local var 'address_size' to
2836 'unsigned'.
2837 (_initialize_remote): Call add_setshow_uinteger_cmd for
2838 'remoteaddresssize'.
2839 * top.c (history_size): Add 'unsigned'.
2840 (show_commands): Change local variables to 'unsigned'.
2841 (set_history_size_command): Don't check history_size is negative.
2842 Adjust the condition to call unstifle_history and set history_size
2843 to UNIT_MAX.
2844
2845 2012-08-28 Pedro Alves <palves@redhat.com>
2846
2847 PR gdb/14428
2848
2849 * infcmd.c (default_print_one_register_info): New, factored out
2850 from default_print_registers_info.
2851 (default_print_registers_info): Use it. Mark value unavailable if
2852 necessary.
2853 (registers_info): Print user registers with
2854 default_print_one_register_info.
2855
2856 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2857
2858 PR tui/14486
2859 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2860 is not NULL before referencing it.
2861
2862 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2863
2864 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2865 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2866 original PC for it.
2867
2868 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2869 Jan Kratochvil <jan.kratochvil@redhat.com>
2870
2871 * auto-load.c (auto_load_objfile_script): Rename to ...
2872 (auto_load_objfile_script_1): ... here, change variable realname to
2873 parameter realname, document it, add return value, add variable retval.
2874 (auto_load_objfile_script): New function.
2875
2876 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2877
2878 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2879 followed by a whitespace.
2880
2881 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2882
2883 PR gdb/14494.
2884 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2885 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2886 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2887 here.
2888
2889 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2890
2891 * memattr.c (create_mem_region): Fix memory region overlapping
2892 checking.
2893
2894 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2895
2896 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2897 with xmalloc/cleanup.
2898 * mt-tdep.c (mt_push_dummy_call): Likewise.
2899 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2900 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2901
2902 2012-08-24 Yao Qi <yao@codesourcery.com>
2903
2904 * jv-exp.y (push_expression_name): Add "." at the end of error
2905 message.
2906
2907 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2908
2909 Document how to return from "python-interactive" to GDB.
2910 * python/python.c (_initialize_python): Update documentation.
2911
2912 2012-08-23 Pedro Alves <palves@redhat.com>
2913
2914 * infrun.c (_initialize_infrun) <handle command help text>:
2915 Mention that multiple signals are supported.
2916
2917 2012-08-23 Pedro Alves <palves@redhat.com>
2918
2919 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2920 string.
2921
2922 2012-08-23 Yao Qi <yao@codesourcery.com>
2923
2924 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2925 (tfind_1): Don't call registers_changed, set_traceframe_num,
2926 and clear_traceframe_info.
2927 Call set_current_traceframe.
2928 (set_current_traceframe): call set_traceframe_num.
2929
2930 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2931
2932 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2933 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2934
2935 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2936
2937 Enable readline in Python in a GDB-specific way and block the
2938 standard Python readline module to prevent conflicts with GDB.
2939 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2940 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2941 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2942 * python/py-gdb-readline.c: New file.
2943 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2944 prototype.
2945 * python/python.c (_initialize_python): Call
2946 gdbpy_initialize_gdb_readline.
2947
2948 2012-08-22 Keith Seitz <keiths@redhat.com>
2949
2950 * defs.h: Include build-gnulib/config.h
2951
2952 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2953
2954 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2955 and blx pc.
2956
2957 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2958
2959 Add a new "python-interactive" command that starts a standard
2960 Python interactive prompt with "pi" as alias, and add "py" as
2961 an alias to "python".
2962 * NEWS: Mention the new commands.
2963 * python/python.c (eval_python_command): New function.
2964 (python_interactive_command): For "python-interactive" with
2965 arguments, call eval_python_command. For "python-interactive"
2966 without arguments, call PyRun_InteractiveLoop.
2967 (_initialize_python): Add "python-interactive" command with
2968 "pi" as alias, and add "py" as an alias to "python".
2969
2970 2012-08-22 Tom Tromey <tromey@redhat.com>
2971
2972 * defs.h (quit_flag): Don't declare.
2973 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2974 (QUIT): Use new functions.
2975 * event-top.c (command_handler): Use clear_quit_flag.
2976 (handle_sigint): Use set_quit_flag.
2977 (async_request_quit): Use check_quit_flag. Don't check
2978 immediate_quit.
2979 * exceptions.c (throw_exception): Use clear_quit_flag.
2980 * main.c (captured_main): Use clear_quit_flag.
2981 * python/python.c (clear_quit_flag, set_quit_flag)
2982 (check_quit_flag): New functions.
2983 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2984 clear_quit_flag.
2985 * remote.c (remote_wait_as): Use check_quit_flag,
2986 clear_quit_flag.
2987 (remote_start_remote): Call QUIT.
2988 * symfile.c (load_progress): Use check_quit_flag.
2989 * top.c (command_loop): Use clear_quit_flag.
2990 (command_line_input): Call QUIT.
2991 * utils.c (quit_flag): Conditionally define.
2992 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2993 functions.
2994 (prompt_for_continue): Call QUIT. Use quit, not
2995 async_request_quit.
2996 * remote-mips.c (mips_expect_timeout): Call QUIT.
2997 * monitor.c (monitor_expect): Call QUIT.
2998
2999 2012-08-22 Tom Tromey <tromey@redhat.com>
3000
3001 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3002 (async_init_signals): Update.
3003 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3004 (SIGWINCH_HANDLER_BODY): Remove.
3005
3006 2012-08-22 Tom Tromey <tromey@redhat.com>
3007
3008 * jit.c (jit_object_close_impl): Don't malloc the objfile
3009 name.
3010 * objfiles.c (allocate_objfile): Don't malloc the objfile
3011 name.
3012 (free_objfile): Don't free the objfile name.
3013 * objfiles.h (struct objfile) <name>: Update comment.
3014 * symfile.c (reread_symbols): Fix reference counting. Don't
3015 malloc objfile name.
3016
3017 2012-08-22 Tom Tromey <tromey@redhat.com>
3018
3019 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3020 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3021 (symfile_bfd_open): Likewise.
3022 (generic_load): Likewise.
3023 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3024 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3025 gdb_bfd_open.
3026 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3027 Use gdb_bfd_open.
3028 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3029 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3030 (pmon_load_fast): Likewise.
3031 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3032 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3033 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3034 (macho_check_dsym): Likewise.
3035 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3036 (m32r_upload_command): Likewise.
3037 * gdb_bfd.h (gdb_bfd_cache): Declare.
3038 * gdb_bfd.c (struct gdb_bfd_data): New.
3039 (gdb_bfd_cache): New global.
3040 (struct gdb_bfd_cache_search): New.
3041 (hash_bfd): New function.
3042 (eq_bfd): Likewise.
3043 (gdb_bfd_open): Likewise.
3044 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3045 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3046 gdb_bfd_data.
3047 * exec.c (exec_file_attach): Use gdb_bfd_open.
3048 * dsrec.c (load_srec): Use gdb_bfd_open.
3049
3050 2012-08-22 Tom Tromey <tromey@redhat.com>
3051
3052 * dwarf2read.c (macro_start_file): Update.
3053 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3054 (free_objfile_per_bfd_storage): Destroy macro_cache.
3055 (allocate_objfile, free_objfile): Update.
3056 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3057 New field.
3058 (struct objfile) <macro_cache>: Remove.
3059 * symfile.c (reread_symbols): Update.
3060 * symmisc.c (print_symbol_bcache_statistics): Update.
3061 (print_objfile_statistics): Update.
3062
3063 2012-08-22 Tom Tromey <tromey@redhat.com>
3064
3065 * elfread.c (elf_symtab_read): Update.
3066 * objfiles.c (objfiles_bfd_data): New global.
3067 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3068 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3069 (allocate_objfile, free_objfile): Update.
3070 (_initialize_objfiles): Initialize objfiles_bfd_data.
3071 * objfiles.h (struct objfile_per_bfd_storage): New.
3072 (struct objfile) <per_bfd>: New field.
3073 <filename_cache>: Remove.
3074 (set_objfile_per_bfd): Declare.
3075 * symfile.c (reread_symbols): Update. Call
3076 set_objfile_per_bfd.
3077 (allocate_symtab): Update.
3078 * symmisc.c (print_symbol_bcache_statistics): Update.
3079 (print_objfile_statistics): Print the size of the BFD obstack.
3080
3081 2012-08-22 Tom Tromey <tromey@redhat.com>
3082
3083 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3084 * gdb_bfd.c: Use DEFINE_REGISTRY.
3085 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3086 (gdb_bfd_ref): Call bfd_alloc_data.
3087 (gdb_bfd_unref): Call bfd_free_data.
3088
3089 2012-08-22 Tom Tromey <tromey@redhat.com>
3090
3091 * registry.h (struct registry_fields): New.
3092 (REGISTRY_FIELDS): Redefine.
3093 (REGISTRY_ACCESS_FIELD): New macro.
3094 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3095 functions.
3096
3097 2012-08-22 Tom Tromey <tromey@redhat.com>
3098
3099 * auto-load.c (_initialize_auto_load): Update.
3100 * solib-svr4.c (_initialize_svr4_solib): Update
3101 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3102 * solib-darwin.c (_initialize_darwin_solib): Update.
3103 * registry.h: New file.
3104 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3105 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3106 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3107 (register_program_space_data_with_cleanup)
3108 (register_program_space_data, program_space_alloc_data)
3109 (clear_program_space_data, set_program_space_data)
3110 (program_space_data): Don't declare.
3111 * progspace.c: Use DEFINE_REGISTRY.
3112 (struct program_space_data, struct
3113 program_space_data_registration, struct
3114 program_space_data_registry, program_space_data_registry)
3115 (register_program_space_data_with_cleanup)
3116 (register_program_space_data, program_space_alloc_data)
3117 (program_space_free_data, clear_program_space_data)
3118 (set_program_space_data, program_space_data): Remove.
3119 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3120 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3121 (register_objfile_data_with_cleanup, register_objfile_data)
3122 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3123 declare.
3124 * objfiles.c: Use DEFINE_REGISTRY.
3125 (struct objfile_data, struct objfile_data_registration, struct
3126 objfile_data_registry, objfile_data_registry)
3127 (register_objfile_data_with_cleanup, register_objfile_data)
3128 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3129 (set_objfile_data, objfile_data): Remove.
3130 (_initialize_objfiles): Update.
3131 * jit.c (_initialize_jit): Update.
3132 * inflow.c (_initialize_inflow): Update.
3133 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3134 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3135 (register_inferior_data_with_cleanup, register_inferior_data)
3136 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3137 declare.
3138 * inferior.c: Use DEFINE_REGISTRY.
3139 (struct inferior_data, struct inferior_data_registration, struct
3140 inferior_data_registry, inferior_data_registry)
3141 (register_inferior_data_with_cleanup, register_inferior_data)
3142 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3143 (set_inferior_data, inferior_data): Remove.
3144 * auxv.c (_initialize_auxv): Update.
3145 * ada-lang.c (_initialize_ada_language): Update.
3146 * breakpoint.c (_initialize_breakpoint): Update.
3147 * i386-nat.c (i386_use_watchpoints): Update.
3148
3149 2012-08-22 Tom Tromey <tromey@redhat.com>
3150
3151 * exec.c (exec_close, exec_file_attach): Update.
3152 (add_to_section_table): Initialize 'key' field.
3153 (add_target_sections, remove_target_sections): Add 'key' argument.
3154 * exec.h (add_target_sections, remove_target_sections): Add
3155 'key' argument.
3156 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3157 (reload_shared_libraries_1): Update.
3158 * target.h (struct target_section) <key>: New field.
3159
3160 2012-08-22 Tom Tromey <tromey@redhat.com>
3161
3162 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3163
3164 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3165
3166 * symfile.c (allocate_symtab): Use host_address_to_string
3167 function instead of cast of pointer to long which is not
3168 compatible with x86_64-w64-mingw32 build.
3169
3170 2012-08-19 Andrew Pinski <apinski@cavium.com>
3171
3172 * mips-tdep.c (is_octeon): New function.
3173 (is_octeon_bbit_op): New function.
3174 (mips32_next_pc): Handle Octeon's bbit instructions.
3175 (mips32_instruction_has_delay_slot): Likewise.
3176
3177 2012-08-19 Andrew Pinski <apinski@cavium.com>
3178
3179 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3180 before the function.
3181
3182 2012-08-19 Andrew Pinski <apinski@cavium.com>
3183
3184 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3185
3186 2012-08-19 Keith Seitz <keiths@redhat.com>
3187
3188 PR c++/14365
3189 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3190 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3191
3192 2012-08-18 Eli Zaretskii <eliz@gnu.org>
3193
3194 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3195 The typo broke "make TAGS".
3196
3197 2012-08-17 Joel Brobecker <brobecker@adacore.com>
3198
3199 GDB 7.5 released.
3200
3201 2012-08-17 Keith Seitz <keiths@redhat.com>
3202
3203 PR c++/13356
3204 * gdbtypes.c (strict_type_checking): New variable.
3205 (show_strict_type_checking): New function.
3206 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3207 if strict type checking is disabled.
3208 (_initialize_gdbtypes): Add "check type" subcommand.
3209 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3210
3211 2012-08-17 Keith Seitz <keiths@redhat.com>
3212
3213 * language.h (type_mode): Remove.
3214 (type_check): Remove.
3215 (struct language_defn): Remove la_type_check.
3216 (STRICT_TYPE): Remove unused macro.
3217 (type_error): Remove.
3218 * language.c (set_type_range_case): Renamed to ...
3219 (set_range_case): ... this. Update all callers.
3220 Remove type_mode/type_check.
3221 (type_mode): Remove.
3222 (type_check): Remove.
3223 (show_type_command): Remove.
3224 (set_type_command): Remove.
3225 (language_info): Remove type checking output.
3226 (type_error): Remove unused function.
3227 (range_error): Update comment.
3228 (unknown_language_defn): Remove la_type_check.
3229 (auto_language_defn): Likewise.
3230 (local_language_defn): Likewise.
3231 (_initialize_language): Remove "check type" subcommand.
3232 * ada-lang.c (ada_language_defn): Remove la_type_check.
3233 * c-lang.c (c_language_defn): Likewise.
3234 (cplus_language_defn): Likewise.
3235 (asm_language_defn): Likewise.
3236 (minimal_language_defn): Likewise.
3237 * d-lang.c (d_language_defn): Likewise.
3238 * f-lang.c (f_language_defn): Likewise.
3239 * go-lang.c (go_language_defn): Likewise.
3240 * jv-lang.c (java_language_defn): Likewise.
3241 * m2-lang.c (m2_language_defn): Likewise.
3242 * objc-lang.c (objc_language_defn): Likewise.
3243 * opencl-lang.c (opencl_language_defn): Likewise.
3244 * p-lang.c (pascal_language_defn): Likewise.
3245
3246 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3247
3248 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3249
3250 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3251
3252 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3253 New function.
3254 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3255 using the regache. Use ia64_hpux_get_register_from_save_state_t
3256 to access the bsp and bspstore registers if not.
3257
3258 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3259
3260 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3261 * breakpoint.c (detach_breakpoints): Change pid parameter into
3262 a ptid. Adjust code accordingly.
3263 * infrun.c (handle_inferior_event): Delete variable child_pid.
3264 Update call to detach_breakpoints to pass the child ptid for
3265 fork events.
3266 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3267 assert that inferior_ptid's lwp is zero.
3268 (linux_handle_extended_wait): Update call to detach_breakpoints.
3269 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3270 detach_breakpoints.
3271
3272 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3273
3274 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3275 parent, only call detach_breakpoints if tts.tts_event ==
3276 TTEVT_VFORK.
3277
3278 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3279
3280 * dwarf2-frame.c (dwarf2_frame_cache): Use
3281 get_frame_address_in_block instead of get_frame_pc as
3282 the bound for executing the frame's FDE.
3283
3284 2012-08-16 Yao Qi <yao@codesourcery.com>
3285
3286 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3287 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3288 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3289 (c_type_print_varspec_suffix): Likewise.
3290 * eval.c (evaluate_subexp_standard): Likewise.
3291 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3292 (f_type_print_varspec_suffix): Likewise.
3293 * gdbtypes.c (is_scalar_type): Likewise.
3294 (recursive_dump_type): Likewise.
3295 * infcall.c (value_arg_coerce): Likewise.
3296 * m2-valprint.c (m2_val_print): Likewise.
3297 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3298 (pascal_type_print_varspec_suffix): Likewise.
3299 (pascal_type_print_base): Likewise.
3300 * p-valprint.c (pascal_val_print): Likewise.
3301 (pascal_val_print): Likewise.
3302 * valops.c (value_slice): Likewise.
3303 * valprint.c (scalar_type_p): Likewise.
3304 * valarith.c (value_bitstring_subscript): Remove.
3305 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3306 Remove comment on TYPE_CODE_BITSTRING.
3307
3308 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3309 TYPE_CODE_BITSTRING.
3310
3311 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3312 slot 0.
3313
3314 2012-08-16 Yao Qi <yao@codesourcery.com>
3315
3316 * tracepoint.c (trace_find_none_command): Remove.
3317 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3318
3319 2012-08-16 Yao Qi <yao@codesourcery.com>
3320
3321 * remote.c (handle_notification): Remove parameter 'length'.
3322 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3323
3324 2012-08-15 Keith Seitz <keiths@redhat.com>
3325
3326 * gdbtypes.c (opaque_type_resolution): Make static.
3327 Add missing comment.
3328 (overload_debug): Add missing comment.
3329 (show_opaque_type_resolution): Likewise.
3330 (show_overload_debug): Likewise.
3331 (print_bit_vector): Remove unnecessary forward declaration.
3332 (print_arg_types): Likewise.
3333 (dump_fn_fieldlists): Likewise.
3334 (print_cplus_stuff): Likewise.
3335
3336 2012-08-15 Tom Tromey <tromey@redhat.com>
3337
3338 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3339 (gdb_bfd_ref): Initialize new field.
3340 (gdb_bfd_unref): Unref the archive BFD.
3341 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3342 parent archive.
3343
3344 2012-08-15 Tom Tromey <tromey@redhat.com>
3345
3346 PR python/14387:
3347 * python/py-bpevent.c (create_breakpoint_event_object): Update
3348 comment.
3349 * python/py-event.c (evpy_add_attribute): Update comment.
3350 * python/py-exitedevent.c (create_exited_event_object): Fix
3351 reference counting and error handling.
3352 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3353 Fix reference counting.
3354 * python/py-signalevent.c (create_signal_event_object): Fix
3355 reference counting and error handling.
3356 * python/py-stopevent.c (emit_stop_event): Fix reference
3357 counting.
3358 * python/py-threadevent.c (get_event_thread): Return a
3359 borrowed reference.
3360 * python/py-type.c (convert_field): Fix reference counting.
3361
3362 2012-08-15 Tom Tromey <tromey@redhat.com>
3363
3364 * dwarf2read.c (dwarf_decode_macro_bytes)
3365 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3366 as hash key.
3367
3368 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3369
3370 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3371 stepi, nexti, finish, next, step, jump, and continue commands.
3372 * infrun.c (_initialize_infrun): Update help text for the handle
3373 command.
3374
3375 2012-08-14 Doug Evans <dje@google.com>
3376
3377 * gdbtypes.c (struct extra): Delete, unused.
3378
3379 * gdbtypes.c: Whitespace cleanup.
3380 (address_space_name_to_int): Remove "extern" from definition.
3381 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3382
3383 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3384 TYPE_POINTER_TYPE (type).
3385
3386 2012-08-14 Gary Benson <gbenson@redhat.com>
3387
3388 * solib-svr4.c (svr4_free_library_list): Use free_so.
3389
3390 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3391
3392 * .gitignore: Add go-exp.c.
3393
3394 2012-08-13 Doug Evans <dje@google.com>
3395
3396 * value.c (show_convenience): Tweak comment.
3397 (_initialize_values): Mention convenience functions in the help text
3398 for "show convenience".
3399
3400 2012-08-13 Yao Qi <yao@codesourcery.com>
3401
3402 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3403 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3404 TERNOP_SLICE_COUNT.
3405 * eval.c (evaluate_subexp_standard): Likewise.
3406 * expprint.c (print_subexp_standard): Likewise.
3407 (dump_subexp_body_standard): Likewise.
3408 * parse.c (operator_length_standard): Likewise.
3409
3410 2012-08-13 Yao Qi <yao@codesourcery.com>
3411
3412 * std-operator.def: Remove OP_BITSTRING.
3413 * breakpoint.c (watchpoint_exp_is_const): Update.
3414 * eval.c (evaluate_subexp_standard): Remove handling to
3415 OP_BITSTRING.
3416 * expprint.c (print_subexp_standard): Likewise.
3417 (dump_subexp_body_standard): Likewise.
3418 * parse.c (operator_length_standard): Likewise.
3419 * valops.c (value_bitstring): Remove.
3420 * value.h: Remove the declaration of 'value_bitstring'.
3421
3422 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3423
3424 * linespec.c (find_methods): Remove unused variables `i1' and
3425 `name_len'.
3426 (decode_line_full): Likewise for `arg_start'.
3427
3428 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3429
3430 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3431 (zlib_decompress_section): Likewise for `section_data'.
3432 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3433
3434 2012-08-10 Doug Evans <dje@google.com>
3435
3436 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3437 * NEWS: Document them.
3438 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3439 function/strfns.py.
3440 * python/py-type.c (typy_array_1): New function.
3441 (typy_array): Call it.
3442 (typy_vector): New function.
3443 (type_object_methods): Add "vector".
3444 * python/lib/gdb/function/__init__.py: New file.
3445 * python/lib/gdb/function/strfns.py: New file.
3446
3447 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3448
3449 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3450 for TYPE_FIELD_BITPOS.
3451 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3452
3453 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3454
3455 PR cli/10436:
3456 * common/vec.h (VEC_merge): Define.
3457 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3458 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3459 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3460 * completer.c: Include gdb_signals.h.
3461 (signal_completer): Define.
3462 * completer.h (signal_completer): Add prototype.
3463 * infcmd.c (_initialize_infcmd): Assign the command
3464 completer for "signal" to handle_completer.
3465 * infrun.c: Include completer.h.
3466 (handle_completer): Define.
3467 (_initialize_infrun): Declare a new local variable c. Store the
3468 result of add_com("handle") to it. Assign the command
3469 completer for "handle" to handle_completer.
3470
3471 2012-08-09 Yao Qi <yao@codesourcery.com>
3472
3473 * cli/cli-decode.c (set_cmd_prefix): New.
3474 (lookup_cmd_for_prefixlist): New.
3475 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3476 of each cmd_list_element in *prefixlist.
3477 (add_setshow_cmd_full): set_cmd_prefix.
3478 (add_alias_cmd): Likewise.
3479 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3480 Declare 'auto_boolean_enums'.
3481 * cli/cli-setshow.c: Include "observer.h".
3482 (notify_command_param_changed_p): New.
3483 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3484 Remove 'static'.
3485 (do_setshow_command): Split it to ...
3486 (do_set_command, do_show_command): ... them. New.
3487 (do_set_command): Call observer_notify_command_param_changed if
3488 notify_command_param_changed_p returns true.
3489 (cmd_show_list): Caller update.
3490 * auto-load.c (set_auto_load_cmd): Likewise.
3491 * remote.c (show_remote_cmd): Likewise.
3492 * cli/cli-setshow.h: Update declarations.
3493 * top.c (execute_command): Call do_set_command and do_show_command.
3494
3495 * NEWS: Mention new MI notification.
3496 * mi/mi-interp.c: Declare mi_command_param_changed.
3497 (mi_interpreter_init): Attach mi_command_param_changed to
3498 observer command_param_changed.
3499 (mi_command_param_changed): New.
3500 Remove mi_suppress_breakpoint_notifications.
3501 Define global variable mi_suppress_notification.
3502 (mi_breakpoint_created): Update.
3503 (mi_breakpoint_deleted): Likewise.
3504 (mi_breakpoint_modified): Likewise.
3505 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3506 'gdb-set' and set mi_suppress_notification.
3507 * mi/mi-main.h: (mi_suppress_notification): New struct.
3508
3509 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3510 Jan Kratochvil <jan.kratochvil@redhat.com>
3511
3512 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3513
3514 2012-08-09 Yao Qi <yao@codesourcery.com>
3515
3516 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3517 (skiplist): Move it to skip.c.
3518 (init_cmd_lists): Remove code setting enablebreaklist and
3519 skiplist to NULL.
3520 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3521 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3522 skiplist.
3523 * gdbcmd.h: Likewise.
3524 * skip.c (_initialize_step_skip): Move 'skiplist' from
3525 cli/cli-cmds.c.
3526
3527 2012-08-09 Yao Qi <yao@codesourcery.com>
3528
3529 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3530 * gnu-nat.c, symfile.c: Likewise.
3531
3532 2012-08-08 Aaron Gamble <agamble@google.com>
3533
3534 * utils.c (prompt_for_continue_wait_time): New static global.
3535 (make_command_stats_cleanup): Initialize it.
3536 (report_command_stats): Subtract time waiting for user.
3537 (prompt_for_continue): Track time waiting for user.
3538 (defaulted_query): Track time waiting for user.
3539
3540 2012-08-08 Doug Evans <dje@google.com>
3541
3542 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3543 UNOP_MEMVAL_TYPE.
3544 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3545 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3546 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3547 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3548 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3549 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3550 elt.
3551 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3552 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3553 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3554 (dump_prefix_expression): Handle OP_TYPE.
3555
3556 2012-08-08 Keith Seitz <keiths@redhat.com>
3557
3558 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3559 addr_start.
3560
3561 2012-08-08 Doug Evans <dje@google.com>
3562
3563 * linux-thread-db.c: #include "gdb_vecs.h".
3564 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3565 updated.
3566 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3567 (thread_db_load_search): Use a vector to iterate over path elements.
3568 Handle text appearing after "$pdir".
3569
3570 * gdb_string.h: Moved to ...
3571 * common/gdb_string.h: ... here.
3572 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3573 gdb_string.h and gdb_assert.h.
3574
3575 2012-08-08 Yao Qi <yao@codesourcery.com>
3576
3577 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3578 (tic6x_value_to_register): Likewise.
3579 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3580 and set_gdbarch_value_to_register.
3581
3582 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3583 Jean-Marc Saffroy <saffroy@gmail.com>
3584
3585 PR 11804
3586 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3587 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3588 * gcore.c (gcore_create_callback): New function comment. Add modified
3589 parameter. Only write modified regions. Set SEC_READONLY exactly
3590 according to MODIFIED.
3591 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3592 the passed modified value to FUNC.
3593 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3594 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3595 first. New variables modified and has_anonymous. Parse the lines of
3596 smaps file. Add the passed MODIFIED value to FUNC.
3597 * procfs.c (find_memory_regions_callback): Add the passed modified
3598 value.
3599
3600 2012-08-06 Tom Tromey <tromey@redhat.com>
3601
3602 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3603 (dwarf2_frame_cache): Use it.
3604 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3605 cache initialization constraint.
3606
3607 2012-08-06 Tom Tromey <tromey@redhat.com>
3608
3609 PR python/14386:
3610 * varobj.c (update_dynamic_varobj_children): Don't call
3611 PyIter_Check.
3612
3613 2012-08-06 Tom Tromey <tromey@redhat.com>
3614
3615 PR cli/14392:
3616 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3617
3618 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3619
3620 * NEWS: New entry for 'cd' default parameters.
3621 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3622
3623 2012-08-03 Tom Tromey <tromey@redhat.com>
3624
3625 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3626 return.
3627
3628 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3629
3630 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3631 to attempting lseek/write.
3632 (inf_child_fileio_pread): Likewise for pread.
3633
3634 2012-08-02 Yao Qi <yao@codesourcery.com>
3635
3636 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3637 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3638 add_setshow_zinteger_cmd.
3639 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3640 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3641 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3642 instead of add_setshow_zinteger_cmd.
3643 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3644 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3645 instead of add_setshow_zinteger_cmd.
3646 * frame.c (frame_debug): Add 'unsigned'.
3647 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3648 add_setshow_zinteger_cmd.
3649 * frame.h: Update the declaration of 'frame_debug'.
3650 * gdbtypes.c (overload_debug): Add 'unsigned'.
3651 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3652 add_setshow_zinteger_cmd.
3653 * inferior.h: Update declaration of 'debug_infrun'.
3654 * infrun.c (debug_infrun): Add 'unsigned'.
3655 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3656 add_setshow_zinteger_cmd.
3657 * jit.c (jit_debug): Add 'unsigned'.
3658 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3659 add_setshow_zinteger_cmd.
3660 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3661 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3662 instead of add_setshow_zinteger_cmd.
3663 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3664 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3665 add_setshow_zinteger_cmd.
3666 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3667 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3668 instead of add_setshow_zinteger_cmd.
3669 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3670 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3671 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3672 intead of add_setshow_zinteger_cmd.
3673 * mips-tdep.c (mips_debug): Add 'unsigned'.
3674 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3675 instead of add_setshow_zinteger_cmd.
3676 * monitor.c (monitor_debug): Add 'unsigned'.
3677 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3678 add_setshow_zinteger_cmd.
3679 * observer.c (observer_debug): Add 'unsigned'.
3680 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3681 add_setshow_zinteger_cmd.
3682 * parse.c (expressiondebug): Add 'unsigned'.
3683 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3684 add_setshow_zinteger_cmd.
3685 * record.c (record_debug): Add 'unsigned'.
3686 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3687 add_setshow_zinteger_cmd.
3688 * record.h: Update the declaration of 'record_debug'.
3689 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3690 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3691 add_setshow_zinteger_cmd.
3692 * serial.c (global_serial_debug_p): Add 'unsigned'.
3693 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3694 add_setshow_zinteger_cmd.
3695 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3696 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3697 add_setshow_zinteger_cmd.
3698 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3699 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3700 add_setshow_zinteger_cmd.
3701 * target.c (targetdebug): Add 'unsigned'.
3702 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3703 add_setshow_zinteger_cmd.
3704 * valops.c (overload_debug): Add 'unsigned'.
3705 * varobj.c (varobjdebug): Add 'unsigned'.
3706 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3707 add_setshow_zinteger_cmd.
3708 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3709 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3710 instead of add_setshow_zinteger_cmd.
3711
3712 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3713 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3714 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3715 instead of add_setshow_zinteger_cmd.
3716 * gdbarch.c, gdbarch.h: Re-generated.
3717
3718 2012-08-02 Yao Qi <yao@codesourcery.com>
3719
3720 * nto-tdep.c: Don't include cli/cli-decode.h and
3721 cli/cli-cmds.h.
3722 (_initialize_nto_tdep): Remove.
3723 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3724 Remove field.
3725 Remove macro nto_internal_debugging.
3726
3727 2012-08-01 Richard Henderson <rth@redhat.com>
3728
3729 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3730 (mep-*-*) [gdb_target_obs]: Likewise.
3731
3732 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3733
3734 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3735 linux_get_siginfo_type.
3736
3737 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3738
3739 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3740 AT_ENTRY_POINT.
3741 (call_function_by_hand) <ON_STACK>: Call write_memory with
3742 gdbarch_breakpoint_from_pc, if possible.
3743 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3744 here.
3745
3746 2012-07-31 Yao Qi <yao@codesourcery.com>
3747
3748 * tracepoint.c: Add 'static' for some variables.
3749
3750 2012-07-31 Yao Qi <yao@codesourcery.com>
3751
3752 * go32-nat.c: Declare _initialize_go32_nat.
3753 * ser-go32.c: Declare _initialize_ser_dos.
3754 * top.c (do_chdir_cleanup): Add 'static'.
3755
3756 2012-07-30 Keith Seitz <keiths@redhat.com>
3757
3758 * linespec.c (linespec_lex_number): A number followed
3759 by quotes is a valid number, too.
3760
3761 2012-07-30 Tom Tromey <tromey@redhat.com>
3762
3763 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3764
3765 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3766
3767 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3768 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3769
3770 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3771
3772 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3773 invalid or reevaluated to prevent prevent references to possibly
3774 delete'd type objects being left in the varobj.
3775
3776 2012-07-27 Tom Tromey <tromey@redhat.com>
3777 Jan Kratochvil <jan.kratochvil@redhat.com>
3778
3779 * copying.awk: Print buffer-read-only and vi ro markers.
3780 * copying.c: Rebuild.
3781 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3782 * gdbarch.c, gdbarch.h: Rebuild.
3783 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3784 buffer-read-only and vi ro markers.
3785 * features/arm-with-iwmmxt.c: Rebuild.
3786 * features/arm-with-m-fpa-layout.c: Rebuild.
3787 * features/arm-with-m-vfp-d16.c: Rebuild.
3788 * features/arm-with-m.c: Rebuild.
3789 * features/arm-with-neon.c: Rebuild.
3790 * features/arm-with-vfpv2.c: Rebuild.
3791 * features/arm-with-vfpv3.c: Rebuild.
3792 * features/i386/amd64-avx-linux.c: Rebuild.
3793 * features/i386/amd64-avx.c: Rebuild.
3794 * features/i386/amd64-linux.c: Rebuild.
3795 * features/i386/amd64.c: Rebuild.
3796 * features/i386/i386-avx-linux.c: Rebuild.
3797 * features/i386/i386-avx.c: Rebuild.
3798 * features/i386/i386-linux.c: Rebuild.
3799 * features/i386/i386-mmx-linux.c: Rebuild.
3800 * features/i386/i386-mmx.c: Rebuild.
3801 * features/i386/i386.c: Rebuild.
3802 * features/i386/x32-avx-linux.c: Rebuild.
3803 * features/i386/x32-avx.c: Rebuild.
3804 * features/i386/x32-linux.c: Rebuild.
3805 * features/i386/x32.c: Rebuild.
3806 * features/mips-dsp-linux.c: Rebuild.
3807 * features/mips-linux.c: Rebuild.
3808 * features/mips64-dsp-linux.c: Rebuild.
3809 * features/mips64-linux.c: Rebuild.
3810 * features/rs6000/powerpc-32.c: Rebuild.
3811 * features/rs6000/powerpc-32l.c: Rebuild.
3812 * features/rs6000/powerpc-403.c: Rebuild.
3813 * features/rs6000/powerpc-403gc.c: Rebuild.
3814 * features/rs6000/powerpc-405.c: Rebuild.
3815 * features/rs6000/powerpc-505.c: Rebuild.
3816 * features/rs6000/powerpc-601.c: Rebuild.
3817 * features/rs6000/powerpc-602.c: Rebuild.
3818 * features/rs6000/powerpc-603.c: Rebuild.
3819 * features/rs6000/powerpc-604.c: Rebuild.
3820 * features/rs6000/powerpc-64.c: Rebuild.
3821 * features/rs6000/powerpc-64l.c: Rebuild.
3822 * features/rs6000/powerpc-7400.c: Rebuild.
3823 * features/rs6000/powerpc-750.c: Rebuild.
3824 * features/rs6000/powerpc-860.c: Rebuild.
3825 * features/rs6000/powerpc-altivec32.c: Rebuild.
3826 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3827 * features/rs6000/powerpc-altivec64.c: Rebuild.
3828 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3829 * features/rs6000/powerpc-cell32l.c: Rebuild.
3830 * features/rs6000/powerpc-cell64l.c: Rebuild.
3831 * features/rs6000/powerpc-e500.c: Rebuild.
3832 * features/rs6000/powerpc-e500l.c: Rebuild.
3833 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3834 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3835 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3836 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3837 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3838 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3839 * features/rs6000/powerpc-vsx32.c: Rebuild.
3840 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3841 * features/rs6000/powerpc-vsx64.c: Rebuild.
3842 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3843 * features/rs6000/rs6000.c: Rebuild.
3844 * features/s390-linux32.c: Rebuild.
3845 * features/s390-linux32v1.c: Rebuild.
3846 * features/s390-linux32v2.c: Rebuild.
3847 * features/s390-linux64.c: Rebuild.
3848 * features/s390-linux64v1.c: Rebuild.
3849 * features/s390-linux64v2.c: Rebuild.
3850 * features/s390x-linux64.c: Rebuild.
3851 * features/s390x-linux64v1.c: Rebuild.
3852 * features/s390x-linux64v2.c: Rebuild.
3853 * features/tic6x-c62x-linux.c: Rebuild.
3854 * features/tic6x-c62x.c: Rebuild.
3855 * features/tic6x-c64x-linux.c: Rebuild.
3856 * features/tic6x-c64x.c: Rebuild.
3857 * features/tic6x-c64xp-linux.c: Rebuild.
3858 * features/tic6x-c64xp.c: Rebuild.
3859
3860 2012-07-27 Tom Tromey <tromey@redhat.com>
3861
3862 * c-exp.y (classify_name): Avoid assignment in condition.
3863
3864 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3865
3866 * amd64-windows-tdep.c: Include "frame.h".
3867 (amd64_windows_skip_trampoline_code): New function.
3868 (amd64_windows_init_abi): Add trampoline registration.
3869
3870 2012-07-27 Yao Qi <yao@codesourcery.com>
3871
3872 * tracepoint.c (cur_traceframe_number): Remove.
3873 (set_tfile_traceframe): Remove.
3874 (tfile_trace_find, tfile_fetch_registers): Update callers.
3875 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3876 (tfile_open, tfile_trace_find): Likewise.
3877
3878 2012-07-27 Yao Qi <yao@codesourcery.com>
3879
3880 * thread.c (switch_to_thread): Don't call registers_changed.
3881
3882 2012-07-26 Tom Tromey <tromey@redhat.com>
3883
3884 * Makefile.in (SFILES): Remove objc-exp.y.
3885 (YYFILES): Remove objc-exp.c.
3886 (YYOBJ): Remove objc-exp.o.
3887 (local-maintainer-clean): Don't mention objc-exp.c.
3888 * c-exp.y: Include objc-lang.h.
3889 (%union) <class>: New field.
3890 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3891 (exp): Clone subscript production for OBJC_LBRAC. Add various
3892 Objective C productions.
3893 (msglist, msgarglist, msgarg): New productions.
3894 (array_mod, func_mod, operator): Clone productions for
3895 OBJC_LBRAC.
3896 (parse_string_or_char): Handle '@' strings.
3897 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3898 (classify_name): Check la_name_of_this. Recognize ObjC class
3899 names.
3900 * objc-exp.y: Remove.
3901 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3902 * objc-lang.h (objc_parse, objc_error): Don't declare.
3903
3904 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3905
3906 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3907
3908 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3909
3910 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3911 and decrement.
3912
3913 2012-07-26 Tom Tromey <tromey@redhat.com>
3914
3915 * copying.c: Rebuild.
3916 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3917 'no_class'.
3918
3919 2012-07-26 Tom Tromey <tromey@redhat.com>
3920
3921 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3922 immediate_quit.
3923 (print_objfile_statistics): Likewise.
3924 (maintenance_print_symbols): Likewise.
3925 (maintenance_print_msymbols): Likewise.
3926 (maintenance_print_objfiles): Likewise.
3927 * psymtab.c (print_partial_symbols): Call QUIT.
3928 (maintenance_print_psymbols): Likewise. Don't modify
3929 immediate_quit.
3930 * copying.c (show_copying_command): Don't modify immediate_quit.
3931 (show_warranty_command): Likewise.
3932 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3933
3934 2012-07-26 Keith Seitz <keiths@redhat.com>
3935
3936 * linespec.c (linespec_lexer_lex_number): The input
3937 is also a valid number if the next character is a comma
3938 or colon.
3939
3940 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3941
3942 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3943 configure options.
3944
3945 2012-07-26 Tristan Gingold <gingold@adacore.com>
3946
3947 * machoread.c: Include gdb_bfd.h.
3948
3949 2012-07-26 Tristan Gingold <gingold@adacore.com>
3950
3951 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3952 offset.
3953
3954 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3955
3956 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3957 SIZE to size_t.
3958 (dwarf2_evaluate_loc_desc): Likewise.
3959 (dwarf2_loc_desc_needs_frame): Likewise.
3960 (locexpr_describe_location_1): Likewise.
3961 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3962 size_t.
3963 (struct dwarf2_loclist_baton): Likewise.
3964 * dwarf2read.c (struct dwarf_block): Likewise.
3965 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3966 (decode_locdesc): Expand SIZE and I to size_t.
3967
3968 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3969
3970 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3971
3972 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3973
3974 * doublest.c (convert_doublest_to_floatformat): If the exponent
3975 is too small, treat the value as zero. If the exponent is too
3976 large, treat the value as infinity.
3977
3978 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3979
3980 * configure.ac: Add --enable-lmcheck configure option.
3981 * configure: Regenerate.
3982
3983 2012-07-25 Tom Tromey <tromey@redhat.com>
3984
3985 * NEWS: Mention maint info bfds.
3986 * gdb_bfd.c (all_bfds): New global.
3987 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3988 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3989 New functions.
3990
3991 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3992
3993 * configure.tgt: Add v850*-*-rtems*.
3994
3995 2012-07-25 Tom Tromey <tromey@redhat.com>
3996
3997 * macrotab.c (macro_bcache_str): Remove cast.
3998
3999 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
4000
4001 * linespec.c (linespec_lexer_lex_number): Update comments,
4002 change the return and add check to make sure the input is
4003 the decimal numbers.
4004 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4005 false, call linespec_lexer_lex_string.
4006
4007 2012-07-24 Tom Tromey <tromey@redhat.com>
4008
4009 * symfile.c (symbol_file_add): Don't open BFD twice.
4010
4011 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
4012
4013 * breakpoint.c (create_breakpoint): Store condition for pending
4014 breakpoints.
4015
4016 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
4017
4018 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4019 (m68k_return_value): Handle complex types like structures.
4020 (m68k_svr4_return_value): Likewise.
4021
4022 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
4023
4024 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4025 parameters to bfd_get_section_name.
4026
4027 2012-07-24 Yao Qi <yao@codesourcery.com>
4028
4029 * cli/cli-setshow.c: Handle case 'var_uinteger'
4030 and 'var_zuninteger' together. Handle case 'var_integer' and
4031 'var_zinteger' together.
4032
4033 2012-07-23 Keith Seitz <keiths@redhat.com>
4034
4035 * linespec.c (convert_linespec_to_sal): Don't add
4036 any symbols to the result vector if symbol_to_sal
4037 returns zero.
4038
4039 2012-07-23 Keith Seitz <keiths@redhat.com>
4040
4041 * linespec.c (decode_objc): Record the function name
4042 in the linespec.
4043
4044 2012-07-23 Tom Tromey <tromey@redhat.com>
4045
4046 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4047 counting.
4048 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4049 (map_vmap): Acquire a reference to the BFD.
4050
4051 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
4052
4053 * p-valprint.c (pascal_object_print_value): Replace potentially
4054 unsafe alloca with xmalloc/xfree.
4055 * valops.c (search_struct_method): Likewise.
4056
4057 2012-07-23 Tom Tromey <tromey@redhat.com>
4058
4059 * solib-svr4.c (enable_break): Update.
4060 * bfd-target.h (target_bfd_reopen): Update documentation.
4061
4062 2012-07-23 Tom Tromey <tromey@redhat.com>
4063
4064 * symfile.c (separate_debug_file_exists): Update.
4065 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4066 (reread_symbols): Update.
4067 * elfread.c (build_id_verify): Update.
4068 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4069 bfd_open_maybe_remote.
4070
4071 2012-07-23 Tom Tromey <tromey@redhat.com>
4072
4073 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4074
4075 2012-07-23 Tom Tromey <tromey@redhat.com>
4076
4077 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4078 and 'abfd'.
4079 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4080 and 'abfd'.
4081 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4082 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4083 'abfd'.
4084 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4085 * objfiles.c (allocate_objfile): Acquire a new reference.
4086 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4087 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4088 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4089 a cleanup for 'nbfd'.
4090 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4091 for 'nbfd'.
4092 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4093 make a cleanup for 'abfd'.
4094 (symbol_file_add): Make a BFD cleanup.
4095
4096 2012-07-23 Tom Tromey <tromey@redhat.com>
4097
4098 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4099 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4100 * corelow.c (core_open): Use gdb_bfd_fopen.
4101 * dsrec.c (load_srec): Use gdb_bfd_openr.
4102 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4103 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4104 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4105 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4106 (gdb_bfd_fdopenr): New functions.
4107 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4108 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4109 (gdb_bfd_fdopenr): Declare.
4110 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4111 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4112 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4113 gdb_bfd_openr_next_archived_file.
4114 (macho_check_dsym): Use gdb_bfd_openr.
4115 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4116 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4117 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4118 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4119 gdb_bfd_openr.
4120 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4121 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4122 gdb_bfd_openr_next_archived_file.
4123 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4124 Use gdb_bfd_openr.
4125 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4126 gdb_bfd_openr.
4127 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4128 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4129 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4130 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4131 (symfile_bfd_open): Use gdb_bfd_fopen.
4132 (generic_load): Use gdb_bfd_openr.
4133 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4134
4135 2012-07-23 Tom Tromey <tromey@redhat.com>
4136
4137 * bfd-target.c (target_bfd_reopen): Update.
4138 * cli/cli-dump.c (bfd_openr_with_cleanup)
4139 (bfd_openw_with_cleanup): Update.
4140 * corelow.c (core_open): Update.
4141 * dsrec.c (load_srec): Update.
4142 * exec.c (exec_file_attach): Update.
4143 * gcore.c (create_gcore_bfd): Update.
4144 * gdb_bfd.c (gdb_bfd_ref): Return void.
4145 (gdb_bfd_open): Update.
4146 * gdb_bfd.h (gdb_bfd_ref): Return void.
4147 Update comments.
4148 * jit.c (jit_bfd_try_read_symtab): Update.
4149 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4150 * machoread.c (macho_symfile_read_all_oso): Update.
4151 (macho_check_dsym): Update.
4152 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4153 * remote-m32r-sdi.c (m32r_load): Update.
4154 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4155 * rs6000-nat.c (add_vmap): Update.
4156 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4157 Update.
4158 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4159 * solib-spu.c (spu_bfd_open): Update.
4160 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4161 * spu-linux-nat.c (spu_bfd_open): Update.
4162 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4163 (generic_load): Update.
4164 * windows-nat.c (windows_make_so): Update.
4165
4166 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4167
4168 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4169
4170 2012-07-20 Jeff Kenton <jkenton@tilera.com>
4171
4172 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4173 SIGTRAMP_FRAME unwinding.
4174
4175 2012-07-20 Doug Evans <dje@google.com>
4176
4177 * NEWS: Document new options "set/show use-deprecated-index-sections",
4178 and delete reference to --use-deprecated-index-sections.
4179 * symfile.h (use_deprecated_index_sections): Delete.
4180 * dwarf2read.c (use_deprecated_index_sections): Make static.
4181 (read_index_from_section): Update wording of how to load
4182 deprecated index sections.
4183 (_initialize_dwarf2_read): New options
4184 "set/show use-deprecated-index-sections".
4185 * main.c (captured_main): Delete --use-deprecated-index-sections.
4186
4187 2012-07-20 Pedro Alves <palves@redhat.com>
4188
4189 PR threads/11692
4190 PR gdb/12203
4191
4192 * infrun.c (handle_inferior_event) <new thread>: Don't special
4193 case minus_one_ptid.
4194 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4195 * linux-thread-db.c (thread_get_info_callback): Don't return early
4196 if the thread is zombie.
4197 (thread_from_lwp): Change return type to void. Rewrite stale
4198 comment.
4199 (attach_thread): Don't return early if the thread is zombie,
4200 instead set its "dying" flag.
4201 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4202 (find_new_threads_callback): Don't return early if the thread is
4203 zombie.
4204
4205 2012-07-20 Pedro Alves <palves@redhat.com>
4206
4207 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4208 * target.c (target_wait): Likewise.
4209 (str_comma_list_concat_elem, do_option, target_options_to_string):
4210 New functions.
4211 * target.h (target_options_to_string): Declare.
4212
4213 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4214 Tom Tromey <tromey@redhat.com>
4215
4216 * dwarf2read.c (dwarf_decode_macros)
4217 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4218 DW_MACRO_GNU_transparent_include_alt>: New cases.
4219 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4220 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4221
4222 2012-07-20 Tom Tromey <tromey@redhat.com>
4223
4224 * dwarf2read.c (try_open_dwo_file): Don't call
4225 gdb_bfd_stash_filename.
4226
4227 2012-07-20 Pedro Alves <palves@redhat.com>
4228
4229 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4230 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4231 (i386_process_record): Tweak description comments.
4232
4233 2012-07-20 Pedro Alves <palves@redhat.com>
4234
4235 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4236 (i386_process_record): Use record_read_memory.
4237 * record.c (record_read_memory): New function.
4238 (record_arch_list_add_mem, record_exec_insn): Use
4239 record_read_memory.
4240 * record.h (record_read_memory): Declare.
4241
4242 2012-07-20 Yao Qi <yao@codesourcery.com>
4243
4244 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4245 NULL for xfree.
4246
4247 2012-07-19 Pedro Alves <palves@redhat.com>
4248
4249 * record.c (record_resume): Ask the target beneath to report all
4250 signals.
4251
4252 2012-07-19 Doug Evans <dje@google.com>
4253
4254 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4255 there's no section at address zero.
4256 (dwarf2_record_block_ranges): Ditto.
4257
4258 2012-07-19 Yao Qi <yao@codesourcery.com>
4259
4260 * command.h, remote.c: Fix a typo in comment.
4261
4262 2012-07-19 Tom Tromey <tromey@redhat.com>
4263
4264 PR exp/13206:
4265 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4266 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4267 OP_DECLTYPE>: New cases.
4268 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4269 (type_exp): Add new productions.
4270 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4271 and decltype.
4272 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4273 New case.
4274 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4275 OP_DECLTYPE>: New case.
4276 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4277 New case.
4278 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4279 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4280
4281 2012-07-19 Tom Tromey <tromey@redhat.com>
4282
4283 * c-exp.y (enum token_flags): New.
4284 (struct token) <cxx_only>: Remove.
4285 <flags>: New field.
4286 (tokentab3, tokentab2, ident_tokens): Update.
4287 (lex_one_token): Update. Handle FLAG_SHADOW.
4288
4289 2012-07-19 Tom Tromey <tromey@redhat.com>
4290
4291 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4292 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4293 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4294 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4295 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4296 type_exp production where appropriate.
4297 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4298 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4299 <UNOP_MEMVAL_TYPE>: New case.
4300 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4301 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4302 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4303 <UNOP_MEMVAL_TYPE>: New case.
4304 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4305 UNOP_REINTERPRET_CAST>: Update.
4306 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4307 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4308 UNOP_REINTERPRET_CAST>: Update.
4309 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4310 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4311 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4312 constants.
4313
4314 2012-07-19 Yao Qi <yao@codesourcery.com>
4315 Jan Kratochvil <jan.kratochvil@redhat.com>
4316
4317 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4318 and case 'var_optional_filename' together.
4319 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4320 instead of add_setshow_optional_filename_cmd for setshow command
4321 'args'. Set completer for 'set args'.
4322
4323 2012-07-18 Doug Evans <dje@google.com>
4324
4325 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4326 * common/gdb_vecs.c: New file, contents from utils.c.
4327 * common/host-defs.h: New file, contents from defs.h.
4328 * utils.h: New file, contents from defs.h.
4329 * defs.h: Move all declarations of objects defined in utils.c
4330 to utils.h (except QUIT() and related).
4331 #include "utils.h", "host-defs.h".
4332 * probe.h (probe_p): Move here from gdb_vecs.h.
4333 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4334 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4335 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4336 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4337 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4338 (COMMON_OBS): Add gdb_vecs.o.
4339 (gdb_vecs.o): New rule.
4340
4341 2012-07-18 Keith Seitz <keiths@redhat.com>
4342
4343 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4344 parameter. If non-zero, use SYMNAME as the canonical name
4345 for the SaL.
4346 Update all callers.
4347 (convert_linespec_to_sals): Use add_sal_to_sals for
4348 expressions, too.
4349 (decode_line_full): No need to "fill in missing canonical names"
4350 anymore. Simply make cleanups for the allocated names.
4351
4352 2012-07-18 Keith Seitz <keiths@redhat.com>
4353
4354 * linespec.c (struct linespec): Constify expression,
4355 source_filename, function_name, and label_name.
4356 (symbol_not_found_error): Make all parameters const.
4357 (linespec_parser_delete): No need to check for NULL
4358 when using xfree. Cast const char * to char * for xfree.
4359
4360 2012-07-18 Keith Seitz <keiths@redhat.com>
4361
4362 * breakpoint.c (invalid_thread_id_error): New function.
4363 (find_condition_and_thread): Use invalid_thread_id_error.
4364 (watch_command_1): Likewise.
4365
4366 2012-07-18 Tom Tromey <tromey@redhat.com>
4367
4368 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4369 * contrib/cc-with-tweaks.sh: New file.
4370
4371 2012-07-18 Tom Tromey <tromey@redhat.com>
4372
4373 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4374 (locate_dwz_sections): Recognize .gdb_index.
4375 (create_cus_from_index_list): New function.
4376 (create_cus_from_index): Use it. Handle .dwz data.
4377 (read_index_from_section): New function, extracted from
4378 dwarf2_read_index.
4379 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4380 if needed.
4381
4382 2012-07-18 Tom Tromey <tromey@redhat.com>
4383
4384 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4385 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4386 <is_dwz>: New field.
4387 (struct dwz_file): New.
4388 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4389 (locate_dwz_sections, dwarf2_get_dwz_file)
4390 (get_abbrev_section_for_cu): New functions.
4391 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4392 (read_and_check_type_unit_head): Add abbrev_section argument.
4393 (create_debug_types_hash_table): Update.
4394 (init_cutu_and_read_dies): Use proper abbrev section.
4395 (init_cutu_and_read_dies_no_follow): Likewise.
4396 (set_partial_user): Do nothing if PST==NULL.
4397 (read_comp_units_from_section): New function.
4398 (create_all_comp_units): Use it.
4399 (scan_partial_symbols, partial_die_parent_scope): Update.
4400 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4401 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4402 (find_partial_die): Add offset_in_dwz argument. Update.
4403 (guess_partial_die_structure_name, fixup_partial_die): Update.
4404 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4405 DW_FORM_GNU_strp_alt.
4406 (read_indirect_string_from_dwz): New function.
4407 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4408 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4409 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4410 (follow_die_offset): Add offset_in_dwz argument.
4411 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4412 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4413 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4414 Handle new macro forms.
4415 (dwarf_decode_macros): Update.
4416 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4417 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4418 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4419 (create_debug_types_hash_table): Use correct abbrev section.
4420 (get_debug_line_section): New function.
4421 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4422 (process_full_comp_unit): Pass 'required' argument to
4423 end_symtab_get_static_block.
4424 * buildsym.h (end_symtab_get_static_block): Update.
4425 * buildsym.c (end_symtab_get_static_block): Add 'required'
4426 argument.
4427 (end_symtab, end_expandable_symtab): Update.
4428
4429 2012-07-18 Tom Tromey <tromey@redhat.com>
4430
4431 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4432 (pagesize): Remove.
4433 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4434 (zlib_decompress_section): Remove.
4435 (dwarf2_read_section): Use gdb_bfd_map_section.
4436 (munmap_section_buffer): Remove.
4437 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4438 munmap_section_buffer.
4439 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4440 (struct gdb_bfd_section_data): New.
4441 (free_one_bfd_section): New function.
4442 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4443 (get_section_descriptor, zlib_decompress_section)
4444 (gdb_bfd_map_section): New functions.
4445 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4446
4447 2012-07-18 Tom Tromey <tromey@redhat.com>
4448
4449 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4450
4451 2012-07-18 Tom Tromey <tromey@redhat.com>
4452
4453 * gdb_bfd.c (struct gdb_bfd_data): New.
4454 (gdb_bfd_cache): New global.
4455 (struct gdb_bfd_cache_search): New.
4456 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4457 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4458 * gdb_bfd.h (gdb_bfd_open): Declare.
4459
4460 2012-07-18 Tom Tromey <tromey@redhat.com>
4461
4462 * utils.c (make_cleanup_bfd_unref): Rename from
4463 make_cleanup_bfd_close.
4464 * defs.h (make_cleanup_bfd_unref): Rename from
4465 make_cleanup_bfd_close.
4466 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4467 (bfd_openw_with_cleanup): Update.
4468 * corelow.c (core_open): Update.
4469 * dsrec.c (load_srec): Update.
4470 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4471 * remote-m32r-sdi.c (m32r_load): Update.
4472 * remote-mips.c (mips_load_srec): Update.
4473 (pmon_load_fast): Update.
4474 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4475 Update.
4476 (darwin_bfd_open): Update.
4477 * solib.c (solib_bfd_fopen): Update.
4478 * symfile-mem.c (symbol_file_add_from_memory): Update.
4479 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4480 (symfile_bfd_open): Update.
4481 (generic_load): Update.
4482
4483 2012-07-18 Tom Tromey <tromey@redhat.com>
4484
4485 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4486 (pmon_load_fast): Likewise.
4487 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4488 (m32r_upload_command): Likewise.
4489 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4490 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4491 Use make_cleanup_bfd_close.
4492
4493 2012-07-18 Tom Tromey <tromey@redhat.com>
4494
4495 * symfile.c (symfile_bfd_open): Don't copy name. Call
4496 gdb_bfd_stash_filename.
4497 (load_command): Open the new BFD before freeing the old.
4498 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4499 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4500 Call gdb_bfd_stash_filename.
4501 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4502 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4503 gdb_bfd_stash_filename.
4504 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4505 Free found_pathname.
4506 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4507 gdb_bfd_stash_filename.
4508 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4509 * machoread.c (macho_add_oso_symfile): Call
4510 gdb_bfd_stash_filename.
4511 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4512 gdb_bfd_stash_filename.
4513 (macho_check_dsym): Don't copy filename. Call
4514 gdb_bfd_stash_filename.
4515 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4516 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4517 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4518 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4519 * exec.c (exec_close): Don't free the BFD's filename.
4520 (exec_file_attach): Don't copy the filename. Call
4521 gdb_bfd_stash_filename.
4522 * corelow.c (core_close): Don't free the BFD's filename.
4523 (core_open): Call gdb_bfd_stash_filename.
4524 * corefile.c (reopen_exec_file): Remove #if 0 code.
4525 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4526 pathname.
4527 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4528
4529 2012-07-18 Tom Tromey <tromey@redhat.com>
4530
4531 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4532 gdb_bfd_unref.
4533 (free_dwo_file): Use gdb_bfd_unref.
4534 * cli/cli-dump.c: Include gdb_bfd.h.
4535 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4536 (bfd_openr_with_cleanup): Likewise.
4537 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4538 gdb_bfd_unref.
4539 * utils.c: Include gdb_bfd.h.
4540 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4541 * symfile.c: Include gdb_bfd.h.
4542 (separate_debug_file_exists): Use gdb_bfd_unref.
4543 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4544 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4545 (generic_load): Use gdb_bfd_ref.
4546 (reread_symbols): Use gdb_bfd_unref.
4547 * symfile-mem.c: Include gdb_bfd.h.
4548 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4549 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4550 * solib.c: Include gdb_bfd.h.
4551 (solib_bfd_fopen): Use gdb_bfd_ref.
4552 (solib_bfd_open): Use gdb_bfd_unref.
4553 (free_so_symbols): Use gdb_bfd_unref.
4554 (reload_shared_libraries_1): Use gdb_bfd_unref.
4555 * solib-spu.c: Include gdb_bfd.h.
4556 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4557 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4558 gdb_bfd_unref.
4559 * solib-frv.c: Include gdb_bfd.h.
4560 (enable_break2): Use gdb_bfd_unref.
4561 * solib-dsbt.c: Include gdb_bfd.h.
4562 (enable_break2): Use gdb_bfd_unref.
4563 * solib-darwin.c: Include gdb_bfd.h.
4564 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4565 gdb_bfd_unref.
4566 (darwin_bfd_open): Use gdb_bfd_unref.
4567 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4568 * remote-mips.c: Include gdb_bfd.h.
4569 (mips_load_srec): Use gdb_bfd_ref.
4570 (pmon_load_fast): Use gdb_bfd_ref.
4571 * remote-m32r-sdi.c: Include gdb_bfd.h.
4572 (m32r_load): Use gdb_bfd_ref.
4573 * record.c: Include gdb_bfd.h.
4574 (record_save_cleanups): Use gdb_bfd_unref.
4575 (cmd_record_save): Use gdb_bfd_unref.
4576 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4577 gdb_bfd_unref.
4578 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4579 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4580 * objfiles.c: Include gdb_bfd.h.
4581 (free_objfile): Use gdb_bfd_unref.
4582 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4583 gdb_bfd.c.
4584 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4585 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4586 (macho_check_dsym): Likewise.
4587 * m32r-rom.c: Include gdb_bfd.h.
4588 (m32r_load): Use gdb_bfd_ref.
4589 (m32r_upload_command): Use gdb_bfd_ref.
4590 * jit.c: Include gdb_bfd.h.
4591 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4592 * gdb_bfd.h: New file.
4593 * gdb_bfd.c: New file.
4594 * gcore.c: Include gdb_bfd.h.
4595 (create_gcore_bfd): Use gdb_bfd_ref.
4596 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4597 (gcore_command): Use gdb_bfd_unref.
4598 * exec.c: Include gdb_bfd.h.
4599 (exec_close): Use gdb_bfd_unref.
4600 (exec_close_1): Use gdb_bfd_unref.
4601 (exec_file_attach): Use gdb_bfd_ref.
4602 * elfread.c: Include gdb_bfd.h.
4603 (build_id_verify): Use gdb_bfd_unref.
4604 * dsrec.c: Include gdb_bfd.h.
4605 (load_srec): Use gdb_bfd_ref.
4606 * corelow.c: Include gdb_bfd.h.
4607 (core_close): Use gdb_bfd_unref.
4608 (core_open): Use gdb_bfd_ref.
4609 * bfd-target.c: Include gdb_bfd.h.
4610 (target_bfd_xclose): Use gdb_bfd_unref.
4611 (target_bfd_reopen): Use gdb_bfd_ref.
4612 * Makefile.in (SFILES): Add gdb_bfd.c.
4613 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4614 (COMMON_OBS): Add gdb_bfd.o.
4615
4616 2012-07-18 Keith Seitz <keiths@redhat.com>
4617
4618 * breakpoint.c (find_condition_and_thread): Initialize
4619 TASK and REST.
4620 (create_breakpiont): find_condition_and_thread will now
4621 initialize COND_STRING, THREAD, and REST (and TASK).
4622 (addr_string_to_sals): Likewise.
4623
4624 2012-07-18 Pedro Alves <palves@redhat.com>
4625
4626 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4627 Pull the single step breakpoints out of the target.
4628
4629 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4630
4631 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4632 * stap-probe.c (compile_probe_arg): Likewise.
4633
4634 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4635
4636 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4637 (elf_compile_to_ax): Likewise.
4638 * infrun.c (insert_exception_resume_from_probe): Likewise.
4639 (check_exception_resume): Remove `objfile' variable.
4640 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4641 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4642 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4643 (compare_entries): Rename to...
4644 (compare_probes): ...this. Adjust function to work with
4645 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4646 respectively.
4647 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4648 `VEC (probe_p) *'.
4649 (print_ui_out_info): Adjust argument to be `struct probe *'.
4650 (info_probes_for_ops): Adjust internal computations to use
4651 `VEC (probe_p) *'.
4652 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4653 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4654 gen_info_probes_table_values>: Remove `objfile' argument.
4655 (struct probe) <objfile>: New field.
4656 (find_probe_by_pc): Remove `objfile' argument.
4657 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4658 (stap_get_probe_argument_count): Likewise.
4659 (stap_get_arg): Likewise.
4660 (stap_evaluate_probe_argument): Likewise.
4661 (stap_compile_to_ax): Likewise.
4662 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4663 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4664 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4665 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4666 sym_compile_to_ax>: Likewise.
4667
4668 2012-07-18 Terry Guo <terry.guo@arm.com>
4669
4670 PR 14329
4671 * defs.h (GDB_MI_MSG_WIDTH): New.
4672 * ser_base (ser_base_read_error_fd): New function.
4673 (do_ser_base_readchar): Poll error file descriptor as well as
4674 standard output.
4675 (generic_readchar): Refactor error handling.
4676
4677 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4678
4679 * NEWS: Create a new section for the next release branch.
4680 Rename the section of the current branch, now that it has
4681 been cut.
4682
4683 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4684
4685 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4686 * version.in: Bump version to 7.5.50.20120718-cvs.
4687
4688 2012-07-17 Keith Seitz <keiths@redhat.com>
4689
4690 * linespec.c (linespec_parse_line_offset): Make parameter
4691 const.
4692
4693 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4694
4695 PR 11914
4696 * f-valprint.c (info_common_command): New variable frame_id.
4697 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4698 * printcmd.c (print_variable_and_value): Extend function comment.
4699 Add comment for invalidated FRAME.
4700 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4701 FI form FRAME_ID after each print_frame_local_vars.
4702 (struct print_variable_and_value_data): Change frame to frame_id.
4703 (do_print_variable_and_value): New variable frame, initialize it from
4704 p->frame_id. Add comment for invalidated FRAME.
4705 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4706 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4707 for invalidated FRAME.
4708
4709 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4710 Pedro Alves <palves@redhat.com>
4711
4712 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4713 loop.
4714
4715 2012-07-16 Tom Tromey <tromey@redhat.com>
4716
4717 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4718
4719 2012-07-15 Doug Evans <dje@google.com>
4720
4721 * dwarf2read.c (stmt_list_hash): New struct.
4722 (type_unit_group): Embed "per_cu" member, remove pointer.
4723 New union member "t", move member "tus" into it, all uses updated.
4724 New member "hash", replaces member "line_offset, all uses updated.
4725 (quick_file_names): Replace member "offset" with "hash", all uses
4726 updated.
4727 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4728 (hash_file_name_entry, eq_file_name_entry): Call them.
4729 (hash_type_unit_group, eq_type_unit_group): Ditto.
4730 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4731 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4732 (dw2_get_file_names): Update.
4733 (create_type_unit_group): Replace "per_cu" arg with "cu".
4734 All callers updated. Fix "quick" (.gdb_index) handling.
4735 (get_type_unit_group): Replace "per_cu" arg with "cu".
4736 All callers updated.
4737 (build_type_unit_groups): Don't reset tu_stats.
4738
4739 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4740 "tab_cur_size". Change member "tab" to be a htab_t.
4741 (create_filename_seen_cache): Update.
4742 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4743 (filename_seen): Update.
4744
4745 2012-07-13 Doug Evans <dje@google.com>
4746
4747 * symtab.c (filename_seen): Update comment.
4748
4749 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4750 Doug Evans <dje@google.com>
4751
4752 * buildsym.c (end_symtab_1): Split it to ...
4753 (end_symtab_get_static_block): ... this ...
4754 (end_symtab_from_static_block): ... and this function.
4755 (end_symtab, end_expandable_symtab): Call them.
4756 * buildsym.h (end_symtab_get_static_block)
4757 (end_symtab_from_static_block): New declarations.
4758 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4759 Set its valid CU ranges.
4760
4761 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4762
4763 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4764 DW_OP_GNU_parameter_ref.
4765
4766 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4767
4768 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4769 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4770
4771 2012-07-13 Doug Evans <dje@google.com>
4772
4773 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4774 (filename_seen_cache): New struct.
4775 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4776 (create_filename_seen_cache): New function.
4777 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4778 (filename_seen): Delete arg "first". New arg "cache". All callers
4779 updated.
4780 (output_source_filename_data): New struct.
4781 (output_source_filename): Delete arg "first". New arg "data".
4782 All callers updated.
4783 (sources_info): Delete local "first". New locals "data", "cleanups".
4784 Rewrite to use filename_seen_cache.
4785 (add_partial_filename_data): Delete member "first". New member
4786 "filename_seen_cache". All uses updated.
4787 (make_source_files_completion_list): Rewrite to use
4788 filename_seen_cache.
4789
4790 2012-07-12 Doug Evans <dje@google.com>
4791
4792 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4793
4794 2012-07-10 Doug Evans <dje@google.com>
4795
4796 PR gdb/13498
4797 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4798 all_type_unit_groups, type_unit_groups, tu_stats.
4799 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4800 All uses updated. Add type_unit_group to union "s".
4801 (type_unit_group): New struct.
4802 (IS_TYPE_UNIT_GROUP): New macro.
4803 (abbrev_table): Delete unused member "section".
4804 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4805 (dw2_get_cu): Assert not used with type_unit_group.
4806 (dw2_get_primary_cu): New function.
4807 (dw2_build_type_unit_groups_reader): New function.
4808 (dw2_build_type_unit_groups): New function.
4809 (dw2_get_file_names): Assert not called on type units.
4810 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4811 Redo loop to iterate over type unit groups instead of type units.
4812 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4813 (read_abbrev_offset): New function.
4814 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4815 updated.
4816 (create_partial_symtab): New function.
4817 (process_psymtab_comp_unit_reader): Assert not used with type units.
4818 Call create_partial_symtab.
4819 (process_psymtab_type_unit): Delete.
4820 (hash_type_unit_group, eq_type_unit_group): New functions.
4821 (allocate_type_unit_groups_table): New function.
4822 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4823 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4824 (create_type_unit_group, get_type_unit_group): New functions.
4825 (tu_abbrev_offset): New struct.
4826 (sort_tu_by_abbrev_offset): New function.
4827 (add_type_unit_group_to_table): New function.
4828 (build_type_unit_groups): New function.
4829 (build_type_psymtabs_reader): New function.
4830 (build_type_psymtab_dependencies): New function.
4831 (build_type_psymtabs): Rewrite.
4832 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4833 is seen in a type unit.
4834 (process_queue): Move symtab expansion debugging printfs here.
4835 Call process_full_type_unit for type units.
4836 (compute_symtab_includes): Assert not called for type units.
4837 (process_cu_includes): Don't call compute_symtab_includes for
4838 type units.
4839 (process_full_type_unit): New function.
4840 (process_imported_unit_die): Flag an error if called for type units.
4841 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4842 updated. Assert not called for type units.
4843 (read_file_scope): Call dwarf2_start_symtab.
4844 (setup_type_unit_groups): New function.
4845 (read_type_unit_scope): Rewrite.
4846 (abbrev_table_read_table): Initialize abbrev_table->offset.
4847 (abbrev_table_free_cleanup): New function.
4848 (dwarf2_start_symtab): New function.
4849 (load_full_type_unit): Assert not called for type unit groups.
4850 * buildsym.c (finish_block_internal): New arg "expandable".
4851 All callers updated.
4852 (start_symtab): Move most contents to ...
4853 (restart_symtab): ... here. New function.
4854 (reset_symtab_globals): New function.
4855 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4856 Call reset_symtab_globals.
4857 (end_symtab, end_expandable_symtab): New functions.
4858 (set_missing_symtab, augment_type_symtab): New functions.
4859 * buildsym.h (end_expandable_symtab): Declare.
4860 (augment_type_symtab, restart_symtab): Declare.
4861 * psympriv.h (struct partial_symtab): New member "anonymous".
4862 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4863 anonymous psymtabs.
4864 (read_psymtabs_with_filename): Ditto.
4865 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4866 (expand_symtabs_matching_via_partial): Ditto.
4867 (dump_psymtab): Update.
4868 * dictionary.c (dict_add_pending): New function.
4869 * dictionary.h (dict_add_pending): Declare.
4870
4871 2012-07-09 Doug Evans <dje@google.com>
4872
4873 * buildsym.c (start_subfile): Remove unnecessary check for
4874 name == NULL.
4875
4876 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4877
4878 * dwarf2read.c (load_full_type_unit): Simplify.
4879
4880 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4881 to struct signatured_type **. All uses updated.
4882
4883 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4884 All callers updated.
4885
4886 2012-07-09 Tom Tromey <tromey@redhat.com>
4887
4888 * c-exp.y (check_parameter_typelist): New function.
4889 (parameter_typelist): Call it.
4890 * eval.c (make_params): Handle '(void)' case.
4891 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4892 '(void)' case.
4893
4894 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4895
4896 * common/linux-ptrace.c: Include gdb_assert.h.
4897 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4898 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4899 stdint.h.
4900 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4901 functions.
4902 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4903 * linux-nat.c (linux_child_post_attach)
4904 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4905
4906 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4907
4908 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4909 nptl <2.7 bug workaround for core files.
4910
4911 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4912
4913 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4914 clearing.
4915 (save_siginfo): Remove.
4916 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4917 call.
4918 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4919 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4920 * linux-nat.h (struct lwp_info): Remove field siginfo.
4921
4922 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4923
4924 Code cleanup for the next patch.
4925 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4926 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4927 call for it.
4928 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4929 (ia64_linux_stopped_data_address):
4930 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4931 the return value.
4932 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4933 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4934 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4935 call for it.
4936
4937 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4938
4939 PR 14321
4940 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4941 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4942
4943 2012-07-06 Tom Tromey <tromey@redhat.com>
4944
4945 * c-exp.y (DOTDOTDOT): New token.
4946 (func_mod, exp): Use parameter_typelist.
4947 (parameter_typelist): New production.
4948 (tokentab3): Add "..." token.
4949 * eval.c (make_params): Handle varargs.
4950 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4951 varargs.
4952
4953 2012-07-06 Tom Tromey <tromey@redhat.com>
4954
4955 PR exp/9608:
4956 * c-exp.y (%union) <tvec>: Change type.
4957 (func_mod): Now uses <tvec> type.
4958 (exp): Update for tvec change.
4959 (direct_abs_decl): Push the typelist.
4960 (func_mod): Return a typelist.
4961 (nonempty_typelist): Update for tvec change.
4962 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4963 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4964 * parse.c (pop_type_list): New function.
4965 (push_typelist): New function.
4966 (follow_types): Handle tp_function_with_arguments.
4967 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4968 (enum type_pieces) <tp_function_with_arguments>: New constant.
4969 (union type_stack_elt) <typelist_val>: New field.
4970 (push_typelist): Declare.
4971
4972 2012-07-06 Tom Tromey <tromey@redhat.com>
4973
4974 * c-exp.y (%union) <type_stack>: New field.
4975 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4976 (ptr_operator_ts): New production.
4977 (ptype): Update.
4978 * parse.c (type_stack_reserve): New function.
4979 (check_type_stack_depth): Use it.
4980 (pop_type_stack, append_type_stack, push_type_stack)
4981 (get_type_stack, type_stack_cleanup): New functions.
4982 (follow_types): Handle tp_type_stack.
4983 (_initialize_parse): Simplify initialization.
4984 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4985 constant.
4986 (union type_stack_elt) <stack_val>: New field.
4987 (get_type_stack, append_type_stack, push_type_stack)
4988 (type_stack_cleanup): Declare.
4989
4990 2012-07-06 Tom Tromey <tromey@redhat.com>
4991
4992 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4993 Remove.
4994 (struct type_stack): New.
4995 * parse.c (type_stack, type_stack_size, type_stack_depth):
4996 Remove.
4997 (type_stack): New global.
4998 (parse_exp_in_context, check_type_stack_depth)
4999 (insert_into_type_stack, insert_type, push_type, push_type_int)
5000 (insert_type_address_space, pop_type, pop_type_int)
5001 (_initialize_parse): Update.
5002
5003 2012-07-06 Tom Tromey <tromey@redhat.com>
5004
5005 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5006 Remove %type.
5007
5008 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5009
5010 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5011
5012 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5013 Jan Kratochvil <jan.kratochvil@redhat.com>
5014
5015 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5016 alloca with xmalloc/xfree.
5017
5018 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5019
5020 * MAINTAINERS (Write After Approval): Add myself to the list.
5021
5022 2012-07-05 Doug Evans <dje@google.com>
5023
5024 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5025
5026 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5027
5028 * ax-gdb.c (cli/cli-utils.h): New include.
5029 (linespec.h): Ditto.
5030 (agent_eval_command_one): New function.
5031 (agent_command_1): Ditto.
5032 (agent_command): Call function agent_command_1.
5033 (agent_eval_command): Ditto.
5034 (_initialize_ax_gdb): Change help for "maint agent"
5035 and "maint agent-eval".
5036
5037 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5038
5039 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5040 * cli/cli-utils.c (check_for_argument): New function.
5041 * cli/cli-utils.h (check_for_argument): Ditto.
5042
5043 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5044
5045 * NEWS: Mention x32 ABI support.
5046
5047 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5048
5049 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5050 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5051
5052 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5053 and pc_regnum_from_eax to -1. Update SP regnum from
5054 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5055 needed.
5056
5057 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5058 pc_regnum_from_eax.
5059
5060 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5061
5062 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5063 * dwarf2expr.h: Include gdbtypes.h.
5064 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5065 these forward declarations.
5066 (cu_offset, sect_offset): Move these ...
5067 * gdbtypes.h: Remove include dwarf2expr.h.
5068 (cu_offset, sect_offset): ... here.
5069
5070 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5071
5072 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5073 (amd64_linux_sigtramp_code): This.
5074 (amd64_x32_linux_sigtramp_code): New.
5075 (LINUX_SIGTRAMP_LEN): Updated.
5076 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5077
5078 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5079
5080 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5081
5082 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5083
5084 * config.in: Regenerate.
5085 * configure: Regenerate.
5086 * configure.ac: Remove check for gnu/libc-version.h.
5087 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5088 gnu/libc-version.h.
5089 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5090 variables libc_version, libc_major and libc_minor. Replace sscanf by
5091 inferior_has_bug. Extend the comment.
5092
5093 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5094
5095 * linux-thread-db.c (inferior_has_bug): New function.
5096 (thread_db_find_new_threads_silently): Return boolean as checked by
5097 inferior_has_bug, describe it in the comments.
5098 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5099 earlier. Abort the initialization if it returned non-zero.
5100 (thread_db_new_objfile): Exclude debug files.
5101 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5102 if UNTIL_NO_NEW,
5103
5104 2012-07-02 Doug Evans <dje@google.com>
5105
5106 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5107 related to queue management.
5108
5109 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5110 instead of "debug dwarf2-die" in debugging printfs.
5111 (create_debug_info_hash_table_reader): Ditto.
5112 (create_debug_info_hash_table): Ditto.
5113 (init_dwo_file): Ditto.
5114 (init_cutu_and_read_dies): Add debugging printf.
5115 (init_cutu_and_read_dies_no_follow): Ditto.
5116 (process_psymtab_comp_unit_reader): Ditto.
5117
5118 2012-07-02 Stan Shebs <stan@codesourcery.com>
5119
5120 Add target-side support for dynamic printf.
5121 * NEWS: Mention the additional style.
5122 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5123 (struct bp_location): New field cmd_bytecode.
5124 * breakpoint.c: Include format.h.
5125 (disconnected_dprintf): New global.
5126 (parse_cmd_to_aexpr): New function.
5127 (build_target_command_list): New function.
5128 (insert_bp_location): Call it.
5129 (remove_breakpoints_pid): Skip dprintf breakpoints.
5130 (print_one_breakpoint_location): Ditto.
5131 (dprintf_style_agent): New global.
5132 (dprintf_style_enums): Add dprintf_style_agent.
5133 (update_dprintf_command_list): Add agent case.
5134 (agent_printf_command): New function.
5135 (_initialize_breakpoint): Add new commands.
5136 * common/ax.def (printf): New bytecode.
5137 * ax.h (ax_string): Declare.
5138 * ax-gdb.h (gen_printf): Declare.
5139 * ax-gdb.c: Include cli-utils.h, format.h.
5140 (gen_printf): New function.
5141 (maint_agent_print_command): New function.
5142 (_initialize_ax_gdb): Add maint agent-printf command.
5143 * ax-general.c (ax_string): New function.
5144 (ax_print): Add printf disassembly.
5145 * Makefile.in (SFILES): Add format.c
5146 (COMMON_OBS): Add format.o.
5147 * common/format.h: New file.
5148 * common/format.c: New file.
5149 * printcmd.c: Include format.h.
5150 (ui_printf): Call parse_format_string.
5151 * remote.c (remote_state): New field breakpoint_commands.
5152 (PACKET_BreakpointCommands): New enum.
5153 (remote_breakpoint_commands_feature): New function.
5154 (remote_protocol_features): Add new BreakpointCommands entry.
5155 (remote_can_run_breakpoint_commands): New function.
5156 (remote_add_target_side_commands): New function.
5157 (remote_insert_breakpoint): Call it.
5158 (remote_insert_hw_breakpoint): Ditto.
5159 (_initialize_remote): Add new packet configuration for
5160 target-side breakpoint commands.
5161 * target.h (struct target_ops): New field
5162 to_can_run_breakpoint_commands.
5163 (target_can_run_breakpoint_commands): New macro.
5164 * target.c (update_current_target): Handle
5165 to_can_run_breakpoint_commands.
5166
5167 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5168
5169 Execute -ix and -iex only after system and user gdbinit files.
5170 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5171 processing down after gdbinit files.
5172
5173 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5174
5175 Add fnmatch-gnu module.
5176 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5177 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5178 * gnulib/aclocal.m4: Regenerate.
5179 * gnulib/config.in: Regenerate.
5180 * gnulib/configure: Regenerate.
5181 * gnulib/import/dummy.c: Remove.
5182 * gnulib/import/Makefile.am: Regenerate.
5183 * gnulib/import/Makefile.in: Likewise.
5184 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5185 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5186 * gnulib/import/alloca.c: New file.
5187 * gnulib/import/alloca.in.h: Likewise.
5188 * gnulib/import/config.charset: Likewise.
5189 * gnulib/import/fnmatch.c: Likewise.
5190 * gnulib/import/fnmatch.in.h: Likewise.
5191 * gnulib/import/fnmatch_loop.c: Likewise.
5192 * gnulib/import/localcharset.c: Likewise.
5193 * gnulib/import/localcharset.h: Likewise.
5194 * gnulib/import/m4/alloca.m4: Likewise.
5195 * gnulib/import/m4/codeset.m4: Likewise.
5196 * gnulib/import/m4/configmake.m4: Likewise.
5197 * gnulib/import/m4/fcntl-o.m4: Likewise.
5198 * gnulib/import/m4/fnmatch.m4: Likewise.
5199 * gnulib/import/m4/glibc21.m4: Likewise.
5200 * gnulib/import/m4/localcharset.m4: Likewise.
5201 * gnulib/import/m4/locale-fr.m4: Likewise.
5202 * gnulib/import/m4/locale-ja.m4: Likewise.
5203 * gnulib/import/m4/locale-zh.m4: Likewise.
5204 * gnulib/import/m4/mbrtowc.m4: Likewise.
5205 * gnulib/import/m4/mbsinit.m4: Likewise.
5206 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5207 * gnulib/import/m4/mbstate_t.m4: Likewise.
5208 * gnulib/import/m4/stdbool.m4: Likewise.
5209 * gnulib/import/m4/wchar_h.m4: Likewise.
5210 * gnulib/import/m4/wctype_h.m4: Likewise.
5211 * gnulib/import/m4/wint_t.m4: Likewise.
5212 * gnulib/import/mbrtowc.c: Likewise.
5213 * gnulib/import/mbsinit.c: Likewise.
5214 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5215 * gnulib/import/mbsrtowcs-state.c: Likewise.
5216 * gnulib/import/mbsrtowcs.c: Likewise.
5217 * gnulib/import/ref-add.sin: Likewise.
5218 * gnulib/import/ref-del.sin: Likewise.
5219 * gnulib/import/stdbool.in.h: Likewise.
5220 * gnulib/import/streq.h: Likewise.
5221 * gnulib/import/strnlen1.c: Likewise.
5222 * gnulib/import/strnlen1.h: Likewise.
5223 * gnulib/import/verify.h: Likewise.
5224 * gnulib/import/wchar.in.h: Likewise.
5225 * gnulib/import/wctype.in.h: Likewise.
5226
5227 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5228
5229 Support shell wildcards for 'set auto-load safe-path'.
5230 * auto-load.c: Include fnmatch.h.
5231 (filename_is_in_dir): Rename to ...
5232 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5233 it. Update function comment. Rename dir_len to pattern_len. New
5234 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5235 messages. Use gdb_filename_fnmatch.
5236 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5237 pattern.
5238 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5239 * defs.h (gdb_filename_fnmatch): New declaration.
5240 * utils.c: Include fnmatch.h.
5241 (gdb_filename_fnmatch): New function.
5242
5243 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5244
5245 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5246 `-probe' and `-probe-stap' options.
5247
5248 2012-07-01 Yao Qi <yao@codesourcery.com>
5249
5250 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5251 always_inserted_off, and always_inserted_enums.
5252 Change always_inserted_mode's type to 'enum auto_boolean'.
5253 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5254 callers.
5255 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5256 of add_setshow_enum_cmd.
5257 * infrun.c: Remove can_use_displaced_stepping_auto,
5258 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5259 can_use_displaced_stepping_enum.
5260 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5261 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5262 callers.
5263 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5264 add_setshow_enum_cmd.
5265
5266 2012-06-30 Doug Evans <dje@google.com>
5267
5268 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5269 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5270 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5271
5272 2012-06-29 Doug Evans <dje@google.com>
5273
5274 * linespec.c: #include "stack.h".
5275 (decode_line_with_current_source): Moved here from symtab.c and
5276 renamed from decode_line_spec. All callers updated.
5277 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5278 renamed from decode_line_spec_1. All callers updated.
5279 * linespec.h (decode_line_with_current_source): Move declaration here
5280 from symtab.h and renamed from decode_line_spec.
5281 (decode_line_with_last_displayed): Move declaration here from symtab.h
5282 and renamed from decode_line_spec_1.
5283 * macrocmd.c: #include "linespec.h".
5284 * symtab.c: Remove #include "linespec.h".
5285
5286 2012-06-28 Doug Evans <dje@google.com>
5287
5288 * dwarf2read.c (get_cu_length): New function.
5289 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5290 (create_debug_types_hash_table): Ditto.
5291 (init_cutu_and_read_dies): Ditto.
5292 (init_cutu_and_read_dies_no_follow): Ditto.
5293
5294 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5295
5296 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5297 (struct abbrev_table): Define.
5298 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5299 abbrev_table.
5300 (init_cutu_and_read_dies): Update.
5301 (abbrev_table_alloc_abbrev): New function. Replaces
5302 dwarf_alloc_abbrev. All callers updated.
5303 (abbrev_table_add_abbrev): New function.
5304 (abbrev_table_lookup_abbrev): New function. Replaces
5305 dwarf2_lookup_abbrev. All callers updated.
5306 (abbrev_table_read_table): New function. Contents moved here from
5307 dwarf2_read_abbrevs.
5308 (dwarf2_read_abbrevs): Call it.
5309 (abbrev_table_free): New function.
5310 (dwarf2_free_abbrev_table): Call it.
5311
5312 2012-06-28 Stan Shebs <stan@codesourcery.com>
5313
5314 * osdata.c (info_osdata_command): Filter out "Title" columns
5315 from non-MI uses.
5316 * common/linux-osdata.c (struct osdata_type): Add title field.
5317 (osdata_table): Add titles to each entry.
5318 (linux_command_xfer_osdata): Add a column for title data.
5319
5320 2012-06-28 Stan Shebs <stan@codesourcery.com>
5321
5322 Make logging work for MI.
5323 * NEWS: Mention it.
5324 * interps.h (interp_set_logging_ftype): New typedef.
5325 (struct interp_procs): New field set_logging_proc.
5326 (current_interp_set_logging): Declare.
5327 * interps.c (current_interp_set_logging): New function.
5328 * cli/cli-logging.c: Include interps.h.
5329 (set_logging_redirect): Call current_interp_set_logging.
5330 (pop_output_files): Ditto.
5331 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5332 * mi/mi-console.h (mi_console_set_raw): Declare.
5333 * mi/mi-console.c (mi_console_set_raw): New function.
5334 * mi/mi-interp.c (saved_raw_stdout): New global.
5335 (mi_set_logging): New function.
5336 (_initialize_mi_interp): Add it to interp procs.
5337
5338 2012-06-28 Doug Evans <dje@google.com>
5339
5340 * symtab.c (lookup_symbol_aux_objfile): Use
5341 ALL_OBJFILE_PRIMARY_SYMTABS.
5342
5343 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5344
5345 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5346
5347 * common/buffer.c: Include inttypes.h and stdint.h.
5348 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5349
5350 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5351 Pedro Alves <palves@redhat.com>
5352
5353 * gdbthread.h (ALL_THREADS): New macro.
5354 (thread_list): Declare.
5355 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5356 going, but instead fall through to the stepping handling.
5357 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5358 the passed in signal. Adjust debug output.
5359 (resume_callback): Rename to ...
5360 (linux_nat_resume_callback): ... this. Pass the thread's last
5361 stop signal, if in "pass" state.
5362 (linux_nat_resume): Adjust to rename.
5363 (stop_wait_callback): New assertion. Don't respawn signals;
5364 instead let the LWP remain with SIGNALLED set.
5365 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5366 * remote.c (append_pending_thread_resumptions): New.
5367 (remote_vcont_resume): Call it.
5368 * target.h (target_resume): Extend comment.
5369
5370 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5371
5372 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5373
5374 2012-06-27 Doug Evans <dje@google.com>
5375
5376 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5377 Delete have_addr_base, unused. All uses updated.
5378 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5379 (dwarf2_get_pc_bounds): Add ranges_base.
5380 (dwarf2_record_block_ranges): Ditto.
5381
5382 2012-06-27 Tom Tromey <tromey@redhat.com>
5383
5384 PR macros/7961:
5385 * varobj.c (varobj_create): Update.
5386 (varobj_set_value): Update.
5387 * tracepoint.c (validate_actionline): Update.
5388 (encode_actions_1): Update.
5389 * parse.c (parse_exp_1): Add 'pc' argument.
5390 (parse_exp_in_context): Add 'pc' argument. Change how
5391 expression_context_pc is set.
5392 (parse_expression): Update.
5393 (parse_field_expression): Update.
5394 * expression.h (parse_exp_1): Update.
5395 * eval.c (parse_to_comma_and_eval): Update.
5396 * breakpoint.c (set_breakpoint_condition): Update.
5397 (update_watchpoint): Update.
5398 (init_breakpoint_sal): Update
5399 (find_condition_and_thread): Update.
5400 (watch_command_1): Update.
5401 (update_breakpoint_locations): Update.
5402 * ada-lang.c (ada_read_renaming_var_value): Update.
5403 (create_excep_cond_exprs): Update.
5404
5405 2012-06-27 Doug Evans <dje@google.com>
5406
5407 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5408 type units.
5409
5410 2012-06-26 Doug Evans <dje@google.com>
5411
5412 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5413 prototype.
5414 (error_check_comp_unit_head): New arg abbrev_section. All callers
5415 updated.
5416 (read_and_check_comp_unit_head): Ditto.
5417 (read_and_check_type_unit_head): Ditto.
5418
5419 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5420
5421 New attribute 'last' for gdb.Symtab_and_line.
5422 * NEWS (Python Scripting): Add entry about the new attribute.
5423 * python/py-symtab.c (salpy_get_last): New function which
5424 implements the get method for the 'last' attribute of
5425 gdb.Symtab_and_line.
5426 (sal_object_getset): Add entry for the 'last' attribute.
5427
5428 2012-06-26 Doug Evans <dje@google.com>
5429
5430 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5431 (dwo_sections): Add macinfo, macro.
5432 (dwarf2_locate_dwo_sections): Watch for macro sections.
5433 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5434 All callers updated. Handle DWO files.
5435
5436 * NEWS: Mention new options "set debug dwarf2-read" and
5437 "set debug symtab-create".
5438 * dwarf2read.c (dwarf2_read_debug): New static global.
5439 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5440 (process_queue): Ditto.
5441 (process_full_comp_unit): Ditto.
5442 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5443 * elfread.c (elf_symfile_read): Add debugging printf.
5444 * minsyms.c (install_minimal_symbols): Ditto.
5445 * psymtab.c (allocate_psymtab): Ditto.
5446 * symfile.c (allocate_symtab): Ditto.
5447 * symtab.c (symtab_create_debug): New global.
5448 (_initialize_symtab): Add new option "set debug symtab-create".
5449 * symtab.h (symtab_create_debug): Declare.
5450
5451 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5452 (lookup_dwo_type_unit): Ditto.
5453
5454 2012-06-26 Roland McGrath <roland@hack.frob.com>
5455 H.J. Lu <hongjiu.lu@intel.com>
5456
5457 * amd64-linux-nat.c: Include <sys/user.h>.
5458 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5459 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5460 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5461
5462 * configure.ac: Check if the fs_base and gs_base members of
5463 `struct user_regs_struct' exist.
5464 * config.in: Regenerated.
5465 * configure: Likewise.
5466
5467 2012-06-25 Michael Eager <eager@eagercon.com>
5468
5469 PR python/14291
5470 * python/python.c (gdbpy_write): Check for interrupted output.
5471
5472 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5473
5474 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5475 register as a stack alignment in ARM mode.
5476
5477 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5478
5479 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5480 * gnulib/config.in: Regenerate.
5481 * gnulib/configure: Likewise.
5482 * gnulib/import/m4/extensions.m4: Update it.
5483 * gnulib/import/m4/gnulib-common.m4: Likewise.
5484 * gnulib/import/m4/memmem.m4: Likewise.
5485 * gnulib/import/m4/mmap-anon.m4: Likewise.
5486 * gnulib/import/m4/multiarch.m4: Likewise.
5487 * gnulib/import/stdint.in.h: Likewise.
5488
5489 2012-06-24 Yao Qi <yao@codesourcery.com>
5490
5491 * corefile.c (write_memory_with_notification): New.
5492 * gdbcore.h: Declare write_memory_with_notification.
5493 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5494 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5495 * valops.c (value_assign): Likewise.
5496 * python/py-inferior.c (infpy_write_memory): Call
5497 'write_memory_with_notification'.
5498
5499 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5500
5501 * cc-with-index.sh: Use also -ex "set auto-load no".
5502
5503 2012-06-23 Doug Evans <dje@google.com>
5504
5505 PR 14125
5506 * NEWS: Document additions to .gdb_index.
5507 * dwarf2read.c: #include "gdb/gdb-index.h".
5508 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5509 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5510 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5511 (dwarf2_read_index): Recognize version 7.
5512 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5513 block_kind, domain): All callers updated.
5514 (dw2_find_symbol_file): Handle new index CU values.
5515 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5516 (add_index_entry): New args is_static, kind. All callers updated.
5517 (offset_type_compare, uniquify_cu_indices): New functions
5518 (symbol_kind): New function.
5519 (write_psymtabs_to_index): Remove duplicate CU values.
5520 (write_psymtabs_to_index): Write .gdb_index version 7.
5521
5522 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5523
5524 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5525 * configure: Regenerate.
5526
5527 2012-06-20 Yao Qi <yao@codesourcery.com>
5528
5529 * python/py-inferior.c: Update comments of infpy_read_memory
5530 and infpy_write_memory.
5531
5532 2012-06-19 Tom Tromey <tromey@redhat.com>
5533
5534 PR exp/9514:
5535 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5536 (push_type_address_space): Remove.
5537 * parse.c (insert_into_type_stack): New function.
5538 (insert_type): Likewise.
5539 (insert_type_address_space): Rename from push_type_address_space.
5540 Insert tp_space_identifier.
5541 * c-exp.y (ptr_operator): New production.
5542 (abs_decl): Use ptr_operator.
5543 (space_identifier): Call insert_type_address_space.
5544 (ptype): Don't use const_or_volatile_or_space_identifier.
5545 (const_or_volatile_noopt): Call insert_type.
5546 (conversion_type_id, conversion_declarator): New productions.
5547 (operator): Use conversion_type_id.
5548
5549 2012-06-18 Doug Evans <dje@google.com>
5550
5551 * symtab.h (minimal_symbol): New member created_by_gdb.
5552 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5553 created by gdb.
5554 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5555 (search_symbols): Call it instead of lookup_symbol.
5556 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5557
5558 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5559 Adjust address for DW_OP_GNU_addr_index.
5560 * dwarf2expr.h (dwarf_expr_context): Update comment.
5561 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5562 all callers updated. Handle TLS vars described with
5563 DW_OP_GNU_const_index.
5564 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5565 and DW_OP_GNU_const_index.
5566 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5567
5568 * block.c (find_block_in_blockvector): Make explicit the fact that we
5569 ignore GLOBAL_BLOCK.
5570
5571 2012-06-18 Tom Tromey <tromey@redhat.com>
5572
5573 * c-exp.y (operator): Remove trailing space after "delete" and
5574 "delete[]".
5575
5576 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5577 Jan Kratochvil <jan.kratochvil@redhat.com>
5578
5579 Switch i386 and derived targets to ON_STACK.
5580 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5581 (amd64_dicos_init_abi): Remove its installment.
5582 * dicos-tdep.c (dicos_init_abi): Remove the
5583 set_gdbarch_call_dummy_location call. Update the comment here.
5584 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5585 (i386_dicos_init_abi): Remove its installment.
5586 * i386-tdep.c (i386_push_dummy_code): New function.
5587 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5588 i386_push_dummy_code.
5589
5590 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5591
5592 Remove stale dummy frames.
5593 * breakpoint.c: Include dummy-frame.h.
5594 (longjmp_breakpoint_ops): New variable.
5595 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5596 bp_longjmp_call_dummy.
5597 (bpstat_what, bptype_string, print_one_breakpoint_location)
5598 (init_bp_location): Support bp_longjmp_call_dummy.
5599 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5600 (set_longjmp_breakpoint_for_call_dummy)
5601 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5602 functions.
5603 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5604 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5605 FIXME comment and extend the other comment for bp_call_dummy.
5606 (set_longjmp_breakpoint_for_call_dummy)
5607 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5608 * dummy-frame.c: Include gdbthread.h.
5609 (pop_dummy_frame_bpt): New function.
5610 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5611 (dummy_frame_discard): New function.
5612 (cleanup_dummy_frames): Update the comment about longjmps.
5613 * dummy-frame.h (dummy_frame_discard): New declaration.
5614 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5615 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5616 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5617 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5618 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5619 keep_going if IS_LONGJMP and there is no other reason to stop.
5620
5621 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5622
5623 * remote-sim.c (sim_command_completer): Initialize
5624 variable 'result'.
5625
5626 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5627
5628 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5629 * dwarf2loc.c (call_site_parameter_matches): Support
5630 CALL_SITE_PARAMETER_PARAM_OFFSET.
5631 (needs_dwarf_reg_entry_value): Push stub value.
5632 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5633 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5634 * gdbtypes.h (enum call_site_parameter_kind): New item
5635 CALL_SITE_PARAMETER_PARAM_OFFSET.
5636 (struct call_site.parameter.u): New field param_offset.
5637
5638 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5639
5640 Code cleanup: Generalize call_site.parameter key.
5641 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5642 variable dwarf_reg. New variable kind_u. Update parameters to
5643 push_dwarf_reg_entry_value.
5644 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5645 * dwarf2expr.h (enum call_site_parameter_kind)
5646 (union call_site_parameter_u): Forward declarations.
5647 (struct dwarf_expr_context_funcs): Update parameters and their
5648 description for push_dwarf_reg_entry_value.
5649 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5650 * dwarf2loc.c (call_site_parameter_matches): New function.
5651 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5652 description. Use call_site_parameter_matches.
5653 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5654 Update parameters and their description.
5655 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5656 New variable kind_u. Adjust the caller for updated parameters.
5657 (needs_dwarf_reg_entry_value): Update parameters.
5658 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5659 instead of attr. Update for the changed fields of struct
5660 call_site_parameter.
5661 * gdbtypes.h: Include dwarf2expr.h.
5662 (enum call_site_parameter_kind): New.
5663 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5664 fb_offset into new union u.
5665
5666 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5667
5668 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5669 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5670 for x32.
5671
5672 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5673
5674 * amd64-linux-nat.c (compat_x32_clock_t): New.
5675 (compat_x32_siginfo_t): Likewise.
5676 (compat_x32_siginfo_from_siginfo): Likewise.
5677 (siginfo_from_compat_x32_siginfo): Likewise.
5678 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5679 and siginfo_from_compat_x32_siginfo for x32.
5680
5681 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5682
5683 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5684
5685 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5686
5687 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5688 instead of gdbarch_ptr_bit.
5689 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5690 (amd64_supply_native_gregset): Likewise.
5691 (amd64_collect_native_gregset): Likewise.
5692 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5693 (amd64_supply_xsave): Likewise.
5694 (amd64_collect_fxsave): Likewise.
5695 (amd64_collect_xsave): Likewise.
5696
5697 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5698
5699 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5700 (amd64_linux_read_description): Check DS segment register for
5701 x32 process.
5702
5703 2012-06-15 Tom Tromey <tromey@redhat.com>
5704
5705 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5706 init_cutu_and_read_dies.
5707
5708 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5709
5710 * MAINTAINERS (Write After Approval): Add myself to the list.
5711
5712 2012-06-15 Tom Tromey <tromey@redhat.com>
5713
5714 * valops.c (value_find_oload_method_list): Now static.
5715 * value.h (value_find_oload_method_list): Don't declare.
5716
5717 2012-06-15 Tom Tromey <tromey@redhat.com>
5718
5719 * valops.c (find_overload_match): Use value_ind.
5720
5721 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5722
5723 * infrun.c (handle_inferior_event): Correct indentation.
5724
5725 2012-06-14 Doug Evans <dje@google.com>
5726
5727 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5728 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5729 All uses updated.
5730 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5731 updated. Handle DEBUG_LOC_START_LENGTH.
5732 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5733 (loclist_describe_location): Ditto.
5734
5735 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5736
5737 PR backtrace/13866
5738 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5739 after hiding inline functions.
5740
5741 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5742
5743 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5744 _initialize_inf_ttrace.
5745
5746 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5747
5748 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5749 _initialize_hppa_hpux_nat.
5750
5751 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5752
5753 * remote-sim.c (sim_command_completer): Change type of return
5754 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5755
5756 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5757 Jan Kratochvil <jan.kratochvil@redhat.com>
5758
5759 PR tdep/14222
5760 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5761 stack on a 16-byte boundary.
5762
5763 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5764
5765 * jit.c (finalize_symtab): Set function's return type to 'void' by
5766 default.
5767
5768 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5769 H.J. Lu <hongjiu.lu@intel.com>
5770
5771 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5772 Move bits common to both the classic LP64 and the new x32 ILP32
5773 ABI here.
5774 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5775 (amd64_x32_linux_init_abi): New function.
5776 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5777 subtype.
5778
5779 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5780 * i386-tdep.c (i386_pseudo_register_name): Make public.
5781 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5782 * amd64-tdep.c (amd64_dword_names): Add "eip".
5783 (amd64_x32_pseudo_register_type): New function
5784 (amd64_x32_init_abi): New function.
5785
5786 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5787
5788 PR build/14003
5789 * inferior.h (struct inferior_suspend_state): Comment out.
5790 (struct inferior): Comment out the field suspend.
5791 * infrun.c (struct infcall_suspend_state): Comment out the field
5792 inferior_suspend.
5793 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5794 out its assignment.
5795
5796 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5797
5798 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5799 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5800 function comment. Return ERROR for unresolved cases. Implement
5801 returning proper NAME.
5802 (yylex): Accept also NAME from classify_inner_name.
5803 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5804 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5805 LOC_TYPEDEF type.
5806 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5807
5808 2012-06-13 Tom Tromey <tromey@redhat.com>
5809
5810 * breakpoint.c (condition_completer): New function.
5811 (_initialize_breakpoint): Use it.
5812 * value.c (complete_internalvar): New function.
5813 * value.h (complete_internalvar): Declare.
5814
5815 2012-06-13 Tom Tromey <tromey@redhat.com>
5816
5817 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5818 * breakpoint.c (catch_syscall_completer): Return a VEC.
5819 * cli/cli-cmds.c (complete_command): Update.
5820 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5821 (complete_on_enum): Likewise.
5822 * command.h: Include gdb_vecs.h.
5823 (completer_ftype): Change return type.
5824 (complete_on_cmdlist, complete_on_enum): Likewise.
5825 * completer.c (noop_completer, filename_completer)
5826 (location_completer): Return a VEC.
5827 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5828 to a VEC.
5829 (expression_completer, complete_line_internal, complete_line)
5830 (command_completer): Return a VEC.
5831 (gdb_completion_word_break_characters, line_completion_function):
5832 Update.
5833 * completer.h: Include gdb_vecs.h.
5834 (complete_line, noop_completer, filename_completer)
5835 (expression_completer, location_completer, command_completer):
5836 Update.
5837 * f-lang.c (f_word_break_characters): Return a VEC.
5838 * interps.c (interpreter_completer): Return a VEC.
5839 * language.h (struct language_defn)
5840 <la_make_symbol_completion_list>: Return a VEC.
5841 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5842 * symtab.c (free_completion_list): Take a VEC.
5843 (return_val_size, return_val_index): Remove.
5844 (return_val): Now a VEC.
5845 (completion_list_add_name): Update.
5846 (default_make_symbol_completion_list_break_on)
5847 (default_make_symbol_completion_list, make_symbol_completion_list)
5848 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5849 Return a VEC.
5850 (add_filename_to_list): Update.
5851 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5852 <list>: Now a VEC.
5853 (maybe_add_partial_symtab_filename): Update.
5854 (make_source_files_completion_list): Return a VEC.
5855 * symtab.h (default_make_symbol_completion_list_break_on)
5856 (default_make_symbol_completion_list, make_symbol_completion_list)
5857 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5858 (make_source_files_completion_list): Update.
5859
5860 2012-06-13 Tom Tromey <tromey@redhat.com>
5861
5862 * breakpoint.c (add_catch_command): Use completer_ftype.
5863 * breakpoint.h: Include command.h.
5864 (add_catch_command): Use completer_ftype.
5865 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5866 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5867 Use completer_ftype.
5868 * command.h (completer_ftype): New typedef.
5869 (set_cmd_completer): Use it.
5870 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5871 completer_ftype.
5872
5873 2012-06-13 Pedro Alves <palves@redhat.com>
5874
5875 Partial revert of previous change.
5876
5877 * serial.c (scb_base): New global.
5878 (serial_for_fd): New.
5879 (serial_open, serial_fdopen_ops): Link new serial in open serials
5880 chain.
5881 (do_serial_close): Unlink serial from the open serials chain.
5882
5883 2012-06-12 Pedro Alves <palves@redhat.com>
5884
5885 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5886 threads here.
5887 (prepare_for_detach): No longer context switch here in non-stop
5888 mode.
5889 (fetch_inferior_event): Ditto.
5890 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5891 to the event thread before removing breakpoints. Switch to the
5892 event thread before inserting breakpoints and resuming.
5893 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5894 event thread before resuming.
5895 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5896 Switch to the event thread before removing breakpoints.
5897
5898 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5899
5900 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5901 special characters correctly for the Windows shells. See
5902 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5903 report.
5904 [!__MINGW32__]: Remove extra double quote character from special
5905 characters.
5906
5907 2012-06-11 Stan Shebs <stan@codesourcery.com>
5908
5909 * ui-out.h: Remove #if 0 declarations.
5910 * ui-out.c: Remove #if 0 functions.
5911
5912 2012-06-11 Pedro Alves <palves@redhat.com>
5913
5914 * ser-base.c (run_async_handler_and_reschedule): New.
5915 (fd_event, push_event): Use it.
5916 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5917 reference count to 1.
5918 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5919 instead of xfree.
5920 (serial_is_open, serial_ref, serial_unref): New.
5921 * serial.h (serial_open): Adjust comment.
5922 (serial_is_open): Declare.
5923 (serial_close): Adjust comment.
5924 (serial_ref, serial_unref) Declare.
5925 (struct serial): New field 'refcnt'.
5926
5927 2012-06-11 Pedro Alves <palves@redhat.com>
5928
5929 Remove #if 0'd "connect" command, and unnecessary associated
5930 refcounting and serial reuse bits.
5931
5932 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5933 * serial.c (last_serial_opened): Delete.
5934 (scb_base): Delete.
5935 (serial_open): Adjust.
5936 (serial_for_fd): Delete.
5937 (serial_fdopen_ops, do_serial_close): Adjust.
5938 (serial_fdopen_ops): Adjust.
5939
5940 2012-06-11 Pedro Alves <palves@redhat.com>
5941
5942 * serial.c (do_serial_close): Remove early return when SCB is
5943 null.
5944
5945 2012-06-11 Tom Tromey <tromey@redhat.com>
5946
5947 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5948
5949 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5950
5951 Fix regression by the "ambiguous linespec" series.
5952 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5953 get_last_displayed_symtab and get_last_displayed_line and depending
5954 on CURSAL.
5955
5956 2012-06-11 Tom Tromey <tromey@redhat.com>
5957
5958 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5959 (dw2_find_symbol_file): Use it.
5960
5961 2012-06-11 Michael Eager <eager@eagercon.com>
5962
5963 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5964 * mips-linux-tdep.h (mips_signals): New
5965
5966 2012-06-11 Tom Tromey <tromey@redhat.com>
5967
5968 * infrun.c (handle_inferior_event)
5969 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5970 breakpoint.
5971 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5972 exception logic in all cases. Update comments.
5973 (insert_longjmp_resume_breakpoint): Set the exception resume
5974 breakpoint.
5975
5976 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5977
5978 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5979
5980 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5981
5982 * valarith.c (binop_types_user_defined_p): Fix a typo.
5983
5984 2012-06-08 Yao Qi <yao@codesourcery.com>
5985 Chung-Lin Tang <cltang@codesourcery.com>
5986
5987 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5988 * arch-utils.h: Declare.
5989 * gdbarch.sh: Add return_in_first_hidden_param_p.
5990 * gdbarch.c, gdbarch.h: Regenerated.
5991 * infcall.c (call_function_by_hand): Call
5992 gdbarch_return_in_first_hidden_param_p instead of
5993 language_pass_by_reference.
5994
5995 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5996 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5997 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5998 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5999 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6000 `cplus_return_struct_by_reference'.
6001 (tic6x_return_value): Handle language cplusplus.
6002 (tic6x_return_in_first_hidden_param_p): New.
6003 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6004
6005 2012-06-07 Doug Evans <dje@google.com>
6006
6007 * dwarf2read.c (dwarf2_cu): Add comment.
6008
6009 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6010
6011 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6012 variable.
6013 (mips_eabi_push_dummy_call): Likewise.
6014 (mips_n32n64_push_dummy_call): Likewise.
6015 (mips_o32_push_dummy_call): Likewise.
6016 (mips_o64_push_dummy_call): Likewise.
6017
6018 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6019
6020 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6021
6022 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6023
6024 * mips-tdep.c (mips_pseudo_register_type): Use
6025 mips_float_register_p.
6026
6027 2012-06-06 Pedro Alves <palves@redhat.com>
6028
6029 * infrun.c (handle_inferior_event): Remove calls to
6030 reinit_frame_cache that follow a context_switch call.
6031
6032 2012-06-06 Pedro Alves <palves@redhat.com>
6033
6034 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6035 context_switch and remove stale comment.
6036
6037 2012-06-06 Pedro Alves <palves@redhat.com>
6038
6039 * infrun.c (struct execution_control_state): Remove
6040 `new_thread_event' field.
6041 (handle_inferior_event): Simplify new threads handling; don't
6042 resume the inferior if we find a new thread.
6043
6044 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
6045
6046 * NEWS: Document the deprecation of SH's 'regs' command.
6047 * inferior.h (all_registers_info): Add function declaration.
6048 * sh-tdep.c (sh_show_regs): Remove variable.
6049 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6050 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6051 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6052 (sh_show_regs_command): Remove functions.
6053 (sh_gdbarch_init): Don't set sh_show_regs.
6054 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6055 'info all-registers'.
6056 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6057 (sh64_show_regs): Remove functions.
6058 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6059
6060 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6061
6062 * configure.ac: Move development=true below AC_INIT.
6063 * configure: Regenerate.
6064
6065 2012-06-05 Stan Shebs <stan@codesourcery.com>
6066
6067 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6068 gdb_stdout.
6069
6070 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6071
6072 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6073 argument as ssize_t.
6074 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6075 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6076 * target.c (target_read_stack, target_write_memory)
6077 (target_write_raw_memory): Likewise.
6078 * target.h (target_read_stack, target_write_memory)
6079 (target_write_raw_memory): Likewise.
6080
6081 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6082
6083 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6084 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6085 * target.c (target_read_memory): Change LEN to ssize_t.
6086 * target.h (target_read_memory): Change LEN to ssize_t.
6087
6088 2012-06-05 Pedro Alves <palves@redhat.com>
6089
6090 PR backtrace/13866
6091
6092 * breakpoint.c (until_break_command): Only fetch the selected
6093 frame after decode_line_1.
6094
6095 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6096
6097 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6098 event breakpoint at _start, __start or main if a program
6099 interpreter is not found.
6100
6101 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6102
6103 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6104 Add declaration.
6105 * windows-tdep.c: #include "objfiles.h".
6106 (windows_iterate_over_objfiles_in_search_order): New function.
6107 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6108 iterate_over_objfiles_in_search_order gdbarch method to
6109 windows_iterate_over_objfiles_in_search_order.
6110 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6111
6112 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6113
6114 * gdbarch.sh: Add generation of
6115 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6116 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6117 (iterate_over_objfiles_in_search_order): New gdbarch method.
6118 * gdbarch.h, gdbarch.c: Regenerate.
6119 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6120 Add declaration.
6121 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6122 New function.
6123 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6124 out of lookup_symbol_aux_symtabs.
6125 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6126 call to lookup_symbol_aux_objfile.
6127 (struct global_sym_lookup_data): New type.
6128 (lookup_symbol_global_iterator_cb): New function.
6129 (lookup_symbol_global): Search for symbol using
6130 gdbarch_iterate_over_objfiles_in_search_order and
6131 lookup_symbol_global_iterator_cb.
6132 * findvar.c (struct minsym_lookup_data): New type.
6133 (minsym_lookup_iterator_cb): New function.
6134 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6135 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6136 and minsym_lookup_iterator_cb.
6137
6138 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6139
6140 Revert the following patch:
6141 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6142 try locating the symbol in the symbol's own objfile first, before
6143 extending the search to all objfiles.
6144 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6145 out of lookup_symbol_aux_symtabs.
6146 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6147 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6148 Do not search EXCLUDE_OBJFILE.
6149 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6150 (lookup_symbol_global): Search for matches in the block's objfile
6151 first, before searching all other objfiles.
6152
6153 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6154
6155 * breakpoint.c (find_condition_and_thread): Stop parsing
6156 as soon as the first invalid keyword is found.
6157
6158 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6159
6160 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6161
6162 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6163
6164 * config/djgpp/djcheck.sh: Add copyright header.
6165
6166 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6167
6168 * copyright.py (update_files, main): Fix path to update-copyright
6169 script.
6170
6171 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6172
6173 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6174 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6175 for which a reminder to update by hand is printed.
6176
6177 2012-06-04 Doug Evans <dje@google.com>
6178
6179 * buildsym.c (make_blockvector): Add comment.
6180
6181 2012-06-04 Pedro Alves <palves@redhat.com>
6182
6183 * arch-utils.c (default_gdb_signal_from_target): Delete.
6184 * arch-utils.h (default_gdb_signal_from_target): Delete.
6185 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6186 gdbarch_gdb_signal_from_target_p.
6187 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6188 predicate).
6189 * gdbarch.h: Regenerate.
6190 * gdbarch.c: Regenerate.
6191
6192 2012-06-04 Pedro Alves <palves@redhat.com>
6193
6194 * gdbarch.sh (gdb_signal_from_target): Mention that the
6195 implementation of the method must be host independent.
6196 * gdbarch.h: Regenerate.
6197
6198 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6199
6200 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6201 parameters.
6202 (target_read_memory_bfd): New function.
6203 (symbol_file_add_from_memory): Use it.
6204
6205 2012-06-03 Doug Evans <dje@google.com>
6206
6207 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6208 of primary symtab.
6209 (basic_lookup_transparent_type): Ditto.
6210
6211 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6212 (ALL_PRIMARY_SYMTABS): Use it.
6213 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6214 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6215 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6216 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6217 (basic_lookup_transparent_type): Ditto.
6218
6219 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6220
6221 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6222 it to optimize resolution of demangled name.
6223
6224 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6225
6226 * configure.ac (development): Define new variable.
6227 Call AC_CHECK_LIB for mcheck if $development.
6228 (ERROR_ON_WARNING): Enable it by default only if $development.
6229 * config.in: Regenerate.
6230 * configure: Regenerate.
6231
6232 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6233
6234 * target.c (target_read_memory): Make LEN argument as size_t.
6235 * target.h (target_read_memory): Likewise.
6236
6237 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6238
6239 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6240
6241 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6242
6243 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6244 BookE interface for PowerPC server processors if not available
6245 in the Linux Kernel.
6246
6247 2012-05-31 Keith Seitz <keiths@redhat.com>
6248
6249 * linespec.c (decode_objc): Add cleanup to free
6250 INFO.FILE_SYMTABS.
6251 (find_linespec_symbols): Add cleanup to free CLASSES.
6252 * symfile.c (find_separate_debug_file_by_debuglink): Add
6253 cleanup to free DEBUGLINK.
6254 * ui-out.c (clear_header_list): No need to check if
6255 HEADER_NEXT.COLHDR is NULL.
6256 Free HEADER_NEXT.COL_NAME.
6257
6258 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6259
6260 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6261 warning.
6262
6263 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6264
6265 * configure.host (gdb_host_cpu): Handle tilegx*.
6266 (gdb_host): Handle tilegx-*-linux*.
6267 * tilegx-linux-nat.c: New file.
6268 * config/tilegx/linux.mh: New file.
6269
6270 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6271
6272 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6273 tilegx-linux-tdep.o.
6274 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6275 tilegx-linux-tdep.c.
6276 * configure.tgt: Handle tilegx-*-linux*.
6277 * tilegx-tdep.h: New file.
6278 * tilegx-tdep.c: New file.
6279 * tilegx-linux-tdep.c: New file.
6280 * regformats/reg-tilegx.dat: New file.
6281
6282 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6283
6284 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6285 accounting of hw watchpoints on ppc.
6286
6287 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6288
6289 * source.c (openp): Expand tilde in path entries.
6290
6291 2012-05-29 Doug Evans <dje@google.com>
6292
6293 * buildsym.c (block_compar): Fix comment.
6294 (end_symtab): Fix and clarify some comments.
6295
6296 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6297 cleanup_undefined_types.
6298 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6299 All callers updated.
6300
6301 2012-05-29 Tom Tromey <tromey@redhat.com>
6302
6303 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6304 fails.
6305 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6306 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6307 fails.
6308 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6309 fails.
6310
6311 2012-05-29 Tristan Gingold <gingold@adacore.com>
6312
6313 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6314 (struct darwin_info): ... New struct.
6315 (solib_darwin_pspace_data): New variable.
6316 (darwin_pspace_data_cleanup): New function.
6317 (get_darwin_info): Likewise.
6318 (darwin_dyld_version_ok, darwin_load_image_infos)
6319 (darwin_solib_get_all_image_info_addr_at_init)
6320 (darwin_solib_read_all_image_info_addr): Add info argument.
6321 Adjust code.
6322 (darwin_current_sos): Use per pspace structure.
6323 (darwin_solib_create_inferior_hook): Likewise.
6324 (darwin_clear_solib): Likewise.
6325 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6326
6327 2012-05-28 Pedro Alves <palves@redhat.com>
6328
6329 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6330 block that uses them. Clear ecss before handling each event.
6331
6332 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6333
6334 * solib-svr4.c (svr4_current_sos): New comment on
6335 svr4_current_sos_via_xfer_libraries fall back.
6336
6337 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6338
6339 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6340 it as a fallback for TYPE_IS_OPAQUE.
6341 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6342 symbols for lookup_symbol.
6343
6344 2012-05-24 John Steele Scott <toojays@toojays.net>
6345
6346 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6347 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6348 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6349 (check_producer): ... this new function, which also checks for ICC
6350 and caches the result.
6351 (producer_is_icc): New function.
6352 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6353 producer was ICC.
6354
6355 2012-05-24 Pedro Alves <palves@redhat.com>
6356
6357 PR gdb/7205
6358
6359 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6360 (default_gdb_signal_to_target): ... this. Add comment.
6361 (default_gdb_signal_from_host): Rename to ...
6362 (default_gdb_signal_from_target): ... this. Add comment.
6363 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6364 (default_gdb_signal_to_target): ... this.
6365 (default_gdb_signal_from_host): Rename to ...
6366 (default_gdb_signal_from_target): ... this.
6367 * corelow.c (core_open): Adjust to naming change. Replace comment.
6368 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6369 (gdb_signal_from_target): ... this. Adjust to
6370 default_gdb_signal_from_host naming change. Extend comment.
6371 (gdb_signal_to_host): Rename to ...
6372 (gdb_signal_to_target): ... this. Adjust to
6373 default_gdb_signal_to_host naming change.
6374 * gdbarch.h, gdbarch.c: Renegerate.
6375
6376 2012-05-24 Pedro Alves <palves@redhat.com>
6377
6378 PR gdb/7205
6379
6380 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6381
6382 2012-05-24 Pedro Alves <palves@redhat.com>
6383
6384 PR gdb/7205
6385
6386 Replace target_signal with gdb_signal throughout.
6387
6388 2012-05-24 Pedro Alves <palves@redhat.com>
6389
6390 PR tui/14159
6391
6392 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6393 string, instead of reusing the va_list argument.
6394
6395 2012-05-24 Tom Tromey <tromey@redhat.com>
6396
6397 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6398 Remove.
6399
6400 2012-05-23 Doug Evans <dje@google.com>
6401
6402 * symtab.c (search_symbols): Formatting fixes.
6403 (print_symbol_info): Formatting fixes.
6404
6405 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6406 int64_t change to leb128 API.
6407 (read_encoded_value, decode_frame_entry_1): Ditto.
6408 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6409 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6410 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6411 (execute_stack_op): Ditto.
6412 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6413 (safe_read_uleb128, safe_read_sleb128): Ditto.
6414 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6415 (dwarf2_compile_expr_to_ax): Ditto.
6416 (locexpr_describe_location_piece): Ditto.
6417 (disassemble_dwarf_expression): Ditto.
6418 (locexpr_describe_location_1): Ditto.
6419
6420 2012-05-23 Stan Shebs <stan@codesourcery.com>
6421 Kwok Cheung Yeung <kcy@codesourcery.com>
6422
6423 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6424 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6425 (mi-cmd-info.o): New rule.
6426 * osdata.h (info_osdata_command): New declaration.
6427 * osdata.c (info_osdata_command): Change to non-static.
6428 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6429 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6430 * mi/mi-cmd-info.c: New file.
6431
6432 2012-05-23 Doug Evans <dje@google.com>
6433
6434 * symtab.c (search_symbols): Pass NULL for file_matcher to
6435 expand_symtabs_matching if there are no files to match.
6436
6437 * gdbtypes.c (lookup_typename): Simplify.
6438
6439 2012-05-23 Pedro Alves <palves@redhat.com>
6440
6441 * arch-utils.h (default_target_signal_to_host): Delete.
6442 * arch-utils.c (default_target_signal_to_host): Delete.
6443 * gdbarch.sh (target_signal_to_host): Remove.
6444 * gdbarch.h, gdbarch.c: Regenerate.
6445
6446 2012-05-22 Doug Evans <dje@google.com>
6447
6448 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6449 "const gdb_byte *".
6450 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6451 (execute_cfa_program): Update to match API of leb128 functions.
6452 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6453 "const gdb_byte *".
6454 (read_unsigned_leb128, read_signed_leb128): Delete.
6455 (read_initial_length): Change type of buf argument to
6456 "const gdb_byte *".
6457 (read_encoded_value): Update to match API of leb128 functions.
6458 (decode_frame_entry): Change result to "const gdb_byte *", and
6459 similarly for "start" parameter.
6460 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6461 (dwarf2_build_frame_info): Change local frame_ptr to
6462 "const gdb_byte *".
6463 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6464 read_uleb128, read_sleb128. All callers updated.
6465 (safe_skip_leb128): New function.
6466 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6467 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6468 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6469 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6470 read_uleb128, read_sleb128.
6471 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6472 (execute_stack_op): Update to match API of leb128 functions.
6473 * dwarf2expr.h: #include "leb128.h".
6474 (read_uleb128, read_sleb128): Delete.
6475 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6476 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6477 * dwarf2loc.c (debug_loc_kind): New enum.
6478 (decode_debug_loc_addresses): New function.
6479 (decode_debug_loc_dwo_addresses): New function.
6480 (dwarf2_find_location_expression): Rewrite.
6481 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6482 (locexpr_describe_location_piece): Ditto.
6483 (disassemble_dwarf_expression): Ditto.
6484 (locexpr_describe_location_1): Ditto.
6485 (loclist_describe_location): Rewrite.
6486 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6487 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6488 (dwarf2_section_buffer_overflow_complaint): Renamed from
6489 dwarf2_macros_too_long_complaint. All callers updated.
6490 (skip_leb128): Delete.
6491 (init_cu_die_reader): Initialize reader->buffer_end.
6492 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6493 (skip_form_bytes): New arg buffer_end. All callers updated.
6494 Replace call to skip_leb128 with gdb_skip_leb128.
6495 (skip_unknown_opcode): New arg mac_end. All callers updated.
6496 (fill_in_loclist_baton): Initialize baton->from_dwo.
6497
6498 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6499
6500 * mips-linux-nat.c (mips_linux_read_description): Use a more
6501 verbose error message.
6502
6503 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6504
6505 * NEWS: Add MIPS/Linux DSP support.
6506 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6507 (SIGCONTEXT_DSPCTL): New macro.
6508 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6509 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6510 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6511 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6512 (N64_SIGCONTEXT_HI3): Likewise.
6513 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6514 (N64_SIGCONTEXT_LO3): Likewise.
6515 (N64_SIGCONTEXT_DSPCTL): Likewise.
6516 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6517 (mips_linux_o32_sigframe_init): Handle DSP registers.
6518 (mips_linux_n32n64_sigframe_init): Likewise.
6519
6520 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6521
6522 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6523 call to abort.
6524
6525 2012-05-22 Pedro Alves <palves@redhat.com>
6526
6527 * target.h (store_waitstatus): Move declaration ...
6528 * inf-child.h (store_waitstatus): ... here.
6529 * target.c: Move inclusion of gdb_wait.h, and ...
6530 (store_waitstatus): ... this ...
6531 * inf-child.c: ... here.
6532 * linux-nat.c: Include inf-child.h.
6533 * rs6000-nat.c: Include inf-child.h.
6534 * spu-linux-nat.c: Include inf-child.h.
6535
6536 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6537
6538 * tracepoint.c (start_tracing): Add missing i18n markup.
6539 (stop_tracing, set_trace_user): Ditto.
6540 (set_trace_notes, set_trace_stop_notes): Ditto.
6541
6542 2012-05-21 Tom Tromey <tromey@redhat.com>
6543
6544 PR c++/7173:
6545 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6546 types.
6547 * value.h (value_cast_pointers): Update.
6548 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6549 (value_cast): Update.
6550 (update_search_result): New function.
6551 (do_search_struct_field): New, from search_struct_field. Check
6552 for ambiguous results.
6553 (search_struct_field): Rewrite.
6554 * infcall.c (value_arg_coerce): Update.
6555 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6556 value_cast_pointers.
6557 * ada-lang.c (ada_convert_actual): Update.
6558
6559 2012-05-21 Tom Tromey <tromey@redhat.com>
6560
6561 * macroexp.c (macro_stringify): Terminate the string.
6562
6563 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6564
6565 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6566 Describe it.
6567 * auto-load.c (auto_load_expand_dir_vars): New function.
6568 (auto_load_safe_path_vec_update): Use it, remove the
6569 substitute_path_component call thanks to it.
6570 (auto_load_objfile_script): Remove the debug_file_directory processing.
6571 Use auto_load_expand_dir_vars, remove the substitute_path_component
6572 call thanks to it.
6573 * configure: Regenerate.
6574 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6575 path. Escape $ also for $debugdir.
6576 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6577 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6578
6579 2012-05-20 Doug Evans <dje@google.com>
6580
6581 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6582 before use. Check for symtab->includes == NULL before scanning it.
6583
6584 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6585
6586 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6587
6588 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6589
6590 * NEWS: Add microMIPS support and "set mips compression",
6591 "show mips compression" commands.
6592 * mips-tdep.h (mips_isa): New enum.
6593 (gdbarch_tdep): Add mips_isa.
6594 (mips_pc_is_mips16): Update prototype.
6595 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6596 * mips-tdep.c (mips_compression_mips16): New variable.
6597 (mips_compression_micromips): Likewise.
6598 (mips_compression_strings): Likewise.
6599 (mips_compression_string): Likewise.
6600 (is_mips16_isa, is_micromips_isa): New functions.
6601 (is_mips16_addr): Rename to...
6602 (is_compact_addr): ... this.
6603 (unmake_mips16_addr): Likewise to...
6604 (unmake_compact_addr): ... this.
6605 (make_mips16_addr): Likewise to...
6606 (make_compact_addr): ... this.
6607 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6608 functions.
6609 (mips_elf_make_msymbol_special): Handle microMIPS code.
6610 (msymbol_is_special): Rename to...
6611 (msymbol_is_mips16): ... this.
6612 (mips_make_symbol_special, mips_pc_is_mips16): Update
6613 accordingly.
6614 (msymbol_is_mips, msymbol_is_micromips): New functions.
6615 (mips16_to_32_reg): Rename to...
6616 (mips_reg3_to_reg): ... this.
6617 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6618 (mips_pc_isa): Likewise.
6619 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6620 code.
6621 (mips_fetch_instruction): Pass return status instead of printing
6622 an error message if requested. Handle microMIPS code. Bail out
6623 on an invalid ISA.
6624 (micromips_op): New macro.
6625 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6626 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6627 (b6s4_op, b7s3_reg): Likewise.
6628 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6629 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6630 (mips_insn_size): New function.
6631 (mips32_next_pc): Update mips_fetch_instruction call.
6632 (micromips_relative_offset7): New function.
6633 (micromips_relative_offset10): Likewise.
6634 (micromips_relative_offset16): Likewise.
6635 (micromips_pc_insn_size): Likewise.
6636 (micromips_bc1_pc): Likewise.
6637 (micromips_next_pc): Likewise.
6638 (unpack_mips16): Update mips_fetch_instruction call.
6639 (extended_mips16_next_pc): Update according to change to
6640 mips16_to_32_reg.
6641 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6642 code.
6643 (mips16_scan_prologue): Update mips_fetch_instruction call.
6644 Update according to change to mips16_to_32_reg.
6645 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6646 (mips_insn16_frame_base_sniffer): Likewise.
6647 (micromips_decode_imm9): New function.
6648 (micromips_scan_prologue): Likewise.
6649 (mips_micro_frame_cache): Likewise.
6650 (mips_micro_frame_this_id): Likewise.
6651 (mips_micro_frame_prev_register): Likewise.
6652 (mips_micro_frame_sniffer): Likewise.
6653 (mips_micro_frame_unwind): New variable.
6654 (mips_micro_frame_base_address): New function.
6655 (mips_micro_frame_base): New variable.
6656 (mips_micro_frame_base_sniffer): New function.
6657 (mips32_scan_prologue): Update mips_fetch_instruction call.
6658 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6659 rather than for MIPS16.
6660 (mips_insn32_frame_base_sniffer): Likewise.
6661 (mips_addr_bits_remove): Handle microMIPS code.
6662 (deal_with_atomic_sequence): Rename to...
6663 (mips_deal_with_atomic_sequence): ... this. Update the type
6664 of the variable used to hold an instruction. Remove the ISA bit
6665 check. Update mips_fetch_instruction call.
6666 (micromips_deal_with_atomic_sequence): New function.
6667 (deal_with_atomic_sequence): Likewise.
6668 (mips_about_to_return): Handle microMIPS code. Update
6669 mips_fetch_instruction call.
6670 (heuristic_proc_start): Check for the standard MIPS ISA rather
6671 than for MIPS16. Update mips_pc_is_mips16 and
6672 mips_fetch_instruction calls. Handle microMIPS code.
6673 (mips_push_dummy_code): Handle microMIPS code.
6674 (mips_eabi_push_dummy_call): Likewise.
6675 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6676 (mips_o64_push_dummy_call): Handle microMIPS code.
6677 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6678 (is_delayed): Remove function.
6679 (mips_single_step_through_delay): Replace the call to is_delayed
6680 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6681 Handle microMIPS code.
6682 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6683 microMIPS code.
6684 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6685 call.
6686 (micromips_in_function_epilogue_p): New function.
6687 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6688 call.
6689 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6690 Handle microMIPS.
6691 (gdb_print_insn_mips): Likewise.
6692 (mips_breakpoint_from_pc): Likewise.
6693 (mips_remote_breakpoint_from_pc): New function.
6694 (mips32_instruction_has_delay_slot): Simplify making use of the
6695 updated mips_fetch_instruction interface.
6696 (micromips_instruction_has_delay_slot): New function.
6697 (mips16_instruction_has_delay_slot): Simplify making use of the
6698 updated mips_fetch_instruction interface.
6699 (mips_adjust_breakpoint_address): Check for the standard MIPS
6700 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6701 calls. Handle microMIPS code.
6702 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6703 (mips_skip_trampoline_code): Handle microMIPS code.
6704 (global_mips_compression): New function.
6705 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6706 file flags. Register the microMIPS remote breakpoint handler
6707 and heuristic frame unwinder.
6708 (show_mips_compression): New function.
6709 (_initialize_mips_tdep): Add the "set mips compression" and
6710 "show mips compression" commands.
6711
6712 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6713
6714 * ada-lang.c:
6715 * ada-tasks.c:
6716 * ada-varobj.c:
6717 * amd64-darwin-tdep.c:
6718 * arm-symbian-tdep.c:
6719 * arm-tdep.c:
6720 * avr-tdep.c:
6721 * ax-gdb.c:
6722 * bfin-linux-tdep.c:
6723 * breakpoint.c:
6724 * c-valprint.c:
6725 * cli/cli-cmds.c:
6726 * coffread.c:
6727 * cp-support.c:
6728 * cris-tdep.c:
6729 * dwarf2-frame-tailcall.c:
6730 * dwarf2-frame.c:
6731 * dwarf2expr.c:
6732 * dwarf2loc.c:
6733 * dwarf2read.c:
6734 * elfread.c:
6735 * eval.c:
6736 * expprint.c:
6737 * f-valprint.c:
6738 * frv-tdep.c:
6739 * h8300-tdep.c:
6740 * hppa-hpux-tdep.c:
6741 * hppa-tdep.c:
6742 * hppanbsd-tdep.c:
6743 * i386-nto-tdep.c:
6744 * i386-tdep.c:
6745 * i387-tdep.c:
6746 * ia64-tdep.c:
6747 * jit.c:
6748 * linespec.c:
6749 * linux-tdep.c:
6750 * lm32-tdep.c:
6751 * m2-valprint.c:
6752 * m32c-tdep.c:
6753 * m32r-rom.c:
6754 * m32r-tdep.c:
6755 * m68k-tdep.c:
6756 * m68klinux-tdep.c:
6757 * mi/mi-main.c:
6758 * microblaze-tdep.c:
6759 * mips-linux-tdep.c:
6760 * mips-tdep.c:
6761 * mn10300-tdep.c:
6762 * p-valprint.c:
6763 * parse.c:
6764 * ppc-linux-tdep.c:
6765 * ppc-sysv-tdep.c:
6766 * printcmd.c:
6767 * python/py-finishbreakpoint.c:
6768 * python/py-inferior.c:
6769 * python/py-infthread.c:
6770 * python/py-type.c:
6771 * python/python.c:
6772 * remote-fileio.c:
6773 * remote-m32r-sdi.c:
6774 * remote-mips.c:
6775 * reverse.c:
6776 * rl78-tdep.c:
6777 * rs6000-aix-tdep.c:
6778 * rs6000-tdep.c:
6779 * s390-tdep.c:
6780 * score-tdep.c:
6781 * sh64-tdep.c:
6782 * skip.c:
6783 * solib-darwin.c:
6784 * solib-dsbt.c:
6785 * solib-frv.c:
6786 * sparc-tdep.c:
6787 * spu-multiarch.c:
6788 * spu-tdep.c:
6789 * stack.c:
6790 * symfile.c:
6791 * symtab.c:
6792 * tic6x-tdep.c:
6793 * tracepoint.c:
6794 * v850-tdep.c:
6795 * valarith.c:
6796 * valprint.c:
6797 * value.c:
6798 * xcoffread.c:
6799 * xtensa-tdep.c:
6800 * ada-lang.c:
6801 * ada-tasks.c:
6802 * ada-varobj.c:
6803 * amd64-darwin-tdep.c:
6804 * arm-symbian-tdep.c:
6805 * arm-tdep.c: Delete unused variables.
6806
6807 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6808
6809 Rename $ddir to $datadir.
6810 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6811 * auto-load.c (auto_load_safe_path_vec_update)
6812 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6813 * configure: Regenerate.
6814 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6815 Likewise. Remove the 'use $ddir' help string.
6816
6817 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6818
6819 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6820 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6821
6822 2012-05-18 Tom Tromey <tromey@redhat.com>
6823
6824 PR exp/13907:
6825 * valprint.h (struct value_print_options) <symbol_print>: New
6826 field.
6827 * valprint.c (user_print_options): Add default for symbol_print.
6828 (show_symbol_print): New function.
6829 (generic_val_print): Respect symbol_print.
6830 (_initialize_valprint): Add "print symbol" setting.
6831 * f-valprint.c (f_val_print): Respect symbol_print.
6832 * c-valprint.c (c_val_print): Respect symbol_print.
6833 * NEWS: Update.
6834 * printcmd.c (print_address_symbolic): Return int. Ignore some
6835 zero-size symbols.
6836 (print_address_demangle): Return int.
6837 * defs.h: (print_address_symbolic): Return int.
6838 * value.h (print_address_demangle): Return int.
6839
6840 2012-05-18 Tom Tromey <tromey@redhat.com>
6841
6842 * valprint.c (val_print_string): Don't print leading space.
6843 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6844 print space before string or vtbl.
6845 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6846 before string.
6847 * jv-valprint.c (java_value_print): Print space before string.
6848 * go-valprint.c (print_go_string): Print space before string.
6849 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6850 space before string.
6851 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6852 space before string or vtbl.
6853 * auxv.c (fprint_target_auxv): Print space after address.
6854
6855 2012-05-18 Tom Tromey <tromey@redhat.com>
6856
6857 * printcmd.c (print_address_demangle): Remove special case for 0.
6858
6859 2012-05-18 Tom Tromey <tromey@redhat.com>
6860
6861 * printcmd.c (print_address_demangle): Add 'opts' argument.
6862 * p-valprint.c (pascal_val_print): Update.
6863 * jv-valprint.c (java_val_print): Update.
6864 * value.h: Update.
6865 * valprint.c (generic_val_print): Update.
6866 (print_function_pointer_address): Add 'options' argument. Remove
6867 'addressprint' argument. Update.
6868 * m2-valprint.c (print_unpacked_pointer): Update.
6869 * gnu-v3-abi.c (print_one_vtable): Update.
6870 (gnuv3_print_method_ptr): Update.
6871 * f-valprint.c (f_val_print): Update.
6872 * cp-valprint.c (cp_print_value_fields): Update.
6873 * valprint.h (print_function_pointer_address): Update.
6874 * c-valprint.c (c_val_print): Update.
6875
6876 2012-05-18 Tom Tromey <tromey@redhat.com>
6877
6878 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6879 directly corresponding to the found psymtab.
6880 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6881 (dw2_find_pc_sect_symtab): Use it.
6882 * block.h (blockvector_contains_pc): Declare.
6883 * block.c (find_block_in_blockvector): New function.
6884 (blockvector_for_pc_sect): Use it.
6885 (blockvector_contains_pc): New function.
6886
6887 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6888
6889 * mips-tdep.h (mips_write_pc): New prototype.
6890 * mips-tdep.c (mips_write_pc): Make external, add description.
6891 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6892 add description.
6893
6894 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6895
6896 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6897 mips_regnum->pc.
6898 (mips_unwind_pc, mips_write_pc): Likewise.
6899 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6900 gdbarch_read_pc.
6901
6902 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6903
6904 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6905 proc_warn, proc_error, proc_get_status, proc_flags,
6906 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6907 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6908 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6909 proc_stop_process, proc_wait_for_stop, proc_run_process,
6910 proc_set_traced_signals, proc_set_traced_faults,
6911 proc_set_traced_sysentry, proc_set_traced_sysexit,
6912 proc_set_held_signals, proc_get_held_signals,
6913 proc_get_traced_signals, proc_get_traced_faults,
6914 proc_get_traced_sysentry, proc_get_traced_sysexit,
6915 proc_clear_current_fault, proc_set_current_signal,
6916 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6917 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6918 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6919 proc_get_current_thread, proc_get_current_thread,
6920 proc_get_current_thread, proc_update_threads,
6921 proc_update_threads, proc_update_threads, proc_update_threads,
6922 proc_iterate_over_threads, procfs_find_new_threads,
6923 procfs_pid_to_str): Make static. Remove advance declaration.
6924 (proc_cursig): Make static. Conditionalized defintion on
6925 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6926 (proc_syscall, proc_set_kill_on_last_close,
6927 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6928 proc_get_pending_signals, proc_get_signal_actions,
6929 proc_trace_signal, proc_ignore_signal): Delete.
6930
6931 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6932
6933 * coffread.c (cs_section_address): Passing proper argument for
6934 `bfd_get_section_vma'.
6935 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6936 `bfd_get_section_flags'.
6937 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6938 `bfd_get_section_vma'.
6939
6940 2012-05-16 Tom Tromey <tromey@redhat.com>
6941
6942 PR macros/13205:
6943 * macrotab.h: (macro_define_special): Declare.
6944 (enum macro_special_kind): New.
6945 (struct macro_definition) <argc, replacement>: Update comments.
6946 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6947 (macro_define_object_internal): New function.
6948 (macro_define_object): Use it.
6949 (macro_define_special): New function.
6950 (fixup_definition): New function.
6951 (macro_lookup_definition, foreach_macro_in_scope)
6952 (foreach_macro): Use fixup_definition.
6953 * macroexp.h (macro_stringify): Declare.
6954 * macroexp.c (free_buffer_return_text): New function.
6955 (stringify): Constify "arg".
6956 (macro_stringify): New function.
6957 * dwarf2read.c (macro_start_file): Call macro_define_special.
6958
6959 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6960 Maciej W. Rozycki <macro@mips.com>
6961
6962 * breakpoint.h (bp_location): Add related_address member.
6963 * inferior.h (get_return_value): Take a pointer to struct value
6964 instead of struct type for the function requested.
6965 * value.h (using_struct_return): Likewise.
6966 * gdbarch.sh (return_value): Take a pointer to struct value
6967 instead of struct type for the function requested.
6968 * breakpoint.c (set_breakpoint_location_function): Initialize
6969 related_address for bp_gnu_ifunc_resolver breakpoints.
6970 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6971 requested function's address to gdbarch_return_value.
6972 * eval.c (evaluate_subexp_standard): Pass the requested
6973 function's address to using_struct_return.
6974 * infcall.c (call_function_by_hand): Pass the requested
6975 function's address to using_struct_return and
6976 gdbarch_return_value.
6977 * infcmd.c (get_return_value): Take a pointer to struct value
6978 instead of struct type for the function requested.
6979 (print_return_value): Update accordingly.
6980 (finish_command_continuation): Likewise.
6981 * stack.c (return_command): Pass the requested function's
6982 address to using_struct_return and gdbarch_return_value.
6983 * value.c (using_struct_return): Take a pointer to struct value
6984 instead of struct type for the function requested. Pass the
6985 requested function's address to gdbarch_return_value.
6986 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6987 New function_value member, replacing function_type.
6988 (bpfinishpy_dealloc): Update accordingly.
6989 (bpfinishpy_pre_stop_hook): Likewise.
6990 (bpfinishpy_init): Likewise. Record the requested function's
6991 address.
6992 * mips-tdep.c (mips_fval_reg): New enum.
6993 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6994 words put in GP registers.
6995 (mips_o64_push_dummy_call): Update a comment.
6996 (mips_o32_return_value): Take a pointer to struct value instead
6997 of struct type for the function requested and use it to check if
6998 using the MIPS16 calling convention. Return the designated
6999 general purpose registers for floating-point values returned in
7000 MIPS16 mode.
7001 (mips_o64_return_value): Likewise.
7002 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7003 (ppc_sysv_abi_broken_return_value): Likewise.
7004 (ppc64_sysv_abi_return_value): Likewise.
7005 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7006 value instead of struct type for the function requested.
7007 * amd64-tdep.c (amd64_return_value): Likewise.
7008 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7009 * arm-tdep.c (arm_return_value): Likewise.
7010 * avr-tdep.c (avr_return_value): Likewise.
7011 * bfin-tdep.c (bfin_return_value): Likewise.
7012 * cris-tdep.c (cris_return_value): Likewise.
7013 * frv-tdep.c (frv_return_value): Likewise.
7014 * h8300-tdep.c (h8300_return_value): Likewise.
7015 (h8300h_return_value): Likewise.
7016 * hppa-tdep.c (hppa32_return_value): Likewise.
7017 (hppa64_return_value): Likewise.
7018 * i386-tdep.c (i386_return_value): Likewise.
7019 * ia64-tdep.c (ia64_return_value): Likewise.
7020 * iq2000-tdep.c (iq2000_return_value): Likewise.
7021 * lm32-tdep.c (lm32_return_value): Likewise.
7022 * m32c-tdep.c (m32c_return_value): Likewise.
7023 * m32r-tdep.c (m32r_return_value): Likewise.
7024 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7025 * m68k-tdep.c (m68k_return_value): Likewise.
7026 (m68k_svr4_return_value): Likewise.
7027 * m88k-tdep.c (m88k_return_value): Likewise.
7028 * mep-tdep.c (mep_return_value): Likewise.
7029 * microblaze-tdep.c (microblaze_return_value): Likewise.
7030 * mn10300-tdep.c (mn10300_return_value): Likewise.
7031 * moxie-tdep.c (moxie_return_value): Likewise.
7032 * mt-tdep.c (mt_return_value): Likewise.
7033 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7034 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7035 (ppc_sysv_abi_broken_return_value): Likewise.
7036 (ppc64_sysv_abi_return_value): Likewise.
7037 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7038 * rl78-tdep.c (rl78_return_value): Likewise.
7039 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7040 * rx-tdep.c (rx_return_value): Likewise.
7041 * s390-tdep.c (s390_return_value): Likewise.
7042 * score-tdep.c (score_return_value): Likewise.
7043 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7044 (sh_return_value_fpu): Likewise.
7045 * sh64-tdep.c (sh64_return_value): Likewise.
7046 * sparc-tdep.c (sparc32_return_value): Likewise.
7047 * sparc64-tdep.c (sparc64_return_value): Likewise.
7048 * spu-tdep.c (spu_return_value): Likewise.
7049 * tic6x-tdep.c (tic6x_return_value): Likewise.
7050 * v850-tdep.c (v850_return_value): Likewise.
7051 * vax-tdep.c (vax_return_value): Likewise.
7052 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7053 * xtensa-tdep.c (xtensa_return_value): Likewise.
7054 * gdbarch.c: Regenerate.
7055 * gdbarch.h: Regenerate.
7056
7057 2012-05-15 Tom Tromey <tromey@redhat.com>
7058
7059 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7060
7061 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7062
7063 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7064 of command in two error message.
7065
7066 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7067
7068 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7069
7070 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7071
7072 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7073
7074 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7075
7076 * NEWS (show auto-load scripts-directory): Add forgotten command.
7077
7078 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7079
7080 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7081 parameters.
7082
7083 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7084
7085 * amd64-tdep.c: Include features/i386/x32.c and
7086 features/i386/x32-avx.c.
7087 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7088 initialize_tdesc_x32_avx.
7089
7090 2012-05-14 Stan Shebs <stan@codesourcery.com>
7091
7092 Add dynamic printf.
7093 * breakpoint.h (enum bptype): New type bp_dprintf.
7094 (struct breakpoint): New field extra_string.
7095 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7096 (create_breakpoint): Add extra_string arg.
7097 * breakpoint.c (dprintf_breakpoint_ops): New.
7098 (is_breakpoint): Add bp_dprintf.
7099 (bpstat_what): Add dprintf case.
7100 (bptype_string): Ditto.
7101 (print_one_breakpoint_location): Ditto.
7102 (init_bp_location): Ditto.
7103 (bkpt_print_mention): Ditto.
7104 (dprintf_style_enums): New array.
7105 (dprintf_style): New global.
7106 (dprintf_function): New global.
7107 (dprintf_channel): New global.
7108 (update_dprintf_command_list): New function.
7109 (update_dprintf_commands): New function.
7110 (init_breakpoint_sal): Add extra_string argument, handle it.
7111 (create_breakpoint_sal): Add extra_string argument.
7112 (create_breakpoints_sal): Add extra_string argument, update callers.
7113 (find_condition_and_thread): Add extra argument.
7114 (create_breakpoint): Add extra_string argument, record it.
7115 (dprintf_command): New function.
7116 (break_command_1): Add arg to create_breakpoint call.
7117 (handle_gnu_v3_exceptions): Ditto.
7118 (trace_command): Ditto.
7119 (ftrace_command): Ditto.
7120 (strace_command): Ditto.
7121 (bkpt_print_mention): Add dprintf case.
7122 (create_breakpoint_sal_default): Add extra_string argument.
7123 (_initialize_breakpoint): Add new commands.
7124 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7125 * python/py-breakpoint.c (bppy_init): Ditto.
7126 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7127
7128 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7129
7130 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7131
7132 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7133
7134 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7135 unsigned long long.
7136
7137 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7138
7139 Add a new function gdb.find_pc_line to the Python API.
7140 * NEWS (Python Scripting): Add entry about the new function.
7141 * python/python.c (gdbpy_find_pc_line): New function which
7142 implements gdb.find_pc_line.
7143 (GdbMethods): Add entry for the new function.
7144
7145 2012-05-12 Pedro Alves <palves@redhat.com>
7146
7147 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7148 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7149
7150 2012-05-12 Eli Zaretskii <eliz@gnu.org>
7151
7152 * inferior.c: Include completer.h
7153 (initialize_inferiors): Set completer of add-inferior to
7154 filename_completer.
7155
7156 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7157
7158 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7159 gdbarch_ptr_bit for x32 core dump.
7160
7161 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7162
7163 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7164 and features/i386/x32-avx-linux.c.
7165
7166 2012-05-11 Stan Shebs <stan@codesourcery.com>
7167 Kwok Cheung Yeung <kcy@codesourcery.com>
7168
7169 * NEWS: Describe new info os commands.
7170 * common/linux-osdata.c (PID_T, TIME_T): Define.
7171 (MAX_PID_T_STRLEN): New.
7172 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7173 MAX_PID_T_STRLEN.
7174 (command_from_pid): Add comment. Change to use PID_T.
7175 (commandline_from_pid): Change to use PID_T.
7176 (user_from_pid): Add comment.
7177 (get_process_owner): Add comment. Change to use PID_T and
7178 MAX_PID_T_STRLEN.
7179 (get_number_of_cpu_cores): Add comment.
7180 (get_cores_used_by_process): Add comment. Change to use PID_T and
7181 MAX_PID_T_STRLEN.
7182 (linux_xfer_osdata_processes): Change to use PID_T and
7183 MAX_PID_T_STRLEN.
7184 (compare_processes): New function.
7185 (linux_xfer_osdata_processgroups): New function.
7186 (linux_xfer_osdata_threads): Change to use PID_T.
7187 (linux_xfer_osdata_fds): New function.
7188 (format_socket_state, print_sockets): New functions.
7189 (union socket_addr): New union.
7190 (linux_xfer_osdata_isockets): New function.
7191 (time_from_time_t, group_from_gid): New functions.
7192 (linux_xfer_osdata_shm): New function.
7193 (linux_xfer_osdata_sem): New function.
7194 (linux_xfer_osdata_msg): New function.
7195 (linux_xfer_osdata_modules): New function.
7196 (osdata_table): Add new entries.
7197 * common/buffer.c (buffer_xml_printf): Add support for long and
7198 long long format specifiers.
7199
7200 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7201
7202 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7203 (tdesc_x32_avx_linux): Likewise.
7204
7205 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7206
7207 Implement multi-component --with-auto-load-dir.
7208 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7209 entries.
7210 (--with-auto-load-safe-path): Update the default value description.
7211 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7212 New.
7213 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7214 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7215 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7216 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7217 "set auto-load scripts-directory".
7218 * config.in: Regenerate.
7219 * configure: Regenerate.
7220 * configure.ac (--with-auto-load-dir): New configure option.
7221 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7222
7223 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7224
7225 Provide $ddir substitution for --with-auto-load-safe-path.
7226 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7227 entries.
7228 * auto-load.c: Include observer.h.
7229 (auto_load_safe_path_vec_update): Call substitute_path_component for
7230 each component. New variable ddir_subst.
7231 (auto_load_gdb_datadir_changed): New function.
7232 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7233 AUTO_LOAD_SAFE_PATH. New comment.
7234 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7235 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7236 * config.in: Regenerate.
7237 * configure: Regenerate.
7238 * configure.ac (--auto-load-safe-path): Rename
7239 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7240 GDB_DATADIR/auto-load.
7241 * defs.h (substitute_path_component): New declaration.
7242 * top.c: Include observer.h.
7243 (set_gdb_datadir): New function.
7244 (init_main): Install it for "set data-directory".
7245 * utils.c (substitute_path_component): New function.
7246
7247 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7248
7249 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7250 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7251 DEBUG_FILE_DIRECTORY. Handle multiple components of
7252 DEBUG_FILE_DIRECTORY.
7253
7254 2012-05-10 Tom Tromey <tromey@redhat.com>
7255
7256 * dwarf2read.c (recursively_write_psymbols): New function.
7257 (write_psymtabs_to_index): Use it.
7258
7259 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7260 field.
7261 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7262 (load_partial_comp_unit): Update.
7263 (queue_comp_unit): Add argument 'pretend_language'.
7264 (process_queue): Update.
7265 (psymtab_to_symtab_1): Skip dependencies that have a user.
7266 (load_partial_comp_unit_reader): Give meaning to the 'data'
7267 argument.
7268 (load_full_comp_unit): Add 'pretend_language' argument.
7269 (process_full_comp_unit): Add 'pretend_language' argument. Set
7270 language on CU.
7271 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7272 Update.
7273 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7274 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7275 Update.
7276 (prepare_one_comp_unit): Add 'pretend_language' argument.
7277
7278 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7279 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7280 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7281 (dw2_do_instantiate_symtab): Check whether symtab was read in
7282 before queueing.
7283 (dw2_instantiate_symtab): Add assertion. Call
7284 process_cu_includes.
7285 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7286 (partial_symtab_p): New typedef.
7287 (set_partial_user): New function.
7288 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7289 (scan_partial_symbols): Add imported CU to imported_symtabs.
7290 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7291 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7292 (get_symtab, recursively_compute_inclusions)
7293 (compute_symtab_includes, process_cu_includes)
7294 (process_imported_unit_die): New functions.
7295 (process_die) <DW_TAG_imported_unit>: New case.
7296 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7297
7298 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7299 comment.
7300 (struct partial_die_info) <locdesc>: Remove.
7301 <d>: New field.
7302 (process_psymtab_comp_unit): Add 'read_partial' argument.
7303 Update.
7304 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7305 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7306 (add_partial_symbol): Update.
7307 (process_die): Handle DW_TAG_partial_unit.
7308 (read_file_scope): Update comment.
7309 (load_partial_dies): Handle DW_TAG_imported_unit.
7310 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7311 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7312
7313 2012-05-10 Tom Tromey <tromey@redhat.com>
7314
7315 * cc-with-dwz.sh: New file.
7316
7317 2012-05-10 Tom Tromey <tromey@redhat.com>
7318
7319 * symtab.h (struct symtab) <includes, user>: New fields.
7320 * block.h (struct block_iterator) <d, idx, which>: New fields.
7321 * block.c (initialize_block_iterator, find_iterator_symtab)
7322 (block_iterator_step, block_iter_name_step)
7323 (block_iter_match_step): New functions.
7324 (block_iterator_first, block_iterator_next)
7325 (block_iter_name_first, block_iter_name_next)
7326 (block_iter_match_first, block_iter_match_next): Rewrite.
7327 (get_block_symtab): New function.
7328
7329 2012-05-10 Tom Tromey <tromey@redhat.com>
7330
7331 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7332 set_block_symtab.
7333 * jit.c (finalize_symtab): Use allocate_global_block,
7334 set_block_symtab.
7335 * buildsym.c (finish_block_internal): New function, from old
7336 finish_block.
7337 (finish_block): Rewrite.
7338 (end_symtab): Use finish_block_internal, set_block_symtab.
7339 * block.h (struct global_block): New.
7340 (allocate_global_block, set_block_symtab): Declare.
7341 * block.c (allocate_global_block, set_block_symtab): New
7342 functions.
7343
7344 2012-05-10 Tom Tromey <tromey@redhat.com>
7345
7346 * psymtab.c (partial_map_expand_apply): Add assertion.
7347 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7348 (psymtab_to_symtab): Find unshared psymtab.
7349 (dump_psymtab): Print including psymtabs.
7350 (recursively_search_psymtabs): New function.
7351 (expand_symtabs_matching_via_partial): Use it.
7352 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7353 fields.
7354 (enum psymtab_search_status): New.
7355
7356 2012-05-10 Tom Tromey <tromey@redhat.com>
7357
7358 * tracepoint.c (scope_info): Update.
7359 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7360 (find_pc_sect_symtab, search_symbols)
7361 (default_make_symbol_completion_list_break_on)
7362 (make_file_symbol_completion_list): Update.
7363 * symmisc.c (dump_symtab_1): Update.
7364 * stack.c (print_frame_args, iterate_over_block_locals)
7365 (print_frame_labels, iterate_over_block_arg_vars): Update.
7366 * python/py-block.c (block_object) <dict>: Remove.
7367 <block>: New field.
7368 <iter>: Change type.
7369 (blpy_iter): Update.
7370 (blpy_block_syms_iternext): Update.
7371 * psymtab.c (map_block): Use block iterators.
7372 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7373 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7374 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7375 * infrun.c (check_exception_resume): Update.
7376 * cp-support.c (make_symbol_overload_list_block): Update.
7377 * coffread.c (patch_opaque_types): Update.
7378 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7379 * block.h (struct block_iterator): New.
7380 (block_iterator_first, block_iterator_next, block_iter_name_first)
7381 (block_iter_name_next, block_iter_match_first)
7382 (block_iter_match_next): Declare.
7383 (ALL_BLOCK_SYMBOLS): Redefine.
7384 * block.c (block_iterator_first, block_iterator_next)
7385 (block_iter_name_first, block_iter_name_next)
7386 (block_iter_match_first, block_iter_match_next): New functions.
7387 * ada-lang.c (ada_add_block_symbols)
7388 (ada_make_symbol_completion_list): Use block iterator.
7389
7390 2012-05-10 Tom Tromey <tromey@redhat.com>
7391
7392 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7393 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7394 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7395 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7396 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7397 Update.
7398
7399 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7400
7401 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7402 print-file-var-lib2.c, print-file-var-main.c and
7403 print-file-var.exp (located in gdb/testsuite/gdb.base).
7404
7405 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7406
7407 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7408 try locating the symbol in the symbol's own objfile first, before
7409 extending the search to all objfiles.
7410 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7411 out of lookup_symbol_aux_symtabs.
7412 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7413 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7414 Do not search EXCLUDE_OBJFILE.
7415 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7416 (lookup_symbol_global): Search for matches in the block's objfile
7417 first, before searching all other objfiles.
7418
7419 2012-05-10 Tristan Gingold <gingold@adacore.com>
7420
7421 * printcmd.c (set_command): Add pre/post inc/dec.
7422
7423 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7424
7425 * gdb.1: Document -ex option.
7426
7427 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7428
7429 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7430 * inferior.h (AT_SYMBOL): Delete.
7431
7432 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7433
7434 * mips-tdep.c (mips_push_dummy_code): New function.
7435 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7436 ON_STACK and install mips_push_dummy_code as our gdbarch
7437 push_dummy_code routine.
7438
7439 2012-05-09 Pedro Alves <palves@redhat.com>
7440
7441 * target.c (set_maintenance_target_async_permitted): Rename to ...
7442 (set_target_async_command): ... this.
7443 (show_maintenance_target_async_permitted): Rename to ...
7444 (show_target_async_command): ... this.
7445 (initialize_targets): Adjust.
7446
7447 2012-05-08 Doug Evans <dje@google.com>
7448
7449 * go-exp.y (classify_name): Add missing assignment of fields of
7450 yylval.ssym.
7451
7452 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7453
7454 Display the ">" prompt in interactive mode while reading canned
7455 commands, even when the current interpreter is MI.
7456
7457 * interps.c (interp_set_temp): New function.
7458
7459 * interps.h (interp_set_temp): Add prototype.
7460
7461 * cli/cli-script.c (restore_interp): New cleanup function.
7462 (read_command_lines): Temporarily override the current interpreter
7463 with CLI and arrange for restoring the original one.
7464
7465 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7466
7467 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7468
7469 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7470
7471 * probe.c (parse_probes): Move conditional to check for
7472 debuginfo files from here...
7473 * stap-probe.c (stap_get_probes): ... to here.
7474
7475 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7476 H.J. Lu <hongjiu.lu@intel.com>
7477
7478 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7479 `movl %esp, %ebp' for the X32 ABI.
7480
7481 2012-05-07 Tom Tromey <tromey@redhat.com>
7482
7483 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7484 get_DW_TAG_name.
7485 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7486 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7487 (dwarf_stack_op_name): Remove.
7488 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7489 (decode_locdesc): Use get_DW_OP_name.
7490 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7491 (dwarf2_compile_expr_to_ax): Likewise.
7492 (disassemble_dwarf_expression): Likewise.
7493 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7494
7495 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7496
7497 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7498 (sh_linux_sigtramp_cache): New function.
7499 (sh_linux_sigreturn_init): New function.
7500 (sh_linux_rt_sigreturn_init): New function.
7501 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7502 patterns.
7503 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7504 syscall codes.
7505 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7506 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7507 (sh_linux_init_abi): Add init calls to register new tramp_frame
7508 definitions under 32-bit SH, update comments.
7509
7510 2012-05-07 Pedro Alves <palves@redhat.com>
7511
7512 PR gdb/10952
7513
7514 * amd64-linux-tdep.c: Include glibc-tdep.h.
7515 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7516 gdbarch_skip_solib_resolver callback.
7517
7518 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7519
7520 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7521 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7522 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7523 (add_auto_load_safe_path): Change the error message.
7524 (_initialize_auto_load): Change the "safe-path" help text.
7525 * configure: Regenerate
7526 * configure.ac (--without-auto-load-safe-path): Set
7527 WITH_AUTO_LOAD_SAFE_PATH to /.
7528
7529 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7530
7531 * stap-probe.h: Do not include unecessary `probe.h'.
7532
7533 2012-05-05 Alan Modra <amodra@gmail.com>
7534
7535 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7536 bfd_und_section_ptr.
7537 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7538 and bfd_com_section_ptr.
7539
7540 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7541
7542 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7543
7544 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7545
7546 * windows-nat.h (segment_register_p_ftype): New typedef.
7547 (windows_set_segment_register_p): Add declaration.
7548 * windows-nat.c (segment_register_p): New static global.
7549 (windows_set_segment_register_p): New function.
7550 (do_windows_fetch_inferior_registers): Add special handling
7551 for segment registers.
7552 * amd64-windows-nat.c: #include "amd64-tdep.h".
7553 (amd64_windows_segment_register_p): New function.
7554 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7555 * i386-windows-nat.c: #include "i386-tdep.h".
7556 (i386_windows_segment_register_p): New function.
7557 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7558
7559 2012-05-04 Tristan Gingold <gingold@adacore.com>
7560
7561 * printcmd.c (set_command): Emit a warning if the expression is not
7562 an assignment.
7563
7564 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7565
7566 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7567 Make static.
7568
7569 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7570
7571 * stap-probe.c (stap_is_operator): Change declaration.
7572 (stap_get_opcode): Change return value.
7573 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7574 `stap_parse_argument_1'.
7575
7576 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7577
7578 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7579 debug log.
7580
7581 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7582
7583 Add two new methods global_block and static_block to gdb.Symtab
7584 objects.
7585 * NEWS (Python scripting): Add entry about the new methods.
7586 * python/py-symtab.c (stpy_global_block): New function which
7587 implements the gdb.Symtab.global_block() method.
7588 (stpy_static_block): New function which implements the
7589 gdb.Symtab.static_block() method.
7590 (symtab_object_methods): Add entries for the two new methods.
7591
7592 2012-05-03 Doug Evans <dje@google.com>
7593
7594 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7595 files.
7596
7597 2012-05-03 Yao Qi <yao@codesourcery.com>
7598
7599 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7600 space.
7601 (i386_process_record): Ditto.
7602
7603 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7604
7605 * infcall.c (unwind_on_signal_p): Make static.
7606
7607 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7608
7609 * sol-thread.c (solaris_pid_to_str): Make static.
7610 (_initialize_sol_thread): Add prototype.
7611
7612 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7613
7614 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7615
7616 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7617
7618 * MAINTAINERS: Remove myself.
7619
7620 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7621
7622 Fix --without-auto-load-safe-path for MS-Windows host platform.
7623 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7624
7625 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7626
7627 * gdb_curses.h: Undefine KEY_EVENT before including curses
7628 headers. Move "#undef MOUSE_MOVED" before any curses header
7629 inclusion.
7630
7631 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7632
7633 * features/i386/i386-mmx-linux.c: Regenerate.
7634 * features/rs6000/powerpc-32.c: Likewise.
7635 * features/rs6000/powerpc-32l.c: Likewise.
7636 * features/rs6000/powerpc-403.c: Likewise.
7637 * features/rs6000/powerpc-403gc.c: Likewise.
7638 * features/rs6000/powerpc-405.c: Likewise.
7639 * features/rs6000/powerpc-505.c: Likewise.
7640 * features/rs6000/powerpc-601.c: Likewise.
7641 * features/rs6000/powerpc-602.c: Likewise.
7642 * features/rs6000/powerpc-603.c: Likewise.
7643 * features/rs6000/powerpc-604.c: Likewise.
7644 * features/rs6000/powerpc-64.c: Likewise.
7645 * features/rs6000/powerpc-64l.c: Likewise.
7646 * features/rs6000/powerpc-750.c: Likewise.
7647 * features/rs6000/powerpc-860.c: Likewise.
7648 * features/rs6000/powerpc-e500.c: Likewise.
7649 * features/rs6000/powerpc-e500l.c: Likewise.
7650 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7651 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7652 * features/rs6000/rs6000.c: Likewise.
7653
7654 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7655
7656 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7657 variable.
7658 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7659 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7660 (stap_parse_argument) <e>: Likewise.
7661 (handle_stap_probe) <byte_order>: Likewise.
7662
7663 2012-04-30 Doug Evans <dje@google.com>
7664
7665 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7666 init_and_read_dies_worker. All callers updated.
7667 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7668 replaced with init_cutu_and_read_dies.
7669 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7670 (find_partial_die): Remove FIXME. Don't free current CU.
7671
7672 2012-04-30 Sterling Augustine <saugustine@google.com>
7673
7674 * contrib: New directory.
7675 * contrib/test_pubnames_and_indexes.py: New file.
7676
7677 2012-04-30 Doug Evans <dje@google.com>
7678
7679 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7680 All callers updated.
7681 (init_cu_die_reader): Verify the section is non-empty.
7682 (dwarf_decode_line_header): Don't dereference section->asection
7683 until we know the section is present.
7684
7685 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7686
7687 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7688 probes.
7689
7690 2012-04-29 Yao Qi <yao@codesourcery.com>
7691
7692 * gdb-code-style.el: New hook gdb-markup-hook
7693 and gdb-comment-hook.
7694
7695 2012-04-28 Doug Evans <dje@google.com>
7696
7697 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7698 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7699 objfile->obfd.
7700 * symfile.h (dwarf2_debug_sections): New member addr.
7701 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7702 (ctx_no_get_addr_index): New function.
7703 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7704 (ctx_no_get_addr_index): Declare.
7705 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7706 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7707 (dwarf_expr_ctx_funcs): Update.
7708 (needs_get_addr_index): New function.
7709 (needs_frame_ctx_funcs): Update.
7710 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7711 * dwarf2read.c: #include "gdbcore.h".
7712 (dwarf2_per_objfile): New members addr, dwo_files.
7713 (dwarf2_elf_names): Add entry for addr.
7714 (struct dwo_section_names): New type.
7715 (dwo_section_names): New static global.
7716 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7717 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7718 old debug_types_section member updated to use this.
7719 Rename member debug_types_section to info_or_types_section,
7720 all uses updated.
7721 (signatured_type): Rename member type_offset to type_offset_in_tu,
7722 all uses updated. New member type_offset_in_section.
7723 (struct dwo_sections): New type.
7724 (struct dwo_unit): New type.
7725 (struct dwo_file): New type.
7726 (die_reader_specs): New member dwo_file.
7727 (dwarf2_locate_sections): Watch for .debug_addr.
7728 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7729 (dwarf2_read_section): Get bfd of section from bfd's asection,
7730 instead of objfile.
7731 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7732 (create_signatured_type_table_from_index): Initialize
7733 sig_type->info_or_types_section.
7734 (dw2_get_file_names): Statement lists for type units with DWO files
7735 live in the DWO file.
7736 (create_debug_types_hash_table): New function.
7737 (create_all_type_units): Rewrite.
7738 (init_cu_die_reader): New arg dwo_file, all callers updated.
7739 (init_and_read_dies_worker): Get section from
7740 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7741 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7742 continue reading the CU/TU from there.
7743 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7744 updated. Get section from this_cu->info_or_types_section.
7745 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7746 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7747 DW_FORM_GNU_str_index.
7748 (hash_dwo_file, eq_dwo_file): New functions.
7749 (allocate_dwo_file_hash_table): New function.
7750 (hash_dwo_unit, eq_dwo_unit): New functions.
7751 (allocate_dwo_unit_table): New function.
7752 (dwarf2_locate_dwo_sections): New function.
7753 (struct create_dwo_info_table_data): New type.
7754 (create_debug_info_hash_table_reader): New function.
7755 (create_debug_info_hash_table): New function.
7756 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7757 (lookup_dwo_file): New function.
7758 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7759 (free_dwo_file, free_dwo_file_cleanup): New functions.
7760 (free_dwo_file_from_slot, free_dwo_files): New functions.
7761 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7762 (dwarf2_record_block_ranges): Ditto.
7763 (read_partial_die): Ditto.
7764 (process_enumeration_scope): Update to use type_offset_in_section.
7765 (read_full_die_1): New function.
7766 (read_full_die): Rewrite.
7767 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7768 DW_FORM_GNU_str_index.
7769 (read_addr_index_1, read_addr_index): New functions.
7770 (read_addr_index_from_leb128): New function.
7771 (struct dwarf2_read_addr_index_data): New type.
7772 (dwarf2_read_addr_index_reader): New function.
7773 (dwarf2_read_addr_index): New function.
7774 (read_str_index): New function.
7775 (leb128_size): New function.
7776 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7777 If processing a type unit from a DWO file, get the line section
7778 from the DWO file.
7779 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7780 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7781 DW_FORM_GNU_str_index.
7782 (lookup_die_type): Check whether section offset of type's die is
7783 known before looking it up. Remove assert. Condition can
7784 legimately happen for inter-cu type references.
7785 (dwarf_attr_name): Handle Fission attributes.
7786 (dwarf_form_name): Handle Fission forms.
7787 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7788 DW_FORM_GNU_str_index.
7789 (follow_die_sig): Update to use type_offset_in_section.
7790 (decode_locdesc): New case DW_OP_GNU_addr_index.
7791 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7792 DW_FORM_GNU_str_index.
7793 (cu_debug_loc_section): New function.
7794 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7795 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7796 Free DWO files if present.
7797 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7798
7799 Refactor DIE reading.
7800 * dwarf2read.c (dwarf2_per_objfile): Replace members
7801 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7802 (die_reader_specs): New member "die_section". Temporarily make
7803 member "buffer" non-const, pending constifying all info_ptr uses.
7804 (die_reader_func_ftype): New typedef.
7805 (dw2_get_file_names_reader): New function.
7806 (dw2_get_file_names): Rewrite.
7807 (read_and_check_type_unit_head): Rename arg type_offset to
7808 type_offset_in_tu.
7809 (create_all_type_units): Improve debugging message.
7810 Improve dummy type unit check.
7811 (init_cu_die_reader): New arg "section". All callers updated.
7812 (init_and_read_dies_worker): New function.
7813 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7814 (init_cutu_and_read_dies_no_follow): New function.
7815 (init_cutu_and_read_dies_simple): New function.
7816 (process_psymtab_comp_unit_reader): New function.
7817 (process_psymtab_comp_unit): Delete args section,
7818 is_debug_types_section. Rewrite. All callers updated.
7819 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7820 All callers updated. Rewrite.
7821 (load_partial_comp_unit_reader): New function.
7822 (load_partial_comp_unit): Rewrite.
7823 (skip_children): New arg reader. Delete args buffer, cu.
7824 All callers updated.
7825 (skip_one_die): New arg reader. Delete args buffer, cu.
7826 All callers updated.
7827 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7828 All callers updated.
7829 (load_full_comp_unit_reader): New function.
7830 (load_full_comp_unit): Rewrite.
7831 (read_comp_unit): Delete.
7832 (read_die_and_children_1): Delete, contents moved ...
7833 (read_die_and_children): ... here.
7834 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7835 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7836 All callers updated.
7837 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7838 All callers updated.
7839 (find_partial_die): Rewrite load_all_dies support.
7840 (read_attribute_value): New arg reader. Delete args abfd, cu.
7841 All callers updated.
7842 (read_attribute): New arg reader. Delete args abfd, cu.
7843 All callers updated.
7844 (load_full_type_unit): Add assert.
7845 (read_signatured_type_reader): New function.
7846 (read_signatured_type): Rewrite.
7847 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7848 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7849 All callers updated. Set per_cu->cu = NULL after freeing it.
7850 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7851 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7852 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7853 (set_die_type): Update.
7854 (get_die_type_at_offset): Update.
7855 (read_file_scope): Call prepare_one_comp_unit.
7856 (read_type_unit_scope): Ditto.
7857 (prepare_one_comp_unit): Set producer if present.
7858
7859 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7860
7861 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7862 gettext function on `error'.
7863
7864 2012-04-27 Doug Evans <dje@google.com>
7865
7866 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7867 is empty.
7868
7869 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7870 Tom Tromey <tromey@redhat.com>
7871
7872 * breakpoint.c (struct breakpoint_objfile_data)
7873 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7874 <exception_probes>: New fields.
7875 (free_breakpoint_probes): New function.
7876 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7877 `_Unwind_DebugHook'.
7878 (create_exception_master_breakpoint): Likewise.
7879 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7880 * infrun.c: Including necessary header files for handling SystemTap
7881 probes.
7882 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7883 via SystemTap probes.
7884 (check_exception_resume): Remove `func' argument. Handle exception
7885 unwinding breakpoint set via a SystemTap probe.
7886 (insert_exception_resume_from_probe): New function.
7887
7888 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7889 Tom Tromey <tromey@redhat.com>
7890 Jan Kratochvil <jan.kratochvil@redhat.com>
7891
7892 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7893 (COMMON_OBS): Likewise.
7894 (HFILES_NO_SRCDIR): Add `probe'.
7895 * NEWS: Mention support for static and SystemTap probes.
7896 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7897 SystemTap probes' arguments parser.
7898 * arm-linux-tdep.c: Including headers needed to perform the parsing
7899 of SystemTap probes' arguments.
7900 (arm_stap_is_single_operand): New function.
7901 (arm_stap_parse_special_token): Likewise.
7902 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7903 probes' arguments parser.
7904 * ax-gdb.c (require_rvalue): Removing static declaration.
7905 (gen_expr): Likewise.
7906 * ax-gdb.h (gen_expr): Declaring function.
7907 (require_rvalue): Likewise.
7908 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7909 (bkpt_probe_breakpoint_ops): New variable.
7910 (momentary_breakpoint_from_master): Set the `probe' value.
7911 (add_location_to_breakpoint): Likewise.
7912 (break_command_1): Using proper breakpoint_ops according to the
7913 argument passed by the user in the command line.
7914 (bkpt_probe_insert_location): New function.
7915 (bkpt_probe_remove_location): Likewise.
7916 (bkpt_probe_create_sals_from_address): Likewise.
7917 (bkpt_probe_decode_linespec): Likewise.
7918 (tracepoint_probe_create_sals_from_address): Likewise.
7919 (tracepoint_probe_decode_linespec): Likewise.
7920 (tracepoint_probe_breakpoint_ops): New variable.
7921 (trace_command): Using proper breakpoint_ops according to the
7922 argument passed by the user in the command line.
7923 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7924 static probes on breakpoints and tracepoints.
7925 * breakpoint.h (struct bp_location) <probe>: New field.
7926 * cli-utils.c (skip_spaces_const): New function.
7927 (extract_arg): Likewise.
7928 * cli-utils.h (skip_spaces_const): Likewise.
7929 (extract_arg): Likewise.
7930 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7931 * configure.ac: Append `stap-probe.o' to be generated when ELF
7932 support is present.
7933 * configure: Regenerate.
7934 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7935 * elfread.c: Include `probe.h' and `arch-utils.h'.
7936 (probe_key): New variable.
7937 (elf_get_probes): New function.
7938 (elf_get_probe_argument_count): Likewise.
7939 (elf_evaluate_probe_argument): Likewise.
7940 (elf_compile_to_ax): Likewise.
7941 (elf_symfile_relocate_probe): Likewise.
7942 (stap_probe_key_free): Likewise.
7943 (elf_probe_fns): New variable.
7944 (elf_sym_fns): Add `sym_probe_fns' value.
7945 (elf_sym_fns_lazy_psyms): Likewise.
7946 (elf_sym_fns_gdb_index): Likewise.
7947 (_initialize_elfread): Initialize objfile cache for static
7948 probes.
7949 * gdb_vecs.h (struct probe): New forward declaration.
7950 (probe_p): New VEC declaration.
7951 * gdbarch.c: Regenerate.
7952 * gdbarch.h: Regenerate.
7953 * gdbarch.sh (stap_integer_prefix): New variable.
7954 (stap_integer_suffix): Likewise.
7955 (stap_register_prefix): Likewise.
7956 (stap_register_suffix): Likewise.
7957 (stap_register_indirection_prefix): Likewise.
7958 (stap_register_indirection_suffix): Likewise.
7959 (stap_gdb_register_prefix): Likewise.
7960 (stap_gdb_register_suffix): Likewise.
7961 (stap_is_single_operand): New function.
7962 (stap_parse_special_token): Likewise.
7963 (struct stap_parse_info): Forward declaration.
7964 * i386-tdep.c: Including headers needed to perform the parsing
7965 of SystemTap probes' arguments.
7966 (i386_stap_is_single_operand): New function.
7967 (i386_stap_parse_special_token): Likewise.
7968 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7969 probes' arguments parser.
7970 * i386-tdep.h (i386_stap_is_single_operand): New function.
7971 (i386_stap_parse_special_token): Likewise.
7972 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7973 * mipsread.c (ecoff_sym_fns): Likewise.
7974 * objfiles.c (objfile_relocate1): Support relocation for static
7975 probes.
7976 * parse.c (prefixify_expression): Remove static declaration.
7977 (initialize_expout): Likewise.
7978 (reallocate_expout): Likewise.
7979 * parser-defs.h (initialize_expout): Declare function.
7980 (reallocate_expout): Likewise.
7981 (prefixify_expression): Likewise.
7982 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7983 of SystemTap probes' arguments.
7984 (ppc_stap_is_single_operand): New function.
7985 (ppc_stap_parse_special_token): Likewise.
7986 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7987 probes' arguments parser.
7988 * probe.c: New file, for generic statically defined probe support.
7989 * probe.h: Likewise.
7990 * s390-tdep.c: Including headers needed to perform the parsing of
7991 SystemTap probes' arguments.
7992 (s390_stap_is_single_operand): New function.
7993 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7994 probes' arguments parser.
7995 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7996 * stap-probe.c: New file, for SystemTap probe support.
7997 * stap-probe.h: Likewise.
7998 * symfile.h: Include `gdb_vecs.h'.
7999 (struct sym_probe_fns): New struct.
8000 (struct sym_fns) <sym_probe_fns>: New field.
8001 * symtab.c (init_sal): Initialize `probe' field.
8002 * symtab.h (struct probe): Forward declaration.
8003 (struct symtab_and_line) <probe>: New field.
8004 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8005 locations.
8006 (stop_tracing): Likewise.
8007 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8008
8009 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8010 Tom Tromey <tromey@redhat.com>
8011
8012 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8013 and to compile agent expressions.
8014 * infrun.c (siginfo_make_value): New argument `ignore'.
8015 (siginfo_funcs): New struct.
8016 (_initialize_infrun): New argument when calling
8017 `create_internalvar_type_lazy'.
8018 * thread.c (thread_id_make_value): New argument `ignore'.
8019 (thread_funcs): New struct.
8020 (_initialize_thread): New argument when calling
8021 `create_internalvar_type_lazy'.
8022 * tracepoint.c (sdata_make_value): New argument `ignore'.
8023 (sdata_funcs): New struct.
8024 (_initialize_tracepoint): New argument when calling
8025 `create_internalvar_type_lazy'.
8026 * value.c (make_value): New struct.
8027 (create_internalvar_type_lazy): New argument `data'.
8028 (compile_internalvar_to_ax): New function.
8029 (value_of_internalvar): Properly handling `make_value' case.
8030 (clear_internalvar): Likewise.
8031 (show_convenience): Adding `TRY_CATCH' block.
8032 * value.h (internalvar_make_value): Delete, replace by...
8033 (struct internalvar_funcs): ... this.
8034 (create_internalvar_type_lazy) <fun>: Delete argument.
8035 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8036 (compile_internalvar_to_ax): New function.
8037 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8038 (tlb_funcs): New struct.
8039 (_initialize_windows_tdep): New argument when calling
8040 `create_internalvar_type_lazy'.
8041
8042 2012-04-27 Mark Wielaard <mjw@redhat.com>
8043
8044 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8045 see whether it is an address or a constant offset from DW_AT_low_pc.
8046 (dwarf2_record_block_ranges): Likewise.
8047 (read_partial_die): Likewise.
8048
8049 2012-04-26 Mark Wielaard <mjw@redhat.com>
8050
8051 * MAINTAINERS (Write After Approval): Add myself to the list.
8052
8053 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8054
8055 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8056 (proc_prettyprint_signal): Likewise.
8057 (proc_prettyprint_faultset): Likewise.
8058 (proc_prettyprint_fault): Likewise.
8059 (proc_prettyprint_actionset): Likewise.
8060 (proc_prettyprint_flags): Move to new proc-flags.c section.
8061 (proc_prettyfprint_flags): New prototype.
8062 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8063 (proc_syscall, proc_cursig): Likewise.
8064 (proc_set_kill_on_last_close): Likewise.
8065 (proc_unset_kill_on_last_close): Likewise.
8066 (proc_set_watchpoint): Make static.
8067 (proc_delete_dead_threads): Likewise.
8068 (procfs_set_watchpoint): Likewise.
8069 (_initialize_procfs): Add prototype.
8070 * proc-events.c: Include proc-utils.h.
8071 (init_syscall_table): Make static.
8072 * proc-api.c (_initialize_proc_api): Add prototype.
8073 * proc-flags.c: Include proc-utils.h.
8074
8075 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8076
8077 * configure.ac: Add AC_ARG_PROGRAM.
8078 * configure: Regenerate.
8079
8080 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8081
8082 Fix DW_AT_lower_bound defaults for DWARF-4+.
8083 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8084 high. New variable low_default_is_valid. Implement DWARF-4+
8085 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8086 no default by the DWARF standard.
8087
8088 2012-04-26 Maciej W. Rozycki <macro@mips.com>
8089 Maciej W. Rozycki <macro@codesourcery.com>
8090
8091 * infrun.c (handle_inferior_event): Move the check for return
8092 trampolines ahead of the check for function trampolines.
8093 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8094 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8095 (mips_str_mips16_ret_stub): Likewise.
8096 (mips_str_call_fp_stub): Likewise.
8097 (mips_str_call_stub): Likewise.
8098 (mips_str_fn_stub): Likewise.
8099 (mips_str_pic): Likewise.
8100 (mips_in_frame_stub): New function.
8101 (mips_unwind_pc): Return the return address rather than the PC
8102 if the PC of an intermediate frame is inside a call thunk.
8103 (mips_is_stub_suffix): New function.
8104 (mips_is_stub_mode): Likewise.
8105 (mips_get_mips16_fn_stub_pc): Likewise.
8106 (mips_skip_mips16_trampoline_code): Update to handle all the
8107 currently generated stub types. Don't recurse into __fn_stub
8108 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8109 Use cooked register accesses.
8110 (mips_in_return_stub): Reintroduce function.
8111 (mips_skip_trampoline_code): Traverse trampolines recursively.
8112 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8113
8114 2012-04-26 Joel Brobecker <brobecker@adacore.com>
8115
8116 GDB 7.4.1 released.
8117
8118 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8119
8120 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8121 * features/arm-with-m-vfp-d16.xml: New file. Describes
8122 Cortex-M with VFPv4-sp-d16 FPU register layout.
8123 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8124 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8125 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8126 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8127 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8128
8129 2012-04-25 Doug Evans <dje@google.com>
8130
8131 * cli/cli-decode.c (print_doc_line): Use stream instead of
8132 current_uiout.
8133
8134 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8135
8136 * features/arm-with-iwmmxt.c: Regenerate.
8137 * features/arm-with-m-fpa-layout.c: Likewise.
8138 * features/arm-with-m.c: Likewise.
8139 * features/arm-with-neon.c: Likewise.
8140 * features/arm-with-vfpv2.c: Likewise.
8141 * features/arm-with-vfpv3.c: Likewise.
8142 * features/mips-dsp-linux.c: Likewise.
8143 * features/mips-linux.c: Likewise.
8144 * features/mips64-dsp-linux.c: Likewise.
8145 * features/mips64-linux.c: Likewise.
8146 * features/s390-linux32.c: Likewise.
8147 * features/s390-linux32v1.c: Likewise.
8148 * features/s390-linux32v2.c: Likewise.
8149 * features/s390-linux64.c: Likewise.
8150 * features/s390-linux64v1.c: Likewise.
8151 * features/s390-linux64v2.c: Likewise.
8152 * features/s390x-linux64.c: Likewise.
8153 * features/s390x-linux64v1.c: Likewise.
8154 * features/s390x-linux64v2.c: Likewise.
8155 * features/tic6x-c62x-linux.c: Likewise.
8156 * features/tic6x-c62x.c: Likewise.
8157 * features/tic6x-c64x-linux.c: Likewise.
8158 * features/tic6x-c64x.c: Likewise.
8159 * features/tic6x-c64xp-linux.c: Likewise.
8160 * features/tic6x-c64xp.c: Likewise.
8161 * target-descriptions.c: Only generate `field_type' and `type'
8162 variables when needed.
8163
8164 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8165
8166 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8167
8168 2012-04-25 Doug Evans <dje@google.com>
8169
8170 Initial pass at Go language support.
8171 * NEWS: Mention Go.
8172 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8173 go-valprint.c.
8174 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8175 (YYFILES): Add go-exp.c.
8176 (YYOBJ): Add go-exp.o.
8177 (local-maintainer-clean): Delete go-exp.c.
8178 * defs.h (enum language): Add language_go.
8179 * dwarf2read.c: #include "go-lang.h".
8180 (fixup_go_packaging): New function.
8181 (process_full_comp_unit): Call it when processing Go CUs.
8182 (dwarf2_physname): Add Go support.
8183 (read_file_scope): Handle missing language spec for GNU Go.
8184 (set_cu_language): Handle DW_LANG_Go.
8185 * go-exp.y: New file.
8186 * go-lang.h: New file.
8187 * go-lang.c: New file.
8188 * go-typeprint.c: New file.
8189 * go-valprint.c: New file.
8190 * symtab.c: #include "go-lang.h".
8191 (symbol_set_language): Handle language_go.
8192 (symbol_find_demangled_name, symbol_set_names): Ditto.
8193 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8194
8195 2012-04-24 Jim Meyering <meyering@redhat.com>
8196
8197 avoid a few strncpy-induced buffer overruns
8198 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8199 fname and psargs before trying to concatenate.
8200 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8201 "name" before applying strchr.
8202
8203 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8204
8205 * CONTRIBUTE: Use unified diff instead of context diff when
8206 generating patches.
8207
8208 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8209
8210 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8211 code. Handle JR.HB correctly.
8212
8213 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8214
8215 * mips-tdep.c
8216 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8217 with the other MIPS16 helpers.
8218
8219 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8220
8221 * observer.sh: Conditionally declare `args', thus cleaning up
8222 unused instances of this variable.
8223
8224 2012-04-24 Yao Qi <yao@codesourcery.com>
8225
8226 Revert this patch to allow breakpoint always-inserted
8227 in record target.
8228 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8229 * breakpoint.c: Include record.h.
8230 (breakpoints_always_inserted_mode): Return false when the record
8231 target is in use.
8232
8233 * breakpoint.c (iterate_over_bp_locations): New.
8234 * breakpoint.h: Declare.
8235 New typedef walk_bp_location_callback.
8236 * record.c (record_open): Call record_init_record_breakpoints.
8237 (record_sync_record_breakpoints): New.
8238 (record_init_record_breakpoints): New.
8239 * NEWS: Mention supporting breakpoint always-inserted mode in
8240 record target.
8241
8242 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8243
8244 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8245 any thread.
8246
8247 2012-04-24 Yao Qi <yao@codesourcery.com>
8248
8249 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8250 (is_catchpoint): ... it.
8251 (print_one_breakpoint_location): Caller update.
8252 * breakpoint.h: Update declaration.
8253
8254 2012-04-23 David S. Miller <davem@davemloft.net>
8255
8256 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8257
8258 2012-04-23 Tom Tromey <tromey@redhat.com>
8259
8260 * buildsym.c (add_free_pendings): Remove.
8261 * buildsym.h (add_free_pendings): Remove.
8262
8263 2012-04-23 Doug Evans <dje@google.com>
8264
8265 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8266 attr.u.unsnd instead of attr.u.addr.
8267 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8268 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8269 DW_FORM_ref_udata.
8270 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8271 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8272 DW_FORM_ref_udata.
8273 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8274
8275 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8276
8277 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8278 (mips_o32_return_value): Likewise.
8279 (mips_o64_return_value): Likewise.
8280
8281 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8282
8283 * ada-lang.c (ada_evaluate_subexp): Add cases for
8284 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8285 their treatment in eval.c.
8286
8287 2012-04-21 David S. Miller <davem@davemloft.net>
8288
8289 * sparc-tdep.c (X_DISP10): Define.
8290 (sparc_analyze_control_transfer): Handle compare-and-branch.
8291
8292 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8293
8294 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8295 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8296
8297 2012-04-20 Nigel Stephens <nigel@mips.com>
8298 Maciej W. Rozycki <macro@codesourcery.com>
8299
8300 * mips-tdep.c (mips_float_register_p): New function.
8301 (mips_convert_register_float_case_p): Use mips_float_register_p.
8302 (mips_register_type): Likewise.
8303 (mips_print_register): Likewise.
8304 (print_gp_register_row): Likewise.
8305 (mips_print_registers_info): Likewise.
8306
8307 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8308
8309 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8310 of mips16 symbols.
8311
8312 2012-04-20 Andrew Pinski <apinski@cavium.com>
8313
8314 * MAINTAINERS (Write After Approval): Add myself to the list.
8315
8316 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8317
8318 * MAINTAINERS: Update my e-mail address.
8319
8320 2012-04-20 Pedro Alves <palves@redhat.com>
8321
8322 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8323 $srcdir.
8324 * configure: Regenerate.
8325
8326 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8327
8328 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8329 declaration.
8330 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8331
8332 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8333
8334 Fix compilation compatibility with python-2.4
8335 * python/py-type.c (convert_field): Cast ADDRSTRING for
8336 PyObject_SetAttrString as non-const. New comment.
8337
8338 2012-04-19 Tom Tromey <tromey@redhat.com>
8339
8340 * top.c (quit_target): Use all_cleanups.
8341 * main.c (captured_command_loop): Use all_cleanups.
8342 * exceptions.c (throw_exception): Use all_cleanups.
8343
8344 2012-04-19 Pedro Alves <palves@redhat.com>
8345
8346 * Makefile.in (GNULIB_BUILDDIR): New.
8347 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8348 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8349 (CLEANDIRS). Remove gnulib/import.
8350 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8351 (all-lib): Ditto.
8352 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8353 (gnulib/import/Makefile): Replace gnulib/import with
8354 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8355 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8356 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8357 acx_configure_dir.m4.
8358 * acinclude.m4: Include acx_configure_dir.m4.
8359 * acx_configure_dir.m4: New file.
8360 * aclocal.m4: Regenerate.
8361 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8362 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8363 (GNULIB): New variable.
8364 (GNULIB_STDINT_H): Adjust.
8365 (AC_OUTPUT): Don't output gnulib/Makefile.
8366 * gdb/defs.h: Include build-gnulib/config.h.
8367 * aclocal.m4: Regenerate.
8368 * config.in: Regenerate.
8369 * configure: Regenerate.
8370
8371 * gnulib/Makefile.in: New file.
8372 * gnulib/configure.ac: New file.
8373 * gnulib/aclocal.m4: New file.
8374 * gnulib/config.in: New file.
8375 * gnulib/configure: New file.
8376 * gnulib/: Re-run gnulib-tool to adjust.
8377
8378 2012-04-19 Doug Evans <dje@google.com>
8379
8380 * cleanups.h (struct cleanup): Move to cleanups.c.
8381 (make_cleanup_dtor_ftype): New typedef.
8382 (make_cleanup_dtor): Use it.
8383 (ALL_CLEANUPS): Replace with ...
8384 (all_cleanups): ... this. Declare. All uses updated.
8385 * cleanups.c: #include "gdb_assert.h".
8386 (sentinel_cleanup): New static global.
8387 (SENTINEL_CLEANUP): Define.
8388 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8389 (make_my_cleanup2): Assert result is non-NULL.
8390 (all_cleanups): New function.
8391 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8392 of NULL.
8393
8394 2012-04-19 Pedro Alves <palves@redhat.com>
8395
8396 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8397 Adjust paths to gnulib imported files.
8398
8399 2012-04-19 Pedro Alves <palves@redhat.com>
8400
8401 * gnulib/: Move whole directory ...
8402 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8403 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8404 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8405 (aclocal_m4_deps): Adjust.
8406 * aclocal.m4: Regenerate.
8407 * configure: Regenerate.
8408 * configure.ac: Adjust AC_OUTPUT output.
8409
8410 2012-04-19 Yao Qi <yao@codesourcery.com>
8411
8412 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8413 (vec.o): New rule.
8414 * vec.c: Move it ...
8415 * common/vec.c: ... here.
8416 * vec.h: Move it ...
8417 * common/vec.h: ... here.
8418
8419 2012-04-19 Yao Qi <yao@codesourcery.com>
8420
8421 * gdb-code-style.el: New.
8422
8423 2012-04-18 Pedro Alves <palves@redhat.com>
8424
8425 Update gnulib from latest git.
8426 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8427
8428 * gnulib/Makefile.am: Update.
8429 * gnulib/dummy.c: Update.
8430 * gnulib/extra/arg-nonnull.h: Update.
8431 * gnulib/extra/c++defs.h: Update.
8432 * gnulib/extra/update-copyright: Update.
8433 * gnulib/extra/warn-on-use.h: Update.
8434 * gnulib/inttypes.in.h: Update.
8435 * gnulib/m4/00gnulib.m4: Update.
8436 * gnulib/m4/extensions.m4: Update.
8437 * gnulib/m4/gnulib-cache.m4: Update.
8438 * gnulib/m4/gnulib-common.m4: Update.
8439 * gnulib/m4/gnulib-comp.m4: Update.
8440 * gnulib/m4/gnulib-tool.m4: Update.
8441 * gnulib/m4/include_next.m4: Update.
8442 * gnulib/m4/inttypes-pri.m4: Update.
8443 * gnulib/m4/inttypes.m4: Update.
8444 * gnulib/m4/longlong.m4: Update.
8445 * gnulib/m4/memchr.m4: Update.
8446 * gnulib/m4/memmem.m4: Update.
8447 * gnulib/m4/mmap-anon.m4: Update.
8448 * gnulib/m4/multiarch.m4: Update.
8449 * gnulib/m4/onceonly.m4: Update.
8450 * gnulib/m4/stddef_h.m4: Update.
8451 * gnulib/m4/stdint.m4: Update.
8452 * gnulib/m4/string_h.m4: Update.
8453 * gnulib/m4/warn-on-use.m4: Update.
8454 * gnulib/m4/wchar_h.m4: Update.
8455 * gnulib/m4/wchar_t.m4: Update.
8456 * gnulib/m4/wint_t.m4: Update.
8457 * gnulib/memchr.c: Update.
8458 * gnulib/memmem.c: Update.
8459 * gnulib/stddef.in.h: Update.
8460 * gnulib/stdint.in.h: Update.
8461 * gnulib/str-two-way.h: Update.
8462 * gnulib/string.in.h: Update.
8463 * gnulib/wchar.in.h: Update.
8464
8465 * gnulib/extra/arg-nonnull.h: Delete.
8466 * gnulib/extra/c++defs.h: Delete.
8467 * gnulib/extra/warn-on-use.h: Delete.
8468 * gnulib/m4/wchar_h.m4: Delete.
8469 * gnulib/m4/wint_t.m4: Delete.
8470 * gnulib/wchar.in.h: Delete.
8471
8472 * gnulib/extra/snippets/arg-nonnull.h: New.
8473 * gnulib/extra/snippets/c++defs.h: New.
8474 * gnulib/extra/snippets/warn-on-use.h: New.
8475
8476 * aclocal.m4: Regenerate.
8477 * config.in: Regenerate.
8478 * configure: Regenerate.
8479 * gnulib/Makefile.in: Regenerate.
8480
8481 2012-04-18 Pedro Alves <palves@redhat.com>
8482
8483 Reimport the update-copyright module from gnulib
8484 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8485
8486 * configure: Regenerate.
8487 * gnulib/Makefile.am: Update.
8488 * gnulib/Makefile.in: Regenerate.
8489 * gnulib/extra/update-copyright: Update.
8490 * gnulib/m4/gnulib-cache.m4: Update.
8491 * gnulib/m4/gnulib-comp.m4: Update.
8492
8493 2012-04-18 Tristan Gingold <gingold@adacore.com>
8494
8495 * configure.ac (aix): Put -lpthread into libs.
8496 * configure: Regenerate.
8497
8498 2012-04-18 Tom Tromey <tromey@redhat.com>
8499
8500 * linespec.c (convert_linespec_to_sals): Don't use
8501 SYMBOL_OBJ_SECTION.
8502 (compare_msymbols): Arguments are minsym_and_objfile, not
8503 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8504
8505 2012-04-18 Pedro Alves <palves@redhat.com>
8506
8507 Revert gnulib/ part of:
8508 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8509 Copyright year update in most files (performed by copyright.sh).
8510
8511 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8512
8513 Fix 64-bit constants on 32-bit hosts.
8514 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8515 from unsigned long to ULONGEST.
8516 (read_signed_leb128): Change declaration return type from long to
8517 LONGEST.
8518 (dwarf2_const_value_attr): Change declaration parameter value from long
8519 to LONGEST.
8520 (dwarf2_compute_name): Change variable value from long to LONGEST.
8521 (read_unsigned_leb128): Change return type, variable result and some
8522 casts from unsigned long to ULONGEST.
8523 (read_signed_leb128): Change return type, variable result and some
8524 casts from long to LONGEST.
8525 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8526 value from long to LONGEST.
8527 (dwarf2_const_value): Change variable value from long to LONGEST.
8528 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8529 plongest and hex_string.
8530 * symtab.h (struct general_symbol_info): Change ivalue from long to
8531 LONGEST, remove the comment.
8532 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8533 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8534
8535 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8536
8537 PR symtab/7259:
8538 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8539 * ada-lang.c (ada_discrete_type_high_bound)
8540 (ada_discrete_type_low_bound): Fix function comment. Use
8541 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8542 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8543 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8544 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8545 Use TYPE_FIELD_ENUMVAL.
8546 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8547 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8548 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8549 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8550 TYPE_CODE_ENUM.
8551 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8552 * dwarf2read.c (process_enumeration_scope): Likewise.
8553 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8554 field.bitpos.
8555 (class StructMainTypePrettyPrinter): Support also
8556 FIELD_LOC_KIND_ENUMVAL.
8557 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8558 TYPE_CODE_ENUM.
8559 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8560 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8561 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8562 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8563 field enumval.
8564 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8565 accommodate enumval.
8566 (struct call_site): Adjust loc_kind to accommodate enumval.
8567 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8568 (TYPE_FIELD_ENUMVAL): New macros.
8569 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8570 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8571 TYPE_CODE_ENUM.
8572 * p-typeprint.c (pascal_type_print_base): Likewise.
8573 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8574 enumval.
8575 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8576 * python/py-type.c (convert_field): New variable addrstring. Use
8577 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8578 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8579 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8580 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8581 TYPE_CODE_ENUM.
8582 * valprint.c (generic_val_print): Likewise.
8583
8584 2012-04-17 Doug Evans <dje@google.com>
8585
8586 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8587
8588 * dwarf2read.c: Whitespace fixes.
8589 (lookup_signatured_type): Tweak comment.
8590 (get_die_type_at_offset): Fix comment.
8591
8592 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8593
8594 * xcoffread.c (xcoff_secnum_to_sections): New function.
8595 (secnum_to_section, secnum_to_bfd_section): Reimplement
8596 using xcoff_secnum_to_sections. Rename "secnum" parameter
8597 into "n_scnum".
8598 (RECORD_MINIMAL_SYMBOL): Delete.
8599 (record_minimal_symbol): New function.
8600 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8601 by call to record_minimal_symbol and set misc_func_recorded
8602 to 1. Set last_csect_sec to the XCOFF section index instead
8603 of GDB's section_offset index. Update calls to
8604 prim_record_minimal_symbol_and_info to pass the BFD section
8605 as well.
8606
8607 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8608
8609 * xcoffread.c (read_xcoff_symtab): Delete variables
8610 last_csect_val and last_csect_sec and associated code.
8611
8612 2012-04-17 Doug Evans <dje@google.com>
8613
8614 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8615 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8616 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8617 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8618
8619 * cleanups.h: New file.
8620 * cleanups.c: New file.
8621 * Makefile.in (SFILES): Add cleanups.c.
8622 (HFILES_NO_SRCDIR): Add cleanups.h.
8623 (COMMON_OBS): Add cleanups.o.
8624 * defs.h (struct cleanup): Moved to cleanups.h.
8625 (do_cleanups,do_final_cleanups): Ditto.
8626 (discard_cleanups,discard_final_cleanups): Ditto
8627 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8628 (save_cleanups,save_final_cleanups): Ditto.
8629 (restore_cleanups,restore_final_cleanups): Ditto.
8630 (null_cleanup): Ditto.
8631 (make_my_cleanup,make_my_cleanup2): Ditto.
8632 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8633 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8634 (do_cleanups,do_final_cleanups): Ditto.
8635 (discard_cleanups,discard_final_cleanups): Ditto
8636 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8637 (save_cleanups,save_final_cleanups): Ditto.
8638 (restore_cleanups,restore_final_cleanups): Ditto.
8639 (null_cleanup): Ditto.
8640 (make_my_cleanup,make_my_cleanup2): Ditto.
8641 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8642
8643 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8644 make_my_cleanup.
8645 (make_cleanup_dyn_string_delete): Ditto.
8646 (make_cleanup_ui_file_delete): Ditto.
8647 (make_cleanup_ui_out_redirect_pop): Ditto.
8648 (make_cleanup_free_section_addr_info): Ditto.
8649 (make_cleanup_restore_integer): Ditto.
8650 (make_cleanup_unpush_target): Ditto.
8651 (make_cleanup_value_free_to_mark): Ditto.
8652 (make_cleanup_value_free): Ditto.
8653 (make_cleanup_free_so): Ditto.
8654
8655 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8656
8657 New option "set debug auto-load".
8658 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8659 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8660 (auto_load_safe_path_vec_update)
8661 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8662 if DEBUG_AUTO_LOAD.
8663 (file_is_auto_load_safe): New parameters debug_fmt and ....
8664 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8665 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8666 caller by explanatory string.
8667 (_initialize_auto_load): Register "set debug auto-load".
8668 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8669 and ....
8670 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8671 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8672 by explanatory string.
8673 * main.c (captured_main): Likewise.
8674 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8675 (source_section_scripts): Likewise.
8676
8677 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8678
8679 New option "set auto-load safe-path".
8680 * NEWS: New commands "set auto-load safe-path"
8681 and "show auto-load safe-path".
8682 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8683 (auto_load_safe_path, auto_load_safe_path_vec)
8684 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8685 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8686 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8687 (source_gdb_script_for_objfile): New variable is_safe. Call
8688 file_is_auto_load_safe. Return if it is not.
8689 (struct loaded_script): New field loaded.
8690 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8691 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8692 output "Missing" to "No".
8693 (_initialize_auto_load): New variable cmd. Initialize
8694 auto_load_safe_path. Register "set auto-load safe-path",
8695 "show auto-load safe-path" and "add-auto-load-safe-path".
8696 * auto-load.h (maybe_add_script): Add parameter loaded.
8697 (file_is_auto_load_safe): New declaration.
8698 * config.in: Regenerate.
8699 * configure: Regenerate.
8700 * configure.ac: New parameters --with-auto-load-safe-path
8701 and --without-auto-load-safe-path.
8702 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8703 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8704 * main.c (captured_main): Check file_is_auto_load_safe for
8705 LOCAL_GDBINIT.
8706 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8707 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8708 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8709 not.
8710
8711 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8712
8713 auto-load: Implementation.
8714 * NEWS: New descriptions for "info auto-load",
8715 "info auto-load gdb-scripts", "info auto-load python-scripts",
8716 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8717 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8718 and "show auto-load-scripts". New description for "set auto-load",
8719 "show auto-load", "set auto-load gdb-scripts",
8720 "show auto-load gdb-scripts", "set auto-load python-scripts",
8721 "show auto-load python-scripts", "set auto-load local-gdbinit",
8722 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8723 "show auto-load libthread-db".
8724 * auto-load.c: Remove include python/python-internal.h. Add includes
8725 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8726 cli/cli-setshow.h.
8727 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8728 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8729 (gdbpy_global_auto_load): Rename to ...
8730 (global_auto_load): ... here.
8731 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8732 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8733 (script_language_gdb, source_gdb_script_for_objfile): New.
8734 (struct loaded_script): New field language.
8735 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8736 LANGUAGE.
8737 (maybe_add_script): Add parameter language. Drop redundant
8738 entry.full_path initialization. Initialize entry.language and
8739 (*slot)->language.
8740 (auto_load_objfile_script): Change parameter suffix to language.
8741 Remove the call of maybe_add_script.
8742 Call language->source_script_for_objfile.
8743 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8744 New.
8745 (collect_matching_scripts): Adjust it for
8746 struct collect_matching_scripts_data.
8747 (auto_load_info_scripts_pattern_nl): New variable.
8748 (info_auto_load_scripts): Rename to ...
8749 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8750 for struct collect_matching_scripts_data.
8751 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8752 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8753 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8754 (auto_load_info_cmdlist_get): New.
8755 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8756 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8757 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8758 "info auto-load local-gdbinit".
8759 * auto-load.h (struct script_language): New.
8760 (gdbpy_global_auto_load): Rename to ...
8761 (global_auto_load): ... here.
8762 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8763 (auto_load_local_gdbinit_loaded): New declarations.
8764 (maybe_add_script): New parameter language.
8765 (auto_load_objfile_script): Change parameter suffix to language.
8766 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8767 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8768 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8769 declarations.
8770 * linux-thread-db.c: Include auto-load.h and ctype.h.
8771 (auto_load_thread_db, show_auto_load_thread_db): New.
8772 (struct thread_db_info): New field filename.
8773 (delete_thread_db_info): Call xfree for FILENAME.
8774 (try_thread_db_load): Initialize FILENAME.
8775 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8776 if !AUTO_LOAD_THREAD_DB.
8777 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8778 (_initialize_thread_db): Install auto_load_thread_db
8779 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8780 as "info auto-load libthread-db".
8781 * main.c (captured_main): Rename gdbpy_global_auto_load to
8782 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8783 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8784 (print_gdb_help): Extend the help for 'local init file'.
8785 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8786 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8787 (auto_load_scripts): Rename to ...
8788 (auto_load_python_scripts): ... here, update the comment.
8789 (gdbpy_load_auto_script_for_objfile): New declaration.
8790 (show_auto_load_python_scripts, script_language_python)
8791 (gdbpy_load_auto_script_for_objfile): New.
8792 (source_section_scripts): Refactor the code.
8793 (load_auto_scripts_for_objfile): Rename to ...
8794 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8795 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8796 (info_auto_load_python_scripts): New.
8797 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8798 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8799 Register "set auto-load-scripts" as its deprecated alias. Register
8800 "info auto-load python-scripts". Register "info auto-load-scripts" as
8801 its deprecated alias.
8802 (load_auto_scripts_for_objfile): Rename to ...
8803 (gdbpy_load_auto_scripts_for_objfile): ... here.
8804 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8805 (gdbpy_load_auto_scripts_for_objfile): ... here.
8806
8807 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8808
8809 auto-load: Move files.
8810 * Makefile.in (SFILES): Add auto-load.c.
8811 (HFILES_NO_SRCDIR): Add auto-load.h.
8812 (COMMON_OBS): Add auto-load.o.
8813 (distclean): Change .gdbinit for gdb-gdb.gdb.
8814 * auto-load.c: New file, with parts from python/py-auto-load.c.
8815 * auto-load.h: New file, with parts from python/python.h.
8816 * configure: Regenerate.
8817 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8818 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8819 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8820 * main.c: Include auto-load.h.
8821 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8822 command.h, observer.h and progspace.h to auto-load.c. Add include
8823 auto-load.h.
8824 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8825 (struct loaded_script, auto_load_pspace_data)
8826 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8827 (hash_loaded_script_entry, eq_loaded_script_entry)
8828 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8829 (maybe_add_script): Move to auto-load.c.
8830 (source_section_scripts): Change maybe_add_script parameters passing,
8831 use script_not_found_warning_print.
8832 (clear_section_scripts, auto_load_objfile_script)
8833 (auto_load_new_objfile, loaded_script_ptr)
8834 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8835 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8836 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8837 auto_load_new_objfile and info_auto_load_scripts initizations to
8838 auto-load.c.
8839 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8840
8841 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8842
8843 Code cleanup.
8844 * charset.c (find_charset_names): Remove variables ix and elt.
8845 Use free_char_ptr_vec.
8846 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8847 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8848 debugdir_end. New variable debugdir_len.
8849 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8850 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8851 declarations.
8852 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8853 and elt. Use free_char_ptr_vec.
8854 * source.c (add_path): Remove variables argv, arg and argv_index.
8855 New variables dir_vec, back_to, ix and name.
8856 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8857 make_cleanup_freeargv. Remove variable separator. Simplify the code
8858 no longer expecting DIRNAME_SEPARATOR.
8859 (openp): Remove variable p, p1 and len. New variables dir_vec,
8860 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8861 no longer expecting DIRNAME_SEPARATOR.
8862 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8863 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8864 debugdir_end.
8865 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8866 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8867 (dirnames_to_char_ptr_vec): New functions.
8868
8869 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8870
8871 Code cleanup.
8872 * source.c (add_path): Remove always true conditional 'p == 0' and
8873 unindent its code block.
8874
8875 2012-04-17 Pedro Alves <palves@redhat.com>
8876
8877 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8878 (FIELD_BITPOS_LVAL): ... this.
8879 (FIELD_BITPOS): New.
8880 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8881 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8882 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8883 SET_FIELD_BITPOS.
8884 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8885 SET_FIELD_BITPOS.
8886 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8887 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8888 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8889 SET_FIELD_BITPOS.
8890
8891 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8892
8893 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8894 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8895 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8896 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8897 * jv-lang.c (java_link_class_type): Likewise, once.
8898 * stabsread.c (read_enum_type): Likewise.
8899
8900 2012-04-16 Yao Qi <yao@codesourcery.com>
8901
8902 * common/agent.c (agent_run_command): Add one more parameter `len'.
8903 Update callers.
8904 * common/agent.h: Update declaration.
8905 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8906 Update.
8907 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8908
8909 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8910
8911 PR mi/13393
8912 * value.c (value_actual_type): New function.
8913 * value.h (value_actual_type): New declaration.
8914 * varobj.c (update_type_if_necessary): New function.
8915 (varobj_create): Call value_actual_type instead of
8916 value_type.
8917 (install_dynamic_child): distinct changed and type changed MI variable
8918 objects.
8919 (update_dynamic_varobj_children): Updated for install_dynamic_child
8920 change. All callers updated.
8921 (varobj_update): Support for MI variable object type change if
8922 the value changed and RTTI is used to determine the type.
8923 (create_child_with_value): Call value_actual_type instead of
8924 value_type.
8925 (adjust_value_for_child_access): Extended with a new parameter which
8926 specify whether the given value should be casted to enclosing type.
8927 All callers updated.
8928
8929 2012-04-14 Yao Qi <yao@codesourcery.com>
8930
8931 Import gnulib module inttypes from git
8932 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8933 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8934 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8935 gnulib/m4/inttypes-pri.m4
8936 * aclocal.m4, config.in, configure: Regenerated.
8937 * gnulib/Makefile.am: Update.
8938 * gnulib/Makefile.in: Update.
8939 * gnulib/m4/gnulib-cache.m4: Update.
8940 * gnulib/m4/gnulib-comp.m4: Update.
8941 * gnulib/inttypes.in.h: New.
8942 * gnulib/m4/inttypes-pri.m4: New.
8943 * gnulib/m4/inttypes.m4: New.
8944
8945 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8946
8947 * infrun.c (resume): Update PC address to the real PC after
8948 preparing to do displaced stepping.
8949
8950 2012-04-12 Doug Evans <dje@google.com>
8951
8952 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8953 All callers updated.
8954
8955 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8956
8957 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8958
8959 2012-04-12 Doug Evans <dje@google.com>
8960
8961 * dwarf2read.c (create_all_type_units): Renamed from
8962 create_debug_types_hash_table. All callers updated.
8963
8964 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8965 local type_sig to sig_type, type_offset to type_offset_in_tu.
8966 (hash_signatured_type): Renamed from hash_type_signature,
8967 all callers updated.
8968 (eq_signatured_type): Renamed from eq_type_signature,
8969 all callers updated.
8970 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8971 (process_enumeration_scope): Ditto.
8972 (lookup_signatured_type_at_offset): Ditto.
8973 (load_full_type_unit, read_signatured_type): Ditto.
8974
8975 2012-04-12 Yao Qi <yao@codesourcery.com>
8976
8977 * remote.c (async_remote_interrupt): Correct function name in
8978 debug message.
8979 (async_remote_interrupt_twice): Ditto.
8980
8981 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8982
8983 * source.c (find_and_open_source): Consistently pass resulting
8984 full path through xfullpath.
8985
8986 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8987
8988 Provide more specific displaced-stepping memory error message.
8989 * infrun.c (displaced_step_prepare): New variable status. Call
8990 target_read_memory instead of read_memory, provide more specific
8991 error message.
8992
8993 2012-04-11 Tristan Gingold <gingold@adacore.com>
8994
8995 PR gdb/13901
8996 * darwin-nat.c (darwin_execvp): Revert previous patch.
8997
8998 2012-04-11 Tristan Gingold <gingold@adacore.com>
8999
9000 PR gdb/13901
9001 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9002 in case of change.
9003
9004 2012-04-11 Tristan Gingold <gingold@adacore.com>
9005
9006 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9007 warning.
9008
9009 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
9010
9011 New command 'explore' which helps explore values and types in
9012 scope.
9013 * NEWS: Add an entry about the new 'explore' command.
9014 * data-directory/Makefile.in: Add gdb/command/explore.py
9015 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
9016 command using the GDB Python API.
9017
9018 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9019
9020 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9021 extension in jump target calculation.
9022
9023 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9024
9025 * mips-tdep.c (mips32_next_pc): Handle JALX.
9026
9027 2012-04-10 Yao Qi <yao@codesourcery.com>
9028
9029 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9030
9031 2012-04-10 Yao Qi <yao@codesourcery.com>
9032
9033 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9034 and gnulib/m4/gnulib-tool.m4.
9035
9036 2012-04-10 Doug Evans <dje@google.com>
9037
9038 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9039 (load_partial_dies): Clarify comment.
9040 (find_partial_die): Support rereading type units.
9041 Clarify CU handling, if we know offset is in CU, don't search for the
9042 containing CU. Add comment regarding memory waste.
9043
9044 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
9045
9046 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9047 i386/x32-avx and i386/x32-avx-linux.
9048 (i386/x32-expedite): New.
9049 (i386/x32-linux-expedite): Likewise.
9050 (i386/x32-avx-expedite): Likewise.
9051 (i386/x32-avx-linux-expedite): Likewise.
9052 ($(outdir)/i386/x32.dat): Likewise.
9053 ($(outdir)/i386/x32-linux.dat): Likewise.
9054 ($(outdir)/i386/x32-avx.dat): Likewise.
9055 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9056
9057 * features/i386/x32-avx-linux.xml: New file.
9058 * features/i386/x32-avx.xml: Likewise.
9059 * features/i386/x32-core.xml: Likewise.
9060 * features/i386/x32-linux.xml: Likewise.
9061 * features/i386/x32.xml: Likewise.
9062
9063 * features/i386/x32-avx-linux.c: New. Generated.
9064 * features/i386/x32-avx.c: Likewise.
9065 * features/i386/x32-linux.c: Likewise.
9066 * features/i386/x32.c: Likewise.
9067 * regformats/i386/x32-avx-linux.dat: Likewise.
9068 * regformats/i386/x32-avx.dat: Likewise.
9069 * regformats/i386/x32-linux.dat: Likewise.
9070 * regformats/i386/x32.dat: Likewise.
9071
9072 2012-04-10 Tristan Gingold <gingold@adacore.com>
9073
9074 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9075 code to kill the inferior.
9076
9077 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9078
9079 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9080 defines.
9081 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9082 defines.
9083 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9084 (yyvsp): New defines.
9085 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9086 defines.
9087 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9088 defines.
9089 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9090 defines.
9091 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9092 defines.
9093 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9094 defines.
9095
9096 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9097
9098 * sparc64-tdep.c (sparc64_store_arguments)
9099 (sparc64_store_arguments): Fix coding style.
9100
9101 2012-04-07 Mark Kettenis <kettenis@gnu.org>
9102
9103 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9104 complex floats, adjust some related comments and tighten a related
9105 assertion.
9106 (sparc64_extract_return_value): Handle complex floats.
9107
9108 2012-04-07 Doug Evans <dje@google.com>
9109
9110 * dwarf2read.c (load_partial_dies): Change condition to assert.
9111
9112 2012-04-06 Doug Evans <dje@google.com>
9113
9114 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9115 "mov %rsp,%rbp".
9116
9117 2012-04-05 Kevin Buettner <kevinb@redhat.com>
9118
9119 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9120 fencepost error.
9121 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9122 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9123 architecture.
9124
9125 2012-04-05 Keith Seitz <keiths@redhat.com>
9126
9127 * linespec.c (decode_compound): Remove.
9128 (enum offset_relative_sign): New enum.
9129 (struct line_offset): New struct.
9130 (struct linespec): New struct.
9131 (struct linespec_state): Move file_symtabs,
9132 user_filename, and user_function into struct linespec.
9133 Make result an anonymous struct holding vectors of
9134 symbolp and minsym_and_objfile_d.
9135 Add language member.
9136 (enum ls_token_type): New enum.
9137 (linespec_keywords): New array.
9138 (struct ls_token): New struct.
9139 (struct ls_parser): New struct.
9140 (linespec_lexer_lex_number): New function.
9141 (linespec_lexer_lex_keyword): New function.
9142 (is_ada_operator): New function.
9143 (skip_quote_char): New function.
9144 (copy_token_string): New function.
9145 (is_closing_quote_enclosed): New function.
9146 (find_parameter_list_end): New function.
9147 (linespec_lexer_lex_string): New function.
9148 (linespec_lexer_lex_one): New function.
9149 (linespec_lexer_consume_token): New function.
9150 (linespec_lexer_peek_token): New function.
9151 (cplusplus_error): Remove unused function.
9152 (find_methods): Update comment.
9153 (find_toplevel_char): Return const.
9154 (is_objc_method_format): Remove unused function.
9155 (find_toplevel_string): New function.
9156 (is_linespec_boundary): Remove.
9157 (symbol_not_found_error): New function.
9158 (find_method_overload_end): Remove function.
9159 (unexpected_linespec_error): New function.
9160 (keep_name_info): Remove.
9161 (linespec_parse_line_offset): New function.
9162 (linespec_parse_basic): New function.
9163 (canonicalize_linespec): New function.
9164 (decode_line_internal): Remove.
9165 (create_sals_line_offset): New function adapted from
9166 decode_all_digits.
9167 (convert_linespec_to_sals): New function.
9168 (parse_linespec): New function.
9169 (linespec_parser_new): New function.
9170 (linespec_state_destructor): Change parameter type to
9171 struct linespec_state *.
9172 Add language parameter.
9173 Remove freeing of moved members.
9174 (linespec_parser_delete): New function.
9175 (decode_line_full): Use parse_linespec and linespec_parser_new.
9176 (decode_line_1): Likewise.
9177 (decode_indirect): Rename to ...
9178 (linespec_expression_to_pc): ... this and rewrite
9179 to simply find CORE_ADDR, storing this result for later
9180 conversion to SALs.
9181 (locate_first_half): Remove.
9182 (deocde_objc): Add parameter LS.
9183 Initialize new struct collect_info members.
9184 Handle minimal symbols, too.
9185 (decode_compound): Delete.
9186 (lookup_prefix_sym): Rewrite.
9187 (compare_msymbols): New function.
9188 (find_method): Rewrite.
9189 Do not call cplusplus_error.
9190 (symtabs_from_filename): Rewrite.
9191 (collect_function_symbols): Delete.
9192 (find_function_symbols): Rewrite without ARGPTR-style
9193 processing.
9194 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9195 (decode_dollar): Adapted and renamed to ...
9196 (linespec_parse_variable): ... this.
9197 (find_linespec_symbols): New function.
9198 (decode_label): Adapted and renamed to ...
9199 (find_label_symbols): ... this.
9200 (decode_digits_list_mode): Add and use LS argument.
9201 (decode_digits_ordinary): Likewise.
9202 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9203 If in list mode, allow any symbol class. Otherwise, only
9204 permit LOC_BLOCK symbols.
9205 (minsym_found): Update comments.
9206 (search_minsyms_for_name): Do not convert the matching symbol
9207 into a SAL. Simply push the symbol and objfile into the
9208 result vector.
9209 (decode_variable): Delete. Contents adapted into
9210 find_linespec_symbols.
9211
9212 * cp-support.c (SKIP_SPACE): Remove.
9213 (operator_tokens): Remove unused global.
9214 (cp_validate_operator): Remove.
9215 * cp-support.h (cp_validate_operator): Remove declaration.
9216
9217 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9218
9219 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9220 for TYPE_VPTR_FIELDNO.
9221 * valprint.c (valprint_check_validity): Make it global, move the
9222 function comment ...
9223 * value.h (valprint_check_validity): ... to this new declaration.
9224
9225 2012-04-02 Tristan Gingold <gingold@adacore.com>
9226
9227 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9228 the STATE32 api for i386 state.
9229 (i386_darwin_store_inferior_registers): Likewise.
9230
9231 2012-04-02 Tristan Gingold <gingold@adacore.com>
9232
9233 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9234 SS offset.
9235 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9236 format_string.
9237
9238 2012-04-02 Tristan Gingold <gingold@adacore.com>
9239
9240 PR gdb/13901
9241 * darwin-nat.c (darwin_execvp): Set binary preference.
9242
9243 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9244
9245 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9246
9247 2012-03-30 Tom Tromey <tromey@redhat.com>
9248
9249 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9250 of TRY_CATCH. Fix error handling.
9251 * python/py-value.c (convert_value_from_python): Move 'old'
9252 declaration to innermost scope.
9253
9254 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9255 Andrey Smirnov <andrew.smirnov@gmail.com>
9256
9257 -Wshadow warning fix.
9258 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9259 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9260 Adjust code accordingly.
9261
9262 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9263
9264 * ada-lang.c (symbol_completion_add): Rename parameter
9265 "encoded" into "encoded_p". Ajust code and documentation
9266 accordingly.
9267
9268 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9269 Andrey Smirnov <andrew.smirnov@gmail.com>
9270
9271 -Wshadow warning fix.
9272 * ada-lang.c (symbol_completion_add): Rename parameter
9273 "wild_match" into wild_match_p. Update code and documentation
9274 accordingly.
9275
9276 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9277
9278 * ada-lang.c (symbol_completion_match): Rename parameter
9279 "encoded" into "encoded_p". Ajust code and documentation
9280 accordingly.
9281
9282 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9283 Andrey Smirnov <andrew.smirnov@gmail.com>
9284
9285 -Wshadow warning fix.
9286 * ada-lang.c (symbol_completion_match): Rename parameter
9287 "wild_match" into "wild_match_p". Adjust code and function
9288 documentation accordingly.
9289
9290 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9291 Andrey Smirnov <andrew.smirnov@gmail.com>
9292
9293 -Wshadow warning fix.
9294 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9295 "symbol_info" into "info". Adjust code accordingly.
9296 (ada_lookup_symbol): Likewise.
9297
9298 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9299
9300 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9301 of this function's documentation.
9302
9303 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9304 Andrey Smirnov <andrew.smirnov@gmail.com>
9305
9306 -Wshadow warning fix.
9307 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9308 variable into "wild_match_p". Adjust code accordingly.
9309
9310 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9311 Andrey Smirnov <andrew.smirnov@gmail.com>
9312
9313 -Wshadow warning fix.
9314 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9315 parameter into "wild_match_p". Adjust code accordingly.
9316 Document this parameter in the function description.
9317
9318 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9319 Andrey Smirnov <andrew.smirnov@gmail.com>
9320
9321 -Wshadow warning fix.
9322 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9323 "wild_match" parameter to "wild_match_p" (-Wshadow).
9324
9325 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9326
9327 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9328 in function documentation.
9329
9330 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9331 Andrey Smirnov <andrew.smirnov@gmail.com>
9332
9333 -Wshadow warning fix.
9334 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9335 variable into wild_match_p. Adjust code accordingly.
9336
9337 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9338 Andrey Smirnov <andrew.smirnov@gmail.com>
9339
9340 * ada-valprint.c (ada_val_print_1): Move the code handling
9341 TYPE_CODE_ENUM inside its own lexical block. Declare
9342 variables len and val there, instead of in the function's
9343 top level block. Avoid declaring deref_val again in a way
9344 that shadows another variable of the same name declared
9345 in one of the up-level blocks. Just re-use the up-level
9346 variable instead.
9347
9348 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9349
9350 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9351 Replace block_found argument by symbol_info. Adjust
9352 implementation accordingly. Add function documentation.
9353 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9354 Fix documentation.
9355 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9356 * ada-exp.y (write_object_renaming): Adjust to new
9357 ada_lookup_encoded_symbol API.
9358
9359 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9360
9361 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9362 documentation.
9363
9364 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9365
9366 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9367 (v850_register_name): Add the mpu and fpu register names.
9368 (v850e_register_name): Add the mpu and fpu register names.
9369 (v850e2_register_name): New function.
9370 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9371 bfd_mach_v850e2v3.
9372
9373 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9374
9375 * NEWS: Add entry for Ada varobj support.
9376
9377 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9378
9379 * varobj.c (default_value_is_changeable_p): New function,
9380 extracted from varobj_value_is_changeable_p. Add declaration.
9381 (ada_value_is_changeable_p): New function, extracted from
9382 varobj_value_is_changeable_p. Add declaration.
9383 (struct language_specific): New field "value_is_changeable_p".
9384 (languages): Add entries for new field.
9385 (varobj_create): Set language before calling install_new_value.
9386 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9387 "value_is_changeable_p" language callback.
9388
9389 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9390
9391 * ada-varobj.h, ada-varobj.c: New files.
9392 * Makefile.in (SFILES): Add ada-varobj.c.
9393 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9394 (COMMON_OBS): Add ada-varobj.o.
9395
9396 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9397
9398 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9399 (struct language_specific): New field "value_has_mutated".
9400 (languages): Set field "value_has_mutated" in each entry of array.
9401 (varobj_value_has_mutated): New function.
9402 (varobj_udpdate): Add handling of type mutation.
9403 (value_of_root): Add handling of type mutation.
9404 (ada_value_has_mutated): New function.
9405
9406 2012-03-28 Pedro Alves <palves@redhat.com>
9407
9408 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9409 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9410
9411 2012-03-28 Tom Tromey <tromey@redhat.com>
9412
9413 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9414 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9415 before returning.
9416
9417 2012-03-28 Tom Tromey <tromey@redhat.com>
9418
9419 * .dir-locals.el: New file.
9420
9421 2012-03-28 Pedro Alves <palves@redhat.com>
9422
9423 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9424
9425 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9426
9427 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9428 handling for r0.
9429
9430 2012-03-27 Pedro Alves <palves@redhat.com>
9431
9432 Eliminate struct ui_stream.
9433
9434 * ui-out.h (struct ui_stream): Delete.
9435 (ui_out_field_stream): Adjust prototype.
9436 (ui_out_stream_new, ui_out_stream_delete)
9437 (make_cleanup_ui_out_stream_delete): Delete declarations.
9438 * ui-out.c (ui_out_field_stream): Change prototype to take a
9439 ui_file instead of a ui_stream. Adjust.
9440 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9441 (make_cleanup_ui_out_stream_delete): Delete.
9442 * breakpoint.c (print_breakpoint_location)
9443 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9444 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9445 * disasm.c (dump_insns): Ditto.
9446 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9447 prototype.
9448 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9449 ui_stream/ui_out_stream_new.
9450 * infcmd.c (print_return_value): Ditto.
9451 * osdata.c (info_osdata_command): Don't allocate a local
9452 ui_stream.
9453 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9454 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9455 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9456 allocate a local ui_stream.
9457 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9458 instead of ui_stream/ui_out_stream_new.
9459 (list_args_or_locals): Don't allocate a local ui_stream.
9460 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9461 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9462 ui_stream/ui_out_stream_new.
9463 * cli/cli-setshow.c (do_setshow_command): Ditto.
9464
9465 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9466
9467 * arm-linux-tdep.c (arm_linux_init_abi): Call
9468 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9469 * arm-tdep.c (arm_process_record): New function.
9470 (deallocate_reg_mem): New function.
9471 (decode_insn): New function.
9472 (thumb_record_branch): New function.
9473 (thumb_record_ldm_stm_swi(): New function.
9474 (thumb_record_misc): New function.
9475 (thumb_record_ld_st_stack): New function.
9476 (thumb_record_ld_st_imm_offset): New function.
9477 (thumb_record_ld_st_reg_offset(): New function.
9478 (thumb_record_add_sub_cmp_mov): New function.
9479 (thumb_record_shift_add_sub): New function.
9480 (arm_record_coproc_data_proc): New function.
9481 (arm_record_coproc): New function.
9482 (arm_record_b_bl): New function.
9483 (arm_record_ld_st_multiple): New function.
9484 (arm_record_ld_st_reg_offset): New function.
9485 (arm_record_ld_st_imm_offset): New function.
9486 (arm_record_data_proc_imm): New function.
9487 (arm_record_data_proc_misc_ld_str): New function.
9488 (arm_record_extension_space): New function.
9489 (arm_record_strx): New function.
9490 (sbo_sbz): New function.
9491 (struct insn_decode_record): New structure for arm insn record.
9492 (REG_ALLOC): New macro for reg allocations.
9493 (MEM_ALLOC): New macro for memory allocations.
9494 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9495
9496 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9497
9498 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9499 (store_register): Likewise.
9500
9501 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9502
9503 * MAINTAINERS (Write After Approval): Add myself to the list.
9504
9505 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9506
9507 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9508 Describe also the option "auto".
9509
9510 2012-03-22 Richard Henderson <rth@redhat.com>
9511
9512 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9513 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9514
9515 2012-03-22 Richard Henderson <rth@redhat.com>
9516
9517 * jit.c (jit_read_code_entry): Compute alignment and offset of
9518 int64_t member before computing entry_size.
9519
9520 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9521
9522 Python scripting: Add new method Value.referenced_value to
9523 gdb.Value which can dereference pointer as well as reference
9524 values.
9525 * NEWS: Add entry under 'Python scripting' about the new method
9526 Value.referenced_value on gdb.Value objects.
9527 * python/py-value.c (valpy_referenced_value): New function
9528 defining a new method on gdb.Value objects which can dereference
9529 pointer and reference values.
9530
9531 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9532
9533 * MAINTAINERS (Write After Approval): Add myself to the list.
9534
9535 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9536
9537 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9538 in addition to "main".
9539
9540 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9541
9542 * expression.h (op_name): Add declaration.
9543 * expprint.c (op_name): Remove declaration. Make non-static.
9544 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9545
9546 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9547
9548 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9549 of struct siginfo.
9550 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9551 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9552 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9553 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9554 (linux_nat_get_siginfo): Likewise.
9555 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9556 (linux_nat_get_siginfo): Likewise.
9557 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9558 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9559 * procfs.c (gdb_siginfo_t): Likewise.
9560
9561 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9562
9563 * .gitignore: Ignore more files.
9564
9565 2012-03-20 Pedro Alves <palves@redhat.com>
9566
9567 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9568 returns.
9569
9570 2012-03-20 Yao Qi <yao@codesourcery.com>
9571
9572 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9573 comment.
9574
9575 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9576
9577 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9578 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9579 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9580 sect_offset.
9581 * dwarf2expr.h (cu_offset, sect_offset): New types.
9582 (struct dwarf_expr_context_funcs) <dwarf_call>
9583 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9584 sect_offset.
9585 (struct dwarf_expr_context) <len>: Improve the comment.
9586 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9587 cu_offset and sect_offset.
9588 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9589 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9590 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9591 * dwarf2loc.h: Include dwarf2expr.h.
9592 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9593 and sect_offset.
9594 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9595 Improve the comment.
9596 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9597 (struct signatured_type, struct line_header, struct partial_die_info)
9598 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9599 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9600 (get_die_type_at_offset, create_cus_from_index)
9601 (create_signatured_type_table_from_index, dw2_get_file_names)
9602 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9603 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9604 (create_debug_types_hash_table, process_psymtab_comp_unit)
9605 (load_partial_comp_unit, create_all_comp_units)
9606 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9607 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9608 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9609 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9610 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9611 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9612 (find_partial_die, read_attribute_value, lookup_die_type)
9613 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9614 (is_ref_attr): New function comment.
9615 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9616 Use cu_offset and sect_offset.
9617 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9618 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9619 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9620 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9621 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9622 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9623 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9624 sect_offset.
9625
9626 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9627
9628 Code cleanup.
9629 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9630 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9631 with xfree.
9632 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9633
9634 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9635
9636 * NEWS: Describe new options --init-command=FILE, -ix and
9637 --init-eval-command=COMMAND, -iex.
9638 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9639 CMDARG_INIT_COMMAND.
9640 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9641 "init-command", "init-eval-command", "ix" and "iex" to the variable
9642 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9643 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9644 (print_gdb_help): Describe --init-command=FILE, -ix and
9645 --init-eval-command=COMMAND, -iex.
9646
9647 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9648
9649 Code cleanup.
9650 * main.c (struct cmdarg): Move it here from main. Add more comments.
9651 (cmdarg_s, VEC (cmdarg_s)): New.
9652 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9653 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9654 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9655 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9656 of CMDARG.
9657
9658 2012-03-19 Tom Tromey <tromey@redhat.com>
9659
9660 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9661
9662 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9663
9664 PR symtab/13777
9665 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9666 GCC >=4.5.
9667
9668 2012-03-16 Chris January <chris.january@allinea.com>
9669
9670 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9671 of clear.
9672
9673 2012-03-16 Chris January <chris.january@allinea.com>
9674
9675 * source.c (add_path): Use memmove instead of strcpy because the
9676 strings overlap.
9677
9678 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9679
9680 * value.h (set_value_parent): Add declaration.
9681 * value.c (set_value_parent): New function.
9682 (value_address): If VALUE->PARENT is not NULL, then use it as
9683 the base address instead of VALUE->LOCATION.address.
9684 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9685 the same as OBJ's address. Adjust V's offset accordingly.
9686 Set V's parent.
9687
9688 2012-03-16 Gary Benson <gbenson@redhat.com>
9689
9690 PR breakpoints/10738
9691 * dwarf2read.c (use_deprecated_index_sections): New global.
9692 (struct partial_die_info): New member may_be_inlined.
9693 (read_partial_die): Set may_be_inlined where appropriate.
9694 (add_partial_subprogram): Add partial symbols for partial
9695 DIEs that may be inlined.
9696 (new_symbol_full): Add inlined subroutines to the current
9697 scope.
9698 (write_psymtabs_to_index): Bump version number.
9699 (dwarf2_read_index): Read only version 6 indices unless
9700 use_deprecated_index_sections is set.
9701 * linespec.c (symbol_and_data_callback): New structure.
9702 (iterate_inline_only): New function.
9703 (iterate_over_all_matching_symtabs): New argument
9704 "include_inline". If nonzero, also call the callback for
9705 symbols representing inlined subroutines.
9706 (lookup_prefix_sym): Pass extra argument to the above.
9707 (find_function_symbols): Likewise.
9708 (add_matching_symbols_to_info): Likewise.
9709 * NEWS: Mention that GDB can now set breakpoints on inlined
9710 functions.
9711
9712 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9713
9714 * p-typeprint.c (pascal_type_print_method_args):
9715 Fix display of parameter of methods.
9716
9717 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9718
9719 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9720 Add missing prototype.
9721
9722 2012-03-16 Yao Qi <yao@codesourcery.com>
9723 Jan Kratochvil <jan.kratochvil@redhat.com>
9724
9725 Fix false compilation warning.
9726 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9727
9728 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9729 Pedro Alves <pedro@codesourcery.com>
9730
9731 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9732 (arm_register_g_packet_guesses): New function.
9733 (arm_gdbarch_init): Don't force a target description with
9734 registers when the executable is detected as M-profile. Instead
9735 set gdbarch->tdep->is_m. Register `g' packet guesses.
9736 (_initialize_arm_tdep): Initialize the new target description.
9737 * features/arm-with-m-fpa-layout.xml: New description.
9738 * features/arm-with-m-fpa-layout.c: New, generated.
9739
9740 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9741
9742 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9743 Update function description.
9744 (insert_bp_location): Do not wipe bl->target_info out.
9745 * mem-break.c: #include "gdb_string.h".
9746 (default_memory_insert_breakpoint): Do not call target_read_memory
9747 with a pointer to the breakpoint's shadow_contents buffer. Use
9748 a local buffer instead.
9749 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9750
9751 2012-03-15 Tom Tromey <tromey@redhat.com>
9752
9753 * NEWS: Mention "info vtbl", not "info vtable".
9754 * cp-support.c (info_vtbl_command): Fix comment.
9755 (_initialize_cp_support): Fix text.
9756
9757 2012-03-15 Tom Tromey <tromey@redhat.com>
9758
9759 * cp-valprint.c (cp_print_value_fields): Use
9760 print_function_pointer_address for vtable slot.
9761
9762 2012-03-15 Tom Tromey <tromey@redhat.com>
9763
9764 * gnu-v3-abi.c (struct value_and_voffset): New.
9765 (hash_value_and_voffset, eq_value_and_voffset)
9766 (compare_value_and_voffset, compute_vtable_size)
9767 (print_one_vtable, gnuv3_print_vtable): New functions.
9768 (init_gnuv3_ops): Initialize 'print_vtable' field.
9769 * cp-support.c (info_vtbl_command): New function.
9770 (_initialize_cp_support): Add "info vtbl".
9771 * cp-abi.h (cplus_print_vtable): Declare.
9772 (struct cp_abi_ops) <print_vtable>: New field.
9773 * cp-abi.c (cplus_print_vtable): New function.
9774 * NEWS: Update.
9775
9776 2012-03-15 Tom Tromey <tromey@redhat.com>
9777
9778 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9779 iterate_over_symbols.
9780
9781 2012-03-14 Doug Evans <dje@google.com>
9782
9783 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9784 DW_OP_GNU_parameter_ref.
9785
9786 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9787
9788 Fix double prompt of 'interpreter-exec mi'.
9789 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9790 (mi_interpreter_resume): use it.
9791 (mi_execute_command_input_handler): New function.
9792 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9793 mi_execute_command_input_handler.
9794
9795 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9796
9797 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9798 prototype.
9799 (darwin_debug_port_info): Make static.
9800 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9801 * machoread.c (_initialize_machoread): Add prototype.
9802 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9803 (i386_darwin_set_control, i386_darwin_get_control)
9804 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9805 i386_darwin_get_status, i386_darwin_get_control):
9806 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9807
9808 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9809
9810 * ax-gdb.c (gen_usual_unary): Remove special handling of
9811 enum and bool types.
9812
9813 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9814
9815 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9816
9817 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9818
9819 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9820
9821 2012-03-13 Chris January <chris.january@allinea.com>
9822
9823 * aix-thread.c (fill_sprs): Store the floating point registers
9824 at the correct offsets into vals.
9825
9826 2012-03-13 Doug Evans <dje@google.com>
9827
9828 * NEWS: Mention symbol-reloading has been deleted.
9829 * symfile.c (symbol_reloading): Delete.
9830 (show_symbol_reloading): Delete.
9831 (_initialize_symfile): Delete set/show symbol-reloading.
9832
9833 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9834 read_in_chain until we have successfully read it in.
9835 (load_full_comp_unit): Ditto.
9836 (read_signatured_type): Add comment.
9837
9838 2012-03-13 Chris January <chris.january@allinea.com>
9839
9840 * stabsread.c (fix_common_block): Change type of valu argument
9841 to CORE_ADDR.
9842
9843 2012-03-13 Chris January <chris.january@allinea.com>
9844
9845 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9846 instruction.
9847
9848 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9849
9850 * common/linux-procfs.c (linux_proc_get_int): New, from
9851 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9852 field.
9853 (linux_proc_get_tgid): Only call linux_proc_get_int.
9854 (linux_proc_get_tracerpid): New.
9855 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9856 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9857 linux_proc_pid_has_state.
9858 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9859 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9860 (linux_ptrace_attach_warnings): New.
9861 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9862 New declaration.
9863 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9864 (linux_nat_attach): New variables ex, buffer, message and message_s.
9865 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9866
9867 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9868
9869 * Makefile.in (linux-ptrace.o): New.
9870 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9871 from linux-nat.c.
9872 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9873 * common/linux-ptrace.c: New file.
9874 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9875 * config/arm/linux.mh: Likewise.
9876 * config/i386/linux.mh: Likewise.
9877 * config/i386/linux64.mh: Likewise.
9878 * config/ia64/linux.mh: Likewise.
9879 * config/m32r/linux.mh: Likewise.
9880 * config/m68k/linux.mh: Likewise.
9881 * config/mips/linux.mh: Likewise.
9882 * config/pa/linux.mh: Likewise.
9883 * config/powerpc/linux.mh: Likewise.
9884 * config/powerpc/ppc64-linux.mh: Likewise.
9885 * config/powerpc/spu-linux.mh: Likewise.
9886 * config/s390/s390.mh: Likewise.
9887 * config/sparc/linux.mh: Likewise.
9888 * config/sparc/linux64.mh: Likewise.
9889 * config/xtensa/linux.mh: Likewise.
9890 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9891 common/linux-procfs.c.
9892 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9893
9894 2012-03-13 Hui Zhu <teawater@gmail.com>
9895 Pedro Alves <palves@redhat.com>
9896
9897 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9898 CREATE_BREAKPOINT_FLAGS_INSERTED.
9899 (create_breakpoint_sal, create_breakpoints_sal)
9900 (base_breakpoint_create_breakpoints_sal)
9901 (tracepoint_create_breakpoints_sal)
9902 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9903 down.
9904 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9905 (ftrace_command, strace_command): Adjust.
9906 (create_tracepoint_from_upload): Pass
9907 CREATE_BREAKPOINT_FLAGS_INSERTED.
9908 * breakpoint.h (enum breakpoint_create_flags): New.
9909 (create_breakpoint): New flags parameter.
9910 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9911 * python/py-breakpoint.c (bppy_init): Adjust.
9912 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9913 * spu-tdep.c (spu_catch_start): Adjust.
9914
9915 2012-03-13 Pedro Alves <palves@redhat.com>
9916 Hui Zhu <teawater@gmail.com>
9917 Yao Qi <yao@codesourcery.com>
9918
9919 * remote.c (struct remote_state): New field `starting_up'.
9920 (remote_start_remote): Set and clear it.
9921 (remote_can_download_tracepoint): If starting up, return false.
9922
9923 2012-03-13 Yao Qi <yao@codesourcery.com>
9924
9925 * inferior.h (struct inferior): Remove fields any_syscall_count,
9926 syscalls_counts and total_syscalls_count. Move them to new
9927 struct catch_syscall_inferior_data in breakpoint.c.
9928 * breakpoint.c: Call DEF_VEC_I(int).
9929 (struct catch_syscall_inferior_data): New.
9930 (get_catch_syscall_inferior_data): New.
9931 (catch_syscall_inferior_data_cleanup): New.
9932 (insert_catch_syscall): Update to access data in
9933 struct catch_syscall_inferior_data.
9934 (insert_catch_syscall): Likewise.
9935 (remove_catch_syscall): Likewise.
9936 (remove_catch_syscall): Likewise.
9937 (is_syscall_catchpoint_enabled): Likewise.
9938 (add_catch_command): Likewise.
9939 (_initialize_breakpoint): Register cleanup.
9940 * breakpoint.h: Removed DEF_VEC_I(int).
9941 * dwarf2loc.c: Call DEF_VEC_I(int).
9942 * mi/mi-main.c: Likewise.
9943
9944 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9945
9946 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9947
9948 2012-03-12 Chris January <chris.january@allinea.com>
9949
9950 * aix-thread.c (_initialize_aix_thread): Add prototype.
9951 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9952 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9953
9954 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9955
9956 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9957 include of "amd64-nat.h".
9958
9959 2012-03-12 Tom Tromey <tromey@redhat.com>
9960
9961 * buildsym.c (record_pending_block): Now static.
9962 * buildsym.h: (record_pending_block): Remove.
9963
9964 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9965
9966 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9967
9968 2012-03-09 Tom Tromey <tromey@redhat.com>
9969
9970 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9971 producer_is_gxx_lt_4_6>: New fields.
9972 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9973
9974 2012-03-09 Tom Tromey <tromey@redhat.com>
9975
9976 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9977
9978 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9979
9980 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9981 prototype.
9982
9983 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9984
9985 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9986
9987 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9988
9989 Fix -Wmissing-prototypes build.
9990 * arm-linux-nat.c (get_thread_id): Make it static.
9991 * xtensa-linux-nat.c (get_thread_id): Likewise.
9992
9993 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9994
9995 * server.c (process_point_options): If a conditional expression
9996 is found, only print a message if remote_debug is nonzero.
9997
9998 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9999
10000 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10001 of internal error for unknown/unsupported types.
10002
10003 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10004
10005 Fix CU relative vs. absolute DIE offsets.
10006 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10007 offset to offset_in_cu.
10008 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10009 TYPE_OFFSET.
10010 (dwarf2_fetch_die_location_block): Rename parameter offset to
10011 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10012
10013 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10014
10015 * libunwind-frame.c: Rename to ...
10016 * ia64-libunwind-tdep.c: ... here.
10017 * libunwind-frame.h: Rename to ...
10018 * ia64-libunwind-tdep.h: ... here.
10019 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10020 ia64-libunwind-tdep.h.
10021 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10022 * README (--with-libunwind): Rename to ...
10023 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10024 * config.in: Regenerate.
10025 * configure: Regenerate.
10026 * configure.ac: New option --with-libunwind-ia64, make the
10027 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10028 Remove AC_DEFINE for HAVE_LIBUNWIND.
10029 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10030 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10031 Rename libunwind-frame in the general comment.
10032 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10033 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10034 Move forward declarations inside #ifndef. Rename libunwind-frame in
10035 the general comment.
10036 * ia64-tdep.c: Rename libunwind-frame.h #include to
10037 ia64-libunwind-tdep.h.
10038 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10039 (ia64_libunwind_descr): Rename libunwind-frame to
10040 ia64-libunwind-tdep in these function comments.
10041 * ia64-tdep.h: Rename libunwind-frame.h #include to
10042 ia64-libunwind-tdep.h.
10043 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10044 ia64-libunwind-tdep in that data comment.
10045
10046 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10047
10048 * libunwind-frame.h (struct frame_unwind): New declaration.
10049
10050 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10051
10052 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10053 "set breakpoint condition-evaluation" command.
10054
10055 2012-03-08 Tristan Gingold <gingold@adacore.com>
10056
10057 * sparc-stub.c: Move to stubs/
10058 * sh-stub.c: Likewise.
10059 * m68k-stub.c: Likewise.
10060 * m32r-stub.c: Likewise.
10061 * i386-stub.c: Likewise.
10062
10063 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10064
10065 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10066 linux_get_siginfo_type.
10067
10068 * m68klinux-nat.c: Include "gdb_proc_service.h".
10069 (PTRACE_GET_THREAD_AREA): Define.
10070 (ps_get_thread_area): New function.
10071
10072 2012-03-08 Yao Qi <yao@codesourcery.com>
10073
10074 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10075 `xsnprintf'.
10076 (remote_query_attached): Likewise.
10077 (remote_static_tracepoint_marker_at): Likewise.
10078 (remote_set_permissions): Likewise.
10079 (remote_detach_1, extended_remote_attach_1): Likewise.
10080 (send_g_packet, remote_vkill): Likewise.
10081 (extended_remote_disable_randomization): Likewise.
10082 (remote_add_target_side_condition): Likewise.
10083 (remote_insert_breakpoint): Likewise.
10084 (remote_remove_breakpoint): Likewise.
10085 (remote_insert_watchpoint): Likewise.
10086 (remote_remove_watchpoint): Likewise.
10087 (remote_insert_hw_breakpoint): Likewise.
10088 (remote_insert_hw_breakpoint): Likewise.
10089 (remote_remove_hw_breakpoint): Likewise.
10090 (remote_download_command_source): Likewise.
10091 (remote_download_tracepoint): Likewise.
10092 (remote_download_trace_state_variable): Likewise.
10093 (remote_disable_tracepoint): Likewise.
10094 (remote_trace_set_readonly_regions): Likewise.
10095 (remote_get_tracepoint_status): Likewise.
10096 (remote_trace_find): Likewise.
10097 (remote_get_trace_state_variable_value): Likewise.
10098 (remote_set_disconnected_tracing): Likewise.
10099 (remote_set_circular_trace_buffer): Likewise.
10100 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10101 (remote_use_agent): Likewise.
10102 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10103 Update callers.
10104
10105 2012-03-07 Pedro Alves <palves@redhat.com>
10106
10107 * NEWS: Mention QProgramSignals.
10108 * inferior.h (update_signals_program_target): Declare.
10109 * infrun.c: (update_signals_program_target): New.
10110 (handle_command): Update the target of the new program signals
10111 array changes.
10112 * remote.c (PACKET_QProgramSignals): New enum.
10113 (last_program_signals_packet): New global.
10114 (remote_program_signals): New.
10115 (remote_start_remote): Update the target with the program signals
10116 list.
10117 (remote_protocol_features): Add entry for QPassSignals.
10118 (remote_open_1): Free anc clear last_program_signals_packet.
10119 (init_remote_ops): Install remote_program_signals.
10120 * target.c (update_current_target): Adjust.
10121 (target_program_signals): New.
10122 * target.h (struct target_ops) <to_program_signals>: New field.
10123 (target_program_signals): Declare.
10124
10125 2012-03-07 Pedro Alves <palves@redhat.com>
10126
10127 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10128 extensions.
10129
10130 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10131
10132 * m68klinux-nat.c (getregs_supplies): Make static.
10133 (getfpregs_supplies): Likewise.
10134 (have_ptrace_getregs): Likewise.
10135
10136 2012-03-06 Joel Brobecker <brobecker@adacore.com>
10137
10138 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10139 in call to get_die_type_at_offset.
10140
10141 2012-03-06 Stan Shebs <stan@codesourcery.com>
10142
10143 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10144 * mi/mi-cmd-disas.c: Ditto.
10145 * mi/mi-cmd-env.c: Ditto.
10146 * mi/mi-cmd-file.c: Ditto.
10147 * mi/mi-cmd-stack.c: Ditto.
10148 * mi/mi-cmd-target.c: Ditto.
10149 * mi/mi-cmd-var.c: Ditto.
10150 * mi/mi-cmds.c: Ditto.
10151 * mi/mi-cmds.h: Ditto.
10152 * mi/mi-console.c: Ditto.
10153 * mi/mi-getopt.c: Ditto.
10154 * mi/mi-getopt.h: Ditto.
10155 * mi/mi-interp.c: Ditto.
10156 * mi/mi-main.c: Ditto.
10157 * mi/mi-out.c: Ditto.
10158 * mi/mi-parse.c: Ditto.
10159 * mi/mi-parse.h: Ditto.
10160 * mi/mi-symbol-cmds.c: Ditto.
10161
10162 * mi/mi-getopt.h: Move mi_opt struct up.
10163 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10164 return.
10165 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10166
10167 2012-03-06 Tom Tromey <tromey@redhat.com>
10168
10169 * proc-service.c (ps_pglobal_lookup): Set the current program
10170 space.
10171
10172 2012-03-06 Pedro Alves <palves@redhat.com>
10173
10174 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10175
10176 2012-03-05 Joel Brobecker <brobecker@adacore.com>
10177
10178 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10179
10180 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10181
10182 Code cleanup.
10183 * common/linux-osdata.c (linux_common_core_of_thread): New function
10184 comment.
10185 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10186 call by linux_common_core_of_thread.
10187 (linux_nat_core_of_thread_1): Remove.
10188 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10189 * linux-thread-db.c: Include linux-osdata.h.
10190 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10191 linux_common_core_of_thread.
10192
10193 2012-03-05 Tom Tromey <tromey@redhat.com>
10194
10195 * value.c (value_primitive_field): Don't fetch contents for
10196 non-virtual bases.
10197
10198 2012-03-05 Tom Tromey <tromey@redhat.com>
10199
10200 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10201
10202 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
10203
10204 * s390-nat.c: Include "gregset.h".
10205
10206 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10207
10208 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10209 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10210 (libunwind_load): New variable so_error, use it for dlerror. Try to
10211 load also LIBUNWIND_SO_7.
10212
10213 2012-03-05 Pedro Alves <palves@redhat.com>
10214
10215 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10216 is not NULL, and remove resulting dead code.
10217
10218 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10219
10220 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10221 prologue to sh_analyze_prologue.
10222 (sh_analyze_prologue): Make better use of such an upper limit, and
10223 generally be more cautious about accessing memory.
10224
10225 2012-03-05 Tom Tromey <tromey@redhat.com>
10226
10227 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10228 _initialize_ia64_hpux_tdep.
10229
10230 2012-03-05 Pedro Alves <palves@redhat.com>
10231
10232 PR gdb/13766
10233
10234 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10235 the register state is clear, supply explicit zero, instead of
10236 marking the register unavailable.
10237
10238 2012-03-05 Tristan Gingold <gingold@adacore.com>
10239
10240 * NEWS: Mention OpenVMS ia64 new target.
10241
10242 2012-03-05 Tristan Gingold <gingold@adacore.com>
10243
10244 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10245 (ia64_unw_accessors, ia64_unw_rse_accessors)
10246 (ia64_libunwind_descr): Declare.
10247 * ia64-vms-tdep.c: New file.
10248 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10249 (ia64_libunwind_descr): Make them public.
10250 * configure.tgt: Add ia64-*-*vms*.
10251 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10252 (ALLDEPFILES): Add ia64-vms-tdep.c
10253
10254 2012-03-05 Tristan Gingold <gingold@adacore.com>
10255
10256 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10257 * remote.c (PACKET_qXfer_uib): New enum value.
10258 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10259 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10260 (_initialize_remote): Call add_packet_config_cmd for
10261 xfer:uib packet.
10262
10263 2012-03-05 Tristan Gingold <gingold@adacore.com>
10264
10265 * osabi.c (gdb_osabi_names): Add OpenVMS.
10266 (generic_elf_osabi_sniffer): Likewise.
10267 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10268
10269 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10270
10271 Removed unused code.
10272 * libunwind-frame.c (libunwind_frame_unwind)
10273 (libunwind_frame_base_address): Remove.
10274 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10275
10276 2012-03-04 Yao Qi <yao@codesourcery.com>
10277
10278 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10279 remove trailing new line.
10280 (agent_run_command, agent_run_command): Add _ markup.
10281 (agent_capability_check): Likewise.
10282
10283 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10284
10285 * breakpoint.c (set_condition_evaluation_mode): Set
10286 CONDITION_EVALUATION_MODE unconditionally.
10287
10288 2012-03-03 Yao Qi <yao@codesourcery.com>
10289
10290 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10291 * common/agent.h: Update declaration.
10292 * inf-child.c (inf_child_use_agent): New.
10293 (inf_child_can_use_agent): New.
10294 (inf_child_target): Initialize fields `to_use_agent'
10295 and `to_can_use_agent'.
10296 * agent.c (agent_new_objfile): New.
10297 (_initialize_agent): Add agent_new_objfile to new_objfile
10298 observer.
10299
10300 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10301 New.
10302 (linux_target_install_ops): Initialize field
10303 `to_static_tracepoint_markers_by_strid'.
10304 * remote.c (free_current_marker): Move it to ...
10305 * tracepoint.c (free_current_marker): ... here. New.
10306 (cleanup_target_stop): New.
10307 * tracepoint.h: Declare free_current_marker.
10308 * NEWS: Add one entry about `info static-tracepoint-marker'.
10309
10310 2012-03-03 Yao Qi <yao@codesourcery.com>
10311
10312 * common/agent.c (agent_loaded_p): New.
10313 (agent_look_up_symbols): New global.
10314 * common/agent.h: Declare agent_loaded_p.
10315
10316 2012-03-03 Yao Qi <yao@codesourcery.com>
10317
10318 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10319 (agent_capability_check, agent_capability_invalidate): New.
10320 (symbol_list): New array element.
10321 * common/agent.h (enum agent_capa): New.
10322 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10323
10324 2012-03-03 Yao Qi <yao@codesourcery.com>
10325
10326 * target.h (struct target_ops) <to_use_agent>: New field.
10327 (struct target_ops) <to_can_use_agent>: New field.
10328 (target_use_agent, target_can_use_agent): New macro.
10329 * target.c (update_current_target): Update.
10330 * remote.c: New enum `PACKET_QAgent'.
10331 (remote_protocol_features): Add a new element.
10332 (remote_use_agent, remote_can_use_agent): New.
10333 (init_remote_ops): Initialize field `can_use_agent' with
10334 remote_can_use_agent. Intiailize field `use_agent' with
10335 remote_use_agent.
10336 * common/agent.c (use_agent): New global.
10337 * common/agent.h: Declare it.
10338 * tracepoint.c (info_static_tracepoint_markers_command): Add
10339 comment.
10340 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10341 (COMMON_OBS): Add common/agent.o and agent.o
10342 (common-agent.o): New rule.
10343 * agent.c: New.
10344
10345 2012-03-03 Yao Qi <yao@codesourcery.com>
10346
10347 * common/agent.c: New.
10348 * common/agent.h: New.
10349 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10350 AC_CHECK_HEADERS.
10351 * configure, configh.in: Regenerated.
10352
10353 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10354
10355 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10356 unless it exists for this architecture.
10357
10358 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10359
10360 * language.h (struct language_defn): New "method" la_read_var_value.
10361 * findvar.c: #include "language.h".
10362 (default_read_var_value): Renames read_var_value. Rewrite
10363 function description.
10364 (read_var_value): New function.
10365 * value.h (default_read_var_value): Add prototype.
10366 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10367 New functions.
10368 (ada_language_defn): Add entry for la_read_var_value.
10369 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10370 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10371 language_defn structures to add entry for new la_read_var_value
10372 field.
10373
10374 2012-03-02 Tom Tromey <tromey@redhat.com>
10375 Pedro Alves <palves@redhat.com>
10376
10377 PR breakpoints/13776:
10378 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10379 breakpoints.
10380 (delete_longjmp_breakpoint_at_next_stop): New.
10381 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10382 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10383 before deleting the inferior. Add comments.
10384 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10385 breakpoints immediately, but only on next stop. Move that code
10386 next to where we mark other breakpoints for deletion.
10387
10388 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10389
10390 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10391 marker.
10392 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10393 violation.
10394
10395 2012-03-02 Pedro Alves <palves@redhat.com>
10396
10397 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10398
10399 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10400
10401 Fix -Wmissing-prototypes build.
10402 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10403 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10404 (gdbsim_has_memory): Likewise.
10405
10406 2012-03-02 Yao Qi <yao@codesourcery.com>
10407
10408 Fix -Wmissing-prototypes build.
10409 * charset.c (phony_iconv_open): Make static.
10410 (phony_iconv_close, phony_iconv): Likewise.
10411 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10412 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10413 prototype.
10414 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10415 * ser-mingw.c (create_select_thread): Make static.
10416 * windows-termcap.c (tgetent): New prototype.
10417 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10418
10419 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10420
10421 Fix -Wmissing-prototypes build.
10422 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10423 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10424 (_initialize_loadable): New prototypes.
10425
10426 2012-03-02 Doug Evans <dje@google.com>
10427
10428 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10429 abbrev table, read_comp_unit will do it.
10430
10431 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10432
10433 Fix -Wmissing-prototypes build.
10434 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10435 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10436 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10437 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10438 (_initialize_arm_symbian_tdep): New prototype.
10439 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10440 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10441 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10442 static.
10443 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10444 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10445 prototype.
10446 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10447 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10448 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10449 static.
10450 * moxie-tdep.c (moxie_process_record): Likewise.
10451 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10452 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10453 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10454 (_initialize_rl78_tdep): New prototype.
10455 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10456 (_initialize_rx_tdep): New prototype.
10457 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10458 (_initialize_darwin_solib): New prototype.
10459 * solib-spu.c: Include solib-spu.h.
10460 (_initialize_spu_solib): New prototype.
10461 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10462 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10463 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10464 (tic6x_software_single_step): Make it static.
10465 (_initialize_tic6x_tdep): New prototype.
10466
10467 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10468
10469 Fix -Wmissing-prototypes build.
10470 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10471 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10472
10473 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10474
10475 Fix -Wmissing-prototypes build.
10476 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10477 (frv_have_stopped_data_address): Remove.
10478
10479 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10480
10481 Fix -Wmissing-prototypes build.
10482 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10483 * sh-tdep.c: Include sh64-tdep.h.
10484 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10485 * sh64-tdep.c: Include sh64-tdep.h.
10486 * sh64-tdep.h: New file.
10487
10488 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10489
10490 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10491
10492 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10493
10494 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10495 sp_regnum once the gdbarch_init_osabi hook has been called.
10496
10497 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10498
10499 * mips-tdep.c (mips32_bc1_pc): New function.
10500 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10501 BPOSGE32 and BPOSGE64 instructions.
10502 (deal_with_atomic_sequence): Likewise.
10503 (mips32_instruction_has_delay_slot): Likewise.
10504
10505 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10506 Chris Dearman <chris@mips.com>
10507 Maciej W. Rozycki <macro@codesourcery.com>
10508 Joseph Myers <joseph@codesourcery.com>
10509
10510 * features/mips-dsp.xml: New file.
10511 * features/mips64-dsp.xml: New file.
10512 * features/mips-dsp-linux.xml: New file.
10513 * features/mips64-dsp-linux.xml: New file.
10514 * features/Makefile (WHICH): Add mips-dsp-linux and
10515 mips64-dsp-linux.
10516 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10517 * features/mips-dsp-linux.c: New file.
10518 * features/mips64-dsp-linux.c: New file.
10519 * regformats/mips-dsp-linux.dat: New file.
10520 * regformats/mips64-dsp-linux.dat: New file.
10521 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10522 registers.
10523 (mips64_linux_register_addr): Likewise.
10524 (mips64_linux_regsets_fetch_registers): Likewise.
10525 (mips64_linux_regsets_store_registers): Likewise.
10526 (mips64_linux_fetch_registers): Update call to
10527 mips64_linux_regsets_fetch_registers.
10528 (mips64_linux_store_registers): Update call to
10529 mips64_linux_regsets_store_registers.
10530 (mips_linux_read_description): Probe for DSP registers.
10531 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10532 and initialize_tdesc_mips64_dsp_linux.
10533 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10534 Remove padding of no longer used embedded register slots.
10535 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10536 (MIPS_RESTART_REGNUM): Redefine enum value.
10537 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10538 strings.
10539 (mips_tx39_reg_names): Likewise.
10540 (mips_linux_reg_names): New array of register names for Linux
10541 targets.
10542 (mips_register_name): Check for a null pointer in
10543 mips_processor_reg_names and return an empty string.
10544 (mips_register_type): Exclude embedded registers for the IRIX
10545 and Linux ABIs.
10546 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10547 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10548 DSP registers.
10549 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10550 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10551 (mips_gdbarch_init): Likewise. Initialize internal register
10552 indices for the Linux ABI. Use dynamic numbers to refer to
10553 registers, as applicable, while parsing the target description.
10554 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10555
10556 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10557
10558 * frame.h (read_frame_register_unsigned): Fix typo in function
10559 description.
10560
10561 2012-03-01 Pedro Alves <palves@redhat.com>
10562
10563 * jit-reader.in [!__cplusplus]
10564 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10565
10566 2012-03-01 Pedro Alves <palves@redhat.com>
10567
10568 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10569 * configure: Regenerate.
10570
10571 2012-03-01 Pedro Alves <palves@redhat.com>
10572
10573 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10574 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10575 (ftrace_command, strace_command): Make static.
10576 * d-lang.c (_initialize_d_language): Declare.
10577 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10578 * dwarf2loc.c (_initialize_dwarf2loc):
10579 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10580 * exec.c (exec_get_section_table): Make static.
10581 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10582 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10583 * inferior.c (remove_inferior_command, add_inferior_command)
10584 (clone_inferior_command): Make static.
10585 * linux-nat.c (linux_nat_thread_address_space)
10586 (linux_nat_core_of_thread): Make static.
10587 * linux-tdep.c (_initialize_linux_tdep): Declare.
10588 * objc-lang.c (_initialize_objc_lang): Declare.
10589 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10590 Make static.
10591 (_initialize_opencl_language): Declare.
10592 * record.c (_initialize_record): Declare.
10593 * remote.c (demand_private_info, remote_get_tib_address)
10594 (remote_supports_cond_tracepoints)
10595 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10596 Make static.
10597 * skip.c (_initialize_step_skip): Declare.
10598 * symtab.c (skip_prologue_using_lineinfo): Make static.
10599 * tracepoint.c (delete_trace_state_variable)
10600 (trace_variable_command, delete_trace_variable_command)
10601 (get_uploaded_tsv, find_matching_tracepoint_location)
10602 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10603 Make static.
10604 * value.c (pack_unsigned_long): Make static.
10605 * varobj.c (varobj_ensure_python_env): Make static.
10606 * windows-tdep.c (_initialize_windows_tdep): Declare.
10607 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10608
10609 2012-03-01 Pedro Alves <palves@redhat.com>
10610
10611 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10612 gdbarch parameter.
10613 (linux_init_abi): Install it as has_shared_address_space gdbarch
10614 callback.
10615
10616 2012-03-01 Pedro Alves <palves@redhat.com>
10617
10618 * observer.c (observer_test_first_notification_function)
10619 (observer_test_second_notification_function)
10620 (observer_test_third_notification_function): Add declarations.
10621
10622 2012-03-01 Pedro Alves <palves@redhat.com>
10623
10624 * common/signals.c (default_target_signal_to_host)
10625 (default_target_signal_from_host): Move ...
10626 * arch-utils.c: ... here.
10627 * arch-utils.h (default_target_signal_to_host)
10628 (default_target_signal_from_host): Declare.
10629
10630 * common/signals.c (target_signal_from_command): Move ...
10631 * infrun.c: ... here.
10632 * inferior.h (target_signal_from_command): Declare.
10633 * target.h (target_signal_from_command)
10634 (default_target_signal_from_host, default_target_signal_to_host):
10635 Delete declarations.
10636
10637 * common/signals.c (_initialize_signals): Delete.
10638
10639 2012-03-01 Pedro Alves <palves@redhat.com>
10640
10641 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10642 both __cplusplus and !__cplusplus.
10643
10644 2012-03-01 Pedro Alves <palves@redhat.com>
10645
10646 * psymtab.c (find_and_open_source): Delete declaration.
10647 * source.c (find_and_open_source): Move comment ...
10648 * source.h (find_and_open_source): ... to this new declaration.
10649
10650 2012-03-01 Pedro Alves <palves@redhat.com>
10651
10652 * inline-frame.c: Include inline-frame.h.
10653
10654 2012-03-01 Pedro Alves <palves@redhat.com>
10655
10656 * tui/tui-data.c (set_gen_win_origin): Delete.
10657 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10658 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10659
10660 2012-03-01 Pedro Alves <palves@redhat.com>
10661
10662 * remote.c (encode_actions): Delete declaration.
10663 * tracepoint.c (encode_actions): Make extern.
10664 * tracepoint.h (encode_actions): Declare.
10665
10666 2012-03-01 Pedro Alves <palves@redhat.com>
10667
10668 * python/py-breakpoint.c: Include python.h.
10669 * python/py-continueevent.c (create_continue_event_object): Make
10670 static.
10671 * python/py-lazy-string.c (stpy_get_type): Make static.
10672 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10673 Make static.
10674 * python/py-utils.c (unicode_to_target_python_string): Make
10675 static.
10676 * python/py-value.c: Include python.h.
10677
10678 2012-03-01 Pedro Alves <palves@redhat.com>
10679
10680 * inferior.c (delete_threads_of_inferior): Delete.
10681
10682 2012-03-01 Pedro Alves <palves@redhat.com>
10683
10684 Import fallback definitions from glibc.
10685
10686 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10687 ps_prochandle): Forward declare.
10688 (ps_err_e): Use glibc's comments.
10689 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10690 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10691 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10692 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10693 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10694 (struct ps_prochandle): Adjust comment.
10695
10696 2012-03-01 Pedro Alves <palves@redhat.com>
10697
10698 * ada-lang.c (ada_modulus_from_name): Delete.
10699 * ada-lex.l (lexer_init): Make static.
10700
10701 2012-03-01 Pedro Alves <palves@redhat.com>
10702
10703 PR gdb/13767
10704
10705 * frame.c (read_frame_register_unsigned): New.
10706 * frame.h (read_frame_register_unsigned): Declare.
10707 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10708 Handle it.
10709 (print_i387_control_word): New parameter `control_p'. Handle it.
10710 (i387_print_float_info): Handle unavailable float registers.
10711
10712 2012-03-01 Keith Seitz <keiths@redhat.com>
10713
10714 * linespec.c (decode_line_2): Sort the list of methods
10715 alphabetically before presenting the user with a selection
10716 menu.
10717
10718 2012-03-01 Doug Evans <dje@google.com>
10719
10720 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10721 has_namespace_info.
10722 (dwarf2_read_abbrevs): Remove corresponding initialization.
10723
10724 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10725
10726 * NEWS: Mention new python command class gdb.COMMAND_USER.
10727 * cli/cli-cmds.c (show_user): Print error when used on a python
10728 command.
10729 (init_cli_cmds): Update documentation strings for "show user" and
10730 "set/show max-user-call-depth" to clarify that it does not apply to
10731 python commands.
10732 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10733 error check.
10734 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10735 gdb python api.
10736 * top.c (execute_command): Only execute a user-defined command as a
10737 legacy macro if c->user_commands is set.
10738
10739 2012-03-01 Tom Tromey <tromey@redhat.com>
10740
10741 * valprint.h (struct generic_val_print_decorations): New.
10742 (generic_val_print): Declare.
10743 * valprint.c (generic_val_print): New function.
10744 * p-valprint.c (p_decorations): New global.
10745 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10746 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10747 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10748 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10749 * m2-valprint.c (m2_decorations): New global.
10750 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10751 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10752 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10753 TYPE_CODE_ERROR>: Call generic_val_print.
10754 * f-valprint.c (f_decorations): New global.
10755 (f_val_print): Use print_function_pointer_address.
10756 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10757 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10758 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10759 generic_val_print.
10760 * c-valprint.c (c_decorations): New global.
10761 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10762 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10763 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10764 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10765 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10766 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10767 case.
10768
10769 2012-03-01 Tom Tromey <tromey@redhat.com>
10770
10771 * valprint.c (val_print): Update.
10772 * p-valprint (pascal_val_print): Return void.
10773 * p-lang.h (pascal_val_print): Return void.
10774 * m2-valprint.c (m2_val_print): Return void.
10775 * m2-lang.h (m2_val_print): Return void.
10776 * language.h (struct language_defn) <la_val_print>: Return void.
10777 * language.c (unk_lang_val_print): Return void.
10778 * jv-valprint.c (java_val_print): Return void.
10779 * jv-lang.h (java_val_print): Return void.
10780 * f-valprint.c (f_val_print): Return void.
10781 * f-lang.h (f_val_print): Return void.
10782 * d-valprint.c (d_val_print): Return void.
10783 (dynamic_array_type): Update.
10784 * d-lang.h (d_val_print): Return void.
10785 * c-valprint.c (c_val_print): Return void.
10786 * c-lang.h (c_val_print): Return void.
10787 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10788 void.
10789 * ada-lang.h (ada_val_print): Return void.
10790
10791 2012-03-01 Tom Tromey <tromey@redhat.com>
10792
10793 * value.h (val_print): Return void.
10794 * valprint.c (val_print): Return void.
10795
10796 2012-03-01 Tom Tromey <tromey@redhat.com>
10797
10798 * value.h (common_val_print): Return void.
10799 * valprint.c (common_val_print): Return void.
10800
10801 2012-03-01 Tom Tromey <tromey@redhat.com>
10802
10803 * value.h (value_print): Return void.
10804 * valprint.c (value_print): Return void.
10805 * p-valprint.c (pascal_value_print): Return void.
10806 * p-lang.h (pascal_value_print): Return void.
10807 * language.h (struct language_defn) <la_value_print>: Return
10808 void.
10809 * language.c (unk_lang_value_print): Return void.
10810 * jv-valprint.c (java_value_print): Return void.
10811 * jv-lang.h (java_value_print): Return void.
10812 * f-valprint.c (c_value_print): Don't declare.
10813 Include c-lang.h.
10814 * c-valprint.c (c_value_print): Return void.
10815 * c-lang.h (c_value_print): Return void.
10816 * ada-valprint.c (ada_value_print): Return void.
10817 * ada-lang.h (ada_value_print): Return void.
10818
10819 2012-03-01 Tom Tromey <tromey@redhat.com>
10820
10821 * value.c (value_primitive_field): Handle virtual base classes.
10822
10823 2012-03-01 Tom Tromey <tromey@redhat.com>
10824
10825 * gdbtypes.h (struct vbase): Remove.
10826
10827 2012-03-01 Tom Tromey <tromey@redhat.com>
10828
10829 * c-valprint.c (print_function_pointer_address): Move...
10830 * valprint.c: ... here. Make non-static.
10831 * m2-valprint.c (print_function_pointer_address): Remove.
10832 * valprint.h (print_function_pointer_address): Declare.
10833
10834 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10835
10836 * NEWS: Document the fact that one can provide a condition when
10837 creating an Ada exception catchpoint.
10838
10839 2012-03-01 Tom Tromey <tromey@redhat.com>
10840
10841 * valprint.c (val_print_type_code_flags): Fix placement of
10842 trailing brace.
10843
10844 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10845
10846 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10847 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10848 environment variable before calling update-copyright.
10849
10850 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10851
10852 * gnulib/extra/update-copyright: Update to the latest from
10853 gnulib's git repository.
10854 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10855 variable to 2 instead of 1.
10856
10857 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10858
10859 * varobj.c (c_value_of_variable): Remove dead code.
10860
10861 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10862
10863 * ada-lex.p (processId): Do not modify already encoded IDs.
10864 Update function documentation.
10865
10866 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10867
10868 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10869 "name" with "struct symbol *name_sym".
10870 * ada-exp.y (write_var_or_type): Update call to
10871 ada_find_renaming_symbol.
10872 "name" with "struct symbol *name_sym". Adjust Implementation
10873 accordingly. Adjust the function documentation.
10874
10875 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10876
10877 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10878 * ada-lang.c (ada_find_any_type): Add advance declaration.
10879 Make static. Replace ada_find_any_symbol by
10880 ada_find_any_type_symbol.
10881 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10882 Improve function description. Make static.
10883 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10884 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10885
10886 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10887
10888 * ada-lang.c (struct tag_args): Delete.
10889 (ada_get_tsd_type): Function body moved up in source file.
10890 (ada_tag_name_1, ada_tag_name_2): Delete.
10891 (ada_get_tsd_from_tag): New function.
10892 (ada_tag_name_from_tsd): New function.
10893 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10894 to determine the tag name.
10895
10896 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10897
10898 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10899 declaration.
10900 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10901 function.
10902
10903 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10904
10905 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10906
10907 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10908
10909 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10910 full searches.
10911
10912 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10913
10914 * ada-lang.c (constrained_packed_array_type): If there is a
10915 parallel XA type, use it to determine the array index type.
10916
10917 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10918
10919 * ada-valprint.c (ada_val_print_1): If our value is a reference
10920 to an array descriptor, dereference it before converting it
10921 to a simple array.
10922
10923 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10924
10925 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10926 creating fixed value.
10927 (ada_value_ind, ada_coerce_ref, assign_component)
10928 (ada_evaluate_subexp): Remove call to unwrap_value before
10929 call to ada_to_fixed_value.
10930
10931 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10932
10933 * ada-lang.c (to_fixed_array_type): Set result's type name.
10934
10935 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10936
10937 * ada-lang.c (catch_ada_exception_command_split): Add new
10938 argument cond_string. Add support for condition at end of
10939 "catch exception" commands.
10940 (ada_decode_exception_location): Add new argument cond_string.
10941 Update call to catch_ada_exception_command_split.
10942 (create_ada_exception_catchpoint): Add new argument cond_string.
10943 Set the breakpoint condition if needed.
10944 (catch_ada_exception_command): Update call to
10945 ada_decode_exception_location.
10946 (ada_decode_assert_location): Add function documentation.
10947 Add support for condition at end of "catch assert" command.
10948 (catch_assert_command): Update calls to ada_decode_assert_location
10949 and create_ada_exception_catchpoint.
10950
10951 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10952
10953 Fix disp-step-syscall.exp: fork: single step over fork.
10954 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10955 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10956 comment, change parameters gdbarch and ptid to regcache. Remove
10957 parameter regcache, initialize gdbarch from regcache here.
10958 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10959 New functions.
10960 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10961 instead.
10962 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10963 'syscall'. Make the 'int' check more strict.
10964
10965 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10966
10967 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10968 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10969 (i386_linux_intx80_sysenter_syscall_record): ... here.
10970 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10971 Use the renamed function name.
10972
10973 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10974
10975 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10976 * breakpoint.c (until_break_command): Likewise.
10977 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10978 * infcall.c (call_function_by_hand): Likewise.
10979 * infcmd.c (finish_forward): Likewise.
10980 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10981
10982 2012-02-28 Tristan Gingold <gingold@adacore.com>
10983
10984 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10985 avoid variable assignments inside condition.
10986
10987 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10988
10989 Fix static analysis issue found by cppcheck.
10990 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10991 uninitialized BUF for size 2.
10992
10993 2012-02-27 Chris Dearman <chris@mips.com>
10994 Nathan Froyd <froydnj@codesourcery.com>
10995 Maciej W. Rozycki <macro@codesourcery.com>
10996
10997 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10998 (mips16_instruction_has_delay_slot): Likewise.
10999 (mips_segment_boundary): Likewise.
11000 (mips_adjust_breakpoint_address): Likewise.
11001 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11002
11003 2012-02-27 Maciej W. Rozycki <macro@mips.com>
11004 Maciej W. Rozycki <macro@codesourcery.com>
11005
11006 * infrun.c (handle_inferior_event): Don't proceed through
11007 shared library trampolines if stepping at the machine
11008 instruction level.
11009
11010 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
11011
11012 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11013 too.
11014
11015 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
11016
11017 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11018 (sh_stub_unwind_sniffer): New functions.
11019 (sh_stub_unwind): New variable.
11020 (sh_gdbarch_init): Wire everything.
11021
11022 2012-02-27 Pedro Alves <palves@redhat.com>
11023
11024 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11025 (linux_nat_post_attach_wait): Adjust to use
11026 linux_proc_pid_is_stopped.
11027 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11028 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11029 based on pid_is_stopped from both linux-nat.c and
11030 gdbserver/linux-low.c, and renamed.
11031
11032 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11033
11034 * remote.c (remote_watchpoint_addr_within_range): New function.
11035 (init_remote_ops): Use it.
11036
11037 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11038
11039 * target.h (target_watchpoint_addr_within_range): Document macro.
11040
11041 2012-02-24 Pedro Alves <palves@redhat.com>
11042
11043 * stack.c (set_last_displayed_sal): Issue internal_error instead
11044 of warning, and issue it after clearing the last displayed sal.
11045
11046 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11047 Pedro Alves <palves@redhat.com>
11048
11049 * breakpoint.c (until_break_command): Install breakpoints after
11050 all frame manipulations.
11051
11052 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11053
11054 * remote.c (remote_supports_cond_breakpoints): New forward
11055 declaration.
11056 (remote_add_target_side_condition): New function.
11057 (remote_insert_breakpoint): Add target-side breakpoint
11058 conditional if supported.
11059 (remote_insert_hw_breakpoint): Likewise.
11060 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11061 hook.
11062
11063 * target.c (update_current_target): Inherit
11064 to_supports_evaluation_of_breakpoint_conditions.
11065 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11066
11067 * target.h (struct target_ops)
11068 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11069 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11070
11071 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11072 (condition_evaluation_both, condition_evaluation_auto,
11073 condition_evaluation_host, condition_evaluation_target,
11074 condition_evaluation_enums, condition_evaluation_mode_1,
11075 condition_evaluation_mode): New static globals.
11076 (translate_condition_evaluation_mode): New function.
11077 (breakpoint_condition_evaluation_mode): New function.
11078 (gdb_evaluates_breakpoint_condition_p): New function.
11079 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11080 (mark_breakpoint_modified): New function.
11081 (mark_breakpoint_location_modified): New function.
11082 (set_condition_evaluation_mode): New function.
11083 (show_condition_evaluation_mode): New function.
11084 (bp_location_compare_addrs): New function.
11085 (get_first_location_gte_addr): New helper function.
11086 (set_breakpoint_condition): Free condition bytecode if locations
11087 has become unconditional. Call mark_breakpoint_modified (...).
11088 (condition_command): Call update_global_location_list (1) for
11089 breakpoints.
11090 (breakpoint_xfer_memory): Use is_breakpoint (...).
11091 (is_breakpoint): New function.
11092 (parse_cond_to_aexpr): New function.
11093 (build_target_condition_list): New function.
11094 (insert_bp_location): Handle target-side conditional
11095 breakpoints and call build_target_condition_list (...).
11096 (update_inserted_breakpoint_locations): New function.
11097 (insert_breakpoint_locations): Handle target-side conditional
11098 breakpoints.
11099 (bpstat_check_breakpoint_conditions): Add comment.
11100 (bp_condition_evaluator): New function.
11101 (bp_location_condition_evaluator): New function.
11102 (print_breakpoint_location): Print information on where the condition
11103 will be evaluated.
11104 (print_one_breakpoint_location): Likewise.
11105 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11106 breakpoint location.
11107 (force_breakpoint_reinsertion): New functions.
11108 (update_global_location_list): Handle target-side breakpoint
11109 conditions.
11110 Reinsert locations that are already inserted if conditions have
11111 changed.
11112 (bp_location_dtor): Free agent expression bytecode.
11113 (disable_breakpoint): Call mark_breakpoint_modified (...).
11114 Call update_global_location_list (...) with parameter 1 for breakpoints.
11115 (disable_command): Call mark_breakpoint_location_modified (...).
11116 Call update_global_location_list (...) with parameter 1 for breakpoints.
11117 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11118 (enable_command): mark_breakpoint_location_modified (...).
11119 (_initialize_breakpoint): Update documentation and add
11120 condition-evaluation breakpoint subcommand.
11121
11122 * breakpoint.h: Include ax.h.
11123 (condition_list): New data structure.
11124 (condition_status): New enum.
11125 (bp_target_info) <cond_list>: New field.
11126 (bp_location) <condition_changed, cond_bytecode>: New fields.
11127 (is_breakpoint): New prototype.
11128
11129 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11130
11131 * remote.c (remote_state) <cond_breakpoints>: New field.
11132 (PACKET_ConditionalBreakpoints): New enum.
11133 (remote_cond_breakpoint_feature): New function.
11134 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11135 (remote_supports_cond_breakpoints): New function.
11136 (_initialize_remote): Add new packet configuration for
11137 target-side conditional breakpoints.
11138
11139 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11140
11141 * NEWS: Mention target-side conditional breakpoint support,
11142 new condition-evaluation breakpoint subcommand and remote
11143 packet extensions.
11144
11145 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11146
11147 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11148 number.
11149
11150 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11151
11152 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11153 (after_prologue): Remove.
11154
11155 2012-02-23 Tom Tromey <tromey@redhat.com>
11156
11157 * jv-valprint.c (java_val_print): Remove dead code.
11158
11159 2012-02-23 Tristan Gingold <gingold@adacore.com>
11160
11161 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11162 known_tasks_element and known_tasks_length fields.
11163 (read_known_tasks_array): Change argument type. Use pointer type
11164 and number of elements from DATA. Adjust.
11165 (read_known_tasks_list): Likewise.
11166 (get_known_tasks_addr): Remove.
11167 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11168 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11169 type and array length. Merge former get_known_tasks_addr code.
11170
11171 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11172
11173 PR backtrace/13716
11174 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11175 it after set_momentary_breakpoint.
11176
11177 2012-02-22 Sterling Augustine <saugustine@google.com>
11178
11179 PR 13689:
11180 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11181
11182 2012-02-22 Gary Benson <gbenson@redhat.com>
11183
11184 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11185 (find_slot_in_mapped_hash): Likewise.
11186
11187 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11188
11189 PR build/13638
11190 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11191 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11192 * configure: Regenerate.
11193
11194 2012-02-21 Tristan Gingold <gingold@adacore.com>
11195 Pedro Alves <palves@redhat.com>
11196
11197 * ia64-tdep.c: Do not include libunwind-ia64.h.
11198 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11199 Include libunwind-ia64.h instead of libunwind.h.
11200 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11201 for libunwind.h existence.
11202 * configure, config.in: Regenerate.
11203
11204 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11205
11206 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11207 instead of value_rtti_target_type.
11208 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11209 instead of value_rtti_target_type.
11210 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11211 value_rtti_target_type.
11212 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11213 (value_rtti_target_type): Rename to ...
11214 (value_rtti_indirect_type): ... here and make it indirect. Update
11215 function comment.
11216 * value.c (readjust_indirect_value_type): New function.
11217 (coerce_ref): Support for enclosing type setting for references
11218 with readjust_indirect_value_type.
11219 * value.h (readjust_value_type): New declaration.
11220 (value_rtti_target_type): Rename to ...
11221 (value_rtti_indirect_type): ... here.
11222
11223 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11224
11225 * MAINTAINERS (Write After Approval): Add myself to the list.
11226
11227 2012-02-20 Doug Evans <dje@google.com>
11228
11229 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11230 Rename objfile_p_char parameter to objfilep.
11231 (build_objfile_section_table): Result is now void. All callers
11232 updated.
11233 * objfiles.h (struct objfile): Tweak comments, whitespace.
11234 (build_objfile_section_table): Update.
11235
11236 * elfread.c (elf_symfile_segments): Fix warning text.
11237
11238 2012-02-20 Tom Tromey <tromey@redhat.com>
11239
11240 PR gdb/13498:
11241 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11242 particular set of file names once.
11243 (dw2_map_symbol_filenames): Likewise.
11244
11245 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11246
11247 Code cleanup.
11248 * main.c (write_files): Remove the declaration.
11249 (external_editor_command): Move the declaration ...
11250 [GDBTK] (external_editor_command): ... here. Fix the comment.
11251
11252 2012-02-20 Tom Tromey <tromey@redhat.com>
11253
11254 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11255 extraneous block.
11256
11257 2012-02-20 Tristan Gingold <gingold@adacore.com>
11258
11259 * darwin-nat.h (enum darwin_msg_state): Add comments.
11260
11261 2012-02-20 Tristan Gingold <gingold@adacore.com>
11262
11263 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11264 value.
11265
11266 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11267
11268 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11269 between function description and implementation.
11270
11271 2012-02-17 Tom Tromey <tromey@redhat.com>
11272
11273 PR python/12070:
11274 * python/py-event.c (event_object_getset): New global.
11275 (event_object_type): Reference it.
11276 * python/py-type.c (field_object_getset): New global.
11277 (field_object_type): Reference it.
11278 * python/python-internal.h (gdb_py_generic_dict): Declare.
11279 * python/py-utils.c (gdb_py_generic_dict): New function.
11280
11281 2012-02-17 Tristan Gingold <gingold@adacore.com>
11282
11283 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11284
11285 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11286
11287 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11288 TYPE_CALLING_CONVENTION annotation.
11289
11290 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11291
11292 * MAINTAINERS: Add rx to target ISA section.
11293 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11294 (ALLDEPFILES): Add rx-tdep.c.
11295
11296 2012-02-16 Tom Tromey <tromey@redhat.com>
11297
11298 * symfile.c (symbol_file_add_main_1): Use inferior's
11299 symfile_flags.
11300 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11301 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11302 inferior.
11303 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11304 inferior.
11305 (follow_exec): Use inferior's symfile_flags.
11306 * inferior.h (struct inferior) <symfile_flags>: New field.
11307
11308 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11309
11310 PR gdb/9734:
11311 * remote-sim.c (gdbsim_create_inferior): Call error() when
11312 sim_create_inferior() fails.
11313
11314 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11315
11316 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11317
11318 2012-02-16 Tom Tromey <tromey@redhat.com>
11319
11320 PR c++/13653:
11321 * thread.c (struct current_thread_cleanup) <was_removable>: New
11322 field.
11323 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11324 (make_cleanup_restore_current_thread): Initialize new field.
11325
11326 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11327
11328 * MAINTAINERS: Add rl78 to target ISA section.
11329 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11330 (ALLDEPFILES): Add rl78-tdep.c.
11331 * NEWS: Mention rl78 as a new target.
11332
11333 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11334
11335 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11336 data.
11337 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11338
11339 2012-02-15 Tom Tromey <tromey@redhat.com>
11340
11341 PR gdb/12659:
11342 * infcmd.c (registers_info): Print just the current register's
11343 name.
11344
11345 2012-02-15 Tom Tromey <tromey@redhat.com>
11346
11347 * python/py-symbol.c (sympy_value): Use _().
11348
11349 2012-02-15 Pedro Alves <palves@redhat.com>
11350
11351 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11352 output to be like native targets'.
11353 (remote_pid_to_str): Special case the null ptid.
11354
11355 2012-02-14 Stan Shebs <stan@codesourcery.com>
11356
11357 * NEWS: Mention enable count command.
11358 * breakpoint.h (struct breakpoint): New field enable_count.
11359 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11360 (enable_breakpoint): Add arg to call.
11361 (struct disp_data): New struct.
11362 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11363 (do_map_enable_once_breakpoint): Create a struct and pass it.
11364 (do_map_enable_delete_breakpoint): Ditto.
11365 (do_map_enable_count_breakpoint): New function.
11366 (enable_count_command): New function.
11367 (bpstat_stop_status): Decrement enable_count.
11368 (print_one_breakpoint_location): Report enable count.
11369 (_initialize_breakpoint): Add enable count command.
11370
11371 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11372
11373 * rl78-tdep.c (reggroups.h): Include.
11374 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11375 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11376 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11377 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11378 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11379 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11380 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11381 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11382 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11383 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11384 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11385 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11386 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11387 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11388 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11389 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11390 beginning of register list.
11391 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11392 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11393 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11394 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11395 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11396 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11397 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11398 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11399 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11400 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11401 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11402 the pseudo registers. Rearrange other pseudo registers too so
11403 that the bank registers appear at the end.
11404 (rl78_register_type): Account for the fact that the byte sized
11405 bank registers are now pseudo-registers.
11406 (rl78_register_name): Rearrange the register name array. Make
11407 initial set of raw banked registers inaccessible.
11408 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11409 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11410 case for copying bytes back and forth between raw and pseudo
11411 versions of the banked registers. Update other cases to reflect
11412 the changed names.
11413 (rl78_return_value): Update to account for changed names of
11414 raw registers.
11415 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11416 rl78_register_sim_regno().
11417
11418 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11419
11420 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11421 the name parameter being passed to find_pc_partial_function().
11422
11423 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11424
11425 * MAINTAINERS: Step down from being ia64 target maintainer.
11426
11427 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11428
11429 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11430 compilation warning.
11431
11432 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11433
11434 Fix crash on loaded shlibs without loaded exec_bfd.
11435 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11436 (set_section_command): Replace exec_bfd by p->bfd.
11437
11438 2012-02-10 Tom Tromey <tromey@redhat.com>
11439
11440 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11441 when we have a C++ qualified name.
11442
11443 2012-02-10 Pedro Alves <palves@redhat.com>
11444
11445 * inferior.c (inferior_pid_to_str): New.
11446 (print_inferior, inferior_command): Use it.
11447
11448 2012-02-10 Pedro Alves <palves@redhat.com>
11449
11450 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11451 the test CFLAGS.
11452 * configure: Regenerate.
11453
11454 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11455
11456 * linespec.c (decode_line_internal): Fix comment correctness.
11457
11458 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11459
11460 PR gdb/12953
11461 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11462 * amd64bsd-nat.c: Add support for debug registers (adapted from
11463 i386bsd-nat.c).
11464 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11465 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11466 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11467 (amd64bsd_dr_get_control): New functions.
11468 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11469 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11470 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11471 watchpoints initialization.
11472 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11473
11474 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11475
11476 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11477 flds_bnds.fields.
11478 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11479
11480 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11481
11482 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11483
11484 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11485
11486 * language.h (symbol_name_cmp_ftype): Renames
11487 symbol_name_match_p_ftype.
11488 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11489 la_get_symbol_name_match_p.
11490 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11491 ada_get_symbol_name_match_p. Update comment.
11492 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11493 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11494 Renames symbol_name_match_p. Update field type.
11495 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11496 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11497 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11498 "la_get_symbol_name_cmp" in comments.
11499 * language.c: Likewise.
11500
11501 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11502
11503 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11504 %eflags offset.
11505 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11506 (amd64_sol2_gregset32_reg_offs): Likewise.
11507
11508 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11509
11510 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11511 of the returned BFD is allocated by GDB.
11512
11513 2012-02-07 Tom Tromey <tromey@redhat.com>
11514
11515 PR python/12027:
11516 * python/python-internal.h (frame_object_type): Declare.
11517 * python/py-symbol.c (sympy_needs_frame): New function.
11518 (sympy_value): New function.
11519 (symbol_object_getset): Add "needs_frame".
11520 (symbol_object_methods): Add "value".
11521 * python/py-frame.c (frame_object_type): No longer static.
11522
11523 2012-02-07 Tom Tromey <tromey@redhat.com>
11524
11525 PR python/13599:
11526 * python/py-symbol.c (sympy_line): New function.
11527 (symbol_object_getset): Add "line".
11528
11529 2012-02-07 Tom Tromey <tromey@redhat.com>
11530
11531 * charset.c (find_charset_names): Check 'in' against NULL.
11532
11533 2012-02-06 Doug Evans <dje@google.com>
11534
11535 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11536 and fields.name members from char * to const char *. All uses updated.
11537 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11538 from char * to const char *. All uses updated.
11539 (type_name_no_tag): Update.
11540 (lookup_unsigned_typename, lookup_signed_typename): Update.
11541 * gdbtypes.c (type_name_no_tag): Change result type
11542 from char * to const char *. All callers updated.
11543 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11544 name parameter from char * to const char *.
11545 * symtab.h (struct cplus_specific): Change type of demangled_name
11546 member from char * to const char *. All uses updated.
11547 (struct general_symbol_info): Change type of name and
11548 mangled_lang.demangled_name members from char * to const char *.
11549 All uses updated.
11550 (symbol_get_demangled_name, symbol_natural_name): Update.
11551 (symbol_demangled_name, symbol_search_name): Update.
11552 * symtab.c (symbol_get_demangled_name): Change result type
11553 from char * to const char *. All callers updated.
11554 (symbol_natural_name, symbol_demangled_name): Ditto.
11555 (symbol_search_name): Ditto.
11556 (completion_list_add_name): Change type of symname,sym_text,
11557 text,word parameters from char * to const char *.
11558 (completion_list_objc_symbol): Change type of sym_text,
11559 text,word parameters from char * to const char *.
11560 * ada-lang.c (find_struct_field): Change type of name parameter
11561 from char * to const char *.
11562 (encoded_ordered_before): Similarly for N0,N1 parameters.
11563 (old_renaming_is_invisible): Similarly for function_name parameter.
11564 (ada_type_name): Change result type from char * to const char *.
11565 All callers updated.
11566 * ada-lang.h (ada_type_name): Update.
11567 * buildsym.c (hashname): Change type of name parameter
11568 from char * to const char *.
11569 * buildsym.h (hashname): Update.
11570 * dbxread.c (end_psymtab): Change type of include_list parameter
11571 from char ** to const char **.
11572 * dwarf2read.c (determine_prefix): Change result type
11573 from char * to const char *. All callers updated.
11574 * f-lang.c (find_common_for_function): Change type of name, funcname
11575 parameters from char * to const char *.
11576 * f-lang.c (find_common_for_function): Update.
11577 * f-valprint.c (list_all_visible_commons): Change type of funcname
11578 parameters from char * to const char *.
11579 * gdbarch.sh (static_transform_name): Change type of name parameter
11580 and result from char * to const char *.
11581 * gdbarch.c: Regenerate.
11582 * gdbarch.h: Regenerate.
11583 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11584 of name parameter from char * to const char *.
11585 * jv-lang.c (java_primitive_type_from_name): Ditto.
11586 (java_demangled_signature_length): Similarly for signature parameter.
11587 (java_demangled_signature_copy): Ditto.
11588 (java_demangle_type_signature): Ditto.
11589 * jv-lang.h (java_primitive_type_from_name): Update.
11590 (java_demangle_type_signature): Update.
11591 * objc-lang.c (specialcmp): Change type of a,b parameters
11592 from char * to const char *.
11593 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11594 from char * to const char *. All callers updated.
11595 * p-lang.h (is_pascal_string_type): Update.
11596 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11597 of name parameter from char * to const char *.
11598 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11599 * utils.c (fprintf_symbol_filtered): Ditto.
11600 * defs.h (fprintf_symbol_filtered): Update.
11601 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11602 * stabsread.h (end_psymtab): Update.
11603 * stack.c (find_frame_funname): Change type of funname parameter
11604 from char ** to const char **.
11605 * stack.h (find_frame_funname): Update.
11606 * typeprint.c (type_print): Change type of varstring parameter
11607 from char * to const char *.
11608 * value.h (type_print): Update.
11609 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11610 from char * to const char *. All callers updated.
11611 (xcoff_end_psymtab): Change type of include_list parameter
11612 from char ** to const char **. All callers updated.
11613 (swap_sym): Similarly for name parameter. All callers updated.
11614 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11615 Use xstrdup.
11616 (process_coff_symbol): Use xstrdup.
11617 * stabsread.c (stabs_method_name_from_physname): Renamed from
11618 update_method_name_from_physname. Change result type from void
11619 to char *. All callers updated.
11620 (read_member_functions): In has_destructor case, store name in objfile
11621 obstack instead of malloc space. In !has_stub case, fix mem leak.
11622
11623 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11624
11625 * configure: Rebuild.
11626 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11627 LDFLAGS.
11628
11629 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11630
11631 * configure.tgt (rl78-*-elf): New target.
11632 * rl78-tdep.c: New file.
11633
11634 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11635
11636 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11637 and continue the loop. Add QUIT statement.
11638
11639 2012-02-03 Tom Tromey <tromey@redhat.com>
11640
11641 PR gdb/13596:
11642 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11643 bfd_lookup_symbol_from_symtab.
11644 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11645 gdb_bfd_lookup_symbol_from_symtab.
11646
11647 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11648
11649 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11650 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11651 symbol. Add assertion that sym2 is never NULL.
11652
11653 2012-02-02 Doug Evans <dje@google.com>
11654
11655 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11656 "name" parameter to const char ** from char **. All callers updated.
11657 (find_pc_partial_function): Ditto.
11658 (cache_pc_function_name): Change type to const char * from char *.
11659 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11660 (find_pc_partial_function): Update.
11661 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11662 type of "name" parameter to const char * from char *.
11663 All uses updated.
11664 * arch-utils.c (generic_in_solib_return_trampoline): Change
11665 type of "name" parameter to const char * from char *.
11666 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11667 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11668 type of "name" parameter to const char * from char *.
11669 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11670 * gdbarch.c: Regenerate.
11671 * gdbarch.h: Regenerate.
11672 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11673 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11674 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11675 type of "name" parameter to const char * from char *.
11676 * skip.c (skip_function_pc): Ditto.
11677 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11678 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11679 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11680 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11681 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11682 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11683 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11684 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11685 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11686
11687 2012-02-02 Pedro Alves <palves@redhat.com>
11688
11689 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11690 the current inferior has no execution. Make sure the current
11691 remote process matches gdb's current inferior.
11692
11693 2012-02-02 Tom Tromey <tromey@redhat.com>
11694
11695 PR gdb/13405:
11696 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11697 read-only memory.
11698
11699 2012-02-02 Tom Tromey <tromey@redhat.com>
11700
11701 PR gdb/9307:
11702 * symtab.c (lookup_language_this): Set block_found.
11703
11704 2012-02-01 Tom Tromey <tromey@redhat.com>
11705
11706 PR gdb/13431:
11707 * jit.c (struct jit_inferior_data): Rewrite.
11708 (struct jit_objfile_data): New.
11709 (get_jit_objfile_data): New function.
11710 (add_objfile_entry): Update.
11711 (jit_read_descriptor): Return int. Replace descriptor_addr
11712 argument with inf_data. Update. Don't call error.
11713 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11714 descriptor here.
11715 (jit_inferior_init): Don't look up descriptor. Don't call error.
11716 (jit_reset_inferior_data_and_breakpoints)
11717 (jit_inferior_created_observer): Remove.
11718 (jit_inferior_exit_hook): Update.
11719 (jit_executable_changed_observer): Remove.
11720 (jit_event_handler): Update.
11721 (free_objfile_data): Reset inferior data if needed.
11722 (_initialize_jit): Update.
11723
11724 2012-02-01 Tom Tromey <tromey@redhat.com>
11725
11726 * jit.c (bfd_open_from_target_memory): Move higher in file.
11727
11728 2012-02-01 Tristan Gingold <gingold@adacore.com>
11729
11730 * libunwind-frame.c (libunwind_load): Display message if dlopen
11731 failed.
11732
11733 2012-02-01 Gary Benson <gbenson@redhat.com>
11734
11735 * symtab.h (symbol_found_callback_ftype): New typedef.
11736 (iterate_over_symbols): Use the above.
11737 * symtab.c (iterate_over_symbols): Likewise.
11738 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11739 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11740 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11741 (iterate_name_matcher): Document return values.
11742 (collect_one_symbol): Likewise.
11743 (collect_function_symbols): Likewise.
11744 (collect_symbols): Likewise.
11745
11746 2012-02-01 Tom Tromey <tromey@redhat.com>
11747
11748 * ada-lang.c (resolve_subexp): Update.
11749 (ada_lookup_symbol_list): Add 'full_search' argument.
11750 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11751 ada_lookup_symbol_list.
11752 (ada_lookup_encoded_symbol): Update.
11753 (get_var_value): Update.
11754 * ada-exp.y (block_lookup): Update.
11755 (write_var_or_type): Update.
11756 (write_name_assoc): Update.
11757 * ada-lang.h (ada_lookup_symbol_list): Update.
11758
11759 2012-01-31 Tom Tromey <tromey@redhat.com>
11760
11761 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11762 comment.
11763
11764 2012-01-31 Doug Evans <dje@google.com>
11765
11766 * symtab.h: Remove outdated comment.
11767 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11768
11769 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11770
11771 Fix build error in Darwin port.
11772 * i386-darwin-nat.c: Include i386-nat.h.
11773
11774 2012-01-30 Tom Tromey <tromey@redhat.com>
11775
11776 PR breakpoints/13568:
11777 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11778 argument. Check for recursive includes.
11779 (dwarf_decode_macros): Create an include hash.
11780
11781 2012-01-30 Michael Eager <eager@eagercon.com>
11782
11783 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11784 * ppc-linux-tdep.c: Include glibc-tdep.h.
11785 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11786 (powerpc_linux_in_plt_stub): New function.
11787 (powerpc_linux_in_dynsym_resolve_code): New function.
11788 (ppc_skip_trampoline_code): New function.
11789 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11790 Use glibc_skip_solib_resolver.
11791
11792 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11793
11794 Code cleanup: Make 1440 bytes of data segment read-only.
11795 * arch-utils.c (endian_enum): Make it const char *const [].
11796 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11797 Likewise.
11798 * breakpoint.c (always_inserted_enums): Likewise.
11799 * cli/cli-cmds.c (script_ext_enums): Likewise.
11800 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11801 enumlist parameter const char *const *.
11802 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11803 const char *const *.
11804 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11805 parameter const char *const *.
11806 * cris-tdep.c (cris_modes): Make it const char *const [].
11807 * filesystem.c (target_file_system_kinds): Likewise.
11808 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11809 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11810 (can_use_displaced_stepping_enum, scheduler_enums)
11811 (exec_direction_names): Likewise.
11812 * language.c (_initialize_language): Make the type_or_range_names and
11813 case_sensitive_names variables const char *const [].
11814 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11815 * python/python.c (python_excp_enums): Likewise.
11816 * remote.c (interrupt_sequence_modes): Likewise.
11817 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11818 * serial.c (logbase_enums): Likewise.
11819 * sh-tdep.c (sh_cc_enum): Likewise.
11820 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11821 Likewise.
11822 * symtab.c (multiple_symbols_modes): Likewise.
11823 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11824 Likewise.
11825 * utils.c (internal_problem_modes): Likewise.
11826
11827 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11828
11829 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11830 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11831 result.
11832
11833 2012-01-27 Doug Evans <dje@google.com>
11834
11835 * configure.ac (with_python): Fix absolute path handling for win32.
11836 * configure: Regenerate.
11837
11838 2012-01-26 Doug Evans <dje@google.com>
11839
11840 * symtab.c: Whitespace cleanup, no code changes.
11841
11842 * symtab.c (lookup_symbol_in_language): Improve comment.
11843 (lookup_symbol_aux): Fix comment.
11844
11845 * psymtab.c (add_psymbol_to_list): Result is now "void".
11846 * psympriv.h (add_psymbol_to_list): Update.
11847
11848 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11849
11850 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11851
11852 Do not open script filenames twice.
11853 * cli/cli-cmds.c (source_script_from_stream): Pass to
11854 source_python_script also STREAM.
11855 * python/py-auto-load.c (source_section_scripts): Pass to
11856 source_python_script_for_objfile also STREAM.
11857 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11858 also INPUT.
11859 * python/python-internal.h (source_python_script_for_objfile): New
11860 parameter file, rename parameter file to filename.
11861 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11862 instead if !_WIN32. Update the function comment.
11863 (source_python_script, source_python_script_for_objfile)
11864 (source_python_script): New parameter file, rename parameter file to
11865 filename. Pass FILENAME to python_run_simple_file.
11866 * python/python.h (source_python_script): New parameter file, rename
11867 parameter file to filename.
11868
11869 2012-01-26 Pedro Alves <palves@redhat.com>
11870
11871 * corelow.c (core_has_fake_pid): Delete.
11872 (core_close): Delete references to `core_has_fake_pid'.
11873 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11874 (core_open): Delete references to `core_has_fake_pid'.
11875 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11876 the removed global.
11877
11878 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11879
11880 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11881 Remove language parameter from name_matcher. Adjust the comment.
11882 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11883 Remove language parameter.
11884 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11885 * linespec.c (iterate_name_matcher): Likewise.
11886 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11887 name_matcher. Adjust call accordingly.
11888 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11889 (maintenance_check_symtabs): Adjust type of parameter "fun".
11890 * psymtab.h (maintenance_check_symtabs): Likewise.
11891
11892 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11893
11894 * language.h (symbol_name_match_p_ftype): New typedef.
11895 (struct language_defn): Replace field la_symbol_name_compare
11896 by la_get_symbol_name_match_p.
11897 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11898 (ada_language_defn): Use it.
11899 * linespec.c (struct symbol_matcher_data): New type.
11900 (iterate_name_matcher): Rewrite.
11901 (iterate_over_all_matching_symtabs): Pass a pointer to
11902 a symbol_matcher_data struct to expand_symtabs_matching
11903 instead of just the lookup name.
11904 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11905 opencl-lang.c, p-lang.c, language.c: Delete field
11906 la_symbol_name_compare, and replace by NULL for new field
11907 la_get_symbol_name_match_p.
11908 * symfile.h (struct quick_symbol_functions): Update comment.
11909
11910 2012-01-25 Tom Tromey <tromey@redhat.com>
11911
11912 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11913 dereferencing.
11914
11915 2012-01-24 Tom Tromey <tromey@redhat.com>
11916
11917 PR symtab/12406:
11918 * solib.c (update_solib_list): Update the program space's
11919 added_solibs and deleted_solibs fields.
11920 * progspace.h (struct program_space) <added_solibs,
11921 deleted_solibs>: New fields.
11922 (clear_program_space_solib_cache): Declare.
11923 * progspace.c (release_program_space): Call
11924 clear_program_space_solib_cache.
11925 (clear_program_space_solib_cache): New function.
11926 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11927 bpstat_stop_status. Use handle_solib_event.
11928 * breakpoint.c: Include gdb_regex.h.
11929 (print_solib_event): New function.
11930 (bpstat_print): Use print_solib_event.
11931 (bpstat_stop_status): Add special case for bp_shlib_event.
11932 (handle_solib_event): New function.
11933 (bpstat_what): Use handle_solib_event.
11934 (struct solib_catchpoint): New.
11935 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11936 (breakpoint_hit_catch_solib, check_status_catch_solib)
11937 (print_it_catch_solib, print_one_catch_solib)
11938 (print_mention_catch_solib, print_recreate_catch_solib): New
11939 functions.
11940 (catch_solib_breakpoint_ops): New global.
11941 (catch_load_or_unload, catch_load_command_1)
11942 (catch_unload_command_1): New functions.
11943 (internal_bkpt_check_status): Add special case for
11944 bp_shlib_event.
11945 (internal_bkpt_print_it): Use print_solib_event.
11946 (initialize_breakpoint_ops): Initialize
11947 catch_solib_breakpoint_ops.
11948 (_initialize_breakpoint): Register "catch load" and "catch
11949 unload".
11950 * breakpoint.h (handle_solib_event): Declare.
11951 * NEWS: Add entry for "catch load" and "catch unload".
11952
11953 2012-01-24 Tom Tromey <tromey@redhat.com>
11954
11955 * ada-lang.c: Include gdb_vecs.h.
11956 * charset.c: Include gdb_vecs.h.
11957 * tracepoint.h: Include gdb_vecs.h.
11958 * gdb_vecs.h: New file.
11959
11960 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11961
11962 * breakpoint.c (breakpoint_hit_catch_fork)
11963 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11964 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11965 * infrun.c (inferior_has_forked, inferior_has_vforked)
11966 (inferior_has_execd, inferior_has_called_syscall): Delete.
11967 (handle_syscall_event): Get syscall_number from the execution
11968 control state's wait status.
11969 (wait_for_inferior): Don't clear syscall_number.
11970
11971 2012-01-24 Pedro Alves <palves@redhat.com>
11972
11973 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11974 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11975 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11976 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11977 `ws' parameter.
11978 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11979 false for events other than TARGET_SIGNAL_TRAP.
11980 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11981 Add `ws' parameter.
11982 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11983 events other than TARGET_SIGNAL_TRAP.
11984 (tracepoint_breakpoint_hit): Add `ws' parameter.
11985 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11986 parameter.
11987 (bpstat_stop_status): Same.
11988 (pc_at_non_inline_function): Same.
11989 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11990 to pass the current event's waitstatus to bpstat_stop_status
11991 and pc_at_non_inline_function.
11992
11993 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11994
11995 Code cleanup.
11996 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11997 Update the function comment for it.
11998 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11999 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12000 for STREAM.
12001
12002 2012-01-24 Pedro Alves <palves@redhat.com>
12003
12004 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12005 outside `bs->stop' block.
12006 (bpstat_what): Rework bp_shlib_event handling.
12007 (internal_bkpt_check_status): If the breakpoint is a
12008 bp_shlib_event, then set bs->stop and bs->print if
12009 stop_on_solib_events is set.
12010
12011 2012-01-24 Gary Benson <gbenson@redhat.com>
12012
12013 Delete #if 0'd out code.
12014 * stack.c (print_frame_label_vars): Remove.
12015 (catch_info): Likewise.
12016 (_initialize_stack): Remove "info catch" command.
12017 * NEWS: Mention the above.
12018
12019 2012-01-24 Pedro Alves <palves@redhat.com>
12020
12021 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12022 it.
12023 (remote_notice_new_inferior): If the remote end doesn't support
12024 the multiprocess extensions, then the PID is fake.
12025 (add_current_inferior_and_thread): New.
12026 (remote_start_remote): Use it.
12027 (extended_remote_attach_1): Adjust.
12028 (extended_remote_create_inferior_1): Use
12029 add_current_inferior_and_thread.
12030
12031 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12032
12033 Fix watchpoints to be specific for each inferior.
12034 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12035 current_program_space.
12036 * i386-nat.c (i386_inferior_data_cleanup): New.
12037 (i386_inferior_data_get): Replace variable inf_data_local by an
12038 inferior_data call.
12039 (i386_use_watchpoints): Initialize i386_inferior_data.
12040 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12041 specific iterate_over_lwps.
12042
12043 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12044
12045 Fix watchpoints across inferior fork.
12046 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12047 comment for linux_nat_iterate_watchpoint_lwps.
12048 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12049 linux_nat_iterate_watchpoint_lwps.
12050 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12051 * i386-linux-nat.c (update_debug_registers_callback): Update the
12052 comment for linux_nat_iterate_watchpoint_lwps.
12053 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12054 linux_nat_iterate_watchpoint_lwps.
12055 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12056 * i386-nat.c: Include inferior.h.
12057 (dr_mirror): Remove.
12058 (i386_inferior_data, struct i386_inferior_data)
12059 (i386_inferior_data_get): New.
12060 (i386_debug_reg_state): Use i386_inferior_data_get.
12061 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12062 (i386_insert_watchpoint, i386_remove_watchpoint)
12063 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12064 (i386_remove_hw_breakpoint): New variable state, use
12065 i386_debug_reg_state instead of DR_MIRROR.
12066 * linux-nat.c (delete_lwp): New declaration.
12067 (num_lwps): Move here from downwards.
12068 (delete_lwp_cleanup): New.
12069 (linux_child_follow_fork): Create new child_lp, call
12070 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12071 PTRACE_DETACH.
12072 (num_lwps): Move upwards.
12073 (linux_nat_iterate_watchpoint_lwps): New.
12074 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12075 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12076
12077 2012-01-24 Joel Brobecker <brobecker@adacore.com>
12078
12079 GDB 7.4 released.
12080
12081 2012-01-23 Pedro Alves <palves@redhat.com>
12082
12083 * top.c (caution): Rename to ...
12084 (confirm): ... this.
12085 (show_caution): Rename to ...
12086 (show_confirm): ... this.
12087 (quit_cover): Adjust.
12088 (init_main): Adjust.
12089 * top.h (caution): Rename to ...
12090 (confirm): ... this.
12091 * utils.c (internal_vproblem, defaulted_query): Adjust.
12092
12093 2012-01-23 Pedro Alves <palves@redhat.com>
12094
12095 * top.c (caution): Update comment.
12096 (execute_command): Don't consider the current value of `caution'.
12097
12098 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12099
12100 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12101
12102 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12103
12104 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12105 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12106 * target.c (target_fileio_pwrite): Remove buffer address from
12107 debug output.
12108 (target_fileio_pread): Likewise.
12109
12110 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12111
12112 * NEWS: Document remote "info proc" and "generate-core-file".
12113
12114 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12115
12116 * gdbarch.sh (find_memory_regions): New callback.
12117 * gdbarch.c, gdbarch.h: Regenerate.
12118
12119 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12120 callback before falling back to target method.
12121
12122 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12123 (linux_target_install_ops): No longer install it.
12124
12125 * linux-tdep.c (linux_find_memory_regions): New function.
12126 (linux_init_abi): Install it.
12127
12128 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12129
12130 * gdbarch.sh (make_corefile_notes): New architecture callback.
12131 * gdbarch.c: Regenerate.
12132 * gdbarch.h: Likewise.
12133
12134 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12135 before target_make_corefile_notes. If NULL is returned, the
12136 target does not support core file generation.
12137
12138 * linux-nat.c: Include "linux-tdep.h".
12139 (find_signalled_thread, find_stop_signal): Remove.
12140 (linux_nat_do_thread_registers): Likewise.
12141 (struct linux_nat_corefile_thread_data): Likewise.
12142 (linux_nat_corefile_thread_callback): Likewise.
12143 (iterate_over_spus): Likewise.
12144 (struct linux_spu_corefile_data): Likewise.
12145 (linux_spu_corefile_callback): Likewise.
12146 (linux_spu_make_corefile_notes): Likewise.
12147 (linux_nat_collect_thread_registers): New function.
12148 (linux_nat_make_corefile_notes): Replace contents by call to
12149 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12150 as native-only callback.
12151
12152 * linux-tdep.h: Include "bfd.h".
12153 (struct regcache): Add forward declaration.
12154 (linux_collect_thread_registers_ftype): New typedef.
12155 (linux_make_corefile_notes): Add prototype.
12156 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12157 "regset.h", and "elf-bfd.h".
12158 (find_signalled_thread, find_stop_signal): New functions.
12159 (linux_spu_make_corefile_notes): Likewise.
12160 (linux_collect_thread_registers): Likewise.
12161 (struct linux_corefile_thread_data): New data structure.
12162 (linux_corefile_thread_callback): New funcion.
12163 (linux_make_corefile_notes): Likewise.
12164 (linux_make_corefile_notes_1): Likewise.
12165 (linux_init_abi): Install it.
12166
12167 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12168
12169 * gdbarch.sh (info_proc): New callback.
12170 * gdbarch.c, gdbarch.h: Regenerate.
12171
12172 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12173 before falling back to the target info_proc callback.
12174
12175 * linux-nat.c: Do not include "cli/cli-utils.h".
12176 (linux_nat_info_proc): Remove.
12177 (linux_target_install_ops): No longer install it.
12178
12179 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12180 (read_mapping): New function.
12181 (linux_info_proc): Likewise.
12182 (linux_init_abi): Install it.
12183
12184 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12185
12186 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12187 * infcmd.c: (info_proc_cmd_1): New function.
12188 (info_proc_cmd): New function, moved here from equivalent routine
12189 orignally in linux-nat.c.
12190 (info_proc_cmd_mappings): Likewise.
12191 (info_proc_cmd_stat): Likewise.
12192 (info_proc_cmd_status): Likewise.
12193 (info_proc_cmd_cwd): Likewise.
12194 (info_proc_cmd_cmdline): Likewise.
12195 (info_proc_cmd_exe): Likewise.
12196 (info_proc_cmd_all): Likewise.
12197 (_initialize_infcmd): Install "info proc" command and subcommands.
12198
12199 * target.h (struct target_ops): Add to_info_proc.
12200 (target_info_proc): Add prototype.
12201 * target.c (target_info_proc): New function.
12202
12203 * procfs.c (procfs_info_proc): Add prototype.
12204 (info_proc_cmd): Rename into ...
12205 (procfs_info_proc): ... this. Update argument types as appropriate
12206 for a to_info_proc implementation. Handle "what" argument.
12207 (procfs_target): Install procfs_info_proc.
12208 (_initialize_procfs): No longer install "info proc" command.
12209
12210 * linux-nat.c: (enum info_proc_what): Remove.
12211 (linux_nat_info_proc_cmd_1): Rename into ...
12212 (linux_nat_info_proc): ... this. Update argument types as appropriate
12213 for a to_info_proc implementation.
12214 (linux_nat_info_proc_cmd): Remove.
12215 (linux_nat_info_proc_cmd_mappings): Likewise.
12216 (linux_nat_info_proc_cmd_stat): Likewise.
12217 (linux_nat_info_proc_cmd_status): Likewise.
12218 (linux_nat_info_proc_cmd_cwd): Likewise.
12219 (linux_nat_info_proc_cmd_cmdline): Likewise.
12220 (linux_nat_info_proc_cmd_exe): Likewise.
12221 (linux_nat_info_proc_cmd_all): Likewise.
12222 (linux_target_install_ops): Install linux_nat_info_proc.
12223 (_initialize_linux_nat): No longer install "info proc" command
12224 and subcommands.
12225
12226 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12227
12228 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12229 * config.in, configure: Regenerate.
12230
12231 * target.h (struct target_ops): Add to_fileio_readlink.
12232 (target_fileio_readlink): Add prototype.
12233 * target.c (target_fileio_readlink): New function.
12234
12235 * inf-child.c: Conditionally include <sys/param.h>.
12236 (inf_child_fileio_readlink): New function.
12237 (inf_child_target): Install it.
12238
12239 * remote.c (PACKET_vFile_readlink): New enum value.
12240 (remote_hostio_readlink): New function.
12241 (init_remote_ops): Install it.
12242 (_initialize_remote): Handle vFile:readlink packet type.
12243
12244 2012-01-20 Pedro Alves <palves@redhat.com>
12245 Ulrich Weigand <ulrich.weigand@linaro.org>
12246
12247 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12248 * config.in, configure: Regenerate.
12249
12250 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12251 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12252 (target_fileio_open): Add prototype.
12253 (target_fileio_pwrite): Likewise.
12254 (target_fileio_pread): Likewise.
12255 (target_fileio_close): Likewise.
12256 (target_fileio_unlink): Likewise.
12257 (target_fileio_read_alloc): Likewise.
12258 (target_fileio_read_stralloc): Likewise.
12259
12260 * target.c: Include "gdb/fileio.h".
12261 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12262 (default_fileio_target): New function.
12263 (target_fileio_open): Likewise.
12264 (target_fileio_pwrite): Likewise.
12265 (target_fileio_pread): Likewise.
12266 (target_fileio_close): Likewise.
12267 (target_fileio_unlink): Likewise.
12268 (target_fileio_close_cleanup): Likewise.
12269 (target_fileio_read_alloc_1): Likewise.
12270 (target_fileio_read_alloc): Likewise.
12271 (target_fileio_read_stralloc): Likewise.
12272
12273 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12274 <fcntl.h>, and <unistd.h>.
12275 (inf_child_fileio_open_flags_to_host): New function.
12276 (inf_child_errno_to_fileio_error): Likewise.
12277 (inf_child_fileio_open): Likewise.
12278 (inf_child_fileio_pwrite): Likewise.
12279 (inf_child_fileio_pread): Likewise.
12280 (inf_child_fileio_close): Likewise.
12281 (inf_child_fileio_unlink): Likewise.
12282 (inf_child_target): Install to_fileio routines.
12283
12284 * remote.c (init_remote_ops): Install to_fileio routines.
12285
12286 2012-01-20 Pedro Alves <palves@redhat.com>
12287 Ulrich Weigand <ulrich.weigand@linaro.org>
12288
12289 * remote.c (remote_multi_process_p): Only check for multi-process
12290 protocol feature, do not check for extended protocol.
12291 (remote_supports_multi_process): Check for extended protocol here.
12292 (set_general_process): Likewise.
12293 (extended_remote_kill): Likewise.
12294 (remote_pid_to_str): Likewise.
12295 (remote_query_supported): Always query multiprocess mode.
12296
12297 2012-01-20 Pedro Alves <palves@redhat.com>
12298 Ulrich Weigand <ulrich.weigand@linaro.org>
12299
12300 * inferior.h (struct inferior): Add fake_pid_p.
12301 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12302 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12303 magic_null_ptid since the remote side doesn't provide a real PID.
12304
12305 2012-01-19 Tom Tromey <tromey@redhat.com>
12306
12307 * NEWS: Combine the two Python sections.
12308
12309 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12310
12311 * target.h (target_close): Update comment on the target's unpush state.
12312
12313 2012-01-19 Pedro Alves <palves@redhat.com>
12314
12315 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12316 linux_nat_async directly instead of going through the target
12317 vector.
12318 * target.c (unpush_target): Close target after unpushing it, not
12319 before.
12320
12321 2012-01-19 Gary Benson <gbenson@redhat.com>
12322
12323 * mdebugread.c (sort_blocks): Replace integer constants with ones
12324 derived from FIRST_LOCAL_BLOCK.
12325
12326 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12327 Jan Kratochvil <jan.kratochvil@redhat.com>
12328
12329 PR gdb/9538
12330 * symfile.c (find_separate_debug_file): New function.
12331 (terminate_after_last_dir_separator): Likewise.
12332 (find_separate_debug_file_by_debuglink): Also try realpath.
12333 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12334 * configure: Regenerate.
12335 * config.in: Regenerate.
12336
12337 2012-01-18 Doug Evans <dje@google.com>
12338
12339 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12340 (main.o): Remove rule.
12341 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12342 (--with-sysroot): Rewrite.
12343 * configure: Regenerate.
12344 * config.in: Regenerate.
12345
12346 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12347
12348 * parse.c (initialize_expout): New function.
12349 (reallocate_expout): Likewise.
12350 (parse_exp_in_context): Use `initialize_expout' and
12351 `reallocate_expout' when appropriate.
12352
12353 2012-01-18 Pedro Alves <palves@redhat.com>
12354
12355 * record.c (struct record_breakpoint, record_breakpoint_p)
12356 (record_breakpoints): New.
12357 (record_insert_breakpoint, record_remove_breakpoint): Manage
12358 record breakpoints list. Only remove breakpoints from the
12359 inferior if they had been inserted there in the first place.
12360
12361 2012-01-17 Doug Evans <dje@google.com>
12362
12363 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12364 if we know we don't have a file name to look for.
12365
12366 2012-01-17 Pedro Alves <palves@redhat.com>
12367
12368 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12369 the frame's stop reason is UNWIND_UNAVAILABLE.
12370
12371 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12372
12373 Fix compilation error.
12374 * m2-exp.y (yyerror): Use ANSI C prototype.
12375
12376 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12377
12378 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12379 (growbuf_by_size): Likewise.
12380 (yyerror): Likewise.
12381 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12382 (modblock): Remove variable (was #if 0'ed).
12383 (parse_number): Convert prototype from K&R to ANSI C.
12384 (yyerror): Likewise.
12385 * objc-exp.y (parse_number): Likewise.
12386 (yyerror): Likewise.
12387 (yylex): Remove #if 0'ed code.
12388 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12389 (yyerror): Likewise.
12390
12391 2012-01-16 Tom Tromey <tromey@redhat.com>
12392
12393 * NEWS: Add item.
12394 * symtab.h (compare_filenames_for_search): Declare.
12395 * symtab.c (compare_filenames_for_search): New function.
12396 (iterate_over_some_symtabs): Use it.
12397 * symfile.h (struct quick_symbol_functions)
12398 <map_symtabs_matching_filename>: Change spec.
12399 * psymtab.c (partial_map_symtabs_matching_filename): Use
12400 compare_filenames_for_search. Update for new spec.
12401 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12402 compare_filenames_for_search. Update for new spec.
12403 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12404
12405 2012-01-16 Tom Tromey <tromey@redhat.com>
12406
12407 PR python/13281:
12408 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12409 (struct main_type) <flag_flag_enum>: New field.
12410 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12411 * NEWS: Add entries.
12412 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12413 enums.
12414 * python/lib/gdb/printing.py (_EnumInstance): New class.
12415 (FlagEnumerationPrinter): Likewise.
12416
12417 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12418
12419 * breakpoint.c (create_sals_from_address_default): New function.
12420 (create_breakpoints_sal_default): Likewise.
12421 (decode_linespec_default): Likewise.
12422 (is_marker_spec): Removed.
12423 (strace_marker_p): New function.
12424 (init_breakpoint_sal): Using `strace_marker_p' instead of
12425 `is_marker_spec'.
12426 (create_breakpoint): Call method `create_sals_from_address' from
12427 breakpoint_ops, replacing code that created SALs conditionally
12428 on the type of the breakpoint. Call method `create_breakpoints_sal',
12429 replacing code that created breakpoints conditionally on the type
12430 wanted.
12431 (base_breakpoint_create_sals_from_address): New function.
12432 (base_breakpoint_create_breakpoints_sal): Likewise.
12433 (base_breakpoint_decode_linespec): Likewise.
12434 (base_breakpoint_ops): Add methods
12435 `base_breakpoint_create_sals_from_address',
12436 `base_breakpoint_create_breakpoints_sal' and
12437 `base_breakpoint_decode_linespec'.
12438 (bkpt_create_sals_from_address): New function.
12439 (bkpt_create_breakpoints_sal): Likewise.
12440 (bkpt_decode_linespec): Likewise.
12441 (tracepoint_create_sals_from_address): Likewise.
12442 (tracepoint_create_breakpoints_sal): Likewise.
12443 (tracepoint_decode_linespec): Likewise.
12444 (strace_marker_create_sals_from_address): Likewise.
12445 (strace_marker_create_breakpoints_sal): Likewise.
12446 (strace_marker_decode_linespec): Likewise.
12447 (strace_marker_breakpoint_ops): New variable.
12448 (addr_string_to_sals): Remove `marker_spec'. Call method
12449 `decode_linespec' from breakpoint_ops, replacing code that decoded
12450 an address string into a SAL. Use `strace_marker_p' instead of
12451 `marker_spec'.
12452 (strace_command): Decide whether we are dealing with a static
12453 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12454 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12455 * breakpoint.h (linespec_result, linespec_sals): New forward
12456 declarations.
12457 (breakpoint_ops) <create_sals_from_address>,
12458 <create_breakpoints_sal>, <decode_linespec>: New methods.
12459
12460 2012-01-14 Doug Evans <dje@google.com>
12461
12462 * NEWS: Update text for "maint set python print-stack".
12463 It is deprecated in gdb 7.4 and deleted in 7.5.
12464
12465 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12466
12467 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12468 including curses.h.
12469
12470 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12471
12472 * configure: Regenerate.
12473 * config.in: Regenerate.
12474
12475 2012-01-12 Keith Seitz <keiths@redhat.com>
12476
12477 PR mi/10586
12478 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12479 (ANONYMOUS_UNION_NAME): Define.
12480 (is_path_expr_parent): New function.
12481 (get_path_expr_parent): New function.
12482 (is_anonymous_child): New function.
12483 (create_child_with_value): If the child is anonymous and without
12484 a name, assign an object name to it.
12485 (c_describe_child): Use get_path_expr_parent to determine
12486 the parent expression.
12487 If there field represents an anonymous struct or union and
12488 has no name, set an appropriate display name and expression.
12489 (cplus_describe_child): Likewise.
12490
12491 2012-01-12 Pedro Alves <palves@redhat.com>
12492
12493 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12494 available when %ebp is found to be zero (outermost).
12495
12496 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12497
12498 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12499 an internal gdb_static_assert.
12500 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12501
12502 2012-01-11 Tom Tromey <tromey@redhat.com>
12503
12504 PR gdb/9598:
12505 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12506 catch" and "catch throw".
12507
12508 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12509
12510 * blockframe.c (block_innermost_frame): Start search from selected
12511 frame, if present, or otherwise the current frame.
12512
12513 * c-exp.y (variable): Update innermost_block for
12514 'block COLONCOLON NAME' clause.
12515 * m2-exp.y (variable): Ditto.
12516 * objc-exp.y (variable): Ditto.
12517
12518 2012-01-10 Tom Tromey <tromey@redhat.com>
12519
12520 PR python/13199:
12521 * python/python.c (finish_python_initialization): Set sys.argv.
12522
12523 2012-01-10 Doug Evans <dje@google.com>
12524
12525 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12526 "want_line_info". All callers updated.
12527 (dwarf_decode_lines_1): New function.
12528 (handle_DW_AT_stmt_list): Add function comment.
12529 New arg "want_line_info". All callers updated.
12530 (read_file_scope,read_type_unit_scope): Move comment from
12531 handle_DW_AT_stmt_list to here.
12532
12533 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12534
12535 Fix regression after libiberty/ update for GCC PR 6057 and others.
12536 * c-exp.y (operator) <OPERATOR DELETE>
12537 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12538 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12539 (make_builtin_type, make_name): New variable i, add gdb_assert.
12540 (operator) <OPERATOR NEW>: Update ARGS to 3.
12541 (operator) <OPERATOR DELETE>: Add trailing space.
12542 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12543 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12544 * cp-support.c (cp_canonicalize_string): Check NULL from
12545 cp_comp_to_string, call warning and return.
12546
12547 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12548
12549 Fix duplicate .o files after omitting libbfd.a.
12550 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12551 (SFILES): Add corelow.c.
12552 (COMMON_OBS): Add corelow.o.
12553 (ALLDEPFILES): Remove corelow.c.
12554 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12555 * config/alpha/alpha-osf3.mh: Likewise.
12556 * config/alpha/fbsd.mh: Likewise.
12557 * config/arm/nbsdaout.mh: Likewise.
12558 * config/arm/nbsdelf.mh: Likewise.
12559 * config/i386/i386gnu.mh: Likewise.
12560 * config/ia64/hpux.mh: Likewise.
12561 * config/ia64/linux.mh: Likewise.
12562 * config/m32r/linux.mh: Likewise.
12563 * config/m68k/linux.mh: Likewise.
12564 * config/mips/irix5.mh: Likewise.
12565 * config/mips/irix6.mh: Likewise.
12566 * config/pa/hpux.mh: Likewise.
12567 * config/pa/linux.mh: Likewise.
12568 * config/powerpc/aix.mh: Likewise.
12569 * config/sparc/linux.mh: Likewise.
12570 * config/sparc/linux64.mh: Likewise.
12571 * config/sparc/sol2.mh: Likewise.
12572 * config/vax/vax.mh: Likewise.
12573 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12574 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12575 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12576 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12577 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12578 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12579 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12580 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12581 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12582 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12583 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12584 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12585 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12586 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12587 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12588 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12589 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12590 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12591 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12592 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12593 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12594 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12595 corelow.o from gdb_target_obs.
12596 * corefile.c (core_target): Update the comment on NULL value.
12597 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12598 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12599 MATCHES. Drop YUMMY set on NULL.
12600 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12601 reclaim CORE_DATA if it is already NULL.
12602
12603 2012-01-09 Doug Evans <dje@google.com>
12604
12605 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12606 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12607
12608 2012-01-09 Keith Seitz <keiths@redhat.com>
12609
12610 * breakpoint.c (wrapper.h): Don't include.
12611
12612 2012-01-09 Keith Seitz <keiths@redhat.com>
12613
12614 * Makefile.in (SFILES): Remove wrapper.c.
12615 (HFILES_NO_SRCDIR): Remove wrapper.h.
12616 (COMMON_OBS): Remove wrapper.o.
12617 * cli/cli-interp.c: Don't inlude wrapper.h.
12618 * corelow.c: Likewise.
12619 (core_open): Replace gdb_target_find_new_threads with
12620 TRY_CATCH around target_find_new_threads.
12621 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12622 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12623 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12624 evaluate_expression.
12625 (varobj_set_value): Likewise for evaluate_expression and
12626 value_assign.
12627 (install_new_variable): Likewise for value_fetch_lazy.
12628 (adjust_value_for_child_access): Likewise for value_ind.
12629 (c_describe_child): Likewise for value_subscript and
12630 value_ind.
12631 (c_value_of_root): Likewise for evaluate_expression.
12632 * wrapper.c: Remove.
12633 * wrapper.h: Remove.
12634
12635 2012-01-09 Doug Evans <dje@google.com>
12636
12637 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12638 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12639 "abfd" args with "section". All callers updated.
12640 Error checking code moved ...
12641 (error_check_comp_unit_head): ... here. New function.
12642 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12643 Delete arg "abfd". New arg "type_offset". All callers updated.
12644 (create_debug_types_hash_table): Simplify by using
12645 read_and_check_type_unit_head.
12646
12647 * parser-defs.h (namecopy): Delete.
12648 * parse.c (namecopy, namecopy_size): Move into copy_name.
12649
12650 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12651
12652 Partially fix duplicate .o files after omitting libbfd.a.
12653 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12654 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12655 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12656 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12657 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12658 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12659 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12660
12661 2012-01-09 Pedro Alves <palves@redhat.com>
12662
12663 * MAINTAINERS: Update my email address.
12664
12665 2012-01-08 Doug Evans <dje@google.com>
12666
12667 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12668 n_type_units. Rename type_comp_units to all_type_units.
12669 All uses updated.
12670 (add_signatured_type_cu_to_table): Renamed from
12671 add_signatured_type_cu_to_list. All callers updated.
12672
12673 * gdbtypes.h (struct cplus_struct_type): Delete member
12674 nfn_fields_total. All uses removed.
12675
12676 2012-01-06 Doug Evans <dje@google.com>
12677
12678 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12679 to top of file.
12680 (dwarf2_find_comp_unit): Delete.
12681 (process_psymtab_comp_unit): Make result "void".
12682 Delete args buffer, info_ptr, buffer_size, and replace with
12683 "section". All callers updated.
12684 (dwarf2_build_psymtabs_hard): Simplify.
12685
12686 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12687 Thiago Jung Bauermann <bauerman@br.ibm.com>
12688
12689 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12690 before `struct gdb_exception'.
12691 * breakpoint.c (update_global_location_list_nothrow)
12692 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12693 * cp-abi.c (value_rtti_type): Likewise.
12694 * cp-support.c (cp_validate_operator): Likewise.
12695 * infrun.c (insert_exception_resume_breakpoint)
12696 (check_exception_resume, keep_going): Likewise.
12697 * mi-interp.c (mi_breakpoint_created)
12698 (mi_breakpoint_modified): Likewise.
12699 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12700 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12701 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12702
12703 2012-01-05 Doug Evans <dje@google.com>
12704
12705 * dwarf2read.c (statement_prologue): Delete, unused.
12706
12707 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12708 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12709
12710 * dwarf2read.c (comp_unit_header): Delete, unused.
12711
12712 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12713
12714 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12715 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12716
12717 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12718
12719 * infrun.c (normal_stop): Don't skip calling the normal_stop
12720 observers if the thread was doing a multi-step, but stopped for
12721 some reason other than stepping.
12722
12723 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12724
12725 * cli/cli-decode.h: Add comments.
12726 (CMD_LIST_AMBIGUOUS): Moved to command.h
12727 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12728 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12729 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12730 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12731 (add_com, add_com_alias, add_info, add_info_alias)
12732 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12733 declarations.
12734 * command.h: Add and adjust comments.
12735 (CMD_LIST_AMBIGUOUS): Moved here.
12736 (help_cmd, help_cmd_list): Delete declarations.
12737
12738 2012-01-04 Doug Evans <dje@google.com>
12739
12740 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12741 All callers updated.
12742 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12743 Replace all arguments with "per_cu". All callers updated.
12744
12745 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12746
12747 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12748 New arg "per_cu". All callers updated.
12749
12750 Delete #if 0'd out code.
12751 * language.c (binop_result_type): Delete.
12752 (simple_type, ordered_type, same_type, integral_type): Delete.
12753 (numeric_type, character_type, string_type, boolean_type): Delete.
12754 (float_type, structured_type): Delete.
12755 * language.h: Update.
12756
12757 2012-01-04 Tom Tromey <tromey@redhat.com>
12758
12759 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12760
12761 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12762
12763 * corefile.c (close_exec_file): Delete.
12764 (reopen_exec_file): Remove commented out code that seems related
12765 to close_exec_file, which is being deleted here.
12766 * inferior.h (close_exec_file): Delete.
12767 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12768
12769 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12770
12771 * ada-lang.c: #include "cli/cli-utils.h".
12772 (get_selections): Use skip_spaces.
12773 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12774 (catch_ada_exception_command_split): Use skip_spaces.
12775 (ada_decode_assert_location): Likewise.
12776
12777 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12778
12779 * linespec.c (decode_line_internal): Check for C++ or Java
12780 compound constructs only if the current language is C, C++
12781 or Java.
12782
12783 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12784
12785 Revert:
12786 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12787 Joel Brobecker <brobecker@adacore.com>
12788 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12789 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12790 3 times.
12791 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12792 fall through into AT_ENTRY_POINT.
12793 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12794 DUMMY_ADDR with it.
12795 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12796 PPC_INSN_SIZE skip to 3 times.
12797
12798 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12799
12800 * linespec.c (add_minsym): Preserve function descriptors.
12801
12802 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12803
12804 * breakpoint.c (all_locations_are_pending): Consider locations
12805 in program spaces executing during startup pending as well.
12806
12807 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12808
12809 Copyright year update in most files of the GDB Project.
12810
12811 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12812
12813 * copyright.sh: Delete.
12814 * copyright.py: Rewrite.
12815
12816 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12817
12818 * gnulib/extra/update-copyright: New file, imported from gnulib.
12819
12820 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12821
12822 * README (Copyright and License Notices): New section.
12823
12824 2012-01-03 Tom Tromey <tromey@redhat.com>
12825
12826 PR python/12533:
12827 * python/py-value.c (valpy_dereference, valpy_get_address
12828 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12829 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12830 (valpy_absolute, valpy_richcompare): Free intermediate values.
12831
12832 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12833
12834 * ada-lang.c: Reformat the copyright notice.
12835
12836 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12837
12838 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12839 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12840 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12841 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12842 Revert this part of:
12843 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12844 Build gdb directly from *.o files not using libgdb.a.
12845 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12846
12847 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12848
12849 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12850 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12851 Reformat the copyright header.
12852
12853 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12854
12855 Revert this part of:
12856 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12857 Remove the gdbtui binary.
12858 * gdb.c (main): Remove args.interpreter_p initialization.
12859 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12860 * main.h (struct captured_main_args): Remove interpreter_p.
12861
12862 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12863
12864 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12865
12866 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12867
12868 * top.c (print_gdb_version): Update copyright year.
12869
12870 2012-01-02 Yao Qi <yao@codesourcery.com>
12871
12872 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12873
12874 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12875 Joel Brobecker <brobecker@adacore.com>
12876
12877 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12878 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12879 3 times.
12880 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12881 fall through into AT_ENTRY_POINT.
12882 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12883 DUMMY_ADDR with it.
12884 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12885 PPC_INSN_SIZE skip to 3 times.
12886
12887 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12888
12889 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12890 the return value.
12891 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12892
12893 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12894
12895 Build gdb directly from *.o files not using libgdb.a.
12896 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12897 (COMMON_OBS): Remove solib-target.o.
12898 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12899 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12900 (LIBGDB_OBS, libgdb.a): Move it above.
12901 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12902 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12903 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12904 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12905 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12906 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12907 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12908 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12909 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12910 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12911 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12912 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12913 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12914 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12915 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12916 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12917 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12918 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12919 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12920 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12921 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12922 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12923 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12924 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12925 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12926 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12927 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12928
12929 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12930
12931 Remove the gdbtui binary.
12932 * .gitignore (/gdbtui): Remove.
12933 * Makefile.in (TUI): Remove.
12934 (SUBDIR_TUI_OBS): Remove tui-main.o.
12935 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12936 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12937 (tui-main.o): Remove.
12938 (all_object_files): Remove tui-main.o.
12939 * NEWS: New note for the gdbtui removal.
12940 * configure: Rebuilt.
12941 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12942 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12943 CONFIG_UNINSTALL respectively.
12944 * gdb.c (main): Remove args.interpreter_p initialization.
12945 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12946 * main.h (struct captured_main_args): Remove interpreter_p.
12947 * tui/tui-main.c: Remove.
12948
12949 2012-01-01 Doug Evans <dje@google.com>
12950
12951 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12952 (dwarf2_physname, read_import_statement): Ditto.
12953 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12954 (process_structure_scope read_subroutine_type): Ditto.
12955 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12956 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12957 (dwarf2_fetch_die_location_block): Ditto.
12958 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12959
12960 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12961 All callers updated.
12962 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12963 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12964 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12965
12966 * dwarf2read.c (load_cu): Move assert to more useful location.
12967
12968 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12969 All callers updated.
12970
12971 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12972 (dwarf2_elf_names): Minor reformat.
12973 (dwarf2_per_cu_data): Tweak comment.
12974 (dwarf2_read_section): Fix comment.
12975 (create_all_comp_units): Fix comment.
12976 (load_full_comp_unit): Fix comment.
12977 (process_full_comp_unit): Fix comment.
12978 (read_signatured_type): Fix comment.
12979
12980 For older changes see ChangeLog-2011.
12981 \f
12982 Local Variables:
12983 mode: change-log
12984 left-margin: 8
12985 fill-column: 74
12986 version-control: never
12987 coding: utf-8
12988 End:
This page took 1.057232 seconds and 4 git commands to generate.